configure: regenerate in all projects that use libtool.m4
[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 subdirs
656 SIM_COMMON_BUILD_FALSE
657 SIM_COMMON_BUILD_TRUE
658 SIM_SUBDIRS
659 SIM_PRIMARY_TARGET
660 AM_BACKSLASH
661 AM_DEFAULT_VERBOSITY
662 AM_DEFAULT_V
663 AM_V
664 am__fastdepCC_FALSE
665 am__fastdepCC_TRUE
666 CCDEPMODE
667 am__nodep
668 AMDEPBACKSLASH
669 AMDEP_FALSE
670 AMDEP_TRUE
671 am__quote
672 am__include
673 DEPDIR
674 am__untar
675 am__tar
676 AMTAR
677 am__leading_dot
678 SET_MAKE
679 mkdir_p
680 MKDIR_P
681 INSTALL_STRIP_PROGRAM
682 install_sh
683 MAKEINFO
684 AUTOHEADER
685 AUTOMAKE
686 AUTOCONF
687 ACLOCAL
688 VERSION
689 PACKAGE
690 CYGPATH_W
691 am__isrc
692 MAINT
693 MAINTAINER_MODE_FALSE
694 MAINTAINER_MODE_TRUE
695 READLINE_CFLAGS
696 READLINE_LIB
697 TERMCAP_LIB
698 SDL_LIBS
699 SDL_CFLAGS
700 lt_cv_dlopen_libs
701 OTOOL64
702 OTOOL
703 LIPO
704 NMEDIT
705 DSYMUTIL
706 AWK
707 STRIP
708 OBJDUMP
709 LN_S
710 NM
711 ac_ct_DUMPBIN
712 DUMPBIN
713 LD
714 FGREP
715 SED
716 LIBTOOL
717 PLUGINS_FALSE
718 PLUGINS_TRUE
719 zlibinc
720 zlibdir
721 CATOBJEXT
722 GENCAT
723 INSTOBJEXT
724 DATADIRNAME
725 CATALOGS
726 POSUB
727 GMSGFMT
728 XGETTEXT
729 INCINTL
730 LIBINTL_DEP
731 LIBINTL
732 USE_NLS
733 LIBOBJS
734 C_DIALECT
735 PKG_CONFIG_LIBDIR
736 PKG_CONFIG_PATH
737 PKG_CONFIG
738 RANLIB
739 AR
740 LDFLAGS_FOR_BUILD
741 CFLAGS_FOR_BUILD
742 RANLIB_FOR_BUILD
743 CC_FOR_BUILD
744 AR_FOR_BUILD
745 DTC
746 INSTALL_DATA
747 INSTALL_SCRIPT
748 INSTALL_PROGRAM
749 EGREP
750 GREP
751 CPP
752 OBJEXT
753 EXEEXT
754 ac_ct_CC
755 CPPFLAGS
756 LDFLAGS
757 CFLAGS
758 CC
759 target_os
760 target_vendor
761 target_cpu
762 target
763 host_os
764 host_vendor
765 host_cpu
766 host
767 build_os
768 build_vendor
769 build_cpu
770 build
771 REPORT_BUGS_TEXI
772 REPORT_BUGS_TO
773 PKGVERSION
774 target_alias
775 host_alias
776 build_alias
777 LIBS
778 ECHO_T
779 ECHO_N
780 ECHO_C
781 DEFS
782 mandir
783 localedir
784 libdir
785 psdir
786 pdfdir
787 dvidir
788 htmldir
789 infodir
790 docdir
791 oldincludedir
792 includedir
793 localstatedir
794 sharedstatedir
795 sysconfdir
796 datadir
797 datarootdir
798 libexecdir
799 sbindir
800 bindir
801 program_transform_name
802 prefix
803 exec_prefix
804 PACKAGE_URL
805 PACKAGE_BUGREPORT
806 PACKAGE_STRING
807 PACKAGE_VERSION
808 PACKAGE_TARNAME
809 PACKAGE_NAME
810 PATH_SEPARATOR
811 SHELL
812 WERROR_CFLAGS
813 WARN_CFLAGS'
814 ac_subst_files=''
815 ac_user_opts='
816 enable_option_checking
817 with_pkgversion
818 with_bugurl
819 with_system_zlib
820 enable_plugins
821 enable_shared
822 enable_static
823 with_pic
824 enable_fast_install
825 with_gnu_ld
826 enable_libtool_lock
827 enable_maintainer_mode
828 enable_dependency_tracking
829 enable_silent_rules
830 enable_sim
831 enable_example_sims
832 enable_targets
833 enable_sim_alignment
834 enable_sim_assert
835 enable_cgen_maint
836 enable_sim_debug
837 enable_sim_endian
838 enable_sim_environment
839 enable_sim_hardware
840 enable_sim_inline
841 enable_sim_profile
842 enable_sim_reserved_bits
843 enable_sim_scache
844 enable_sim_stdio
845 enable_sim_trace
846 enable_werror
847 enable_build_warnings
848 enable_sim_build_warnings
849 enable_sim_frv_trapdump
850 enable_sim_rx_cycle_accurate
851 '
852 ac_precious_vars='build_alias
853 host_alias
854 target_alias
855 CC
856 CFLAGS
857 LDFLAGS
858 LIBS
859 CPPFLAGS
860 CPP
861 PKG_CONFIG
862 PKG_CONFIG_PATH
863 PKG_CONFIG_LIBDIR
864 SDL_CFLAGS
865 SDL_LIBS'
866 ac_subdirs_all='bpf
867 mips
868 mn10300
869 or1k
870 ppc
871 riscv
872 v850'
873
874 # Initialize some variables set by options.
875 ac_init_help=
876 ac_init_version=false
877 ac_unrecognized_opts=
878 ac_unrecognized_sep=
879 # The variables have the same names as the options, with
880 # dashes changed to underlines.
881 cache_file=/dev/null
882 exec_prefix=NONE
883 no_create=
884 no_recursion=
885 prefix=NONE
886 program_prefix=NONE
887 program_suffix=NONE
888 program_transform_name=s,x,x,
889 silent=
890 site=
891 srcdir=
892 verbose=
893 x_includes=NONE
894 x_libraries=NONE
895
896 # Installation directory options.
897 # These are left unexpanded so users can "make install exec_prefix=/foo"
898 # and all the variables that are supposed to be based on exec_prefix
899 # by default will actually change.
900 # Use braces instead of parens because sh, perl, etc. also accept them.
901 # (The list follows the same order as the GNU Coding Standards.)
902 bindir='${exec_prefix}/bin'
903 sbindir='${exec_prefix}/sbin'
904 libexecdir='${exec_prefix}/libexec'
905 datarootdir='${prefix}/share'
906 datadir='${datarootdir}'
907 sysconfdir='${prefix}/etc'
908 sharedstatedir='${prefix}/com'
909 localstatedir='${prefix}/var'
910 includedir='${prefix}/include'
911 oldincludedir='/usr/include'
912 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
913 infodir='${datarootdir}/info'
914 htmldir='${docdir}'
915 dvidir='${docdir}'
916 pdfdir='${docdir}'
917 psdir='${docdir}'
918 libdir='${exec_prefix}/lib'
919 localedir='${datarootdir}/locale'
920 mandir='${datarootdir}/man'
921
922 ac_prev=
923 ac_dashdash=
924 for ac_option
925 do
926 # If the previous option needs an argument, assign it.
927 if test -n "$ac_prev"; then
928 eval $ac_prev=\$ac_option
929 ac_prev=
930 continue
931 fi
932
933 case $ac_option in
934 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
935 *=) ac_optarg= ;;
936 *) ac_optarg=yes ;;
937 esac
938
939 # Accept the important Cygnus configure options, so we can diagnose typos.
940
941 case $ac_dashdash$ac_option in
942 --)
943 ac_dashdash=yes ;;
944
945 -bindir | --bindir | --bindi | --bind | --bin | --bi)
946 ac_prev=bindir ;;
947 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
948 bindir=$ac_optarg ;;
949
950 -build | --build | --buil | --bui | --bu)
951 ac_prev=build_alias ;;
952 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
953 build_alias=$ac_optarg ;;
954
955 -cache-file | --cache-file | --cache-fil | --cache-fi \
956 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
957 ac_prev=cache_file ;;
958 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
959 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
960 cache_file=$ac_optarg ;;
961
962 --config-cache | -C)
963 cache_file=config.cache ;;
964
965 -datadir | --datadir | --datadi | --datad)
966 ac_prev=datadir ;;
967 -datadir=* | --datadir=* | --datadi=* | --datad=*)
968 datadir=$ac_optarg ;;
969
970 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
971 | --dataroo | --dataro | --datar)
972 ac_prev=datarootdir ;;
973 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
974 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
975 datarootdir=$ac_optarg ;;
976
977 -disable-* | --disable-*)
978 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
979 # Reject names that are not valid shell variable names.
980 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
981 as_fn_error $? "invalid feature name: $ac_useropt"
982 ac_useropt_orig=$ac_useropt
983 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
984 case $ac_user_opts in
985 *"
986 "enable_$ac_useropt"
987 "*) ;;
988 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
989 ac_unrecognized_sep=', ';;
990 esac
991 eval enable_$ac_useropt=no ;;
992
993 -docdir | --docdir | --docdi | --doc | --do)
994 ac_prev=docdir ;;
995 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
996 docdir=$ac_optarg ;;
997
998 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
999 ac_prev=dvidir ;;
1000 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1001 dvidir=$ac_optarg ;;
1002
1003 -enable-* | --enable-*)
1004 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1005 # Reject names that are not valid shell variable names.
1006 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1007 as_fn_error $? "invalid feature name: $ac_useropt"
1008 ac_useropt_orig=$ac_useropt
1009 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1010 case $ac_user_opts in
1011 *"
1012 "enable_$ac_useropt"
1013 "*) ;;
1014 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1015 ac_unrecognized_sep=', ';;
1016 esac
1017 eval enable_$ac_useropt=\$ac_optarg ;;
1018
1019 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1020 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1021 | --exec | --exe | --ex)
1022 ac_prev=exec_prefix ;;
1023 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1024 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1025 | --exec=* | --exe=* | --ex=*)
1026 exec_prefix=$ac_optarg ;;
1027
1028 -gas | --gas | --ga | --g)
1029 # Obsolete; use --with-gas.
1030 with_gas=yes ;;
1031
1032 -help | --help | --hel | --he | -h)
1033 ac_init_help=long ;;
1034 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1035 ac_init_help=recursive ;;
1036 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1037 ac_init_help=short ;;
1038
1039 -host | --host | --hos | --ho)
1040 ac_prev=host_alias ;;
1041 -host=* | --host=* | --hos=* | --ho=*)
1042 host_alias=$ac_optarg ;;
1043
1044 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1045 ac_prev=htmldir ;;
1046 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1047 | --ht=*)
1048 htmldir=$ac_optarg ;;
1049
1050 -includedir | --includedir | --includedi | --included | --include \
1051 | --includ | --inclu | --incl | --inc)
1052 ac_prev=includedir ;;
1053 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1054 | --includ=* | --inclu=* | --incl=* | --inc=*)
1055 includedir=$ac_optarg ;;
1056
1057 -infodir | --infodir | --infodi | --infod | --info | --inf)
1058 ac_prev=infodir ;;
1059 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1060 infodir=$ac_optarg ;;
1061
1062 -libdir | --libdir | --libdi | --libd)
1063 ac_prev=libdir ;;
1064 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1065 libdir=$ac_optarg ;;
1066
1067 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1068 | --libexe | --libex | --libe)
1069 ac_prev=libexecdir ;;
1070 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1071 | --libexe=* | --libex=* | --libe=*)
1072 libexecdir=$ac_optarg ;;
1073
1074 -localedir | --localedir | --localedi | --localed | --locale)
1075 ac_prev=localedir ;;
1076 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1077 localedir=$ac_optarg ;;
1078
1079 -localstatedir | --localstatedir | --localstatedi | --localstated \
1080 | --localstate | --localstat | --localsta | --localst | --locals)
1081 ac_prev=localstatedir ;;
1082 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1083 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1084 localstatedir=$ac_optarg ;;
1085
1086 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1087 ac_prev=mandir ;;
1088 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1089 mandir=$ac_optarg ;;
1090
1091 -nfp | --nfp | --nf)
1092 # Obsolete; use --without-fp.
1093 with_fp=no ;;
1094
1095 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1096 | --no-cr | --no-c | -n)
1097 no_create=yes ;;
1098
1099 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1100 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1101 no_recursion=yes ;;
1102
1103 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1104 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1105 | --oldin | --oldi | --old | --ol | --o)
1106 ac_prev=oldincludedir ;;
1107 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1108 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1109 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1110 oldincludedir=$ac_optarg ;;
1111
1112 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1113 ac_prev=prefix ;;
1114 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1115 prefix=$ac_optarg ;;
1116
1117 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1118 | --program-pre | --program-pr | --program-p)
1119 ac_prev=program_prefix ;;
1120 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1121 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1122 program_prefix=$ac_optarg ;;
1123
1124 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1125 | --program-suf | --program-su | --program-s)
1126 ac_prev=program_suffix ;;
1127 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1128 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1129 program_suffix=$ac_optarg ;;
1130
1131 -program-transform-name | --program-transform-name \
1132 | --program-transform-nam | --program-transform-na \
1133 | --program-transform-n | --program-transform- \
1134 | --program-transform | --program-transfor \
1135 | --program-transfo | --program-transf \
1136 | --program-trans | --program-tran \
1137 | --progr-tra | --program-tr | --program-t)
1138 ac_prev=program_transform_name ;;
1139 -program-transform-name=* | --program-transform-name=* \
1140 | --program-transform-nam=* | --program-transform-na=* \
1141 | --program-transform-n=* | --program-transform-=* \
1142 | --program-transform=* | --program-transfor=* \
1143 | --program-transfo=* | --program-transf=* \
1144 | --program-trans=* | --program-tran=* \
1145 | --progr-tra=* | --program-tr=* | --program-t=*)
1146 program_transform_name=$ac_optarg ;;
1147
1148 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1149 ac_prev=pdfdir ;;
1150 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1151 pdfdir=$ac_optarg ;;
1152
1153 -psdir | --psdir | --psdi | --psd | --ps)
1154 ac_prev=psdir ;;
1155 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1156 psdir=$ac_optarg ;;
1157
1158 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1159 | -silent | --silent | --silen | --sile | --sil)
1160 silent=yes ;;
1161
1162 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1163 ac_prev=sbindir ;;
1164 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1165 | --sbi=* | --sb=*)
1166 sbindir=$ac_optarg ;;
1167
1168 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1169 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1170 | --sharedst | --shareds | --shared | --share | --shar \
1171 | --sha | --sh)
1172 ac_prev=sharedstatedir ;;
1173 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1174 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1175 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1176 | --sha=* | --sh=*)
1177 sharedstatedir=$ac_optarg ;;
1178
1179 -site | --site | --sit)
1180 ac_prev=site ;;
1181 -site=* | --site=* | --sit=*)
1182 site=$ac_optarg ;;
1183
1184 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1185 ac_prev=srcdir ;;
1186 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1187 srcdir=$ac_optarg ;;
1188
1189 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1190 | --syscon | --sysco | --sysc | --sys | --sy)
1191 ac_prev=sysconfdir ;;
1192 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1193 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1194 sysconfdir=$ac_optarg ;;
1195
1196 -target | --target | --targe | --targ | --tar | --ta | --t)
1197 ac_prev=target_alias ;;
1198 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1199 target_alias=$ac_optarg ;;
1200
1201 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1202 verbose=yes ;;
1203
1204 -version | --version | --versio | --versi | --vers | -V)
1205 ac_init_version=: ;;
1206
1207 -with-* | --with-*)
1208 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1209 # Reject names that are not valid shell variable names.
1210 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1211 as_fn_error $? "invalid package name: $ac_useropt"
1212 ac_useropt_orig=$ac_useropt
1213 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1214 case $ac_user_opts in
1215 *"
1216 "with_$ac_useropt"
1217 "*) ;;
1218 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1219 ac_unrecognized_sep=', ';;
1220 esac
1221 eval with_$ac_useropt=\$ac_optarg ;;
1222
1223 -without-* | --without-*)
1224 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1225 # Reject names that are not valid shell variable names.
1226 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1227 as_fn_error $? "invalid package name: $ac_useropt"
1228 ac_useropt_orig=$ac_useropt
1229 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1230 case $ac_user_opts in
1231 *"
1232 "with_$ac_useropt"
1233 "*) ;;
1234 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1235 ac_unrecognized_sep=', ';;
1236 esac
1237 eval with_$ac_useropt=no ;;
1238
1239 --x)
1240 # Obsolete; use --with-x.
1241 with_x=yes ;;
1242
1243 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1244 | --x-incl | --x-inc | --x-in | --x-i)
1245 ac_prev=x_includes ;;
1246 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1247 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1248 x_includes=$ac_optarg ;;
1249
1250 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1251 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1252 ac_prev=x_libraries ;;
1253 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1254 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1255 x_libraries=$ac_optarg ;;
1256
1257 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1258 Try \`$0 --help' for more information"
1259 ;;
1260
1261 *=*)
1262 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1263 # Reject names that are not valid shell variable names.
1264 case $ac_envvar in #(
1265 '' | [0-9]* | *[!_$as_cr_alnum]* )
1266 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1267 esac
1268 eval $ac_envvar=\$ac_optarg
1269 export $ac_envvar ;;
1270
1271 *)
1272 # FIXME: should be removed in autoconf 3.0.
1273 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1274 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1275 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1276 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1277 ;;
1278
1279 esac
1280 done
1281
1282 if test -n "$ac_prev"; then
1283 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1284 as_fn_error $? "missing argument to $ac_option"
1285 fi
1286
1287 if test -n "$ac_unrecognized_opts"; then
1288 case $enable_option_checking in
1289 no) ;;
1290 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1291 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1292 esac
1293 fi
1294
1295 # Check all directory arguments for consistency.
1296 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1297 datadir sysconfdir sharedstatedir localstatedir includedir \
1298 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1299 libdir localedir mandir
1300 do
1301 eval ac_val=\$$ac_var
1302 # Remove trailing slashes.
1303 case $ac_val in
1304 */ )
1305 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1306 eval $ac_var=\$ac_val;;
1307 esac
1308 # Be sure to have absolute directory names.
1309 case $ac_val in
1310 [\\/$]* | ?:[\\/]* ) continue;;
1311 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1312 esac
1313 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1314 done
1315
1316 # There might be people who depend on the old broken behavior: `$host'
1317 # used to hold the argument of --host etc.
1318 # FIXME: To remove some day.
1319 build=$build_alias
1320 host=$host_alias
1321 target=$target_alias
1322
1323 # FIXME: To remove some day.
1324 if test "x$host_alias" != x; then
1325 if test "x$build_alias" = x; then
1326 cross_compiling=maybe
1327 elif test "x$build_alias" != "x$host_alias"; then
1328 cross_compiling=yes
1329 fi
1330 fi
1331
1332 ac_tool_prefix=
1333 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1334
1335 test "$silent" = yes && exec 6>/dev/null
1336
1337
1338 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1339 ac_ls_di=`ls -di .` &&
1340 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1341 as_fn_error $? "working directory cannot be determined"
1342 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1343 as_fn_error $? "pwd does not report name of working directory"
1344
1345
1346 # Find the source files, if location was not specified.
1347 if test -z "$srcdir"; then
1348 ac_srcdir_defaulted=yes
1349 # Try the directory containing this script, then the parent directory.
1350 ac_confdir=`$as_dirname -- "$as_myself" ||
1351 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1352 X"$as_myself" : 'X\(//\)[^/]' \| \
1353 X"$as_myself" : 'X\(//\)$' \| \
1354 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1355 $as_echo X"$as_myself" |
1356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1357 s//\1/
1358 q
1359 }
1360 /^X\(\/\/\)[^/].*/{
1361 s//\1/
1362 q
1363 }
1364 /^X\(\/\/\)$/{
1365 s//\1/
1366 q
1367 }
1368 /^X\(\/\).*/{
1369 s//\1/
1370 q
1371 }
1372 s/.*/./; q'`
1373 srcdir=$ac_confdir
1374 if test ! -r "$srcdir/$ac_unique_file"; then
1375 srcdir=..
1376 fi
1377 else
1378 ac_srcdir_defaulted=no
1379 fi
1380 if test ! -r "$srcdir/$ac_unique_file"; then
1381 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1382 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1383 fi
1384 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1385 ac_abs_confdir=`(
1386 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1387 pwd)`
1388 # When building in place, set srcdir=.
1389 if test "$ac_abs_confdir" = "$ac_pwd"; then
1390 srcdir=.
1391 fi
1392 # Remove unnecessary trailing slashes from srcdir.
1393 # Double slashes in file names in object file debugging info
1394 # mess up M-x gdb in Emacs.
1395 case $srcdir in
1396 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1397 esac
1398 for ac_var in $ac_precious_vars; do
1399 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1400 eval ac_env_${ac_var}_value=\$${ac_var}
1401 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1402 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1403 done
1404
1405 #
1406 # Report the --help message.
1407 #
1408 if test "$ac_init_help" = "long"; then
1409 # Omit some internal or obsolete options to make the list less imposing.
1410 # This message is too long to be a string in the A/UX 3.1 sh.
1411 cat <<_ACEOF
1412 \`configure' configures sim 0 to adapt to many kinds of systems.
1413
1414 Usage: $0 [OPTION]... [VAR=VALUE]...
1415
1416 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1417 VAR=VALUE. See below for descriptions of some of the useful variables.
1418
1419 Defaults for the options are specified in brackets.
1420
1421 Configuration:
1422 -h, --help display this help and exit
1423 --help=short display options specific to this package
1424 --help=recursive display the short help of all the included packages
1425 -V, --version display version information and exit
1426 -q, --quiet, --silent do not print \`checking ...' messages
1427 --cache-file=FILE cache test results in FILE [disabled]
1428 -C, --config-cache alias for \`--cache-file=config.cache'
1429 -n, --no-create do not create output files
1430 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1431
1432 Installation directories:
1433 --prefix=PREFIX install architecture-independent files in PREFIX
1434 [$ac_default_prefix]
1435 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1436 [PREFIX]
1437
1438 By default, \`make install' will install all the files in
1439 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1440 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1441 for instance \`--prefix=\$HOME'.
1442
1443 For better control, use the options below.
1444
1445 Fine tuning of the installation directories:
1446 --bindir=DIR user executables [EPREFIX/bin]
1447 --sbindir=DIR system admin executables [EPREFIX/sbin]
1448 --libexecdir=DIR program executables [EPREFIX/libexec]
1449 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1450 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1451 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1452 --libdir=DIR object code libraries [EPREFIX/lib]
1453 --includedir=DIR C header files [PREFIX/include]
1454 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1455 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1456 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1457 --infodir=DIR info documentation [DATAROOTDIR/info]
1458 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1459 --mandir=DIR man documentation [DATAROOTDIR/man]
1460 --docdir=DIR documentation root [DATAROOTDIR/doc/sim]
1461 --htmldir=DIR html documentation [DOCDIR]
1462 --dvidir=DIR dvi documentation [DOCDIR]
1463 --pdfdir=DIR pdf documentation [DOCDIR]
1464 --psdir=DIR ps documentation [DOCDIR]
1465 _ACEOF
1466
1467 cat <<\_ACEOF
1468
1469 Program names:
1470 --program-prefix=PREFIX prepend PREFIX to installed program names
1471 --program-suffix=SUFFIX append SUFFIX to installed program names
1472 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1473
1474 System types:
1475 --build=BUILD configure for building on BUILD [guessed]
1476 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1477 --target=TARGET configure for building compilers for TARGET [HOST]
1478 _ACEOF
1479 fi
1480
1481 if test -n "$ac_init_help"; then
1482 case $ac_init_help in
1483 short | recursive ) echo "Configuration of sim 0:";;
1484 esac
1485 cat <<\_ACEOF
1486
1487 Optional Features:
1488 --disable-option-checking ignore unrecognized --enable/--with options
1489 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1490 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1491 --enable-plugins Enable support for plugins
1492 --enable-shared[=PKGS] build shared libraries [default=yes]
1493 --enable-static[=PKGS] build static libraries [default=yes]
1494 --enable-fast-install[=PKGS]
1495 optimize for fast installation [default=yes]
1496 --disable-libtool-lock avoid locking (might break parallel builds)
1497 --enable-maintainer-mode
1498 enable make rules and dependencies not useful (and
1499 sometimes confusing) to the casual installer
1500 --enable-dependency-tracking
1501 do not reject slow dependency extractors
1502 --disable-dependency-tracking
1503 speeds up one-time build
1504 --enable-silent-rules less verbose build output (undo: "make V=1")
1505 --disable-silent-rules verbose build output (undo: "make V=0")
1506 --enable-sim Enable the GNU simulator
1507 --enable-example-sims enable example GNU simulators
1508 --enable-targets alternative target configurations
1509 --enable-sim-alignment=align
1510 Specify strict, nonstrict or forced alignment of
1511 memory accesses
1512 --enable-sim-assert Specify whether to perform random assertions
1513 --enable-cgen-maint=DIR build cgen generated files
1514 --enable-sim-debug=opts Enable debugging flags (for developers of the sim
1515 itself)
1516 --enable-sim-endian=endian
1517 Specify target byte endian orientation
1518 --enable-sim-environment=environment
1519 Specify mixed, user, virtual or operating
1520 environment
1521 --enable-sim-hardware Whether to enable hardware/device simulation
1522 --enable-sim-inline=inlines
1523 Specify which functions should be inlined
1524 --enable-sim-profile=opts
1525 Enable profiling flags
1526 --enable-sim-reserved-bits
1527 Specify whether to check reserved bits in
1528 instruction
1529 --enable-sim-scache=size
1530 Specify simulator execution cache size
1531 --enable-sim-stdio Specify whether to use stdio for console
1532 input/output
1533 --enable-sim-trace=opts Enable tracing of simulated programs
1534 --enable-werror treat compile warnings as errors
1535 --enable-build-warnings enable build-time compiler warnings if gcc is used
1536 --enable-sim-build-warnings
1537 enable SIM specific build-time compiler warnings if
1538 gcc is used
1539 --enable-sim-frv-trapdump
1540 Make unknown traps dump the registers
1541 --disable-sim-rx-cycle-accurate
1542 Disable cycle accurate simulation (faster runtime)
1543
1544 Optional Packages:
1545 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1546 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1547 --with-pkgversion=PKG Use PKG in the version string in place of "SIM"
1548 --with-bugurl=URL Direct users to URL to report a bug
1549 --with-system-zlib use installed libz
1550 --with-pic try to use only PIC/non-PIC objects [default=use
1551 both]
1552 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1553
1554 Some influential environment variables:
1555 CC C compiler command
1556 CFLAGS C compiler flags
1557 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1558 nonstandard directory <lib dir>
1559 LIBS libraries to pass to the linker, e.g. -l<library>
1560 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1561 you have headers in a nonstandard directory <include dir>
1562 CPP C preprocessor
1563 PKG_CONFIG path to pkg-config utility
1564 PKG_CONFIG_PATH
1565 directories to add to pkg-config's search path
1566 PKG_CONFIG_LIBDIR
1567 path overriding pkg-config's built-in search path
1568 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
1569 SDL_LIBS linker flags for SDL, overriding pkg-config
1570
1571 Use these variables to override the choices made by `configure' or to help
1572 it to find libraries and programs with nonstandard names/locations.
1573
1574 Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
1575 sim home page: <https://sourceware.org/gdb/wiki/Sim/>.
1576 _ACEOF
1577 ac_status=$?
1578 fi
1579
1580 if test "$ac_init_help" = "recursive"; then
1581 # If there are subdirs, report their specific --help.
1582 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1583 test -d "$ac_dir" ||
1584 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1585 continue
1586 ac_builddir=.
1587
1588 case "$ac_dir" in
1589 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1590 *)
1591 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1592 # A ".." for each directory in $ac_dir_suffix.
1593 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1594 case $ac_top_builddir_sub in
1595 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1596 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1597 esac ;;
1598 esac
1599 ac_abs_top_builddir=$ac_pwd
1600 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1601 # for backward compatibility:
1602 ac_top_builddir=$ac_top_build_prefix
1603
1604 case $srcdir in
1605 .) # We are building in place.
1606 ac_srcdir=.
1607 ac_top_srcdir=$ac_top_builddir_sub
1608 ac_abs_top_srcdir=$ac_pwd ;;
1609 [\\/]* | ?:[\\/]* ) # Absolute name.
1610 ac_srcdir=$srcdir$ac_dir_suffix;
1611 ac_top_srcdir=$srcdir
1612 ac_abs_top_srcdir=$srcdir ;;
1613 *) # Relative name.
1614 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1615 ac_top_srcdir=$ac_top_build_prefix$srcdir
1616 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1617 esac
1618 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1619
1620 cd "$ac_dir" || { ac_status=$?; continue; }
1621 # Check for guested configure.
1622 if test -f "$ac_srcdir/configure.gnu"; then
1623 echo &&
1624 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1625 elif test -f "$ac_srcdir/configure"; then
1626 echo &&
1627 $SHELL "$ac_srcdir/configure" --help=recursive
1628 else
1629 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1630 fi || ac_status=$?
1631 cd "$ac_pwd" || { ac_status=$?; break; }
1632 done
1633 fi
1634
1635 test -n "$ac_init_help" && exit $ac_status
1636 if $ac_init_version; then
1637 cat <<\_ACEOF
1638 sim configure 0
1639 generated by GNU Autoconf 2.69
1640
1641 Copyright (C) 2012 Free Software Foundation, Inc.
1642 This configure script is free software; the Free Software Foundation
1643 gives unlimited permission to copy, distribute and modify it.
1644 _ACEOF
1645 exit
1646 fi
1647
1648 ## ------------------------ ##
1649 ## Autoconf initialization. ##
1650 ## ------------------------ ##
1651
1652 # ac_fn_c_try_compile LINENO
1653 # --------------------------
1654 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1655 ac_fn_c_try_compile ()
1656 {
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 rm -f conftest.$ac_objext
1659 if { { ac_try="$ac_compile"
1660 case "(($ac_try" in
1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662 *) ac_try_echo=$ac_try;;
1663 esac
1664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665 $as_echo "$ac_try_echo"; } >&5
1666 (eval "$ac_compile") 2>conftest.err
1667 ac_status=$?
1668 if test -s conftest.err; then
1669 grep -v '^ *+' conftest.err >conftest.er1
1670 cat conftest.er1 >&5
1671 mv -f conftest.er1 conftest.err
1672 fi
1673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674 test $ac_status = 0; } && {
1675 test -z "$ac_c_werror_flag" ||
1676 test ! -s conftest.err
1677 } && test -s conftest.$ac_objext; then :
1678 ac_retval=0
1679 else
1680 $as_echo "$as_me: failed program was:" >&5
1681 sed 's/^/| /' conftest.$ac_ext >&5
1682
1683 ac_retval=1
1684 fi
1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686 as_fn_set_status $ac_retval
1687
1688 } # ac_fn_c_try_compile
1689
1690 # ac_fn_c_try_cpp LINENO
1691 # ----------------------
1692 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1693 ac_fn_c_try_cpp ()
1694 {
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 if { { ac_try="$ac_cpp conftest.$ac_ext"
1697 case "(($ac_try" in
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1700 esac
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1704 ac_status=$?
1705 if test -s conftest.err; then
1706 grep -v '^ *+' conftest.err >conftest.er1
1707 cat conftest.er1 >&5
1708 mv -f conftest.er1 conftest.err
1709 fi
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; } > conftest.i && {
1712 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1713 test ! -s conftest.err
1714 }; then :
1715 ac_retval=0
1716 else
1717 $as_echo "$as_me: failed program was:" >&5
1718 sed 's/^/| /' conftest.$ac_ext >&5
1719
1720 ac_retval=1
1721 fi
1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723 as_fn_set_status $ac_retval
1724
1725 } # ac_fn_c_try_cpp
1726
1727 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1728 # -------------------------------------------------------
1729 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1730 # the include files in INCLUDES and setting the cache variable VAR
1731 # accordingly.
1732 ac_fn_c_check_header_mongrel ()
1733 {
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 if eval \${$3+:} false; then :
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1737 $as_echo_n "checking for $2... " >&6; }
1738 if eval \${$3+:} false; then :
1739 $as_echo_n "(cached) " >&6
1740 fi
1741 eval ac_res=\$$3
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1743 $as_echo "$ac_res" >&6; }
1744 else
1745 # Is the header compilable?
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1747 $as_echo_n "checking $2 usability... " >&6; }
1748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749 /* end confdefs.h. */
1750 $4
1751 #include <$2>
1752 _ACEOF
1753 if ac_fn_c_try_compile "$LINENO"; then :
1754 ac_header_compiler=yes
1755 else
1756 ac_header_compiler=no
1757 fi
1758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1760 $as_echo "$ac_header_compiler" >&6; }
1761
1762 # Is the header present?
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1764 $as_echo_n "checking $2 presence... " >&6; }
1765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1766 /* end confdefs.h. */
1767 #include <$2>
1768 _ACEOF
1769 if ac_fn_c_try_cpp "$LINENO"; then :
1770 ac_header_preproc=yes
1771 else
1772 ac_header_preproc=no
1773 fi
1774 rm -f conftest.err conftest.i conftest.$ac_ext
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1776 $as_echo "$ac_header_preproc" >&6; }
1777
1778 # So? What about this header?
1779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1780 yes:no: )
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1782 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1784 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1785 ;;
1786 no:yes:* )
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1788 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1790 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1792 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1794 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1796 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1797 ( $as_echo "## -------------------------------------------------------------------------------------- ##
1798 ## Report this to https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim ##
1799 ## -------------------------------------------------------------------------------------- ##"
1800 ) | sed "s/^/$as_me: WARNING: /" >&2
1801 ;;
1802 esac
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804 $as_echo_n "checking for $2... " >&6; }
1805 if eval \${$3+:} false; then :
1806 $as_echo_n "(cached) " >&6
1807 else
1808 eval "$3=\$ac_header_compiler"
1809 fi
1810 eval ac_res=\$$3
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1812 $as_echo "$ac_res" >&6; }
1813 fi
1814 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1815
1816 } # ac_fn_c_check_header_mongrel
1817
1818 # ac_fn_c_try_run LINENO
1819 # ----------------------
1820 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1821 # that executables *can* be run.
1822 ac_fn_c_try_run ()
1823 {
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 if { { ac_try="$ac_link"
1826 case "(($ac_try" in
1827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1828 *) ac_try_echo=$ac_try;;
1829 esac
1830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1831 $as_echo "$ac_try_echo"; } >&5
1832 (eval "$ac_link") 2>&5
1833 ac_status=$?
1834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1835 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1836 { { case "(($ac_try" in
1837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1838 *) ac_try_echo=$ac_try;;
1839 esac
1840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1841 $as_echo "$ac_try_echo"; } >&5
1842 (eval "$ac_try") 2>&5
1843 ac_status=$?
1844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1845 test $ac_status = 0; }; }; then :
1846 ac_retval=0
1847 else
1848 $as_echo "$as_me: program exited with status $ac_status" >&5
1849 $as_echo "$as_me: failed program was:" >&5
1850 sed 's/^/| /' conftest.$ac_ext >&5
1851
1852 ac_retval=$ac_status
1853 fi
1854 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1855 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1856 as_fn_set_status $ac_retval
1857
1858 } # ac_fn_c_try_run
1859
1860 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1861 # -------------------------------------------------------
1862 # Tests whether HEADER exists and can be compiled using the include files in
1863 # INCLUDES, setting the cache variable VAR accordingly.
1864 ac_fn_c_check_header_compile ()
1865 {
1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1868 $as_echo_n "checking for $2... " >&6; }
1869 if eval \${$3+:} false; then :
1870 $as_echo_n "(cached) " >&6
1871 else
1872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1873 /* end confdefs.h. */
1874 $4
1875 #include <$2>
1876 _ACEOF
1877 if ac_fn_c_try_compile "$LINENO"; then :
1878 eval "$3=yes"
1879 else
1880 eval "$3=no"
1881 fi
1882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1883 fi
1884 eval ac_res=\$$3
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1886 $as_echo "$ac_res" >&6; }
1887 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888
1889 } # ac_fn_c_check_header_compile
1890
1891 # ac_fn_c_try_link LINENO
1892 # -----------------------
1893 # Try to link conftest.$ac_ext, and return whether this succeeded.
1894 ac_fn_c_try_link ()
1895 {
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 rm -f conftest.$ac_objext conftest$ac_exeext
1898 if { { ac_try="$ac_link"
1899 case "(($ac_try" in
1900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1901 *) ac_try_echo=$ac_try;;
1902 esac
1903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1904 $as_echo "$ac_try_echo"; } >&5
1905 (eval "$ac_link") 2>conftest.err
1906 ac_status=$?
1907 if test -s conftest.err; then
1908 grep -v '^ *+' conftest.err >conftest.er1
1909 cat conftest.er1 >&5
1910 mv -f conftest.er1 conftest.err
1911 fi
1912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1913 test $ac_status = 0; } && {
1914 test -z "$ac_c_werror_flag" ||
1915 test ! -s conftest.err
1916 } && test -s conftest$ac_exeext && {
1917 test "$cross_compiling" = yes ||
1918 test -x conftest$ac_exeext
1919 }; then :
1920 ac_retval=0
1921 else
1922 $as_echo "$as_me: failed program was:" >&5
1923 sed 's/^/| /' conftest.$ac_ext >&5
1924
1925 ac_retval=1
1926 fi
1927 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1928 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1929 # interfere with the next link command; also delete a directory that is
1930 # left behind by Apple's compiler. We do this before executing the actions.
1931 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1932 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933 as_fn_set_status $ac_retval
1934
1935 } # ac_fn_c_try_link
1936
1937 # ac_fn_c_check_func LINENO FUNC VAR
1938 # ----------------------------------
1939 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1940 ac_fn_c_check_func ()
1941 {
1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1944 $as_echo_n "checking for $2... " >&6; }
1945 if eval \${$3+:} false; then :
1946 $as_echo_n "(cached) " >&6
1947 else
1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949 /* end confdefs.h. */
1950 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1952 #define $2 innocuous_$2
1953
1954 /* System header to define __stub macros and hopefully few prototypes,
1955 which can conflict with char $2 (); below.
1956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1957 <limits.h> exists even on freestanding compilers. */
1958
1959 #ifdef __STDC__
1960 # include <limits.h>
1961 #else
1962 # include <assert.h>
1963 #endif
1964
1965 #undef $2
1966
1967 /* Override any GCC internal prototype to avoid an error.
1968 Use char because int might match the return type of a GCC
1969 builtin and then its argument prototype would still apply. */
1970 #ifdef __cplusplus
1971 extern "C"
1972 #endif
1973 char $2 ();
1974 /* The GNU C library defines this for functions which it implements
1975 to always fail with ENOSYS. Some functions are actually named
1976 something starting with __ and the normal name is an alias. */
1977 #if defined __stub_$2 || defined __stub___$2
1978 choke me
1979 #endif
1980
1981 int
1982 main ()
1983 {
1984 return $2 ();
1985 ;
1986 return 0;
1987 }
1988 _ACEOF
1989 if ac_fn_c_try_link "$LINENO"; then :
1990 eval "$3=yes"
1991 else
1992 eval "$3=no"
1993 fi
1994 rm -f core conftest.err conftest.$ac_objext \
1995 conftest$ac_exeext conftest.$ac_ext
1996 fi
1997 eval ac_res=\$$3
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1999 $as_echo "$ac_res" >&6; }
2000 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2001
2002 } # ac_fn_c_check_func
2003
2004 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2005 # ----------------------------------------------------
2006 # Tries to find if the field MEMBER exists in type AGGR, after including
2007 # INCLUDES, setting cache variable VAR accordingly.
2008 ac_fn_c_check_member ()
2009 {
2010 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2012 $as_echo_n "checking for $2.$3... " >&6; }
2013 if eval \${$4+:} false; then :
2014 $as_echo_n "(cached) " >&6
2015 else
2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h. */
2018 $5
2019 int
2020 main ()
2021 {
2022 static $2 ac_aggr;
2023 if (ac_aggr.$3)
2024 return 0;
2025 ;
2026 return 0;
2027 }
2028 _ACEOF
2029 if ac_fn_c_try_compile "$LINENO"; then :
2030 eval "$4=yes"
2031 else
2032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033 /* end confdefs.h. */
2034 $5
2035 int
2036 main ()
2037 {
2038 static $2 ac_aggr;
2039 if (sizeof ac_aggr.$3)
2040 return 0;
2041 ;
2042 return 0;
2043 }
2044 _ACEOF
2045 if ac_fn_c_try_compile "$LINENO"; then :
2046 eval "$4=yes"
2047 else
2048 eval "$4=no"
2049 fi
2050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2051 fi
2052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2053 fi
2054 eval ac_res=\$$4
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2056 $as_echo "$ac_res" >&6; }
2057 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2058
2059 } # ac_fn_c_check_member
2060
2061 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2062 # ---------------------------------------------
2063 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2064 # accordingly.
2065 ac_fn_c_check_decl ()
2066 {
2067 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2068 as_decl_name=`echo $2|sed 's/ *(.*//'`
2069 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2071 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2072 if eval \${$3+:} false; then :
2073 $as_echo_n "(cached) " >&6
2074 else
2075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2076 /* end confdefs.h. */
2077 $4
2078 int
2079 main ()
2080 {
2081 #ifndef $as_decl_name
2082 #ifdef __cplusplus
2083 (void) $as_decl_use;
2084 #else
2085 (void) $as_decl_name;
2086 #endif
2087 #endif
2088
2089 ;
2090 return 0;
2091 }
2092 _ACEOF
2093 if ac_fn_c_try_compile "$LINENO"; then :
2094 eval "$3=yes"
2095 else
2096 eval "$3=no"
2097 fi
2098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099 fi
2100 eval ac_res=\$$3
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2102 $as_echo "$ac_res" >&6; }
2103 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2104
2105 } # ac_fn_c_check_decl
2106
2107 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2108 # -------------------------------------------
2109 # Tests whether TYPE exists after having included INCLUDES, setting cache
2110 # variable VAR accordingly.
2111 ac_fn_c_check_type ()
2112 {
2113 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2115 $as_echo_n "checking for $2... " >&6; }
2116 if eval \${$3+:} false; then :
2117 $as_echo_n "(cached) " >&6
2118 else
2119 eval "$3=no"
2120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2121 /* end confdefs.h. */
2122 $4
2123 int
2124 main ()
2125 {
2126 if (sizeof ($2))
2127 return 0;
2128 ;
2129 return 0;
2130 }
2131 _ACEOF
2132 if ac_fn_c_try_compile "$LINENO"; then :
2133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2134 /* end confdefs.h. */
2135 $4
2136 int
2137 main ()
2138 {
2139 if (sizeof (($2)))
2140 return 0;
2141 ;
2142 return 0;
2143 }
2144 _ACEOF
2145 if ac_fn_c_try_compile "$LINENO"; then :
2146
2147 else
2148 eval "$3=yes"
2149 fi
2150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2151 fi
2152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153 fi
2154 eval ac_res=\$$3
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2156 $as_echo "$ac_res" >&6; }
2157 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2158
2159 } # ac_fn_c_check_type
2160 cat >config.log <<_ACEOF
2161 This file contains any messages produced by compilers while
2162 running configure, to aid debugging if configure makes a mistake.
2163
2164 It was created by sim $as_me 0, which was
2165 generated by GNU Autoconf 2.69. Invocation command line was
2166
2167 $ $0 $@
2168
2169 _ACEOF
2170 exec 5>>config.log
2171 {
2172 cat <<_ASUNAME
2173 ## --------- ##
2174 ## Platform. ##
2175 ## --------- ##
2176
2177 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2178 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2179 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2180 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2181 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2182
2183 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2184 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2185
2186 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2187 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2188 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2189 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2190 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2191 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2192 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2193
2194 _ASUNAME
2195
2196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2197 for as_dir in $PATH
2198 do
2199 IFS=$as_save_IFS
2200 test -z "$as_dir" && as_dir=.
2201 $as_echo "PATH: $as_dir"
2202 done
2203 IFS=$as_save_IFS
2204
2205 } >&5
2206
2207 cat >&5 <<_ACEOF
2208
2209
2210 ## ----------- ##
2211 ## Core tests. ##
2212 ## ----------- ##
2213
2214 _ACEOF
2215
2216
2217 # Keep a trace of the command line.
2218 # Strip out --no-create and --no-recursion so they do not pile up.
2219 # Strip out --silent because we don't want to record it for future runs.
2220 # Also quote any args containing shell meta-characters.
2221 # Make two passes to allow for proper duplicate-argument suppression.
2222 ac_configure_args=
2223 ac_configure_args0=
2224 ac_configure_args1=
2225 ac_must_keep_next=false
2226 for ac_pass in 1 2
2227 do
2228 for ac_arg
2229 do
2230 case $ac_arg in
2231 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2232 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2233 | -silent | --silent | --silen | --sile | --sil)
2234 continue ;;
2235 *\'*)
2236 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2237 esac
2238 case $ac_pass in
2239 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2240 2)
2241 as_fn_append ac_configure_args1 " '$ac_arg'"
2242 if test $ac_must_keep_next = true; then
2243 ac_must_keep_next=false # Got value, back to normal.
2244 else
2245 case $ac_arg in
2246 *=* | --config-cache | -C | -disable-* | --disable-* \
2247 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2248 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2249 | -with-* | --with-* | -without-* | --without-* | --x)
2250 case "$ac_configure_args0 " in
2251 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2252 esac
2253 ;;
2254 -* ) ac_must_keep_next=true ;;
2255 esac
2256 fi
2257 as_fn_append ac_configure_args " '$ac_arg'"
2258 ;;
2259 esac
2260 done
2261 done
2262 { ac_configure_args0=; unset ac_configure_args0;}
2263 { ac_configure_args1=; unset ac_configure_args1;}
2264
2265 # When interrupted or exit'd, cleanup temporary files, and complete
2266 # config.log. We remove comments because anyway the quotes in there
2267 # would cause problems or look ugly.
2268 # WARNING: Use '\'' to represent an apostrophe within the trap.
2269 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2270 trap 'exit_status=$?
2271 # Save into config.log some information that might help in debugging.
2272 {
2273 echo
2274
2275 $as_echo "## ---------------- ##
2276 ## Cache variables. ##
2277 ## ---------------- ##"
2278 echo
2279 # The following way of writing the cache mishandles newlines in values,
2280 (
2281 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2282 eval ac_val=\$$ac_var
2283 case $ac_val in #(
2284 *${as_nl}*)
2285 case $ac_var in #(
2286 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2287 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2288 esac
2289 case $ac_var in #(
2290 _ | IFS | as_nl) ;; #(
2291 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2292 *) { eval $ac_var=; unset $ac_var;} ;;
2293 esac ;;
2294 esac
2295 done
2296 (set) 2>&1 |
2297 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2298 *${as_nl}ac_space=\ *)
2299 sed -n \
2300 "s/'\''/'\''\\\\'\'''\''/g;
2301 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2302 ;; #(
2303 *)
2304 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2305 ;;
2306 esac |
2307 sort
2308 )
2309 echo
2310
2311 $as_echo "## ----------------- ##
2312 ## Output variables. ##
2313 ## ----------------- ##"
2314 echo
2315 for ac_var in $ac_subst_vars
2316 do
2317 eval ac_val=\$$ac_var
2318 case $ac_val in
2319 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2320 esac
2321 $as_echo "$ac_var='\''$ac_val'\''"
2322 done | sort
2323 echo
2324
2325 if test -n "$ac_subst_files"; then
2326 $as_echo "## ------------------- ##
2327 ## File substitutions. ##
2328 ## ------------------- ##"
2329 echo
2330 for ac_var in $ac_subst_files
2331 do
2332 eval ac_val=\$$ac_var
2333 case $ac_val in
2334 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2335 esac
2336 $as_echo "$ac_var='\''$ac_val'\''"
2337 done | sort
2338 echo
2339 fi
2340
2341 if test -s confdefs.h; then
2342 $as_echo "## ----------- ##
2343 ## confdefs.h. ##
2344 ## ----------- ##"
2345 echo
2346 cat confdefs.h
2347 echo
2348 fi
2349 test "$ac_signal" != 0 &&
2350 $as_echo "$as_me: caught signal $ac_signal"
2351 $as_echo "$as_me: exit $exit_status"
2352 } >&5
2353 rm -f core *.core core.conftest.* &&
2354 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2355 exit $exit_status
2356 ' 0
2357 for ac_signal in 1 2 13 15; do
2358 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2359 done
2360 ac_signal=0
2361
2362 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2363 rm -f -r conftest* confdefs.h
2364
2365 $as_echo "/* confdefs.h */" > confdefs.h
2366
2367 # Predefined preprocessor variables.
2368
2369 cat >>confdefs.h <<_ACEOF
2370 #define PACKAGE_NAME "$PACKAGE_NAME"
2371 _ACEOF
2372
2373 cat >>confdefs.h <<_ACEOF
2374 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2375 _ACEOF
2376
2377 cat >>confdefs.h <<_ACEOF
2378 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2379 _ACEOF
2380
2381 cat >>confdefs.h <<_ACEOF
2382 #define PACKAGE_STRING "$PACKAGE_STRING"
2383 _ACEOF
2384
2385 cat >>confdefs.h <<_ACEOF
2386 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2387 _ACEOF
2388
2389 cat >>confdefs.h <<_ACEOF
2390 #define PACKAGE_URL "$PACKAGE_URL"
2391 _ACEOF
2392
2393
2394 # Let the site file select an alternate cache file if it wants to.
2395 # Prefer an explicitly selected file to automatically selected ones.
2396 ac_site_file1=NONE
2397 ac_site_file2=NONE
2398 if test -n "$CONFIG_SITE"; then
2399 # We do not want a PATH search for config.site.
2400 case $CONFIG_SITE in #((
2401 -*) ac_site_file1=./$CONFIG_SITE;;
2402 */*) ac_site_file1=$CONFIG_SITE;;
2403 *) ac_site_file1=./$CONFIG_SITE;;
2404 esac
2405 elif test "x$prefix" != xNONE; then
2406 ac_site_file1=$prefix/share/config.site
2407 ac_site_file2=$prefix/etc/config.site
2408 else
2409 ac_site_file1=$ac_default_prefix/share/config.site
2410 ac_site_file2=$ac_default_prefix/etc/config.site
2411 fi
2412 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2413 do
2414 test "x$ac_site_file" = xNONE && continue
2415 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2417 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2418 sed 's/^/| /' "$ac_site_file" >&5
2419 . "$ac_site_file" \
2420 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2421 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2422 as_fn_error $? "failed to load site script $ac_site_file
2423 See \`config.log' for more details" "$LINENO" 5; }
2424 fi
2425 done
2426
2427 if test -r "$cache_file"; then
2428 # Some versions of bash will fail to source /dev/null (special files
2429 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2430 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2432 $as_echo "$as_me: loading cache $cache_file" >&6;}
2433 case $cache_file in
2434 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2435 *) . "./$cache_file";;
2436 esac
2437 fi
2438 else
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2440 $as_echo "$as_me: creating cache $cache_file" >&6;}
2441 >$cache_file
2442 fi
2443
2444 as_fn_append ac_header_list " dlfcn.h"
2445 as_fn_append ac_header_list " fcntl.h"
2446 as_fn_append ac_header_list " fpu_control.h"
2447 as_fn_append ac_header_list " termios.h"
2448 as_fn_append ac_header_list " unistd.h"
2449 as_fn_append ac_header_list " utime.h"
2450 as_fn_append ac_header_list " linux/if_tun.h"
2451 as_fn_append ac_header_list " linux/mii.h"
2452 as_fn_append ac_header_list " linux/types.h"
2453 as_fn_append ac_header_list " net/if.h"
2454 as_fn_append ac_header_list " netinet/in.h"
2455 as_fn_append ac_header_list " netinet/tcp.h"
2456 as_fn_append ac_header_list " sys/ioctl.h"
2457 as_fn_append ac_header_list " sys/mman.h"
2458 as_fn_append ac_header_list " sys/mount.h"
2459 as_fn_append ac_header_list " sys/param.h"
2460 as_fn_append ac_header_list " sys/resource.h"
2461 as_fn_append ac_header_list " sys/socket.h"
2462 as_fn_append ac_header_list " sys/stat.h"
2463 as_fn_append ac_header_list " sys/statfs.h"
2464 as_fn_append ac_header_list " sys/termio.h"
2465 as_fn_append ac_header_list " sys/termios.h"
2466 as_fn_append ac_header_list " sys/types.h"
2467 as_fn_append ac_header_list " sys/vfs.h"
2468 as_fn_append ac_func_list " __setfpucw"
2469 as_fn_append ac_func_list " access"
2470 as_fn_append ac_func_list " aint"
2471 as_fn_append ac_func_list " anint"
2472 as_fn_append ac_func_list " cfgetispeed"
2473 as_fn_append ac_func_list " cfgetospeed"
2474 as_fn_append ac_func_list " cfsetispeed"
2475 as_fn_append ac_func_list " cfsetospeed"
2476 as_fn_append ac_func_list " chdir"
2477 as_fn_append ac_func_list " chmod"
2478 as_fn_append ac_func_list " dup"
2479 as_fn_append ac_func_list " dup2"
2480 as_fn_append ac_func_list " execv"
2481 as_fn_append ac_func_list " execve"
2482 as_fn_append ac_func_list " fcntl"
2483 as_fn_append ac_func_list " fork"
2484 as_fn_append ac_func_list " fstat"
2485 as_fn_append ac_func_list " fstatfs"
2486 as_fn_append ac_func_list " ftruncate"
2487 as_fn_append ac_func_list " getdirentries"
2488 as_fn_append ac_func_list " getegid"
2489 as_fn_append ac_func_list " geteuid"
2490 as_fn_append ac_func_list " getgid"
2491 as_fn_append ac_func_list " getpid"
2492 as_fn_append ac_func_list " getppid"
2493 as_fn_append ac_func_list " getrusage"
2494 as_fn_append ac_func_list " gettimeofday"
2495 as_fn_append ac_func_list " getuid"
2496 as_fn_append ac_func_list " ioctl"
2497 as_fn_append ac_func_list " kill"
2498 as_fn_append ac_func_list " link"
2499 as_fn_append ac_func_list " lseek"
2500 as_fn_append ac_func_list " mmap"
2501 as_fn_append ac_func_list " munmap"
2502 as_fn_append ac_func_list " pipe"
2503 as_fn_append ac_func_list " posix_fallocate"
2504 as_fn_append ac_func_list " pread"
2505 as_fn_append ac_func_list " rmdir"
2506 as_fn_append ac_func_list " setregid"
2507 as_fn_append ac_func_list " setreuid"
2508 as_fn_append ac_func_list " setgid"
2509 as_fn_append ac_func_list " setuid"
2510 as_fn_append ac_func_list " sigaction"
2511 as_fn_append ac_func_list " sigprocmask"
2512 as_fn_append ac_func_list " sqrt"
2513 as_fn_append ac_func_list " stat"
2514 as_fn_append ac_func_list " strsignal"
2515 as_fn_append ac_func_list " symlink"
2516 as_fn_append ac_func_list " tcdrain"
2517 as_fn_append ac_func_list " tcflow"
2518 as_fn_append ac_func_list " tcflush"
2519 as_fn_append ac_func_list " tcgetattr"
2520 as_fn_append ac_func_list " tcgetpgrp"
2521 as_fn_append ac_func_list " tcsendbreak"
2522 as_fn_append ac_func_list " tcsetattr"
2523 as_fn_append ac_func_list " tcsetpgrp"
2524 as_fn_append ac_func_list " time"
2525 as_fn_append ac_func_list " truncate"
2526 as_fn_append ac_func_list " umask"
2527 as_fn_append ac_func_list " unlink"
2528 as_fn_append ac_func_list " utime"
2529 # Check that the precious variables saved in the cache have kept the same
2530 # value.
2531 ac_cache_corrupted=false
2532 for ac_var in $ac_precious_vars; do
2533 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2534 eval ac_new_set=\$ac_env_${ac_var}_set
2535 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2536 eval ac_new_val=\$ac_env_${ac_var}_value
2537 case $ac_old_set,$ac_new_set in
2538 set,)
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2540 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2541 ac_cache_corrupted=: ;;
2542 ,set)
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2544 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2545 ac_cache_corrupted=: ;;
2546 ,);;
2547 *)
2548 if test "x$ac_old_val" != "x$ac_new_val"; then
2549 # differences in whitespace do not lead to failure.
2550 ac_old_val_w=`echo x $ac_old_val`
2551 ac_new_val_w=`echo x $ac_new_val`
2552 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2554 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2555 ac_cache_corrupted=:
2556 else
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2558 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2559 eval $ac_var=\$ac_old_val
2560 fi
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2562 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2564 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2565 fi;;
2566 esac
2567 # Pass precious variables to config.status.
2568 if test "$ac_new_set" = set; then
2569 case $ac_new_val in
2570 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2571 *) ac_arg=$ac_var=$ac_new_val ;;
2572 esac
2573 case " $ac_configure_args " in
2574 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2575 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2576 esac
2577 fi
2578 done
2579 if $ac_cache_corrupted; then
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2583 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2584 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2585 fi
2586 ## -------------------- ##
2587 ## Main body of script. ##
2588 ## -------------------- ##
2589
2590 ac_ext=c
2591 ac_cpp='$CPP $CPPFLAGS'
2592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2595
2596
2597
2598
2599
2600
2601
2602
2603 # Check whether --with-pkgversion was given.
2604 if test "${with_pkgversion+set}" = set; then :
2605 withval=$with_pkgversion; case "$withval" in
2606 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
2607 no) PKGVERSION= ;;
2608 *) PKGVERSION="($withval) " ;;
2609 esac
2610 else
2611 PKGVERSION="(SIM) "
2612
2613 fi
2614
2615
2616
2617
2618 cat >>confdefs.h <<_ACEOF
2619 #define PKGVERSION "$PKGVERSION"
2620 _ACEOF
2621
2622
2623
2624 # Check whether --with-bugurl was given.
2625 if test "${with_bugurl+set}" = set; then :
2626 withval=$with_bugurl; case "$withval" in
2627 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
2628 no) BUGURL=
2629 ;;
2630 *) BUGURL="$withval"
2631 ;;
2632 esac
2633 else
2634 BUGURL="$PACKAGE_BUGREPORT"
2635
2636 fi
2637
2638 case ${BUGURL} in
2639 "")
2640 REPORT_BUGS_TO=
2641 REPORT_BUGS_TEXI=
2642 ;;
2643 *)
2644 REPORT_BUGS_TO="<$BUGURL>"
2645 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
2646 ;;
2647 esac;
2648
2649
2650
2651
2652 cat >>confdefs.h <<_ACEOF
2653 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
2654 _ACEOF
2655
2656
2657 ac_config_headers="$ac_config_headers config.h"
2658
2659
2660 ac_aux_dir=
2661 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2662 if test -f "$ac_dir/install-sh"; then
2663 ac_aux_dir=$ac_dir
2664 ac_install_sh="$ac_aux_dir/install-sh -c"
2665 break
2666 elif test -f "$ac_dir/install.sh"; then
2667 ac_aux_dir=$ac_dir
2668 ac_install_sh="$ac_aux_dir/install.sh -c"
2669 break
2670 elif test -f "$ac_dir/shtool"; then
2671 ac_aux_dir=$ac_dir
2672 ac_install_sh="$ac_aux_dir/shtool install -c"
2673 break
2674 fi
2675 done
2676 if test -z "$ac_aux_dir"; then
2677 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2678 fi
2679
2680 # These three variables are undocumented and unsupported,
2681 # and are intended to be withdrawn in a future Autoconf release.
2682 # They can cause serious problems if a builder's source tree is in a directory
2683 # whose full name contains unusual characters.
2684 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2685 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2686 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2687
2688
2689 # Make sure we can run config.sub.
2690 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2691 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2692
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2694 $as_echo_n "checking build system type... " >&6; }
2695 if ${ac_cv_build+:} false; then :
2696 $as_echo_n "(cached) " >&6
2697 else
2698 ac_build_alias=$build_alias
2699 test "x$ac_build_alias" = x &&
2700 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2701 test "x$ac_build_alias" = x &&
2702 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2703 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2704 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2705
2706 fi
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2708 $as_echo "$ac_cv_build" >&6; }
2709 case $ac_cv_build in
2710 *-*-*) ;;
2711 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2712 esac
2713 build=$ac_cv_build
2714 ac_save_IFS=$IFS; IFS='-'
2715 set x $ac_cv_build
2716 shift
2717 build_cpu=$1
2718 build_vendor=$2
2719 shift; shift
2720 # Remember, the first character of IFS is used to create $*,
2721 # except with old shells:
2722 build_os=$*
2723 IFS=$ac_save_IFS
2724 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2725
2726
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2728 $as_echo_n "checking host system type... " >&6; }
2729 if ${ac_cv_host+:} false; then :
2730 $as_echo_n "(cached) " >&6
2731 else
2732 if test "x$host_alias" = x; then
2733 ac_cv_host=$ac_cv_build
2734 else
2735 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2736 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2737 fi
2738
2739 fi
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2741 $as_echo "$ac_cv_host" >&6; }
2742 case $ac_cv_host in
2743 *-*-*) ;;
2744 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2745 esac
2746 host=$ac_cv_host
2747 ac_save_IFS=$IFS; IFS='-'
2748 set x $ac_cv_host
2749 shift
2750 host_cpu=$1
2751 host_vendor=$2
2752 shift; shift
2753 # Remember, the first character of IFS is used to create $*,
2754 # except with old shells:
2755 host_os=$*
2756 IFS=$ac_save_IFS
2757 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2758
2759
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2761 $as_echo_n "checking target system type... " >&6; }
2762 if ${ac_cv_target+:} false; then :
2763 $as_echo_n "(cached) " >&6
2764 else
2765 if test "x$target_alias" = x; then
2766 ac_cv_target=$ac_cv_host
2767 else
2768 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2769 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2770 fi
2771
2772 fi
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2774 $as_echo "$ac_cv_target" >&6; }
2775 case $ac_cv_target in
2776 *-*-*) ;;
2777 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2778 esac
2779 target=$ac_cv_target
2780 ac_save_IFS=$IFS; IFS='-'
2781 set x $ac_cv_target
2782 shift
2783 target_cpu=$1
2784 target_vendor=$2
2785 shift; shift
2786 # Remember, the first character of IFS is used to create $*,
2787 # except with old shells:
2788 target_os=$*
2789 IFS=$ac_save_IFS
2790 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2791
2792
2793 # The aliases save the names the user supplied, while $host etc.
2794 # will get canonicalized.
2795 test -n "$target_alias" &&
2796 test "$program_prefix$program_suffix$program_transform_name" = \
2797 NONENONEs,x,x, &&
2798 program_prefix=${target_alias}-
2799 # Expand $ac_aux_dir to an absolute path.
2800 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2801
2802 ac_ext=c
2803 ac_cpp='$CPP $CPPFLAGS'
2804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2807 if test -n "$ac_tool_prefix"; then
2808 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2809 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2811 $as_echo_n "checking for $ac_word... " >&6; }
2812 if ${ac_cv_prog_CC+:} false; then :
2813 $as_echo_n "(cached) " >&6
2814 else
2815 if test -n "$CC"; then
2816 ac_cv_prog_CC="$CC" # Let the user override the test.
2817 else
2818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819 for as_dir in $PATH
2820 do
2821 IFS=$as_save_IFS
2822 test -z "$as_dir" && as_dir=.
2823 for ac_exec_ext in '' $ac_executable_extensions; do
2824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2825 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2827 break 2
2828 fi
2829 done
2830 done
2831 IFS=$as_save_IFS
2832
2833 fi
2834 fi
2835 CC=$ac_cv_prog_CC
2836 if test -n "$CC"; then
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2838 $as_echo "$CC" >&6; }
2839 else
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2841 $as_echo "no" >&6; }
2842 fi
2843
2844
2845 fi
2846 if test -z "$ac_cv_prog_CC"; then
2847 ac_ct_CC=$CC
2848 # Extract the first word of "gcc", so it can be a program name with args.
2849 set dummy gcc; ac_word=$2
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2851 $as_echo_n "checking for $ac_word... " >&6; }
2852 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2853 $as_echo_n "(cached) " >&6
2854 else
2855 if test -n "$ac_ct_CC"; then
2856 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2857 else
2858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2859 for as_dir in $PATH
2860 do
2861 IFS=$as_save_IFS
2862 test -z "$as_dir" && as_dir=.
2863 for ac_exec_ext in '' $ac_executable_extensions; do
2864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2865 ac_cv_prog_ac_ct_CC="gcc"
2866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2867 break 2
2868 fi
2869 done
2870 done
2871 IFS=$as_save_IFS
2872
2873 fi
2874 fi
2875 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2876 if test -n "$ac_ct_CC"; then
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2878 $as_echo "$ac_ct_CC" >&6; }
2879 else
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2881 $as_echo "no" >&6; }
2882 fi
2883
2884 if test "x$ac_ct_CC" = x; then
2885 CC=""
2886 else
2887 case $cross_compiling:$ac_tool_warned in
2888 yes:)
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2891 ac_tool_warned=yes ;;
2892 esac
2893 CC=$ac_ct_CC
2894 fi
2895 else
2896 CC="$ac_cv_prog_CC"
2897 fi
2898
2899 if test -z "$CC"; then
2900 if test -n "$ac_tool_prefix"; then
2901 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2902 set dummy ${ac_tool_prefix}cc; ac_word=$2
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2904 $as_echo_n "checking for $ac_word... " >&6; }
2905 if ${ac_cv_prog_CC+:} false; then :
2906 $as_echo_n "(cached) " >&6
2907 else
2908 if test -n "$CC"; then
2909 ac_cv_prog_CC="$CC" # Let the user override the test.
2910 else
2911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2912 for as_dir in $PATH
2913 do
2914 IFS=$as_save_IFS
2915 test -z "$as_dir" && as_dir=.
2916 for ac_exec_ext in '' $ac_executable_extensions; do
2917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2918 ac_cv_prog_CC="${ac_tool_prefix}cc"
2919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2920 break 2
2921 fi
2922 done
2923 done
2924 IFS=$as_save_IFS
2925
2926 fi
2927 fi
2928 CC=$ac_cv_prog_CC
2929 if test -n "$CC"; then
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2931 $as_echo "$CC" >&6; }
2932 else
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2934 $as_echo "no" >&6; }
2935 fi
2936
2937
2938 fi
2939 fi
2940 if test -z "$CC"; then
2941 # Extract the first word of "cc", so it can be a program name with args.
2942 set dummy cc; ac_word=$2
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2944 $as_echo_n "checking for $ac_word... " >&6; }
2945 if ${ac_cv_prog_CC+:} false; then :
2946 $as_echo_n "(cached) " >&6
2947 else
2948 if test -n "$CC"; then
2949 ac_cv_prog_CC="$CC" # Let the user override the test.
2950 else
2951 ac_prog_rejected=no
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 for as_dir in $PATH
2954 do
2955 IFS=$as_save_IFS
2956 test -z "$as_dir" && as_dir=.
2957 for ac_exec_ext in '' $ac_executable_extensions; do
2958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2959 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2960 ac_prog_rejected=yes
2961 continue
2962 fi
2963 ac_cv_prog_CC="cc"
2964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2965 break 2
2966 fi
2967 done
2968 done
2969 IFS=$as_save_IFS
2970
2971 if test $ac_prog_rejected = yes; then
2972 # We found a bogon in the path, so make sure we never use it.
2973 set dummy $ac_cv_prog_CC
2974 shift
2975 if test $# != 0; then
2976 # We chose a different compiler from the bogus one.
2977 # However, it has the same basename, so the bogon will be chosen
2978 # first if we set CC to just the basename; use the full file name.
2979 shift
2980 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2981 fi
2982 fi
2983 fi
2984 fi
2985 CC=$ac_cv_prog_CC
2986 if test -n "$CC"; then
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2988 $as_echo "$CC" >&6; }
2989 else
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2991 $as_echo "no" >&6; }
2992 fi
2993
2994
2995 fi
2996 if test -z "$CC"; then
2997 if test -n "$ac_tool_prefix"; then
2998 for ac_prog in cl.exe
2999 do
3000 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3001 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3003 $as_echo_n "checking for $ac_word... " >&6; }
3004 if ${ac_cv_prog_CC+:} false; then :
3005 $as_echo_n "(cached) " >&6
3006 else
3007 if test -n "$CC"; then
3008 ac_cv_prog_CC="$CC" # Let the user override the test.
3009 else
3010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011 for as_dir in $PATH
3012 do
3013 IFS=$as_save_IFS
3014 test -z "$as_dir" && as_dir=.
3015 for ac_exec_ext in '' $ac_executable_extensions; do
3016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3017 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3019 break 2
3020 fi
3021 done
3022 done
3023 IFS=$as_save_IFS
3024
3025 fi
3026 fi
3027 CC=$ac_cv_prog_CC
3028 if test -n "$CC"; then
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3030 $as_echo "$CC" >&6; }
3031 else
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3033 $as_echo "no" >&6; }
3034 fi
3035
3036
3037 test -n "$CC" && break
3038 done
3039 fi
3040 if test -z "$CC"; then
3041 ac_ct_CC=$CC
3042 for ac_prog in cl.exe
3043 do
3044 # Extract the first word of "$ac_prog", so it can be a program name with args.
3045 set dummy $ac_prog; ac_word=$2
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3047 $as_echo_n "checking for $ac_word... " >&6; }
3048 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3049 $as_echo_n "(cached) " >&6
3050 else
3051 if test -n "$ac_ct_CC"; then
3052 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3053 else
3054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055 for as_dir in $PATH
3056 do
3057 IFS=$as_save_IFS
3058 test -z "$as_dir" && as_dir=.
3059 for ac_exec_ext in '' $ac_executable_extensions; do
3060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3061 ac_cv_prog_ac_ct_CC="$ac_prog"
3062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3063 break 2
3064 fi
3065 done
3066 done
3067 IFS=$as_save_IFS
3068
3069 fi
3070 fi
3071 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3072 if test -n "$ac_ct_CC"; then
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3074 $as_echo "$ac_ct_CC" >&6; }
3075 else
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077 $as_echo "no" >&6; }
3078 fi
3079
3080
3081 test -n "$ac_ct_CC" && break
3082 done
3083
3084 if test "x$ac_ct_CC" = x; then
3085 CC=""
3086 else
3087 case $cross_compiling:$ac_tool_warned in
3088 yes:)
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3091 ac_tool_warned=yes ;;
3092 esac
3093 CC=$ac_ct_CC
3094 fi
3095 fi
3096
3097 fi
3098
3099
3100 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3102 as_fn_error $? "no acceptable C compiler found in \$PATH
3103 See \`config.log' for more details" "$LINENO" 5; }
3104
3105 # Provide some information about the compiler.
3106 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3107 set X $ac_compile
3108 ac_compiler=$2
3109 for ac_option in --version -v -V -qversion; do
3110 { { ac_try="$ac_compiler $ac_option >&5"
3111 case "(($ac_try" in
3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3114 esac
3115 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3116 $as_echo "$ac_try_echo"; } >&5
3117 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3118 ac_status=$?
3119 if test -s conftest.err; then
3120 sed '10a\
3121 ... rest of stderr output deleted ...
3122 10q' conftest.err >conftest.er1
3123 cat conftest.er1 >&5
3124 fi
3125 rm -f conftest.er1 conftest.err
3126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3127 test $ac_status = 0; }
3128 done
3129
3130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3131 /* end confdefs.h. */
3132
3133 int
3134 main ()
3135 {
3136
3137 ;
3138 return 0;
3139 }
3140 _ACEOF
3141 ac_clean_files_save=$ac_clean_files
3142 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3143 # Try to create an executable without -o first, disregard a.out.
3144 # It will help us diagnose broken compilers, and finding out an intuition
3145 # of exeext.
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3147 $as_echo_n "checking whether the C compiler works... " >&6; }
3148 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3149
3150 # The possible output files:
3151 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3152
3153 ac_rmfiles=
3154 for ac_file in $ac_files
3155 do
3156 case $ac_file in
3157 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3158 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3159 esac
3160 done
3161 rm -f $ac_rmfiles
3162
3163 if { { ac_try="$ac_link_default"
3164 case "(($ac_try" in
3165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166 *) ac_try_echo=$ac_try;;
3167 esac
3168 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3169 $as_echo "$ac_try_echo"; } >&5
3170 (eval "$ac_link_default") 2>&5
3171 ac_status=$?
3172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3173 test $ac_status = 0; }; then :
3174 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3175 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3176 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3177 # so that the user can short-circuit this test for compilers unknown to
3178 # Autoconf.
3179 for ac_file in $ac_files ''
3180 do
3181 test -f "$ac_file" || continue
3182 case $ac_file in
3183 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3184 ;;
3185 [ab].out )
3186 # We found the default executable, but exeext='' is most
3187 # certainly right.
3188 break;;
3189 *.* )
3190 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3191 then :; else
3192 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3193 fi
3194 # We set ac_cv_exeext here because the later test for it is not
3195 # safe: cross compilers may not add the suffix if given an `-o'
3196 # argument, so we may need to know it at that point already.
3197 # Even if this section looks crufty: it has the advantage of
3198 # actually working.
3199 break;;
3200 * )
3201 break;;
3202 esac
3203 done
3204 test "$ac_cv_exeext" = no && ac_cv_exeext=
3205
3206 else
3207 ac_file=''
3208 fi
3209 if test -z "$ac_file"; then :
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3211 $as_echo "no" >&6; }
3212 $as_echo "$as_me: failed program was:" >&5
3213 sed 's/^/| /' conftest.$ac_ext >&5
3214
3215 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3217 as_fn_error 77 "C compiler cannot create executables
3218 See \`config.log' for more details" "$LINENO" 5; }
3219 else
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3221 $as_echo "yes" >&6; }
3222 fi
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3224 $as_echo_n "checking for C compiler default output file name... " >&6; }
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3226 $as_echo "$ac_file" >&6; }
3227 ac_exeext=$ac_cv_exeext
3228
3229 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3230 ac_clean_files=$ac_clean_files_save
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3232 $as_echo_n "checking for suffix of executables... " >&6; }
3233 if { { ac_try="$ac_link"
3234 case "(($ac_try" in
3235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236 *) ac_try_echo=$ac_try;;
3237 esac
3238 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3239 $as_echo "$ac_try_echo"; } >&5
3240 (eval "$ac_link") 2>&5
3241 ac_status=$?
3242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3243 test $ac_status = 0; }; then :
3244 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3245 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3246 # work properly (i.e., refer to `conftest.exe'), while it won't with
3247 # `rm'.
3248 for ac_file in conftest.exe conftest conftest.*; do
3249 test -f "$ac_file" || continue
3250 case $ac_file in
3251 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3252 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3253 break;;
3254 * ) break;;
3255 esac
3256 done
3257 else
3258 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3259 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3260 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3261 See \`config.log' for more details" "$LINENO" 5; }
3262 fi
3263 rm -f conftest conftest$ac_cv_exeext
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3265 $as_echo "$ac_cv_exeext" >&6; }
3266
3267 rm -f conftest.$ac_ext
3268 EXEEXT=$ac_cv_exeext
3269 ac_exeext=$EXEEXT
3270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3271 /* end confdefs.h. */
3272 #include <stdio.h>
3273 int
3274 main ()
3275 {
3276 FILE *f = fopen ("conftest.out", "w");
3277 return ferror (f) || fclose (f) != 0;
3278
3279 ;
3280 return 0;
3281 }
3282 _ACEOF
3283 ac_clean_files="$ac_clean_files conftest.out"
3284 # Check that the compiler produces executables we can run. If not, either
3285 # the compiler is broken, or we cross compile.
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3287 $as_echo_n "checking whether we are cross compiling... " >&6; }
3288 if test "$cross_compiling" != yes; then
3289 { { ac_try="$ac_link"
3290 case "(($ac_try" in
3291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292 *) ac_try_echo=$ac_try;;
3293 esac
3294 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3295 $as_echo "$ac_try_echo"; } >&5
3296 (eval "$ac_link") 2>&5
3297 ac_status=$?
3298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3299 test $ac_status = 0; }
3300 if { ac_try='./conftest$ac_cv_exeext'
3301 { { case "(($ac_try" in
3302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303 *) ac_try_echo=$ac_try;;
3304 esac
3305 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3306 $as_echo "$ac_try_echo"; } >&5
3307 (eval "$ac_try") 2>&5
3308 ac_status=$?
3309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3310 test $ac_status = 0; }; }; then
3311 cross_compiling=no
3312 else
3313 if test "$cross_compiling" = maybe; then
3314 cross_compiling=yes
3315 else
3316 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3318 as_fn_error $? "cannot run C compiled programs.
3319 If you meant to cross compile, use \`--host'.
3320 See \`config.log' for more details" "$LINENO" 5; }
3321 fi
3322 fi
3323 fi
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3325 $as_echo "$cross_compiling" >&6; }
3326
3327 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3328 ac_clean_files=$ac_clean_files_save
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3330 $as_echo_n "checking for suffix of object files... " >&6; }
3331 if ${ac_cv_objext+:} false; then :
3332 $as_echo_n "(cached) " >&6
3333 else
3334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3335 /* end confdefs.h. */
3336
3337 int
3338 main ()
3339 {
3340
3341 ;
3342 return 0;
3343 }
3344 _ACEOF
3345 rm -f conftest.o conftest.obj
3346 if { { ac_try="$ac_compile"
3347 case "(($ac_try" in
3348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349 *) ac_try_echo=$ac_try;;
3350 esac
3351 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3352 $as_echo "$ac_try_echo"; } >&5
3353 (eval "$ac_compile") 2>&5
3354 ac_status=$?
3355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3356 test $ac_status = 0; }; then :
3357 for ac_file in conftest.o conftest.obj conftest.*; do
3358 test -f "$ac_file" || continue;
3359 case $ac_file in
3360 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3361 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3362 break;;
3363 esac
3364 done
3365 else
3366 $as_echo "$as_me: failed program was:" >&5
3367 sed 's/^/| /' conftest.$ac_ext >&5
3368
3369 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3370 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3371 as_fn_error $? "cannot compute suffix of object files: cannot compile
3372 See \`config.log' for more details" "$LINENO" 5; }
3373 fi
3374 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3375 fi
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3377 $as_echo "$ac_cv_objext" >&6; }
3378 OBJEXT=$ac_cv_objext
3379 ac_objext=$OBJEXT
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3381 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3382 if ${ac_cv_c_compiler_gnu+:} false; then :
3383 $as_echo_n "(cached) " >&6
3384 else
3385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3386 /* end confdefs.h. */
3387
3388 int
3389 main ()
3390 {
3391 #ifndef __GNUC__
3392 choke me
3393 #endif
3394
3395 ;
3396 return 0;
3397 }
3398 _ACEOF
3399 if ac_fn_c_try_compile "$LINENO"; then :
3400 ac_compiler_gnu=yes
3401 else
3402 ac_compiler_gnu=no
3403 fi
3404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3405 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3406
3407 fi
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3409 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3410 if test $ac_compiler_gnu = yes; then
3411 GCC=yes
3412 else
3413 GCC=
3414 fi
3415 ac_test_CFLAGS=${CFLAGS+set}
3416 ac_save_CFLAGS=$CFLAGS
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3418 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3419 if ${ac_cv_prog_cc_g+:} false; then :
3420 $as_echo_n "(cached) " >&6
3421 else
3422 ac_save_c_werror_flag=$ac_c_werror_flag
3423 ac_c_werror_flag=yes
3424 ac_cv_prog_cc_g=no
3425 CFLAGS="-g"
3426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3427 /* end confdefs.h. */
3428
3429 int
3430 main ()
3431 {
3432
3433 ;
3434 return 0;
3435 }
3436 _ACEOF
3437 if ac_fn_c_try_compile "$LINENO"; then :
3438 ac_cv_prog_cc_g=yes
3439 else
3440 CFLAGS=""
3441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3442 /* end confdefs.h. */
3443
3444 int
3445 main ()
3446 {
3447
3448 ;
3449 return 0;
3450 }
3451 _ACEOF
3452 if ac_fn_c_try_compile "$LINENO"; then :
3453
3454 else
3455 ac_c_werror_flag=$ac_save_c_werror_flag
3456 CFLAGS="-g"
3457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3458 /* end confdefs.h. */
3459
3460 int
3461 main ()
3462 {
3463
3464 ;
3465 return 0;
3466 }
3467 _ACEOF
3468 if ac_fn_c_try_compile "$LINENO"; then :
3469 ac_cv_prog_cc_g=yes
3470 fi
3471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3472 fi
3473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3474 fi
3475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3476 ac_c_werror_flag=$ac_save_c_werror_flag
3477 fi
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3479 $as_echo "$ac_cv_prog_cc_g" >&6; }
3480 if test "$ac_test_CFLAGS" = set; then
3481 CFLAGS=$ac_save_CFLAGS
3482 elif test $ac_cv_prog_cc_g = yes; then
3483 if test "$GCC" = yes; then
3484 CFLAGS="-g -O2"
3485 else
3486 CFLAGS="-g"
3487 fi
3488 else
3489 if test "$GCC" = yes; then
3490 CFLAGS="-O2"
3491 else
3492 CFLAGS=
3493 fi
3494 fi
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3496 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3497 if ${ac_cv_prog_cc_c89+:} false; then :
3498 $as_echo_n "(cached) " >&6
3499 else
3500 ac_cv_prog_cc_c89=no
3501 ac_save_CC=$CC
3502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3503 /* end confdefs.h. */
3504 #include <stdarg.h>
3505 #include <stdio.h>
3506 struct stat;
3507 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3508 struct buf { int x; };
3509 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3510 static char *e (p, i)
3511 char **p;
3512 int i;
3513 {
3514 return p[i];
3515 }
3516 static char *f (char * (*g) (char **, int), char **p, ...)
3517 {
3518 char *s;
3519 va_list v;
3520 va_start (v,p);
3521 s = g (p, va_arg (v,int));
3522 va_end (v);
3523 return s;
3524 }
3525
3526 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3527 function prototypes and stuff, but not '\xHH' hex character constants.
3528 These don't provoke an error unfortunately, instead are silently treated
3529 as 'x'. The following induces an error, until -std is added to get
3530 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3531 array size at least. It's necessary to write '\x00'==0 to get something
3532 that's true only with -std. */
3533 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3534
3535 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3536 inside strings and character constants. */
3537 #define FOO(x) 'x'
3538 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3539
3540 int test (int i, double x);
3541 struct s1 {int (*f) (int a);};
3542 struct s2 {int (*f) (double a);};
3543 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3544 int argc;
3545 char **argv;
3546 int
3547 main ()
3548 {
3549 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3550 ;
3551 return 0;
3552 }
3553 _ACEOF
3554 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3555 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3556 do
3557 CC="$ac_save_CC $ac_arg"
3558 if ac_fn_c_try_compile "$LINENO"; then :
3559 ac_cv_prog_cc_c89=$ac_arg
3560 fi
3561 rm -f core conftest.err conftest.$ac_objext
3562 test "x$ac_cv_prog_cc_c89" != "xno" && break
3563 done
3564 rm -f conftest.$ac_ext
3565 CC=$ac_save_CC
3566
3567 fi
3568 # AC_CACHE_VAL
3569 case "x$ac_cv_prog_cc_c89" in
3570 x)
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3572 $as_echo "none needed" >&6; } ;;
3573 xno)
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3575 $as_echo "unsupported" >&6; } ;;
3576 *)
3577 CC="$CC $ac_cv_prog_cc_c89"
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3579 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3580 esac
3581 if test "x$ac_cv_prog_cc_c89" != xno; then :
3582
3583 fi
3584
3585 ac_ext=c
3586 ac_cpp='$CPP $CPPFLAGS'
3587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3590
3591 ac_ext=c
3592 ac_cpp='$CPP $CPPFLAGS'
3593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3597 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3598 if ${am_cv_prog_cc_c_o+:} false; then :
3599 $as_echo_n "(cached) " >&6
3600 else
3601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3602 /* end confdefs.h. */
3603
3604 int
3605 main ()
3606 {
3607
3608 ;
3609 return 0;
3610 }
3611 _ACEOF
3612 # Make sure it works both with $CC and with simple cc.
3613 # Following AC_PROG_CC_C_O, we do the test twice because some
3614 # compilers refuse to overwrite an existing .o file with -o,
3615 # though they will create one.
3616 am_cv_prog_cc_c_o=yes
3617 for am_i in 1 2; do
3618 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3619 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3620 ac_status=$?
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); } \
3623 && test -f conftest2.$ac_objext; then
3624 : OK
3625 else
3626 am_cv_prog_cc_c_o=no
3627 break
3628 fi
3629 done
3630 rm -f core conftest*
3631 unset am_i
3632 fi
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3634 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3635 if test "$am_cv_prog_cc_c_o" != yes; then
3636 # Losing compiler, so override with the script.
3637 # FIXME: It is wrong to rewrite CC.
3638 # But if we don't then we get into trouble of one sort or another.
3639 # A longer-term fix would be to have automake use am__CC in this case,
3640 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3641 CC="$am_aux_dir/compile $CC"
3642 fi
3643 ac_ext=c
3644 ac_cpp='$CPP $CPPFLAGS'
3645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3648
3649
3650
3651 ac_ext=c
3652 ac_cpp='$CPP $CPPFLAGS'
3653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3657 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3658 # On Suns, sometimes $CPP names a directory.
3659 if test -n "$CPP" && test -d "$CPP"; then
3660 CPP=
3661 fi
3662 if test -z "$CPP"; then
3663 if ${ac_cv_prog_CPP+:} false; then :
3664 $as_echo_n "(cached) " >&6
3665 else
3666 # Double quotes because CPP needs to be expanded
3667 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3668 do
3669 ac_preproc_ok=false
3670 for ac_c_preproc_warn_flag in '' yes
3671 do
3672 # Use a header file that comes with gcc, so configuring glibc
3673 # with a fresh cross-compiler works.
3674 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3675 # <limits.h> exists even on freestanding compilers.
3676 # On the NeXT, cc -E runs the code through the compiler's parser,
3677 # not just through cpp. "Syntax error" is here to catch this case.
3678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3679 /* end confdefs.h. */
3680 #ifdef __STDC__
3681 # include <limits.h>
3682 #else
3683 # include <assert.h>
3684 #endif
3685 Syntax error
3686 _ACEOF
3687 if ac_fn_c_try_cpp "$LINENO"; then :
3688
3689 else
3690 # Broken: fails on valid input.
3691 continue
3692 fi
3693 rm -f conftest.err conftest.i conftest.$ac_ext
3694
3695 # OK, works on sane cases. Now check whether nonexistent headers
3696 # can be detected and how.
3697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698 /* end confdefs.h. */
3699 #include <ac_nonexistent.h>
3700 _ACEOF
3701 if ac_fn_c_try_cpp "$LINENO"; then :
3702 # Broken: success on invalid input.
3703 continue
3704 else
3705 # Passes both tests.
3706 ac_preproc_ok=:
3707 break
3708 fi
3709 rm -f conftest.err conftest.i conftest.$ac_ext
3710
3711 done
3712 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3713 rm -f conftest.i conftest.err conftest.$ac_ext
3714 if $ac_preproc_ok; then :
3715 break
3716 fi
3717
3718 done
3719 ac_cv_prog_CPP=$CPP
3720
3721 fi
3722 CPP=$ac_cv_prog_CPP
3723 else
3724 ac_cv_prog_CPP=$CPP
3725 fi
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3727 $as_echo "$CPP" >&6; }
3728 ac_preproc_ok=false
3729 for ac_c_preproc_warn_flag in '' yes
3730 do
3731 # Use a header file that comes with gcc, so configuring glibc
3732 # with a fresh cross-compiler works.
3733 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3734 # <limits.h> exists even on freestanding compilers.
3735 # On the NeXT, cc -E runs the code through the compiler's parser,
3736 # not just through cpp. "Syntax error" is here to catch this case.
3737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3738 /* end confdefs.h. */
3739 #ifdef __STDC__
3740 # include <limits.h>
3741 #else
3742 # include <assert.h>
3743 #endif
3744 Syntax error
3745 _ACEOF
3746 if ac_fn_c_try_cpp "$LINENO"; then :
3747
3748 else
3749 # Broken: fails on valid input.
3750 continue
3751 fi
3752 rm -f conftest.err conftest.i conftest.$ac_ext
3753
3754 # OK, works on sane cases. Now check whether nonexistent headers
3755 # can be detected and how.
3756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3757 /* end confdefs.h. */
3758 #include <ac_nonexistent.h>
3759 _ACEOF
3760 if ac_fn_c_try_cpp "$LINENO"; then :
3761 # Broken: success on invalid input.
3762 continue
3763 else
3764 # Passes both tests.
3765 ac_preproc_ok=:
3766 break
3767 fi
3768 rm -f conftest.err conftest.i conftest.$ac_ext
3769
3770 done
3771 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3772 rm -f conftest.i conftest.err conftest.$ac_ext
3773 if $ac_preproc_ok; then :
3774
3775 else
3776 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3777 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3778 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3779 See \`config.log' for more details" "$LINENO" 5; }
3780 fi
3781
3782 ac_ext=c
3783 ac_cpp='$CPP $CPPFLAGS'
3784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3787
3788
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3790 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3791 if ${ac_cv_path_GREP+:} false; then :
3792 $as_echo_n "(cached) " >&6
3793 else
3794 if test -z "$GREP"; then
3795 ac_path_GREP_found=false
3796 # Loop through the user's path and test for each of PROGNAME-LIST
3797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3799 do
3800 IFS=$as_save_IFS
3801 test -z "$as_dir" && as_dir=.
3802 for ac_prog in grep ggrep; do
3803 for ac_exec_ext in '' $ac_executable_extensions; do
3804 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3805 as_fn_executable_p "$ac_path_GREP" || continue
3806 # Check for GNU ac_path_GREP and select it if it is found.
3807 # Check for GNU $ac_path_GREP
3808 case `"$ac_path_GREP" --version 2>&1` in
3809 *GNU*)
3810 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3811 *)
3812 ac_count=0
3813 $as_echo_n 0123456789 >"conftest.in"
3814 while :
3815 do
3816 cat "conftest.in" "conftest.in" >"conftest.tmp"
3817 mv "conftest.tmp" "conftest.in"
3818 cp "conftest.in" "conftest.nl"
3819 $as_echo 'GREP' >> "conftest.nl"
3820 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3821 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3822 as_fn_arith $ac_count + 1 && ac_count=$as_val
3823 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3824 # Best one so far, save it but keep looking for a better one
3825 ac_cv_path_GREP="$ac_path_GREP"
3826 ac_path_GREP_max=$ac_count
3827 fi
3828 # 10*(2^10) chars as input seems more than enough
3829 test $ac_count -gt 10 && break
3830 done
3831 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3832 esac
3833
3834 $ac_path_GREP_found && break 3
3835 done
3836 done
3837 done
3838 IFS=$as_save_IFS
3839 if test -z "$ac_cv_path_GREP"; then
3840 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3841 fi
3842 else
3843 ac_cv_path_GREP=$GREP
3844 fi
3845
3846 fi
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3848 $as_echo "$ac_cv_path_GREP" >&6; }
3849 GREP="$ac_cv_path_GREP"
3850
3851
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3853 $as_echo_n "checking for egrep... " >&6; }
3854 if ${ac_cv_path_EGREP+:} false; then :
3855 $as_echo_n "(cached) " >&6
3856 else
3857 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3858 then ac_cv_path_EGREP="$GREP -E"
3859 else
3860 if test -z "$EGREP"; then
3861 ac_path_EGREP_found=false
3862 # Loop through the user's path and test for each of PROGNAME-LIST
3863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3865 do
3866 IFS=$as_save_IFS
3867 test -z "$as_dir" && as_dir=.
3868 for ac_prog in egrep; do
3869 for ac_exec_ext in '' $ac_executable_extensions; do
3870 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3871 as_fn_executable_p "$ac_path_EGREP" || continue
3872 # Check for GNU ac_path_EGREP and select it if it is found.
3873 # Check for GNU $ac_path_EGREP
3874 case `"$ac_path_EGREP" --version 2>&1` in
3875 *GNU*)
3876 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3877 *)
3878 ac_count=0
3879 $as_echo_n 0123456789 >"conftest.in"
3880 while :
3881 do
3882 cat "conftest.in" "conftest.in" >"conftest.tmp"
3883 mv "conftest.tmp" "conftest.in"
3884 cp "conftest.in" "conftest.nl"
3885 $as_echo 'EGREP' >> "conftest.nl"
3886 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3887 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3888 as_fn_arith $ac_count + 1 && ac_count=$as_val
3889 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3890 # Best one so far, save it but keep looking for a better one
3891 ac_cv_path_EGREP="$ac_path_EGREP"
3892 ac_path_EGREP_max=$ac_count
3893 fi
3894 # 10*(2^10) chars as input seems more than enough
3895 test $ac_count -gt 10 && break
3896 done
3897 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3898 esac
3899
3900 $ac_path_EGREP_found && break 3
3901 done
3902 done
3903 done
3904 IFS=$as_save_IFS
3905 if test -z "$ac_cv_path_EGREP"; then
3906 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3907 fi
3908 else
3909 ac_cv_path_EGREP=$EGREP
3910 fi
3911
3912 fi
3913 fi
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3915 $as_echo "$ac_cv_path_EGREP" >&6; }
3916 EGREP="$ac_cv_path_EGREP"
3917
3918
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3920 $as_echo_n "checking for ANSI C header files... " >&6; }
3921 if ${ac_cv_header_stdc+:} false; then :
3922 $as_echo_n "(cached) " >&6
3923 else
3924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3925 /* end confdefs.h. */
3926 #include <stdlib.h>
3927 #include <stdarg.h>
3928 #include <string.h>
3929 #include <float.h>
3930
3931 int
3932 main ()
3933 {
3934
3935 ;
3936 return 0;
3937 }
3938 _ACEOF
3939 if ac_fn_c_try_compile "$LINENO"; then :
3940 ac_cv_header_stdc=yes
3941 else
3942 ac_cv_header_stdc=no
3943 fi
3944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3945
3946 if test $ac_cv_header_stdc = yes; then
3947 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3949 /* end confdefs.h. */
3950 #include <string.h>
3951
3952 _ACEOF
3953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3954 $EGREP "memchr" >/dev/null 2>&1; then :
3955
3956 else
3957 ac_cv_header_stdc=no
3958 fi
3959 rm -f conftest*
3960
3961 fi
3962
3963 if test $ac_cv_header_stdc = yes; then
3964 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3966 /* end confdefs.h. */
3967 #include <stdlib.h>
3968
3969 _ACEOF
3970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3971 $EGREP "free" >/dev/null 2>&1; then :
3972
3973 else
3974 ac_cv_header_stdc=no
3975 fi
3976 rm -f conftest*
3977
3978 fi
3979
3980 if test $ac_cv_header_stdc = yes; then
3981 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3982 if test "$cross_compiling" = yes; then :
3983 :
3984 else
3985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986 /* end confdefs.h. */
3987 #include <ctype.h>
3988 #include <stdlib.h>
3989 #if ((' ' & 0x0FF) == 0x020)
3990 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3991 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3992 #else
3993 # define ISLOWER(c) \
3994 (('a' <= (c) && (c) <= 'i') \
3995 || ('j' <= (c) && (c) <= 'r') \
3996 || ('s' <= (c) && (c) <= 'z'))
3997 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3998 #endif
3999
4000 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4001 int
4002 main ()
4003 {
4004 int i;
4005 for (i = 0; i < 256; i++)
4006 if (XOR (islower (i), ISLOWER (i))
4007 || toupper (i) != TOUPPER (i))
4008 return 2;
4009 return 0;
4010 }
4011 _ACEOF
4012 if ac_fn_c_try_run "$LINENO"; then :
4013
4014 else
4015 ac_cv_header_stdc=no
4016 fi
4017 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4018 conftest.$ac_objext conftest.beam conftest.$ac_ext
4019 fi
4020
4021 fi
4022 fi
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4024 $as_echo "$ac_cv_header_stdc" >&6; }
4025 if test $ac_cv_header_stdc = yes; then
4026
4027 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4028
4029 fi
4030
4031 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4032 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4033 inttypes.h stdint.h unistd.h
4034 do :
4035 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4036 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4037 "
4038 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4039 cat >>confdefs.h <<_ACEOF
4040 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4041 _ACEOF
4042
4043 fi
4044
4045 done
4046
4047
4048
4049 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4050 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4051 MINIX=yes
4052 else
4053 MINIX=
4054 fi
4055
4056
4057 if test "$MINIX" = yes; then
4058
4059 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4060
4061
4062 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4063
4064
4065 $as_echo "#define _MINIX 1" >>confdefs.h
4066
4067 fi
4068
4069
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4071 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4072 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4073 $as_echo_n "(cached) " >&6
4074 else
4075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4076 /* end confdefs.h. */
4077
4078 # define __EXTENSIONS__ 1
4079 $ac_includes_default
4080 int
4081 main ()
4082 {
4083
4084 ;
4085 return 0;
4086 }
4087 _ACEOF
4088 if ac_fn_c_try_compile "$LINENO"; then :
4089 ac_cv_safe_to_define___extensions__=yes
4090 else
4091 ac_cv_safe_to_define___extensions__=no
4092 fi
4093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4094 fi
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4096 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4097 test $ac_cv_safe_to_define___extensions__ = yes &&
4098 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4099
4100 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4101
4102 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4103
4104 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4105
4106 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4107
4108
4109 test "$program_prefix" != NONE &&
4110 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4111 # Use a double $ so make ignores it.
4112 test "$program_suffix" != NONE &&
4113 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4114 # Double any \ or $.
4115 # By default was `s,x,x', remove it if useless.
4116 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4117 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4118
4119 # Find a good install program. We prefer a C program (faster),
4120 # so one script is as good as another. But avoid the broken or
4121 # incompatible versions:
4122 # SysV /etc/install, /usr/sbin/install
4123 # SunOS /usr/etc/install
4124 # IRIX /sbin/install
4125 # AIX /bin/install
4126 # AmigaOS /C/install, which installs bootblocks on floppy discs
4127 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4128 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4129 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4130 # OS/2's system install, which has a completely different semantic
4131 # ./install, which can be erroneously created by make from ./install.sh.
4132 # Reject install programs that cannot install multiple files.
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4134 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4135 if test -z "$INSTALL"; then
4136 if ${ac_cv_path_install+:} false; then :
4137 $as_echo_n "(cached) " >&6
4138 else
4139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140 for as_dir in $PATH
4141 do
4142 IFS=$as_save_IFS
4143 test -z "$as_dir" && as_dir=.
4144 # Account for people who put trailing slashes in PATH elements.
4145 case $as_dir/ in #((
4146 ./ | .// | /[cC]/* | \
4147 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4148 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4149 /usr/ucb/* ) ;;
4150 *)
4151 # OSF1 and SCO ODT 3.0 have their own names for install.
4152 # Don't use installbsd from OSF since it installs stuff as root
4153 # by default.
4154 for ac_prog in ginstall scoinst install; do
4155 for ac_exec_ext in '' $ac_executable_extensions; do
4156 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4157 if test $ac_prog = install &&
4158 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4159 # AIX install. It has an incompatible calling convention.
4160 :
4161 elif test $ac_prog = install &&
4162 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4163 # program-specific install script used by HP pwplus--don't use.
4164 :
4165 else
4166 rm -rf conftest.one conftest.two conftest.dir
4167 echo one > conftest.one
4168 echo two > conftest.two
4169 mkdir conftest.dir
4170 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4171 test -s conftest.one && test -s conftest.two &&
4172 test -s conftest.dir/conftest.one &&
4173 test -s conftest.dir/conftest.two
4174 then
4175 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4176 break 3
4177 fi
4178 fi
4179 fi
4180 done
4181 done
4182 ;;
4183 esac
4184
4185 done
4186 IFS=$as_save_IFS
4187
4188 rm -rf conftest.one conftest.two conftest.dir
4189
4190 fi
4191 if test "${ac_cv_path_install+set}" = set; then
4192 INSTALL=$ac_cv_path_install
4193 else
4194 # As a last resort, use the slow shell script. Don't cache a
4195 # value for INSTALL within a source directory, because that will
4196 # break other packages using the cache if that directory is
4197 # removed, or if the value is a relative name.
4198 INSTALL=$ac_install_sh
4199 fi
4200 fi
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4202 $as_echo "$INSTALL" >&6; }
4203
4204 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4205 # It thinks the first close brace ends the variable substitution.
4206 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4207
4208 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4209
4210 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4211
4212
4213
4214
4215
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4217 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4218 if ${ac_cv_c_bigendian+:} false; then :
4219 $as_echo_n "(cached) " >&6
4220 else
4221 ac_cv_c_bigendian=unknown
4222 # See if we're dealing with a universal compiler.
4223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224 /* end confdefs.h. */
4225 #ifndef __APPLE_CC__
4226 not a universal capable compiler
4227 #endif
4228 typedef int dummy;
4229
4230 _ACEOF
4231 if ac_fn_c_try_compile "$LINENO"; then :
4232
4233 # Check for potential -arch flags. It is not universal unless
4234 # there are at least two -arch flags with different values.
4235 ac_arch=
4236 ac_prev=
4237 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4238 if test -n "$ac_prev"; then
4239 case $ac_word in
4240 i?86 | x86_64 | ppc | ppc64)
4241 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4242 ac_arch=$ac_word
4243 else
4244 ac_cv_c_bigendian=universal
4245 break
4246 fi
4247 ;;
4248 esac
4249 ac_prev=
4250 elif test "x$ac_word" = "x-arch"; then
4251 ac_prev=arch
4252 fi
4253 done
4254 fi
4255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4256 if test $ac_cv_c_bigendian = unknown; then
4257 # See if sys/param.h defines the BYTE_ORDER macro.
4258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4259 /* end confdefs.h. */
4260 #include <sys/types.h>
4261 #include <sys/param.h>
4262
4263 int
4264 main ()
4265 {
4266 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4267 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4268 && LITTLE_ENDIAN)
4269 bogus endian macros
4270 #endif
4271
4272 ;
4273 return 0;
4274 }
4275 _ACEOF
4276 if ac_fn_c_try_compile "$LINENO"; then :
4277 # It does; now see whether it defined to BIG_ENDIAN or not.
4278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279 /* end confdefs.h. */
4280 #include <sys/types.h>
4281 #include <sys/param.h>
4282
4283 int
4284 main ()
4285 {
4286 #if BYTE_ORDER != BIG_ENDIAN
4287 not big endian
4288 #endif
4289
4290 ;
4291 return 0;
4292 }
4293 _ACEOF
4294 if ac_fn_c_try_compile "$LINENO"; then :
4295 ac_cv_c_bigendian=yes
4296 else
4297 ac_cv_c_bigendian=no
4298 fi
4299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4300 fi
4301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4302 fi
4303 if test $ac_cv_c_bigendian = unknown; then
4304 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4306 /* end confdefs.h. */
4307 #include <limits.h>
4308
4309 int
4310 main ()
4311 {
4312 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4313 bogus endian macros
4314 #endif
4315
4316 ;
4317 return 0;
4318 }
4319 _ACEOF
4320 if ac_fn_c_try_compile "$LINENO"; then :
4321 # It does; now see whether it defined to _BIG_ENDIAN or not.
4322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4323 /* end confdefs.h. */
4324 #include <limits.h>
4325
4326 int
4327 main ()
4328 {
4329 #ifndef _BIG_ENDIAN
4330 not big endian
4331 #endif
4332
4333 ;
4334 return 0;
4335 }
4336 _ACEOF
4337 if ac_fn_c_try_compile "$LINENO"; then :
4338 ac_cv_c_bigendian=yes
4339 else
4340 ac_cv_c_bigendian=no
4341 fi
4342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4343 fi
4344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4345 fi
4346 if test $ac_cv_c_bigendian = unknown; then
4347 # Compile a test program.
4348 if test "$cross_compiling" = yes; then :
4349 # Try to guess by grepping values from an object file.
4350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4351 /* end confdefs.h. */
4352 short int ascii_mm[] =
4353 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4354 short int ascii_ii[] =
4355 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4356 int use_ascii (int i) {
4357 return ascii_mm[i] + ascii_ii[i];
4358 }
4359 short int ebcdic_ii[] =
4360 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4361 short int ebcdic_mm[] =
4362 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4363 int use_ebcdic (int i) {
4364 return ebcdic_mm[i] + ebcdic_ii[i];
4365 }
4366 extern int foo;
4367
4368 int
4369 main ()
4370 {
4371 return use_ascii (foo) == use_ebcdic (foo);
4372 ;
4373 return 0;
4374 }
4375 _ACEOF
4376 if ac_fn_c_try_compile "$LINENO"; then :
4377 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4378 ac_cv_c_bigendian=yes
4379 fi
4380 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4381 if test "$ac_cv_c_bigendian" = unknown; then
4382 ac_cv_c_bigendian=no
4383 else
4384 # finding both strings is unlikely to happen, but who knows?
4385 ac_cv_c_bigendian=unknown
4386 fi
4387 fi
4388 fi
4389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4390 else
4391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4392 /* end confdefs.h. */
4393 $ac_includes_default
4394 int
4395 main ()
4396 {
4397
4398 /* Are we little or big endian? From Harbison&Steele. */
4399 union
4400 {
4401 long int l;
4402 char c[sizeof (long int)];
4403 } u;
4404 u.l = 1;
4405 return u.c[sizeof (long int) - 1] == 1;
4406
4407 ;
4408 return 0;
4409 }
4410 _ACEOF
4411 if ac_fn_c_try_run "$LINENO"; then :
4412 ac_cv_c_bigendian=no
4413 else
4414 ac_cv_c_bigendian=yes
4415 fi
4416 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4417 conftest.$ac_objext conftest.beam conftest.$ac_ext
4418 fi
4419
4420 fi
4421 fi
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4423 $as_echo "$ac_cv_c_bigendian" >&6; }
4424 case $ac_cv_c_bigendian in #(
4425 yes)
4426 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4427 ;; #(
4428 no)
4429 ;; #(
4430 universal)
4431
4432 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4433
4434 ;; #(
4435 *)
4436 as_fn_error $? "unknown endianness
4437 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4438 esac
4439
4440
4441
4442
4443 if test -n "$ac_tool_prefix"; then
4444 # Extract the first word of "${ac_tool_prefix}dtc", so it can be a program name with args.
4445 set dummy ${ac_tool_prefix}dtc; ac_word=$2
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4447 $as_echo_n "checking for $ac_word... " >&6; }
4448 if ${ac_cv_prog_DTC+:} false; then :
4449 $as_echo_n "(cached) " >&6
4450 else
4451 if test -n "$DTC"; then
4452 ac_cv_prog_DTC="$DTC" # Let the user override the test.
4453 else
4454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4455 for as_dir in $PATH
4456 do
4457 IFS=$as_save_IFS
4458 test -z "$as_dir" && as_dir=.
4459 for ac_exec_ext in '' $ac_executable_extensions; do
4460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4461 ac_cv_prog_DTC="${ac_tool_prefix}dtc"
4462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4463 break 2
4464 fi
4465 done
4466 done
4467 IFS=$as_save_IFS
4468
4469 fi
4470 fi
4471 DTC=$ac_cv_prog_DTC
4472 if test -n "$DTC"; then
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTC" >&5
4474 $as_echo "$DTC" >&6; }
4475 else
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4477 $as_echo "no" >&6; }
4478 fi
4479
4480
4481 fi
4482 if test -z "$ac_cv_prog_DTC"; then
4483 ac_ct_DTC=$DTC
4484 # Extract the first word of "dtc", so it can be a program name with args.
4485 set dummy dtc; ac_word=$2
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4487 $as_echo_n "checking for $ac_word... " >&6; }
4488 if ${ac_cv_prog_ac_ct_DTC+:} false; then :
4489 $as_echo_n "(cached) " >&6
4490 else
4491 if test -n "$ac_ct_DTC"; then
4492 ac_cv_prog_ac_ct_DTC="$ac_ct_DTC" # Let the user override the test.
4493 else
4494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4495 for as_dir in $PATH
4496 do
4497 IFS=$as_save_IFS
4498 test -z "$as_dir" && as_dir=.
4499 for ac_exec_ext in '' $ac_executable_extensions; do
4500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4501 ac_cv_prog_ac_ct_DTC="dtc"
4502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4503 break 2
4504 fi
4505 done
4506 done
4507 IFS=$as_save_IFS
4508
4509 fi
4510 fi
4511 ac_ct_DTC=$ac_cv_prog_ac_ct_DTC
4512 if test -n "$ac_ct_DTC"; then
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DTC" >&5
4514 $as_echo "$ac_ct_DTC" >&6; }
4515 else
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4517 $as_echo "no" >&6; }
4518 fi
4519
4520 if test "x$ac_ct_DTC" = x; then
4521 DTC=""
4522 else
4523 case $cross_compiling:$ac_tool_warned in
4524 yes:)
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4526 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4527 ac_tool_warned=yes ;;
4528 esac
4529 DTC=$ac_ct_DTC
4530 fi
4531 else
4532 DTC="$ac_cv_prog_DTC"
4533 fi
4534
4535
4536 if test "x$cross_compiling" = "xno"; then
4537 : "${AR_FOR_BUILD:=\$(AR)}"
4538 : "${CC_FOR_BUILD:=\$(CC)}"
4539 : "${RANLIB_FOR_BUILD:=\$(RANLIB)}"
4540 : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}"
4541 : "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}"
4542 else
4543 : "${AR_FOR_BUILD:=ar}"
4544 : "${CC_FOR_BUILD:=gcc}"
4545 : "${RANLIB_FOR_BUILD:=ranlib}"
4546 : "${CFLAGS_FOR_BUILD:=-g -O}"
4547 : "${LDLFAGS_FOR_BUILD:=}"
4548 fi
4549
4550
4551
4552
4553
4554
4555
4556 if test -n "$ac_tool_prefix"; then
4557 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4558 set dummy ${ac_tool_prefix}ar; ac_word=$2
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4560 $as_echo_n "checking for $ac_word... " >&6; }
4561 if ${ac_cv_prog_AR+:} false; then :
4562 $as_echo_n "(cached) " >&6
4563 else
4564 if test -n "$AR"; then
4565 ac_cv_prog_AR="$AR" # Let the user override the test.
4566 else
4567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568 for as_dir in $PATH
4569 do
4570 IFS=$as_save_IFS
4571 test -z "$as_dir" && as_dir=.
4572 for ac_exec_ext in '' $ac_executable_extensions; do
4573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4574 ac_cv_prog_AR="${ac_tool_prefix}ar"
4575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4576 break 2
4577 fi
4578 done
4579 done
4580 IFS=$as_save_IFS
4581
4582 fi
4583 fi
4584 AR=$ac_cv_prog_AR
4585 if test -n "$AR"; then
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4587 $as_echo "$AR" >&6; }
4588 else
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4590 $as_echo "no" >&6; }
4591 fi
4592
4593
4594 fi
4595 if test -z "$ac_cv_prog_AR"; then
4596 ac_ct_AR=$AR
4597 # Extract the first word of "ar", so it can be a program name with args.
4598 set dummy ar; ac_word=$2
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4600 $as_echo_n "checking for $ac_word... " >&6; }
4601 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4602 $as_echo_n "(cached) " >&6
4603 else
4604 if test -n "$ac_ct_AR"; then
4605 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4606 else
4607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608 for as_dir in $PATH
4609 do
4610 IFS=$as_save_IFS
4611 test -z "$as_dir" && as_dir=.
4612 for ac_exec_ext in '' $ac_executable_extensions; do
4613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4614 ac_cv_prog_ac_ct_AR="ar"
4615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4616 break 2
4617 fi
4618 done
4619 done
4620 IFS=$as_save_IFS
4621
4622 fi
4623 fi
4624 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4625 if test -n "$ac_ct_AR"; then
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4627 $as_echo "$ac_ct_AR" >&6; }
4628 else
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4630 $as_echo "no" >&6; }
4631 fi
4632
4633 if test "x$ac_ct_AR" = x; then
4634 AR=""
4635 else
4636 case $cross_compiling:$ac_tool_warned in
4637 yes:)
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4639 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4640 ac_tool_warned=yes ;;
4641 esac
4642 AR=$ac_ct_AR
4643 fi
4644 else
4645 AR="$ac_cv_prog_AR"
4646 fi
4647
4648 if test -n "$ac_tool_prefix"; then
4649 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4650 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4652 $as_echo_n "checking for $ac_word... " >&6; }
4653 if ${ac_cv_prog_RANLIB+:} false; then :
4654 $as_echo_n "(cached) " >&6
4655 else
4656 if test -n "$RANLIB"; then
4657 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4658 else
4659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660 for as_dir in $PATH
4661 do
4662 IFS=$as_save_IFS
4663 test -z "$as_dir" && as_dir=.
4664 for ac_exec_ext in '' $ac_executable_extensions; do
4665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4666 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4668 break 2
4669 fi
4670 done
4671 done
4672 IFS=$as_save_IFS
4673
4674 fi
4675 fi
4676 RANLIB=$ac_cv_prog_RANLIB
4677 if test -n "$RANLIB"; then
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4679 $as_echo "$RANLIB" >&6; }
4680 else
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4682 $as_echo "no" >&6; }
4683 fi
4684
4685
4686 fi
4687 if test -z "$ac_cv_prog_RANLIB"; then
4688 ac_ct_RANLIB=$RANLIB
4689 # Extract the first word of "ranlib", so it can be a program name with args.
4690 set dummy ranlib; ac_word=$2
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4692 $as_echo_n "checking for $ac_word... " >&6; }
4693 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4694 $as_echo_n "(cached) " >&6
4695 else
4696 if test -n "$ac_ct_RANLIB"; then
4697 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4698 else
4699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700 for as_dir in $PATH
4701 do
4702 IFS=$as_save_IFS
4703 test -z "$as_dir" && as_dir=.
4704 for ac_exec_ext in '' $ac_executable_extensions; do
4705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4706 ac_cv_prog_ac_ct_RANLIB="ranlib"
4707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4708 break 2
4709 fi
4710 done
4711 done
4712 IFS=$as_save_IFS
4713
4714 fi
4715 fi
4716 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4717 if test -n "$ac_ct_RANLIB"; then
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4719 $as_echo "$ac_ct_RANLIB" >&6; }
4720 else
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4722 $as_echo "no" >&6; }
4723 fi
4724
4725 if test "x$ac_ct_RANLIB" = x; then
4726 RANLIB=":"
4727 else
4728 case $cross_compiling:$ac_tool_warned in
4729 yes:)
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4731 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4732 ac_tool_warned=yes ;;
4733 esac
4734 RANLIB=$ac_ct_RANLIB
4735 fi
4736 else
4737 RANLIB="$ac_cv_prog_RANLIB"
4738 fi
4739
4740
4741
4742
4743
4744
4745
4746
4747 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4748 if test -n "$ac_tool_prefix"; then
4749 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4750 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4752 $as_echo_n "checking for $ac_word... " >&6; }
4753 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4754 $as_echo_n "(cached) " >&6
4755 else
4756 case $PKG_CONFIG in
4757 [\\/]* | ?:[\\/]*)
4758 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4759 ;;
4760 *)
4761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4770 break 2
4771 fi
4772 done
4773 done
4774 IFS=$as_save_IFS
4775
4776 ;;
4777 esac
4778 fi
4779 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4780 if test -n "$PKG_CONFIG"; then
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4782 $as_echo "$PKG_CONFIG" >&6; }
4783 else
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4785 $as_echo "no" >&6; }
4786 fi
4787
4788
4789 fi
4790 if test -z "$ac_cv_path_PKG_CONFIG"; then
4791 ac_pt_PKG_CONFIG=$PKG_CONFIG
4792 # Extract the first word of "pkg-config", so it can be a program name with args.
4793 set dummy pkg-config; ac_word=$2
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4795 $as_echo_n "checking for $ac_word... " >&6; }
4796 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4797 $as_echo_n "(cached) " >&6
4798 else
4799 case $ac_pt_PKG_CONFIG in
4800 [\\/]* | ?:[\\/]*)
4801 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4802 ;;
4803 *)
4804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4805 for as_dir in $PATH
4806 do
4807 IFS=$as_save_IFS
4808 test -z "$as_dir" && as_dir=.
4809 for ac_exec_ext in '' $ac_executable_extensions; do
4810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4811 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4813 break 2
4814 fi
4815 done
4816 done
4817 IFS=$as_save_IFS
4818
4819 ;;
4820 esac
4821 fi
4822 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4823 if test -n "$ac_pt_PKG_CONFIG"; then
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4825 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4826 else
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4828 $as_echo "no" >&6; }
4829 fi
4830
4831 if test "x$ac_pt_PKG_CONFIG" = x; then
4832 PKG_CONFIG=""
4833 else
4834 case $cross_compiling:$ac_tool_warned in
4835 yes:)
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4837 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4838 ac_tool_warned=yes ;;
4839 esac
4840 PKG_CONFIG=$ac_pt_PKG_CONFIG
4841 fi
4842 else
4843 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4844 fi
4845
4846 fi
4847 if test -n "$PKG_CONFIG"; then
4848 _pkg_min_version=0.9.0
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4850 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4851 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4853 $as_echo "yes" >&6; }
4854 else
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4856 $as_echo "no" >&6; }
4857 PKG_CONFIG=""
4858 fi
4859 fi
4860
4861 # Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using
4862 # AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands
4863 # is C99. So handle it ourselves.
4864 :
4865 C_DIALECT=
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5
4867 $as_echo_n "checking whether C11 is supported by default... " >&6; }
4868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4869 /* end confdefs.h. */
4870
4871 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
4872 # error "C11 support not found"
4873 #endif
4874
4875 _ACEOF
4876 if ac_fn_c_try_compile "$LINENO"; then :
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4878 $as_echo "yes" >&6; }
4879 else
4880
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4882 $as_echo "no" >&6; }
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5
4884 $as_echo_n "checking for -std=c11 support... " >&6; }
4885 ac_save_CC="$CC"
4886 CC="$CC -std=c11"
4887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4888 /* end confdefs.h. */
4889
4890 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
4891 # error "C11 support not found"
4892 #endif
4893
4894 _ACEOF
4895 if ac_fn_c_try_compile "$LINENO"; then :
4896
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4898 $as_echo "yes" >&6; }
4899 CC="$ac_save_CC"
4900 C_DIALECT="-std=c11"
4901
4902 else
4903 as_fn_error $? "C11 is required" "$LINENO" 5
4904 fi
4905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4906 fi
4907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4908
4909
4910
4911
4912
4913 for ac_header in $ac_header_list
4914 do :
4915 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4916 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4917 "
4918 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4919 cat >>confdefs.h <<_ACEOF
4920 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4921 _ACEOF
4922
4923 fi
4924
4925 done
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978 for ac_func in $ac_func_list
4979 do :
4980 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4981 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4982 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4983 cat >>confdefs.h <<_ACEOF
4984 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4985 _ACEOF
4986
4987 fi
4988 done
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5113 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5114 if ${ac_cv_struct_tm+:} false; then :
5115 $as_echo_n "(cached) " >&6
5116 else
5117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5118 /* end confdefs.h. */
5119 #include <sys/types.h>
5120 #include <time.h>
5121
5122 int
5123 main ()
5124 {
5125 struct tm tm;
5126 int *p = &tm.tm_sec;
5127 return !p;
5128 ;
5129 return 0;
5130 }
5131 _ACEOF
5132 if ac_fn_c_try_compile "$LINENO"; then :
5133 ac_cv_struct_tm=time.h
5134 else
5135 ac_cv_struct_tm=sys/time.h
5136 fi
5137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5138 fi
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5140 $as_echo "$ac_cv_struct_tm" >&6; }
5141 if test $ac_cv_struct_tm = sys/time.h; then
5142
5143 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5144
5145 fi
5146
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5148 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5149 if ${ac_cv_type_uid_t+:} false; then :
5150 $as_echo_n "(cached) " >&6
5151 else
5152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5153 /* end confdefs.h. */
5154 #include <sys/types.h>
5155
5156 _ACEOF
5157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5158 $EGREP "uid_t" >/dev/null 2>&1; then :
5159 ac_cv_type_uid_t=yes
5160 else
5161 ac_cv_type_uid_t=no
5162 fi
5163 rm -f conftest*
5164
5165 fi
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5167 $as_echo "$ac_cv_type_uid_t" >&6; }
5168 if test $ac_cv_type_uid_t = no; then
5169
5170 $as_echo "#define uid_t int" >>confdefs.h
5171
5172
5173 $as_echo "#define gid_t int" >>confdefs.h
5174
5175 fi
5176
5177 case `pwd` in
5178 *\ * | *\ *)
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5180 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5181 esac
5182
5183
5184
5185 macro_version='2.2.7a'
5186 macro_revision='1.3134'
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200 ltmain="$ac_aux_dir/ltmain.sh"
5201
5202 # Backslashify metacharacters that are still active within
5203 # double-quoted strings.
5204 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5205
5206 # Same as above, but do not quote variable references.
5207 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5208
5209 # Sed substitution to delay expansion of an escaped shell variable in a
5210 # double_quote_subst'ed string.
5211 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5212
5213 # Sed substitution to delay expansion of an escaped single quote.
5214 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5215
5216 # Sed substitution to avoid accidental globbing in evaled expressions
5217 no_glob_subst='s/\*/\\\*/g'
5218
5219 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5220 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5221 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5222
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5224 $as_echo_n "checking how to print strings... " >&6; }
5225 # Test print first, because it will be a builtin if present.
5226 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5227 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5228 ECHO='print -r --'
5229 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5230 ECHO='printf %s\n'
5231 else
5232 # Use this function as a fallback that always works.
5233 func_fallback_echo ()
5234 {
5235 eval 'cat <<_LTECHO_EOF
5236 $1
5237 _LTECHO_EOF'
5238 }
5239 ECHO='func_fallback_echo'
5240 fi
5241
5242 # func_echo_all arg...
5243 # Invoke $ECHO with all args, space-separated.
5244 func_echo_all ()
5245 {
5246 $ECHO ""
5247 }
5248
5249 case "$ECHO" in
5250 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5251 $as_echo "printf" >&6; } ;;
5252 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5253 $as_echo "print -r" >&6; } ;;
5254 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5255 $as_echo "cat" >&6; } ;;
5256 esac
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5272 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5273 if ${ac_cv_path_SED+:} false; then :
5274 $as_echo_n "(cached) " >&6
5275 else
5276 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5277 for ac_i in 1 2 3 4 5 6 7; do
5278 ac_script="$ac_script$as_nl$ac_script"
5279 done
5280 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5281 { ac_script=; unset ac_script;}
5282 if test -z "$SED"; then
5283 ac_path_SED_found=false
5284 # Loop through the user's path and test for each of PROGNAME-LIST
5285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5286 for as_dir in $PATH
5287 do
5288 IFS=$as_save_IFS
5289 test -z "$as_dir" && as_dir=.
5290 for ac_prog in sed gsed; do
5291 for ac_exec_ext in '' $ac_executable_extensions; do
5292 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5293 as_fn_executable_p "$ac_path_SED" || continue
5294 # Check for GNU ac_path_SED and select it if it is found.
5295 # Check for GNU $ac_path_SED
5296 case `"$ac_path_SED" --version 2>&1` in
5297 *GNU*)
5298 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5299 *)
5300 ac_count=0
5301 $as_echo_n 0123456789 >"conftest.in"
5302 while :
5303 do
5304 cat "conftest.in" "conftest.in" >"conftest.tmp"
5305 mv "conftest.tmp" "conftest.in"
5306 cp "conftest.in" "conftest.nl"
5307 $as_echo '' >> "conftest.nl"
5308 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5309 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5310 as_fn_arith $ac_count + 1 && ac_count=$as_val
5311 if test $ac_count -gt ${ac_path_SED_max-0}; then
5312 # Best one so far, save it but keep looking for a better one
5313 ac_cv_path_SED="$ac_path_SED"
5314 ac_path_SED_max=$ac_count
5315 fi
5316 # 10*(2^10) chars as input seems more than enough
5317 test $ac_count -gt 10 && break
5318 done
5319 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5320 esac
5321
5322 $ac_path_SED_found && break 3
5323 done
5324 done
5325 done
5326 IFS=$as_save_IFS
5327 if test -z "$ac_cv_path_SED"; then
5328 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5329 fi
5330 else
5331 ac_cv_path_SED=$SED
5332 fi
5333
5334 fi
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5336 $as_echo "$ac_cv_path_SED" >&6; }
5337 SED="$ac_cv_path_SED"
5338 rm -f conftest.sed
5339
5340 test -z "$SED" && SED=sed
5341 Xsed="$SED -e 1s/^X//"
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5354 $as_echo_n "checking for fgrep... " >&6; }
5355 if ${ac_cv_path_FGREP+:} false; then :
5356 $as_echo_n "(cached) " >&6
5357 else
5358 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5359 then ac_cv_path_FGREP="$GREP -F"
5360 else
5361 if test -z "$FGREP"; then
5362 ac_path_FGREP_found=false
5363 # Loop through the user's path and test for each of PROGNAME-LIST
5364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5365 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5366 do
5367 IFS=$as_save_IFS
5368 test -z "$as_dir" && as_dir=.
5369 for ac_prog in fgrep; do
5370 for ac_exec_ext in '' $ac_executable_extensions; do
5371 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5372 as_fn_executable_p "$ac_path_FGREP" || continue
5373 # Check for GNU ac_path_FGREP and select it if it is found.
5374 # Check for GNU $ac_path_FGREP
5375 case `"$ac_path_FGREP" --version 2>&1` in
5376 *GNU*)
5377 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5378 *)
5379 ac_count=0
5380 $as_echo_n 0123456789 >"conftest.in"
5381 while :
5382 do
5383 cat "conftest.in" "conftest.in" >"conftest.tmp"
5384 mv "conftest.tmp" "conftest.in"
5385 cp "conftest.in" "conftest.nl"
5386 $as_echo 'FGREP' >> "conftest.nl"
5387 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5388 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5389 as_fn_arith $ac_count + 1 && ac_count=$as_val
5390 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5391 # Best one so far, save it but keep looking for a better one
5392 ac_cv_path_FGREP="$ac_path_FGREP"
5393 ac_path_FGREP_max=$ac_count
5394 fi
5395 # 10*(2^10) chars as input seems more than enough
5396 test $ac_count -gt 10 && break
5397 done
5398 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5399 esac
5400
5401 $ac_path_FGREP_found && break 3
5402 done
5403 done
5404 done
5405 IFS=$as_save_IFS
5406 if test -z "$ac_cv_path_FGREP"; then
5407 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5408 fi
5409 else
5410 ac_cv_path_FGREP=$FGREP
5411 fi
5412
5413 fi
5414 fi
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5416 $as_echo "$ac_cv_path_FGREP" >&6; }
5417 FGREP="$ac_cv_path_FGREP"
5418
5419
5420 test -z "$GREP" && GREP=grep
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440 # Check whether --with-gnu-ld was given.
5441 if test "${with_gnu_ld+set}" = set; then :
5442 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5443 else
5444 with_gnu_ld=no
5445 fi
5446
5447 ac_prog=ld
5448 if test "$GCC" = yes; then
5449 # Check if gcc -print-prog-name=ld gives a path.
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5451 $as_echo_n "checking for ld used by $CC... " >&6; }
5452 case $host in
5453 *-*-mingw*)
5454 # gcc leaves a trailing carriage return which upsets mingw
5455 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5456 *)
5457 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5458 esac
5459 case $ac_prog in
5460 # Accept absolute paths.
5461 [\\/]* | ?:[\\/]*)
5462 re_direlt='/[^/][^/]*/\.\./'
5463 # Canonicalize the pathname of ld
5464 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5465 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5466 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5467 done
5468 test -z "$LD" && LD="$ac_prog"
5469 ;;
5470 "")
5471 # If it fails, then pretend we aren't using GCC.
5472 ac_prog=ld
5473 ;;
5474 *)
5475 # If it is relative, then search for the first ld in PATH.
5476 with_gnu_ld=unknown
5477 ;;
5478 esac
5479 elif test "$with_gnu_ld" = yes; then
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5481 $as_echo_n "checking for GNU ld... " >&6; }
5482 else
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5484 $as_echo_n "checking for non-GNU ld... " >&6; }
5485 fi
5486 if ${lt_cv_path_LD+:} false; then :
5487 $as_echo_n "(cached) " >&6
5488 else
5489 if test -z "$LD"; then
5490 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5491 for ac_dir in $PATH; do
5492 IFS="$lt_save_ifs"
5493 test -z "$ac_dir" && ac_dir=.
5494 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5495 lt_cv_path_LD="$ac_dir/$ac_prog"
5496 # Check to see if the program is GNU ld. I'd rather use --version,
5497 # but apparently some variants of GNU ld only accept -v.
5498 # Break only if it was the GNU/non-GNU ld that we prefer.
5499 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5500 *GNU* | *'with BFD'*)
5501 test "$with_gnu_ld" != no && break
5502 ;;
5503 *)
5504 test "$with_gnu_ld" != yes && break
5505 ;;
5506 esac
5507 fi
5508 done
5509 IFS="$lt_save_ifs"
5510 else
5511 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5512 fi
5513 fi
5514
5515 LD="$lt_cv_path_LD"
5516 if test -n "$LD"; then
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5518 $as_echo "$LD" >&6; }
5519 else
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5521 $as_echo "no" >&6; }
5522 fi
5523 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5525 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5526 if ${lt_cv_prog_gnu_ld+:} false; then :
5527 $as_echo_n "(cached) " >&6
5528 else
5529 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5530 case `$LD -v 2>&1 </dev/null` in
5531 *GNU* | *'with BFD'*)
5532 lt_cv_prog_gnu_ld=yes
5533 ;;
5534 *)
5535 lt_cv_prog_gnu_ld=no
5536 ;;
5537 esac
5538 fi
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5540 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5541 with_gnu_ld=$lt_cv_prog_gnu_ld
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5552 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5553 if ${lt_cv_path_NM+:} false; then :
5554 $as_echo_n "(cached) " >&6
5555 else
5556 if test -n "$NM"; then
5557 # Let the user override the nm to test.
5558 lt_nm_to_check="$NM"
5559 else
5560 lt_nm_to_check="${ac_tool_prefix}nm"
5561 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5562 lt_nm_to_check="$lt_nm_to_check nm"
5563 fi
5564 fi
5565 for lt_tmp_nm in $lt_nm_to_check; do
5566 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5567 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5568 IFS="$lt_save_ifs"
5569 test -z "$ac_dir" && ac_dir=.
5570 case "$lt_tmp_nm" in
5571 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5572 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5573 esac
5574 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5575 # Check to see if the nm accepts a BSD-compat flag.
5576 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5577 # nm: unknown option "B" ignored
5578 case `"$tmp_nm" -B "$tmp_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5579 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5580 break
5581 ;;
5582 *)
5583 case `"$tmp_nm" -p "$tmp_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5584 *$tmp_nm*)
5585 lt_cv_path_NM="$tmp_nm -p"
5586 break
5587 ;;
5588 *)
5589 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5590 continue # so that we can try to find one that supports BSD flags
5591 ;;
5592 esac
5593 ;;
5594 esac
5595 fi
5596 done
5597 IFS="$lt_save_ifs"
5598 done
5599 : ${lt_cv_path_NM=no}
5600 fi
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5602 $as_echo "$lt_cv_path_NM" >&6; }
5603 if test "$lt_cv_path_NM" != "no"; then
5604 NM="$lt_cv_path_NM"
5605 else
5606 # Didn't find any BSD compatible name lister, look for dumpbin.
5607 if test -n "$DUMPBIN"; then :
5608 # Let the user override the test.
5609 else
5610 if test -n "$ac_tool_prefix"; then
5611 for ac_prog in dumpbin "link -dump"
5612 do
5613 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5614 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5616 $as_echo_n "checking for $ac_word... " >&6; }
5617 if ${ac_cv_prog_DUMPBIN+:} false; then :
5618 $as_echo_n "(cached) " >&6
5619 else
5620 if test -n "$DUMPBIN"; then
5621 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5622 else
5623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5624 for as_dir in $PATH
5625 do
5626 IFS=$as_save_IFS
5627 test -z "$as_dir" && as_dir=.
5628 for ac_exec_ext in '' $ac_executable_extensions; do
5629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5630 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5632 break 2
5633 fi
5634 done
5635 done
5636 IFS=$as_save_IFS
5637
5638 fi
5639 fi
5640 DUMPBIN=$ac_cv_prog_DUMPBIN
5641 if test -n "$DUMPBIN"; then
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5643 $as_echo "$DUMPBIN" >&6; }
5644 else
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5646 $as_echo "no" >&6; }
5647 fi
5648
5649
5650 test -n "$DUMPBIN" && break
5651 done
5652 fi
5653 if test -z "$DUMPBIN"; then
5654 ac_ct_DUMPBIN=$DUMPBIN
5655 for ac_prog in dumpbin "link -dump"
5656 do
5657 # Extract the first word of "$ac_prog", so it can be a program name with args.
5658 set dummy $ac_prog; ac_word=$2
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5660 $as_echo_n "checking for $ac_word... " >&6; }
5661 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5662 $as_echo_n "(cached) " >&6
5663 else
5664 if test -n "$ac_ct_DUMPBIN"; then
5665 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5666 else
5667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5668 for as_dir in $PATH
5669 do
5670 IFS=$as_save_IFS
5671 test -z "$as_dir" && as_dir=.
5672 for ac_exec_ext in '' $ac_executable_extensions; do
5673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5674 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5676 break 2
5677 fi
5678 done
5679 done
5680 IFS=$as_save_IFS
5681
5682 fi
5683 fi
5684 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5685 if test -n "$ac_ct_DUMPBIN"; then
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5687 $as_echo "$ac_ct_DUMPBIN" >&6; }
5688 else
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5690 $as_echo "no" >&6; }
5691 fi
5692
5693
5694 test -n "$ac_ct_DUMPBIN" && break
5695 done
5696
5697 if test "x$ac_ct_DUMPBIN" = x; then
5698 DUMPBIN=":"
5699 else
5700 case $cross_compiling:$ac_tool_warned in
5701 yes:)
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5703 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5704 ac_tool_warned=yes ;;
5705 esac
5706 DUMPBIN=$ac_ct_DUMPBIN
5707 fi
5708 fi
5709
5710 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5711 *COFF*)
5712 DUMPBIN="$DUMPBIN -symbols"
5713 ;;
5714 *)
5715 DUMPBIN=:
5716 ;;
5717 esac
5718 fi
5719
5720 if test "$DUMPBIN" != ":"; then
5721 NM="$DUMPBIN"
5722 fi
5723 fi
5724 test -z "$NM" && NM=nm
5725
5726
5727
5728
5729
5730
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5732 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5733 if ${lt_cv_nm_interface+:} false; then :
5734 $as_echo_n "(cached) " >&6
5735 else
5736 lt_cv_nm_interface="BSD nm"
5737 echo "int some_variable = 0;" > conftest.$ac_ext
5738 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5739 (eval "$ac_compile" 2>conftest.err)
5740 cat conftest.err >&5
5741 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5742 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5743 cat conftest.err >&5
5744 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5745 cat conftest.out >&5
5746 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5747 lt_cv_nm_interface="MS dumpbin"
5748 fi
5749 rm -f conftest*
5750 fi
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5752 $as_echo "$lt_cv_nm_interface" >&6; }
5753
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5755 $as_echo_n "checking whether ln -s works... " >&6; }
5756 LN_S=$as_ln_s
5757 if test "$LN_S" = "ln -s"; then
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5759 $as_echo "yes" >&6; }
5760 else
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5762 $as_echo "no, using $LN_S" >&6; }
5763 fi
5764
5765 # find the maximum length of command line arguments
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5767 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5768 if ${lt_cv_sys_max_cmd_len+:} false; then :
5769 $as_echo_n "(cached) " >&6
5770 else
5771 i=0
5772 teststring="ABCD"
5773
5774 case $build_os in
5775 msdosdjgpp*)
5776 # On DJGPP, this test can blow up pretty badly due to problems in libc
5777 # (any single argument exceeding 2000 bytes causes a buffer overrun
5778 # during glob expansion). Even if it were fixed, the result of this
5779 # check would be larger than it should be.
5780 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5781 ;;
5782
5783 gnu*)
5784 # Under GNU Hurd, this test is not required because there is
5785 # no limit to the length of command line arguments.
5786 # Libtool will interpret -1 as no limit whatsoever
5787 lt_cv_sys_max_cmd_len=-1;
5788 ;;
5789
5790 cygwin* | mingw* | cegcc*)
5791 # On Win9x/ME, this test blows up -- it succeeds, but takes
5792 # about 5 minutes as the teststring grows exponentially.
5793 # Worse, since 9x/ME are not pre-emptively multitasking,
5794 # you end up with a "frozen" computer, even though with patience
5795 # the test eventually succeeds (with a max line length of 256k).
5796 # Instead, let's just punt: use the minimum linelength reported by
5797 # all of the supported platforms: 8192 (on NT/2K/XP).
5798 lt_cv_sys_max_cmd_len=8192;
5799 ;;
5800
5801 mint*)
5802 # On MiNT this can take a long time and run out of memory.
5803 lt_cv_sys_max_cmd_len=8192;
5804 ;;
5805
5806 amigaos*)
5807 # On AmigaOS with pdksh, this test takes hours, literally.
5808 # So we just punt and use a minimum line length of 8192.
5809 lt_cv_sys_max_cmd_len=8192;
5810 ;;
5811
5812 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5813 # This has been around since 386BSD, at least. Likely further.
5814 if test -x /sbin/sysctl; then
5815 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5816 elif test -x /usr/sbin/sysctl; then
5817 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5818 else
5819 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5820 fi
5821 # And add a safety zone
5822 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5823 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5824 ;;
5825
5826 interix*)
5827 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5828 lt_cv_sys_max_cmd_len=196608
5829 ;;
5830
5831 osf*)
5832 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5833 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5834 # nice to cause kernel panics so lets avoid the loop below.
5835 # First set a reasonable default.
5836 lt_cv_sys_max_cmd_len=16384
5837 #
5838 if test -x /sbin/sysconfig; then
5839 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5840 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5841 esac
5842 fi
5843 ;;
5844 sco3.2v5*)
5845 lt_cv_sys_max_cmd_len=102400
5846 ;;
5847 sysv5* | sco5v6* | sysv4.2uw2*)
5848 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5849 if test -n "$kargmax"; then
5850 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5851 else
5852 lt_cv_sys_max_cmd_len=32768
5853 fi
5854 ;;
5855 *)
5856 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5857 if test -n "$lt_cv_sys_max_cmd_len"; then
5858 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5859 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5860 else
5861 # Make teststring a little bigger before we do anything with it.
5862 # a 1K string should be a reasonable start.
5863 for i in 1 2 3 4 5 6 7 8 ; do
5864 teststring=$teststring$teststring
5865 done
5866 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5867 # If test is not a shell built-in, we'll probably end up computing a
5868 # maximum length that is only half of the actual maximum length, but
5869 # we can't tell.
5870 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5871 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5872 test $i != 17 # 1/2 MB should be enough
5873 do
5874 i=`expr $i + 1`
5875 teststring=$teststring$teststring
5876 done
5877 # Only check the string length outside the loop.
5878 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5879 teststring=
5880 # Add a significant safety factor because C++ compilers can tack on
5881 # massive amounts of additional arguments before passing them to the
5882 # linker. It appears as though 1/2 is a usable value.
5883 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5884 fi
5885 ;;
5886 esac
5887
5888 fi
5889
5890 if test -n $lt_cv_sys_max_cmd_len ; then
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5892 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5893 else
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5895 $as_echo "none" >&6; }
5896 fi
5897 max_cmd_len=$lt_cv_sys_max_cmd_len
5898
5899
5900
5901
5902
5903
5904 : ${CP="cp -f"}
5905 : ${MV="mv -f"}
5906 : ${RM="rm -f"}
5907
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5909 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5910 # Try some XSI features
5911 xsi_shell=no
5912 ( _lt_dummy="a/b/c"
5913 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5914 = c,a/b,, \
5915 && eval 'test $(( 1 + 1 )) -eq 2 \
5916 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5917 && xsi_shell=yes
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5919 $as_echo "$xsi_shell" >&6; }
5920
5921
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5923 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5924 lt_shell_append=no
5925 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5926 >/dev/null 2>&1 \
5927 && lt_shell_append=yes
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5929 $as_echo "$lt_shell_append" >&6; }
5930
5931
5932 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5933 lt_unset=unset
5934 else
5935 lt_unset=false
5936 fi
5937
5938
5939
5940
5941
5942 # test EBCDIC or ASCII
5943 case `echo X|tr X '\101'` in
5944 A) # ASCII based system
5945 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5946 lt_SP2NL='tr \040 \012'
5947 lt_NL2SP='tr \015\012 \040\040'
5948 ;;
5949 *) # EBCDIC based system
5950 lt_SP2NL='tr \100 \n'
5951 lt_NL2SP='tr \r\n \100\100'
5952 ;;
5953 esac
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5964 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5965 if ${lt_cv_ld_reload_flag+:} false; then :
5966 $as_echo_n "(cached) " >&6
5967 else
5968 lt_cv_ld_reload_flag='-r'
5969 fi
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5971 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5972 reload_flag=$lt_cv_ld_reload_flag
5973 case $reload_flag in
5974 "" | " "*) ;;
5975 *) reload_flag=" $reload_flag" ;;
5976 esac
5977 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5978 case $host_os in
5979 darwin*)
5980 if test "$GCC" = yes; then
5981 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5982 else
5983 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5984 fi
5985 ;;
5986 esac
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996 if test -n "$ac_tool_prefix"; then
5997 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5998 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6000 $as_echo_n "checking for $ac_word... " >&6; }
6001 if ${ac_cv_prog_OBJDUMP+:} false; then :
6002 $as_echo_n "(cached) " >&6
6003 else
6004 if test -n "$OBJDUMP"; then
6005 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6006 else
6007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6008 for as_dir in $PATH
6009 do
6010 IFS=$as_save_IFS
6011 test -z "$as_dir" && as_dir=.
6012 for ac_exec_ext in '' $ac_executable_extensions; do
6013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6014 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6016 break 2
6017 fi
6018 done
6019 done
6020 IFS=$as_save_IFS
6021
6022 fi
6023 fi
6024 OBJDUMP=$ac_cv_prog_OBJDUMP
6025 if test -n "$OBJDUMP"; then
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6027 $as_echo "$OBJDUMP" >&6; }
6028 else
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6030 $as_echo "no" >&6; }
6031 fi
6032
6033
6034 fi
6035 if test -z "$ac_cv_prog_OBJDUMP"; then
6036 ac_ct_OBJDUMP=$OBJDUMP
6037 # Extract the first word of "objdump", so it can be a program name with args.
6038 set dummy objdump; ac_word=$2
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6040 $as_echo_n "checking for $ac_word... " >&6; }
6041 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6042 $as_echo_n "(cached) " >&6
6043 else
6044 if test -n "$ac_ct_OBJDUMP"; then
6045 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6046 else
6047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6048 for as_dir in $PATH
6049 do
6050 IFS=$as_save_IFS
6051 test -z "$as_dir" && as_dir=.
6052 for ac_exec_ext in '' $ac_executable_extensions; do
6053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6054 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6056 break 2
6057 fi
6058 done
6059 done
6060 IFS=$as_save_IFS
6061
6062 fi
6063 fi
6064 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6065 if test -n "$ac_ct_OBJDUMP"; then
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6067 $as_echo "$ac_ct_OBJDUMP" >&6; }
6068 else
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6070 $as_echo "no" >&6; }
6071 fi
6072
6073 if test "x$ac_ct_OBJDUMP" = x; then
6074 OBJDUMP="false"
6075 else
6076 case $cross_compiling:$ac_tool_warned in
6077 yes:)
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6079 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6080 ac_tool_warned=yes ;;
6081 esac
6082 OBJDUMP=$ac_ct_OBJDUMP
6083 fi
6084 else
6085 OBJDUMP="$ac_cv_prog_OBJDUMP"
6086 fi
6087
6088 test -z "$OBJDUMP" && OBJDUMP=objdump
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6099 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6100 if ${lt_cv_deplibs_check_method+:} false; then :
6101 $as_echo_n "(cached) " >&6
6102 else
6103 lt_cv_file_magic_cmd='$MAGIC_CMD'
6104 lt_cv_file_magic_test_file=
6105 lt_cv_deplibs_check_method='unknown'
6106 # Need to set the preceding variable on all platforms that support
6107 # interlibrary dependencies.
6108 # 'none' -- dependencies not supported.
6109 # `unknown' -- same as none, but documents that we really don't know.
6110 # 'pass_all' -- all dependencies passed with no checks.
6111 # 'test_compile' -- check by making test program.
6112 # 'file_magic [[regex]]' -- check by looking for files in library path
6113 # which responds to the $file_magic_cmd with a given extended regex.
6114 # If you have `file' or equivalent on your system and you're not sure
6115 # whether `pass_all' will *always* work, you probably want this one.
6116
6117 case $host_os in
6118 aix[4-9]*)
6119 lt_cv_deplibs_check_method=pass_all
6120 ;;
6121
6122 beos*)
6123 lt_cv_deplibs_check_method=pass_all
6124 ;;
6125
6126 bsdi[45]*)
6127 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6128 lt_cv_file_magic_cmd='/usr/bin/file -L'
6129 lt_cv_file_magic_test_file=/shlib/libc.so
6130 ;;
6131
6132 cygwin*)
6133 # func_win32_libid is a shell function defined in ltmain.sh
6134 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6135 lt_cv_file_magic_cmd='func_win32_libid'
6136 ;;
6137
6138 mingw* | pw32*)
6139 # Base MSYS/MinGW do not provide the 'file' command needed by
6140 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6141 # unless we find 'file', for example because we are cross-compiling.
6142 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6143 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6144 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6145 lt_cv_file_magic_cmd='func_win32_libid'
6146 else
6147 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6148 lt_cv_file_magic_cmd='$OBJDUMP -f'
6149 fi
6150 ;;
6151
6152 cegcc*)
6153 # use the weaker test based on 'objdump'. See mingw*.
6154 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6155 lt_cv_file_magic_cmd='$OBJDUMP -f'
6156 ;;
6157
6158 darwin* | rhapsody*)
6159 lt_cv_deplibs_check_method=pass_all
6160 ;;
6161
6162 freebsd* | dragonfly*)
6163 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6164 case $host_cpu in
6165 i*86 )
6166 # Not sure whether the presence of OpenBSD here was a mistake.
6167 # Let's accept both of them until this is cleared up.
6168 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6169 lt_cv_file_magic_cmd=/usr/bin/file
6170 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6171 ;;
6172 esac
6173 else
6174 lt_cv_deplibs_check_method=pass_all
6175 fi
6176 ;;
6177
6178 gnu*)
6179 lt_cv_deplibs_check_method=pass_all
6180 ;;
6181
6182 haiku*)
6183 lt_cv_deplibs_check_method=pass_all
6184 ;;
6185
6186 hpux10.20* | hpux11*)
6187 lt_cv_file_magic_cmd=/usr/bin/file
6188 case $host_cpu in
6189 ia64*)
6190 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6191 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6192 ;;
6193 hppa*64*)
6194 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]'
6195 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6196 ;;
6197 *)
6198 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6199 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6200 ;;
6201 esac
6202 ;;
6203
6204 interix[3-9]*)
6205 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6206 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6207 ;;
6208
6209 irix5* | irix6* | nonstopux*)
6210 case $LD in
6211 *-32|*"-32 ") libmagic=32-bit;;
6212 *-n32|*"-n32 ") libmagic=N32;;
6213 *-64|*"-64 ") libmagic=64-bit;;
6214 *) libmagic=never-match;;
6215 esac
6216 lt_cv_deplibs_check_method=pass_all
6217 ;;
6218
6219 # This must be Linux ELF.
6220 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6221 lt_cv_deplibs_check_method=pass_all
6222 ;;
6223
6224 netbsd*)
6225 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6226 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6227 else
6228 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6229 fi
6230 ;;
6231
6232 newos6*)
6233 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6234 lt_cv_file_magic_cmd=/usr/bin/file
6235 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6236 ;;
6237
6238 *nto* | *qnx*)
6239 lt_cv_deplibs_check_method=pass_all
6240 ;;
6241
6242 openbsd*)
6243 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6244 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6245 else
6246 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6247 fi
6248 ;;
6249
6250 osf3* | osf4* | osf5*)
6251 lt_cv_deplibs_check_method=pass_all
6252 ;;
6253
6254 rdos*)
6255 lt_cv_deplibs_check_method=pass_all
6256 ;;
6257
6258 solaris*)
6259 lt_cv_deplibs_check_method=pass_all
6260 ;;
6261
6262 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6263 lt_cv_deplibs_check_method=pass_all
6264 ;;
6265
6266 sysv4 | sysv4.3*)
6267 case $host_vendor in
6268 motorola)
6269 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]'
6270 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6271 ;;
6272 ncr)
6273 lt_cv_deplibs_check_method=pass_all
6274 ;;
6275 sequent)
6276 lt_cv_file_magic_cmd='/bin/file'
6277 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6278 ;;
6279 sni)
6280 lt_cv_file_magic_cmd='/bin/file'
6281 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6282 lt_cv_file_magic_test_file=/lib/libc.so
6283 ;;
6284 siemens)
6285 lt_cv_deplibs_check_method=pass_all
6286 ;;
6287 pc)
6288 lt_cv_deplibs_check_method=pass_all
6289 ;;
6290 esac
6291 ;;
6292
6293 tpf*)
6294 lt_cv_deplibs_check_method=pass_all
6295 ;;
6296 esac
6297
6298 fi
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6300 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6301 file_magic_cmd=$lt_cv_file_magic_cmd
6302 deplibs_check_method=$lt_cv_deplibs_check_method
6303 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316 plugin_option=
6317 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6318 for plugin in $plugin_names; do
6319 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6320 if test x$plugin_so = x$plugin; then
6321 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6322 fi
6323 if test x$plugin_so != x$plugin; then
6324 plugin_option="--plugin $plugin_so"
6325 break
6326 fi
6327 done
6328
6329 if test -n "$ac_tool_prefix"; then
6330 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6331 set dummy ${ac_tool_prefix}ar; ac_word=$2
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6333 $as_echo_n "checking for $ac_word... " >&6; }
6334 if ${ac_cv_prog_AR+:} false; then :
6335 $as_echo_n "(cached) " >&6
6336 else
6337 if test -n "$AR"; then
6338 ac_cv_prog_AR="$AR" # Let the user override the test.
6339 else
6340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6341 for as_dir in $PATH
6342 do
6343 IFS=$as_save_IFS
6344 test -z "$as_dir" && as_dir=.
6345 for ac_exec_ext in '' $ac_executable_extensions; do
6346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6347 ac_cv_prog_AR="${ac_tool_prefix}ar"
6348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6349 break 2
6350 fi
6351 done
6352 done
6353 IFS=$as_save_IFS
6354
6355 fi
6356 fi
6357 AR=$ac_cv_prog_AR
6358 if test -n "$AR"; then
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6360 $as_echo "$AR" >&6; }
6361 else
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6363 $as_echo "no" >&6; }
6364 fi
6365
6366
6367 fi
6368 if test -z "$ac_cv_prog_AR"; then
6369 ac_ct_AR=$AR
6370 # Extract the first word of "ar", so it can be a program name with args.
6371 set dummy ar; ac_word=$2
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6373 $as_echo_n "checking for $ac_word... " >&6; }
6374 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6375 $as_echo_n "(cached) " >&6
6376 else
6377 if test -n "$ac_ct_AR"; then
6378 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6379 else
6380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6381 for as_dir in $PATH
6382 do
6383 IFS=$as_save_IFS
6384 test -z "$as_dir" && as_dir=.
6385 for ac_exec_ext in '' $ac_executable_extensions; do
6386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6387 ac_cv_prog_ac_ct_AR="ar"
6388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6389 break 2
6390 fi
6391 done
6392 done
6393 IFS=$as_save_IFS
6394
6395 fi
6396 fi
6397 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6398 if test -n "$ac_ct_AR"; then
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6400 $as_echo "$ac_ct_AR" >&6; }
6401 else
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6403 $as_echo "no" >&6; }
6404 fi
6405
6406 if test "x$ac_ct_AR" = x; then
6407 AR="false"
6408 else
6409 case $cross_compiling:$ac_tool_warned in
6410 yes:)
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6412 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6413 ac_tool_warned=yes ;;
6414 esac
6415 AR=$ac_ct_AR
6416 fi
6417 else
6418 AR="$ac_cv_prog_AR"
6419 fi
6420
6421 test -z "$AR" && AR=ar
6422 if test -n "$plugin_option"; then
6423 if $AR --help 2>&1 | grep -q "\--plugin"; then
6424 touch conftest.c
6425 $AR $plugin_option rc conftest.a conftest.c
6426 if test "$?" != 0; then
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6428 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6429 else
6430 AR="$AR $plugin_option"
6431 fi
6432 rm -f conftest.*
6433 fi
6434 fi
6435 test -z "$AR_FLAGS" && AR_FLAGS=cru
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447 if test -n "$ac_tool_prefix"; then
6448 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6449 set dummy ${ac_tool_prefix}strip; ac_word=$2
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6451 $as_echo_n "checking for $ac_word... " >&6; }
6452 if ${ac_cv_prog_STRIP+:} false; then :
6453 $as_echo_n "(cached) " >&6
6454 else
6455 if test -n "$STRIP"; then
6456 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6457 else
6458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6459 for as_dir in $PATH
6460 do
6461 IFS=$as_save_IFS
6462 test -z "$as_dir" && as_dir=.
6463 for ac_exec_ext in '' $ac_executable_extensions; do
6464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6465 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6467 break 2
6468 fi
6469 done
6470 done
6471 IFS=$as_save_IFS
6472
6473 fi
6474 fi
6475 STRIP=$ac_cv_prog_STRIP
6476 if test -n "$STRIP"; then
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6478 $as_echo "$STRIP" >&6; }
6479 else
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6481 $as_echo "no" >&6; }
6482 fi
6483
6484
6485 fi
6486 if test -z "$ac_cv_prog_STRIP"; then
6487 ac_ct_STRIP=$STRIP
6488 # Extract the first word of "strip", so it can be a program name with args.
6489 set dummy strip; ac_word=$2
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6491 $as_echo_n "checking for $ac_word... " >&6; }
6492 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6493 $as_echo_n "(cached) " >&6
6494 else
6495 if test -n "$ac_ct_STRIP"; then
6496 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6497 else
6498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6499 for as_dir in $PATH
6500 do
6501 IFS=$as_save_IFS
6502 test -z "$as_dir" && as_dir=.
6503 for ac_exec_ext in '' $ac_executable_extensions; do
6504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6505 ac_cv_prog_ac_ct_STRIP="strip"
6506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6507 break 2
6508 fi
6509 done
6510 done
6511 IFS=$as_save_IFS
6512
6513 fi
6514 fi
6515 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6516 if test -n "$ac_ct_STRIP"; then
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6518 $as_echo "$ac_ct_STRIP" >&6; }
6519 else
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6521 $as_echo "no" >&6; }
6522 fi
6523
6524 if test "x$ac_ct_STRIP" = x; then
6525 STRIP=":"
6526 else
6527 case $cross_compiling:$ac_tool_warned in
6528 yes:)
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6530 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6531 ac_tool_warned=yes ;;
6532 esac
6533 STRIP=$ac_ct_STRIP
6534 fi
6535 else
6536 STRIP="$ac_cv_prog_STRIP"
6537 fi
6538
6539 test -z "$STRIP" && STRIP=:
6540
6541
6542
6543
6544
6545
6546 if test -n "$ac_tool_prefix"; then
6547 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6548 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6550 $as_echo_n "checking for $ac_word... " >&6; }
6551 if ${ac_cv_prog_RANLIB+:} false; then :
6552 $as_echo_n "(cached) " >&6
6553 else
6554 if test -n "$RANLIB"; then
6555 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6556 else
6557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6558 for as_dir in $PATH
6559 do
6560 IFS=$as_save_IFS
6561 test -z "$as_dir" && as_dir=.
6562 for ac_exec_ext in '' $ac_executable_extensions; do
6563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6564 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6566 break 2
6567 fi
6568 done
6569 done
6570 IFS=$as_save_IFS
6571
6572 fi
6573 fi
6574 RANLIB=$ac_cv_prog_RANLIB
6575 if test -n "$RANLIB"; then
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6577 $as_echo "$RANLIB" >&6; }
6578 else
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6580 $as_echo "no" >&6; }
6581 fi
6582
6583
6584 fi
6585 if test -z "$ac_cv_prog_RANLIB"; then
6586 ac_ct_RANLIB=$RANLIB
6587 # Extract the first word of "ranlib", so it can be a program name with args.
6588 set dummy ranlib; ac_word=$2
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6590 $as_echo_n "checking for $ac_word... " >&6; }
6591 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6592 $as_echo_n "(cached) " >&6
6593 else
6594 if test -n "$ac_ct_RANLIB"; then
6595 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6596 else
6597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598 for as_dir in $PATH
6599 do
6600 IFS=$as_save_IFS
6601 test -z "$as_dir" && as_dir=.
6602 for ac_exec_ext in '' $ac_executable_extensions; do
6603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6604 ac_cv_prog_ac_ct_RANLIB="ranlib"
6605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6606 break 2
6607 fi
6608 done
6609 done
6610 IFS=$as_save_IFS
6611
6612 fi
6613 fi
6614 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6615 if test -n "$ac_ct_RANLIB"; then
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6617 $as_echo "$ac_ct_RANLIB" >&6; }
6618 else
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6620 $as_echo "no" >&6; }
6621 fi
6622
6623 if test "x$ac_ct_RANLIB" = x; then
6624 RANLIB=":"
6625 else
6626 case $cross_compiling:$ac_tool_warned in
6627 yes:)
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6629 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6630 ac_tool_warned=yes ;;
6631 esac
6632 RANLIB=$ac_ct_RANLIB
6633 fi
6634 else
6635 RANLIB="$ac_cv_prog_RANLIB"
6636 fi
6637
6638 test -z "$RANLIB" && RANLIB=:
6639 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6640 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6641 RANLIB="$RANLIB $plugin_option"
6642 fi
6643 fi
6644
6645
6646
6647
6648
6649
6650 # Determine commands to create old-style static archives.
6651 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6652 old_postinstall_cmds='chmod 644 $oldlib'
6653 old_postuninstall_cmds=
6654
6655 if test -n "$RANLIB"; then
6656 case $host_os in
6657 openbsd*)
6658 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6659 ;;
6660 *)
6661 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6662 ;;
6663 esac
6664 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6665 fi
6666
6667 case $host_os in
6668 darwin*)
6669 lock_old_archive_extraction=yes ;;
6670 *)
6671 lock_old_archive_extraction=no ;;
6672 esac
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694 for ac_prog in gawk mawk nawk awk
6695 do
6696 # Extract the first word of "$ac_prog", so it can be a program name with args.
6697 set dummy $ac_prog; ac_word=$2
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6699 $as_echo_n "checking for $ac_word... " >&6; }
6700 if ${ac_cv_prog_AWK+:} false; then :
6701 $as_echo_n "(cached) " >&6
6702 else
6703 if test -n "$AWK"; then
6704 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6705 else
6706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707 for as_dir in $PATH
6708 do
6709 IFS=$as_save_IFS
6710 test -z "$as_dir" && as_dir=.
6711 for ac_exec_ext in '' $ac_executable_extensions; do
6712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6713 ac_cv_prog_AWK="$ac_prog"
6714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6715 break 2
6716 fi
6717 done
6718 done
6719 IFS=$as_save_IFS
6720
6721 fi
6722 fi
6723 AWK=$ac_cv_prog_AWK
6724 if test -n "$AWK"; then
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6726 $as_echo "$AWK" >&6; }
6727 else
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6729 $as_echo "no" >&6; }
6730 fi
6731
6732
6733 test -n "$AWK" && break
6734 done
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754 # If no C compiler was specified, use CC.
6755 LTCC=${LTCC-"$CC"}
6756
6757 # If no C compiler flags were specified, use CFLAGS.
6758 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6759
6760 # Allow CC to be a program name with arguments.
6761 compiler=$CC
6762
6763
6764 # Check for command to grab the raw symbol name followed by C symbol from nm.
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6766 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6767 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6768 $as_echo_n "(cached) " >&6
6769 else
6770
6771 # These are sane defaults that work on at least a few old systems.
6772 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6773
6774 # Character class describing NM global symbol codes.
6775 symcode='[BCDEGRST]'
6776
6777 # Regexp to match symbols that can be accessed directly from C.
6778 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6779
6780 # Define system-specific variables.
6781 case $host_os in
6782 aix*)
6783 symcode='[BCDT]'
6784 ;;
6785 cygwin* | mingw* | pw32* | cegcc*)
6786 symcode='[ABCDGISTW]'
6787 ;;
6788 hpux*)
6789 if test "$host_cpu" = ia64; then
6790 symcode='[ABCDEGRST]'
6791 fi
6792 ;;
6793 irix* | nonstopux*)
6794 symcode='[BCDEGRST]'
6795 ;;
6796 osf*)
6797 symcode='[BCDEGQRST]'
6798 ;;
6799 solaris*)
6800 symcode='[BCDRT]'
6801 ;;
6802 sco3.2v5*)
6803 symcode='[DT]'
6804 ;;
6805 sysv4.2uw2*)
6806 symcode='[DT]'
6807 ;;
6808 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6809 symcode='[ABDT]'
6810 ;;
6811 sysv4)
6812 symcode='[DFNSTU]'
6813 ;;
6814 esac
6815
6816 # If we're using GNU nm, then use its standard symbol codes.
6817 case `$NM -V 2>&1` in
6818 *GNU* | *'with BFD'*)
6819 symcode='[ABCDGIRSTW]' ;;
6820 esac
6821
6822 # Transform an extracted symbol line into a proper C declaration.
6823 # Some systems (esp. on ia64) link data and code symbols differently,
6824 # so use this general approach.
6825 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6826
6827 # Transform an extracted symbol line into symbol name and symbol address
6828 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6829 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'"
6830
6831 # Handle CRLF in mingw tool chain
6832 opt_cr=
6833 case $build_os in
6834 mingw*)
6835 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6836 ;;
6837 esac
6838
6839 # Try without a prefix underscore, then with it.
6840 for ac_symprfx in "" "_"; do
6841
6842 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6843 symxfrm="\\1 $ac_symprfx\\2 \\2"
6844
6845 # Write the raw and C identifiers.
6846 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6847 # Fake it for dumpbin and say T for any non-static function
6848 # and D for any global variable.
6849 # Also find C++ and __fastcall symbols from MSVC++,
6850 # which start with @ or ?.
6851 lt_cv_sys_global_symbol_pipe="$AWK '"\
6852 " {last_section=section; section=\$ 3};"\
6853 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6854 " \$ 0!~/External *\|/{next};"\
6855 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6856 " {if(hide[section]) next};"\
6857 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6858 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6859 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6860 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6861 " ' prfx=^$ac_symprfx"
6862 else
6863 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6864 fi
6865
6866 # Check to see that the pipe works correctly.
6867 pipe_works=no
6868
6869 rm -f conftest*
6870 cat > conftest.$ac_ext <<_LT_EOF
6871 #ifdef __cplusplus
6872 extern "C" {
6873 #endif
6874 char nm_test_var;
6875 void nm_test_func(void);
6876 void nm_test_func(void){}
6877 #ifdef __cplusplus
6878 }
6879 #endif
6880 int main(){nm_test_var='a';nm_test_func();return(0);}
6881 _LT_EOF
6882
6883 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6884 (eval $ac_compile) 2>&5
6885 ac_status=$?
6886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6887 test $ac_status = 0; }; then
6888 # Now try to grab the symbols.
6889 nlist=conftest.nm
6890 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6891 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6892 ac_status=$?
6893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6894 test $ac_status = 0; } && test -s "$nlist"; then
6895 # Try sorting and uniquifying the output.
6896 if sort "$nlist" | uniq > "$nlist"T; then
6897 mv -f "$nlist"T "$nlist"
6898 else
6899 rm -f "$nlist"T
6900 fi
6901
6902 # Make sure that we snagged all the symbols we need.
6903 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6904 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6905 cat <<_LT_EOF > conftest.$ac_ext
6906 #ifdef __cplusplus
6907 extern "C" {
6908 #endif
6909
6910 _LT_EOF
6911 # Now generate the symbol file.
6912 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6913
6914 cat <<_LT_EOF >> conftest.$ac_ext
6915
6916 /* The mapping between symbol names and symbols. */
6917 const struct {
6918 const char *name;
6919 void *address;
6920 }
6921 lt__PROGRAM__LTX_preloaded_symbols[] =
6922 {
6923 { "@PROGRAM@", (void *) 0 },
6924 _LT_EOF
6925 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6926 cat <<\_LT_EOF >> conftest.$ac_ext
6927 {0, (void *) 0}
6928 };
6929
6930 /* This works around a problem in FreeBSD linker */
6931 #ifdef FREEBSD_WORKAROUND
6932 static const void *lt_preloaded_setup() {
6933 return lt__PROGRAM__LTX_preloaded_symbols;
6934 }
6935 #endif
6936
6937 #ifdef __cplusplus
6938 }
6939 #endif
6940 _LT_EOF
6941 # Now try linking the two files.
6942 mv conftest.$ac_objext conftstm.$ac_objext
6943 lt_save_LIBS="$LIBS"
6944 lt_save_CFLAGS="$CFLAGS"
6945 LIBS="conftstm.$ac_objext"
6946 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6947 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6948 (eval $ac_link) 2>&5
6949 ac_status=$?
6950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6951 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6952 pipe_works=yes
6953 fi
6954 LIBS="$lt_save_LIBS"
6955 CFLAGS="$lt_save_CFLAGS"
6956 else
6957 echo "cannot find nm_test_func in $nlist" >&5
6958 fi
6959 else
6960 echo "cannot find nm_test_var in $nlist" >&5
6961 fi
6962 else
6963 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6964 fi
6965 else
6966 echo "$progname: failed program was:" >&5
6967 cat conftest.$ac_ext >&5
6968 fi
6969 rm -rf conftest* conftst*
6970
6971 # Do not use the global_symbol_pipe unless it works.
6972 if test "$pipe_works" = yes; then
6973 break
6974 else
6975 lt_cv_sys_global_symbol_pipe=
6976 fi
6977 done
6978
6979 fi
6980
6981 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6982 lt_cv_sys_global_symbol_to_cdecl=
6983 fi
6984 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6986 $as_echo "failed" >&6; }
6987 else
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6989 $as_echo "ok" >&6; }
6990 fi
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013 # Check whether --enable-libtool-lock was given.
7014 if test "${enable_libtool_lock+set}" = set; then :
7015 enableval=$enable_libtool_lock;
7016 fi
7017
7018 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7019
7020 # Some flags need to be propagated to the compiler or linker for good
7021 # libtool support.
7022 case $host in
7023 ia64-*-hpux*)
7024 # Find out which ABI we are using.
7025 echo 'int i;' > conftest.$ac_ext
7026 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7027 (eval $ac_compile) 2>&5
7028 ac_status=$?
7029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7030 test $ac_status = 0; }; then
7031 case `/usr/bin/file conftest.$ac_objext` in
7032 *ELF-32*)
7033 HPUX_IA64_MODE="32"
7034 ;;
7035 *ELF-64*)
7036 HPUX_IA64_MODE="64"
7037 ;;
7038 esac
7039 fi
7040 rm -rf conftest*
7041 ;;
7042 *-*-irix6*)
7043 # Find out which ABI we are using.
7044 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7045 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7046 (eval $ac_compile) 2>&5
7047 ac_status=$?
7048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7049 test $ac_status = 0; }; then
7050 if test "$lt_cv_prog_gnu_ld" = yes; then
7051 case `/usr/bin/file conftest.$ac_objext` in
7052 *32-bit*)
7053 LD="${LD-ld} -melf32bsmip"
7054 ;;
7055 *N32*)
7056 LD="${LD-ld} -melf32bmipn32"
7057 ;;
7058 *64-bit*)
7059 LD="${LD-ld} -melf64bmip"
7060 ;;
7061 esac
7062 else
7063 case `/usr/bin/file conftest.$ac_objext` in
7064 *32-bit*)
7065 LD="${LD-ld} -32"
7066 ;;
7067 *N32*)
7068 LD="${LD-ld} -n32"
7069 ;;
7070 *64-bit*)
7071 LD="${LD-ld} -64"
7072 ;;
7073 esac
7074 fi
7075 fi
7076 rm -rf conftest*
7077 ;;
7078
7079 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7080 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7081 # Find out which ABI we are using.
7082 echo 'int i;' > conftest.$ac_ext
7083 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7084 (eval $ac_compile) 2>&5
7085 ac_status=$?
7086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7087 test $ac_status = 0; }; then
7088 case `/usr/bin/file conftest.o` in
7089 *32-bit*)
7090 case $host in
7091 x86_64-*kfreebsd*-gnu)
7092 LD="${LD-ld} -m elf_i386_fbsd"
7093 ;;
7094 x86_64-*linux*)
7095 case `/usr/bin/file conftest.o` in
7096 *x86-64*)
7097 LD="${LD-ld} -m elf32_x86_64"
7098 ;;
7099 *)
7100 LD="${LD-ld} -m elf_i386"
7101 ;;
7102 esac
7103 ;;
7104 powerpc64le-*linux*)
7105 LD="${LD-ld} -m elf32lppclinux"
7106 ;;
7107 powerpc64-*linux*)
7108 LD="${LD-ld} -m elf32ppclinux"
7109 ;;
7110 s390x-*linux*)
7111 LD="${LD-ld} -m elf_s390"
7112 ;;
7113 sparc64-*linux*)
7114 LD="${LD-ld} -m elf32_sparc"
7115 ;;
7116 esac
7117 ;;
7118 *64-bit*)
7119 case $host in
7120 x86_64-*kfreebsd*-gnu)
7121 LD="${LD-ld} -m elf_x86_64_fbsd"
7122 ;;
7123 x86_64-*linux*)
7124 LD="${LD-ld} -m elf_x86_64"
7125 ;;
7126 powerpcle-*linux*)
7127 LD="${LD-ld} -m elf64lppc"
7128 ;;
7129 powerpc-*linux*)
7130 LD="${LD-ld} -m elf64ppc"
7131 ;;
7132 s390*-*linux*|s390*-*tpf*)
7133 LD="${LD-ld} -m elf64_s390"
7134 ;;
7135 sparc*-*linux*)
7136 LD="${LD-ld} -m elf64_sparc"
7137 ;;
7138 esac
7139 ;;
7140 esac
7141 fi
7142 rm -rf conftest*
7143 ;;
7144
7145 *-*-sco3.2v5*)
7146 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7147 SAVE_CFLAGS="$CFLAGS"
7148 CFLAGS="$CFLAGS -belf"
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7150 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7151 if ${lt_cv_cc_needs_belf+:} false; then :
7152 $as_echo_n "(cached) " >&6
7153 else
7154 ac_ext=c
7155 ac_cpp='$CPP $CPPFLAGS'
7156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7159
7160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7161 /* end confdefs.h. */
7162
7163 int
7164 main ()
7165 {
7166
7167 ;
7168 return 0;
7169 }
7170 _ACEOF
7171 if ac_fn_c_try_link "$LINENO"; then :
7172 lt_cv_cc_needs_belf=yes
7173 else
7174 lt_cv_cc_needs_belf=no
7175 fi
7176 rm -f core conftest.err conftest.$ac_objext \
7177 conftest$ac_exeext conftest.$ac_ext
7178 ac_ext=c
7179 ac_cpp='$CPP $CPPFLAGS'
7180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7183
7184 fi
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7186 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7187 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7188 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7189 CFLAGS="$SAVE_CFLAGS"
7190 fi
7191 ;;
7192 sparc*-*solaris*)
7193 # Find out which ABI we are using.
7194 echo 'int i;' > conftest.$ac_ext
7195 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7196 (eval $ac_compile) 2>&5
7197 ac_status=$?
7198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7199 test $ac_status = 0; }; then
7200 case `/usr/bin/file conftest.o` in
7201 *64-bit*)
7202 case $lt_cv_prog_gnu_ld in
7203 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7204 *)
7205 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7206 LD="${LD-ld} -64"
7207 fi
7208 ;;
7209 esac
7210 ;;
7211 esac
7212 fi
7213 rm -rf conftest*
7214 ;;
7215 esac
7216
7217 need_locks="$enable_libtool_lock"
7218
7219
7220 case $host_os in
7221 rhapsody* | darwin*)
7222 if test -n "$ac_tool_prefix"; then
7223 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7224 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7226 $as_echo_n "checking for $ac_word... " >&6; }
7227 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7228 $as_echo_n "(cached) " >&6
7229 else
7230 if test -n "$DSYMUTIL"; then
7231 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7232 else
7233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7234 for as_dir in $PATH
7235 do
7236 IFS=$as_save_IFS
7237 test -z "$as_dir" && as_dir=.
7238 for ac_exec_ext in '' $ac_executable_extensions; do
7239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7240 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7242 break 2
7243 fi
7244 done
7245 done
7246 IFS=$as_save_IFS
7247
7248 fi
7249 fi
7250 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7251 if test -n "$DSYMUTIL"; then
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7253 $as_echo "$DSYMUTIL" >&6; }
7254 else
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7256 $as_echo "no" >&6; }
7257 fi
7258
7259
7260 fi
7261 if test -z "$ac_cv_prog_DSYMUTIL"; then
7262 ac_ct_DSYMUTIL=$DSYMUTIL
7263 # Extract the first word of "dsymutil", so it can be a program name with args.
7264 set dummy dsymutil; ac_word=$2
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7266 $as_echo_n "checking for $ac_word... " >&6; }
7267 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7268 $as_echo_n "(cached) " >&6
7269 else
7270 if test -n "$ac_ct_DSYMUTIL"; then
7271 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7272 else
7273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274 for as_dir in $PATH
7275 do
7276 IFS=$as_save_IFS
7277 test -z "$as_dir" && as_dir=.
7278 for ac_exec_ext in '' $ac_executable_extensions; do
7279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7280 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7282 break 2
7283 fi
7284 done
7285 done
7286 IFS=$as_save_IFS
7287
7288 fi
7289 fi
7290 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7291 if test -n "$ac_ct_DSYMUTIL"; then
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7293 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7294 else
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7296 $as_echo "no" >&6; }
7297 fi
7298
7299 if test "x$ac_ct_DSYMUTIL" = x; then
7300 DSYMUTIL=":"
7301 else
7302 case $cross_compiling:$ac_tool_warned in
7303 yes:)
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7306 ac_tool_warned=yes ;;
7307 esac
7308 DSYMUTIL=$ac_ct_DSYMUTIL
7309 fi
7310 else
7311 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7312 fi
7313
7314 if test -n "$ac_tool_prefix"; then
7315 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7316 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7318 $as_echo_n "checking for $ac_word... " >&6; }
7319 if ${ac_cv_prog_NMEDIT+:} false; then :
7320 $as_echo_n "(cached) " >&6
7321 else
7322 if test -n "$NMEDIT"; then
7323 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7324 else
7325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326 for as_dir in $PATH
7327 do
7328 IFS=$as_save_IFS
7329 test -z "$as_dir" && as_dir=.
7330 for ac_exec_ext in '' $ac_executable_extensions; do
7331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7332 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7334 break 2
7335 fi
7336 done
7337 done
7338 IFS=$as_save_IFS
7339
7340 fi
7341 fi
7342 NMEDIT=$ac_cv_prog_NMEDIT
7343 if test -n "$NMEDIT"; then
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7345 $as_echo "$NMEDIT" >&6; }
7346 else
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7348 $as_echo "no" >&6; }
7349 fi
7350
7351
7352 fi
7353 if test -z "$ac_cv_prog_NMEDIT"; then
7354 ac_ct_NMEDIT=$NMEDIT
7355 # Extract the first word of "nmedit", so it can be a program name with args.
7356 set dummy nmedit; ac_word=$2
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7358 $as_echo_n "checking for $ac_word... " >&6; }
7359 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7360 $as_echo_n "(cached) " >&6
7361 else
7362 if test -n "$ac_ct_NMEDIT"; then
7363 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7364 else
7365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7366 for as_dir in $PATH
7367 do
7368 IFS=$as_save_IFS
7369 test -z "$as_dir" && as_dir=.
7370 for ac_exec_ext in '' $ac_executable_extensions; do
7371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7372 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7374 break 2
7375 fi
7376 done
7377 done
7378 IFS=$as_save_IFS
7379
7380 fi
7381 fi
7382 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7383 if test -n "$ac_ct_NMEDIT"; then
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7385 $as_echo "$ac_ct_NMEDIT" >&6; }
7386 else
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7388 $as_echo "no" >&6; }
7389 fi
7390
7391 if test "x$ac_ct_NMEDIT" = x; then
7392 NMEDIT=":"
7393 else
7394 case $cross_compiling:$ac_tool_warned in
7395 yes:)
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7398 ac_tool_warned=yes ;;
7399 esac
7400 NMEDIT=$ac_ct_NMEDIT
7401 fi
7402 else
7403 NMEDIT="$ac_cv_prog_NMEDIT"
7404 fi
7405
7406 if test -n "$ac_tool_prefix"; then
7407 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7408 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7410 $as_echo_n "checking for $ac_word... " >&6; }
7411 if ${ac_cv_prog_LIPO+:} false; then :
7412 $as_echo_n "(cached) " >&6
7413 else
7414 if test -n "$LIPO"; then
7415 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7416 else
7417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7418 for as_dir in $PATH
7419 do
7420 IFS=$as_save_IFS
7421 test -z "$as_dir" && as_dir=.
7422 for ac_exec_ext in '' $ac_executable_extensions; do
7423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7424 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7426 break 2
7427 fi
7428 done
7429 done
7430 IFS=$as_save_IFS
7431
7432 fi
7433 fi
7434 LIPO=$ac_cv_prog_LIPO
7435 if test -n "$LIPO"; then
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7437 $as_echo "$LIPO" >&6; }
7438 else
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7440 $as_echo "no" >&6; }
7441 fi
7442
7443
7444 fi
7445 if test -z "$ac_cv_prog_LIPO"; then
7446 ac_ct_LIPO=$LIPO
7447 # Extract the first word of "lipo", so it can be a program name with args.
7448 set dummy lipo; ac_word=$2
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7450 $as_echo_n "checking for $ac_word... " >&6; }
7451 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7452 $as_echo_n "(cached) " >&6
7453 else
7454 if test -n "$ac_ct_LIPO"; then
7455 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7456 else
7457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7458 for as_dir in $PATH
7459 do
7460 IFS=$as_save_IFS
7461 test -z "$as_dir" && as_dir=.
7462 for ac_exec_ext in '' $ac_executable_extensions; do
7463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7464 ac_cv_prog_ac_ct_LIPO="lipo"
7465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7466 break 2
7467 fi
7468 done
7469 done
7470 IFS=$as_save_IFS
7471
7472 fi
7473 fi
7474 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7475 if test -n "$ac_ct_LIPO"; then
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7477 $as_echo "$ac_ct_LIPO" >&6; }
7478 else
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7480 $as_echo "no" >&6; }
7481 fi
7482
7483 if test "x$ac_ct_LIPO" = x; then
7484 LIPO=":"
7485 else
7486 case $cross_compiling:$ac_tool_warned in
7487 yes:)
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7490 ac_tool_warned=yes ;;
7491 esac
7492 LIPO=$ac_ct_LIPO
7493 fi
7494 else
7495 LIPO="$ac_cv_prog_LIPO"
7496 fi
7497
7498 if test -n "$ac_tool_prefix"; then
7499 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7500 set dummy ${ac_tool_prefix}otool; ac_word=$2
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7502 $as_echo_n "checking for $ac_word... " >&6; }
7503 if ${ac_cv_prog_OTOOL+:} false; then :
7504 $as_echo_n "(cached) " >&6
7505 else
7506 if test -n "$OTOOL"; then
7507 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7508 else
7509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7510 for as_dir in $PATH
7511 do
7512 IFS=$as_save_IFS
7513 test -z "$as_dir" && as_dir=.
7514 for ac_exec_ext in '' $ac_executable_extensions; do
7515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7516 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7518 break 2
7519 fi
7520 done
7521 done
7522 IFS=$as_save_IFS
7523
7524 fi
7525 fi
7526 OTOOL=$ac_cv_prog_OTOOL
7527 if test -n "$OTOOL"; then
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7529 $as_echo "$OTOOL" >&6; }
7530 else
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7532 $as_echo "no" >&6; }
7533 fi
7534
7535
7536 fi
7537 if test -z "$ac_cv_prog_OTOOL"; then
7538 ac_ct_OTOOL=$OTOOL
7539 # Extract the first word of "otool", so it can be a program name with args.
7540 set dummy otool; ac_word=$2
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7542 $as_echo_n "checking for $ac_word... " >&6; }
7543 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7544 $as_echo_n "(cached) " >&6
7545 else
7546 if test -n "$ac_ct_OTOOL"; then
7547 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7548 else
7549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7550 for as_dir in $PATH
7551 do
7552 IFS=$as_save_IFS
7553 test -z "$as_dir" && as_dir=.
7554 for ac_exec_ext in '' $ac_executable_extensions; do
7555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7556 ac_cv_prog_ac_ct_OTOOL="otool"
7557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7558 break 2
7559 fi
7560 done
7561 done
7562 IFS=$as_save_IFS
7563
7564 fi
7565 fi
7566 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7567 if test -n "$ac_ct_OTOOL"; then
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7569 $as_echo "$ac_ct_OTOOL" >&6; }
7570 else
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7572 $as_echo "no" >&6; }
7573 fi
7574
7575 if test "x$ac_ct_OTOOL" = x; then
7576 OTOOL=":"
7577 else
7578 case $cross_compiling:$ac_tool_warned in
7579 yes:)
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7582 ac_tool_warned=yes ;;
7583 esac
7584 OTOOL=$ac_ct_OTOOL
7585 fi
7586 else
7587 OTOOL="$ac_cv_prog_OTOOL"
7588 fi
7589
7590 if test -n "$ac_tool_prefix"; then
7591 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7592 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7594 $as_echo_n "checking for $ac_word... " >&6; }
7595 if ${ac_cv_prog_OTOOL64+:} false; then :
7596 $as_echo_n "(cached) " >&6
7597 else
7598 if test -n "$OTOOL64"; then
7599 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7600 else
7601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7602 for as_dir in $PATH
7603 do
7604 IFS=$as_save_IFS
7605 test -z "$as_dir" && as_dir=.
7606 for ac_exec_ext in '' $ac_executable_extensions; do
7607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7608 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7610 break 2
7611 fi
7612 done
7613 done
7614 IFS=$as_save_IFS
7615
7616 fi
7617 fi
7618 OTOOL64=$ac_cv_prog_OTOOL64
7619 if test -n "$OTOOL64"; then
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7621 $as_echo "$OTOOL64" >&6; }
7622 else
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7624 $as_echo "no" >&6; }
7625 fi
7626
7627
7628 fi
7629 if test -z "$ac_cv_prog_OTOOL64"; then
7630 ac_ct_OTOOL64=$OTOOL64
7631 # Extract the first word of "otool64", so it can be a program name with args.
7632 set dummy otool64; ac_word=$2
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7634 $as_echo_n "checking for $ac_word... " >&6; }
7635 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7636 $as_echo_n "(cached) " >&6
7637 else
7638 if test -n "$ac_ct_OTOOL64"; then
7639 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7640 else
7641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7642 for as_dir in $PATH
7643 do
7644 IFS=$as_save_IFS
7645 test -z "$as_dir" && as_dir=.
7646 for ac_exec_ext in '' $ac_executable_extensions; do
7647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7648 ac_cv_prog_ac_ct_OTOOL64="otool64"
7649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7650 break 2
7651 fi
7652 done
7653 done
7654 IFS=$as_save_IFS
7655
7656 fi
7657 fi
7658 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7659 if test -n "$ac_ct_OTOOL64"; then
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7661 $as_echo "$ac_ct_OTOOL64" >&6; }
7662 else
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7664 $as_echo "no" >&6; }
7665 fi
7666
7667 if test "x$ac_ct_OTOOL64" = x; then
7668 OTOOL64=":"
7669 else
7670 case $cross_compiling:$ac_tool_warned in
7671 yes:)
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7673 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7674 ac_tool_warned=yes ;;
7675 esac
7676 OTOOL64=$ac_ct_OTOOL64
7677 fi
7678 else
7679 OTOOL64="$ac_cv_prog_OTOOL64"
7680 fi
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7709 $as_echo_n "checking for -single_module linker flag... " >&6; }
7710 if ${lt_cv_apple_cc_single_mod+:} false; then :
7711 $as_echo_n "(cached) " >&6
7712 else
7713 lt_cv_apple_cc_single_mod=no
7714 if test -z "${LT_MULTI_MODULE}"; then
7715 # By default we will add the -single_module flag. You can override
7716 # by either setting the environment variable LT_MULTI_MODULE
7717 # non-empty at configure time, or by adding -multi_module to the
7718 # link flags.
7719 rm -rf libconftest.dylib*
7720 echo "int foo(void){return 1;}" > conftest.c
7721 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7722 -dynamiclib -Wl,-single_module conftest.c" >&5
7723 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7724 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7725 _lt_result=$?
7726 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7727 lt_cv_apple_cc_single_mod=yes
7728 else
7729 cat conftest.err >&5
7730 fi
7731 rm -rf libconftest.dylib*
7732 rm -f conftest.*
7733 fi
7734 fi
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7736 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7738 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7739 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7740 $as_echo_n "(cached) " >&6
7741 else
7742 lt_cv_ld_exported_symbols_list=no
7743 save_LDFLAGS=$LDFLAGS
7744 echo "_main" > conftest.sym
7745 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7747 /* end confdefs.h. */
7748
7749 int
7750 main ()
7751 {
7752
7753 ;
7754 return 0;
7755 }
7756 _ACEOF
7757 if ac_fn_c_try_link "$LINENO"; then :
7758 lt_cv_ld_exported_symbols_list=yes
7759 else
7760 lt_cv_ld_exported_symbols_list=no
7761 fi
7762 rm -f core conftest.err conftest.$ac_objext \
7763 conftest$ac_exeext conftest.$ac_ext
7764 LDFLAGS="$save_LDFLAGS"
7765
7766 fi
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7768 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7770 $as_echo_n "checking for -force_load linker flag... " >&6; }
7771 if ${lt_cv_ld_force_load+:} false; then :
7772 $as_echo_n "(cached) " >&6
7773 else
7774 lt_cv_ld_force_load=no
7775 cat > conftest.c << _LT_EOF
7776 int forced_loaded() { return 2;}
7777 _LT_EOF
7778 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7779 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7780 echo "$AR cru libconftest.a conftest.o" >&5
7781 $AR cru libconftest.a conftest.o 2>&5
7782 cat > conftest.c << _LT_EOF
7783 int main() { return 0;}
7784 _LT_EOF
7785 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7786 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7787 _lt_result=$?
7788 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7789 lt_cv_ld_force_load=yes
7790 else
7791 cat conftest.err >&5
7792 fi
7793 rm -f conftest.err libconftest.a conftest conftest.c
7794 rm -rf conftest.dSYM
7795
7796 fi
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7798 $as_echo "$lt_cv_ld_force_load" >&6; }
7799 case $host_os in
7800 rhapsody* | darwin1.[012])
7801 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7802 darwin1.*)
7803 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7804 darwin*) # darwin 5.x on
7805 # if running on 10.5 or later, the deployment target defaults
7806 # to the OS version, if on x86, and 10.4, the deployment
7807 # target defaults to 10.4. Don't you love it?
7808 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7809 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7810 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7811 10.[012][,.]*)
7812 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7813 10.*)
7814 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7815 esac
7816 ;;
7817 esac
7818 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7819 _lt_dar_single_mod='$single_module'
7820 fi
7821 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7822 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7823 else
7824 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7825 fi
7826 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7827 _lt_dsymutil='~$DSYMUTIL $lib || :'
7828 else
7829 _lt_dsymutil=
7830 fi
7831 ;;
7832 esac
7833
7834 for ac_header in dlfcn.h
7835 do :
7836 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7837 "
7838 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7839 cat >>confdefs.h <<_ACEOF
7840 #define HAVE_DLFCN_H 1
7841 _ACEOF
7842
7843 fi
7844
7845 done
7846
7847
7848 ac_header_dirent=no
7849 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7850 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
7852 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
7853 if eval \${$as_ac_Header+:} false; then :
7854 $as_echo_n "(cached) " >&6
7855 else
7856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7857 /* end confdefs.h. */
7858 #include <sys/types.h>
7859 #include <$ac_hdr>
7860
7861 int
7862 main ()
7863 {
7864 if ((DIR *) 0)
7865 return 0;
7866 ;
7867 return 0;
7868 }
7869 _ACEOF
7870 if ac_fn_c_try_compile "$LINENO"; then :
7871 eval "$as_ac_Header=yes"
7872 else
7873 eval "$as_ac_Header=no"
7874 fi
7875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7876 fi
7877 eval ac_res=\$$as_ac_Header
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7879 $as_echo "$ac_res" >&6; }
7880 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7881 cat >>confdefs.h <<_ACEOF
7882 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7883 _ACEOF
7884
7885 ac_header_dirent=$ac_hdr; break
7886 fi
7887
7888 done
7889 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7890 if test $ac_header_dirent = dirent.h; then
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7892 $as_echo_n "checking for library containing opendir... " >&6; }
7893 if ${ac_cv_search_opendir+:} false; then :
7894 $as_echo_n "(cached) " >&6
7895 else
7896 ac_func_search_save_LIBS=$LIBS
7897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7898 /* end confdefs.h. */
7899
7900 /* Override any GCC internal prototype to avoid an error.
7901 Use char because int might match the return type of a GCC
7902 builtin and then its argument prototype would still apply. */
7903 #ifdef __cplusplus
7904 extern "C"
7905 #endif
7906 char opendir ();
7907 int
7908 main ()
7909 {
7910 return opendir ();
7911 ;
7912 return 0;
7913 }
7914 _ACEOF
7915 for ac_lib in '' dir; do
7916 if test -z "$ac_lib"; then
7917 ac_res="none required"
7918 else
7919 ac_res=-l$ac_lib
7920 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7921 fi
7922 if ac_fn_c_try_link "$LINENO"; then :
7923 ac_cv_search_opendir=$ac_res
7924 fi
7925 rm -f core conftest.err conftest.$ac_objext \
7926 conftest$ac_exeext
7927 if ${ac_cv_search_opendir+:} false; then :
7928 break
7929 fi
7930 done
7931 if ${ac_cv_search_opendir+:} false; then :
7932
7933 else
7934 ac_cv_search_opendir=no
7935 fi
7936 rm conftest.$ac_ext
7937 LIBS=$ac_func_search_save_LIBS
7938 fi
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7940 $as_echo "$ac_cv_search_opendir" >&6; }
7941 ac_res=$ac_cv_search_opendir
7942 if test "$ac_res" != no; then :
7943 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7944
7945 fi
7946
7947 else
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7949 $as_echo_n "checking for library containing opendir... " >&6; }
7950 if ${ac_cv_search_opendir+:} false; then :
7951 $as_echo_n "(cached) " >&6
7952 else
7953 ac_func_search_save_LIBS=$LIBS
7954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7955 /* end confdefs.h. */
7956
7957 /* Override any GCC internal prototype to avoid an error.
7958 Use char because int might match the return type of a GCC
7959 builtin and then its argument prototype would still apply. */
7960 #ifdef __cplusplus
7961 extern "C"
7962 #endif
7963 char opendir ();
7964 int
7965 main ()
7966 {
7967 return opendir ();
7968 ;
7969 return 0;
7970 }
7971 _ACEOF
7972 for ac_lib in '' x; do
7973 if test -z "$ac_lib"; then
7974 ac_res="none required"
7975 else
7976 ac_res=-l$ac_lib
7977 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7978 fi
7979 if ac_fn_c_try_link "$LINENO"; then :
7980 ac_cv_search_opendir=$ac_res
7981 fi
7982 rm -f core conftest.err conftest.$ac_objext \
7983 conftest$ac_exeext
7984 if ${ac_cv_search_opendir+:} false; then :
7985 break
7986 fi
7987 done
7988 if ${ac_cv_search_opendir+:} false; then :
7989
7990 else
7991 ac_cv_search_opendir=no
7992 fi
7993 rm conftest.$ac_ext
7994 LIBS=$ac_func_search_save_LIBS
7995 fi
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7997 $as_echo "$ac_cv_search_opendir" >&6; }
7998 ac_res=$ac_cv_search_opendir
7999 if test "$ac_res" != no; then :
8000 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8001
8002 fi
8003
8004 fi
8005
8006
8007
8008
8009 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
8010 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8011
8012 cat >>confdefs.h <<_ACEOF
8013 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8014 _ACEOF
8015
8016
8017 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
8018
8019 fi
8020
8021
8022 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
8023 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8024
8025 cat >>confdefs.h <<_ACEOF
8026 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
8027 _ACEOF
8028
8029
8030 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
8031
8032 else
8033 case " $LIBOBJS " in
8034 *" fileblocks.$ac_objext "* ) ;;
8035 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
8036 ;;
8037 esac
8038
8039 fi
8040
8041
8042 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
8043 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
8044
8045 cat >>confdefs.h <<_ACEOF
8046 #define HAVE_STRUCT_STAT_ST_RDEV 1
8047 _ACEOF
8048
8049
8050 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
8051
8052 fi
8053
8054
8055 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8056 #include <$ac_cv_struct_tm>
8057
8058 "
8059 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
8060
8061 cat >>confdefs.h <<_ACEOF
8062 #define HAVE_STRUCT_TM_TM_ZONE 1
8063 _ACEOF
8064
8065
8066 fi
8067
8068 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8069
8070 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8071
8072 else
8073 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8074 "
8075 if test "x$ac_cv_have_decl_tzname" = xyes; then :
8076 ac_have_decl=1
8077 else
8078 ac_have_decl=0
8079 fi
8080
8081 cat >>confdefs.h <<_ACEOF
8082 #define HAVE_DECL_TZNAME $ac_have_decl
8083 _ACEOF
8084
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8086 $as_echo_n "checking for tzname... " >&6; }
8087 if ${ac_cv_var_tzname+:} false; then :
8088 $as_echo_n "(cached) " >&6
8089 else
8090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8091 /* end confdefs.h. */
8092 #include <time.h>
8093 #if !HAVE_DECL_TZNAME
8094 extern char *tzname[];
8095 #endif
8096
8097 int
8098 main ()
8099 {
8100 return tzname[0][0];
8101 ;
8102 return 0;
8103 }
8104 _ACEOF
8105 if ac_fn_c_try_link "$LINENO"; then :
8106 ac_cv_var_tzname=yes
8107 else
8108 ac_cv_var_tzname=no
8109 fi
8110 rm -f core conftest.err conftest.$ac_objext \
8111 conftest$ac_exeext conftest.$ac_ext
8112 fi
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8114 $as_echo "$ac_cv_var_tzname" >&6; }
8115 if test $ac_cv_var_tzname = yes; then
8116
8117 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8118
8119 fi
8120 fi
8121
8122
8123 ac_fn_c_check_member "$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H
8124 #include <sys/types.h>
8125 #endif
8126 #ifdef HAVE_SYS_STAT_H
8127 #include <sys/stat.h>
8128 #endif
8129 "
8130 if test "x$ac_cv_member_struct_stat_st_dev" = xyes; then :
8131
8132 cat >>confdefs.h <<_ACEOF
8133 #define HAVE_STRUCT_STAT_ST_DEV 1
8134 _ACEOF
8135
8136
8137 fi
8138 ac_fn_c_check_member "$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#ifdef HAVE_SYS_TYPES_H
8139 #include <sys/types.h>
8140 #endif
8141 #ifdef HAVE_SYS_STAT_H
8142 #include <sys/stat.h>
8143 #endif
8144 "
8145 if test "x$ac_cv_member_struct_stat_st_ino" = xyes; then :
8146
8147 cat >>confdefs.h <<_ACEOF
8148 #define HAVE_STRUCT_STAT_ST_INO 1
8149 _ACEOF
8150
8151
8152 fi
8153 ac_fn_c_check_member "$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#ifdef HAVE_SYS_TYPES_H
8154 #include <sys/types.h>
8155 #endif
8156 #ifdef HAVE_SYS_STAT_H
8157 #include <sys/stat.h>
8158 #endif
8159 "
8160 if test "x$ac_cv_member_struct_stat_st_mode" = xyes; then :
8161
8162 cat >>confdefs.h <<_ACEOF
8163 #define HAVE_STRUCT_STAT_ST_MODE 1
8164 _ACEOF
8165
8166
8167 fi
8168 ac_fn_c_check_member "$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#ifdef HAVE_SYS_TYPES_H
8169 #include <sys/types.h>
8170 #endif
8171 #ifdef HAVE_SYS_STAT_H
8172 #include <sys/stat.h>
8173 #endif
8174 "
8175 if test "x$ac_cv_member_struct_stat_st_nlink" = xyes; then :
8176
8177 cat >>confdefs.h <<_ACEOF
8178 #define HAVE_STRUCT_STAT_ST_NLINK 1
8179 _ACEOF
8180
8181
8182 fi
8183 ac_fn_c_check_member "$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#ifdef HAVE_SYS_TYPES_H
8184 #include <sys/types.h>
8185 #endif
8186 #ifdef HAVE_SYS_STAT_H
8187 #include <sys/stat.h>
8188 #endif
8189 "
8190 if test "x$ac_cv_member_struct_stat_st_uid" = xyes; then :
8191
8192 cat >>confdefs.h <<_ACEOF
8193 #define HAVE_STRUCT_STAT_ST_UID 1
8194 _ACEOF
8195
8196
8197 fi
8198 ac_fn_c_check_member "$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#ifdef HAVE_SYS_TYPES_H
8199 #include <sys/types.h>
8200 #endif
8201 #ifdef HAVE_SYS_STAT_H
8202 #include <sys/stat.h>
8203 #endif
8204 "
8205 if test "x$ac_cv_member_struct_stat_st_gid" = xyes; then :
8206
8207 cat >>confdefs.h <<_ACEOF
8208 #define HAVE_STRUCT_STAT_ST_GID 1
8209 _ACEOF
8210
8211
8212 fi
8213 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#ifdef HAVE_SYS_TYPES_H
8214 #include <sys/types.h>
8215 #endif
8216 #ifdef HAVE_SYS_STAT_H
8217 #include <sys/stat.h>
8218 #endif
8219 "
8220 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
8221
8222 cat >>confdefs.h <<_ACEOF
8223 #define HAVE_STRUCT_STAT_ST_RDEV 1
8224 _ACEOF
8225
8226
8227 fi
8228 ac_fn_c_check_member "$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#ifdef HAVE_SYS_TYPES_H
8229 #include <sys/types.h>
8230 #endif
8231 #ifdef HAVE_SYS_STAT_H
8232 #include <sys/stat.h>
8233 #endif
8234 "
8235 if test "x$ac_cv_member_struct_stat_st_size" = xyes; then :
8236
8237 cat >>confdefs.h <<_ACEOF
8238 #define HAVE_STRUCT_STAT_ST_SIZE 1
8239 _ACEOF
8240
8241
8242 fi
8243 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#ifdef HAVE_SYS_TYPES_H
8244 #include <sys/types.h>
8245 #endif
8246 #ifdef HAVE_SYS_STAT_H
8247 #include <sys/stat.h>
8248 #endif
8249 "
8250 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8251
8252 cat >>confdefs.h <<_ACEOF
8253 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8254 _ACEOF
8255
8256
8257 fi
8258 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#ifdef HAVE_SYS_TYPES_H
8259 #include <sys/types.h>
8260 #endif
8261 #ifdef HAVE_SYS_STAT_H
8262 #include <sys/stat.h>
8263 #endif
8264 "
8265 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8266
8267 cat >>confdefs.h <<_ACEOF
8268 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
8269 _ACEOF
8270
8271
8272 fi
8273 ac_fn_c_check_member "$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#ifdef HAVE_SYS_TYPES_H
8274 #include <sys/types.h>
8275 #endif
8276 #ifdef HAVE_SYS_STAT_H
8277 #include <sys/stat.h>
8278 #endif
8279 "
8280 if test "x$ac_cv_member_struct_stat_st_atime" = xyes; then :
8281
8282 cat >>confdefs.h <<_ACEOF
8283 #define HAVE_STRUCT_STAT_ST_ATIME 1
8284 _ACEOF
8285
8286
8287 fi
8288 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#ifdef HAVE_SYS_TYPES_H
8289 #include <sys/types.h>
8290 #endif
8291 #ifdef HAVE_SYS_STAT_H
8292 #include <sys/stat.h>
8293 #endif
8294 "
8295 if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then :
8296
8297 cat >>confdefs.h <<_ACEOF
8298 #define HAVE_STRUCT_STAT_ST_MTIME 1
8299 _ACEOF
8300
8301
8302 fi
8303 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#ifdef HAVE_SYS_TYPES_H
8304 #include <sys/types.h>
8305 #endif
8306 #ifdef HAVE_SYS_STAT_H
8307 #include <sys/stat.h>
8308 #endif
8309 "
8310 if test "x$ac_cv_member_struct_stat_st_ctime" = xyes; then :
8311
8312 cat >>confdefs.h <<_ACEOF
8313 #define HAVE_STRUCT_STAT_ST_CTIME 1
8314 _ACEOF
8315
8316
8317 fi
8318
8319
8320 ac_fn_c_check_type "$LINENO" "__int128" "ac_cv_type___int128" "$ac_includes_default"
8321 if test "x$ac_cv_type___int128" = xyes; then :
8322
8323 cat >>confdefs.h <<_ACEOF
8324 #define HAVE___INT128 1
8325 _ACEOF
8326
8327
8328 fi
8329
8330 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
8331 #include <sys/socket.h>
8332
8333 "
8334 if test "x$ac_cv_type_socklen_t" = xyes; then :
8335
8336 cat >>confdefs.h <<_ACEOF
8337 #define HAVE_SOCKLEN_T 1
8338 _ACEOF
8339
8340
8341 fi
8342
8343
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
8345 $as_echo_n "checking type of array argument to getgroups... " >&6; }
8346 if ${ac_cv_type_getgroups+:} false; then :
8347 $as_echo_n "(cached) " >&6
8348 else
8349 if test "$cross_compiling" = yes; then :
8350 ac_cv_type_getgroups=cross
8351 else
8352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8353 /* end confdefs.h. */
8354 /* Thanks to Mike Rendell for this test. */
8355 $ac_includes_default
8356 #define NGID 256
8357 #undef MAX
8358 #define MAX(x, y) ((x) > (y) ? (x) : (y))
8359
8360 int
8361 main ()
8362 {
8363 gid_t gidset[NGID];
8364 int i, n;
8365 union { gid_t gval; long int lval; } val;
8366
8367 val.lval = -1;
8368 for (i = 0; i < NGID; i++)
8369 gidset[i] = val.gval;
8370 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
8371 gidset);
8372 /* Exit non-zero if getgroups seems to require an array of ints. This
8373 happens when gid_t is short int but getgroups modifies an array
8374 of ints. */
8375 return n > 0 && gidset[n] != val.gval;
8376 }
8377 _ACEOF
8378 if ac_fn_c_try_run "$LINENO"; then :
8379 ac_cv_type_getgroups=gid_t
8380 else
8381 ac_cv_type_getgroups=int
8382 fi
8383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8384 conftest.$ac_objext conftest.beam conftest.$ac_ext
8385 fi
8386
8387 if test $ac_cv_type_getgroups = cross; then
8388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8389 /* end confdefs.h. */
8390 #include <unistd.h>
8391
8392 _ACEOF
8393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8394 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
8395 ac_cv_type_getgroups=gid_t
8396 else
8397 ac_cv_type_getgroups=int
8398 fi
8399 rm -f conftest*
8400
8401 fi
8402 fi
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
8404 $as_echo "$ac_cv_type_getgroups" >&6; }
8405
8406 cat >>confdefs.h <<_ACEOF
8407 #define GETGROUPS_T $ac_cv_type_getgroups
8408 _ACEOF
8409
8410
8411 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
8412 if test "x$ac_cv_type_mode_t" = xyes; then :
8413
8414 else
8415
8416 cat >>confdefs.h <<_ACEOF
8417 #define mode_t int
8418 _ACEOF
8419
8420 fi
8421
8422 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
8423 if test "x$ac_cv_type_off_t" = xyes; then :
8424
8425 else
8426
8427 cat >>confdefs.h <<_ACEOF
8428 #define off_t long int
8429 _ACEOF
8430
8431 fi
8432
8433 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8434 if test "x$ac_cv_type_pid_t" = xyes; then :
8435
8436 else
8437
8438 cat >>confdefs.h <<_ACEOF
8439 #define pid_t int
8440 _ACEOF
8441
8442 fi
8443
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8445 $as_echo_n "checking return type of signal handlers... " >&6; }
8446 if ${ac_cv_type_signal+:} false; then :
8447 $as_echo_n "(cached) " >&6
8448 else
8449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8450 /* end confdefs.h. */
8451 #include <sys/types.h>
8452 #include <signal.h>
8453
8454 int
8455 main ()
8456 {
8457 return *(signal (0, 0)) (0) == 1;
8458 ;
8459 return 0;
8460 }
8461 _ACEOF
8462 if ac_fn_c_try_compile "$LINENO"; then :
8463 ac_cv_type_signal=int
8464 else
8465 ac_cv_type_signal=void
8466 fi
8467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8468 fi
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8470 $as_echo "$ac_cv_type_signal" >&6; }
8471
8472 cat >>confdefs.h <<_ACEOF
8473 #define RETSIGTYPE $ac_cv_type_signal
8474 _ACEOF
8475
8476
8477 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8478 if test "x$ac_cv_type_size_t" = xyes; then :
8479
8480 else
8481
8482 cat >>confdefs.h <<_ACEOF
8483 #define size_t unsigned int
8484 _ACEOF
8485
8486 fi
8487
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8489 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8490 if ${ac_cv_type_uid_t+:} false; then :
8491 $as_echo_n "(cached) " >&6
8492 else
8493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8494 /* end confdefs.h. */
8495 #include <sys/types.h>
8496
8497 _ACEOF
8498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8499 $EGREP "uid_t" >/dev/null 2>&1; then :
8500 ac_cv_type_uid_t=yes
8501 else
8502 ac_cv_type_uid_t=no
8503 fi
8504 rm -f conftest*
8505
8506 fi
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8508 $as_echo "$ac_cv_type_uid_t" >&6; }
8509 if test $ac_cv_type_uid_t = no; then
8510
8511 $as_echo "#define uid_t int" >>confdefs.h
8512
8513
8514 $as_echo "#define gid_t int" >>confdefs.h
8515
8516 fi
8517
8518
8519 ALL_LINGUAS=
8520 # If we haven't got the data from the intl directory,
8521 # assume NLS is disabled.
8522 USE_NLS=no
8523 LIBINTL=
8524 LIBINTL_DEP=
8525 INCINTL=
8526 XGETTEXT=
8527 GMSGFMT=
8528 POSUB=
8529
8530 if test -f ../intl/config.intl; then
8531 . ../intl/config.intl
8532 fi
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8534 $as_echo_n "checking whether NLS is requested... " >&6; }
8535 if test x"$USE_NLS" != xyes; then
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8537 $as_echo "no" >&6; }
8538 else
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8540 $as_echo "yes" >&6; }
8541
8542 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
8543
8544
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
8546 $as_echo_n "checking for catalogs to be installed... " >&6; }
8547 # Look for .po and .gmo files in the source directory.
8548 CATALOGS=
8549 XLINGUAS=
8550 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
8551 # If there aren't any .gmo files the shell will give us the
8552 # literal string "../path/to/srcdir/po/*.gmo" which has to be
8553 # weeded out.
8554 case "$cat" in *\**)
8555 continue;;
8556 esac
8557 # The quadruple backslash is collapsed to a double backslash
8558 # by the backticks, then collapsed again by the double quotes,
8559 # leaving us with one backslash in the sed expression (right
8560 # before the dot that mustn't act as a wildcard).
8561 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
8562 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
8563 # The user is allowed to set LINGUAS to a list of languages to
8564 # install catalogs for. If it's empty that means "all of them."
8565 if test "x$LINGUAS" = x; then
8566 CATALOGS="$CATALOGS $cat"
8567 XLINGUAS="$XLINGUAS $lang"
8568 else
8569 case "$LINGUAS" in *$lang*)
8570 CATALOGS="$CATALOGS $cat"
8571 XLINGUAS="$XLINGUAS $lang"
8572 ;;
8573 esac
8574 fi
8575 done
8576 LINGUAS="$XLINGUAS"
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
8578 $as_echo "$LINGUAS" >&6; }
8579
8580
8581 DATADIRNAME=share
8582
8583 INSTOBJEXT=.mo
8584
8585 GENCAT=gencat
8586
8587 CATOBJEXT=.gmo
8588
8589 fi
8590
8591
8592 # Use the system's zlib library.
8593 zlibdir="-L\$(top_builddir)/../zlib"
8594 zlibinc="-I\$(top_srcdir)/../zlib"
8595
8596 # Check whether --with-system-zlib was given.
8597 if test "${with_system_zlib+set}" = set; then :
8598 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
8599 zlibdir=
8600 zlibinc=
8601 fi
8602
8603 fi
8604
8605
8606
8607
8608
8609
8610 maybe_plugins=no
8611 for ac_header in dlfcn.h
8612 do :
8613 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8614 "
8615 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8616 cat >>confdefs.h <<_ACEOF
8617 #define HAVE_DLFCN_H 1
8618 _ACEOF
8619 maybe_plugins=yes
8620 fi
8621
8622 done
8623
8624 for ac_header in windows.h
8625 do :
8626 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
8627 "
8628 if test "x$ac_cv_header_windows_h" = xyes; then :
8629 cat >>confdefs.h <<_ACEOF
8630 #define HAVE_WINDOWS_H 1
8631 _ACEOF
8632 maybe_plugins=yes
8633 fi
8634
8635 done
8636
8637
8638 # Check whether --enable-plugins was given.
8639 if test "${enable_plugins+set}" = set; then :
8640 enableval=$enable_plugins; case "${enableval}" in
8641 no) plugins=no ;;
8642 *) plugins=yes
8643 if test "$maybe_plugins" != "yes" ; then
8644 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
8645 fi ;;
8646 esac
8647 else
8648 plugins=$maybe_plugins
8649
8650 fi
8651
8652 if test "$plugins" = "yes"; then
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
8654 $as_echo_n "checking for library containing dlsym... " >&6; }
8655 if ${ac_cv_search_dlsym+:} false; then :
8656 $as_echo_n "(cached) " >&6
8657 else
8658 ac_func_search_save_LIBS=$LIBS
8659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8660 /* end confdefs.h. */
8661
8662 /* Override any GCC internal prototype to avoid an error.
8663 Use char because int might match the return type of a GCC
8664 builtin and then its argument prototype would still apply. */
8665 #ifdef __cplusplus
8666 extern "C"
8667 #endif
8668 char dlsym ();
8669 int
8670 main ()
8671 {
8672 return dlsym ();
8673 ;
8674 return 0;
8675 }
8676 _ACEOF
8677 for ac_lib in '' dl; do
8678 if test -z "$ac_lib"; then
8679 ac_res="none required"
8680 else
8681 ac_res=-l$ac_lib
8682 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8683 fi
8684 if ac_fn_c_try_link "$LINENO"; then :
8685 ac_cv_search_dlsym=$ac_res
8686 fi
8687 rm -f core conftest.err conftest.$ac_objext \
8688 conftest$ac_exeext
8689 if ${ac_cv_search_dlsym+:} false; then :
8690 break
8691 fi
8692 done
8693 if ${ac_cv_search_dlsym+:} false; then :
8694
8695 else
8696 ac_cv_search_dlsym=no
8697 fi
8698 rm conftest.$ac_ext
8699 LIBS=$ac_func_search_save_LIBS
8700 fi
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
8702 $as_echo "$ac_cv_search_dlsym" >&6; }
8703 ac_res=$ac_cv_search_dlsym
8704 if test "$ac_res" != no; then :
8705 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8706
8707 fi
8708
8709 fi
8710
8711 if test "$plugins" = yes; then
8712 PLUGINS_TRUE=
8713 PLUGINS_FALSE='#'
8714 else
8715 PLUGINS_TRUE='#'
8716 PLUGINS_FALSE=
8717 fi
8718
8719
8720
8721
8722
8723 # Set options
8724 enable_dlopen=yes
8725
8726
8727
8728
8729 enable_win32_dll=no
8730
8731
8732 # Check whether --enable-shared was given.
8733 if test "${enable_shared+set}" = set; then :
8734 enableval=$enable_shared; p=${PACKAGE-default}
8735 case $enableval in
8736 yes) enable_shared=yes ;;
8737 no) enable_shared=no ;;
8738 *)
8739 enable_shared=no
8740 # Look at the argument we got. We use all the common list separators.
8741 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8742 for pkg in $enableval; do
8743 IFS="$lt_save_ifs"
8744 if test "X$pkg" = "X$p"; then
8745 enable_shared=yes
8746 fi
8747 done
8748 IFS="$lt_save_ifs"
8749 ;;
8750 esac
8751 else
8752 enable_shared=yes
8753 fi
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763 # Check whether --enable-static was given.
8764 if test "${enable_static+set}" = set; then :
8765 enableval=$enable_static; p=${PACKAGE-default}
8766 case $enableval in
8767 yes) enable_static=yes ;;
8768 no) enable_static=no ;;
8769 *)
8770 enable_static=no
8771 # Look at the argument we got. We use all the common list separators.
8772 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8773 for pkg in $enableval; do
8774 IFS="$lt_save_ifs"
8775 if test "X$pkg" = "X$p"; then
8776 enable_static=yes
8777 fi
8778 done
8779 IFS="$lt_save_ifs"
8780 ;;
8781 esac
8782 else
8783 enable_static=yes
8784 fi
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795 # Check whether --with-pic was given.
8796 if test "${with_pic+set}" = set; then :
8797 withval=$with_pic; pic_mode="$withval"
8798 else
8799 pic_mode=default
8800 fi
8801
8802
8803 test -z "$pic_mode" && pic_mode=default
8804
8805
8806
8807
8808
8809
8810
8811 # Check whether --enable-fast-install was given.
8812 if test "${enable_fast_install+set}" = set; then :
8813 enableval=$enable_fast_install; p=${PACKAGE-default}
8814 case $enableval in
8815 yes) enable_fast_install=yes ;;
8816 no) enable_fast_install=no ;;
8817 *)
8818 enable_fast_install=no
8819 # Look at the argument we got. We use all the common list separators.
8820 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8821 for pkg in $enableval; do
8822 IFS="$lt_save_ifs"
8823 if test "X$pkg" = "X$p"; then
8824 enable_fast_install=yes
8825 fi
8826 done
8827 IFS="$lt_save_ifs"
8828 ;;
8829 esac
8830 else
8831 enable_fast_install=yes
8832 fi
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844 # This can be used to rebuild libtool when needed
8845 LIBTOOL_DEPS="$ltmain"
8846
8847 # Always use our own libtool.
8848 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875 test -z "$LN_S" && LN_S="ln -s"
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890 if test -n "${ZSH_VERSION+set}" ; then
8891 setopt NO_GLOB_SUBST
8892 fi
8893
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8895 $as_echo_n "checking for objdir... " >&6; }
8896 if ${lt_cv_objdir+:} false; then :
8897 $as_echo_n "(cached) " >&6
8898 else
8899 rm -f .libs 2>/dev/null
8900 mkdir .libs 2>/dev/null
8901 if test -d .libs; then
8902 lt_cv_objdir=.libs
8903 else
8904 # MS-DOS does not allow filenames that begin with a dot.
8905 lt_cv_objdir=_libs
8906 fi
8907 rmdir .libs 2>/dev/null
8908 fi
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8910 $as_echo "$lt_cv_objdir" >&6; }
8911 objdir=$lt_cv_objdir
8912
8913
8914
8915
8916
8917 cat >>confdefs.h <<_ACEOF
8918 #define LT_OBJDIR "$lt_cv_objdir/"
8919 _ACEOF
8920
8921
8922
8923
8924 case $host_os in
8925 aix3*)
8926 # AIX sometimes has problems with the GCC collect2 program. For some
8927 # reason, if we set the COLLECT_NAMES environment variable, the problems
8928 # vanish in a puff of smoke.
8929 if test "X${COLLECT_NAMES+set}" != Xset; then
8930 COLLECT_NAMES=
8931 export COLLECT_NAMES
8932 fi
8933 ;;
8934 esac
8935
8936 # Global variables:
8937 ofile=libtool
8938 can_build_shared=yes
8939
8940 # All known linkers require a `.a' archive for static linking (except MSVC,
8941 # which needs '.lib').
8942 libext=a
8943
8944 with_gnu_ld="$lt_cv_prog_gnu_ld"
8945
8946 old_CC="$CC"
8947 old_CFLAGS="$CFLAGS"
8948
8949 # Set sane defaults for various variables
8950 test -z "$CC" && CC=cc
8951 test -z "$LTCC" && LTCC=$CC
8952 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8953 test -z "$LD" && LD=ld
8954 test -z "$ac_objext" && ac_objext=o
8955
8956 for cc_temp in $compiler""; do
8957 case $cc_temp in
8958 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8959 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8960 \-*) ;;
8961 *) break;;
8962 esac
8963 done
8964 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8965
8966
8967 # Only perform the check for file, if the check method requires it
8968 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8969 case $deplibs_check_method in
8970 file_magic*)
8971 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8973 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8974 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8975 $as_echo_n "(cached) " >&6
8976 else
8977 case $MAGIC_CMD in
8978 [\\/*] | ?:[\\/]*)
8979 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8980 ;;
8981 *)
8982 lt_save_MAGIC_CMD="$MAGIC_CMD"
8983 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8984 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8985 for ac_dir in $ac_dummy; do
8986 IFS="$lt_save_ifs"
8987 test -z "$ac_dir" && ac_dir=.
8988 if test -f $ac_dir/${ac_tool_prefix}file; then
8989 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8990 if test -n "$file_magic_test_file"; then
8991 case $deplibs_check_method in
8992 "file_magic "*)
8993 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8994 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8995 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8996 $EGREP "$file_magic_regex" > /dev/null; then
8997 :
8998 else
8999 cat <<_LT_EOF 1>&2
9000
9001 *** Warning: the command libtool uses to detect shared libraries,
9002 *** $file_magic_cmd, produces output that libtool cannot recognize.
9003 *** The result is that libtool may fail to recognize shared libraries
9004 *** as such. This will affect the creation of libtool libraries that
9005 *** depend on shared libraries, but programs linked with such libtool
9006 *** libraries will work regardless of this problem. Nevertheless, you
9007 *** may want to report the problem to your system manager and/or to
9008 *** bug-libtool@gnu.org
9009
9010 _LT_EOF
9011 fi ;;
9012 esac
9013 fi
9014 break
9015 fi
9016 done
9017 IFS="$lt_save_ifs"
9018 MAGIC_CMD="$lt_save_MAGIC_CMD"
9019 ;;
9020 esac
9021 fi
9022
9023 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9024 if test -n "$MAGIC_CMD"; then
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9026 $as_echo "$MAGIC_CMD" >&6; }
9027 else
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9029 $as_echo "no" >&6; }
9030 fi
9031
9032
9033
9034
9035
9036 if test -z "$lt_cv_path_MAGIC_CMD"; then
9037 if test -n "$ac_tool_prefix"; then
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9039 $as_echo_n "checking for file... " >&6; }
9040 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9041 $as_echo_n "(cached) " >&6
9042 else
9043 case $MAGIC_CMD in
9044 [\\/*] | ?:[\\/]*)
9045 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9046 ;;
9047 *)
9048 lt_save_MAGIC_CMD="$MAGIC_CMD"
9049 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9050 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9051 for ac_dir in $ac_dummy; do
9052 IFS="$lt_save_ifs"
9053 test -z "$ac_dir" && ac_dir=.
9054 if test -f $ac_dir/file; then
9055 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9056 if test -n "$file_magic_test_file"; then
9057 case $deplibs_check_method in
9058 "file_magic "*)
9059 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9060 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9061 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9062 $EGREP "$file_magic_regex" > /dev/null; then
9063 :
9064 else
9065 cat <<_LT_EOF 1>&2
9066
9067 *** Warning: the command libtool uses to detect shared libraries,
9068 *** $file_magic_cmd, produces output that libtool cannot recognize.
9069 *** The result is that libtool may fail to recognize shared libraries
9070 *** as such. This will affect the creation of libtool libraries that
9071 *** depend on shared libraries, but programs linked with such libtool
9072 *** libraries will work regardless of this problem. Nevertheless, you
9073 *** may want to report the problem to your system manager and/or to
9074 *** bug-libtool@gnu.org
9075
9076 _LT_EOF
9077 fi ;;
9078 esac
9079 fi
9080 break
9081 fi
9082 done
9083 IFS="$lt_save_ifs"
9084 MAGIC_CMD="$lt_save_MAGIC_CMD"
9085 ;;
9086 esac
9087 fi
9088
9089 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9090 if test -n "$MAGIC_CMD"; then
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9092 $as_echo "$MAGIC_CMD" >&6; }
9093 else
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9095 $as_echo "no" >&6; }
9096 fi
9097
9098
9099 else
9100 MAGIC_CMD=:
9101 fi
9102 fi
9103
9104 fi
9105 ;;
9106 esac
9107
9108 # Use C for the default configuration in the libtool script
9109
9110 lt_save_CC="$CC"
9111 ac_ext=c
9112 ac_cpp='$CPP $CPPFLAGS'
9113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9116
9117
9118 # Source file extension for C test sources.
9119 ac_ext=c
9120
9121 # Object file extension for compiled C test sources.
9122 objext=o
9123 objext=$objext
9124
9125 # Code to be used in simple compile tests
9126 lt_simple_compile_test_code="int some_variable = 0;"
9127
9128 # Code to be used in simple link tests
9129 lt_simple_link_test_code='int main(){return(0);}'
9130
9131
9132
9133
9134
9135
9136
9137 # If no C compiler was specified, use CC.
9138 LTCC=${LTCC-"$CC"}
9139
9140 # If no C compiler flags were specified, use CFLAGS.
9141 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9142
9143 # Allow CC to be a program name with arguments.
9144 compiler=$CC
9145
9146 # Save the default compiler, since it gets overwritten when the other
9147 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9148 compiler_DEFAULT=$CC
9149
9150 # save warnings/boilerplate of simple test code
9151 ac_outfile=conftest.$ac_objext
9152 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9153 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9154 _lt_compiler_boilerplate=`cat conftest.err`
9155 $RM conftest*
9156
9157 ac_outfile=conftest.$ac_objext
9158 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9159 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9160 _lt_linker_boilerplate=`cat conftest.err`
9161 $RM -r conftest*
9162
9163
9164 ## CAVEAT EMPTOR:
9165 ## There is no encapsulation within the following macros, do not change
9166 ## the running order or otherwise move them around unless you know exactly
9167 ## what you are doing...
9168 if test -n "$compiler"; then
9169
9170 lt_prog_compiler_no_builtin_flag=
9171
9172 if test "$GCC" = yes; then
9173 case $cc_basename in
9174 nvcc*)
9175 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9176 *)
9177 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9178 esac
9179
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9181 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9182 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9183 $as_echo_n "(cached) " >&6
9184 else
9185 lt_cv_prog_compiler_rtti_exceptions=no
9186 ac_outfile=conftest.$ac_objext
9187 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9188 lt_compiler_flag="-fno-rtti -fno-exceptions"
9189 # Insert the option either (1) after the last *FLAGS variable, or
9190 # (2) before a word containing "conftest.", or (3) at the end.
9191 # Note that $ac_compile itself does not contain backslashes and begins
9192 # with a dollar sign (not a hyphen), so the echo should work correctly.
9193 # The option is referenced via a variable to avoid confusing sed.
9194 lt_compile=`echo "$ac_compile" | $SED \
9195 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9196 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9197 -e 's:$: $lt_compiler_flag:'`
9198 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9199 (eval "$lt_compile" 2>conftest.err)
9200 ac_status=$?
9201 cat conftest.err >&5
9202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 if (exit $ac_status) && test -s "$ac_outfile"; then
9204 # The compiler can only warn and ignore the option if not recognized
9205 # So say no if there are warnings other than the usual output.
9206 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9207 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9208 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9209 lt_cv_prog_compiler_rtti_exceptions=yes
9210 fi
9211 fi
9212 $RM conftest*
9213
9214 fi
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9216 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9217
9218 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9219 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9220 else
9221 :
9222 fi
9223
9224 fi
9225
9226
9227
9228
9229
9230
9231 lt_prog_compiler_wl=
9232 lt_prog_compiler_pic=
9233 lt_prog_compiler_static=
9234
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9236 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9237
9238 if test "$GCC" = yes; then
9239 lt_prog_compiler_wl='-Wl,'
9240 lt_prog_compiler_static='-static'
9241
9242 case $host_os in
9243 aix*)
9244 # All AIX code is PIC.
9245 if test "$host_cpu" = ia64; then
9246 # AIX 5 now supports IA64 processor
9247 lt_prog_compiler_static='-Bstatic'
9248 fi
9249 lt_prog_compiler_pic='-fPIC'
9250 ;;
9251
9252 amigaos*)
9253 case $host_cpu in
9254 powerpc)
9255 # see comment about AmigaOS4 .so support
9256 lt_prog_compiler_pic='-fPIC'
9257 ;;
9258 m68k)
9259 # FIXME: we need at least 68020 code to build shared libraries, but
9260 # adding the `-m68020' flag to GCC prevents building anything better,
9261 # like `-m68040'.
9262 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9263 ;;
9264 esac
9265 ;;
9266
9267 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9268 # PIC is the default for these OSes.
9269 ;;
9270
9271 mingw* | cygwin* | pw32* | os2* | cegcc*)
9272 # This hack is so that the source file can tell whether it is being
9273 # built for inclusion in a dll (and should export symbols for example).
9274 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9275 # (--disable-auto-import) libraries
9276 lt_prog_compiler_pic='-DDLL_EXPORT'
9277 ;;
9278
9279 darwin* | rhapsody*)
9280 # PIC is the default on this platform
9281 # Common symbols not allowed in MH_DYLIB files
9282 lt_prog_compiler_pic='-fno-common'
9283 ;;
9284
9285 haiku*)
9286 # PIC is the default for Haiku.
9287 # The "-static" flag exists, but is broken.
9288 lt_prog_compiler_static=
9289 ;;
9290
9291 hpux*)
9292 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9293 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9294 # sets the default TLS model and affects inlining.
9295 case $host_cpu in
9296 hppa*64*)
9297 # +Z the default
9298 ;;
9299 *)
9300 lt_prog_compiler_pic='-fPIC'
9301 ;;
9302 esac
9303 ;;
9304
9305 interix[3-9]*)
9306 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9307 # Instead, we relocate shared libraries at runtime.
9308 ;;
9309
9310 msdosdjgpp*)
9311 # Just because we use GCC doesn't mean we suddenly get shared libraries
9312 # on systems that don't support them.
9313 lt_prog_compiler_can_build_shared=no
9314 enable_shared=no
9315 ;;
9316
9317 *nto* | *qnx*)
9318 # QNX uses GNU C++, but need to define -shared option too, otherwise
9319 # it will coredump.
9320 lt_prog_compiler_pic='-fPIC -shared'
9321 ;;
9322
9323 sysv4*MP*)
9324 if test -d /usr/nec; then
9325 lt_prog_compiler_pic=-Kconform_pic
9326 fi
9327 ;;
9328
9329 *)
9330 lt_prog_compiler_pic='-fPIC'
9331 ;;
9332 esac
9333
9334 case $cc_basename in
9335 nvcc*) # Cuda Compiler Driver 2.2
9336 lt_prog_compiler_wl='-Xlinker '
9337 lt_prog_compiler_pic='-Xcompiler -fPIC'
9338 ;;
9339 esac
9340 else
9341 # PORTME Check for flag to pass linker flags through the system compiler.
9342 case $host_os in
9343 aix*)
9344 lt_prog_compiler_wl='-Wl,'
9345 if test "$host_cpu" = ia64; then
9346 # AIX 5 now supports IA64 processor
9347 lt_prog_compiler_static='-Bstatic'
9348 else
9349 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9350 fi
9351 ;;
9352
9353 mingw* | cygwin* | pw32* | os2* | cegcc*)
9354 # This hack is so that the source file can tell whether it is being
9355 # built for inclusion in a dll (and should export symbols for example).
9356 lt_prog_compiler_pic='-DDLL_EXPORT'
9357 ;;
9358
9359 hpux9* | hpux10* | hpux11*)
9360 lt_prog_compiler_wl='-Wl,'
9361 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9362 # not for PA HP-UX.
9363 case $host_cpu in
9364 hppa*64*|ia64*)
9365 # +Z the default
9366 ;;
9367 *)
9368 lt_prog_compiler_pic='+Z'
9369 ;;
9370 esac
9371 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9372 lt_prog_compiler_static='${wl}-a ${wl}archive'
9373 ;;
9374
9375 irix5* | irix6* | nonstopux*)
9376 lt_prog_compiler_wl='-Wl,'
9377 # PIC (with -KPIC) is the default.
9378 lt_prog_compiler_static='-non_shared'
9379 ;;
9380
9381 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9382 case $cc_basename in
9383 # old Intel for x86_64 which still supported -KPIC.
9384 ecc*)
9385 lt_prog_compiler_wl='-Wl,'
9386 lt_prog_compiler_pic='-KPIC'
9387 lt_prog_compiler_static='-static'
9388 ;;
9389 # icc used to be incompatible with GCC.
9390 # ICC 10 doesn't accept -KPIC any more.
9391 icc* | ifort*)
9392 lt_prog_compiler_wl='-Wl,'
9393 lt_prog_compiler_pic='-fPIC'
9394 lt_prog_compiler_static='-static'
9395 ;;
9396 # Lahey Fortran 8.1.
9397 lf95*)
9398 lt_prog_compiler_wl='-Wl,'
9399 lt_prog_compiler_pic='--shared'
9400 lt_prog_compiler_static='--static'
9401 ;;
9402 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9403 # Portland Group compilers (*not* the Pentium gcc compiler,
9404 # which looks to be a dead project)
9405 lt_prog_compiler_wl='-Wl,'
9406 lt_prog_compiler_pic='-fpic'
9407 lt_prog_compiler_static='-Bstatic'
9408 ;;
9409 ccc*)
9410 lt_prog_compiler_wl='-Wl,'
9411 # All Alpha code is PIC.
9412 lt_prog_compiler_static='-non_shared'
9413 ;;
9414 xl* | bgxl* | bgf* | mpixl*)
9415 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9416 lt_prog_compiler_wl='-Wl,'
9417 lt_prog_compiler_pic='-qpic'
9418 lt_prog_compiler_static='-qstaticlink'
9419 ;;
9420 *)
9421 case `$CC -V 2>&1 | sed 5q` in
9422 *Sun\ F* | *Sun*Fortran*)
9423 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9424 lt_prog_compiler_pic='-KPIC'
9425 lt_prog_compiler_static='-Bstatic'
9426 lt_prog_compiler_wl=''
9427 ;;
9428 *Sun\ C*)
9429 # Sun C 5.9
9430 lt_prog_compiler_pic='-KPIC'
9431 lt_prog_compiler_static='-Bstatic'
9432 lt_prog_compiler_wl='-Wl,'
9433 ;;
9434 esac
9435 ;;
9436 esac
9437 ;;
9438
9439 newsos6)
9440 lt_prog_compiler_pic='-KPIC'
9441 lt_prog_compiler_static='-Bstatic'
9442 ;;
9443
9444 *nto* | *qnx*)
9445 # QNX uses GNU C++, but need to define -shared option too, otherwise
9446 # it will coredump.
9447 lt_prog_compiler_pic='-fPIC -shared'
9448 ;;
9449
9450 osf3* | osf4* | osf5*)
9451 lt_prog_compiler_wl='-Wl,'
9452 # All OSF/1 code is PIC.
9453 lt_prog_compiler_static='-non_shared'
9454 ;;
9455
9456 rdos*)
9457 lt_prog_compiler_static='-non_shared'
9458 ;;
9459
9460 solaris*)
9461 lt_prog_compiler_pic='-KPIC'
9462 lt_prog_compiler_static='-Bstatic'
9463 case $cc_basename in
9464 f77* | f90* | f95*)
9465 lt_prog_compiler_wl='-Qoption ld ';;
9466 *)
9467 lt_prog_compiler_wl='-Wl,';;
9468 esac
9469 ;;
9470
9471 sunos4*)
9472 lt_prog_compiler_wl='-Qoption ld '
9473 lt_prog_compiler_pic='-PIC'
9474 lt_prog_compiler_static='-Bstatic'
9475 ;;
9476
9477 sysv4 | sysv4.2uw2* | sysv4.3*)
9478 lt_prog_compiler_wl='-Wl,'
9479 lt_prog_compiler_pic='-KPIC'
9480 lt_prog_compiler_static='-Bstatic'
9481 ;;
9482
9483 sysv4*MP*)
9484 if test -d /usr/nec ;then
9485 lt_prog_compiler_pic='-Kconform_pic'
9486 lt_prog_compiler_static='-Bstatic'
9487 fi
9488 ;;
9489
9490 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9491 lt_prog_compiler_wl='-Wl,'
9492 lt_prog_compiler_pic='-KPIC'
9493 lt_prog_compiler_static='-Bstatic'
9494 ;;
9495
9496 unicos*)
9497 lt_prog_compiler_wl='-Wl,'
9498 lt_prog_compiler_can_build_shared=no
9499 ;;
9500
9501 uts4*)
9502 lt_prog_compiler_pic='-pic'
9503 lt_prog_compiler_static='-Bstatic'
9504 ;;
9505
9506 *)
9507 lt_prog_compiler_can_build_shared=no
9508 ;;
9509 esac
9510 fi
9511
9512 case $host_os in
9513 # For platforms which do not support PIC, -DPIC is meaningless:
9514 *djgpp*)
9515 lt_prog_compiler_pic=
9516 ;;
9517 *)
9518 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9519 ;;
9520 esac
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9522 $as_echo "$lt_prog_compiler_pic" >&6; }
9523
9524
9525
9526
9527
9528
9529 #
9530 # Check to make sure the PIC flag actually works.
9531 #
9532 if test -n "$lt_prog_compiler_pic"; then
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9534 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9535 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9536 $as_echo_n "(cached) " >&6
9537 else
9538 lt_cv_prog_compiler_pic_works=no
9539 ac_outfile=conftest.$ac_objext
9540 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9541 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9542 # Insert the option either (1) after the last *FLAGS variable, or
9543 # (2) before a word containing "conftest.", or (3) at the end.
9544 # Note that $ac_compile itself does not contain backslashes and begins
9545 # with a dollar sign (not a hyphen), so the echo should work correctly.
9546 # The option is referenced via a variable to avoid confusing sed.
9547 lt_compile=`echo "$ac_compile" | $SED \
9548 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9549 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9550 -e 's:$: $lt_compiler_flag:'`
9551 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9552 (eval "$lt_compile" 2>conftest.err)
9553 ac_status=$?
9554 cat conftest.err >&5
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 if (exit $ac_status) && test -s "$ac_outfile"; then
9557 # The compiler can only warn and ignore the option if not recognized
9558 # So say no if there are warnings other than the usual output.
9559 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9560 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9561 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9562 lt_cv_prog_compiler_pic_works=yes
9563 fi
9564 fi
9565 $RM conftest*
9566
9567 fi
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9569 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9570
9571 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9572 case $lt_prog_compiler_pic in
9573 "" | " "*) ;;
9574 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9575 esac
9576 else
9577 lt_prog_compiler_pic=
9578 lt_prog_compiler_can_build_shared=no
9579 fi
9580
9581 fi
9582
9583
9584
9585
9586
9587
9588 #
9589 # Check to make sure the static flag actually works.
9590 #
9591 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9593 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9594 if ${lt_cv_prog_compiler_static_works+:} false; then :
9595 $as_echo_n "(cached) " >&6
9596 else
9597 lt_cv_prog_compiler_static_works=no
9598 save_LDFLAGS="$LDFLAGS"
9599 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9600 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9601 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9602 # The linker can only warn and ignore the option if not recognized
9603 # So say no if there are warnings
9604 if test -s conftest.err; then
9605 # Append any errors to the config.log.
9606 cat conftest.err 1>&5
9607 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9608 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9609 if diff conftest.exp conftest.er2 >/dev/null; then
9610 lt_cv_prog_compiler_static_works=yes
9611 fi
9612 else
9613 lt_cv_prog_compiler_static_works=yes
9614 fi
9615 fi
9616 $RM -r conftest*
9617 LDFLAGS="$save_LDFLAGS"
9618
9619 fi
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9621 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9622
9623 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9624 :
9625 else
9626 lt_prog_compiler_static=
9627 fi
9628
9629
9630
9631
9632
9633
9634
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9636 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9637 if ${lt_cv_prog_compiler_c_o+:} false; then :
9638 $as_echo_n "(cached) " >&6
9639 else
9640 lt_cv_prog_compiler_c_o=no
9641 $RM -r conftest 2>/dev/null
9642 mkdir conftest
9643 cd conftest
9644 mkdir out
9645 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9646
9647 lt_compiler_flag="-o out/conftest2.$ac_objext"
9648 # Insert the option either (1) after the last *FLAGS variable, or
9649 # (2) before a word containing "conftest.", or (3) at the end.
9650 # Note that $ac_compile itself does not contain backslashes and begins
9651 # with a dollar sign (not a hyphen), so the echo should work correctly.
9652 lt_compile=`echo "$ac_compile" | $SED \
9653 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9654 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9655 -e 's:$: $lt_compiler_flag:'`
9656 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9657 (eval "$lt_compile" 2>out/conftest.err)
9658 ac_status=$?
9659 cat out/conftest.err >&5
9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9662 then
9663 # The compiler can only warn and ignore the option if not recognized
9664 # So say no if there are warnings
9665 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9666 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9667 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9668 lt_cv_prog_compiler_c_o=yes
9669 fi
9670 fi
9671 chmod u+w . 2>&5
9672 $RM conftest*
9673 # SGI C++ compiler will create directory out/ii_files/ for
9674 # template instantiation
9675 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9676 $RM out/* && rmdir out
9677 cd ..
9678 $RM -r conftest
9679 $RM conftest*
9680
9681 fi
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9683 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9684
9685
9686
9687
9688
9689
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9691 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9692 if ${lt_cv_prog_compiler_c_o+:} false; then :
9693 $as_echo_n "(cached) " >&6
9694 else
9695 lt_cv_prog_compiler_c_o=no
9696 $RM -r conftest 2>/dev/null
9697 mkdir conftest
9698 cd conftest
9699 mkdir out
9700 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9701
9702 lt_compiler_flag="-o out/conftest2.$ac_objext"
9703 # Insert the option either (1) after the last *FLAGS variable, or
9704 # (2) before a word containing "conftest.", or (3) at the end.
9705 # Note that $ac_compile itself does not contain backslashes and begins
9706 # with a dollar sign (not a hyphen), so the echo should work correctly.
9707 lt_compile=`echo "$ac_compile" | $SED \
9708 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9709 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9710 -e 's:$: $lt_compiler_flag:'`
9711 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9712 (eval "$lt_compile" 2>out/conftest.err)
9713 ac_status=$?
9714 cat out/conftest.err >&5
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9717 then
9718 # The compiler can only warn and ignore the option if not recognized
9719 # So say no if there are warnings
9720 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9721 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9722 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9723 lt_cv_prog_compiler_c_o=yes
9724 fi
9725 fi
9726 chmod u+w . 2>&5
9727 $RM conftest*
9728 # SGI C++ compiler will create directory out/ii_files/ for
9729 # template instantiation
9730 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9731 $RM out/* && rmdir out
9732 cd ..
9733 $RM -r conftest
9734 $RM conftest*
9735
9736 fi
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9738 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9739
9740
9741
9742
9743 hard_links="nottested"
9744 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9745 # do not overwrite the value of need_locks provided by the user
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9747 $as_echo_n "checking if we can lock with hard links... " >&6; }
9748 hard_links=yes
9749 $RM conftest*
9750 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9751 touch conftest.a
9752 ln conftest.a conftest.b 2>&5 || hard_links=no
9753 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9755 $as_echo "$hard_links" >&6; }
9756 if test "$hard_links" = no; then
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9758 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9759 need_locks=warn
9760 fi
9761 else
9762 need_locks=no
9763 fi
9764
9765
9766
9767
9768
9769
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9771 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9772
9773 runpath_var=
9774 allow_undefined_flag=
9775 always_export_symbols=no
9776 archive_cmds=
9777 archive_expsym_cmds=
9778 compiler_needs_object=no
9779 enable_shared_with_static_runtimes=no
9780 export_dynamic_flag_spec=
9781 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9782 hardcode_automatic=no
9783 hardcode_direct=no
9784 hardcode_direct_absolute=no
9785 hardcode_libdir_flag_spec=
9786 hardcode_libdir_flag_spec_ld=
9787 hardcode_libdir_separator=
9788 hardcode_minus_L=no
9789 hardcode_shlibpath_var=unsupported
9790 inherit_rpath=no
9791 link_all_deplibs=unknown
9792 module_cmds=
9793 module_expsym_cmds=
9794 old_archive_from_new_cmds=
9795 old_archive_from_expsyms_cmds=
9796 thread_safe_flag_spec=
9797 whole_archive_flag_spec=
9798 # include_expsyms should be a list of space-separated symbols to be *always*
9799 # included in the symbol list
9800 include_expsyms=
9801 # exclude_expsyms can be an extended regexp of symbols to exclude
9802 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9803 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9804 # as well as any symbol that contains `d'.
9805 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9806 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9807 # platforms (ab)use it in PIC code, but their linkers get confused if
9808 # the symbol is explicitly referenced. Since portable code cannot
9809 # rely on this symbol name, it's probably fine to never include it in
9810 # preloaded symbol tables.
9811 # Exclude shared library initialization/finalization symbols.
9812 extract_expsyms_cmds=
9813
9814 case $host_os in
9815 cygwin* | mingw* | pw32* | cegcc*)
9816 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9817 # When not using gcc, we currently assume that we are using
9818 # Microsoft Visual C++.
9819 if test "$GCC" != yes; then
9820 with_gnu_ld=no
9821 fi
9822 ;;
9823 interix*)
9824 # we just hope/assume this is gcc and not c89 (= MSVC++)
9825 with_gnu_ld=yes
9826 ;;
9827 openbsd*)
9828 with_gnu_ld=no
9829 ;;
9830 esac
9831
9832 ld_shlibs=yes
9833
9834 # On some targets, GNU ld is compatible enough with the native linker
9835 # that we're better off using the native interface for both.
9836 lt_use_gnu_ld_interface=no
9837 if test "$with_gnu_ld" = yes; then
9838 case $host_os in
9839 aix*)
9840 # The AIX port of GNU ld has always aspired to compatibility
9841 # with the native linker. However, as the warning in the GNU ld
9842 # block says, versions before 2.19.5* couldn't really create working
9843 # shared libraries, regardless of the interface used.
9844 case `$LD -v 2>&1` in
9845 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9846 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9847 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9848 *)
9849 lt_use_gnu_ld_interface=yes
9850 ;;
9851 esac
9852 ;;
9853 *)
9854 lt_use_gnu_ld_interface=yes
9855 ;;
9856 esac
9857 fi
9858
9859 if test "$lt_use_gnu_ld_interface" = yes; then
9860 # If archive_cmds runs LD, not CC, wlarc should be empty
9861 wlarc='${wl}'
9862
9863 # Set some defaults for GNU ld with shared library support. These
9864 # are reset later if shared libraries are not supported. Putting them
9865 # here allows them to be overridden if necessary.
9866 runpath_var=LD_RUN_PATH
9867 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9868 export_dynamic_flag_spec='${wl}--export-dynamic'
9869 # ancient GNU ld didn't support --whole-archive et. al.
9870 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9871 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9872 else
9873 whole_archive_flag_spec=
9874 fi
9875 supports_anon_versioning=no
9876 case `$LD -v 2>&1` in
9877 *GNU\ gold*) supports_anon_versioning=yes ;;
9878 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9879 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9880 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9881 *\ 2.11.*) ;; # other 2.11 versions
9882 *) supports_anon_versioning=yes ;;
9883 esac
9884
9885 # See if GNU ld supports shared libraries.
9886 case $host_os in
9887 aix[3-9]*)
9888 # On AIX/PPC, the GNU linker is very broken
9889 if test "$host_cpu" != ia64; then
9890 ld_shlibs=no
9891 cat <<_LT_EOF 1>&2
9892
9893 *** Warning: the GNU linker, at least up to release 2.19, is reported
9894 *** to be unable to reliably create shared libraries on AIX.
9895 *** Therefore, libtool is disabling shared libraries support. If you
9896 *** really care for shared libraries, you may want to install binutils
9897 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9898 *** You will then need to restart the configuration process.
9899
9900 _LT_EOF
9901 fi
9902 ;;
9903
9904 amigaos*)
9905 case $host_cpu in
9906 powerpc)
9907 # see comment about AmigaOS4 .so support
9908 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9909 archive_expsym_cmds=''
9910 ;;
9911 m68k)
9912 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)'
9913 hardcode_libdir_flag_spec='-L$libdir'
9914 hardcode_minus_L=yes
9915 ;;
9916 esac
9917 ;;
9918
9919 beos*)
9920 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9921 allow_undefined_flag=unsupported
9922 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9923 # support --undefined. This deserves some investigation. FIXME
9924 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9925 else
9926 ld_shlibs=no
9927 fi
9928 ;;
9929
9930 cygwin* | mingw* | pw32* | cegcc*)
9931 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9932 # as there is no search path for DLLs.
9933 hardcode_libdir_flag_spec='-L$libdir'
9934 export_dynamic_flag_spec='${wl}--export-all-symbols'
9935 allow_undefined_flag=unsupported
9936 always_export_symbols=no
9937 enable_shared_with_static_runtimes=yes
9938 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9939
9940 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9941 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9942 # If the export-symbols file already is a .def file (1st line
9943 # is EXPORTS), use it as is; otherwise, prepend...
9944 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9945 cp $export_symbols $output_objdir/$soname.def;
9946 else
9947 echo EXPORTS > $output_objdir/$soname.def;
9948 cat $export_symbols >> $output_objdir/$soname.def;
9949 fi~
9950 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9951 else
9952 ld_shlibs=no
9953 fi
9954 ;;
9955
9956 haiku*)
9957 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9958 link_all_deplibs=yes
9959 ;;
9960
9961 interix[3-9]*)
9962 hardcode_direct=no
9963 hardcode_shlibpath_var=no
9964 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9965 export_dynamic_flag_spec='${wl}-E'
9966 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9967 # Instead, shared libraries are loaded at an image base (0x10000000 by
9968 # default) and relocated if they conflict, which is a slow very memory
9969 # consuming and fragmenting process. To avoid this, we pick a random,
9970 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9971 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9972 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9973 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'
9974 ;;
9975
9976 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9977 tmp_diet=no
9978 if test "$host_os" = linux-dietlibc; then
9979 case $cc_basename in
9980 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9981 esac
9982 fi
9983 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9984 && test "$tmp_diet" = no
9985 then
9986 tmp_addflag=' $pic_flag'
9987 tmp_sharedflag='-shared'
9988 case $cc_basename,$host_cpu in
9989 pgcc*) # Portland Group C compiler
9990 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'
9991 tmp_addflag=' $pic_flag'
9992 ;;
9993 pgf77* | pgf90* | pgf95* | pgfortran*)
9994 # Portland Group f77 and f90 compilers
9995 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'
9996 tmp_addflag=' $pic_flag -Mnomain' ;;
9997 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9998 tmp_addflag=' -i_dynamic' ;;
9999 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10000 tmp_addflag=' -i_dynamic -nofor_main' ;;
10001 ifc* | ifort*) # Intel Fortran compiler
10002 tmp_addflag=' -nofor_main' ;;
10003 lf95*) # Lahey Fortran 8.1
10004 whole_archive_flag_spec=
10005 tmp_sharedflag='--shared' ;;
10006 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10007 tmp_sharedflag='-qmkshrobj'
10008 tmp_addflag= ;;
10009 nvcc*) # Cuda Compiler Driver 2.2
10010 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'
10011 compiler_needs_object=yes
10012 ;;
10013 esac
10014 case `$CC -V 2>&1 | sed 5q` in
10015 *Sun\ C*) # Sun C 5.9
10016 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'
10017 compiler_needs_object=yes
10018 tmp_sharedflag='-G' ;;
10019 *Sun\ F*) # Sun Fortran 8.3
10020 tmp_sharedflag='-G' ;;
10021 esac
10022 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10023
10024 if test "x$supports_anon_versioning" = xyes; then
10025 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10026 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10027 echo "local: *; };" >> $output_objdir/$libname.ver~
10028 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10029 fi
10030
10031 case $cc_basename in
10032 xlf* | bgf* | bgxlf* | mpixlf*)
10033 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10034 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10035 hardcode_libdir_flag_spec=
10036 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10037 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10038 if test "x$supports_anon_versioning" = xyes; then
10039 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10040 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10041 echo "local: *; };" >> $output_objdir/$libname.ver~
10042 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10043 fi
10044 ;;
10045 esac
10046 else
10047 ld_shlibs=no
10048 fi
10049 ;;
10050
10051 netbsd*)
10052 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10053 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10054 wlarc=
10055 else
10056 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10057 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10058 fi
10059 ;;
10060
10061 solaris*)
10062 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10063 ld_shlibs=no
10064 cat <<_LT_EOF 1>&2
10065
10066 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10067 *** create shared libraries on Solaris systems. Therefore, libtool
10068 *** is disabling shared libraries support. We urge you to upgrade GNU
10069 *** binutils to release 2.9.1 or newer. Another option is to modify
10070 *** your PATH or compiler configuration so that the native linker is
10071 *** used, and then restart.
10072
10073 _LT_EOF
10074 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10075 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10076 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10077 else
10078 ld_shlibs=no
10079 fi
10080 ;;
10081
10082 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10083 case `$LD -v 2>&1` in
10084 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10085 ld_shlibs=no
10086 cat <<_LT_EOF 1>&2
10087
10088 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10089 *** reliably create shared libraries on SCO systems. Therefore, libtool
10090 *** is disabling shared libraries support. We urge you to upgrade GNU
10091 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10092 *** your PATH or compiler configuration so that the native linker is
10093 *** used, and then restart.
10094
10095 _LT_EOF
10096 ;;
10097 *)
10098 # For security reasons, it is highly recommended that you always
10099 # use absolute paths for naming shared libraries, and exclude the
10100 # DT_RUNPATH tag from executables and libraries. But doing so
10101 # requires that you compile everything twice, which is a pain.
10102 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10103 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10104 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10105 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10106 else
10107 ld_shlibs=no
10108 fi
10109 ;;
10110 esac
10111 ;;
10112
10113 sunos4*)
10114 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10115 wlarc=
10116 hardcode_direct=yes
10117 hardcode_shlibpath_var=no
10118 ;;
10119
10120 *)
10121 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10122 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10123 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10124 else
10125 ld_shlibs=no
10126 fi
10127 ;;
10128 esac
10129
10130 if test "$ld_shlibs" = no; then
10131 runpath_var=
10132 hardcode_libdir_flag_spec=
10133 export_dynamic_flag_spec=
10134 whole_archive_flag_spec=
10135 fi
10136 else
10137 # PORTME fill in a description of your system's linker (not GNU ld)
10138 case $host_os in
10139 aix3*)
10140 allow_undefined_flag=unsupported
10141 always_export_symbols=yes
10142 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'
10143 # Note: this linker hardcodes the directories in LIBPATH if there
10144 # are no directories specified by -L.
10145 hardcode_minus_L=yes
10146 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10147 # Neither direct hardcoding nor static linking is supported with a
10148 # broken collect2.
10149 hardcode_direct=unsupported
10150 fi
10151 ;;
10152
10153 aix[4-9]*)
10154 if test "$host_cpu" = ia64; then
10155 # On IA64, the linker does run time linking by default, so we don't
10156 # have to do anything special.
10157 aix_use_runtimelinking=no
10158 exp_sym_flag='-Bexport'
10159 no_entry_flag=""
10160 else
10161 # If we're using GNU nm, then we don't want the "-C" option.
10162 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10163 # Also, AIX nm treats weak defined symbols like other global
10164 # defined symbols, whereas GNU nm marks them as "W".
10165 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10166 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'
10167 else
10168 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'
10169 fi
10170 aix_use_runtimelinking=no
10171
10172 # Test if we are trying to use run time linking or normal
10173 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10174 # need to do runtime linking.
10175 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10176 for ld_flag in $LDFLAGS; do
10177 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10178 aix_use_runtimelinking=yes
10179 break
10180 fi
10181 done
10182 ;;
10183 esac
10184
10185 exp_sym_flag='-bexport'
10186 no_entry_flag='-bnoentry'
10187 fi
10188
10189 # When large executables or shared objects are built, AIX ld can
10190 # have problems creating the table of contents. If linking a library
10191 # or program results in "error TOC overflow" add -mminimal-toc to
10192 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10193 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10194
10195 archive_cmds=''
10196 hardcode_direct=yes
10197 hardcode_direct_absolute=yes
10198 hardcode_libdir_separator=':'
10199 link_all_deplibs=yes
10200 file_list_spec='${wl}-f,'
10201
10202 if test "$GCC" = yes; then
10203 case $host_os in aix4.[012]|aix4.[012].*)
10204 # We only want to do this on AIX 4.2 and lower, the check
10205 # below for broken collect2 doesn't work under 4.3+
10206 collect2name=`${CC} -print-prog-name=collect2`
10207 if test -f "$collect2name" &&
10208 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10209 then
10210 # We have reworked collect2
10211 :
10212 else
10213 # We have old collect2
10214 hardcode_direct=unsupported
10215 # It fails to find uninstalled libraries when the uninstalled
10216 # path is not listed in the libpath. Setting hardcode_minus_L
10217 # to unsupported forces relinking
10218 hardcode_minus_L=yes
10219 hardcode_libdir_flag_spec='-L$libdir'
10220 hardcode_libdir_separator=
10221 fi
10222 ;;
10223 esac
10224 shared_flag='-shared'
10225 if test "$aix_use_runtimelinking" = yes; then
10226 shared_flag="$shared_flag "'${wl}-G'
10227 fi
10228 else
10229 # not using gcc
10230 if test "$host_cpu" = ia64; then
10231 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10232 # chokes on -Wl,-G. The following line is correct:
10233 shared_flag='-G'
10234 else
10235 if test "$aix_use_runtimelinking" = yes; then
10236 shared_flag='${wl}-G'
10237 else
10238 shared_flag='${wl}-bM:SRE'
10239 fi
10240 fi
10241 fi
10242
10243 export_dynamic_flag_spec='${wl}-bexpall'
10244 # It seems that -bexpall does not export symbols beginning with
10245 # underscore (_), so it is better to generate a list of symbols to export.
10246 always_export_symbols=yes
10247 if test "$aix_use_runtimelinking" = yes; then
10248 # Warning - without using the other runtime loading flags (-brtl),
10249 # -berok will link without error, but may produce a broken library.
10250 allow_undefined_flag='-berok'
10251 # Determine the default libpath from the value encoded in an
10252 # empty executable.
10253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10254 /* end confdefs.h. */
10255
10256 int
10257 main ()
10258 {
10259
10260 ;
10261 return 0;
10262 }
10263 _ACEOF
10264 if ac_fn_c_try_link "$LINENO"; then :
10265
10266 lt_aix_libpath_sed='
10267 /Import File Strings/,/^$/ {
10268 /^0/ {
10269 s/^0 *\(.*\)$/\1/
10270 p
10271 }
10272 }'
10273 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10274 # Check for a 64-bit object if we didn't find anything.
10275 if test -z "$aix_libpath"; then
10276 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10277 fi
10278 fi
10279 rm -f core conftest.err conftest.$ac_objext \
10280 conftest$ac_exeext conftest.$ac_ext
10281 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10282
10283 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10284 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"
10285 else
10286 if test "$host_cpu" = ia64; then
10287 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10288 allow_undefined_flag="-z nodefs"
10289 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"
10290 else
10291 # Determine the default libpath from the value encoded in an
10292 # empty executable.
10293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10294 /* end confdefs.h. */
10295
10296 int
10297 main ()
10298 {
10299
10300 ;
10301 return 0;
10302 }
10303 _ACEOF
10304 if ac_fn_c_try_link "$LINENO"; then :
10305
10306 lt_aix_libpath_sed='
10307 /Import File Strings/,/^$/ {
10308 /^0/ {
10309 s/^0 *\(.*\)$/\1/
10310 p
10311 }
10312 }'
10313 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10314 # Check for a 64-bit object if we didn't find anything.
10315 if test -z "$aix_libpath"; then
10316 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10317 fi
10318 fi
10319 rm -f core conftest.err conftest.$ac_objext \
10320 conftest$ac_exeext conftest.$ac_ext
10321 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10322
10323 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10324 # Warning - without using the other run time loading flags,
10325 # -berok will link without error, but may produce a broken library.
10326 no_undefined_flag=' ${wl}-bernotok'
10327 allow_undefined_flag=' ${wl}-berok'
10328 if test "$with_gnu_ld" = yes; then
10329 # We only use this code for GNU lds that support --whole-archive.
10330 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10331 else
10332 # Exported symbols can be pulled into shared objects from archives
10333 whole_archive_flag_spec='$convenience'
10334 fi
10335 archive_cmds_need_lc=yes
10336 # This is similar to how AIX traditionally builds its shared libraries.
10337 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'
10338 fi
10339 fi
10340 ;;
10341
10342 amigaos*)
10343 case $host_cpu in
10344 powerpc)
10345 # see comment about AmigaOS4 .so support
10346 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10347 archive_expsym_cmds=''
10348 ;;
10349 m68k)
10350 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)'
10351 hardcode_libdir_flag_spec='-L$libdir'
10352 hardcode_minus_L=yes
10353 ;;
10354 esac
10355 ;;
10356
10357 bsdi[45]*)
10358 export_dynamic_flag_spec=-rdynamic
10359 ;;
10360
10361 cygwin* | mingw* | pw32* | cegcc*)
10362 # When not using gcc, we currently assume that we are using
10363 # Microsoft Visual C++.
10364 # hardcode_libdir_flag_spec is actually meaningless, as there is
10365 # no search path for DLLs.
10366 hardcode_libdir_flag_spec=' '
10367 allow_undefined_flag=unsupported
10368 # Tell ltmain to make .lib files, not .a files.
10369 libext=lib
10370 # Tell ltmain to make .dll files, not .so files.
10371 shrext_cmds=".dll"
10372 # FIXME: Setting linknames here is a bad hack.
10373 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10374 # The linker will automatically build a .lib file if we build a DLL.
10375 old_archive_from_new_cmds='true'
10376 # FIXME: Should let the user specify the lib program.
10377 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10378 fix_srcfile_path='`cygpath -w "$srcfile"`'
10379 enable_shared_with_static_runtimes=yes
10380 ;;
10381
10382 darwin* | rhapsody*)
10383
10384
10385 archive_cmds_need_lc=no
10386 hardcode_direct=no
10387 hardcode_automatic=yes
10388 hardcode_shlibpath_var=unsupported
10389 if test "$lt_cv_ld_force_load" = "yes"; then
10390 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\"`'
10391 else
10392 whole_archive_flag_spec=''
10393 fi
10394 link_all_deplibs=yes
10395 allow_undefined_flag="$_lt_dar_allow_undefined"
10396 case $cc_basename in
10397 ifort*) _lt_dar_can_shared=yes ;;
10398 *) _lt_dar_can_shared=$GCC ;;
10399 esac
10400 if test "$_lt_dar_can_shared" = "yes"; then
10401 output_verbose_link_cmd=func_echo_all
10402 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10403 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10404 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}"
10405 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}"
10406
10407 else
10408 ld_shlibs=no
10409 fi
10410
10411 ;;
10412
10413 dgux*)
10414 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10415 hardcode_libdir_flag_spec='-L$libdir'
10416 hardcode_shlibpath_var=no
10417 ;;
10418
10419 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10420 # support. Future versions do this automatically, but an explicit c++rt0.o
10421 # does not break anything, and helps significantly (at the cost of a little
10422 # extra space).
10423 freebsd2.2*)
10424 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10425 hardcode_libdir_flag_spec='-R$libdir'
10426 hardcode_direct=yes
10427 hardcode_shlibpath_var=no
10428 ;;
10429
10430 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10431 freebsd2.*)
10432 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10433 hardcode_direct=yes
10434 hardcode_minus_L=yes
10435 hardcode_shlibpath_var=no
10436 ;;
10437
10438 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10439 freebsd* | dragonfly*)
10440 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10441 hardcode_libdir_flag_spec='-R$libdir'
10442 hardcode_direct=yes
10443 hardcode_shlibpath_var=no
10444 ;;
10445
10446 hpux9*)
10447 if test "$GCC" = yes; then
10448 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'
10449 else
10450 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'
10451 fi
10452 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10453 hardcode_libdir_separator=:
10454 hardcode_direct=yes
10455
10456 # hardcode_minus_L: Not really in the search PATH,
10457 # but as the default location of the library.
10458 hardcode_minus_L=yes
10459 export_dynamic_flag_spec='${wl}-E'
10460 ;;
10461
10462 hpux10*)
10463 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10464 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10465 else
10466 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10467 fi
10468 if test "$with_gnu_ld" = no; then
10469 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10470 hardcode_libdir_flag_spec_ld='+b $libdir'
10471 hardcode_libdir_separator=:
10472 hardcode_direct=yes
10473 hardcode_direct_absolute=yes
10474 export_dynamic_flag_spec='${wl}-E'
10475 # hardcode_minus_L: Not really in the search PATH,
10476 # but as the default location of the library.
10477 hardcode_minus_L=yes
10478 fi
10479 ;;
10480
10481 hpux11*)
10482 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10483 case $host_cpu in
10484 hppa*64*)
10485 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10486 ;;
10487 ia64*)
10488 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10489 ;;
10490 *)
10491 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10492 ;;
10493 esac
10494 else
10495 case $host_cpu in
10496 hppa*64*)
10497 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10498 ;;
10499 ia64*)
10500 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10501 ;;
10502 *)
10503
10504 # Older versions of the 11.00 compiler do not understand -b yet
10505 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10507 $as_echo_n "checking if $CC understands -b... " >&6; }
10508 if ${lt_cv_prog_compiler__b+:} false; then :
10509 $as_echo_n "(cached) " >&6
10510 else
10511 lt_cv_prog_compiler__b=no
10512 save_LDFLAGS="$LDFLAGS"
10513 LDFLAGS="$LDFLAGS -b"
10514 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10515 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10516 # The linker can only warn and ignore the option if not recognized
10517 # So say no if there are warnings
10518 if test -s conftest.err; then
10519 # Append any errors to the config.log.
10520 cat conftest.err 1>&5
10521 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10522 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10523 if diff conftest.exp conftest.er2 >/dev/null; then
10524 lt_cv_prog_compiler__b=yes
10525 fi
10526 else
10527 lt_cv_prog_compiler__b=yes
10528 fi
10529 fi
10530 $RM -r conftest*
10531 LDFLAGS="$save_LDFLAGS"
10532
10533 fi
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10535 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10536
10537 if test x"$lt_cv_prog_compiler__b" = xyes; then
10538 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10539 else
10540 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10541 fi
10542
10543 ;;
10544 esac
10545 fi
10546 if test "$with_gnu_ld" = no; then
10547 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10548 hardcode_libdir_separator=:
10549
10550 case $host_cpu in
10551 hppa*64*|ia64*)
10552 hardcode_direct=no
10553 hardcode_shlibpath_var=no
10554 ;;
10555 *)
10556 hardcode_direct=yes
10557 hardcode_direct_absolute=yes
10558 export_dynamic_flag_spec='${wl}-E'
10559
10560 # hardcode_minus_L: Not really in the search PATH,
10561 # but as the default location of the library.
10562 hardcode_minus_L=yes
10563 ;;
10564 esac
10565 fi
10566 ;;
10567
10568 irix5* | irix6* | nonstopux*)
10569 if test "$GCC" = yes; then
10570 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'
10571 # Try to use the -exported_symbol ld option, if it does not
10572 # work, assume that -exports_file does not work either and
10573 # implicitly export all symbols.
10574 save_LDFLAGS="$LDFLAGS"
10575 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10577 /* end confdefs.h. */
10578 int foo(void) {}
10579 _ACEOF
10580 if ac_fn_c_try_link "$LINENO"; then :
10581 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'
10582
10583 fi
10584 rm -f core conftest.err conftest.$ac_objext \
10585 conftest$ac_exeext conftest.$ac_ext
10586 LDFLAGS="$save_LDFLAGS"
10587 else
10588 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'
10589 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'
10590 fi
10591 archive_cmds_need_lc='no'
10592 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10593 hardcode_libdir_separator=:
10594 inherit_rpath=yes
10595 link_all_deplibs=yes
10596 ;;
10597
10598 netbsd*)
10599 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10600 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10601 else
10602 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10603 fi
10604 hardcode_libdir_flag_spec='-R$libdir'
10605 hardcode_direct=yes
10606 hardcode_shlibpath_var=no
10607 ;;
10608
10609 newsos6)
10610 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10611 hardcode_direct=yes
10612 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10613 hardcode_libdir_separator=:
10614 hardcode_shlibpath_var=no
10615 ;;
10616
10617 *nto* | *qnx*)
10618 ;;
10619
10620 openbsd*)
10621 if test -f /usr/libexec/ld.so; then
10622 hardcode_direct=yes
10623 hardcode_shlibpath_var=no
10624 hardcode_direct_absolute=yes
10625 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10626 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10627 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10628 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10629 export_dynamic_flag_spec='${wl}-E'
10630 else
10631 case $host_os in
10632 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10633 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10634 hardcode_libdir_flag_spec='-R$libdir'
10635 ;;
10636 *)
10637 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10638 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10639 ;;
10640 esac
10641 fi
10642 else
10643 ld_shlibs=no
10644 fi
10645 ;;
10646
10647 os2*)
10648 hardcode_libdir_flag_spec='-L$libdir'
10649 hardcode_minus_L=yes
10650 allow_undefined_flag=unsupported
10651 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'
10652 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10653 ;;
10654
10655 osf3*)
10656 if test "$GCC" = yes; then
10657 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10658 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'
10659 else
10660 allow_undefined_flag=' -expect_unresolved \*'
10661 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'
10662 fi
10663 archive_cmds_need_lc='no'
10664 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10665 hardcode_libdir_separator=:
10666 ;;
10667
10668 osf4* | osf5*) # as osf3* with the addition of -msym flag
10669 if test "$GCC" = yes; then
10670 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10671 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'
10672 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10673 else
10674 allow_undefined_flag=' -expect_unresolved \*'
10675 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'
10676 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~
10677 $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'
10678
10679 # Both c and cxx compiler support -rpath directly
10680 hardcode_libdir_flag_spec='-rpath $libdir'
10681 fi
10682 archive_cmds_need_lc='no'
10683 hardcode_libdir_separator=:
10684 ;;
10685
10686 solaris*)
10687 no_undefined_flag=' -z defs'
10688 if test "$GCC" = yes; then
10689 wlarc='${wl}'
10690 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10691 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10692 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10693 else
10694 case `$CC -V 2>&1` in
10695 *"Compilers 5.0"*)
10696 wlarc=''
10697 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10698 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10699 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10700 ;;
10701 *)
10702 wlarc='${wl}'
10703 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10704 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10705 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10706 ;;
10707 esac
10708 fi
10709 hardcode_libdir_flag_spec='-R$libdir'
10710 hardcode_shlibpath_var=no
10711 case $host_os in
10712 solaris2.[0-5] | solaris2.[0-5].*) ;;
10713 *)
10714 # The compiler driver will combine and reorder linker options,
10715 # but understands `-z linker_flag'. GCC discards it without `$wl',
10716 # but is careful enough not to reorder.
10717 # Supported since Solaris 2.6 (maybe 2.5.1?)
10718 if test "$GCC" = yes; then
10719 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10720 else
10721 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10722 fi
10723 ;;
10724 esac
10725 link_all_deplibs=yes
10726 ;;
10727
10728 sunos4*)
10729 if test "x$host_vendor" = xsequent; then
10730 # Use $CC to link under sequent, because it throws in some extra .o
10731 # files that make .init and .fini sections work.
10732 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10733 else
10734 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10735 fi
10736 hardcode_libdir_flag_spec='-L$libdir'
10737 hardcode_direct=yes
10738 hardcode_minus_L=yes
10739 hardcode_shlibpath_var=no
10740 ;;
10741
10742 sysv4)
10743 case $host_vendor in
10744 sni)
10745 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10746 hardcode_direct=yes # is this really true???
10747 ;;
10748 siemens)
10749 ## LD is ld it makes a PLAMLIB
10750 ## CC just makes a GrossModule.
10751 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10752 reload_cmds='$CC -r -o $output$reload_objs'
10753 hardcode_direct=no
10754 ;;
10755 motorola)
10756 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10757 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10758 ;;
10759 esac
10760 runpath_var='LD_RUN_PATH'
10761 hardcode_shlibpath_var=no
10762 ;;
10763
10764 sysv4.3*)
10765 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10766 hardcode_shlibpath_var=no
10767 export_dynamic_flag_spec='-Bexport'
10768 ;;
10769
10770 sysv4*MP*)
10771 if test -d /usr/nec; then
10772 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10773 hardcode_shlibpath_var=no
10774 runpath_var=LD_RUN_PATH
10775 hardcode_runpath_var=yes
10776 ld_shlibs=yes
10777 fi
10778 ;;
10779
10780 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10781 no_undefined_flag='${wl}-z,text'
10782 archive_cmds_need_lc=no
10783 hardcode_shlibpath_var=no
10784 runpath_var='LD_RUN_PATH'
10785
10786 if test "$GCC" = yes; then
10787 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10788 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10789 else
10790 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10791 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10792 fi
10793 ;;
10794
10795 sysv5* | sco3.2v5* | sco5v6*)
10796 # Note: We can NOT use -z defs as we might desire, because we do not
10797 # link with -lc, and that would cause any symbols used from libc to
10798 # always be unresolved, which means just about no library would
10799 # ever link correctly. If we're not using GNU ld we use -z text
10800 # though, which does catch some bad symbols but isn't as heavy-handed
10801 # as -z defs.
10802 no_undefined_flag='${wl}-z,text'
10803 allow_undefined_flag='${wl}-z,nodefs'
10804 archive_cmds_need_lc=no
10805 hardcode_shlibpath_var=no
10806 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10807 hardcode_libdir_separator=':'
10808 link_all_deplibs=yes
10809 export_dynamic_flag_spec='${wl}-Bexport'
10810 runpath_var='LD_RUN_PATH'
10811
10812 if test "$GCC" = yes; then
10813 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10814 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10815 else
10816 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10817 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10818 fi
10819 ;;
10820
10821 uts4*)
10822 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10823 hardcode_libdir_flag_spec='-L$libdir'
10824 hardcode_shlibpath_var=no
10825 ;;
10826
10827 *)
10828 ld_shlibs=no
10829 ;;
10830 esac
10831
10832 if test x$host_vendor = xsni; then
10833 case $host in
10834 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10835 export_dynamic_flag_spec='${wl}-Blargedynsym'
10836 ;;
10837 esac
10838 fi
10839 fi
10840
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10842 $as_echo "$ld_shlibs" >&6; }
10843 test "$ld_shlibs" = no && can_build_shared=no
10844
10845 with_gnu_ld=$with_gnu_ld
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861 #
10862 # Do we need to explicitly link libc?
10863 #
10864 case "x$archive_cmds_need_lc" in
10865 x|xyes)
10866 # Assume -lc should be added
10867 archive_cmds_need_lc=yes
10868
10869 if test "$enable_shared" = yes && test "$GCC" = yes; then
10870 case $archive_cmds in
10871 *'~'*)
10872 # FIXME: we may have to deal with multi-command sequences.
10873 ;;
10874 '$CC '*)
10875 # Test whether the compiler implicitly links with -lc since on some
10876 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10877 # to ld, don't add -lc before -lgcc.
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10879 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10880 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10881 $as_echo_n "(cached) " >&6
10882 else
10883 $RM conftest*
10884 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10885
10886 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10887 (eval $ac_compile) 2>&5
10888 ac_status=$?
10889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10890 test $ac_status = 0; } 2>conftest.err; then
10891 soname=conftest
10892 lib=conftest
10893 libobjs=conftest.$ac_objext
10894 deplibs=
10895 wl=$lt_prog_compiler_wl
10896 pic_flag=$lt_prog_compiler_pic
10897 compiler_flags=-v
10898 linker_flags=-v
10899 verstring=
10900 output_objdir=.
10901 libname=conftest
10902 lt_save_allow_undefined_flag=$allow_undefined_flag
10903 allow_undefined_flag=
10904 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10905 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10906 ac_status=$?
10907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10908 test $ac_status = 0; }
10909 then
10910 lt_cv_archive_cmds_need_lc=no
10911 else
10912 lt_cv_archive_cmds_need_lc=yes
10913 fi
10914 allow_undefined_flag=$lt_save_allow_undefined_flag
10915 else
10916 cat conftest.err 1>&5
10917 fi
10918 $RM conftest*
10919
10920 fi
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10922 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10923 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10924 ;;
10925 esac
10926 fi
10927 ;;
10928 esac
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11087 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11088
11089 if test "$GCC" = yes; then
11090 case $host_os in
11091 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11092 *) lt_awk_arg="/^libraries:/" ;;
11093 esac
11094 case $host_os in
11095 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11096 *) lt_sed_strip_eq="s,=/,/,g" ;;
11097 esac
11098 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11099 case $lt_search_path_spec in
11100 *\;*)
11101 # if the path contains ";" then we assume it to be the separator
11102 # otherwise default to the standard path separator (i.e. ":") - it is
11103 # assumed that no part of a normal pathname contains ";" but that should
11104 # okay in the real world where ";" in dirpaths is itself problematic.
11105 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11106 ;;
11107 *)
11108 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11109 ;;
11110 esac
11111 # Ok, now we have the path, separated by spaces, we can step through it
11112 # and add multilib dir if necessary.
11113 lt_tmp_lt_search_path_spec=
11114 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11115 for lt_sys_path in $lt_search_path_spec; do
11116 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11117 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11118 else
11119 test -d "$lt_sys_path" && \
11120 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11121 fi
11122 done
11123 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11124 BEGIN {RS=" "; FS="/|\n";} {
11125 lt_foo="";
11126 lt_count=0;
11127 for (lt_i = NF; lt_i > 0; lt_i--) {
11128 if ($lt_i != "" && $lt_i != ".") {
11129 if ($lt_i == "..") {
11130 lt_count++;
11131 } else {
11132 if (lt_count == 0) {
11133 lt_foo="/" $lt_i lt_foo;
11134 } else {
11135 lt_count--;
11136 }
11137 }
11138 }
11139 }
11140 if (lt_foo != "") { lt_freq[lt_foo]++; }
11141 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11142 }'`
11143 # AWK program above erroneously prepends '/' to C:/dos/paths
11144 # for these hosts.
11145 case $host_os in
11146 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11147 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11148 esac
11149 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11150 else
11151 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11152 fi
11153 library_names_spec=
11154 libname_spec='lib$name'
11155 soname_spec=
11156 shrext_cmds=".so"
11157 postinstall_cmds=
11158 postuninstall_cmds=
11159 finish_cmds=
11160 finish_eval=
11161 shlibpath_var=
11162 shlibpath_overrides_runpath=unknown
11163 version_type=none
11164 dynamic_linker="$host_os ld.so"
11165 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11166 need_lib_prefix=unknown
11167 hardcode_into_libs=no
11168
11169 # when you set need_version to no, make sure it does not cause -set_version
11170 # flags to be left without arguments
11171 need_version=unknown
11172
11173 case $host_os in
11174 aix3*)
11175 version_type=linux
11176 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11177 shlibpath_var=LIBPATH
11178
11179 # AIX 3 has no versioning support, so we append a major version to the name.
11180 soname_spec='${libname}${release}${shared_ext}$major'
11181 ;;
11182
11183 aix[4-9]*)
11184 version_type=linux
11185 need_lib_prefix=no
11186 need_version=no
11187 hardcode_into_libs=yes
11188 if test "$host_cpu" = ia64; then
11189 # AIX 5 supports IA64
11190 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11191 shlibpath_var=LD_LIBRARY_PATH
11192 else
11193 # With GCC up to 2.95.x, collect2 would create an import file
11194 # for dependence libraries. The import file would start with
11195 # the line `#! .'. This would cause the generated library to
11196 # depend on `.', always an invalid library. This was fixed in
11197 # development snapshots of GCC prior to 3.0.
11198 case $host_os in
11199 aix4 | aix4.[01] | aix4.[01].*)
11200 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11201 echo ' yes '
11202 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11203 :
11204 else
11205 can_build_shared=no
11206 fi
11207 ;;
11208 esac
11209 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11210 # soname into executable. Probably we can add versioning support to
11211 # collect2, so additional links can be useful in future.
11212 if test "$aix_use_runtimelinking" = yes; then
11213 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11214 # instead of lib<name>.a to let people know that these are not
11215 # typical AIX shared libraries.
11216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11217 else
11218 # We preserve .a as extension for shared libraries through AIX4.2
11219 # and later when we are not doing run time linking.
11220 library_names_spec='${libname}${release}.a $libname.a'
11221 soname_spec='${libname}${release}${shared_ext}$major'
11222 fi
11223 shlibpath_var=LIBPATH
11224 fi
11225 ;;
11226
11227 amigaos*)
11228 case $host_cpu in
11229 powerpc)
11230 # Since July 2007 AmigaOS4 officially supports .so libraries.
11231 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11233 ;;
11234 m68k)
11235 library_names_spec='$libname.ixlibrary $libname.a'
11236 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11237 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'
11238 ;;
11239 esac
11240 ;;
11241
11242 beos*)
11243 library_names_spec='${libname}${shared_ext}'
11244 dynamic_linker="$host_os ld.so"
11245 shlibpath_var=LIBRARY_PATH
11246 ;;
11247
11248 bsdi[45]*)
11249 version_type=linux
11250 need_version=no
11251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11252 soname_spec='${libname}${release}${shared_ext}$major'
11253 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11254 shlibpath_var=LD_LIBRARY_PATH
11255 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11256 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11257 # the default ld.so.conf also contains /usr/contrib/lib and
11258 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11259 # libtool to hard-code these into programs
11260 ;;
11261
11262 cygwin* | mingw* | pw32* | cegcc*)
11263 version_type=windows
11264 shrext_cmds=".dll"
11265 need_version=no
11266 need_lib_prefix=no
11267
11268 case $GCC,$host_os in
11269 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11270 library_names_spec='$libname.dll.a'
11271 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11272 postinstall_cmds='base_file=`basename \${file}`~
11273 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11274 dldir=$destdir/`dirname \$dlpath`~
11275 test -d \$dldir || mkdir -p \$dldir~
11276 $install_prog $dir/$dlname \$dldir/$dlname~
11277 chmod a+x \$dldir/$dlname~
11278 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11279 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11280 fi'
11281 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11282 dlpath=$dir/\$dldll~
11283 $RM \$dlpath'
11284 shlibpath_overrides_runpath=yes
11285
11286 case $host_os in
11287 cygwin*)
11288 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11289 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11290
11291 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11292 ;;
11293 mingw* | cegcc*)
11294 # MinGW DLLs use traditional 'lib' prefix
11295 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11296 ;;
11297 pw32*)
11298 # pw32 DLLs use 'pw' prefix rather than 'lib'
11299 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11300 ;;
11301 esac
11302 ;;
11303
11304 *)
11305 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11306 ;;
11307 esac
11308 dynamic_linker='Win32 ld.exe'
11309 # FIXME: first we should search . and the directory the executable is in
11310 shlibpath_var=PATH
11311 ;;
11312
11313 darwin* | rhapsody*)
11314 dynamic_linker="$host_os dyld"
11315 version_type=darwin
11316 need_lib_prefix=no
11317 need_version=no
11318 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11319 soname_spec='${libname}${release}${major}$shared_ext'
11320 shlibpath_overrides_runpath=yes
11321 shlibpath_var=DYLD_LIBRARY_PATH
11322 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11323
11324 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11325 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11326 ;;
11327
11328 dgux*)
11329 version_type=linux
11330 need_lib_prefix=no
11331 need_version=no
11332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11333 soname_spec='${libname}${release}${shared_ext}$major'
11334 shlibpath_var=LD_LIBRARY_PATH
11335 ;;
11336
11337 freebsd* | dragonfly*)
11338 # DragonFly does not have aout. When/if they implement a new
11339 # versioning mechanism, adjust this.
11340 if test -x /usr/bin/objformat; then
11341 objformat=`/usr/bin/objformat`
11342 else
11343 case $host_os in
11344 freebsd[23].*) objformat=aout ;;
11345 *) objformat=elf ;;
11346 esac
11347 fi
11348 version_type=freebsd-$objformat
11349 case $version_type in
11350 freebsd-elf*)
11351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11352 need_version=no
11353 need_lib_prefix=no
11354 ;;
11355 freebsd-*)
11356 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11357 need_version=yes
11358 ;;
11359 esac
11360 shlibpath_var=LD_LIBRARY_PATH
11361 case $host_os in
11362 freebsd2.*)
11363 shlibpath_overrides_runpath=yes
11364 ;;
11365 freebsd3.[01]* | freebsdelf3.[01]*)
11366 shlibpath_overrides_runpath=yes
11367 hardcode_into_libs=yes
11368 ;;
11369 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11370 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11371 shlibpath_overrides_runpath=no
11372 hardcode_into_libs=yes
11373 ;;
11374 *) # from 4.6 on, and DragonFly
11375 shlibpath_overrides_runpath=yes
11376 hardcode_into_libs=yes
11377 ;;
11378 esac
11379 ;;
11380
11381 haiku*)
11382 version_type=linux
11383 need_lib_prefix=no
11384 need_version=no
11385 dynamic_linker="$host_os runtime_loader"
11386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11387 soname_spec='${libname}${release}${shared_ext}$major'
11388 shlibpath_var=LIBRARY_PATH
11389 shlibpath_overrides_runpath=yes
11390 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11391 hardcode_into_libs=yes
11392 ;;
11393
11394 hpux9* | hpux10* | hpux11*)
11395 # Give a soname corresponding to the major version so that dld.sl refuses to
11396 # link against other versions.
11397 version_type=sunos
11398 need_lib_prefix=no
11399 need_version=no
11400 case $host_cpu in
11401 ia64*)
11402 shrext_cmds='.so'
11403 hardcode_into_libs=yes
11404 dynamic_linker="$host_os dld.so"
11405 shlibpath_var=LD_LIBRARY_PATH
11406 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11408 soname_spec='${libname}${release}${shared_ext}$major'
11409 if test "X$HPUX_IA64_MODE" = X32; then
11410 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11411 else
11412 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11413 fi
11414 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11415 ;;
11416 hppa*64*)
11417 shrext_cmds='.sl'
11418 hardcode_into_libs=yes
11419 dynamic_linker="$host_os dld.sl"
11420 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11421 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11423 soname_spec='${libname}${release}${shared_ext}$major'
11424 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11425 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11426 ;;
11427 *)
11428 shrext_cmds='.sl'
11429 dynamic_linker="$host_os dld.sl"
11430 shlibpath_var=SHLIB_PATH
11431 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11433 soname_spec='${libname}${release}${shared_ext}$major'
11434 ;;
11435 esac
11436 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11437 postinstall_cmds='chmod 555 $lib'
11438 # or fails outright, so override atomically:
11439 install_override_mode=555
11440 ;;
11441
11442 interix[3-9]*)
11443 version_type=linux
11444 need_lib_prefix=no
11445 need_version=no
11446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11447 soname_spec='${libname}${release}${shared_ext}$major'
11448 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11449 shlibpath_var=LD_LIBRARY_PATH
11450 shlibpath_overrides_runpath=no
11451 hardcode_into_libs=yes
11452 ;;
11453
11454 irix5* | irix6* | nonstopux*)
11455 case $host_os in
11456 nonstopux*) version_type=nonstopux ;;
11457 *)
11458 if test "$lt_cv_prog_gnu_ld" = yes; then
11459 version_type=linux
11460 else
11461 version_type=irix
11462 fi ;;
11463 esac
11464 need_lib_prefix=no
11465 need_version=no
11466 soname_spec='${libname}${release}${shared_ext}$major'
11467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11468 case $host_os in
11469 irix5* | nonstopux*)
11470 libsuff= shlibsuff=
11471 ;;
11472 *)
11473 case $LD in # libtool.m4 will add one of these switches to LD
11474 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11475 libsuff= shlibsuff= libmagic=32-bit;;
11476 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11477 libsuff=32 shlibsuff=N32 libmagic=N32;;
11478 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11479 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11480 *) libsuff= shlibsuff= libmagic=never-match;;
11481 esac
11482 ;;
11483 esac
11484 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11485 shlibpath_overrides_runpath=no
11486 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11487 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11488 hardcode_into_libs=yes
11489 ;;
11490
11491 # No shared lib support for Linux oldld, aout, or coff.
11492 linux*oldld* | linux*aout* | linux*coff*)
11493 dynamic_linker=no
11494 ;;
11495
11496 # This must be Linux ELF.
11497 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11498 version_type=linux
11499 need_lib_prefix=no
11500 need_version=no
11501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11502 soname_spec='${libname}${release}${shared_ext}$major'
11503 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11504 shlibpath_var=LD_LIBRARY_PATH
11505 shlibpath_overrides_runpath=no
11506
11507 # Some binutils ld are patched to set DT_RUNPATH
11508 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11509 $as_echo_n "(cached) " >&6
11510 else
11511 lt_cv_shlibpath_overrides_runpath=no
11512 save_LDFLAGS=$LDFLAGS
11513 save_libdir=$libdir
11514 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11515 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11517 /* end confdefs.h. */
11518
11519 int
11520 main ()
11521 {
11522
11523 ;
11524 return 0;
11525 }
11526 _ACEOF
11527 if ac_fn_c_try_link "$LINENO"; then :
11528 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11529 lt_cv_shlibpath_overrides_runpath=yes
11530 fi
11531 fi
11532 rm -f core conftest.err conftest.$ac_objext \
11533 conftest$ac_exeext conftest.$ac_ext
11534 LDFLAGS=$save_LDFLAGS
11535 libdir=$save_libdir
11536
11537 fi
11538
11539 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11540
11541 # This implies no fast_install, which is unacceptable.
11542 # Some rework will be needed to allow for fast_install
11543 # before this can be enabled.
11544 hardcode_into_libs=yes
11545
11546 # Append ld.so.conf contents to the search path
11547 if test -f /etc/ld.so.conf; then
11548 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' ' '`
11549 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11550 fi
11551
11552 # We used to test for /lib/ld.so.1 and disable shared libraries on
11553 # powerpc, because MkLinux only supported shared libraries with the
11554 # GNU dynamic linker. Since this was broken with cross compilers,
11555 # most powerpc-linux boxes support dynamic linking these days and
11556 # people can always --disable-shared, the test was removed, and we
11557 # assume the GNU/Linux dynamic linker is in use.
11558 dynamic_linker='GNU/Linux ld.so'
11559 ;;
11560
11561 netbsd*)
11562 version_type=sunos
11563 need_lib_prefix=no
11564 need_version=no
11565 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11567 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11568 dynamic_linker='NetBSD (a.out) ld.so'
11569 else
11570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11571 soname_spec='${libname}${release}${shared_ext}$major'
11572 dynamic_linker='NetBSD ld.elf_so'
11573 fi
11574 shlibpath_var=LD_LIBRARY_PATH
11575 shlibpath_overrides_runpath=yes
11576 hardcode_into_libs=yes
11577 ;;
11578
11579 newsos6)
11580 version_type=linux
11581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11582 shlibpath_var=LD_LIBRARY_PATH
11583 shlibpath_overrides_runpath=yes
11584 ;;
11585
11586 *nto* | *qnx*)
11587 version_type=qnx
11588 need_lib_prefix=no
11589 need_version=no
11590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11591 soname_spec='${libname}${release}${shared_ext}$major'
11592 shlibpath_var=LD_LIBRARY_PATH
11593 shlibpath_overrides_runpath=no
11594 hardcode_into_libs=yes
11595 dynamic_linker='ldqnx.so'
11596 ;;
11597
11598 openbsd*)
11599 version_type=sunos
11600 sys_lib_dlsearch_path_spec="/usr/lib"
11601 need_lib_prefix=no
11602 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11603 case $host_os in
11604 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11605 *) need_version=no ;;
11606 esac
11607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11608 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11609 shlibpath_var=LD_LIBRARY_PATH
11610 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11611 case $host_os in
11612 openbsd2.[89] | openbsd2.[89].*)
11613 shlibpath_overrides_runpath=no
11614 ;;
11615 *)
11616 shlibpath_overrides_runpath=yes
11617 ;;
11618 esac
11619 else
11620 shlibpath_overrides_runpath=yes
11621 fi
11622 ;;
11623
11624 os2*)
11625 libname_spec='$name'
11626 shrext_cmds=".dll"
11627 need_lib_prefix=no
11628 library_names_spec='$libname${shared_ext} $libname.a'
11629 dynamic_linker='OS/2 ld.exe'
11630 shlibpath_var=LIBPATH
11631 ;;
11632
11633 osf3* | osf4* | osf5*)
11634 version_type=osf
11635 need_lib_prefix=no
11636 need_version=no
11637 soname_spec='${libname}${release}${shared_ext}$major'
11638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11639 shlibpath_var=LD_LIBRARY_PATH
11640 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11641 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11642 ;;
11643
11644 rdos*)
11645 dynamic_linker=no
11646 ;;
11647
11648 solaris*)
11649 version_type=linux
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=yes
11656 hardcode_into_libs=yes
11657 # ldd complains unless libraries are executable
11658 postinstall_cmds='chmod +x $lib'
11659 ;;
11660
11661 sunos4*)
11662 version_type=sunos
11663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11664 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11665 shlibpath_var=LD_LIBRARY_PATH
11666 shlibpath_overrides_runpath=yes
11667 if test "$with_gnu_ld" = yes; then
11668 need_lib_prefix=no
11669 fi
11670 need_version=yes
11671 ;;
11672
11673 sysv4 | sysv4.3*)
11674 version_type=linux
11675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11676 soname_spec='${libname}${release}${shared_ext}$major'
11677 shlibpath_var=LD_LIBRARY_PATH
11678 case $host_vendor in
11679 sni)
11680 shlibpath_overrides_runpath=no
11681 need_lib_prefix=no
11682 runpath_var=LD_RUN_PATH
11683 ;;
11684 siemens)
11685 need_lib_prefix=no
11686 ;;
11687 motorola)
11688 need_lib_prefix=no
11689 need_version=no
11690 shlibpath_overrides_runpath=no
11691 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11692 ;;
11693 esac
11694 ;;
11695
11696 sysv4*MP*)
11697 if test -d /usr/nec ;then
11698 version_type=linux
11699 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11700 soname_spec='$libname${shared_ext}.$major'
11701 shlibpath_var=LD_LIBRARY_PATH
11702 fi
11703 ;;
11704
11705 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11706 version_type=freebsd-elf
11707 need_lib_prefix=no
11708 need_version=no
11709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11710 soname_spec='${libname}${release}${shared_ext}$major'
11711 shlibpath_var=LD_LIBRARY_PATH
11712 shlibpath_overrides_runpath=yes
11713 hardcode_into_libs=yes
11714 if test "$with_gnu_ld" = yes; then
11715 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11716 else
11717 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11718 case $host_os in
11719 sco3.2v5*)
11720 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11721 ;;
11722 esac
11723 fi
11724 sys_lib_dlsearch_path_spec='/usr/lib'
11725 ;;
11726
11727 tpf*)
11728 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11729 version_type=linux
11730 need_lib_prefix=no
11731 need_version=no
11732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11733 shlibpath_var=LD_LIBRARY_PATH
11734 shlibpath_overrides_runpath=no
11735 hardcode_into_libs=yes
11736 ;;
11737
11738 uts4*)
11739 version_type=linux
11740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11741 soname_spec='${libname}${release}${shared_ext}$major'
11742 shlibpath_var=LD_LIBRARY_PATH
11743 ;;
11744
11745 *)
11746 dynamic_linker=no
11747 ;;
11748 esac
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11750 $as_echo "$dynamic_linker" >&6; }
11751 test "$dynamic_linker" = no && can_build_shared=no
11752
11753 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11754 if test "$GCC" = yes; then
11755 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11756 fi
11757
11758 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11759 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11760 fi
11761 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11762 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11763 fi
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11857 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11858 hardcode_action=
11859 if test -n "$hardcode_libdir_flag_spec" ||
11860 test -n "$runpath_var" ||
11861 test "X$hardcode_automatic" = "Xyes" ; then
11862
11863 # We can hardcode non-existent directories.
11864 if test "$hardcode_direct" != no &&
11865 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11866 # have to relink, otherwise we might link with an installed library
11867 # when we should be linking with a yet-to-be-installed one
11868 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11869 test "$hardcode_minus_L" != no; then
11870 # Linking always hardcodes the temporary library directory.
11871 hardcode_action=relink
11872 else
11873 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11874 hardcode_action=immediate
11875 fi
11876 else
11877 # We cannot hardcode anything, or else we can only hardcode existing
11878 # directories.
11879 hardcode_action=unsupported
11880 fi
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11882 $as_echo "$hardcode_action" >&6; }
11883
11884 if test "$hardcode_action" = relink ||
11885 test "$inherit_rpath" = yes; then
11886 # Fast installation is not supported
11887 enable_fast_install=no
11888 elif test "$shlibpath_overrides_runpath" = yes ||
11889 test "$enable_shared" = no; then
11890 # Fast installation is not necessary
11891 enable_fast_install=needless
11892 fi
11893
11894
11895
11896
11897
11898
11899 if test "x$enable_dlopen" != xyes; then
11900 enable_dlopen=unknown
11901 enable_dlopen_self=unknown
11902 enable_dlopen_self_static=unknown
11903 else
11904 lt_cv_dlopen=no
11905 lt_cv_dlopen_libs=
11906
11907 case $host_os in
11908 beos*)
11909 lt_cv_dlopen="load_add_on"
11910 lt_cv_dlopen_libs=
11911 lt_cv_dlopen_self=yes
11912 ;;
11913
11914 mingw* | pw32* | cegcc*)
11915 lt_cv_dlopen="LoadLibrary"
11916 lt_cv_dlopen_libs=
11917 ;;
11918
11919 cygwin*)
11920 lt_cv_dlopen="dlopen"
11921 lt_cv_dlopen_libs=
11922 ;;
11923
11924 darwin*)
11925 # if libdl is installed we need to link against it
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11927 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11928 if ${ac_cv_lib_dl_dlopen+:} false; then :
11929 $as_echo_n "(cached) " >&6
11930 else
11931 ac_check_lib_save_LIBS=$LIBS
11932 LIBS="-ldl $LIBS"
11933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11934 /* end confdefs.h. */
11935
11936 /* Override any GCC internal prototype to avoid an error.
11937 Use char because int might match the return type of a GCC
11938 builtin and then its argument prototype would still apply. */
11939 #ifdef __cplusplus
11940 extern "C"
11941 #endif
11942 char dlopen ();
11943 int
11944 main ()
11945 {
11946 return dlopen ();
11947 ;
11948 return 0;
11949 }
11950 _ACEOF
11951 if ac_fn_c_try_link "$LINENO"; then :
11952 ac_cv_lib_dl_dlopen=yes
11953 else
11954 ac_cv_lib_dl_dlopen=no
11955 fi
11956 rm -f core conftest.err conftest.$ac_objext \
11957 conftest$ac_exeext conftest.$ac_ext
11958 LIBS=$ac_check_lib_save_LIBS
11959 fi
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11961 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11962 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11963 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11964 else
11965
11966 lt_cv_dlopen="dyld"
11967 lt_cv_dlopen_libs=
11968 lt_cv_dlopen_self=yes
11969
11970 fi
11971
11972 ;;
11973
11974 *)
11975 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11976 if test "x$ac_cv_func_shl_load" = xyes; then :
11977 lt_cv_dlopen="shl_load"
11978 else
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11980 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11981 if ${ac_cv_lib_dld_shl_load+:} false; then :
11982 $as_echo_n "(cached) " >&6
11983 else
11984 ac_check_lib_save_LIBS=$LIBS
11985 LIBS="-ldld $LIBS"
11986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11987 /* end confdefs.h. */
11988
11989 /* Override any GCC internal prototype to avoid an error.
11990 Use char because int might match the return type of a GCC
11991 builtin and then its argument prototype would still apply. */
11992 #ifdef __cplusplus
11993 extern "C"
11994 #endif
11995 char shl_load ();
11996 int
11997 main ()
11998 {
11999 return shl_load ();
12000 ;
12001 return 0;
12002 }
12003 _ACEOF
12004 if ac_fn_c_try_link "$LINENO"; then :
12005 ac_cv_lib_dld_shl_load=yes
12006 else
12007 ac_cv_lib_dld_shl_load=no
12008 fi
12009 rm -f core conftest.err conftest.$ac_objext \
12010 conftest$ac_exeext conftest.$ac_ext
12011 LIBS=$ac_check_lib_save_LIBS
12012 fi
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12014 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12015 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12016 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12017 else
12018 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12019 if test "x$ac_cv_func_dlopen" = xyes; then :
12020 lt_cv_dlopen="dlopen"
12021 else
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12023 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12024 if ${ac_cv_lib_dl_dlopen+:} false; then :
12025 $as_echo_n "(cached) " >&6
12026 else
12027 ac_check_lib_save_LIBS=$LIBS
12028 LIBS="-ldl $LIBS"
12029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12030 /* end confdefs.h. */
12031
12032 /* Override any GCC internal prototype to avoid an error.
12033 Use char because int might match the return type of a GCC
12034 builtin and then its argument prototype would still apply. */
12035 #ifdef __cplusplus
12036 extern "C"
12037 #endif
12038 char dlopen ();
12039 int
12040 main ()
12041 {
12042 return dlopen ();
12043 ;
12044 return 0;
12045 }
12046 _ACEOF
12047 if ac_fn_c_try_link "$LINENO"; then :
12048 ac_cv_lib_dl_dlopen=yes
12049 else
12050 ac_cv_lib_dl_dlopen=no
12051 fi
12052 rm -f core conftest.err conftest.$ac_objext \
12053 conftest$ac_exeext conftest.$ac_ext
12054 LIBS=$ac_check_lib_save_LIBS
12055 fi
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12057 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12058 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12059 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12060 else
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12062 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12063 if ${ac_cv_lib_svld_dlopen+:} false; then :
12064 $as_echo_n "(cached) " >&6
12065 else
12066 ac_check_lib_save_LIBS=$LIBS
12067 LIBS="-lsvld $LIBS"
12068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12069 /* end confdefs.h. */
12070
12071 /* Override any GCC internal prototype to avoid an error.
12072 Use char because int might match the return type of a GCC
12073 builtin and then its argument prototype would still apply. */
12074 #ifdef __cplusplus
12075 extern "C"
12076 #endif
12077 char dlopen ();
12078 int
12079 main ()
12080 {
12081 return dlopen ();
12082 ;
12083 return 0;
12084 }
12085 _ACEOF
12086 if ac_fn_c_try_link "$LINENO"; then :
12087 ac_cv_lib_svld_dlopen=yes
12088 else
12089 ac_cv_lib_svld_dlopen=no
12090 fi
12091 rm -f core conftest.err conftest.$ac_objext \
12092 conftest$ac_exeext conftest.$ac_ext
12093 LIBS=$ac_check_lib_save_LIBS
12094 fi
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12096 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12097 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12098 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12099 else
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12101 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12102 if ${ac_cv_lib_dld_dld_link+:} false; then :
12103 $as_echo_n "(cached) " >&6
12104 else
12105 ac_check_lib_save_LIBS=$LIBS
12106 LIBS="-ldld $LIBS"
12107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12108 /* end confdefs.h. */
12109
12110 /* Override any GCC internal prototype to avoid an error.
12111 Use char because int might match the return type of a GCC
12112 builtin and then its argument prototype would still apply. */
12113 #ifdef __cplusplus
12114 extern "C"
12115 #endif
12116 char dld_link ();
12117 int
12118 main ()
12119 {
12120 return dld_link ();
12121 ;
12122 return 0;
12123 }
12124 _ACEOF
12125 if ac_fn_c_try_link "$LINENO"; then :
12126 ac_cv_lib_dld_dld_link=yes
12127 else
12128 ac_cv_lib_dld_dld_link=no
12129 fi
12130 rm -f core conftest.err conftest.$ac_objext \
12131 conftest$ac_exeext conftest.$ac_ext
12132 LIBS=$ac_check_lib_save_LIBS
12133 fi
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12135 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12136 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12137 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12138 fi
12139
12140
12141 fi
12142
12143
12144 fi
12145
12146
12147 fi
12148
12149
12150 fi
12151
12152
12153 fi
12154
12155 ;;
12156 esac
12157
12158 if test "x$lt_cv_dlopen" != xno; then
12159 enable_dlopen=yes
12160 else
12161 enable_dlopen=no
12162 fi
12163
12164 case $lt_cv_dlopen in
12165 dlopen)
12166 save_CPPFLAGS="$CPPFLAGS"
12167 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12168
12169 save_LDFLAGS="$LDFLAGS"
12170 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12171
12172 save_LIBS="$LIBS"
12173 LIBS="$lt_cv_dlopen_libs $LIBS"
12174
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12176 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12177 if ${lt_cv_dlopen_self+:} false; then :
12178 $as_echo_n "(cached) " >&6
12179 else
12180 if test "$cross_compiling" = yes; then :
12181 lt_cv_dlopen_self=cross
12182 else
12183 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12184 lt_status=$lt_dlunknown
12185 cat > conftest.$ac_ext <<_LT_EOF
12186 #line 12186 "configure"
12187 #include "confdefs.h"
12188
12189 #if HAVE_DLFCN_H
12190 #include <dlfcn.h>
12191 #endif
12192
12193 #include <stdio.h>
12194
12195 #ifdef RTLD_GLOBAL
12196 # define LT_DLGLOBAL RTLD_GLOBAL
12197 #else
12198 # ifdef DL_GLOBAL
12199 # define LT_DLGLOBAL DL_GLOBAL
12200 # else
12201 # define LT_DLGLOBAL 0
12202 # endif
12203 #endif
12204
12205 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12206 find out it does not work in some platform. */
12207 #ifndef LT_DLLAZY_OR_NOW
12208 # ifdef RTLD_LAZY
12209 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12210 # else
12211 # ifdef DL_LAZY
12212 # define LT_DLLAZY_OR_NOW DL_LAZY
12213 # else
12214 # ifdef RTLD_NOW
12215 # define LT_DLLAZY_OR_NOW RTLD_NOW
12216 # else
12217 # ifdef DL_NOW
12218 # define LT_DLLAZY_OR_NOW DL_NOW
12219 # else
12220 # define LT_DLLAZY_OR_NOW 0
12221 # endif
12222 # endif
12223 # endif
12224 # endif
12225 #endif
12226
12227 /* When -fvisbility=hidden is used, assume the code has been annotated
12228 correspondingly for the symbols needed. */
12229 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12230 void fnord () __attribute__((visibility("default")));
12231 #endif
12232
12233 void fnord () { int i=42; }
12234 int main ()
12235 {
12236 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12237 int status = $lt_dlunknown;
12238
12239 if (self)
12240 {
12241 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12242 else
12243 {
12244 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12245 else puts (dlerror ());
12246 }
12247 /* dlclose (self); */
12248 }
12249 else
12250 puts (dlerror ());
12251
12252 return status;
12253 }
12254 _LT_EOF
12255 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12256 (eval $ac_link) 2>&5
12257 ac_status=$?
12258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12259 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12260 (./conftest; exit; ) >&5 2>/dev/null
12261 lt_status=$?
12262 case x$lt_status in
12263 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12264 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12265 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12266 esac
12267 else :
12268 # compilation failed
12269 lt_cv_dlopen_self=no
12270 fi
12271 fi
12272 rm -fr conftest*
12273
12274
12275 fi
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12277 $as_echo "$lt_cv_dlopen_self" >&6; }
12278
12279 if test "x$lt_cv_dlopen_self" = xyes; then
12280 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12282 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12283 if ${lt_cv_dlopen_self_static+:} false; then :
12284 $as_echo_n "(cached) " >&6
12285 else
12286 if test "$cross_compiling" = yes; then :
12287 lt_cv_dlopen_self_static=cross
12288 else
12289 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12290 lt_status=$lt_dlunknown
12291 cat > conftest.$ac_ext <<_LT_EOF
12292 #line 12292 "configure"
12293 #include "confdefs.h"
12294
12295 #if HAVE_DLFCN_H
12296 #include <dlfcn.h>
12297 #endif
12298
12299 #include <stdio.h>
12300
12301 #ifdef RTLD_GLOBAL
12302 # define LT_DLGLOBAL RTLD_GLOBAL
12303 #else
12304 # ifdef DL_GLOBAL
12305 # define LT_DLGLOBAL DL_GLOBAL
12306 # else
12307 # define LT_DLGLOBAL 0
12308 # endif
12309 #endif
12310
12311 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12312 find out it does not work in some platform. */
12313 #ifndef LT_DLLAZY_OR_NOW
12314 # ifdef RTLD_LAZY
12315 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12316 # else
12317 # ifdef DL_LAZY
12318 # define LT_DLLAZY_OR_NOW DL_LAZY
12319 # else
12320 # ifdef RTLD_NOW
12321 # define LT_DLLAZY_OR_NOW RTLD_NOW
12322 # else
12323 # ifdef DL_NOW
12324 # define LT_DLLAZY_OR_NOW DL_NOW
12325 # else
12326 # define LT_DLLAZY_OR_NOW 0
12327 # endif
12328 # endif
12329 # endif
12330 # endif
12331 #endif
12332
12333 /* When -fvisbility=hidden is used, assume the code has been annotated
12334 correspondingly for the symbols needed. */
12335 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12336 void fnord () __attribute__((visibility("default")));
12337 #endif
12338
12339 void fnord () { int i=42; }
12340 int main ()
12341 {
12342 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12343 int status = $lt_dlunknown;
12344
12345 if (self)
12346 {
12347 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12348 else
12349 {
12350 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12351 else puts (dlerror ());
12352 }
12353 /* dlclose (self); */
12354 }
12355 else
12356 puts (dlerror ());
12357
12358 return status;
12359 }
12360 _LT_EOF
12361 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12362 (eval $ac_link) 2>&5
12363 ac_status=$?
12364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12365 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12366 (./conftest; exit; ) >&5 2>/dev/null
12367 lt_status=$?
12368 case x$lt_status in
12369 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12370 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12371 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12372 esac
12373 else :
12374 # compilation failed
12375 lt_cv_dlopen_self_static=no
12376 fi
12377 fi
12378 rm -fr conftest*
12379
12380
12381 fi
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12383 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12384 fi
12385
12386 CPPFLAGS="$save_CPPFLAGS"
12387 LDFLAGS="$save_LDFLAGS"
12388 LIBS="$save_LIBS"
12389 ;;
12390 esac
12391
12392 case $lt_cv_dlopen_self in
12393 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12394 *) enable_dlopen_self=unknown ;;
12395 esac
12396
12397 case $lt_cv_dlopen_self_static in
12398 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12399 *) enable_dlopen_self_static=unknown ;;
12400 esac
12401 fi
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419 striplib=
12420 old_striplib=
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12422 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12423 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12424 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12425 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12427 $as_echo "yes" >&6; }
12428 else
12429 # FIXME - insert some real tests, host_os isn't really good enough
12430 case $host_os in
12431 darwin*)
12432 if test -n "$STRIP" ; then
12433 striplib="$STRIP -x"
12434 old_striplib="$STRIP -S"
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12436 $as_echo "yes" >&6; }
12437 else
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12439 $as_echo "no" >&6; }
12440 fi
12441 ;;
12442 *)
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12444 $as_echo "no" >&6; }
12445 ;;
12446 esac
12447 fi
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460 # Report which library types will actually be built
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12462 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12464 $as_echo "$can_build_shared" >&6; }
12465
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12467 $as_echo_n "checking whether to build shared libraries... " >&6; }
12468 test "$can_build_shared" = "no" && enable_shared=no
12469
12470 # On AIX, shared libraries and static libraries use the same namespace, and
12471 # are all built from PIC.
12472 case $host_os in
12473 aix3*)
12474 test "$enable_shared" = yes && enable_static=no
12475 if test -n "$RANLIB"; then
12476 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12477 postinstall_cmds='$RANLIB $lib'
12478 fi
12479 ;;
12480
12481 aix[4-9]*)
12482 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12483 test "$enable_shared" = yes && enable_static=no
12484 fi
12485 ;;
12486 esac
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12488 $as_echo "$enable_shared" >&6; }
12489
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12491 $as_echo_n "checking whether to build static libraries... " >&6; }
12492 # Make sure either enable_shared or enable_static is yes.
12493 test "$enable_shared" = yes || enable_static=yes
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12495 $as_echo "$enable_static" >&6; }
12496
12497
12498
12499
12500 fi
12501 ac_ext=c
12502 ac_cpp='$CPP $CPPFLAGS'
12503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12506
12507 CC="$lt_save_CC"
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521 ac_config_commands="$ac_config_commands libtool"
12522
12523
12524
12525
12526 # Only expand once:
12527
12528
12529
12530
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
12532 $as_echo_n "checking for bind in -lsocket... " >&6; }
12533 if ${ac_cv_lib_socket_bind+:} false; then :
12534 $as_echo_n "(cached) " >&6
12535 else
12536 ac_check_lib_save_LIBS=$LIBS
12537 LIBS="-lsocket $LIBS"
12538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12539 /* end confdefs.h. */
12540
12541 /* Override any GCC internal prototype to avoid an error.
12542 Use char because int might match the return type of a GCC
12543 builtin and then its argument prototype would still apply. */
12544 #ifdef __cplusplus
12545 extern "C"
12546 #endif
12547 char bind ();
12548 int
12549 main ()
12550 {
12551 return bind ();
12552 ;
12553 return 0;
12554 }
12555 _ACEOF
12556 if ac_fn_c_try_link "$LINENO"; then :
12557 ac_cv_lib_socket_bind=yes
12558 else
12559 ac_cv_lib_socket_bind=no
12560 fi
12561 rm -f core conftest.err conftest.$ac_objext \
12562 conftest$ac_exeext conftest.$ac_ext
12563 LIBS=$ac_check_lib_save_LIBS
12564 fi
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
12566 $as_echo "$ac_cv_lib_socket_bind" >&6; }
12567 if test "x$ac_cv_lib_socket_bind" = xyes; then :
12568 cat >>confdefs.h <<_ACEOF
12569 #define HAVE_LIBSOCKET 1
12570 _ACEOF
12571
12572 LIBS="-lsocket $LIBS"
12573
12574 fi
12575
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
12577 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
12578 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
12579 $as_echo_n "(cached) " >&6
12580 else
12581 ac_check_lib_save_LIBS=$LIBS
12582 LIBS="-lnsl $LIBS"
12583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12584 /* end confdefs.h. */
12585
12586 /* Override any GCC internal prototype to avoid an error.
12587 Use char because int might match the return type of a GCC
12588 builtin and then its argument prototype would still apply. */
12589 #ifdef __cplusplus
12590 extern "C"
12591 #endif
12592 char gethostbyname ();
12593 int
12594 main ()
12595 {
12596 return gethostbyname ();
12597 ;
12598 return 0;
12599 }
12600 _ACEOF
12601 if ac_fn_c_try_link "$LINENO"; then :
12602 ac_cv_lib_nsl_gethostbyname=yes
12603 else
12604 ac_cv_lib_nsl_gethostbyname=no
12605 fi
12606 rm -f core conftest.err conftest.$ac_objext \
12607 conftest$ac_exeext conftest.$ac_ext
12608 LIBS=$ac_check_lib_save_LIBS
12609 fi
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
12611 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
12612 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
12613 cat >>confdefs.h <<_ACEOF
12614 #define HAVE_LIBNSL 1
12615 _ACEOF
12616
12617 LIBS="-lnsl $LIBS"
12618
12619 fi
12620
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs in -lm" >&5
12622 $as_echo_n "checking for fabs in -lm... " >&6; }
12623 if ${ac_cv_lib_m_fabs+:} false; then :
12624 $as_echo_n "(cached) " >&6
12625 else
12626 ac_check_lib_save_LIBS=$LIBS
12627 LIBS="-lm $LIBS"
12628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12629 /* end confdefs.h. */
12630
12631 /* Override any GCC internal prototype to avoid an error.
12632 Use char because int might match the return type of a GCC
12633 builtin and then its argument prototype would still apply. */
12634 #ifdef __cplusplus
12635 extern "C"
12636 #endif
12637 char fabs ();
12638 int
12639 main ()
12640 {
12641 return fabs ();
12642 ;
12643 return 0;
12644 }
12645 _ACEOF
12646 if ac_fn_c_try_link "$LINENO"; then :
12647 ac_cv_lib_m_fabs=yes
12648 else
12649 ac_cv_lib_m_fabs=no
12650 fi
12651 rm -f core conftest.err conftest.$ac_objext \
12652 conftest$ac_exeext conftest.$ac_ext
12653 LIBS=$ac_check_lib_save_LIBS
12654 fi
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabs" >&5
12656 $as_echo "$ac_cv_lib_m_fabs" >&6; }
12657 if test "x$ac_cv_lib_m_fabs" = xyes; then :
12658 cat >>confdefs.h <<_ACEOF
12659 #define HAVE_LIBM 1
12660 _ACEOF
12661
12662 LIBS="-lm $LIBS"
12663
12664 fi
12665
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log2 in -lm" >&5
12667 $as_echo_n "checking for log2 in -lm... " >&6; }
12668 if ${ac_cv_lib_m_log2+:} false; then :
12669 $as_echo_n "(cached) " >&6
12670 else
12671 ac_check_lib_save_LIBS=$LIBS
12672 LIBS="-lm $LIBS"
12673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12674 /* end confdefs.h. */
12675
12676 /* Override any GCC internal prototype to avoid an error.
12677 Use char because int might match the return type of a GCC
12678 builtin and then its argument prototype would still apply. */
12679 #ifdef __cplusplus
12680 extern "C"
12681 #endif
12682 char log2 ();
12683 int
12684 main ()
12685 {
12686 return log2 ();
12687 ;
12688 return 0;
12689 }
12690 _ACEOF
12691 if ac_fn_c_try_link "$LINENO"; then :
12692 ac_cv_lib_m_log2=yes
12693 else
12694 ac_cv_lib_m_log2=no
12695 fi
12696 rm -f core conftest.err conftest.$ac_objext \
12697 conftest$ac_exeext conftest.$ac_ext
12698 LIBS=$ac_check_lib_save_LIBS
12699 fi
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log2" >&5
12701 $as_echo "$ac_cv_lib_m_log2" >&6; }
12702 if test "x$ac_cv_lib_m_log2" = xyes; then :
12703 cat >>confdefs.h <<_ACEOF
12704 #define HAVE_LIBM 1
12705 _ACEOF
12706
12707 LIBS="-lm $LIBS"
12708
12709 fi
12710
12711
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12713 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12714 if ${ac_cv_lib_dl_dlopen+:} false; then :
12715 $as_echo_n "(cached) " >&6
12716 else
12717 ac_check_lib_save_LIBS=$LIBS
12718 LIBS="-ldl $LIBS"
12719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12720 /* end confdefs.h. */
12721
12722 /* Override any GCC internal prototype to avoid an error.
12723 Use char because int might match the return type of a GCC
12724 builtin and then its argument prototype would still apply. */
12725 #ifdef __cplusplus
12726 extern "C"
12727 #endif
12728 char dlopen ();
12729 int
12730 main ()
12731 {
12732 return dlopen ();
12733 ;
12734 return 0;
12735 }
12736 _ACEOF
12737 if ac_fn_c_try_link "$LINENO"; then :
12738 ac_cv_lib_dl_dlopen=yes
12739 else
12740 ac_cv_lib_dl_dlopen=no
12741 fi
12742 rm -f core conftest.err conftest.$ac_objext \
12743 conftest$ac_exeext conftest.$ac_ext
12744 LIBS=$ac_check_lib_save_LIBS
12745 fi
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12747 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12748 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12749 cat >>confdefs.h <<_ACEOF
12750 #define HAVE_LIBDL 1
12751 _ACEOF
12752
12753 LIBS="-ldl $LIBS"
12754
12755 fi
12756
12757 if test "${ac_cv_lib_dl_dlopen}" = "yes"; then
12758
12759 pkg_failed=no
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl2" >&5
12761 $as_echo_n "checking for sdl2... " >&6; }
12762
12763 if test -n "$SDL_CFLAGS"; then
12764 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
12765 elif test -n "$PKG_CONFIG"; then
12766 if test -n "$PKG_CONFIG" && \
12767 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2\""; } >&5
12768 ($PKG_CONFIG --exists --print-errors "sdl2") 2>&5
12769 ac_status=$?
12770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12771 test $ac_status = 0; }; then
12772 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl2" 2>/dev/null`
12773 test "x$?" != "x0" && pkg_failed=yes
12774 else
12775 pkg_failed=yes
12776 fi
12777 else
12778 pkg_failed=untried
12779 fi
12780 if test -n "$SDL_LIBS"; then
12781 pkg_cv_SDL_LIBS="$SDL_LIBS"
12782 elif test -n "$PKG_CONFIG"; then
12783 if test -n "$PKG_CONFIG" && \
12784 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2\""; } >&5
12785 ($PKG_CONFIG --exists --print-errors "sdl2") 2>&5
12786 ac_status=$?
12787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12788 test $ac_status = 0; }; then
12789 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl2" 2>/dev/null`
12790 test "x$?" != "x0" && pkg_failed=yes
12791 else
12792 pkg_failed=yes
12793 fi
12794 else
12795 pkg_failed=untried
12796 fi
12797
12798 if test $pkg_failed = no; then
12799 pkg_save_LDFLAGS="$LDFLAGS"
12800 LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS"
12801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12802 /* end confdefs.h. */
12803
12804 int
12805 main ()
12806 {
12807
12808 ;
12809 return 0;
12810 }
12811 _ACEOF
12812 if ac_fn_c_try_link "$LINENO"; then :
12813
12814 else
12815 pkg_failed=yes
12816 fi
12817 rm -f core conftest.err conftest.$ac_objext \
12818 conftest$ac_exeext conftest.$ac_ext
12819 LDFLAGS=$pkg_save_LDFLAGS
12820 fi
12821
12822
12823
12824 if test $pkg_failed = yes; then
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12826 $as_echo "no" >&6; }
12827
12828 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12829 _pkg_short_errors_supported=yes
12830 else
12831 _pkg_short_errors_supported=no
12832 fi
12833 if test $_pkg_short_errors_supported = yes; then
12834 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl2" 2>&1`
12835 else
12836 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl2" 2>&1`
12837 fi
12838 # Put the nasty error message in config.log where it belongs
12839 echo "$SDL_PKG_ERRORS" >&5
12840
12841
12842
12843 pkg_failed=no
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5
12845 $as_echo_n "checking for sdl... " >&6; }
12846
12847 if test -n "$SDL_CFLAGS"; then
12848 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
12849 elif test -n "$PKG_CONFIG"; then
12850 if test -n "$PKG_CONFIG" && \
12851 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
12852 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
12853 ac_status=$?
12854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12855 test $ac_status = 0; }; then
12856 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
12857 test "x$?" != "x0" && pkg_failed=yes
12858 else
12859 pkg_failed=yes
12860 fi
12861 else
12862 pkg_failed=untried
12863 fi
12864 if test -n "$SDL_LIBS"; then
12865 pkg_cv_SDL_LIBS="$SDL_LIBS"
12866 elif test -n "$PKG_CONFIG"; then
12867 if test -n "$PKG_CONFIG" && \
12868 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
12869 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
12870 ac_status=$?
12871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12872 test $ac_status = 0; }; then
12873 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
12874 test "x$?" != "x0" && pkg_failed=yes
12875 else
12876 pkg_failed=yes
12877 fi
12878 else
12879 pkg_failed=untried
12880 fi
12881
12882 if test $pkg_failed = no; then
12883 pkg_save_LDFLAGS="$LDFLAGS"
12884 LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS"
12885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12886 /* end confdefs.h. */
12887
12888 int
12889 main ()
12890 {
12891
12892 ;
12893 return 0;
12894 }
12895 _ACEOF
12896 if ac_fn_c_try_link "$LINENO"; then :
12897
12898 else
12899 pkg_failed=yes
12900 fi
12901 rm -f core conftest.err conftest.$ac_objext \
12902 conftest$ac_exeext conftest.$ac_ext
12903 LDFLAGS=$pkg_save_LDFLAGS
12904 fi
12905
12906
12907
12908 if test $pkg_failed = yes; then
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12910 $as_echo "no" >&6; }
12911
12912 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12913 _pkg_short_errors_supported=yes
12914 else
12915 _pkg_short_errors_supported=no
12916 fi
12917 if test $_pkg_short_errors_supported = yes; then
12918 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1`
12919 else
12920 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1`
12921 fi
12922 # Put the nasty error message in config.log where it belongs
12923 echo "$SDL_PKG_ERRORS" >&5
12924
12925 :
12926 elif test $pkg_failed = untried; then
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12928 $as_echo "no" >&6; }
12929 :
12930 else
12931 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
12932 SDL_LIBS=$pkg_cv_SDL_LIBS
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12934 $as_echo "yes" >&6; }
12935 SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=1"
12936 SDL_LIBS="-ldl"
12937
12938 fi
12939
12940 elif test $pkg_failed = untried; then
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12942 $as_echo "no" >&6; }
12943
12944
12945 pkg_failed=no
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5
12947 $as_echo_n "checking for sdl... " >&6; }
12948
12949 if test -n "$SDL_CFLAGS"; then
12950 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
12951 elif test -n "$PKG_CONFIG"; then
12952 if test -n "$PKG_CONFIG" && \
12953 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
12954 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
12955 ac_status=$?
12956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12957 test $ac_status = 0; }; then
12958 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
12959 test "x$?" != "x0" && pkg_failed=yes
12960 else
12961 pkg_failed=yes
12962 fi
12963 else
12964 pkg_failed=untried
12965 fi
12966 if test -n "$SDL_LIBS"; then
12967 pkg_cv_SDL_LIBS="$SDL_LIBS"
12968 elif test -n "$PKG_CONFIG"; then
12969 if test -n "$PKG_CONFIG" && \
12970 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
12971 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
12972 ac_status=$?
12973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12974 test $ac_status = 0; }; then
12975 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
12976 test "x$?" != "x0" && pkg_failed=yes
12977 else
12978 pkg_failed=yes
12979 fi
12980 else
12981 pkg_failed=untried
12982 fi
12983
12984 if test $pkg_failed = no; then
12985 pkg_save_LDFLAGS="$LDFLAGS"
12986 LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS"
12987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12988 /* end confdefs.h. */
12989
12990 int
12991 main ()
12992 {
12993
12994 ;
12995 return 0;
12996 }
12997 _ACEOF
12998 if ac_fn_c_try_link "$LINENO"; then :
12999
13000 else
13001 pkg_failed=yes
13002 fi
13003 rm -f core conftest.err conftest.$ac_objext \
13004 conftest$ac_exeext conftest.$ac_ext
13005 LDFLAGS=$pkg_save_LDFLAGS
13006 fi
13007
13008
13009
13010 if test $pkg_failed = yes; then
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13012 $as_echo "no" >&6; }
13013
13014 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13015 _pkg_short_errors_supported=yes
13016 else
13017 _pkg_short_errors_supported=no
13018 fi
13019 if test $_pkg_short_errors_supported = yes; then
13020 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1`
13021 else
13022 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1`
13023 fi
13024 # Put the nasty error message in config.log where it belongs
13025 echo "$SDL_PKG_ERRORS" >&5
13026
13027 :
13028 elif test $pkg_failed = untried; then
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13030 $as_echo "no" >&6; }
13031 :
13032 else
13033 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
13034 SDL_LIBS=$pkg_cv_SDL_LIBS
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13036 $as_echo "yes" >&6; }
13037 SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=1"
13038 SDL_LIBS="-ldl"
13039
13040 fi
13041
13042 else
13043 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
13044 SDL_LIBS=$pkg_cv_SDL_LIBS
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13046 $as_echo "yes" >&6; }
13047 SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=2"
13048 SDL_LIBS="-ldl"
13049
13050 fi
13051 else
13052 SDL_CFLAGS=
13053 SDL_LIBS=
13054 fi
13055
13056
13057
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
13059 $as_echo_n "checking for cygwin... " >&6; }
13060 if ${sim_cv_os_cygwin+:} false; then :
13061 $as_echo_n "(cached) " >&6
13062 else
13063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13064 /* end confdefs.h. */
13065
13066 #ifdef __CYGWIN__
13067 lose
13068 #endif
13069 _ACEOF
13070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13071 $EGREP "lose" >/dev/null 2>&1; then :
13072 sim_cv_os_cygwin=yes
13073 else
13074 sim_cv_os_cygwin=no
13075 fi
13076 rm -f conftest*
13077
13078 fi
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_os_cygwin" >&5
13080 $as_echo "$sim_cv_os_cygwin" >&6; }
13081
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
13083 $as_echo_n "checking for library containing tgetent... " >&6; }
13084 if ${ac_cv_search_tgetent+:} false; then :
13085 $as_echo_n "(cached) " >&6
13086 else
13087 ac_func_search_save_LIBS=$LIBS
13088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13089 /* end confdefs.h. */
13090
13091 /* Override any GCC internal prototype to avoid an error.
13092 Use char because int might match the return type of a GCC
13093 builtin and then its argument prototype would still apply. */
13094 #ifdef __cplusplus
13095 extern "C"
13096 #endif
13097 char tgetent ();
13098 int
13099 main ()
13100 {
13101 return tgetent ();
13102 ;
13103 return 0;
13104 }
13105 _ACEOF
13106 for ac_lib in '' termcap tinfo curses ncurses; do
13107 if test -z "$ac_lib"; then
13108 ac_res="none required"
13109 else
13110 ac_res=-l$ac_lib
13111 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13112 fi
13113 if ac_fn_c_try_link "$LINENO"; then :
13114 ac_cv_search_tgetent=$ac_res
13115 fi
13116 rm -f core conftest.err conftest.$ac_objext \
13117 conftest$ac_exeext
13118 if ${ac_cv_search_tgetent+:} false; then :
13119 break
13120 fi
13121 done
13122 if ${ac_cv_search_tgetent+:} false; then :
13123
13124 else
13125 ac_cv_search_tgetent=no
13126 fi
13127 rm conftest.$ac_ext
13128 LIBS=$ac_func_search_save_LIBS
13129 fi
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
13131 $as_echo "$ac_cv_search_tgetent" >&6; }
13132 ac_res=$ac_cv_search_tgetent
13133 if test "$ac_res" != no; then :
13134 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13135 TERMCAP_LIB=$ac_cv_search_tgetent
13136 else
13137 TERMCAP_LIB=""
13138 fi
13139
13140 if test x$sim_cv_os_cygwin = xyes; then
13141 TERMCAP_LIB="${TERMCAP_LIB} -luser32"
13142 fi
13143
13144
13145 if test -r ../readline/Makefile; then
13146 READLINE_LIB=../../readline/readline/libreadline.a
13147 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
13148 else
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
13150 $as_echo_n "checking for readline in -lreadline... " >&6; }
13151 if ${ac_cv_lib_readline_readline+:} false; then :
13152 $as_echo_n "(cached) " >&6
13153 else
13154 ac_check_lib_save_LIBS=$LIBS
13155 LIBS="-lreadline $TERMCAP_LIB $LIBS"
13156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13157 /* end confdefs.h. */
13158
13159 /* Override any GCC internal prototype to avoid an error.
13160 Use char because int might match the return type of a GCC
13161 builtin and then its argument prototype would still apply. */
13162 #ifdef __cplusplus
13163 extern "C"
13164 #endif
13165 char readline ();
13166 int
13167 main ()
13168 {
13169 return readline ();
13170 ;
13171 return 0;
13172 }
13173 _ACEOF
13174 if ac_fn_c_try_link "$LINENO"; then :
13175 ac_cv_lib_readline_readline=yes
13176 else
13177 ac_cv_lib_readline_readline=no
13178 fi
13179 rm -f core conftest.err conftest.$ac_objext \
13180 conftest$ac_exeext conftest.$ac_ext
13181 LIBS=$ac_check_lib_save_LIBS
13182 fi
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
13184 $as_echo "$ac_cv_lib_readline_readline" >&6; }
13185 if test "x$ac_cv_lib_readline_readline" = xyes; then :
13186 READLINE_LIB=-lreadline
13187 else
13188 as_fn_error $? "the required \"readline\" library is missing" "$LINENO" 5
13189 fi
13190
13191 READLINE_CFLAGS=
13192 fi
13193
13194
13195
13196
13197
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13199 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13200 # Check whether --enable-maintainer-mode was given.
13201 if test "${enable_maintainer_mode+set}" = set; then :
13202 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13203 else
13204 USE_MAINTAINER_MODE=no
13205 fi
13206
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13208 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13209 if test $USE_MAINTAINER_MODE = yes; then
13210 MAINTAINER_MODE_TRUE=
13211 MAINTAINER_MODE_FALSE='#'
13212 else
13213 MAINTAINER_MODE_TRUE='#'
13214 MAINTAINER_MODE_FALSE=
13215 fi
13216
13217 MAINT=$MAINTAINER_MODE_TRUE
13218
13219
13220 am__api_version='1.15'
13221
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
13223 $as_echo_n "checking whether build environment is sane... " >&6; }
13224 # Reject unsafe characters in $srcdir or the absolute working directory
13225 # name. Accept space and tab only in the latter.
13226 am_lf='
13227 '
13228 case `pwd` in
13229 *[\\\"\#\$\&\'\`$am_lf]*)
13230 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
13231 esac
13232 case $srcdir in
13233 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
13234 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
13235 esac
13236
13237 # Do 'set' in a subshell so we don't clobber the current shell's
13238 # arguments. Must try -L first in case configure is actually a
13239 # symlink; some systems play weird games with the mod time of symlinks
13240 # (eg FreeBSD returns the mod time of the symlink's containing
13241 # directory).
13242 if (
13243 am_has_slept=no
13244 for am_try in 1 2; do
13245 echo "timestamp, slept: $am_has_slept" > conftest.file
13246 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
13247 if test "$*" = "X"; then
13248 # -L didn't work.
13249 set X `ls -t "$srcdir/configure" conftest.file`
13250 fi
13251 if test "$*" != "X $srcdir/configure conftest.file" \
13252 && test "$*" != "X conftest.file $srcdir/configure"; then
13253
13254 # If neither matched, then we have a broken ls. This can happen
13255 # if, for instance, CONFIG_SHELL is bash and it inherits a
13256 # broken ls alias from the environment. This has actually
13257 # happened. Such a system could not be considered "sane".
13258 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
13259 alias in your environment" "$LINENO" 5
13260 fi
13261 if test "$2" = conftest.file || test $am_try -eq 2; then
13262 break
13263 fi
13264 # Just in case.
13265 sleep 1
13266 am_has_slept=yes
13267 done
13268 test "$2" = conftest.file
13269 )
13270 then
13271 # Ok.
13272 :
13273 else
13274 as_fn_error $? "newly created file is older than distributed files!
13275 Check your system clock" "$LINENO" 5
13276 fi
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13278 $as_echo "yes" >&6; }
13279 # If we didn't sleep, we still need to ensure time stamps of config.status and
13280 # generated files are strictly newer.
13281 am_sleep_pid=
13282 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
13283 ( sleep 1 ) &
13284 am_sleep_pid=$!
13285 fi
13286
13287 rm -f conftest.file
13288
13289 if test x"${MISSING+set}" != xset; then
13290 case $am_aux_dir in
13291 *\ * | *\ *)
13292 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
13293 *)
13294 MISSING="\${SHELL} $am_aux_dir/missing" ;;
13295 esac
13296 fi
13297 # Use eval to expand $SHELL
13298 if eval "$MISSING --is-lightweight"; then
13299 am_missing_run="$MISSING "
13300 else
13301 am_missing_run=
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
13303 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
13304 fi
13305
13306 if test x"${install_sh+set}" != xset; then
13307 case $am_aux_dir in
13308 *\ * | *\ *)
13309 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
13310 *)
13311 install_sh="\${SHELL} $am_aux_dir/install-sh"
13312 esac
13313 fi
13314
13315 # Installed binaries are usually stripped using 'strip' when the user
13316 # run "make install-strip". However 'strip' might not be the right
13317 # tool to use in cross-compilation environments, therefore Automake
13318 # will honor the 'STRIP' environment variable to overrule this program.
13319 if test "$cross_compiling" != no; then
13320 if test -n "$ac_tool_prefix"; then
13321 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13322 set dummy ${ac_tool_prefix}strip; ac_word=$2
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13324 $as_echo_n "checking for $ac_word... " >&6; }
13325 if ${ac_cv_prog_STRIP+:} false; then :
13326 $as_echo_n "(cached) " >&6
13327 else
13328 if test -n "$STRIP"; then
13329 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13330 else
13331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13332 for as_dir in $PATH
13333 do
13334 IFS=$as_save_IFS
13335 test -z "$as_dir" && as_dir=.
13336 for ac_exec_ext in '' $ac_executable_extensions; do
13337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13338 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13340 break 2
13341 fi
13342 done
13343 done
13344 IFS=$as_save_IFS
13345
13346 fi
13347 fi
13348 STRIP=$ac_cv_prog_STRIP
13349 if test -n "$STRIP"; then
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13351 $as_echo "$STRIP" >&6; }
13352 else
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13354 $as_echo "no" >&6; }
13355 fi
13356
13357
13358 fi
13359 if test -z "$ac_cv_prog_STRIP"; then
13360 ac_ct_STRIP=$STRIP
13361 # Extract the first word of "strip", so it can be a program name with args.
13362 set dummy strip; ac_word=$2
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13364 $as_echo_n "checking for $ac_word... " >&6; }
13365 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
13366 $as_echo_n "(cached) " >&6
13367 else
13368 if test -n "$ac_ct_STRIP"; then
13369 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13370 else
13371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13372 for as_dir in $PATH
13373 do
13374 IFS=$as_save_IFS
13375 test -z "$as_dir" && as_dir=.
13376 for ac_exec_ext in '' $ac_executable_extensions; do
13377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13378 ac_cv_prog_ac_ct_STRIP="strip"
13379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13380 break 2
13381 fi
13382 done
13383 done
13384 IFS=$as_save_IFS
13385
13386 fi
13387 fi
13388 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13389 if test -n "$ac_ct_STRIP"; then
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13391 $as_echo "$ac_ct_STRIP" >&6; }
13392 else
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13394 $as_echo "no" >&6; }
13395 fi
13396
13397 if test "x$ac_ct_STRIP" = x; then
13398 STRIP=":"
13399 else
13400 case $cross_compiling:$ac_tool_warned in
13401 yes:)
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13403 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13404 ac_tool_warned=yes ;;
13405 esac
13406 STRIP=$ac_ct_STRIP
13407 fi
13408 else
13409 STRIP="$ac_cv_prog_STRIP"
13410 fi
13411
13412 fi
13413 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
13414
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
13416 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
13417 if test -z "$MKDIR_P"; then
13418 if ${ac_cv_path_mkdir+:} false; then :
13419 $as_echo_n "(cached) " >&6
13420 else
13421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13422 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
13423 do
13424 IFS=$as_save_IFS
13425 test -z "$as_dir" && as_dir=.
13426 for ac_prog in mkdir gmkdir; do
13427 for ac_exec_ext in '' $ac_executable_extensions; do
13428 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
13429 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
13430 'mkdir (GNU coreutils) '* | \
13431 'mkdir (coreutils) '* | \
13432 'mkdir (fileutils) '4.1*)
13433 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
13434 break 3;;
13435 esac
13436 done
13437 done
13438 done
13439 IFS=$as_save_IFS
13440
13441 fi
13442
13443 test -d ./--version && rmdir ./--version
13444 if test "${ac_cv_path_mkdir+set}" = set; then
13445 MKDIR_P="$ac_cv_path_mkdir -p"
13446 else
13447 # As a last resort, use the slow shell script. Don't cache a
13448 # value for MKDIR_P within a source directory, because that will
13449 # break other packages using the cache if that directory is
13450 # removed, or if the value is a relative name.
13451 MKDIR_P="$ac_install_sh -d"
13452 fi
13453 fi
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
13455 $as_echo "$MKDIR_P" >&6; }
13456
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
13458 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
13459 set x ${MAKE-make}
13460 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
13461 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
13462 $as_echo_n "(cached) " >&6
13463 else
13464 cat >conftest.make <<\_ACEOF
13465 SHELL = /bin/sh
13466 all:
13467 @echo '@@@%%%=$(MAKE)=@@@%%%'
13468 _ACEOF
13469 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13470 case `${MAKE-make} -f conftest.make 2>/dev/null` in
13471 *@@@%%%=?*=@@@%%%*)
13472 eval ac_cv_prog_make_${ac_make}_set=yes;;
13473 *)
13474 eval ac_cv_prog_make_${ac_make}_set=no;;
13475 esac
13476 rm -f conftest.make
13477 fi
13478 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13480 $as_echo "yes" >&6; }
13481 SET_MAKE=
13482 else
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13484 $as_echo "no" >&6; }
13485 SET_MAKE="MAKE=${MAKE-make}"
13486 fi
13487
13488 rm -rf .tst 2>/dev/null
13489 mkdir .tst 2>/dev/null
13490 if test -d .tst; then
13491 am__leading_dot=.
13492 else
13493 am__leading_dot=_
13494 fi
13495 rmdir .tst 2>/dev/null
13496
13497 DEPDIR="${am__leading_dot}deps"
13498
13499 ac_config_commands="$ac_config_commands depfiles"
13500
13501
13502 am_make=${MAKE-make}
13503 cat > confinc << 'END'
13504 am__doit:
13505 @echo this is the am__doit target
13506 .PHONY: am__doit
13507 END
13508 # If we don't find an include directive, just comment out the code.
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
13510 $as_echo_n "checking for style of include used by $am_make... " >&6; }
13511 am__include="#"
13512 am__quote=
13513 _am_result=none
13514 # First try GNU make style include.
13515 echo "include confinc" > confmf
13516 # Ignore all kinds of additional output from 'make'.
13517 case `$am_make -s -f confmf 2> /dev/null` in #(
13518 *the\ am__doit\ target*)
13519 am__include=include
13520 am__quote=
13521 _am_result=GNU
13522 ;;
13523 esac
13524 # Now try BSD make style include.
13525 if test "$am__include" = "#"; then
13526 echo '.include "confinc"' > confmf
13527 case `$am_make -s -f confmf 2> /dev/null` in #(
13528 *the\ am__doit\ target*)
13529 am__include=.include
13530 am__quote="\""
13531 _am_result=BSD
13532 ;;
13533 esac
13534 fi
13535
13536
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
13538 $as_echo "$_am_result" >&6; }
13539 rm -f confinc confmf
13540
13541 # Check whether --enable-dependency-tracking was given.
13542 if test "${enable_dependency_tracking+set}" = set; then :
13543 enableval=$enable_dependency_tracking;
13544 fi
13545
13546 if test "x$enable_dependency_tracking" != xno; then
13547 am_depcomp="$ac_aux_dir/depcomp"
13548 AMDEPBACKSLASH='\'
13549 am__nodep='_no'
13550 fi
13551 if test "x$enable_dependency_tracking" != xno; then
13552 AMDEP_TRUE=
13553 AMDEP_FALSE='#'
13554 else
13555 AMDEP_TRUE='#'
13556 AMDEP_FALSE=
13557 fi
13558
13559
13560 # Check whether --enable-silent-rules was given.
13561 if test "${enable_silent_rules+set}" = set; then :
13562 enableval=$enable_silent_rules;
13563 fi
13564
13565 case $enable_silent_rules in # (((
13566 yes) AM_DEFAULT_VERBOSITY=0;;
13567 no) AM_DEFAULT_VERBOSITY=1;;
13568 *) AM_DEFAULT_VERBOSITY=1;;
13569 esac
13570 am_make=${MAKE-make}
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
13572 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
13573 if ${am_cv_make_support_nested_variables+:} false; then :
13574 $as_echo_n "(cached) " >&6
13575 else
13576 if $as_echo 'TRUE=$(BAR$(V))
13577 BAR0=false
13578 BAR1=true
13579 V=1
13580 am__doit:
13581 @$(TRUE)
13582 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
13583 am_cv_make_support_nested_variables=yes
13584 else
13585 am_cv_make_support_nested_variables=no
13586 fi
13587 fi
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
13589 $as_echo "$am_cv_make_support_nested_variables" >&6; }
13590 if test $am_cv_make_support_nested_variables = yes; then
13591 AM_V='$(V)'
13592 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
13593 else
13594 AM_V=$AM_DEFAULT_VERBOSITY
13595 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
13596 fi
13597 AM_BACKSLASH='\'
13598
13599 if test "`cd $srcdir && pwd`" != "`pwd`"; then
13600 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
13601 # is not polluted with repeated "-I."
13602 am__isrc=' -I$(srcdir)'
13603 # test to see if srcdir already configured
13604 if test -f $srcdir/config.status; then
13605 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
13606 fi
13607 fi
13608
13609 # test whether we have cygpath
13610 if test -z "$CYGPATH_W"; then
13611 if (cygpath --version) >/dev/null 2>/dev/null; then
13612 CYGPATH_W='cygpath -w'
13613 else
13614 CYGPATH_W=echo
13615 fi
13616 fi
13617
13618
13619 # Define the identity of the package.
13620 PACKAGE='sim'
13621 VERSION='0'
13622
13623
13624 cat >>confdefs.h <<_ACEOF
13625 #define PACKAGE "$PACKAGE"
13626 _ACEOF
13627
13628
13629 cat >>confdefs.h <<_ACEOF
13630 #define VERSION "$VERSION"
13631 _ACEOF
13632
13633 # Some tools Automake needs.
13634
13635 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
13636
13637
13638 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
13639
13640
13641 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
13642
13643
13644 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
13645
13646
13647 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
13648
13649 # For better backward compatibility. To be removed once Automake 1.9.x
13650 # dies out for good. For more background, see:
13651 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
13652 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
13653 mkdir_p='$(MKDIR_P)'
13654
13655 # We need awk for the "check" target (and possibly the TAP driver). The
13656 # system "awk" is bad on some platforms.
13657 # Always define AMTAR for backward compatibility. Yes, it's still used
13658 # in the wild :-( We should find a proper way to deprecate it ...
13659 AMTAR='$${TAR-tar}'
13660
13661
13662 # We'll loop over all known methods to create a tar archive until one works.
13663 _am_tools='gnutar pax cpio none'
13664
13665 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
13666
13667
13668
13669
13670
13671 depcc="$CC" am_compiler_list=
13672
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13674 $as_echo_n "checking dependency style of $depcc... " >&6; }
13675 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13676 $as_echo_n "(cached) " >&6
13677 else
13678 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13679 # We make a subdir and do the tests there. Otherwise we can end up
13680 # making bogus files that we don't know about and never remove. For
13681 # instance it was reported that on HP-UX the gcc test will end up
13682 # making a dummy file named 'D' -- because '-MD' means "put the output
13683 # in D".
13684 rm -rf conftest.dir
13685 mkdir conftest.dir
13686 # Copy depcomp to subdir because otherwise we won't find it if we're
13687 # using a relative directory.
13688 cp "$am_depcomp" conftest.dir
13689 cd conftest.dir
13690 # We will build objects and dependencies in a subdirectory because
13691 # it helps to detect inapplicable dependency modes. For instance
13692 # both Tru64's cc and ICC support -MD to output dependencies as a
13693 # side effect of compilation, but ICC will put the dependencies in
13694 # the current directory while Tru64 will put them in the object
13695 # directory.
13696 mkdir sub
13697
13698 am_cv_CC_dependencies_compiler_type=none
13699 if test "$am_compiler_list" = ""; then
13700 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13701 fi
13702 am__universal=false
13703 case " $depcc " in #(
13704 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13705 esac
13706
13707 for depmode in $am_compiler_list; do
13708 # Setup a source with many dependencies, because some compilers
13709 # like to wrap large dependency lists on column 80 (with \), and
13710 # we should not choose a depcomp mode which is confused by this.
13711 #
13712 # We need to recreate these files for each test, as the compiler may
13713 # overwrite some of them when testing with obscure command lines.
13714 # This happens at least with the AIX C compiler.
13715 : > sub/conftest.c
13716 for i in 1 2 3 4 5 6; do
13717 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13718 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13719 # Solaris 10 /bin/sh.
13720 echo '/* dummy */' > sub/conftst$i.h
13721 done
13722 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13723
13724 # We check with '-c' and '-o' for the sake of the "dashmstdout"
13725 # mode. It turns out that the SunPro C++ compiler does not properly
13726 # handle '-M -o', and we need to detect this. Also, some Intel
13727 # versions had trouble with output in subdirs.
13728 am__obj=sub/conftest.${OBJEXT-o}
13729 am__minus_obj="-o $am__obj"
13730 case $depmode in
13731 gcc)
13732 # This depmode causes a compiler race in universal mode.
13733 test "$am__universal" = false || continue
13734 ;;
13735 nosideeffect)
13736 # After this tag, mechanisms are not by side-effect, so they'll
13737 # only be used when explicitly requested.
13738 if test "x$enable_dependency_tracking" = xyes; then
13739 continue
13740 else
13741 break
13742 fi
13743 ;;
13744 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13745 # This compiler won't grok '-c -o', but also, the minuso test has
13746 # not run yet. These depmodes are late enough in the game, and
13747 # so weak that their functioning should not be impacted.
13748 am__obj=conftest.${OBJEXT-o}
13749 am__minus_obj=
13750 ;;
13751 none) break ;;
13752 esac
13753 if depmode=$depmode \
13754 source=sub/conftest.c object=$am__obj \
13755 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13756 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13757 >/dev/null 2>conftest.err &&
13758 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13759 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13760 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13761 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13762 # icc doesn't choke on unknown options, it will just issue warnings
13763 # or remarks (even with -Werror). So we grep stderr for any message
13764 # that says an option was ignored or not supported.
13765 # When given -MP, icc 7.0 and 7.1 complain thusly:
13766 # icc: Command line warning: ignoring option '-M'; no argument required
13767 # The diagnosis changed in icc 8.0:
13768 # icc: Command line remark: option '-MP' not supported
13769 if (grep 'ignoring option' conftest.err ||
13770 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13771 am_cv_CC_dependencies_compiler_type=$depmode
13772 break
13773 fi
13774 fi
13775 done
13776
13777 cd ..
13778 rm -rf conftest.dir
13779 else
13780 am_cv_CC_dependencies_compiler_type=none
13781 fi
13782
13783 fi
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13785 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13786 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13787
13788 if
13789 test "x$enable_dependency_tracking" != xno \
13790 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13791 am__fastdepCC_TRUE=
13792 am__fastdepCC_FALSE='#'
13793 else
13794 am__fastdepCC_TRUE='#'
13795 am__fastdepCC_FALSE=
13796 fi
13797
13798
13799
13800 # POSIX will say in a future version that running "rm -f" with no argument
13801 # is OK; and we want to be able to make that assumption in our Makefile
13802 # recipes. So use an aggressive probe to check that the usage we want is
13803 # actually supported "in the wild" to an acceptable degree.
13804 # See automake bug#10828.
13805 # To make any issue more visible, cause the running configure to be aborted
13806 # by default if the 'rm' program in use doesn't match our expectations; the
13807 # user can still override this though.
13808 if rm -f && rm -fr && rm -rf; then : OK; else
13809 cat >&2 <<'END'
13810 Oops!
13811
13812 Your 'rm' program seems unable to run without file operands specified
13813 on the command line, even when the '-f' option is present. This is contrary
13814 to the behaviour of most rm programs out there, and not conforming with
13815 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
13816
13817 Please tell bug-automake@gnu.org about your system, including the value
13818 of your $PATH and any error possibly output before this message. This
13819 can help us improve future automake versions.
13820
13821 END
13822 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
13823 echo 'Configuration will proceed anyway, since you have set the' >&2
13824 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
13825 echo >&2
13826 else
13827 cat >&2 <<'END'
13828 Aborting the configuration process, to ensure you take notice of the issue.
13829
13830 You can download and install GNU coreutils to get an 'rm' implementation
13831 that behaves properly: <http://www.gnu.org/software/coreutils/>.
13832
13833 If you want to complete the configuration process using your problematic
13834 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
13835 to "yes", and re-run configure.
13836
13837 END
13838 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
13839 fi
13840 fi
13841
13842 # Check whether --enable-silent-rules was given.
13843 if test "${enable_silent_rules+set}" = set; then :
13844 enableval=$enable_silent_rules;
13845 fi
13846
13847 case $enable_silent_rules in # (((
13848 yes) AM_DEFAULT_VERBOSITY=0;;
13849 no) AM_DEFAULT_VERBOSITY=1;;
13850 *) AM_DEFAULT_VERBOSITY=0;;
13851 esac
13852 am_make=${MAKE-make}
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
13854 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
13855 if ${am_cv_make_support_nested_variables+:} false; then :
13856 $as_echo_n "(cached) " >&6
13857 else
13858 if $as_echo 'TRUE=$(BAR$(V))
13859 BAR0=false
13860 BAR1=true
13861 V=1
13862 am__doit:
13863 @$(TRUE)
13864 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
13865 am_cv_make_support_nested_variables=yes
13866 else
13867 am_cv_make_support_nested_variables=no
13868 fi
13869 fi
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
13871 $as_echo "$am_cv_make_support_nested_variables" >&6; }
13872 if test $am_cv_make_support_nested_variables = yes; then
13873 AM_V='$(V)'
13874 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
13875 else
13876 AM_V=$AM_DEFAULT_VERBOSITY
13877 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
13878 fi
13879 AM_BACKSLASH='\'
13880
13881
13882 # If a cpu ever has more than one simulator to choose from, use
13883 # --enable-sim=... to choose.
13884 # Check whether --enable-sim was given.
13885 if test "${enable_sim+set}" = set; then :
13886 enableval=$enable_sim; case "${enableval}" in
13887 yes | no) ;;
13888 *) as_fn_error $? "bad value ${enableval} given for --enable-sim option" "$LINENO" 5 ;;
13889 esac
13890 fi
13891
13892
13893 # Check whether --enable-example-sims was given.
13894 if test "${enable_example_sims+set}" = set; then :
13895 enableval=$enable_example_sims;
13896 fi
13897
13898
13899 # Check whether --enable-targets was given.
13900 if test "${enable_targets+set}" = set; then :
13901 enableval=$enable_targets; case "${enableval}" in
13902 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
13903 ;;
13904 no) enable_targets= ;;
13905 *) enable_targets=$enableval ;;
13906 esac
13907 fi
13908
13909
13910 SIM_PRIMARY_TARGET=
13911
13912
13913 SIM_SUBDIRS=
13914
13915
13916 SIM_COMMON_BUILD_TRUE=
13917 SIM_COMMON_BUILD_FALSE='#'
13918
13919
13920
13921 ac_config_files="$ac_config_files Make-common.sim:common/Make-common.in"
13922
13923
13924
13925
13926 if test "${enable_sim}" != no; then
13927 sim_igen=no
13928 for targ in `echo $target $enable_targets | sed 's/,/ /g'`
13929 do
13930 case "${targ}" in
13931 all|aarch64*-*-*)
13932 if test "${targ}" = "${target}"; then
13933 SIM_PRIMARY_TARGET=aarch64
13934 fi
13935 ac_config_files="$ac_config_files aarch64/Makefile.sim:aarch64/Makefile.in"
13936
13937 ac_config_commands="$ac_config_commands aarch64/Makefile"
13938
13939 as_fn_append SIM_SUBDIRS " aarch64"
13940
13941 ac_config_commands="$ac_config_commands depdir-aarch64"
13942
13943
13944
13945 ;;
13946 esac
13947
13948 case "${targ}" in
13949 all|arm*-*-*)
13950 if test "${targ}" = "${target}"; then
13951 SIM_PRIMARY_TARGET=arm
13952 fi
13953 ac_config_files="$ac_config_files arm/Makefile.sim:arm/Makefile.in"
13954
13955 ac_config_commands="$ac_config_commands arm/Makefile"
13956
13957 as_fn_append SIM_SUBDIRS " arm"
13958
13959 ac_config_commands="$ac_config_commands depdir-arm"
13960
13961
13962
13963 ;;
13964 esac
13965
13966 case "${targ}" in
13967 all|avr*-*-*)
13968 if test "${targ}" = "${target}"; then
13969 SIM_PRIMARY_TARGET=avr
13970 fi
13971 ac_config_files="$ac_config_files avr/Makefile.sim:avr/Makefile.in"
13972
13973 ac_config_commands="$ac_config_commands avr/Makefile"
13974
13975 as_fn_append SIM_SUBDIRS " avr"
13976
13977 ac_config_commands="$ac_config_commands depdir-avr"
13978
13979
13980
13981 ;;
13982 esac
13983
13984 case "${targ}" in
13985 all|bfin-*-*)
13986 if test "${targ}" = "${target}"; then
13987 SIM_PRIMARY_TARGET=bfin
13988 fi
13989 ac_config_files="$ac_config_files bfin/Makefile.sim:bfin/Makefile.in"
13990
13991 ac_config_commands="$ac_config_commands bfin/Makefile"
13992
13993 as_fn_append SIM_SUBDIRS " bfin"
13994
13995 ac_config_commands="$ac_config_commands depdir-bfin"
13996
13997
13998
13999 ;;
14000 esac
14001
14002 case "${targ}" in
14003 all|bpf-*-*)
14004 if test "${targ}" = "${target}"; then
14005 SIM_PRIMARY_TARGET=bpf
14006 fi
14007
14008
14009 subdirs="$subdirs bpf"
14010
14011
14012 ac_config_commands="$ac_config_commands depdir-bpf"
14013
14014
14015
14016 ;;
14017 esac
14018
14019 case "${targ}" in
14020 all|cr16*-*-*)
14021 if test "${targ}" = "${target}"; then
14022 SIM_PRIMARY_TARGET=cr16
14023 fi
14024 ac_config_files="$ac_config_files cr16/Makefile.sim:cr16/Makefile.in"
14025
14026 ac_config_commands="$ac_config_commands cr16/Makefile"
14027
14028 as_fn_append SIM_SUBDIRS " cr16"
14029
14030 ac_config_commands="$ac_config_commands depdir-cr16"
14031
14032
14033
14034 ;;
14035 esac
14036
14037 case "${targ}" in
14038 all|cris-*-* | crisv32-*-*)
14039 if test "${targ}" = "${target}"; then
14040 SIM_PRIMARY_TARGET=cris
14041 fi
14042 ac_config_files="$ac_config_files cris/Makefile.sim:cris/Makefile.in"
14043
14044 ac_config_commands="$ac_config_commands cris/Makefile"
14045
14046 as_fn_append SIM_SUBDIRS " cris"
14047
14048 ac_config_commands="$ac_config_commands depdir-cris"
14049
14050
14051
14052 ;;
14053 esac
14054
14055 case "${targ}" in
14056 all|d10v-*-*)
14057 if test "${targ}" = "${target}"; then
14058 SIM_PRIMARY_TARGET=d10v
14059 fi
14060 ac_config_files="$ac_config_files d10v/Makefile.sim:d10v/Makefile.in"
14061
14062 ac_config_commands="$ac_config_commands d10v/Makefile"
14063
14064 as_fn_append SIM_SUBDIRS " d10v"
14065
14066 ac_config_commands="$ac_config_commands depdir-d10v"
14067
14068
14069
14070 ;;
14071 esac
14072
14073 case "${targ}" in
14074 all|frv-*-*)
14075 if test "${targ}" = "${target}"; then
14076 SIM_PRIMARY_TARGET=frv
14077 fi
14078 ac_config_files="$ac_config_files frv/Makefile.sim:frv/Makefile.in"
14079
14080 ac_config_commands="$ac_config_commands frv/Makefile"
14081
14082 as_fn_append SIM_SUBDIRS " frv"
14083
14084 ac_config_commands="$ac_config_commands depdir-frv"
14085
14086
14087
14088 ;;
14089 esac
14090
14091 case "${targ}" in
14092 all|ft32-*-*)
14093 if test "${targ}" = "${target}"; then
14094 SIM_PRIMARY_TARGET=ft32
14095 fi
14096 ac_config_files="$ac_config_files ft32/Makefile.sim:ft32/Makefile.in"
14097
14098 ac_config_commands="$ac_config_commands ft32/Makefile"
14099
14100 as_fn_append SIM_SUBDIRS " ft32"
14101
14102 ac_config_commands="$ac_config_commands depdir-ft32"
14103
14104
14105
14106 ;;
14107 esac
14108
14109 case "${targ}" in
14110 all|h8300*-*-*)
14111 if test "${targ}" = "${target}"; then
14112 SIM_PRIMARY_TARGET=h8300
14113 fi
14114 ac_config_files="$ac_config_files h8300/Makefile.sim:h8300/Makefile.in"
14115
14116 ac_config_commands="$ac_config_commands h8300/Makefile"
14117
14118 as_fn_append SIM_SUBDIRS " h8300"
14119
14120 ac_config_commands="$ac_config_commands depdir-h8300"
14121
14122
14123
14124 ;;
14125 esac
14126
14127 case "${targ}" in
14128 all|iq2000-*-*)
14129 if test "${targ}" = "${target}"; then
14130 SIM_PRIMARY_TARGET=iq2000
14131 fi
14132 ac_config_files="$ac_config_files iq2000/Makefile.sim:iq2000/Makefile.in"
14133
14134 ac_config_commands="$ac_config_commands iq2000/Makefile"
14135
14136 as_fn_append SIM_SUBDIRS " iq2000"
14137
14138 ac_config_commands="$ac_config_commands depdir-iq2000"
14139
14140
14141
14142 ;;
14143 esac
14144
14145 case "${targ}" in
14146 all|lm32-*-*)
14147 if test "${targ}" = "${target}"; then
14148 SIM_PRIMARY_TARGET=lm32
14149 fi
14150 ac_config_files="$ac_config_files lm32/Makefile.sim:lm32/Makefile.in"
14151
14152 ac_config_commands="$ac_config_commands lm32/Makefile"
14153
14154 as_fn_append SIM_SUBDIRS " lm32"
14155
14156 ac_config_commands="$ac_config_commands depdir-lm32"
14157
14158
14159
14160 ;;
14161 esac
14162
14163 case "${targ}" in
14164 all|m32c-*-*)
14165 if test "${targ}" = "${target}"; then
14166 SIM_PRIMARY_TARGET=m32c
14167 fi
14168 ac_config_files="$ac_config_files m32c/Makefile.sim:m32c/Makefile.in"
14169
14170 ac_config_commands="$ac_config_commands m32c/Makefile"
14171
14172 as_fn_append SIM_SUBDIRS " m32c"
14173
14174 ac_config_commands="$ac_config_commands depdir-m32c"
14175
14176
14177
14178 ;;
14179 esac
14180
14181 case "${targ}" in
14182 all|m32r-*-*)
14183 if test "${targ}" = "${target}"; then
14184 SIM_PRIMARY_TARGET=m32r
14185 fi
14186 ac_config_files="$ac_config_files m32r/Makefile.sim:m32r/Makefile.in"
14187
14188 ac_config_commands="$ac_config_commands m32r/Makefile"
14189
14190 as_fn_append SIM_SUBDIRS " m32r"
14191
14192 ac_config_commands="$ac_config_commands depdir-m32r"
14193
14194
14195
14196 ;;
14197 esac
14198
14199 case "${targ}" in
14200 all|m68hc11-*-*|m6811-*-*)
14201 if test "${targ}" = "${target}"; then
14202 SIM_PRIMARY_TARGET=m68hc11
14203 fi
14204 ac_config_files="$ac_config_files m68hc11/Makefile.sim:m68hc11/Makefile.in"
14205
14206 ac_config_commands="$ac_config_commands m68hc11/Makefile"
14207
14208 as_fn_append SIM_SUBDIRS " m68hc11"
14209
14210 ac_config_commands="$ac_config_commands depdir-m68hc11"
14211
14212
14213
14214 ;;
14215 esac
14216
14217 case "${targ}" in
14218 all|mcore-*-*)
14219 if test "${targ}" = "${target}"; then
14220 SIM_PRIMARY_TARGET=mcore
14221 fi
14222 ac_config_files="$ac_config_files mcore/Makefile.sim:mcore/Makefile.in"
14223
14224 ac_config_commands="$ac_config_commands mcore/Makefile"
14225
14226 as_fn_append SIM_SUBDIRS " mcore"
14227
14228 ac_config_commands="$ac_config_commands depdir-mcore"
14229
14230
14231
14232 ;;
14233 esac
14234
14235 case "${targ}" in
14236 all|microblaze*-*-*)
14237 if test "${targ}" = "${target}"; then
14238 SIM_PRIMARY_TARGET=microblaze
14239 fi
14240 ac_config_files="$ac_config_files microblaze/Makefile.sim:microblaze/Makefile.in"
14241
14242 ac_config_commands="$ac_config_commands microblaze/Makefile"
14243
14244 as_fn_append SIM_SUBDIRS " microblaze"
14245
14246 ac_config_commands="$ac_config_commands depdir-microblaze"
14247
14248
14249
14250 ;;
14251 esac
14252
14253 case "${targ}" in
14254 all|mips*-*-*)
14255 if test "${targ}" = "${target}"; then
14256 SIM_PRIMARY_TARGET=mips
14257 fi
14258 subdirs="$subdirs mips"
14259
14260
14261 ac_config_commands="$ac_config_commands depdir-mips"
14262
14263
14264 sim_igen=yes
14265 ;;
14266 esac
14267
14268 case "${targ}" in
14269 all|mn10300*-*-*)
14270 if test "${targ}" = "${target}"; then
14271 SIM_PRIMARY_TARGET=mn10300
14272 fi
14273 subdirs="$subdirs mn10300"
14274
14275
14276 ac_config_commands="$ac_config_commands depdir-mn10300"
14277
14278
14279 sim_igen=yes
14280 ;;
14281 esac
14282
14283 case "${targ}" in
14284 all|moxie-*-*)
14285 if test "${targ}" = "${target}"; then
14286 SIM_PRIMARY_TARGET=moxie
14287 fi
14288 ac_config_files="$ac_config_files moxie/Makefile.sim:moxie/Makefile.in"
14289
14290 ac_config_commands="$ac_config_commands moxie/Makefile"
14291
14292 as_fn_append SIM_SUBDIRS " moxie"
14293
14294 ac_config_commands="$ac_config_commands depdir-moxie"
14295
14296
14297
14298 ;;
14299 esac
14300
14301 case "${targ}" in
14302 all|msp430*-*-*)
14303 if test "${targ}" = "${target}"; then
14304 SIM_PRIMARY_TARGET=msp430
14305 fi
14306 ac_config_files="$ac_config_files msp430/Makefile.sim:msp430/Makefile.in"
14307
14308 ac_config_commands="$ac_config_commands msp430/Makefile"
14309
14310 as_fn_append SIM_SUBDIRS " msp430"
14311
14312 ac_config_commands="$ac_config_commands depdir-msp430"
14313
14314
14315
14316 ;;
14317 esac
14318
14319 case "${targ}" in
14320 all|or1k*-*-*)
14321 if test "${targ}" = "${target}"; then
14322 SIM_PRIMARY_TARGET=or1k
14323 fi
14324 subdirs="$subdirs or1k"
14325
14326
14327 ac_config_commands="$ac_config_commands depdir-or1k"
14328
14329
14330
14331 ;;
14332 esac
14333
14334 case "${targ}" in
14335 all|powerpc*-*-*)
14336 if test "${targ}" = "${target}"; then
14337 SIM_PRIMARY_TARGET=ppc
14338 fi
14339 subdirs="$subdirs ppc"
14340
14341
14342 ac_config_commands="$ac_config_commands depdir-ppc"
14343
14344
14345
14346 ;;
14347 esac
14348
14349 case "${targ}" in
14350 all|pru*-*-*)
14351 if test "${targ}" = "${target}"; then
14352 SIM_PRIMARY_TARGET=pru
14353 fi
14354 ac_config_files="$ac_config_files pru/Makefile.sim:pru/Makefile.in"
14355
14356 ac_config_commands="$ac_config_commands pru/Makefile"
14357
14358 as_fn_append SIM_SUBDIRS " pru"
14359
14360 ac_config_commands="$ac_config_commands depdir-pru"
14361
14362
14363
14364 ;;
14365 esac
14366
14367 case "${targ}" in
14368 all|riscv*-*-*)
14369 if test "${targ}" = "${target}"; then
14370 SIM_PRIMARY_TARGET=riscv
14371 fi
14372 subdirs="$subdirs riscv"
14373
14374
14375 ac_config_commands="$ac_config_commands depdir-riscv"
14376
14377
14378
14379 ;;
14380 esac
14381
14382 case "${targ}" in
14383 all|rl78-*-*)
14384 if test "${targ}" = "${target}"; then
14385 SIM_PRIMARY_TARGET=rl78
14386 fi
14387 ac_config_files="$ac_config_files rl78/Makefile.sim:rl78/Makefile.in"
14388
14389 ac_config_commands="$ac_config_commands rl78/Makefile"
14390
14391 as_fn_append SIM_SUBDIRS " rl78"
14392
14393 ac_config_commands="$ac_config_commands depdir-rl78"
14394
14395
14396
14397 ;;
14398 esac
14399
14400 case "${targ}" in
14401 all|rx-*-*)
14402 if test "${targ}" = "${target}"; then
14403 SIM_PRIMARY_TARGET=rx
14404 fi
14405 ac_config_files="$ac_config_files rx/Makefile.sim:rx/Makefile.in"
14406
14407 ac_config_commands="$ac_config_commands rx/Makefile"
14408
14409 as_fn_append SIM_SUBDIRS " rx"
14410
14411 ac_config_commands="$ac_config_commands depdir-rx"
14412
14413
14414
14415 ;;
14416 esac
14417
14418 case "${targ}" in
14419 all|sh*-*-*)
14420 if test "${targ}" = "${target}"; then
14421 SIM_PRIMARY_TARGET=sh
14422 fi
14423 ac_config_files="$ac_config_files sh/Makefile.sim:sh/Makefile.in"
14424
14425 ac_config_commands="$ac_config_commands sh/Makefile"
14426
14427 as_fn_append SIM_SUBDIRS " sh"
14428
14429 ac_config_commands="$ac_config_commands depdir-sh"
14430
14431
14432
14433 ;;
14434 esac
14435
14436 case "${targ}" in
14437 all|sparc-*-*)
14438 if test "${targ}" = "${target}"; then
14439 SIM_PRIMARY_TARGET=erc32
14440 fi
14441 ac_config_files="$ac_config_files erc32/Makefile.sim:erc32/Makefile.in"
14442
14443 ac_config_commands="$ac_config_commands erc32/Makefile"
14444
14445 as_fn_append SIM_SUBDIRS " erc32"
14446
14447 ac_config_commands="$ac_config_commands depdir-erc32"
14448
14449
14450
14451 ;;
14452 esac
14453
14454 case "${targ}" in
14455 all|v850*-*-*)
14456 if test "${targ}" = "${target}"; then
14457 SIM_PRIMARY_TARGET=v850
14458 fi
14459 subdirs="$subdirs v850"
14460
14461
14462 ac_config_commands="$ac_config_commands depdir-v850"
14463
14464
14465 sim_igen=yes
14466 ;;
14467 esac
14468
14469 done
14470
14471 if test "x${enable_example_sims}" = xyes; then
14472 ac_config_files="$ac_config_files example-synacor/Makefile.sim:example-synacor/Makefile.in"
14473
14474 ac_config_commands="$ac_config_commands example-synacor/Makefile"
14475
14476 as_fn_append SIM_SUBDIRS " example-synacor"
14477
14478 ac_config_commands="$ac_config_commands depdir-example-synacor"
14479
14480
14481 fi
14482 fi
14483 if test "$sim_igen" = "yes"; then
14484 SIM_ENABLE_IGEN_TRUE=
14485 SIM_ENABLE_IGEN_FALSE='#'
14486 else
14487 SIM_ENABLE_IGEN_TRUE='#'
14488 SIM_ENABLE_IGEN_FALSE=
14489 fi
14490
14491
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim alignment" >&5
14493 $as_echo_n "checking whether to force sim alignment... " >&6; }
14494 sim_alignment=
14495 # Check whether --enable-sim-alignment was given.
14496 if test "${enable_sim_alignment+set}" = set; then :
14497 enableval=$enable_sim_alignment; case "${enableval}" in
14498 yes | strict | STRICT) sim_alignment="STRICT_ALIGNMENT";;
14499 no | nonstrict | NONSTRICT) sim_alignment="NONSTRICT_ALIGNMENT";;
14500 forced | FORCED) sim_alignment="FORCED_ALIGNMENT";;
14501 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5;;
14502 esac
14503 fi
14504
14505 cat >>confdefs.h <<_ACEOF
14506 #define WITH_ALIGNMENT ${sim_alignment:-0}
14507 _ACEOF
14508
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
14510 $as_echo "${sim_alignment:-no}" >&6; }
14511
14512
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5
14514 $as_echo_n "checking whether to enable sim asserts... " >&6; }
14515 sim_assert="1"
14516 # Check whether --enable-sim-assert was given.
14517 if test "${enable_sim_assert+set}" = set; then :
14518 enableval=$enable_sim_assert; case "${enableval}" in
14519 yes) sim_assert="1";;
14520 no) sim_assert="0";;
14521 *) as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;;
14522 esac
14523 fi
14524
14525 cat >>confdefs.h <<_ACEOF
14526 #define WITH_ASSERT $sim_assert
14527 _ACEOF
14528
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5
14530 $as_echo "$sim_assert" >&6; }
14531
14532
14533 cgen_maint=no
14534 cgen=guile
14535 cgendir='$(srcdir)/../../cgen'
14536 # Check whether --enable-cgen-maint was given.
14537 if test "${enable_cgen_maint+set}" = set; then :
14538 enableval=$enable_cgen_maint; case "${enableval}" in
14539 yes) cgen_maint=yes ;;
14540 no) cgen_maint=no ;;
14541 *)
14542 # Argument is a directory where cgen can be found. In some
14543 # future world cgen could be installable, but right now this
14544 # is not the case. Instead we assume the directory is a path
14545 # to the cgen source tree.
14546 cgen_maint=yes
14547 if test -r ${enableval}/iformat.scm; then
14548 # This looks like a cgen source tree.
14549 cgendir=${enableval}
14550 else
14551 as_fn_error $? "${enableval} doesn't look like a cgen source tree" "$LINENO" 5
14552 fi
14553 ;;
14554 esac
14555 fi
14556 if test x${cgen_maint} != xno ; then
14557 CGEN_MAINT=''
14558 else
14559 CGEN_MAINT='#'
14560 fi
14561
14562
14563
14564
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5
14566 $as_echo_n "checking for sim debug setting... " >&6; }
14567 sim_debug="0"
14568 # Check whether --enable-sim-debug was given.
14569 if test "${enable_sim_debug+set}" = set; then :
14570 enableval=$enable_sim_debug; case "${enableval}" in
14571 yes) sim_debug="7";;
14572 no) sim_debug="0";;
14573 *) sim_debug="($enableval)";;
14574 esac
14575 fi
14576 if test "$sim_debug" != "0"; then
14577
14578 cat >>confdefs.h <<_ACEOF
14579 #define DEBUG $sim_debug
14580 _ACEOF
14581
14582 fi
14583
14584 cat >>confdefs.h <<_ACEOF
14585 #define WITH_DEBUG $sim_debug
14586 _ACEOF
14587
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5
14589 $as_echo "$sim_debug" >&6; }
14590
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim endianness" >&5
14592 $as_echo_n "checking whether to force sim endianness... " >&6; }
14593 sim_endian=
14594 # Check whether --enable-sim-endian was given.
14595 if test "${enable_sim_endian+set}" = set; then :
14596 enableval=$enable_sim_endian; case "${enableval}" in
14597 b*|B*) sim_endian="BFD_ENDIAN_BIG";;
14598 l*|L*) sim_endian="BFD_ENDIAN_LITTLE";;
14599 yes | no) ;;
14600 *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5;;
14601 esac
14602 fi
14603
14604 cat >>confdefs.h <<_ACEOF
14605 #define WITH_TARGET_BYTE_ORDER ${sim_endian:-BFD_ENDIAN_UNKNOWN}
14606 _ACEOF
14607
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
14609 $as_echo "${sim_alignment:-no}" >&6; }
14610
14611
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5
14613 $as_echo_n "checking default sim environment setting... " >&6; }
14614 sim_environment="ALL_ENVIRONMENT"
14615 # Check whether --enable-sim-environment was given.
14616 if test "${enable_sim_environment+set}" = set; then :
14617 enableval=$enable_sim_environment; case "${enableval}" in
14618 all | ALL) sim_environment="ALL_ENVIRONMENT";;
14619 user | USER) sim_environment="USER_ENVIRONMENT";;
14620 virtual | VIRTUAL) sim_environment="VIRTUAL_ENVIRONMENT";;
14621 operating | OPERATING) sim_environment="OPERATING_ENVIRONMENT";;
14622 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;;
14623 esac
14624 fi
14625
14626 cat >>confdefs.h <<_ACEOF
14627 #define WITH_ENVIRONMENT $sim_environment
14628 _ACEOF
14629
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5
14631 $as_echo "$sim_environment" >&6; }
14632
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim hardware settings" >&5
14634 $as_echo_n "checking for sim hardware settings... " >&6; }
14635 # Check whether --enable-sim-hardware was given.
14636 if test "${enable_sim_hardware+set}" = set; then :
14637 enableval=$enable_sim_hardware;
14638 else
14639 enable_sim_hardware="yes"
14640 fi
14641
14642 sim_hw_sockser=
14643 if test "$enable_sim_hardware" = no; then
14644 sim_hw_cflags="-DWITH_HW=0"
14645 elif test "$enable_sim_hardware" = yes; then
14646 sim_hw_cflags="-DWITH_HW=1"
14647 sim_hw_sockser="dv-sockser.o"
14648 sim_hw_cflags="$sim_hw_cflags -DHAVE_DV_SOCKSER"
14649 else
14650 as_fn_error $? "unknown argument \"$enable_sim_hardware\"" "$LINENO" 5
14651 fi
14652 if test "$enable_sim_hardware" = "yes"; then
14653 SIM_ENABLE_HW_TRUE=
14654 SIM_ENABLE_HW_FALSE='#'
14655 else
14656 SIM_ENABLE_HW_TRUE='#'
14657 SIM_ENABLE_HW_FALSE=
14658 fi
14659
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_sim_hardware}" >&5
14661 $as_echo "${enable_sim_hardware}" >&6; }
14662
14663
14664
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sim inline settings" >&5
14666 $as_echo_n "checking sim inline settings... " >&6; }
14667 sim_inline="-DDEFAULT_INLINE=0"
14668 # Check whether --enable-sim-inline was given.
14669 if test "${enable_sim_inline+set}" = set; then :
14670 enableval=$enable_sim_inline; sim_inline=""
14671 case "$enableval" in
14672 no) sim_inline="-DDEFAULT_INLINE=0";;
14673 0) sim_inline="-DDEFAULT_INLINE=0";;
14674 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
14675 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
14676 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
14677 new_flag=""
14678 case "$x" in
14679 *_INLINE=*) new_flag="-D$x";;
14680 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
14681 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
14682 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
14683 esac
14684 if test x"$sim_inline" = x""; then
14685 sim_inline="$new_flag"
14686 else
14687 sim_inline="$sim_inline $new_flag"
14688 fi
14689 done;;
14690 esac
14691
14692 fi
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_inline" >&5
14694 $as_echo "$sim_inline" >&6; }
14695 SIM_INLINE=$sim_inline
14696
14697
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5
14699 $as_echo_n "checking for sim profile settings... " >&6; }
14700 profile="1"
14701 sim_profile="-1"
14702 # Check whether --enable-sim-profile was given.
14703 if test "${enable_sim_profile+set}" = set; then :
14704 enableval=$enable_sim_profile; case "${enableval}" in
14705 yes) profile="1" sim_profile="-1";;
14706 no) profile="0" sim_profile="0";;
14707 [-0-9]*)
14708 profile="(${enableval})" sim_profile="(${enableval})";;
14709 [a-z]*)
14710 profile="1"
14711 sim_profile=""
14712 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
14713 if test x"$sim_profile" = x; then
14714 sim_profile="(PROFILE_$x"
14715 else
14716 sim_profile="${sim_profile}|PROFILE_$x"
14717 fi
14718 done
14719 sim_profile="$sim_profile)" ;;
14720 esac
14721 fi
14722
14723 cat >>confdefs.h <<_ACEOF
14724 #define PROFILE $profile
14725 _ACEOF
14726
14727
14728 cat >>confdefs.h <<_ACEOF
14729 #define WITH_PROFILE $sim_profile
14730 _ACEOF
14731
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5
14733 $as_echo "$sim_profile" >&6; }
14734
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check reserved bits in instruction" >&5
14736 $as_echo_n "checking whether to check reserved bits in instruction... " >&6; }
14737 # Check whether --enable-sim-reserved-bits was given.
14738 if test "${enable_sim_reserved_bits+set}" = set; then :
14739 enableval=$enable_sim_reserved_bits; case "${enableval}" in
14740 yes|no) ;;
14741 *) as_fn_error $? "\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5;;
14742 esac
14743 fi
14744
14745 if test "x${enable_sim_reserved_bits}" != xno; then
14746 sim_reserved_bits=1
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14748 $as_echo "yes" >&6; }
14749 else
14750 sim_reserved_bits=0
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14752 $as_echo "no" >&6; }
14753 fi
14754
14755 cat >>confdefs.h <<_ACEOF
14756 #define WITH_RESERVED_BITS $sim_reserved_bits
14757 _ACEOF
14758
14759
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim cache size" >&5
14761 $as_echo_n "checking for sim cache size... " >&6; }
14762 sim_scache="16384"
14763 # Check whether --enable-sim-scache was given.
14764 if test "${enable_sim_scache+set}" = set; then :
14765 enableval=$enable_sim_scache; case "${enableval}" in
14766 yes) ;;
14767 no) sim_scache="0";;
14768 [0-9]*) sim_scache="${enableval}";;
14769 *) as_fn_error $? "\"Bad value $enableval passed to --enable-sim-scache\"" "$LINENO" 5;;
14770 esac
14771 fi
14772
14773
14774 cat >>confdefs.h <<_ACEOF
14775 #define WITH_SCACHE $sim_scache
14776 _ACEOF
14777
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_scache" >&5
14779 $as_echo "$sim_scache" >&6; }
14780
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5
14782 $as_echo_n "checking for sim stdio debug behavior... " >&6; }
14783 sim_stdio="0"
14784 # Check whether --enable-sim-stdio was given.
14785 if test "${enable_sim_stdio+set}" = set; then :
14786 enableval=$enable_sim_stdio; case "${enableval}" in
14787 yes) sim_stdio="DO_USE_STDIO";;
14788 no) sim_stdio="DONT_USE_STDIO";;
14789 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;;
14790 esac
14791 fi
14792
14793 cat >>confdefs.h <<_ACEOF
14794 #define WITH_STDIO $sim_stdio
14795 _ACEOF
14796
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5
14798 $as_echo "$sim_stdio" >&6; }
14799
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5
14801 $as_echo_n "checking for sim trace settings... " >&6; }
14802 sim_trace="~TRACE_debug"
14803 # Check whether --enable-sim-trace was given.
14804 if test "${enable_sim_trace+set}" = set; then :
14805 enableval=$enable_sim_trace; case "${enableval}" in
14806 yes) sim_trace="-1";;
14807 no) sim_trace="0";;
14808 [-0-9]*)
14809 sim_trace="'(${enableval})'";;
14810 [[:lower:]]*)
14811 sim_trace=""
14812 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
14813 if test x"$sim_trace" = x; then
14814 sim_trace="(TRACE_$x"
14815 else
14816 sim_trace="${sim_trace}|TRACE_$x"
14817 fi
14818 done
14819 sim_trace="$sim_trace)" ;;
14820 esac
14821 fi
14822
14823 cat >>confdefs.h <<_ACEOF
14824 #define WITH_TRACE $sim_trace
14825 _ACEOF
14826
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5
14828 $as_echo "$sim_trace" >&6; }
14829
14830
14831 # Check whether --enable-werror was given.
14832 if test "${enable_werror+set}" = set; then :
14833 enableval=$enable_werror; case "${enableval}" in
14834 yes | y) ERROR_ON_WARNING="yes" ;;
14835 no | n) ERROR_ON_WARNING="no" ;;
14836 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
14837 esac
14838 fi
14839
14840
14841 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
14842 ERROR_ON_WARNING=yes
14843 fi
14844
14845 WERROR_CFLAGS=""
14846 if test "${ERROR_ON_WARNING}" = yes ; then
14847 WERROR_CFLAGS="-Werror"
14848 fi
14849
14850 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith
14851 -Wno-unused -Wunused-value -Wunused-function
14852 -Wno-switch -Wno-char-subscripts
14853 -Wempty-body -Wunused-but-set-parameter
14854 -Wno-error=maybe-uninitialized
14855 -Wmissing-declarations
14856 -Wmissing-prototypes
14857 -Wdeclaration-after-statement -Wmissing-parameter-type
14858 -Wpointer-sign
14859 -Wold-style-declaration -Wold-style-definition
14860 "
14861
14862 # Enable -Wno-format by default when using gcc on mingw since many
14863 # GCC versions complain about %I64.
14864 case "${host}" in
14865 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
14866 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
14867 esac
14868
14869 # Check whether --enable-build-warnings was given.
14870 if test "${enable_build_warnings+set}" = set; then :
14871 enableval=$enable_build_warnings; case "${enableval}" in
14872 yes) ;;
14873 no) build_warnings="-w";;
14874 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14875 build_warnings="${build_warnings} ${t}";;
14876 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14877 build_warnings="${t} ${build_warnings}";;
14878 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14879 esac
14880 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
14881 echo "Setting compiler warning flags = $build_warnings" 6>&1
14882 fi
14883 fi
14884 # Check whether --enable-sim-build-warnings was given.
14885 if test "${enable_sim_build_warnings+set}" = set; then :
14886 enableval=$enable_sim_build_warnings; case "${enableval}" in
14887 yes) ;;
14888 no) build_warnings="-w";;
14889 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14890 build_warnings="${build_warnings} ${t}";;
14891 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14892 build_warnings="${t} ${build_warnings}";;
14893 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14894 esac
14895 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
14896 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
14897 fi
14898 fi
14899 WARN_CFLAGS=""
14900 if test "x${build_warnings}" != x -a "x$GCC" = xyes
14901 then
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
14903 $as_echo_n "checking compiler warning flags... " >&6; }
14904 # Separate out the -Werror flag as some files just cannot be
14905 # compiled with it enabled.
14906 for w in ${build_warnings}; do
14907 case $w in
14908 -Werr*) WERROR_CFLAGS=-Werror ;;
14909 *) # Check that GCC accepts it
14910 saved_CFLAGS="$CFLAGS"
14911 CFLAGS="$CFLAGS -Werror $w"
14912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14913 /* end confdefs.h. */
14914
14915 int
14916 main ()
14917 {
14918
14919 ;
14920 return 0;
14921 }
14922 _ACEOF
14923 if ac_fn_c_try_compile "$LINENO"; then :
14924 WARN_CFLAGS="${WARN_CFLAGS} $w"
14925 fi
14926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14927 CFLAGS="$saved_CFLAGS"
14928 esac
14929 done
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
14931 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
14932 fi
14933
14934
14935
14936
14937
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim frv should dump cpu state on unknown traps" >&5
14939 $as_echo_n "checking whether sim frv should dump cpu state on unknown traps... " >&6; }
14940 # Check whether --enable-sim-frv-trapdump was given.
14941 if test "${enable_sim_frv_trapdump+set}" = set; then :
14942 enableval=$enable_sim_frv_trapdump; case "${enableval}" in
14943 yes|no) ;;
14944 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-trapdump\"" "$LINENO" 5;;
14945 esac
14946 fi
14947
14948 if test "x${enable_sim_frv_trapdump}" != xno; then
14949 SIM_FRV_TRAPDUMP_FLAGS="-DTRAPDUMP=1"
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14951 $as_echo "yes" >&6; }
14952 else
14953 SIM_FRV_TRAPDUMP_FLAGS="-DTRAPDUMP=0"
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14955 $as_echo "no" >&6; }
14956 fi
14957
14958
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim rx should be cycle accurate" >&5
14960 $as_echo_n "checking whether sim rx should be cycle accurate... " >&6; }
14961 # Check whether --enable-sim-rx-cycle-accurate was given.
14962 if test "${enable_sim_rx_cycle_accurate+set}" = set; then :
14963 enableval=$enable_sim_rx_cycle_accurate; case "${enableval}" in
14964 yes | no) ;;
14965 *) as_fn_error $? "bad value ${enableval} given for --enable-sim-rx-cycle-accurate option" "$LINENO" 5 ;;
14966 esac
14967 fi
14968
14969 if test "x${enable_sim_rx_cycle_accurate}" != xno; then
14970 SIM_RX_CYCLE_ACCURATE_FLAGS="-DCYCLE_ACCURATE"
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14972 $as_echo "yes" >&6; }
14973 else
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14975 $as_echo "no" >&6; }
14976 fi
14977
14978
14979
14980 ac_config_files="$ac_config_files arch-subdir.mk Makefile"
14981
14982 cat >confcache <<\_ACEOF
14983 # This file is a shell script that caches the results of configure
14984 # tests run on this system so they can be shared between configure
14985 # scripts and configure runs, see configure's option --config-cache.
14986 # It is not useful on other systems. If it contains results you don't
14987 # want to keep, you may remove or edit it.
14988 #
14989 # config.status only pays attention to the cache file if you give it
14990 # the --recheck option to rerun configure.
14991 #
14992 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14993 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14994 # following values.
14995
14996 _ACEOF
14997
14998 # The following way of writing the cache mishandles newlines in values,
14999 # but we know of no workaround that is simple, portable, and efficient.
15000 # So, we kill variables containing newlines.
15001 # Ultrix sh set writes to stderr and can't be redirected directly,
15002 # and sets the high bit in the cache file unless we assign to the vars.
15003 (
15004 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15005 eval ac_val=\$$ac_var
15006 case $ac_val in #(
15007 *${as_nl}*)
15008 case $ac_var in #(
15009 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15010 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15011 esac
15012 case $ac_var in #(
15013 _ | IFS | as_nl) ;; #(
15014 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15015 *) { eval $ac_var=; unset $ac_var;} ;;
15016 esac ;;
15017 esac
15018 done
15019
15020 (set) 2>&1 |
15021 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15022 *${as_nl}ac_space=\ *)
15023 # `set' does not quote correctly, so add quotes: double-quote
15024 # substitution turns \\\\ into \\, and sed turns \\ into \.
15025 sed -n \
15026 "s/'/'\\\\''/g;
15027 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15028 ;; #(
15029 *)
15030 # `set' quotes correctly as required by POSIX, so do not add quotes.
15031 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15032 ;;
15033 esac |
15034 sort
15035 ) |
15036 sed '
15037 /^ac_cv_env_/b end
15038 t clear
15039 :clear
15040 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15041 t end
15042 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15043 :end' >>confcache
15044 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15045 if test -w "$cache_file"; then
15046 if test "x$cache_file" != "x/dev/null"; then
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15048 $as_echo "$as_me: updating cache $cache_file" >&6;}
15049 if test ! -f "$cache_file" || test -h "$cache_file"; then
15050 cat confcache >"$cache_file"
15051 else
15052 case $cache_file in #(
15053 */* | ?:*)
15054 mv -f confcache "$cache_file"$$ &&
15055 mv -f "$cache_file"$$ "$cache_file" ;; #(
15056 *)
15057 mv -f confcache "$cache_file" ;;
15058 esac
15059 fi
15060 fi
15061 else
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15063 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15064 fi
15065 fi
15066 rm -f confcache
15067
15068 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15069 # Let make expand exec_prefix.
15070 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15071
15072 DEFS=-DHAVE_CONFIG_H
15073
15074 ac_libobjs=
15075 ac_ltlibobjs=
15076 U=
15077 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15078 # 1. Remove the extension, and $U if already installed.
15079 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15080 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15081 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15082 # will be set to the directory where LIBOBJS objects are built.
15083 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15084 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15085 done
15086 LIBOBJS=$ac_libobjs
15087
15088 LTLIBOBJS=$ac_ltlibobjs
15089
15090
15091
15092 if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
15093 as_fn_error $? "conditional \"PLUGINS\" was never defined.
15094 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15095 fi
15096 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15097 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15098 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15099 fi
15100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15101 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15102 if test -n "$am_sleep_pid"; then
15103 # Hide warnings about reused PIDs.
15104 wait $am_sleep_pid 2>/dev/null
15105 fi
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15107 $as_echo "done" >&6; }
15108 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15109 as_fn_error $? "conditional \"AMDEP\" was never defined.
15110 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15111 fi
15112 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15113 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15114 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15115 fi
15116 if test -n "$EXEEXT"; then
15117 am__EXEEXT_TRUE=
15118 am__EXEEXT_FALSE='#'
15119 else
15120 am__EXEEXT_TRUE='#'
15121 am__EXEEXT_FALSE=
15122 fi
15123
15124 if test -z "${SIM_ENABLE_IGEN_TRUE}" && test -z "${SIM_ENABLE_IGEN_FALSE}"; then
15125 as_fn_error $? "conditional \"SIM_ENABLE_IGEN\" was never defined.
15126 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15127 fi
15128 if test -z "${SIM_ENABLE_HW_TRUE}" && test -z "${SIM_ENABLE_HW_FALSE}"; then
15129 as_fn_error $? "conditional \"SIM_ENABLE_HW\" was never defined.
15130 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15131 fi
15132
15133 : "${CONFIG_STATUS=./config.status}"
15134 ac_write_fail=0
15135 ac_clean_files_save=$ac_clean_files
15136 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15137 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15138 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15139 as_write_fail=0
15140 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15141 #! $SHELL
15142 # Generated by $as_me.
15143 # Run this file to recreate the current configuration.
15144 # Compiler output produced by configure, useful for debugging
15145 # configure, is in config.log if it exists.
15146
15147 debug=false
15148 ac_cs_recheck=false
15149 ac_cs_silent=false
15150
15151 SHELL=\${CONFIG_SHELL-$SHELL}
15152 export SHELL
15153 _ASEOF
15154 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15155 ## -------------------- ##
15156 ## M4sh Initialization. ##
15157 ## -------------------- ##
15158
15159 # Be more Bourne compatible
15160 DUALCASE=1; export DUALCASE # for MKS sh
15161 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15162 emulate sh
15163 NULLCMD=:
15164 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15165 # is contrary to our usage. Disable this feature.
15166 alias -g '${1+"$@"}'='"$@"'
15167 setopt NO_GLOB_SUBST
15168 else
15169 case `(set -o) 2>/dev/null` in #(
15170 *posix*) :
15171 set -o posix ;; #(
15172 *) :
15173 ;;
15174 esac
15175 fi
15176
15177
15178 as_nl='
15179 '
15180 export as_nl
15181 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15182 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15183 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15184 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15185 # Prefer a ksh shell builtin over an external printf program on Solaris,
15186 # but without wasting forks for bash or zsh.
15187 if test -z "$BASH_VERSION$ZSH_VERSION" \
15188 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15189 as_echo='print -r --'
15190 as_echo_n='print -rn --'
15191 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15192 as_echo='printf %s\n'
15193 as_echo_n='printf %s'
15194 else
15195 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15196 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15197 as_echo_n='/usr/ucb/echo -n'
15198 else
15199 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15200 as_echo_n_body='eval
15201 arg=$1;
15202 case $arg in #(
15203 *"$as_nl"*)
15204 expr "X$arg" : "X\\(.*\\)$as_nl";
15205 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15206 esac;
15207 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15208 '
15209 export as_echo_n_body
15210 as_echo_n='sh -c $as_echo_n_body as_echo'
15211 fi
15212 export as_echo_body
15213 as_echo='sh -c $as_echo_body as_echo'
15214 fi
15215
15216 # The user is always right.
15217 if test "${PATH_SEPARATOR+set}" != set; then
15218 PATH_SEPARATOR=:
15219 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15220 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15221 PATH_SEPARATOR=';'
15222 }
15223 fi
15224
15225
15226 # IFS
15227 # We need space, tab and new line, in precisely that order. Quoting is
15228 # there to prevent editors from complaining about space-tab.
15229 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15230 # splitting by setting IFS to empty value.)
15231 IFS=" "" $as_nl"
15232
15233 # Find who we are. Look in the path if we contain no directory separator.
15234 as_myself=
15235 case $0 in #((
15236 *[\\/]* ) as_myself=$0 ;;
15237 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15238 for as_dir in $PATH
15239 do
15240 IFS=$as_save_IFS
15241 test -z "$as_dir" && as_dir=.
15242 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15243 done
15244 IFS=$as_save_IFS
15245
15246 ;;
15247 esac
15248 # We did not find ourselves, most probably we were run as `sh COMMAND'
15249 # in which case we are not to be found in the path.
15250 if test "x$as_myself" = x; then
15251 as_myself=$0
15252 fi
15253 if test ! -f "$as_myself"; then
15254 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15255 exit 1
15256 fi
15257
15258 # Unset variables that we do not need and which cause bugs (e.g. in
15259 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15260 # suppresses any "Segmentation fault" message there. '((' could
15261 # trigger a bug in pdksh 5.2.14.
15262 for as_var in BASH_ENV ENV MAIL MAILPATH
15263 do eval test x\${$as_var+set} = xset \
15264 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15265 done
15266 PS1='$ '
15267 PS2='> '
15268 PS4='+ '
15269
15270 # NLS nuisances.
15271 LC_ALL=C
15272 export LC_ALL
15273 LANGUAGE=C
15274 export LANGUAGE
15275
15276 # CDPATH.
15277 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15278
15279
15280 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15281 # ----------------------------------------
15282 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15283 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15284 # script with STATUS, using 1 if that was 0.
15285 as_fn_error ()
15286 {
15287 as_status=$1; test $as_status -eq 0 && as_status=1
15288 if test "$4"; then
15289 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15290 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15291 fi
15292 $as_echo "$as_me: error: $2" >&2
15293 as_fn_exit $as_status
15294 } # as_fn_error
15295
15296
15297 # as_fn_set_status STATUS
15298 # -----------------------
15299 # Set $? to STATUS, without forking.
15300 as_fn_set_status ()
15301 {
15302 return $1
15303 } # as_fn_set_status
15304
15305 # as_fn_exit STATUS
15306 # -----------------
15307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15308 as_fn_exit ()
15309 {
15310 set +e
15311 as_fn_set_status $1
15312 exit $1
15313 } # as_fn_exit
15314
15315 # as_fn_unset VAR
15316 # ---------------
15317 # Portably unset VAR.
15318 as_fn_unset ()
15319 {
15320 { eval $1=; unset $1;}
15321 }
15322 as_unset=as_fn_unset
15323 # as_fn_append VAR VALUE
15324 # ----------------------
15325 # Append the text in VALUE to the end of the definition contained in VAR. Take
15326 # advantage of any shell optimizations that allow amortized linear growth over
15327 # repeated appends, instead of the typical quadratic growth present in naive
15328 # implementations.
15329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15330 eval 'as_fn_append ()
15331 {
15332 eval $1+=\$2
15333 }'
15334 else
15335 as_fn_append ()
15336 {
15337 eval $1=\$$1\$2
15338 }
15339 fi # as_fn_append
15340
15341 # as_fn_arith ARG...
15342 # ------------------
15343 # Perform arithmetic evaluation on the ARGs, and store the result in the
15344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15345 # must be portable across $(()) and expr.
15346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15347 eval 'as_fn_arith ()
15348 {
15349 as_val=$(( $* ))
15350 }'
15351 else
15352 as_fn_arith ()
15353 {
15354 as_val=`expr "$@" || test $? -eq 1`
15355 }
15356 fi # as_fn_arith
15357
15358
15359 if expr a : '\(a\)' >/dev/null 2>&1 &&
15360 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15361 as_expr=expr
15362 else
15363 as_expr=false
15364 fi
15365
15366 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15367 as_basename=basename
15368 else
15369 as_basename=false
15370 fi
15371
15372 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15373 as_dirname=dirname
15374 else
15375 as_dirname=false
15376 fi
15377
15378 as_me=`$as_basename -- "$0" ||
15379 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15380 X"$0" : 'X\(//\)$' \| \
15381 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15382 $as_echo X/"$0" |
15383 sed '/^.*\/\([^/][^/]*\)\/*$/{
15384 s//\1/
15385 q
15386 }
15387 /^X\/\(\/\/\)$/{
15388 s//\1/
15389 q
15390 }
15391 /^X\/\(\/\).*/{
15392 s//\1/
15393 q
15394 }
15395 s/.*/./; q'`
15396
15397 # Avoid depending upon Character Ranges.
15398 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15399 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15400 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15401 as_cr_digits='0123456789'
15402 as_cr_alnum=$as_cr_Letters$as_cr_digits
15403
15404 ECHO_C= ECHO_N= ECHO_T=
15405 case `echo -n x` in #(((((
15406 -n*)
15407 case `echo 'xy\c'` in
15408 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15409 xy) ECHO_C='\c';;
15410 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15411 ECHO_T=' ';;
15412 esac;;
15413 *)
15414 ECHO_N='-n';;
15415 esac
15416
15417 rm -f conf$$ conf$$.exe conf$$.file
15418 if test -d conf$$.dir; then
15419 rm -f conf$$.dir/conf$$.file
15420 else
15421 rm -f conf$$.dir
15422 mkdir conf$$.dir 2>/dev/null
15423 fi
15424 if (echo >conf$$.file) 2>/dev/null; then
15425 if ln -s conf$$.file conf$$ 2>/dev/null; then
15426 as_ln_s='ln -s'
15427 # ... but there are two gotchas:
15428 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15429 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15430 # In both cases, we have to default to `cp -pR'.
15431 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15432 as_ln_s='cp -pR'
15433 elif ln conf$$.file conf$$ 2>/dev/null; then
15434 as_ln_s=ln
15435 else
15436 as_ln_s='cp -pR'
15437 fi
15438 else
15439 as_ln_s='cp -pR'
15440 fi
15441 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15442 rmdir conf$$.dir 2>/dev/null
15443
15444
15445 # as_fn_mkdir_p
15446 # -------------
15447 # Create "$as_dir" as a directory, including parents if necessary.
15448 as_fn_mkdir_p ()
15449 {
15450
15451 case $as_dir in #(
15452 -*) as_dir=./$as_dir;;
15453 esac
15454 test -d "$as_dir" || eval $as_mkdir_p || {
15455 as_dirs=
15456 while :; do
15457 case $as_dir in #(
15458 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15459 *) as_qdir=$as_dir;;
15460 esac
15461 as_dirs="'$as_qdir' $as_dirs"
15462 as_dir=`$as_dirname -- "$as_dir" ||
15463 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15464 X"$as_dir" : 'X\(//\)[^/]' \| \
15465 X"$as_dir" : 'X\(//\)$' \| \
15466 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15467 $as_echo X"$as_dir" |
15468 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15469 s//\1/
15470 q
15471 }
15472 /^X\(\/\/\)[^/].*/{
15473 s//\1/
15474 q
15475 }
15476 /^X\(\/\/\)$/{
15477 s//\1/
15478 q
15479 }
15480 /^X\(\/\).*/{
15481 s//\1/
15482 q
15483 }
15484 s/.*/./; q'`
15485 test -d "$as_dir" && break
15486 done
15487 test -z "$as_dirs" || eval "mkdir $as_dirs"
15488 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15489
15490
15491 } # as_fn_mkdir_p
15492 if mkdir -p . 2>/dev/null; then
15493 as_mkdir_p='mkdir -p "$as_dir"'
15494 else
15495 test -d ./-p && rmdir ./-p
15496 as_mkdir_p=false
15497 fi
15498
15499
15500 # as_fn_executable_p FILE
15501 # -----------------------
15502 # Test if FILE is an executable regular file.
15503 as_fn_executable_p ()
15504 {
15505 test -f "$1" && test -x "$1"
15506 } # as_fn_executable_p
15507 as_test_x='test -x'
15508 as_executable_p=as_fn_executable_p
15509
15510 # Sed expression to map a string onto a valid CPP name.
15511 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15512
15513 # Sed expression to map a string onto a valid variable name.
15514 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15515
15516
15517 exec 6>&1
15518 ## ----------------------------------- ##
15519 ## Main body of $CONFIG_STATUS script. ##
15520 ## ----------------------------------- ##
15521 _ASEOF
15522 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15523
15524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15525 # Save the log message, to keep $0 and so on meaningful, and to
15526 # report actual input values of CONFIG_FILES etc. instead of their
15527 # values after options handling.
15528 ac_log="
15529 This file was extended by sim $as_me 0, which was
15530 generated by GNU Autoconf 2.69. Invocation command line was
15531
15532 CONFIG_FILES = $CONFIG_FILES
15533 CONFIG_HEADERS = $CONFIG_HEADERS
15534 CONFIG_LINKS = $CONFIG_LINKS
15535 CONFIG_COMMANDS = $CONFIG_COMMANDS
15536 $ $0 $@
15537
15538 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15539 "
15540
15541 _ACEOF
15542
15543 case $ac_config_files in *"
15544 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15545 esac
15546
15547 case $ac_config_headers in *"
15548 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15549 esac
15550
15551
15552 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15553 # Files that config.status was made for.
15554 config_files="$ac_config_files"
15555 config_headers="$ac_config_headers"
15556 config_commands="$ac_config_commands"
15557
15558 _ACEOF
15559
15560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15561 ac_cs_usage="\
15562 \`$as_me' instantiates files and other configuration actions
15563 from templates according to the current configuration. Unless the files
15564 and actions are specified as TAGs, all are instantiated by default.
15565
15566 Usage: $0 [OPTION]... [TAG]...
15567
15568 -h, --help print this help, then exit
15569 -V, --version print version number and configuration settings, then exit
15570 --config print configuration, then exit
15571 -q, --quiet, --silent
15572 do not print progress messages
15573 -d, --debug don't remove temporary files
15574 --recheck update $as_me by reconfiguring in the same conditions
15575 --file=FILE[:TEMPLATE]
15576 instantiate the configuration file FILE
15577 --header=FILE[:TEMPLATE]
15578 instantiate the configuration header FILE
15579
15580 Configuration files:
15581 $config_files
15582
15583 Configuration headers:
15584 $config_headers
15585
15586 Configuration commands:
15587 $config_commands
15588
15589 Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
15590 sim home page: <https://sourceware.org/gdb/wiki/Sim/>."
15591
15592 _ACEOF
15593 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15594 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15595 ac_cs_version="\\
15596 sim config.status 0
15597 configured by $0, generated by GNU Autoconf 2.69,
15598 with options \\"\$ac_cs_config\\"
15599
15600 Copyright (C) 2012 Free Software Foundation, Inc.
15601 This config.status script is free software; the Free Software Foundation
15602 gives unlimited permission to copy, distribute and modify it."
15603
15604 ac_pwd='$ac_pwd'
15605 srcdir='$srcdir'
15606 INSTALL='$INSTALL'
15607 MKDIR_P='$MKDIR_P'
15608 AWK='$AWK'
15609 test -n "\$AWK" || AWK=awk
15610 _ACEOF
15611
15612 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15613 # The default lists apply if the user does not specify any file.
15614 ac_need_defaults=:
15615 while test $# != 0
15616 do
15617 case $1 in
15618 --*=?*)
15619 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15620 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15621 ac_shift=:
15622 ;;
15623 --*=)
15624 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15625 ac_optarg=
15626 ac_shift=:
15627 ;;
15628 *)
15629 ac_option=$1
15630 ac_optarg=$2
15631 ac_shift=shift
15632 ;;
15633 esac
15634
15635 case $ac_option in
15636 # Handling of the options.
15637 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15638 ac_cs_recheck=: ;;
15639 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15640 $as_echo "$ac_cs_version"; exit ;;
15641 --config | --confi | --conf | --con | --co | --c )
15642 $as_echo "$ac_cs_config"; exit ;;
15643 --debug | --debu | --deb | --de | --d | -d )
15644 debug=: ;;
15645 --file | --fil | --fi | --f )
15646 $ac_shift
15647 case $ac_optarg in
15648 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15649 '') as_fn_error $? "missing file argument" ;;
15650 esac
15651 as_fn_append CONFIG_FILES " '$ac_optarg'"
15652 ac_need_defaults=false;;
15653 --header | --heade | --head | --hea )
15654 $ac_shift
15655 case $ac_optarg in
15656 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15657 esac
15658 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15659 ac_need_defaults=false;;
15660 --he | --h)
15661 # Conflict between --help and --header
15662 as_fn_error $? "ambiguous option: \`$1'
15663 Try \`$0 --help' for more information.";;
15664 --help | --hel | -h )
15665 $as_echo "$ac_cs_usage"; exit ;;
15666 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15667 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15668 ac_cs_silent=: ;;
15669
15670 # This is an error.
15671 -*) as_fn_error $? "unrecognized option: \`$1'
15672 Try \`$0 --help' for more information." ;;
15673
15674 *) as_fn_append ac_config_targets " $1"
15675 ac_need_defaults=false ;;
15676
15677 esac
15678 shift
15679 done
15680
15681 ac_configure_extra_args=
15682
15683 if $ac_cs_silent; then
15684 exec 6>/dev/null
15685 ac_configure_extra_args="$ac_configure_extra_args --silent"
15686 fi
15687
15688 _ACEOF
15689 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15690 if \$ac_cs_recheck; then
15691 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15692 shift
15693 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15694 CONFIG_SHELL='$SHELL'
15695 export CONFIG_SHELL
15696 exec "\$@"
15697 fi
15698
15699 _ACEOF
15700 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15701 exec 5>>config.log
15702 {
15703 echo
15704 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15705 ## Running $as_me. ##
15706 _ASBOX
15707 $as_echo "$ac_log"
15708 } >&5
15709
15710 _ACEOF
15711 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15712 #
15713 # INIT-COMMANDS
15714 #
15715
15716
15717 # The HP-UX ksh and POSIX shell print the target directory to stdout
15718 # if CDPATH is set.
15719 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15720
15721 sed_quote_subst='$sed_quote_subst'
15722 double_quote_subst='$double_quote_subst'
15723 delay_variable_subst='$delay_variable_subst'
15724 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15725 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15726 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15727 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15728 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15729 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15730 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15731 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15732 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15733 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15734 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15735 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15736 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15737 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15738 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15739 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15740 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15741 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15742 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15743 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15744 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15745 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15746 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15747 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15748 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15749 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15750 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15751 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15752 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15753 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15754 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15755 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15756 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15757 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15758 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15759 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15760 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15761 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15762 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15763 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15764 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15765 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15766 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15767 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15768 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15769 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15770 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15771 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15772 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"`'
15773 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15774 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15775 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15776 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15777 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15778 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15779 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15780 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15781 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15782 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15783 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15784 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15785 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15786 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15787 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15788 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15789 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15790 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15791 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15792 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15793 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15794 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15795 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15796 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15797 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15798 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15799 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15800 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15801 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15802 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15803 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15804 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15805 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15806 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15807 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15808 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15809 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15810 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15811 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15812 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15813 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15814 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15815 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15816 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15817 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15818 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15819 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15820 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15821 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15822 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15823 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15824 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15825 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15826 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15827 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15828 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15829 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15830 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15831 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15832 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15833 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15834 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15835 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15836 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15837 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15838 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15839 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15840 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15841 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15842 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15843 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15844
15845 LTCC='$LTCC'
15846 LTCFLAGS='$LTCFLAGS'
15847 compiler='$compiler_DEFAULT'
15848
15849 # A function that is used when there is no print builtin or printf.
15850 func_fallback_echo ()
15851 {
15852 eval 'cat <<_LTECHO_EOF
15853 \$1
15854 _LTECHO_EOF'
15855 }
15856
15857 # Quote evaled strings.
15858 for var in SHELL \
15859 ECHO \
15860 SED \
15861 GREP \
15862 EGREP \
15863 FGREP \
15864 LD \
15865 NM \
15866 LN_S \
15867 lt_SP2NL \
15868 lt_NL2SP \
15869 reload_flag \
15870 OBJDUMP \
15871 deplibs_check_method \
15872 file_magic_cmd \
15873 AR \
15874 AR_FLAGS \
15875 STRIP \
15876 RANLIB \
15877 CC \
15878 CFLAGS \
15879 compiler \
15880 lt_cv_sys_global_symbol_pipe \
15881 lt_cv_sys_global_symbol_to_cdecl \
15882 lt_cv_sys_global_symbol_to_c_name_address \
15883 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15884 lt_prog_compiler_no_builtin_flag \
15885 lt_prog_compiler_wl \
15886 lt_prog_compiler_pic \
15887 lt_prog_compiler_static \
15888 lt_cv_prog_compiler_c_o \
15889 need_locks \
15890 DSYMUTIL \
15891 NMEDIT \
15892 LIPO \
15893 OTOOL \
15894 OTOOL64 \
15895 shrext_cmds \
15896 export_dynamic_flag_spec \
15897 whole_archive_flag_spec \
15898 compiler_needs_object \
15899 with_gnu_ld \
15900 allow_undefined_flag \
15901 no_undefined_flag \
15902 hardcode_libdir_flag_spec \
15903 hardcode_libdir_flag_spec_ld \
15904 hardcode_libdir_separator \
15905 fix_srcfile_path \
15906 exclude_expsyms \
15907 include_expsyms \
15908 file_list_spec \
15909 variables_saved_for_relink \
15910 libname_spec \
15911 library_names_spec \
15912 soname_spec \
15913 install_override_mode \
15914 finish_eval \
15915 old_striplib \
15916 striplib; do
15917 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15918 *[\\\\\\\`\\"\\\$]*)
15919 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15920 ;;
15921 *)
15922 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15923 ;;
15924 esac
15925 done
15926
15927 # Double-quote double-evaled strings.
15928 for var in reload_cmds \
15929 old_postinstall_cmds \
15930 old_postuninstall_cmds \
15931 old_archive_cmds \
15932 extract_expsyms_cmds \
15933 old_archive_from_new_cmds \
15934 old_archive_from_expsyms_cmds \
15935 archive_cmds \
15936 archive_expsym_cmds \
15937 module_cmds \
15938 module_expsym_cmds \
15939 export_symbols_cmds \
15940 prelink_cmds \
15941 postinstall_cmds \
15942 postuninstall_cmds \
15943 finish_cmds \
15944 sys_lib_search_path_spec \
15945 sys_lib_dlsearch_path_spec; do
15946 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15947 *[\\\\\\\`\\"\\\$]*)
15948 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15949 ;;
15950 *)
15951 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15952 ;;
15953 esac
15954 done
15955
15956 ac_aux_dir='$ac_aux_dir'
15957 xsi_shell='$xsi_shell'
15958 lt_shell_append='$lt_shell_append'
15959
15960 # See if we are running on zsh, and set the options which allow our
15961 # commands through without removal of \ escapes INIT.
15962 if test -n "\${ZSH_VERSION+set}" ; then
15963 setopt NO_GLOB_SUBST
15964 fi
15965
15966
15967 PACKAGE='$PACKAGE'
15968 VERSION='$VERSION'
15969 TIMESTAMP='$TIMESTAMP'
15970 RM='$RM'
15971 ofile='$ofile'
15972
15973
15974
15975 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15976 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15977 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15978 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15979 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15980 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15981 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15982 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15983 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15984 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15985 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15986 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15987 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15988 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15989 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15990 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15991 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15992 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15993 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15994 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15995 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15996 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15997 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15998 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15999 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16000 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16001 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16002 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16003 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16004 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16005 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16006 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16007 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16008
16009 _ACEOF
16010
16011 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16012
16013 # Handling of arguments.
16014 for ac_config_target in $ac_config_targets
16015 do
16016 case $ac_config_target in
16017 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16018 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16019 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16020 "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:common/Make-common.in" ;;
16021 "aarch64/Makefile.sim") CONFIG_FILES="$CONFIG_FILES aarch64/Makefile.sim:aarch64/Makefile.in" ;;
16022 "aarch64/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS aarch64/Makefile" ;;
16023 "depdir-aarch64") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-aarch64" ;;
16024 "arm/Makefile.sim") CONFIG_FILES="$CONFIG_FILES arm/Makefile.sim:arm/Makefile.in" ;;
16025 "arm/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS arm/Makefile" ;;
16026 "depdir-arm") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-arm" ;;
16027 "avr/Makefile.sim") CONFIG_FILES="$CONFIG_FILES avr/Makefile.sim:avr/Makefile.in" ;;
16028 "avr/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS avr/Makefile" ;;
16029 "depdir-avr") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-avr" ;;
16030 "bfin/Makefile.sim") CONFIG_FILES="$CONFIG_FILES bfin/Makefile.sim:bfin/Makefile.in" ;;
16031 "bfin/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bfin/Makefile" ;;
16032 "depdir-bfin") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-bfin" ;;
16033 "depdir-bpf") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-bpf" ;;
16034 "cr16/Makefile.sim") CONFIG_FILES="$CONFIG_FILES cr16/Makefile.sim:cr16/Makefile.in" ;;
16035 "cr16/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS cr16/Makefile" ;;
16036 "depdir-cr16") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-cr16" ;;
16037 "cris/Makefile.sim") CONFIG_FILES="$CONFIG_FILES cris/Makefile.sim:cris/Makefile.in" ;;
16038 "cris/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS cris/Makefile" ;;
16039 "depdir-cris") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-cris" ;;
16040 "d10v/Makefile.sim") CONFIG_FILES="$CONFIG_FILES d10v/Makefile.sim:d10v/Makefile.in" ;;
16041 "d10v/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS d10v/Makefile" ;;
16042 "depdir-d10v") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-d10v" ;;
16043 "frv/Makefile.sim") CONFIG_FILES="$CONFIG_FILES frv/Makefile.sim:frv/Makefile.in" ;;
16044 "frv/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS frv/Makefile" ;;
16045 "depdir-frv") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-frv" ;;
16046 "ft32/Makefile.sim") CONFIG_FILES="$CONFIG_FILES ft32/Makefile.sim:ft32/Makefile.in" ;;
16047 "ft32/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS ft32/Makefile" ;;
16048 "depdir-ft32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-ft32" ;;
16049 "h8300/Makefile.sim") CONFIG_FILES="$CONFIG_FILES h8300/Makefile.sim:h8300/Makefile.in" ;;
16050 "h8300/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS h8300/Makefile" ;;
16051 "depdir-h8300") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-h8300" ;;
16052 "iq2000/Makefile.sim") CONFIG_FILES="$CONFIG_FILES iq2000/Makefile.sim:iq2000/Makefile.in" ;;
16053 "iq2000/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS iq2000/Makefile" ;;
16054 "depdir-iq2000") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-iq2000" ;;
16055 "lm32/Makefile.sim") CONFIG_FILES="$CONFIG_FILES lm32/Makefile.sim:lm32/Makefile.in" ;;
16056 "lm32/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lm32/Makefile" ;;
16057 "depdir-lm32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-lm32" ;;
16058 "m32c/Makefile.sim") CONFIG_FILES="$CONFIG_FILES m32c/Makefile.sim:m32c/Makefile.in" ;;
16059 "m32c/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS m32c/Makefile" ;;
16060 "depdir-m32c") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m32c" ;;
16061 "m32r/Makefile.sim") CONFIG_FILES="$CONFIG_FILES m32r/Makefile.sim:m32r/Makefile.in" ;;
16062 "m32r/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS m32r/Makefile" ;;
16063 "depdir-m32r") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m32r" ;;
16064 "m68hc11/Makefile.sim") CONFIG_FILES="$CONFIG_FILES m68hc11/Makefile.sim:m68hc11/Makefile.in" ;;
16065 "m68hc11/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS m68hc11/Makefile" ;;
16066 "depdir-m68hc11") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m68hc11" ;;
16067 "mcore/Makefile.sim") CONFIG_FILES="$CONFIG_FILES mcore/Makefile.sim:mcore/Makefile.in" ;;
16068 "mcore/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS mcore/Makefile" ;;
16069 "depdir-mcore") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mcore" ;;
16070 "microblaze/Makefile.sim") CONFIG_FILES="$CONFIG_FILES microblaze/Makefile.sim:microblaze/Makefile.in" ;;
16071 "microblaze/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS microblaze/Makefile" ;;
16072 "depdir-microblaze") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-microblaze" ;;
16073 "depdir-mips") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mips" ;;
16074 "depdir-mn10300") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mn10300" ;;
16075 "moxie/Makefile.sim") CONFIG_FILES="$CONFIG_FILES moxie/Makefile.sim:moxie/Makefile.in" ;;
16076 "moxie/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS moxie/Makefile" ;;
16077 "depdir-moxie") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-moxie" ;;
16078 "msp430/Makefile.sim") CONFIG_FILES="$CONFIG_FILES msp430/Makefile.sim:msp430/Makefile.in" ;;
16079 "msp430/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS msp430/Makefile" ;;
16080 "depdir-msp430") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-msp430" ;;
16081 "depdir-or1k") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-or1k" ;;
16082 "depdir-ppc") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-ppc" ;;
16083 "pru/Makefile.sim") CONFIG_FILES="$CONFIG_FILES pru/Makefile.sim:pru/Makefile.in" ;;
16084 "pru/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS pru/Makefile" ;;
16085 "depdir-pru") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-pru" ;;
16086 "depdir-riscv") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-riscv" ;;
16087 "rl78/Makefile.sim") CONFIG_FILES="$CONFIG_FILES rl78/Makefile.sim:rl78/Makefile.in" ;;
16088 "rl78/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS rl78/Makefile" ;;
16089 "depdir-rl78") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-rl78" ;;
16090 "rx/Makefile.sim") CONFIG_FILES="$CONFIG_FILES rx/Makefile.sim:rx/Makefile.in" ;;
16091 "rx/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS rx/Makefile" ;;
16092 "depdir-rx") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-rx" ;;
16093 "sh/Makefile.sim") CONFIG_FILES="$CONFIG_FILES sh/Makefile.sim:sh/Makefile.in" ;;
16094 "sh/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS sh/Makefile" ;;
16095 "depdir-sh") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-sh" ;;
16096 "erc32/Makefile.sim") CONFIG_FILES="$CONFIG_FILES erc32/Makefile.sim:erc32/Makefile.in" ;;
16097 "erc32/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS erc32/Makefile" ;;
16098 "depdir-erc32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-erc32" ;;
16099 "depdir-v850") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-v850" ;;
16100 "example-synacor/Makefile.sim") CONFIG_FILES="$CONFIG_FILES example-synacor/Makefile.sim:example-synacor/Makefile.in" ;;
16101 "example-synacor/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS example-synacor/Makefile" ;;
16102 "depdir-example-synacor") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-example-synacor" ;;
16103 "arch-subdir.mk") CONFIG_FILES="$CONFIG_FILES arch-subdir.mk" ;;
16104 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16105
16106 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16107 esac
16108 done
16109
16110
16111 # If the user did not use the arguments to specify the items to instantiate,
16112 # then the envvar interface is used. Set only those that are not.
16113 # We use the long form for the default assignment because of an extremely
16114 # bizarre bug on SunOS 4.1.3.
16115 if $ac_need_defaults; then
16116 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16117 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16118 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16119 fi
16120
16121 # Have a temporary directory for convenience. Make it in the build tree
16122 # simply because there is no reason against having it here, and in addition,
16123 # creating and moving files from /tmp can sometimes cause problems.
16124 # Hook for its removal unless debugging.
16125 # Note that there is a small window in which the directory will not be cleaned:
16126 # after its creation but before its name has been assigned to `$tmp'.
16127 $debug ||
16128 {
16129 tmp= ac_tmp=
16130 trap 'exit_status=$?
16131 : "${ac_tmp:=$tmp}"
16132 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16133 ' 0
16134 trap 'as_fn_exit 1' 1 2 13 15
16135 }
16136 # Create a (secure) tmp directory for tmp files.
16137
16138 {
16139 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16140 test -d "$tmp"
16141 } ||
16142 {
16143 tmp=./conf$$-$RANDOM
16144 (umask 077 && mkdir "$tmp")
16145 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16146 ac_tmp=$tmp
16147
16148 # Set up the scripts for CONFIG_FILES section.
16149 # No need to generate them if there are no CONFIG_FILES.
16150 # This happens for instance with `./config.status config.h'.
16151 if test -n "$CONFIG_FILES"; then
16152
16153
16154 ac_cr=`echo X | tr X '\015'`
16155 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16156 # But we know of no other shell where ac_cr would be empty at this
16157 # point, so we can use a bashism as a fallback.
16158 if test "x$ac_cr" = x; then
16159 eval ac_cr=\$\'\\r\'
16160 fi
16161 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16162 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16163 ac_cs_awk_cr='\\r'
16164 else
16165 ac_cs_awk_cr=$ac_cr
16166 fi
16167
16168 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16169 _ACEOF
16170
16171
16172 {
16173 echo "cat >conf$$subs.awk <<_ACEOF" &&
16174 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16175 echo "_ACEOF"
16176 } >conf$$subs.sh ||
16177 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16178 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16179 ac_delim='%!_!# '
16180 for ac_last_try in false false false false false :; do
16181 . ./conf$$subs.sh ||
16182 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16183
16184 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16185 if test $ac_delim_n = $ac_delim_num; then
16186 break
16187 elif $ac_last_try; then
16188 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16189 else
16190 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16191 fi
16192 done
16193 rm -f conf$$subs.sh
16194
16195 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16196 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16197 _ACEOF
16198 sed -n '
16199 h
16200 s/^/S["/; s/!.*/"]=/
16201 p
16202 g
16203 s/^[^!]*!//
16204 :repl
16205 t repl
16206 s/'"$ac_delim"'$//
16207 t delim
16208 :nl
16209 h
16210 s/\(.\{148\}\)..*/\1/
16211 t more1
16212 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16213 p
16214 n
16215 b repl
16216 :more1
16217 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16218 p
16219 g
16220 s/.\{148\}//
16221 t nl
16222 :delim
16223 h
16224 s/\(.\{148\}\)..*/\1/
16225 t more2
16226 s/["\\]/\\&/g; s/^/"/; s/$/"/
16227 p
16228 b
16229 :more2
16230 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16231 p
16232 g
16233 s/.\{148\}//
16234 t delim
16235 ' <conf$$subs.awk | sed '
16236 /^[^""]/{
16237 N
16238 s/\n//
16239 }
16240 ' >>$CONFIG_STATUS || ac_write_fail=1
16241 rm -f conf$$subs.awk
16242 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16243 _ACAWK
16244 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16245 for (key in S) S_is_set[key] = 1
16246 FS = "\a"
16247
16248 }
16249 {
16250 line = $ 0
16251 nfields = split(line, field, "@")
16252 substed = 0
16253 len = length(field[1])
16254 for (i = 2; i < nfields; i++) {
16255 key = field[i]
16256 keylen = length(key)
16257 if (S_is_set[key]) {
16258 value = S[key]
16259 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16260 len += length(value) + length(field[++i])
16261 substed = 1
16262 } else
16263 len += 1 + keylen
16264 }
16265
16266 print line
16267 }
16268
16269 _ACAWK
16270 _ACEOF
16271 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16272 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16273 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16274 else
16275 cat
16276 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16277 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16278 _ACEOF
16279
16280 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16281 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16282 # trailing colons and then remove the whole line if VPATH becomes empty
16283 # (actually we leave an empty line to preserve line numbers).
16284 if test "x$srcdir" = x.; then
16285 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16286 h
16287 s///
16288 s/^/:/
16289 s/[ ]*$/:/
16290 s/:\$(srcdir):/:/g
16291 s/:\${srcdir}:/:/g
16292 s/:@srcdir@:/:/g
16293 s/^:*//
16294 s/:*$//
16295 x
16296 s/\(=[ ]*\).*/\1/
16297 G
16298 s/\n//
16299 s/^[^=]*=[ ]*$//
16300 }'
16301 fi
16302
16303 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16304 fi # test -n "$CONFIG_FILES"
16305
16306 # Set up the scripts for CONFIG_HEADERS section.
16307 # No need to generate them if there are no CONFIG_HEADERS.
16308 # This happens for instance with `./config.status Makefile'.
16309 if test -n "$CONFIG_HEADERS"; then
16310 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16311 BEGIN {
16312 _ACEOF
16313
16314 # Transform confdefs.h into an awk script `defines.awk', embedded as
16315 # here-document in config.status, that substitutes the proper values into
16316 # config.h.in to produce config.h.
16317
16318 # Create a delimiter string that does not exist in confdefs.h, to ease
16319 # handling of long lines.
16320 ac_delim='%!_!# '
16321 for ac_last_try in false false :; do
16322 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16323 if test -z "$ac_tt"; then
16324 break
16325 elif $ac_last_try; then
16326 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16327 else
16328 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16329 fi
16330 done
16331
16332 # For the awk script, D is an array of macro values keyed by name,
16333 # likewise P contains macro parameters if any. Preserve backslash
16334 # newline sequences.
16335
16336 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16337 sed -n '
16338 s/.\{148\}/&'"$ac_delim"'/g
16339 t rset
16340 :rset
16341 s/^[ ]*#[ ]*define[ ][ ]*/ /
16342 t def
16343 d
16344 :def
16345 s/\\$//
16346 t bsnl
16347 s/["\\]/\\&/g
16348 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16349 D["\1"]=" \3"/p
16350 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16351 d
16352 :bsnl
16353 s/["\\]/\\&/g
16354 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16355 D["\1"]=" \3\\\\\\n"\\/p
16356 t cont
16357 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16358 t cont
16359 d
16360 :cont
16361 n
16362 s/.\{148\}/&'"$ac_delim"'/g
16363 t clear
16364 :clear
16365 s/\\$//
16366 t bsnlc
16367 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16368 d
16369 :bsnlc
16370 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16371 b cont
16372 ' <confdefs.h | sed '
16373 s/'"$ac_delim"'/"\\\
16374 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16375
16376 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16377 for (key in D) D_is_set[key] = 1
16378 FS = "\a"
16379 }
16380 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16381 line = \$ 0
16382 split(line, arg, " ")
16383 if (arg[1] == "#") {
16384 defundef = arg[2]
16385 mac1 = arg[3]
16386 } else {
16387 defundef = substr(arg[1], 2)
16388 mac1 = arg[2]
16389 }
16390 split(mac1, mac2, "(") #)
16391 macro = mac2[1]
16392 prefix = substr(line, 1, index(line, defundef) - 1)
16393 if (D_is_set[macro]) {
16394 # Preserve the white space surrounding the "#".
16395 print prefix "define", macro P[macro] D[macro]
16396 next
16397 } else {
16398 # Replace #undef with comments. This is necessary, for example,
16399 # in the case of _POSIX_SOURCE, which is predefined and required
16400 # on some systems where configure will not decide to define it.
16401 if (defundef == "undef") {
16402 print "/*", prefix defundef, macro, "*/"
16403 next
16404 }
16405 }
16406 }
16407 { print }
16408 _ACAWK
16409 _ACEOF
16410 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16411 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16412 fi # test -n "$CONFIG_HEADERS"
16413
16414
16415 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16416 shift
16417 for ac_tag
16418 do
16419 case $ac_tag in
16420 :[FHLC]) ac_mode=$ac_tag; continue;;
16421 esac
16422 case $ac_mode$ac_tag in
16423 :[FHL]*:*);;
16424 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16425 :[FH]-) ac_tag=-:-;;
16426 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16427 esac
16428 ac_save_IFS=$IFS
16429 IFS=:
16430 set x $ac_tag
16431 IFS=$ac_save_IFS
16432 shift
16433 ac_file=$1
16434 shift
16435
16436 case $ac_mode in
16437 :L) ac_source=$1;;
16438 :[FH])
16439 ac_file_inputs=
16440 for ac_f
16441 do
16442 case $ac_f in
16443 -) ac_f="$ac_tmp/stdin";;
16444 *) # Look for the file first in the build tree, then in the source tree
16445 # (if the path is not absolute). The absolute path cannot be DOS-style,
16446 # because $ac_f cannot contain `:'.
16447 test -f "$ac_f" ||
16448 case $ac_f in
16449 [\\/$]*) false;;
16450 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16451 esac ||
16452 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16453 esac
16454 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16455 as_fn_append ac_file_inputs " '$ac_f'"
16456 done
16457
16458 # Let's still pretend it is `configure' which instantiates (i.e., don't
16459 # use $as_me), people would be surprised to read:
16460 # /* config.h. Generated by config.status. */
16461 configure_input='Generated from '`
16462 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16463 `' by configure.'
16464 if test x"$ac_file" != x-; then
16465 configure_input="$ac_file. $configure_input"
16466 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16467 $as_echo "$as_me: creating $ac_file" >&6;}
16468 fi
16469 # Neutralize special characters interpreted by sed in replacement strings.
16470 case $configure_input in #(
16471 *\&* | *\|* | *\\* )
16472 ac_sed_conf_input=`$as_echo "$configure_input" |
16473 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16474 *) ac_sed_conf_input=$configure_input;;
16475 esac
16476
16477 case $ac_tag in
16478 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16479 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16480 esac
16481 ;;
16482 esac
16483
16484 ac_dir=`$as_dirname -- "$ac_file" ||
16485 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16486 X"$ac_file" : 'X\(//\)[^/]' \| \
16487 X"$ac_file" : 'X\(//\)$' \| \
16488 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16489 $as_echo X"$ac_file" |
16490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16491 s//\1/
16492 q
16493 }
16494 /^X\(\/\/\)[^/].*/{
16495 s//\1/
16496 q
16497 }
16498 /^X\(\/\/\)$/{
16499 s//\1/
16500 q
16501 }
16502 /^X\(\/\).*/{
16503 s//\1/
16504 q
16505 }
16506 s/.*/./; q'`
16507 as_dir="$ac_dir"; as_fn_mkdir_p
16508 ac_builddir=.
16509
16510 case "$ac_dir" in
16511 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16512 *)
16513 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16514 # A ".." for each directory in $ac_dir_suffix.
16515 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16516 case $ac_top_builddir_sub in
16517 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16518 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16519 esac ;;
16520 esac
16521 ac_abs_top_builddir=$ac_pwd
16522 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16523 # for backward compatibility:
16524 ac_top_builddir=$ac_top_build_prefix
16525
16526 case $srcdir in
16527 .) # We are building in place.
16528 ac_srcdir=.
16529 ac_top_srcdir=$ac_top_builddir_sub
16530 ac_abs_top_srcdir=$ac_pwd ;;
16531 [\\/]* | ?:[\\/]* ) # Absolute name.
16532 ac_srcdir=$srcdir$ac_dir_suffix;
16533 ac_top_srcdir=$srcdir
16534 ac_abs_top_srcdir=$srcdir ;;
16535 *) # Relative name.
16536 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16537 ac_top_srcdir=$ac_top_build_prefix$srcdir
16538 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16539 esac
16540 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16541
16542
16543 case $ac_mode in
16544 :F)
16545 #
16546 # CONFIG_FILE
16547 #
16548
16549 case $INSTALL in
16550 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16551 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16552 esac
16553 ac_MKDIR_P=$MKDIR_P
16554 case $MKDIR_P in
16555 [\\/$]* | ?:[\\/]* ) ;;
16556 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16557 esac
16558 _ACEOF
16559
16560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16561 # If the template does not know about datarootdir, expand it.
16562 # FIXME: This hack should be removed a few years after 2.60.
16563 ac_datarootdir_hack=; ac_datarootdir_seen=
16564 ac_sed_dataroot='
16565 /datarootdir/ {
16566 p
16567 q
16568 }
16569 /@datadir@/p
16570 /@docdir@/p
16571 /@infodir@/p
16572 /@localedir@/p
16573 /@mandir@/p'
16574 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16575 *datarootdir*) ac_datarootdir_seen=yes;;
16576 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16578 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16579 _ACEOF
16580 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16581 ac_datarootdir_hack='
16582 s&@datadir@&$datadir&g
16583 s&@docdir@&$docdir&g
16584 s&@infodir@&$infodir&g
16585 s&@localedir@&$localedir&g
16586 s&@mandir@&$mandir&g
16587 s&\\\${datarootdir}&$datarootdir&g' ;;
16588 esac
16589 _ACEOF
16590
16591 # Neutralize VPATH when `$srcdir' = `.'.
16592 # Shell code in configure.ac might set extrasub.
16593 # FIXME: do we really want to maintain this feature?
16594 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16595 ac_sed_extra="$ac_vpsub
16596 $extrasub
16597 _ACEOF
16598 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16599 :t
16600 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16601 s|@configure_input@|$ac_sed_conf_input|;t t
16602 s&@top_builddir@&$ac_top_builddir_sub&;t t
16603 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16604 s&@srcdir@&$ac_srcdir&;t t
16605 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16606 s&@top_srcdir@&$ac_top_srcdir&;t t
16607 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16608 s&@builddir@&$ac_builddir&;t t
16609 s&@abs_builddir@&$ac_abs_builddir&;t t
16610 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16611 s&@INSTALL@&$ac_INSTALL&;t t
16612 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16613 $ac_datarootdir_hack
16614 "
16615 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16616 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16617
16618 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16619 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16620 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16621 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16623 which seems to be undefined. Please make sure it is defined" >&5
16624 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16625 which seems to be undefined. Please make sure it is defined" >&2;}
16626
16627 rm -f "$ac_tmp/stdin"
16628 case $ac_file in
16629 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16630 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16631 esac \
16632 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16633 ;;
16634 :H)
16635 #
16636 # CONFIG_HEADER
16637 #
16638 if test x"$ac_file" != x-; then
16639 {
16640 $as_echo "/* $configure_input */" \
16641 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16642 } >"$ac_tmp/config.h" \
16643 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16644 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16645 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16646 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16647 else
16648 rm -f "$ac_file"
16649 mv "$ac_tmp/config.h" "$ac_file" \
16650 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16651 fi
16652 else
16653 $as_echo "/* $configure_input */" \
16654 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16655 || as_fn_error $? "could not create -" "$LINENO" 5
16656 fi
16657 # Compute "$ac_file"'s index in $config_headers.
16658 _am_arg="$ac_file"
16659 _am_stamp_count=1
16660 for _am_header in $config_headers :; do
16661 case $_am_header in
16662 $_am_arg | $_am_arg:* )
16663 break ;;
16664 * )
16665 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16666 esac
16667 done
16668 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16669 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16670 X"$_am_arg" : 'X\(//\)[^/]' \| \
16671 X"$_am_arg" : 'X\(//\)$' \| \
16672 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16673 $as_echo X"$_am_arg" |
16674 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16675 s//\1/
16676 q
16677 }
16678 /^X\(\/\/\)[^/].*/{
16679 s//\1/
16680 q
16681 }
16682 /^X\(\/\/\)$/{
16683 s//\1/
16684 q
16685 }
16686 /^X\(\/\).*/{
16687 s//\1/
16688 q
16689 }
16690 s/.*/./; q'`/stamp-h$_am_stamp_count
16691 ;;
16692
16693 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16694 $as_echo "$as_me: executing $ac_file commands" >&6;}
16695 ;;
16696 esac
16697
16698
16699 case $ac_file$ac_mode in
16700 "libtool":C)
16701
16702 # See if we are running on zsh, and set the options which allow our
16703 # commands through without removal of \ escapes.
16704 if test -n "${ZSH_VERSION+set}" ; then
16705 setopt NO_GLOB_SUBST
16706 fi
16707
16708 cfgfile="${ofile}T"
16709 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16710 $RM "$cfgfile"
16711
16712 cat <<_LT_EOF >> "$cfgfile"
16713 #! $SHELL
16714
16715 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16716 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16717 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16718 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16719 #
16720 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16721 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16722 # Written by Gordon Matzigkeit, 1996
16723 #
16724 # This file is part of GNU Libtool.
16725 #
16726 # GNU Libtool is free software; you can redistribute it and/or
16727 # modify it under the terms of the GNU General Public License as
16728 # published by the Free Software Foundation; either version 2 of
16729 # the License, or (at your option) any later version.
16730 #
16731 # As a special exception to the GNU General Public License,
16732 # if you distribute this file as part of a program or library that
16733 # is built using GNU Libtool, you may include this file under the
16734 # same distribution terms that you use for the rest of that program.
16735 #
16736 # GNU Libtool is distributed in the hope that it will be useful,
16737 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16738 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16739 # GNU General Public License for more details.
16740 #
16741 # You should have received a copy of the GNU General Public License
16742 # along with GNU Libtool; see the file COPYING. If not, a copy
16743 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16744 # obtained by writing to the Free Software Foundation, Inc.,
16745 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16746
16747
16748 # The names of the tagged configurations supported by this script.
16749 available_tags=""
16750
16751 # ### BEGIN LIBTOOL CONFIG
16752
16753 # Which release of libtool.m4 was used?
16754 macro_version=$macro_version
16755 macro_revision=$macro_revision
16756
16757 # Whether or not to build shared libraries.
16758 build_libtool_libs=$enable_shared
16759
16760 # Whether or not to build static libraries.
16761 build_old_libs=$enable_static
16762
16763 # What type of objects to build.
16764 pic_mode=$pic_mode
16765
16766 # Whether or not to optimize for fast installation.
16767 fast_install=$enable_fast_install
16768
16769 # Shell to use when invoking shell scripts.
16770 SHELL=$lt_SHELL
16771
16772 # An echo program that protects backslashes.
16773 ECHO=$lt_ECHO
16774
16775 # The host system.
16776 host_alias=$host_alias
16777 host=$host
16778 host_os=$host_os
16779
16780 # The build system.
16781 build_alias=$build_alias
16782 build=$build
16783 build_os=$build_os
16784
16785 # A sed program that does not truncate output.
16786 SED=$lt_SED
16787
16788 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16789 Xsed="\$SED -e 1s/^X//"
16790
16791 # A grep program that handles long lines.
16792 GREP=$lt_GREP
16793
16794 # An ERE matcher.
16795 EGREP=$lt_EGREP
16796
16797 # A literal string matcher.
16798 FGREP=$lt_FGREP
16799
16800 # A BSD- or MS-compatible name lister.
16801 NM=$lt_NM
16802
16803 # Whether we need soft or hard links.
16804 LN_S=$lt_LN_S
16805
16806 # What is the maximum length of a command?
16807 max_cmd_len=$max_cmd_len
16808
16809 # Object file suffix (normally "o").
16810 objext=$ac_objext
16811
16812 # Executable file suffix (normally "").
16813 exeext=$exeext
16814
16815 # whether the shell understands "unset".
16816 lt_unset=$lt_unset
16817
16818 # turn spaces into newlines.
16819 SP2NL=$lt_lt_SP2NL
16820
16821 # turn newlines into spaces.
16822 NL2SP=$lt_lt_NL2SP
16823
16824 # An object symbol dumper.
16825 OBJDUMP=$lt_OBJDUMP
16826
16827 # Method to check whether dependent libraries are shared objects.
16828 deplibs_check_method=$lt_deplibs_check_method
16829
16830 # Command to use when deplibs_check_method == "file_magic".
16831 file_magic_cmd=$lt_file_magic_cmd
16832
16833 # The archiver.
16834 AR=$lt_AR
16835 AR_FLAGS=$lt_AR_FLAGS
16836
16837 # A symbol stripping program.
16838 STRIP=$lt_STRIP
16839
16840 # Commands used to install an old-style archive.
16841 RANLIB=$lt_RANLIB
16842 old_postinstall_cmds=$lt_old_postinstall_cmds
16843 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16844
16845 # Whether to use a lock for old archive extraction.
16846 lock_old_archive_extraction=$lock_old_archive_extraction
16847
16848 # A C compiler.
16849 LTCC=$lt_CC
16850
16851 # LTCC compiler flags.
16852 LTCFLAGS=$lt_CFLAGS
16853
16854 # Take the output of nm and produce a listing of raw symbols and C names.
16855 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16856
16857 # Transform the output of nm in a proper C declaration.
16858 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16859
16860 # Transform the output of nm in a C name address pair.
16861 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16862
16863 # Transform the output of nm in a C name address pair when lib prefix is needed.
16864 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16865
16866 # The name of the directory that contains temporary libtool files.
16867 objdir=$objdir
16868
16869 # Used to examine libraries when file_magic_cmd begins with "file".
16870 MAGIC_CMD=$MAGIC_CMD
16871
16872 # Must we lock files when doing compilation?
16873 need_locks=$lt_need_locks
16874
16875 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16876 DSYMUTIL=$lt_DSYMUTIL
16877
16878 # Tool to change global to local symbols on Mac OS X.
16879 NMEDIT=$lt_NMEDIT
16880
16881 # Tool to manipulate fat objects and archives on Mac OS X.
16882 LIPO=$lt_LIPO
16883
16884 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16885 OTOOL=$lt_OTOOL
16886
16887 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16888 OTOOL64=$lt_OTOOL64
16889
16890 # Old archive suffix (normally "a").
16891 libext=$libext
16892
16893 # Shared library suffix (normally ".so").
16894 shrext_cmds=$lt_shrext_cmds
16895
16896 # The commands to extract the exported symbol list from a shared archive.
16897 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16898
16899 # Variables whose values should be saved in libtool wrapper scripts and
16900 # restored at link time.
16901 variables_saved_for_relink=$lt_variables_saved_for_relink
16902
16903 # Do we need the "lib" prefix for modules?
16904 need_lib_prefix=$need_lib_prefix
16905
16906 # Do we need a version for libraries?
16907 need_version=$need_version
16908
16909 # Library versioning type.
16910 version_type=$version_type
16911
16912 # Shared library runtime path variable.
16913 runpath_var=$runpath_var
16914
16915 # Shared library path variable.
16916 shlibpath_var=$shlibpath_var
16917
16918 # Is shlibpath searched before the hard-coded library search path?
16919 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16920
16921 # Format of library name prefix.
16922 libname_spec=$lt_libname_spec
16923
16924 # List of archive names. First name is the real one, the rest are links.
16925 # The last name is the one that the linker finds with -lNAME
16926 library_names_spec=$lt_library_names_spec
16927
16928 # The coded name of the library, if different from the real name.
16929 soname_spec=$lt_soname_spec
16930
16931 # Permission mode override for installation of shared libraries.
16932 install_override_mode=$lt_install_override_mode
16933
16934 # Command to use after installation of a shared archive.
16935 postinstall_cmds=$lt_postinstall_cmds
16936
16937 # Command to use after uninstallation of a shared archive.
16938 postuninstall_cmds=$lt_postuninstall_cmds
16939
16940 # Commands used to finish a libtool library installation in a directory.
16941 finish_cmds=$lt_finish_cmds
16942
16943 # As "finish_cmds", except a single script fragment to be evaled but
16944 # not shown.
16945 finish_eval=$lt_finish_eval
16946
16947 # Whether we should hardcode library paths into libraries.
16948 hardcode_into_libs=$hardcode_into_libs
16949
16950 # Compile-time system search path for libraries.
16951 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16952
16953 # Run-time system search path for libraries.
16954 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16955
16956 # Whether dlopen is supported.
16957 dlopen_support=$enable_dlopen
16958
16959 # Whether dlopen of programs is supported.
16960 dlopen_self=$enable_dlopen_self
16961
16962 # Whether dlopen of statically linked programs is supported.
16963 dlopen_self_static=$enable_dlopen_self_static
16964
16965 # Commands to strip libraries.
16966 old_striplib=$lt_old_striplib
16967 striplib=$lt_striplib
16968
16969
16970 # The linker used to build libraries.
16971 LD=$lt_LD
16972
16973 # How to create reloadable object files.
16974 reload_flag=$lt_reload_flag
16975 reload_cmds=$lt_reload_cmds
16976
16977 # Commands used to build an old-style archive.
16978 old_archive_cmds=$lt_old_archive_cmds
16979
16980 # A language specific compiler.
16981 CC=$lt_compiler
16982
16983 # Is the compiler the GNU compiler?
16984 with_gcc=$GCC
16985
16986 # Compiler flag to turn off builtin functions.
16987 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16988
16989 # How to pass a linker flag through the compiler.
16990 wl=$lt_lt_prog_compiler_wl
16991
16992 # Additional compiler flags for building library objects.
16993 pic_flag=$lt_lt_prog_compiler_pic
16994
16995 # Compiler flag to prevent dynamic linking.
16996 link_static_flag=$lt_lt_prog_compiler_static
16997
16998 # Does compiler simultaneously support -c and -o options?
16999 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17000
17001 # Whether or not to add -lc for building shared libraries.
17002 build_libtool_need_lc=$archive_cmds_need_lc
17003
17004 # Whether or not to disallow shared libs when runtime libs are static.
17005 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17006
17007 # Compiler flag to allow reflexive dlopens.
17008 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17009
17010 # Compiler flag to generate shared objects directly from archives.
17011 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17012
17013 # Whether the compiler copes with passing no objects directly.
17014 compiler_needs_object=$lt_compiler_needs_object
17015
17016 # Create an old-style archive from a shared archive.
17017 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17018
17019 # Create a temporary old-style archive to link instead of a shared archive.
17020 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17021
17022 # Commands used to build a shared archive.
17023 archive_cmds=$lt_archive_cmds
17024 archive_expsym_cmds=$lt_archive_expsym_cmds
17025
17026 # Commands used to build a loadable module if different from building
17027 # a shared archive.
17028 module_cmds=$lt_module_cmds
17029 module_expsym_cmds=$lt_module_expsym_cmds
17030
17031 # Whether we are building with GNU ld or not.
17032 with_gnu_ld=$lt_with_gnu_ld
17033
17034 # Flag that allows shared libraries with undefined symbols to be built.
17035 allow_undefined_flag=$lt_allow_undefined_flag
17036
17037 # Flag that enforces no undefined symbols.
17038 no_undefined_flag=$lt_no_undefined_flag
17039
17040 # Flag to hardcode \$libdir into a binary during linking.
17041 # This must work even if \$libdir does not exist
17042 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17043
17044 # If ld is used when linking, flag to hardcode \$libdir into a binary
17045 # during linking. This must work even if \$libdir does not exist.
17046 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17047
17048 # Whether we need a single "-rpath" flag with a separated argument.
17049 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17050
17051 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17052 # DIR into the resulting binary.
17053 hardcode_direct=$hardcode_direct
17054
17055 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17056 # DIR into the resulting binary and the resulting library dependency is
17057 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17058 # library is relocated.
17059 hardcode_direct_absolute=$hardcode_direct_absolute
17060
17061 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17062 # into the resulting binary.
17063 hardcode_minus_L=$hardcode_minus_L
17064
17065 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17066 # into the resulting binary.
17067 hardcode_shlibpath_var=$hardcode_shlibpath_var
17068
17069 # Set to "yes" if building a shared library automatically hardcodes DIR
17070 # into the library and all subsequent libraries and executables linked
17071 # against it.
17072 hardcode_automatic=$hardcode_automatic
17073
17074 # Set to yes if linker adds runtime paths of dependent libraries
17075 # to runtime path list.
17076 inherit_rpath=$inherit_rpath
17077
17078 # Whether libtool must link a program against all its dependency libraries.
17079 link_all_deplibs=$link_all_deplibs
17080
17081 # Fix the shell variable \$srcfile for the compiler.
17082 fix_srcfile_path=$lt_fix_srcfile_path
17083
17084 # Set to "yes" if exported symbols are required.
17085 always_export_symbols=$always_export_symbols
17086
17087 # The commands to list exported symbols.
17088 export_symbols_cmds=$lt_export_symbols_cmds
17089
17090 # Symbols that should not be listed in the preloaded symbols.
17091 exclude_expsyms=$lt_exclude_expsyms
17092
17093 # Symbols that must always be exported.
17094 include_expsyms=$lt_include_expsyms
17095
17096 # Commands necessary for linking programs (against libraries) with templates.
17097 prelink_cmds=$lt_prelink_cmds
17098
17099 # Specify filename containing input files.
17100 file_list_spec=$lt_file_list_spec
17101
17102 # How to hardcode a shared library path into an executable.
17103 hardcode_action=$hardcode_action
17104
17105 # ### END LIBTOOL CONFIG
17106
17107 _LT_EOF
17108
17109 case $host_os in
17110 aix3*)
17111 cat <<\_LT_EOF >> "$cfgfile"
17112 # AIX sometimes has problems with the GCC collect2 program. For some
17113 # reason, if we set the COLLECT_NAMES environment variable, the problems
17114 # vanish in a puff of smoke.
17115 if test "X${COLLECT_NAMES+set}" != Xset; then
17116 COLLECT_NAMES=
17117 export COLLECT_NAMES
17118 fi
17119 _LT_EOF
17120 ;;
17121 esac
17122
17123
17124 ltmain="$ac_aux_dir/ltmain.sh"
17125
17126
17127 # We use sed instead of cat because bash on DJGPP gets confused if
17128 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17129 # text mode, it properly converts lines to CR/LF. This bash problem
17130 # is reportedly fixed, but why not run on old versions too?
17131 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17132 || (rm -f "$cfgfile"; exit 1)
17133
17134 case $xsi_shell in
17135 yes)
17136 cat << \_LT_EOF >> "$cfgfile"
17137
17138 # func_dirname file append nondir_replacement
17139 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17140 # otherwise set result to NONDIR_REPLACEMENT.
17141 func_dirname ()
17142 {
17143 case ${1} in
17144 */*) func_dirname_result="${1%/*}${2}" ;;
17145 * ) func_dirname_result="${3}" ;;
17146 esac
17147 }
17148
17149 # func_basename file
17150 func_basename ()
17151 {
17152 func_basename_result="${1##*/}"
17153 }
17154
17155 # func_dirname_and_basename file append nondir_replacement
17156 # perform func_basename and func_dirname in a single function
17157 # call:
17158 # dirname: Compute the dirname of FILE. If nonempty,
17159 # add APPEND to the result, otherwise set result
17160 # to NONDIR_REPLACEMENT.
17161 # value returned in "$func_dirname_result"
17162 # basename: Compute filename of FILE.
17163 # value retuned in "$func_basename_result"
17164 # Implementation must be kept synchronized with func_dirname
17165 # and func_basename. For efficiency, we do not delegate to
17166 # those functions but instead duplicate the functionality here.
17167 func_dirname_and_basename ()
17168 {
17169 case ${1} in
17170 */*) func_dirname_result="${1%/*}${2}" ;;
17171 * ) func_dirname_result="${3}" ;;
17172 esac
17173 func_basename_result="${1##*/}"
17174 }
17175
17176 # func_stripname prefix suffix name
17177 # strip PREFIX and SUFFIX off of NAME.
17178 # PREFIX and SUFFIX must not contain globbing or regex special
17179 # characters, hashes, percent signs, but SUFFIX may contain a leading
17180 # dot (in which case that matches only a dot).
17181 func_stripname ()
17182 {
17183 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17184 # positional parameters, so assign one to ordinary parameter first.
17185 func_stripname_result=${3}
17186 func_stripname_result=${func_stripname_result#"${1}"}
17187 func_stripname_result=${func_stripname_result%"${2}"}
17188 }
17189
17190 # func_opt_split
17191 func_opt_split ()
17192 {
17193 func_opt_split_opt=${1%%=*}
17194 func_opt_split_arg=${1#*=}
17195 }
17196
17197 # func_lo2o object
17198 func_lo2o ()
17199 {
17200 case ${1} in
17201 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17202 *) func_lo2o_result=${1} ;;
17203 esac
17204 }
17205
17206 # func_xform libobj-or-source
17207 func_xform ()
17208 {
17209 func_xform_result=${1%.*}.lo
17210 }
17211
17212 # func_arith arithmetic-term...
17213 func_arith ()
17214 {
17215 func_arith_result=$(( $* ))
17216 }
17217
17218 # func_len string
17219 # STRING may not start with a hyphen.
17220 func_len ()
17221 {
17222 func_len_result=${#1}
17223 }
17224
17225 _LT_EOF
17226 ;;
17227 *) # Bourne compatible functions.
17228 cat << \_LT_EOF >> "$cfgfile"
17229
17230 # func_dirname file append nondir_replacement
17231 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17232 # otherwise set result to NONDIR_REPLACEMENT.
17233 func_dirname ()
17234 {
17235 # Extract subdirectory from the argument.
17236 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17237 if test "X$func_dirname_result" = "X${1}"; then
17238 func_dirname_result="${3}"
17239 else
17240 func_dirname_result="$func_dirname_result${2}"
17241 fi
17242 }
17243
17244 # func_basename file
17245 func_basename ()
17246 {
17247 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17248 }
17249
17250
17251 # func_stripname prefix suffix name
17252 # strip PREFIX and SUFFIX off of NAME.
17253 # PREFIX and SUFFIX must not contain globbing or regex special
17254 # characters, hashes, percent signs, but SUFFIX may contain a leading
17255 # dot (in which case that matches only a dot).
17256 # func_strip_suffix prefix name
17257 func_stripname ()
17258 {
17259 case ${2} in
17260 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17261 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17262 esac
17263 }
17264
17265 # sed scripts:
17266 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17267 my_sed_long_arg='1s/^-[^=]*=//'
17268
17269 # func_opt_split
17270 func_opt_split ()
17271 {
17272 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17273 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17274 }
17275
17276 # func_lo2o object
17277 func_lo2o ()
17278 {
17279 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17280 }
17281
17282 # func_xform libobj-or-source
17283 func_xform ()
17284 {
17285 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17286 }
17287
17288 # func_arith arithmetic-term...
17289 func_arith ()
17290 {
17291 func_arith_result=`expr "$@"`
17292 }
17293
17294 # func_len string
17295 # STRING may not start with a hyphen.
17296 func_len ()
17297 {
17298 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17299 }
17300
17301 _LT_EOF
17302 esac
17303
17304 case $lt_shell_append in
17305 yes)
17306 cat << \_LT_EOF >> "$cfgfile"
17307
17308 # func_append var value
17309 # Append VALUE to the end of shell variable VAR.
17310 func_append ()
17311 {
17312 eval "$1+=\$2"
17313 }
17314 _LT_EOF
17315 ;;
17316 *)
17317 cat << \_LT_EOF >> "$cfgfile"
17318
17319 # func_append var value
17320 # Append VALUE to the end of shell variable VAR.
17321 func_append ()
17322 {
17323 eval "$1=\$$1\$2"
17324 }
17325
17326 _LT_EOF
17327 ;;
17328 esac
17329
17330
17331 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17332 || (rm -f "$cfgfile"; exit 1)
17333
17334 mv -f "$cfgfile" "$ofile" ||
17335 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17336 chmod +x "$ofile"
17337
17338 ;;
17339 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17340 # Older Autoconf quotes --file arguments for eval, but not when files
17341 # are listed without --file. Let's play safe and only enable the eval
17342 # if we detect the quoting.
17343 case $CONFIG_FILES in
17344 *\'*) eval set x "$CONFIG_FILES" ;;
17345 *) set x $CONFIG_FILES ;;
17346 esac
17347 shift
17348 for mf
17349 do
17350 # Strip MF so we end up with the name of the file.
17351 mf=`echo "$mf" | sed -e 's/:.*$//'`
17352 # Check whether this is an Automake generated Makefile or not.
17353 # We used to match only the files named 'Makefile.in', but
17354 # some people rename them; so instead we look at the file content.
17355 # Grep'ing the first line is not enough: some people post-process
17356 # each Makefile.in and add a new line on top of each file to say so.
17357 # Grep'ing the whole file is not good either: AIX grep has a line
17358 # limit of 2048, but all sed's we know have understand at least 4000.
17359 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17360 dirpart=`$as_dirname -- "$mf" ||
17361 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17362 X"$mf" : 'X\(//\)[^/]' \| \
17363 X"$mf" : 'X\(//\)$' \| \
17364 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17365 $as_echo X"$mf" |
17366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17367 s//\1/
17368 q
17369 }
17370 /^X\(\/\/\)[^/].*/{
17371 s//\1/
17372 q
17373 }
17374 /^X\(\/\/\)$/{
17375 s//\1/
17376 q
17377 }
17378 /^X\(\/\).*/{
17379 s//\1/
17380 q
17381 }
17382 s/.*/./; q'`
17383 else
17384 continue
17385 fi
17386 # Extract the definition of DEPDIR, am__include, and am__quote
17387 # from the Makefile without running 'make'.
17388 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17389 test -z "$DEPDIR" && continue
17390 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17391 test -z "$am__include" && continue
17392 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17393 # Find all dependency output files, they are included files with
17394 # $(DEPDIR) in their names. We invoke sed twice because it is the
17395 # simplest approach to changing $(DEPDIR) to its actual value in the
17396 # expansion.
17397 for file in `sed -n "
17398 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17399 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17400 # Make sure the directory exists.
17401 test -f "$dirpart/$file" && continue
17402 fdir=`$as_dirname -- "$file" ||
17403 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17404 X"$file" : 'X\(//\)[^/]' \| \
17405 X"$file" : 'X\(//\)$' \| \
17406 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17407 $as_echo X"$file" |
17408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17409 s//\1/
17410 q
17411 }
17412 /^X\(\/\/\)[^/].*/{
17413 s//\1/
17414 q
17415 }
17416 /^X\(\/\/\)$/{
17417 s//\1/
17418 q
17419 }
17420 /^X\(\/\).*/{
17421 s//\1/
17422 q
17423 }
17424 s/.*/./; q'`
17425 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17426 # echo "creating $dirpart/$file"
17427 echo '# dummy' > "$dirpart/$file"
17428 done
17429 done
17430 }
17431 ;;
17432 "aarch64/Makefile":C) sed -n \
17433 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17434 /^srcdir = / s:$:/aarch64:
17435 p
17436 }' \
17437 <Make-common.sim >aarch64/Makesim1.tmp
17438 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >aarch64/Makesim2.tmp
17439 sed -e '/^## COMMON_PRE_/ r aarch64/Makesim1.tmp' \
17440 -e '/^## COMMON_POST_/ r aarch64/Makesim2.tmp' \
17441 <aarch64/Makefile.sim >aarch64/Makefile
17442 rm -f aarch64/Makesim1.tmp aarch64/Makesim2.tmp
17443 ;;
17444 "depdir-aarch64":C) $SHELL $ac_aux_dir/mkinstalldirs aarch64/$DEPDIR ;;
17445 "arm/Makefile":C) sed -n \
17446 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17447 /^srcdir = / s:$:/arm:
17448 p
17449 }' \
17450 <Make-common.sim >arm/Makesim1.tmp
17451 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >arm/Makesim2.tmp
17452 sed -e '/^## COMMON_PRE_/ r arm/Makesim1.tmp' \
17453 -e '/^## COMMON_POST_/ r arm/Makesim2.tmp' \
17454 <arm/Makefile.sim >arm/Makefile
17455 rm -f arm/Makesim1.tmp arm/Makesim2.tmp
17456 ;;
17457 "depdir-arm":C) $SHELL $ac_aux_dir/mkinstalldirs arm/$DEPDIR ;;
17458 "avr/Makefile":C) sed -n \
17459 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17460 /^srcdir = / s:$:/avr:
17461 p
17462 }' \
17463 <Make-common.sim >avr/Makesim1.tmp
17464 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >avr/Makesim2.tmp
17465 sed -e '/^## COMMON_PRE_/ r avr/Makesim1.tmp' \
17466 -e '/^## COMMON_POST_/ r avr/Makesim2.tmp' \
17467 <avr/Makefile.sim >avr/Makefile
17468 rm -f avr/Makesim1.tmp avr/Makesim2.tmp
17469 ;;
17470 "depdir-avr":C) $SHELL $ac_aux_dir/mkinstalldirs avr/$DEPDIR ;;
17471 "bfin/Makefile":C) sed -n \
17472 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17473 /^srcdir = / s:$:/bfin:
17474 p
17475 }' \
17476 <Make-common.sim >bfin/Makesim1.tmp
17477 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >bfin/Makesim2.tmp
17478 sed -e '/^## COMMON_PRE_/ r bfin/Makesim1.tmp' \
17479 -e '/^## COMMON_POST_/ r bfin/Makesim2.tmp' \
17480 <bfin/Makefile.sim >bfin/Makefile
17481 rm -f bfin/Makesim1.tmp bfin/Makesim2.tmp
17482 ;;
17483 "depdir-bfin":C) $SHELL $ac_aux_dir/mkinstalldirs bfin/$DEPDIR ;;
17484 "depdir-bpf":C) $SHELL $ac_aux_dir/mkinstalldirs bpf/$DEPDIR ;;
17485 "cr16/Makefile":C) sed -n \
17486 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17487 /^srcdir = / s:$:/cr16:
17488 p
17489 }' \
17490 <Make-common.sim >cr16/Makesim1.tmp
17491 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >cr16/Makesim2.tmp
17492 sed -e '/^## COMMON_PRE_/ r cr16/Makesim1.tmp' \
17493 -e '/^## COMMON_POST_/ r cr16/Makesim2.tmp' \
17494 <cr16/Makefile.sim >cr16/Makefile
17495 rm -f cr16/Makesim1.tmp cr16/Makesim2.tmp
17496 ;;
17497 "depdir-cr16":C) $SHELL $ac_aux_dir/mkinstalldirs cr16/$DEPDIR ;;
17498 "cris/Makefile":C) sed -n \
17499 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17500 /^srcdir = / s:$:/cris:
17501 p
17502 }' \
17503 <Make-common.sim >cris/Makesim1.tmp
17504 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >cris/Makesim2.tmp
17505 sed -e '/^## COMMON_PRE_/ r cris/Makesim1.tmp' \
17506 -e '/^## COMMON_POST_/ r cris/Makesim2.tmp' \
17507 <cris/Makefile.sim >cris/Makefile
17508 rm -f cris/Makesim1.tmp cris/Makesim2.tmp
17509 ;;
17510 "depdir-cris":C) $SHELL $ac_aux_dir/mkinstalldirs cris/$DEPDIR ;;
17511 "d10v/Makefile":C) sed -n \
17512 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17513 /^srcdir = / s:$:/d10v:
17514 p
17515 }' \
17516 <Make-common.sim >d10v/Makesim1.tmp
17517 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >d10v/Makesim2.tmp
17518 sed -e '/^## COMMON_PRE_/ r d10v/Makesim1.tmp' \
17519 -e '/^## COMMON_POST_/ r d10v/Makesim2.tmp' \
17520 <d10v/Makefile.sim >d10v/Makefile
17521 rm -f d10v/Makesim1.tmp d10v/Makesim2.tmp
17522 ;;
17523 "depdir-d10v":C) $SHELL $ac_aux_dir/mkinstalldirs d10v/$DEPDIR ;;
17524 "frv/Makefile":C) sed -n \
17525 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17526 /^srcdir = / s:$:/frv:
17527 p
17528 }' \
17529 <Make-common.sim >frv/Makesim1.tmp
17530 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >frv/Makesim2.tmp
17531 sed -e '/^## COMMON_PRE_/ r frv/Makesim1.tmp' \
17532 -e '/^## COMMON_POST_/ r frv/Makesim2.tmp' \
17533 <frv/Makefile.sim >frv/Makefile
17534 rm -f frv/Makesim1.tmp frv/Makesim2.tmp
17535 ;;
17536 "depdir-frv":C) $SHELL $ac_aux_dir/mkinstalldirs frv/$DEPDIR ;;
17537 "ft32/Makefile":C) sed -n \
17538 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17539 /^srcdir = / s:$:/ft32:
17540 p
17541 }' \
17542 <Make-common.sim >ft32/Makesim1.tmp
17543 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >ft32/Makesim2.tmp
17544 sed -e '/^## COMMON_PRE_/ r ft32/Makesim1.tmp' \
17545 -e '/^## COMMON_POST_/ r ft32/Makesim2.tmp' \
17546 <ft32/Makefile.sim >ft32/Makefile
17547 rm -f ft32/Makesim1.tmp ft32/Makesim2.tmp
17548 ;;
17549 "depdir-ft32":C) $SHELL $ac_aux_dir/mkinstalldirs ft32/$DEPDIR ;;
17550 "h8300/Makefile":C) sed -n \
17551 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17552 /^srcdir = / s:$:/h8300:
17553 p
17554 }' \
17555 <Make-common.sim >h8300/Makesim1.tmp
17556 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >h8300/Makesim2.tmp
17557 sed -e '/^## COMMON_PRE_/ r h8300/Makesim1.tmp' \
17558 -e '/^## COMMON_POST_/ r h8300/Makesim2.tmp' \
17559 <h8300/Makefile.sim >h8300/Makefile
17560 rm -f h8300/Makesim1.tmp h8300/Makesim2.tmp
17561 ;;
17562 "depdir-h8300":C) $SHELL $ac_aux_dir/mkinstalldirs h8300/$DEPDIR ;;
17563 "iq2000/Makefile":C) sed -n \
17564 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17565 /^srcdir = / s:$:/iq2000:
17566 p
17567 }' \
17568 <Make-common.sim >iq2000/Makesim1.tmp
17569 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >iq2000/Makesim2.tmp
17570 sed -e '/^## COMMON_PRE_/ r iq2000/Makesim1.tmp' \
17571 -e '/^## COMMON_POST_/ r iq2000/Makesim2.tmp' \
17572 <iq2000/Makefile.sim >iq2000/Makefile
17573 rm -f iq2000/Makesim1.tmp iq2000/Makesim2.tmp
17574 ;;
17575 "depdir-iq2000":C) $SHELL $ac_aux_dir/mkinstalldirs iq2000/$DEPDIR ;;
17576 "lm32/Makefile":C) sed -n \
17577 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17578 /^srcdir = / s:$:/lm32:
17579 p
17580 }' \
17581 <Make-common.sim >lm32/Makesim1.tmp
17582 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >lm32/Makesim2.tmp
17583 sed -e '/^## COMMON_PRE_/ r lm32/Makesim1.tmp' \
17584 -e '/^## COMMON_POST_/ r lm32/Makesim2.tmp' \
17585 <lm32/Makefile.sim >lm32/Makefile
17586 rm -f lm32/Makesim1.tmp lm32/Makesim2.tmp
17587 ;;
17588 "depdir-lm32":C) $SHELL $ac_aux_dir/mkinstalldirs lm32/$DEPDIR ;;
17589 "m32c/Makefile":C) sed -n \
17590 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17591 /^srcdir = / s:$:/m32c:
17592 p
17593 }' \
17594 <Make-common.sim >m32c/Makesim1.tmp
17595 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >m32c/Makesim2.tmp
17596 sed -e '/^## COMMON_PRE_/ r m32c/Makesim1.tmp' \
17597 -e '/^## COMMON_POST_/ r m32c/Makesim2.tmp' \
17598 <m32c/Makefile.sim >m32c/Makefile
17599 rm -f m32c/Makesim1.tmp m32c/Makesim2.tmp
17600 ;;
17601 "depdir-m32c":C) $SHELL $ac_aux_dir/mkinstalldirs m32c/$DEPDIR ;;
17602 "m32r/Makefile":C) sed -n \
17603 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17604 /^srcdir = / s:$:/m32r:
17605 p
17606 }' \
17607 <Make-common.sim >m32r/Makesim1.tmp
17608 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >m32r/Makesim2.tmp
17609 sed -e '/^## COMMON_PRE_/ r m32r/Makesim1.tmp' \
17610 -e '/^## COMMON_POST_/ r m32r/Makesim2.tmp' \
17611 <m32r/Makefile.sim >m32r/Makefile
17612 rm -f m32r/Makesim1.tmp m32r/Makesim2.tmp
17613 ;;
17614 "depdir-m32r":C) $SHELL $ac_aux_dir/mkinstalldirs m32r/$DEPDIR ;;
17615 "m68hc11/Makefile":C) sed -n \
17616 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17617 /^srcdir = / s:$:/m68hc11:
17618 p
17619 }' \
17620 <Make-common.sim >m68hc11/Makesim1.tmp
17621 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >m68hc11/Makesim2.tmp
17622 sed -e '/^## COMMON_PRE_/ r m68hc11/Makesim1.tmp' \
17623 -e '/^## COMMON_POST_/ r m68hc11/Makesim2.tmp' \
17624 <m68hc11/Makefile.sim >m68hc11/Makefile
17625 rm -f m68hc11/Makesim1.tmp m68hc11/Makesim2.tmp
17626 ;;
17627 "depdir-m68hc11":C) $SHELL $ac_aux_dir/mkinstalldirs m68hc11/$DEPDIR ;;
17628 "mcore/Makefile":C) sed -n \
17629 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17630 /^srcdir = / s:$:/mcore:
17631 p
17632 }' \
17633 <Make-common.sim >mcore/Makesim1.tmp
17634 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >mcore/Makesim2.tmp
17635 sed -e '/^## COMMON_PRE_/ r mcore/Makesim1.tmp' \
17636 -e '/^## COMMON_POST_/ r mcore/Makesim2.tmp' \
17637 <mcore/Makefile.sim >mcore/Makefile
17638 rm -f mcore/Makesim1.tmp mcore/Makesim2.tmp
17639 ;;
17640 "depdir-mcore":C) $SHELL $ac_aux_dir/mkinstalldirs mcore/$DEPDIR ;;
17641 "microblaze/Makefile":C) sed -n \
17642 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17643 /^srcdir = / s:$:/microblaze:
17644 p
17645 }' \
17646 <Make-common.sim >microblaze/Makesim1.tmp
17647 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >microblaze/Makesim2.tmp
17648 sed -e '/^## COMMON_PRE_/ r microblaze/Makesim1.tmp' \
17649 -e '/^## COMMON_POST_/ r microblaze/Makesim2.tmp' \
17650 <microblaze/Makefile.sim >microblaze/Makefile
17651 rm -f microblaze/Makesim1.tmp microblaze/Makesim2.tmp
17652 ;;
17653 "depdir-microblaze":C) $SHELL $ac_aux_dir/mkinstalldirs microblaze/$DEPDIR ;;
17654 "depdir-mips":C) $SHELL $ac_aux_dir/mkinstalldirs mips/$DEPDIR ;;
17655 "depdir-mn10300":C) $SHELL $ac_aux_dir/mkinstalldirs mn10300/$DEPDIR ;;
17656 "moxie/Makefile":C) sed -n \
17657 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17658 /^srcdir = / s:$:/moxie:
17659 p
17660 }' \
17661 <Make-common.sim >moxie/Makesim1.tmp
17662 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >moxie/Makesim2.tmp
17663 sed -e '/^## COMMON_PRE_/ r moxie/Makesim1.tmp' \
17664 -e '/^## COMMON_POST_/ r moxie/Makesim2.tmp' \
17665 <moxie/Makefile.sim >moxie/Makefile
17666 rm -f moxie/Makesim1.tmp moxie/Makesim2.tmp
17667 ;;
17668 "depdir-moxie":C) $SHELL $ac_aux_dir/mkinstalldirs moxie/$DEPDIR ;;
17669 "msp430/Makefile":C) sed -n \
17670 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17671 /^srcdir = / s:$:/msp430:
17672 p
17673 }' \
17674 <Make-common.sim >msp430/Makesim1.tmp
17675 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >msp430/Makesim2.tmp
17676 sed -e '/^## COMMON_PRE_/ r msp430/Makesim1.tmp' \
17677 -e '/^## COMMON_POST_/ r msp430/Makesim2.tmp' \
17678 <msp430/Makefile.sim >msp430/Makefile
17679 rm -f msp430/Makesim1.tmp msp430/Makesim2.tmp
17680 ;;
17681 "depdir-msp430":C) $SHELL $ac_aux_dir/mkinstalldirs msp430/$DEPDIR ;;
17682 "depdir-or1k":C) $SHELL $ac_aux_dir/mkinstalldirs or1k/$DEPDIR ;;
17683 "depdir-ppc":C) $SHELL $ac_aux_dir/mkinstalldirs ppc/$DEPDIR ;;
17684 "pru/Makefile":C) sed -n \
17685 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17686 /^srcdir = / s:$:/pru:
17687 p
17688 }' \
17689 <Make-common.sim >pru/Makesim1.tmp
17690 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >pru/Makesim2.tmp
17691 sed -e '/^## COMMON_PRE_/ r pru/Makesim1.tmp' \
17692 -e '/^## COMMON_POST_/ r pru/Makesim2.tmp' \
17693 <pru/Makefile.sim >pru/Makefile
17694 rm -f pru/Makesim1.tmp pru/Makesim2.tmp
17695 ;;
17696 "depdir-pru":C) $SHELL $ac_aux_dir/mkinstalldirs pru/$DEPDIR ;;
17697 "depdir-riscv":C) $SHELL $ac_aux_dir/mkinstalldirs riscv/$DEPDIR ;;
17698 "rl78/Makefile":C) sed -n \
17699 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17700 /^srcdir = / s:$:/rl78:
17701 p
17702 }' \
17703 <Make-common.sim >rl78/Makesim1.tmp
17704 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >rl78/Makesim2.tmp
17705 sed -e '/^## COMMON_PRE_/ r rl78/Makesim1.tmp' \
17706 -e '/^## COMMON_POST_/ r rl78/Makesim2.tmp' \
17707 <rl78/Makefile.sim >rl78/Makefile
17708 rm -f rl78/Makesim1.tmp rl78/Makesim2.tmp
17709 ;;
17710 "depdir-rl78":C) $SHELL $ac_aux_dir/mkinstalldirs rl78/$DEPDIR ;;
17711 "rx/Makefile":C) sed -n \
17712 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17713 /^srcdir = / s:$:/rx:
17714 p
17715 }' \
17716 <Make-common.sim >rx/Makesim1.tmp
17717 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >rx/Makesim2.tmp
17718 sed -e '/^## COMMON_PRE_/ r rx/Makesim1.tmp' \
17719 -e '/^## COMMON_POST_/ r rx/Makesim2.tmp' \
17720 <rx/Makefile.sim >rx/Makefile
17721 rm -f rx/Makesim1.tmp rx/Makesim2.tmp
17722 ;;
17723 "depdir-rx":C) $SHELL $ac_aux_dir/mkinstalldirs rx/$DEPDIR ;;
17724 "sh/Makefile":C) sed -n \
17725 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17726 /^srcdir = / s:$:/sh:
17727 p
17728 }' \
17729 <Make-common.sim >sh/Makesim1.tmp
17730 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >sh/Makesim2.tmp
17731 sed -e '/^## COMMON_PRE_/ r sh/Makesim1.tmp' \
17732 -e '/^## COMMON_POST_/ r sh/Makesim2.tmp' \
17733 <sh/Makefile.sim >sh/Makefile
17734 rm -f sh/Makesim1.tmp sh/Makesim2.tmp
17735 ;;
17736 "depdir-sh":C) $SHELL $ac_aux_dir/mkinstalldirs sh/$DEPDIR ;;
17737 "erc32/Makefile":C) sed -n \
17738 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17739 /^srcdir = / s:$:/erc32:
17740 p
17741 }' \
17742 <Make-common.sim >erc32/Makesim1.tmp
17743 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >erc32/Makesim2.tmp
17744 sed -e '/^## COMMON_PRE_/ r erc32/Makesim1.tmp' \
17745 -e '/^## COMMON_POST_/ r erc32/Makesim2.tmp' \
17746 <erc32/Makefile.sim >erc32/Makefile
17747 rm -f erc32/Makesim1.tmp erc32/Makesim2.tmp
17748 ;;
17749 "depdir-erc32":C) $SHELL $ac_aux_dir/mkinstalldirs erc32/$DEPDIR ;;
17750 "depdir-v850":C) $SHELL $ac_aux_dir/mkinstalldirs v850/$DEPDIR ;;
17751 "example-synacor/Makefile":C) sed -n \
17752 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17753 /^srcdir = / s:$:/example-synacor:
17754 p
17755 }' \
17756 <Make-common.sim >example-synacor/Makesim1.tmp
17757 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >example-synacor/Makesim2.tmp
17758 sed -e '/^## COMMON_PRE_/ r example-synacor/Makesim1.tmp' \
17759 -e '/^## COMMON_POST_/ r example-synacor/Makesim2.tmp' \
17760 <example-synacor/Makefile.sim >example-synacor/Makefile
17761 rm -f example-synacor/Makesim1.tmp example-synacor/Makesim2.tmp
17762 ;;
17763 "depdir-example-synacor":C) $SHELL $ac_aux_dir/mkinstalldirs example-synacor/$DEPDIR ;;
17764
17765 esac
17766 done # for ac_tag
17767
17768
17769 as_fn_exit 0
17770 _ACEOF
17771 ac_clean_files=$ac_clean_files_save
17772
17773 test $ac_write_fail = 0 ||
17774 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17775
17776
17777 # configure is writing to config.log, and then calls config.status.
17778 # config.status does its own redirection, appending to config.log.
17779 # Unfortunately, on DOS this fails, as config.log is still kept open
17780 # by configure, so config.status won't be able to write to it; its
17781 # output is simply discarded. So we exec the FD to /dev/null,
17782 # effectively closing config.log, so it can be properly (re)opened and
17783 # appended to by config.status. When coming back to configure, we
17784 # need to make the FD available again.
17785 if test "$no_create" != yes; then
17786 ac_cs_success=:
17787 ac_config_status_args=
17788 test "$silent" = yes &&
17789 ac_config_status_args="$ac_config_status_args --quiet"
17790 exec 5>/dev/null
17791 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17792 exec 5>>config.log
17793 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17794 # would make configure fail if this is the last instruction.
17795 $ac_cs_success || as_fn_exit 1
17796 fi
17797
17798 #
17799 # CONFIG_SUBDIRS section.
17800 #
17801 if test "$no_recursion" != yes; then
17802
17803 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
17804 # so they do not pile up.
17805 ac_sub_configure_args=
17806 ac_prev=
17807 eval "set x $ac_configure_args"
17808 shift
17809 for ac_arg
17810 do
17811 if test -n "$ac_prev"; then
17812 ac_prev=
17813 continue
17814 fi
17815 case $ac_arg in
17816 -cache-file | --cache-file | --cache-fil | --cache-fi \
17817 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17818 ac_prev=cache_file ;;
17819 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17820 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
17821 | --c=*)
17822 ;;
17823 --config-cache | -C)
17824 ;;
17825 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17826 ac_prev=srcdir ;;
17827 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17828 ;;
17829 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
17830 ac_prev=prefix ;;
17831 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
17832 ;;
17833 --disable-option-checking)
17834 ;;
17835 *)
17836 case $ac_arg in
17837 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17838 esac
17839 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
17840 esac
17841 done
17842
17843 # Always prepend --prefix to ensure using the same prefix
17844 # in subdir configurations.
17845 ac_arg="--prefix=$prefix"
17846 case $ac_arg in
17847 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17848 esac
17849 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
17850
17851 # Pass --silent
17852 if test "$silent" = yes; then
17853 ac_sub_configure_args="--silent $ac_sub_configure_args"
17854 fi
17855
17856 # Always prepend --disable-option-checking to silence warnings, since
17857 # different subdirs can have different --enable and --with options.
17858 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
17859
17860 ac_popdir=`pwd`
17861 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
17862
17863 # Do not complain, so a configure script can configure whichever
17864 # parts of a large source tree are present.
17865 test -d "$srcdir/$ac_dir" || continue
17866
17867 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
17868 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
17869 $as_echo "$ac_msg" >&6
17870 as_dir="$ac_dir"; as_fn_mkdir_p
17871 ac_builddir=.
17872
17873 case "$ac_dir" in
17874 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17875 *)
17876 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17877 # A ".." for each directory in $ac_dir_suffix.
17878 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17879 case $ac_top_builddir_sub in
17880 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17881 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17882 esac ;;
17883 esac
17884 ac_abs_top_builddir=$ac_pwd
17885 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17886 # for backward compatibility:
17887 ac_top_builddir=$ac_top_build_prefix
17888
17889 case $srcdir in
17890 .) # We are building in place.
17891 ac_srcdir=.
17892 ac_top_srcdir=$ac_top_builddir_sub
17893 ac_abs_top_srcdir=$ac_pwd ;;
17894 [\\/]* | ?:[\\/]* ) # Absolute name.
17895 ac_srcdir=$srcdir$ac_dir_suffix;
17896 ac_top_srcdir=$srcdir
17897 ac_abs_top_srcdir=$srcdir ;;
17898 *) # Relative name.
17899 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17900 ac_top_srcdir=$ac_top_build_prefix$srcdir
17901 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17902 esac
17903 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17904
17905
17906 cd "$ac_dir"
17907
17908 # Check for guested configure; otherwise get Cygnus style configure.
17909 if test -f "$ac_srcdir/configure.gnu"; then
17910 ac_sub_configure=$ac_srcdir/configure.gnu
17911 elif test -f "$ac_srcdir/configure"; then
17912 ac_sub_configure=$ac_srcdir/configure
17913 elif test -f "$ac_srcdir/configure.in"; then
17914 # This should be Cygnus configure.
17915 ac_sub_configure=$ac_aux_dir/configure
17916 else
17917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
17918 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17919 ac_sub_configure=
17920 fi
17921
17922 # The recursion is here.
17923 if test -n "$ac_sub_configure"; then
17924 # Make the cache file name correct relative to the subdirectory.
17925 case $cache_file in
17926 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
17927 *) # Relative name.
17928 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
17929 esac
17930
17931 { $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
17932 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17933 # The eval makes quoting arguments work.
17934 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
17935 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
17936 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
17937 fi
17938
17939 cd "$ac_popdir"
17940 done
17941 fi
17942 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17944 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17945 fi
17946