sim: unify toolchain probing logic
[deliverable/binutils-gdb.git] / sim / erc32 / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
204 fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225 fi
226 fi
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271 fi
272 exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290 { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299 return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378 else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395 else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509 *)
510 ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
533 fi
534 else
535 as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
584
585 ac_unique_file="Makefile.in"
586 ac_subst_vars='LTLIBOBJS
587 LIBOBJS
588 sim_reserved_bits
589 sim_default_model
590 sim_scache
591 sim_float
592 sim_bitsize
593 cgen_breaks
594 READLINE_CFLAGS
595 READLINE
596 TERMCAP
597 EGREP
598 GREP
599 CPP
600 MAINT
601 MAINTAINER_MODE_FALSE
602 MAINTAINER_MODE_TRUE
603 CATOBJEXT
604 GENCAT
605 INSTOBJEXT
606 DATADIRNAME
607 CATALOGS
608 POSUB
609 GMSGFMT
610 XGETTEXT
611 INCINTL
612 LIBINTL_DEP
613 LIBINTL
614 USE_NLS
615 CCDEPMODE
616 DEPDIR
617 am__leading_dot
618 INSTALL_DATA
619 INSTALL_SCRIPT
620 INSTALL_PROGRAM
621 OBJEXT
622 EXEEXT
623 ac_ct_CC
624 CPPFLAGS
625 LDFLAGS
626 CFLAGS
627 CC
628 target_alias
629 host_alias
630 build_alias
631 LIBS
632 ECHO_T
633 ECHO_N
634 ECHO_C
635 DEFS
636 mandir
637 localedir
638 libdir
639 psdir
640 pdfdir
641 dvidir
642 htmldir
643 infodir
644 docdir
645 oldincludedir
646 includedir
647 localstatedir
648 sharedstatedir
649 sysconfdir
650 datadir
651 datarootdir
652 libexecdir
653 sbindir
654 bindir
655 program_transform_name
656 prefix
657 exec_prefix
658 PACKAGE_URL
659 PACKAGE_BUGREPORT
660 PACKAGE_STRING
661 PACKAGE_VERSION
662 PACKAGE_TARNAME
663 PACKAGE_NAME
664 PATH_SEPARATOR
665 SHELL
666 sim_inline
667 sim_hw
668 sim_hw_objs
669 sim_hw_cflags'
670 ac_subst_files=''
671 ac_user_opts='
672 enable_option_checking
673 enable_maintainer_mode
674 enable_sim_inline
675 enable_sim_hardware
676 '
677 ac_precious_vars='build_alias
678 host_alias
679 target_alias
680 CC
681 CFLAGS
682 LDFLAGS
683 LIBS
684 CPPFLAGS
685 CPP'
686
687
688 # Initialize some variables set by options.
689 ac_init_help=
690 ac_init_version=false
691 ac_unrecognized_opts=
692 ac_unrecognized_sep=
693 # The variables have the same names as the options, with
694 # dashes changed to underlines.
695 cache_file=/dev/null
696 exec_prefix=NONE
697 no_create=
698 no_recursion=
699 prefix=NONE
700 program_prefix=NONE
701 program_suffix=NONE
702 program_transform_name=s,x,x,
703 silent=
704 site=
705 srcdir=
706 verbose=
707 x_includes=NONE
708 x_libraries=NONE
709
710 # Installation directory options.
711 # These are left unexpanded so users can "make install exec_prefix=/foo"
712 # and all the variables that are supposed to be based on exec_prefix
713 # by default will actually change.
714 # Use braces instead of parens because sh, perl, etc. also accept them.
715 # (The list follows the same order as the GNU Coding Standards.)
716 bindir='${exec_prefix}/bin'
717 sbindir='${exec_prefix}/sbin'
718 libexecdir='${exec_prefix}/libexec'
719 datarootdir='${prefix}/share'
720 datadir='${datarootdir}'
721 sysconfdir='${prefix}/etc'
722 sharedstatedir='${prefix}/com'
723 localstatedir='${prefix}/var'
724 includedir='${prefix}/include'
725 oldincludedir='/usr/include'
726 docdir='${datarootdir}/doc/${PACKAGE}'
727 infodir='${datarootdir}/info'
728 htmldir='${docdir}'
729 dvidir='${docdir}'
730 pdfdir='${docdir}'
731 psdir='${docdir}'
732 libdir='${exec_prefix}/lib'
733 localedir='${datarootdir}/locale'
734 mandir='${datarootdir}/man'
735
736 ac_prev=
737 ac_dashdash=
738 for ac_option
739 do
740 # If the previous option needs an argument, assign it.
741 if test -n "$ac_prev"; then
742 eval $ac_prev=\$ac_option
743 ac_prev=
744 continue
745 fi
746
747 case $ac_option in
748 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
749 *=) ac_optarg= ;;
750 *) ac_optarg=yes ;;
751 esac
752
753 # Accept the important Cygnus configure options, so we can diagnose typos.
754
755 case $ac_dashdash$ac_option in
756 --)
757 ac_dashdash=yes ;;
758
759 -bindir | --bindir | --bindi | --bind | --bin | --bi)
760 ac_prev=bindir ;;
761 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
762 bindir=$ac_optarg ;;
763
764 -build | --build | --buil | --bui | --bu)
765 ac_prev=build_alias ;;
766 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
767 build_alias=$ac_optarg ;;
768
769 -cache-file | --cache-file | --cache-fil | --cache-fi \
770 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
771 ac_prev=cache_file ;;
772 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
773 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
774 cache_file=$ac_optarg ;;
775
776 --config-cache | -C)
777 cache_file=config.cache ;;
778
779 -datadir | --datadir | --datadi | --datad)
780 ac_prev=datadir ;;
781 -datadir=* | --datadir=* | --datadi=* | --datad=*)
782 datadir=$ac_optarg ;;
783
784 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
785 | --dataroo | --dataro | --datar)
786 ac_prev=datarootdir ;;
787 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
788 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
789 datarootdir=$ac_optarg ;;
790
791 -disable-* | --disable-*)
792 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
793 # Reject names that are not valid shell variable names.
794 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
795 as_fn_error $? "invalid feature name: $ac_useropt"
796 ac_useropt_orig=$ac_useropt
797 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
798 case $ac_user_opts in
799 *"
800 "enable_$ac_useropt"
801 "*) ;;
802 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
803 ac_unrecognized_sep=', ';;
804 esac
805 eval enable_$ac_useropt=no ;;
806
807 -docdir | --docdir | --docdi | --doc | --do)
808 ac_prev=docdir ;;
809 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
810 docdir=$ac_optarg ;;
811
812 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
813 ac_prev=dvidir ;;
814 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
815 dvidir=$ac_optarg ;;
816
817 -enable-* | --enable-*)
818 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
819 # Reject names that are not valid shell variable names.
820 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
821 as_fn_error $? "invalid feature name: $ac_useropt"
822 ac_useropt_orig=$ac_useropt
823 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
824 case $ac_user_opts in
825 *"
826 "enable_$ac_useropt"
827 "*) ;;
828 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
829 ac_unrecognized_sep=', ';;
830 esac
831 eval enable_$ac_useropt=\$ac_optarg ;;
832
833 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
834 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
835 | --exec | --exe | --ex)
836 ac_prev=exec_prefix ;;
837 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
838 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
839 | --exec=* | --exe=* | --ex=*)
840 exec_prefix=$ac_optarg ;;
841
842 -gas | --gas | --ga | --g)
843 # Obsolete; use --with-gas.
844 with_gas=yes ;;
845
846 -help | --help | --hel | --he | -h)
847 ac_init_help=long ;;
848 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
849 ac_init_help=recursive ;;
850 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
851 ac_init_help=short ;;
852
853 -host | --host | --hos | --ho)
854 ac_prev=host_alias ;;
855 -host=* | --host=* | --hos=* | --ho=*)
856 host_alias=$ac_optarg ;;
857
858 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
859 ac_prev=htmldir ;;
860 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
861 | --ht=*)
862 htmldir=$ac_optarg ;;
863
864 -includedir | --includedir | --includedi | --included | --include \
865 | --includ | --inclu | --incl | --inc)
866 ac_prev=includedir ;;
867 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
868 | --includ=* | --inclu=* | --incl=* | --inc=*)
869 includedir=$ac_optarg ;;
870
871 -infodir | --infodir | --infodi | --infod | --info | --inf)
872 ac_prev=infodir ;;
873 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
874 infodir=$ac_optarg ;;
875
876 -libdir | --libdir | --libdi | --libd)
877 ac_prev=libdir ;;
878 -libdir=* | --libdir=* | --libdi=* | --libd=*)
879 libdir=$ac_optarg ;;
880
881 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
882 | --libexe | --libex | --libe)
883 ac_prev=libexecdir ;;
884 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
885 | --libexe=* | --libex=* | --libe=*)
886 libexecdir=$ac_optarg ;;
887
888 -localedir | --localedir | --localedi | --localed | --locale)
889 ac_prev=localedir ;;
890 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
891 localedir=$ac_optarg ;;
892
893 -localstatedir | --localstatedir | --localstatedi | --localstated \
894 | --localstate | --localstat | --localsta | --localst | --locals)
895 ac_prev=localstatedir ;;
896 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
897 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
898 localstatedir=$ac_optarg ;;
899
900 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
901 ac_prev=mandir ;;
902 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
903 mandir=$ac_optarg ;;
904
905 -nfp | --nfp | --nf)
906 # Obsolete; use --without-fp.
907 with_fp=no ;;
908
909 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
910 | --no-cr | --no-c | -n)
911 no_create=yes ;;
912
913 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
914 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
915 no_recursion=yes ;;
916
917 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
918 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
919 | --oldin | --oldi | --old | --ol | --o)
920 ac_prev=oldincludedir ;;
921 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
922 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
923 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
924 oldincludedir=$ac_optarg ;;
925
926 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
927 ac_prev=prefix ;;
928 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
929 prefix=$ac_optarg ;;
930
931 -program-prefix | --program-prefix | --program-prefi | --program-pref \
932 | --program-pre | --program-pr | --program-p)
933 ac_prev=program_prefix ;;
934 -program-prefix=* | --program-prefix=* | --program-prefi=* \
935 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
936 program_prefix=$ac_optarg ;;
937
938 -program-suffix | --program-suffix | --program-suffi | --program-suff \
939 | --program-suf | --program-su | --program-s)
940 ac_prev=program_suffix ;;
941 -program-suffix=* | --program-suffix=* | --program-suffi=* \
942 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
943 program_suffix=$ac_optarg ;;
944
945 -program-transform-name | --program-transform-name \
946 | --program-transform-nam | --program-transform-na \
947 | --program-transform-n | --program-transform- \
948 | --program-transform | --program-transfor \
949 | --program-transfo | --program-transf \
950 | --program-trans | --program-tran \
951 | --progr-tra | --program-tr | --program-t)
952 ac_prev=program_transform_name ;;
953 -program-transform-name=* | --program-transform-name=* \
954 | --program-transform-nam=* | --program-transform-na=* \
955 | --program-transform-n=* | --program-transform-=* \
956 | --program-transform=* | --program-transfor=* \
957 | --program-transfo=* | --program-transf=* \
958 | --program-trans=* | --program-tran=* \
959 | --progr-tra=* | --program-tr=* | --program-t=*)
960 program_transform_name=$ac_optarg ;;
961
962 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
963 ac_prev=pdfdir ;;
964 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
965 pdfdir=$ac_optarg ;;
966
967 -psdir | --psdir | --psdi | --psd | --ps)
968 ac_prev=psdir ;;
969 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
970 psdir=$ac_optarg ;;
971
972 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
973 | -silent | --silent | --silen | --sile | --sil)
974 silent=yes ;;
975
976 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
977 ac_prev=sbindir ;;
978 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
979 | --sbi=* | --sb=*)
980 sbindir=$ac_optarg ;;
981
982 -sharedstatedir | --sharedstatedir | --sharedstatedi \
983 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
984 | --sharedst | --shareds | --shared | --share | --shar \
985 | --sha | --sh)
986 ac_prev=sharedstatedir ;;
987 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
988 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
989 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
990 | --sha=* | --sh=*)
991 sharedstatedir=$ac_optarg ;;
992
993 -site | --site | --sit)
994 ac_prev=site ;;
995 -site=* | --site=* | --sit=*)
996 site=$ac_optarg ;;
997
998 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
999 ac_prev=srcdir ;;
1000 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1001 srcdir=$ac_optarg ;;
1002
1003 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1004 | --syscon | --sysco | --sysc | --sys | --sy)
1005 ac_prev=sysconfdir ;;
1006 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1007 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1008 sysconfdir=$ac_optarg ;;
1009
1010 -target | --target | --targe | --targ | --tar | --ta | --t)
1011 ac_prev=target_alias ;;
1012 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1013 target_alias=$ac_optarg ;;
1014
1015 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1016 verbose=yes ;;
1017
1018 -version | --version | --versio | --versi | --vers | -V)
1019 ac_init_version=: ;;
1020
1021 -with-* | --with-*)
1022 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1023 # Reject names that are not valid shell variable names.
1024 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1025 as_fn_error $? "invalid package name: $ac_useropt"
1026 ac_useropt_orig=$ac_useropt
1027 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1028 case $ac_user_opts in
1029 *"
1030 "with_$ac_useropt"
1031 "*) ;;
1032 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1033 ac_unrecognized_sep=', ';;
1034 esac
1035 eval with_$ac_useropt=\$ac_optarg ;;
1036
1037 -without-* | --without-*)
1038 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1039 # Reject names that are not valid shell variable names.
1040 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1041 as_fn_error $? "invalid package name: $ac_useropt"
1042 ac_useropt_orig=$ac_useropt
1043 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1044 case $ac_user_opts in
1045 *"
1046 "with_$ac_useropt"
1047 "*) ;;
1048 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1049 ac_unrecognized_sep=', ';;
1050 esac
1051 eval with_$ac_useropt=no ;;
1052
1053 --x)
1054 # Obsolete; use --with-x.
1055 with_x=yes ;;
1056
1057 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1058 | --x-incl | --x-inc | --x-in | --x-i)
1059 ac_prev=x_includes ;;
1060 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1061 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1062 x_includes=$ac_optarg ;;
1063
1064 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1065 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1066 ac_prev=x_libraries ;;
1067 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1068 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1069 x_libraries=$ac_optarg ;;
1070
1071 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1072 Try \`$0 --help' for more information"
1073 ;;
1074
1075 *=*)
1076 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1077 # Reject names that are not valid shell variable names.
1078 case $ac_envvar in #(
1079 '' | [0-9]* | *[!_$as_cr_alnum]* )
1080 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1081 esac
1082 eval $ac_envvar=\$ac_optarg
1083 export $ac_envvar ;;
1084
1085 *)
1086 # FIXME: should be removed in autoconf 3.0.
1087 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1088 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1089 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1090 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1091 ;;
1092
1093 esac
1094 done
1095
1096 if test -n "$ac_prev"; then
1097 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1098 as_fn_error $? "missing argument to $ac_option"
1099 fi
1100
1101 if test -n "$ac_unrecognized_opts"; then
1102 case $enable_option_checking in
1103 no) ;;
1104 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1105 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1106 esac
1107 fi
1108
1109 # Check all directory arguments for consistency.
1110 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1111 datadir sysconfdir sharedstatedir localstatedir includedir \
1112 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1113 libdir localedir mandir
1114 do
1115 eval ac_val=\$$ac_var
1116 # Remove trailing slashes.
1117 case $ac_val in
1118 */ )
1119 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1120 eval $ac_var=\$ac_val;;
1121 esac
1122 # Be sure to have absolute directory names.
1123 case $ac_val in
1124 [\\/$]* | ?:[\\/]* ) continue;;
1125 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1126 esac
1127 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1128 done
1129
1130 # There might be people who depend on the old broken behavior: `$host'
1131 # used to hold the argument of --host etc.
1132 # FIXME: To remove some day.
1133 build=$build_alias
1134 host=$host_alias
1135 target=$target_alias
1136
1137 # FIXME: To remove some day.
1138 if test "x$host_alias" != x; then
1139 if test "x$build_alias" = x; then
1140 cross_compiling=maybe
1141 elif test "x$build_alias" != "x$host_alias"; then
1142 cross_compiling=yes
1143 fi
1144 fi
1145
1146 ac_tool_prefix=
1147 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1148
1149 test "$silent" = yes && exec 6>/dev/null
1150
1151
1152 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1153 ac_ls_di=`ls -di .` &&
1154 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1155 as_fn_error $? "working directory cannot be determined"
1156 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1157 as_fn_error $? "pwd does not report name of working directory"
1158
1159
1160 # Find the source files, if location was not specified.
1161 if test -z "$srcdir"; then
1162 ac_srcdir_defaulted=yes
1163 # Try the directory containing this script, then the parent directory.
1164 ac_confdir=`$as_dirname -- "$as_myself" ||
1165 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1166 X"$as_myself" : 'X\(//\)[^/]' \| \
1167 X"$as_myself" : 'X\(//\)$' \| \
1168 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1169 $as_echo X"$as_myself" |
1170 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1171 s//\1/
1172 q
1173 }
1174 /^X\(\/\/\)[^/].*/{
1175 s//\1/
1176 q
1177 }
1178 /^X\(\/\/\)$/{
1179 s//\1/
1180 q
1181 }
1182 /^X\(\/\).*/{
1183 s//\1/
1184 q
1185 }
1186 s/.*/./; q'`
1187 srcdir=$ac_confdir
1188 if test ! -r "$srcdir/$ac_unique_file"; then
1189 srcdir=..
1190 fi
1191 else
1192 ac_srcdir_defaulted=no
1193 fi
1194 if test ! -r "$srcdir/$ac_unique_file"; then
1195 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1196 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1197 fi
1198 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1199 ac_abs_confdir=`(
1200 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1201 pwd)`
1202 # When building in place, set srcdir=.
1203 if test "$ac_abs_confdir" = "$ac_pwd"; then
1204 srcdir=.
1205 fi
1206 # Remove unnecessary trailing slashes from srcdir.
1207 # Double slashes in file names in object file debugging info
1208 # mess up M-x gdb in Emacs.
1209 case $srcdir in
1210 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1211 esac
1212 for ac_var in $ac_precious_vars; do
1213 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1214 eval ac_env_${ac_var}_value=\$${ac_var}
1215 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1216 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1217 done
1218
1219 #
1220 # Report the --help message.
1221 #
1222 if test "$ac_init_help" = "long"; then
1223 # Omit some internal or obsolete options to make the list less imposing.
1224 # This message is too long to be a string in the A/UX 3.1 sh.
1225 cat <<_ACEOF
1226 \`configure' configures this package to adapt to many kinds of systems.
1227
1228 Usage: $0 [OPTION]... [VAR=VALUE]...
1229
1230 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1231 VAR=VALUE. See below for descriptions of some of the useful variables.
1232
1233 Defaults for the options are specified in brackets.
1234
1235 Configuration:
1236 -h, --help display this help and exit
1237 --help=short display options specific to this package
1238 --help=recursive display the short help of all the included packages
1239 -V, --version display version information and exit
1240 -q, --quiet, --silent do not print \`checking ...' messages
1241 --cache-file=FILE cache test results in FILE [disabled]
1242 -C, --config-cache alias for \`--cache-file=config.cache'
1243 -n, --no-create do not create output files
1244 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1245
1246 Installation directories:
1247 --prefix=PREFIX install architecture-independent files in PREFIX
1248 [$ac_default_prefix]
1249 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1250 [PREFIX]
1251
1252 By default, \`make install' will install all the files in
1253 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1254 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1255 for instance \`--prefix=\$HOME'.
1256
1257 For better control, use the options below.
1258
1259 Fine tuning of the installation directories:
1260 --bindir=DIR user executables [EPREFIX/bin]
1261 --sbindir=DIR system admin executables [EPREFIX/sbin]
1262 --libexecdir=DIR program executables [EPREFIX/libexec]
1263 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1264 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1265 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1266 --libdir=DIR object code libraries [EPREFIX/lib]
1267 --includedir=DIR C header files [PREFIX/include]
1268 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1269 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1270 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1271 --infodir=DIR info documentation [DATAROOTDIR/info]
1272 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1273 --mandir=DIR man documentation [DATAROOTDIR/man]
1274 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1275 --htmldir=DIR html documentation [DOCDIR]
1276 --dvidir=DIR dvi documentation [DOCDIR]
1277 --pdfdir=DIR pdf documentation [DOCDIR]
1278 --psdir=DIR ps documentation [DOCDIR]
1279 _ACEOF
1280
1281 cat <<\_ACEOF
1282 _ACEOF
1283 fi
1284
1285 if test -n "$ac_init_help"; then
1286
1287 cat <<\_ACEOF
1288
1289 Optional Features:
1290 --disable-option-checking ignore unrecognized --enable/--with options
1291 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1292 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1293 --enable-maintainer-mode
1294 enable make rules and dependencies not useful (and
1295 sometimes confusing) to the casual installer
1296 --enable-sim-inline=inlines
1297 Specify which functions should be inlined
1298 --enable-sim-hardware=LIST
1299 Specify the hardware to be included in the build.
1300
1301 Some influential environment variables:
1302 CC C compiler command
1303 CFLAGS C compiler flags
1304 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1305 nonstandard directory <lib dir>
1306 LIBS libraries to pass to the linker, e.g. -l<library>
1307 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1308 you have headers in a nonstandard directory <include dir>
1309 CPP C preprocessor
1310
1311 Use these variables to override the choices made by `configure' or to help
1312 it to find libraries and programs with nonstandard names/locations.
1313
1314 Report bugs to the package provider.
1315 _ACEOF
1316 ac_status=$?
1317 fi
1318
1319 if test "$ac_init_help" = "recursive"; then
1320 # If there are subdirs, report their specific --help.
1321 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1322 test -d "$ac_dir" ||
1323 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1324 continue
1325 ac_builddir=.
1326
1327 case "$ac_dir" in
1328 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1329 *)
1330 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1331 # A ".." for each directory in $ac_dir_suffix.
1332 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1333 case $ac_top_builddir_sub in
1334 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1335 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1336 esac ;;
1337 esac
1338 ac_abs_top_builddir=$ac_pwd
1339 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1340 # for backward compatibility:
1341 ac_top_builddir=$ac_top_build_prefix
1342
1343 case $srcdir in
1344 .) # We are building in place.
1345 ac_srcdir=.
1346 ac_top_srcdir=$ac_top_builddir_sub
1347 ac_abs_top_srcdir=$ac_pwd ;;
1348 [\\/]* | ?:[\\/]* ) # Absolute name.
1349 ac_srcdir=$srcdir$ac_dir_suffix;
1350 ac_top_srcdir=$srcdir
1351 ac_abs_top_srcdir=$srcdir ;;
1352 *) # Relative name.
1353 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1354 ac_top_srcdir=$ac_top_build_prefix$srcdir
1355 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1356 esac
1357 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1358
1359 cd "$ac_dir" || { ac_status=$?; continue; }
1360 # Check for guested configure.
1361 if test -f "$ac_srcdir/configure.gnu"; then
1362 echo &&
1363 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1364 elif test -f "$ac_srcdir/configure"; then
1365 echo &&
1366 $SHELL "$ac_srcdir/configure" --help=recursive
1367 else
1368 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1369 fi || ac_status=$?
1370 cd "$ac_pwd" || { ac_status=$?; break; }
1371 done
1372 fi
1373
1374 test -n "$ac_init_help" && exit $ac_status
1375 if $ac_init_version; then
1376 cat <<\_ACEOF
1377 configure
1378 generated by GNU Autoconf 2.69
1379
1380 Copyright (C) 2012 Free Software Foundation, Inc.
1381 This configure script is free software; the Free Software Foundation
1382 gives unlimited permission to copy, distribute and modify it.
1383 _ACEOF
1384 exit
1385 fi
1386
1387 ## ------------------------ ##
1388 ## Autoconf initialization. ##
1389 ## ------------------------ ##
1390
1391 # ac_fn_c_try_compile LINENO
1392 # --------------------------
1393 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1394 ac_fn_c_try_compile ()
1395 {
1396 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1397 rm -f conftest.$ac_objext
1398 if { { ac_try="$ac_compile"
1399 case "(($ac_try" in
1400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1401 *) ac_try_echo=$ac_try;;
1402 esac
1403 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1404 $as_echo "$ac_try_echo"; } >&5
1405 (eval "$ac_compile") 2>conftest.err
1406 ac_status=$?
1407 if test -s conftest.err; then
1408 grep -v '^ *+' conftest.err >conftest.er1
1409 cat conftest.er1 >&5
1410 mv -f conftest.er1 conftest.err
1411 fi
1412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1413 test $ac_status = 0; } && {
1414 test -z "$ac_c_werror_flag" ||
1415 test ! -s conftest.err
1416 } && test -s conftest.$ac_objext; then :
1417 ac_retval=0
1418 else
1419 $as_echo "$as_me: failed program was:" >&5
1420 sed 's/^/| /' conftest.$ac_ext >&5
1421
1422 ac_retval=1
1423 fi
1424 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1425 as_fn_set_status $ac_retval
1426
1427 } # ac_fn_c_try_compile
1428
1429 # ac_fn_c_try_cpp LINENO
1430 # ----------------------
1431 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1432 ac_fn_c_try_cpp ()
1433 {
1434 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1435 if { { ac_try="$ac_cpp conftest.$ac_ext"
1436 case "(($ac_try" in
1437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1438 *) ac_try_echo=$ac_try;;
1439 esac
1440 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1441 $as_echo "$ac_try_echo"; } >&5
1442 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1443 ac_status=$?
1444 if test -s conftest.err; then
1445 grep -v '^ *+' conftest.err >conftest.er1
1446 cat conftest.er1 >&5
1447 mv -f conftest.er1 conftest.err
1448 fi
1449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1450 test $ac_status = 0; } > conftest.i && {
1451 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1452 test ! -s conftest.err
1453 }; then :
1454 ac_retval=0
1455 else
1456 $as_echo "$as_me: failed program was:" >&5
1457 sed 's/^/| /' conftest.$ac_ext >&5
1458
1459 ac_retval=1
1460 fi
1461 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1462 as_fn_set_status $ac_retval
1463
1464 } # ac_fn_c_try_cpp
1465
1466 # ac_fn_c_try_link LINENO
1467 # -----------------------
1468 # Try to link conftest.$ac_ext, and return whether this succeeded.
1469 ac_fn_c_try_link ()
1470 {
1471 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1472 rm -f conftest.$ac_objext conftest$ac_exeext
1473 if { { ac_try="$ac_link"
1474 case "(($ac_try" in
1475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1476 *) ac_try_echo=$ac_try;;
1477 esac
1478 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1479 $as_echo "$ac_try_echo"; } >&5
1480 (eval "$ac_link") 2>conftest.err
1481 ac_status=$?
1482 if test -s conftest.err; then
1483 grep -v '^ *+' conftest.err >conftest.er1
1484 cat conftest.er1 >&5
1485 mv -f conftest.er1 conftest.err
1486 fi
1487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1488 test $ac_status = 0; } && {
1489 test -z "$ac_c_werror_flag" ||
1490 test ! -s conftest.err
1491 } && test -s conftest$ac_exeext && {
1492 test "$cross_compiling" = yes ||
1493 test -x conftest$ac_exeext
1494 }; then :
1495 ac_retval=0
1496 else
1497 $as_echo "$as_me: failed program was:" >&5
1498 sed 's/^/| /' conftest.$ac_ext >&5
1499
1500 ac_retval=1
1501 fi
1502 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1503 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1504 # interfere with the next link command; also delete a directory that is
1505 # left behind by Apple's compiler. We do this before executing the actions.
1506 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1507 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1508 as_fn_set_status $ac_retval
1509
1510 } # ac_fn_c_try_link
1511 cat >config.log <<_ACEOF
1512 This file contains any messages produced by compilers while
1513 running configure, to aid debugging if configure makes a mistake.
1514
1515 It was created by $as_me, which was
1516 generated by GNU Autoconf 2.69. Invocation command line was
1517
1518 $ $0 $@
1519
1520 _ACEOF
1521 exec 5>>config.log
1522 {
1523 cat <<_ASUNAME
1524 ## --------- ##
1525 ## Platform. ##
1526 ## --------- ##
1527
1528 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1529 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1530 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1531 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1532 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1533
1534 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1535 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1536
1537 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1538 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1539 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1540 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1541 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1542 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1543 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1544
1545 _ASUNAME
1546
1547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1548 for as_dir in $PATH
1549 do
1550 IFS=$as_save_IFS
1551 test -z "$as_dir" && as_dir=.
1552 $as_echo "PATH: $as_dir"
1553 done
1554 IFS=$as_save_IFS
1555
1556 } >&5
1557
1558 cat >&5 <<_ACEOF
1559
1560
1561 ## ----------- ##
1562 ## Core tests. ##
1563 ## ----------- ##
1564
1565 _ACEOF
1566
1567
1568 # Keep a trace of the command line.
1569 # Strip out --no-create and --no-recursion so they do not pile up.
1570 # Strip out --silent because we don't want to record it for future runs.
1571 # Also quote any args containing shell meta-characters.
1572 # Make two passes to allow for proper duplicate-argument suppression.
1573 ac_configure_args=
1574 ac_configure_args0=
1575 ac_configure_args1=
1576 ac_must_keep_next=false
1577 for ac_pass in 1 2
1578 do
1579 for ac_arg
1580 do
1581 case $ac_arg in
1582 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1583 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1584 | -silent | --silent | --silen | --sile | --sil)
1585 continue ;;
1586 *\'*)
1587 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1588 esac
1589 case $ac_pass in
1590 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1591 2)
1592 as_fn_append ac_configure_args1 " '$ac_arg'"
1593 if test $ac_must_keep_next = true; then
1594 ac_must_keep_next=false # Got value, back to normal.
1595 else
1596 case $ac_arg in
1597 *=* | --config-cache | -C | -disable-* | --disable-* \
1598 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1599 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1600 | -with-* | --with-* | -without-* | --without-* | --x)
1601 case "$ac_configure_args0 " in
1602 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1603 esac
1604 ;;
1605 -* ) ac_must_keep_next=true ;;
1606 esac
1607 fi
1608 as_fn_append ac_configure_args " '$ac_arg'"
1609 ;;
1610 esac
1611 done
1612 done
1613 { ac_configure_args0=; unset ac_configure_args0;}
1614 { ac_configure_args1=; unset ac_configure_args1;}
1615
1616 # When interrupted or exit'd, cleanup temporary files, and complete
1617 # config.log. We remove comments because anyway the quotes in there
1618 # would cause problems or look ugly.
1619 # WARNING: Use '\'' to represent an apostrophe within the trap.
1620 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1621 trap 'exit_status=$?
1622 # Save into config.log some information that might help in debugging.
1623 {
1624 echo
1625
1626 $as_echo "## ---------------- ##
1627 ## Cache variables. ##
1628 ## ---------------- ##"
1629 echo
1630 # The following way of writing the cache mishandles newlines in values,
1631 (
1632 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1633 eval ac_val=\$$ac_var
1634 case $ac_val in #(
1635 *${as_nl}*)
1636 case $ac_var in #(
1637 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1638 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1639 esac
1640 case $ac_var in #(
1641 _ | IFS | as_nl) ;; #(
1642 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1643 *) { eval $ac_var=; unset $ac_var;} ;;
1644 esac ;;
1645 esac
1646 done
1647 (set) 2>&1 |
1648 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1649 *${as_nl}ac_space=\ *)
1650 sed -n \
1651 "s/'\''/'\''\\\\'\'''\''/g;
1652 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1653 ;; #(
1654 *)
1655 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1656 ;;
1657 esac |
1658 sort
1659 )
1660 echo
1661
1662 $as_echo "## ----------------- ##
1663 ## Output variables. ##
1664 ## ----------------- ##"
1665 echo
1666 for ac_var in $ac_subst_vars
1667 do
1668 eval ac_val=\$$ac_var
1669 case $ac_val in
1670 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1671 esac
1672 $as_echo "$ac_var='\''$ac_val'\''"
1673 done | sort
1674 echo
1675
1676 if test -n "$ac_subst_files"; then
1677 $as_echo "## ------------------- ##
1678 ## File substitutions. ##
1679 ## ------------------- ##"
1680 echo
1681 for ac_var in $ac_subst_files
1682 do
1683 eval ac_val=\$$ac_var
1684 case $ac_val in
1685 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1686 esac
1687 $as_echo "$ac_var='\''$ac_val'\''"
1688 done | sort
1689 echo
1690 fi
1691
1692 if test -s confdefs.h; then
1693 $as_echo "## ----------- ##
1694 ## confdefs.h. ##
1695 ## ----------- ##"
1696 echo
1697 cat confdefs.h
1698 echo
1699 fi
1700 test "$ac_signal" != 0 &&
1701 $as_echo "$as_me: caught signal $ac_signal"
1702 $as_echo "$as_me: exit $exit_status"
1703 } >&5
1704 rm -f core *.core core.conftest.* &&
1705 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1706 exit $exit_status
1707 ' 0
1708 for ac_signal in 1 2 13 15; do
1709 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1710 done
1711 ac_signal=0
1712
1713 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1714 rm -f -r conftest* confdefs.h
1715
1716 $as_echo "/* confdefs.h */" > confdefs.h
1717
1718 # Predefined preprocessor variables.
1719
1720 cat >>confdefs.h <<_ACEOF
1721 #define PACKAGE_NAME "$PACKAGE_NAME"
1722 _ACEOF
1723
1724 cat >>confdefs.h <<_ACEOF
1725 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1726 _ACEOF
1727
1728 cat >>confdefs.h <<_ACEOF
1729 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1730 _ACEOF
1731
1732 cat >>confdefs.h <<_ACEOF
1733 #define PACKAGE_STRING "$PACKAGE_STRING"
1734 _ACEOF
1735
1736 cat >>confdefs.h <<_ACEOF
1737 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1738 _ACEOF
1739
1740 cat >>confdefs.h <<_ACEOF
1741 #define PACKAGE_URL "$PACKAGE_URL"
1742 _ACEOF
1743
1744
1745 # Let the site file select an alternate cache file if it wants to.
1746 # Prefer an explicitly selected file to automatically selected ones.
1747 ac_site_file1=NONE
1748 ac_site_file2=NONE
1749 if test -n "$CONFIG_SITE"; then
1750 # We do not want a PATH search for config.site.
1751 case $CONFIG_SITE in #((
1752 -*) ac_site_file1=./$CONFIG_SITE;;
1753 */*) ac_site_file1=$CONFIG_SITE;;
1754 *) ac_site_file1=./$CONFIG_SITE;;
1755 esac
1756 elif test "x$prefix" != xNONE; then
1757 ac_site_file1=$prefix/share/config.site
1758 ac_site_file2=$prefix/etc/config.site
1759 else
1760 ac_site_file1=$ac_default_prefix/share/config.site
1761 ac_site_file2=$ac_default_prefix/etc/config.site
1762 fi
1763 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1764 do
1765 test "x$ac_site_file" = xNONE && continue
1766 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1768 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1769 sed 's/^/| /' "$ac_site_file" >&5
1770 . "$ac_site_file" \
1771 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1772 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1773 as_fn_error $? "failed to load site script $ac_site_file
1774 See \`config.log' for more details" "$LINENO" 5; }
1775 fi
1776 done
1777
1778 if test -r "$cache_file"; then
1779 # Some versions of bash will fail to source /dev/null (special files
1780 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1781 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1783 $as_echo "$as_me: loading cache $cache_file" >&6;}
1784 case $cache_file in
1785 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1786 *) . "./$cache_file";;
1787 esac
1788 fi
1789 else
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1791 $as_echo "$as_me: creating cache $cache_file" >&6;}
1792 >$cache_file
1793 fi
1794
1795 # Check that the precious variables saved in the cache have kept the same
1796 # value.
1797 ac_cache_corrupted=false
1798 for ac_var in $ac_precious_vars; do
1799 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1800 eval ac_new_set=\$ac_env_${ac_var}_set
1801 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1802 eval ac_new_val=\$ac_env_${ac_var}_value
1803 case $ac_old_set,$ac_new_set in
1804 set,)
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1806 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1807 ac_cache_corrupted=: ;;
1808 ,set)
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1810 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1811 ac_cache_corrupted=: ;;
1812 ,);;
1813 *)
1814 if test "x$ac_old_val" != "x$ac_new_val"; then
1815 # differences in whitespace do not lead to failure.
1816 ac_old_val_w=`echo x $ac_old_val`
1817 ac_new_val_w=`echo x $ac_new_val`
1818 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1820 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1821 ac_cache_corrupted=:
1822 else
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1824 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1825 eval $ac_var=\$ac_old_val
1826 fi
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1828 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1830 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1831 fi;;
1832 esac
1833 # Pass precious variables to config.status.
1834 if test "$ac_new_set" = set; then
1835 case $ac_new_val in
1836 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1837 *) ac_arg=$ac_var=$ac_new_val ;;
1838 esac
1839 case " $ac_configure_args " in
1840 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1841 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1842 esac
1843 fi
1844 done
1845 if $ac_cache_corrupted; then
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1847 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1849 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1850 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1851 fi
1852 ## -------------------- ##
1853 ## Main body of script. ##
1854 ## -------------------- ##
1855
1856 ac_ext=c
1857 ac_cpp='$CPP $CPPFLAGS'
1858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1861
1862
1863
1864
1865
1866
1867
1868 ac_ext=c
1869 ac_cpp='$CPP $CPPFLAGS'
1870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1873 if test -n "$ac_tool_prefix"; then
1874 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1875 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1877 $as_echo_n "checking for $ac_word... " >&6; }
1878 if ${ac_cv_prog_CC+:} false; then :
1879 $as_echo_n "(cached) " >&6
1880 else
1881 if test -n "$CC"; then
1882 ac_cv_prog_CC="$CC" # Let the user override the test.
1883 else
1884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1885 for as_dir in $PATH
1886 do
1887 IFS=$as_save_IFS
1888 test -z "$as_dir" && as_dir=.
1889 for ac_exec_ext in '' $ac_executable_extensions; do
1890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1891 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1893 break 2
1894 fi
1895 done
1896 done
1897 IFS=$as_save_IFS
1898
1899 fi
1900 fi
1901 CC=$ac_cv_prog_CC
1902 if test -n "$CC"; then
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1904 $as_echo "$CC" >&6; }
1905 else
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1907 $as_echo "no" >&6; }
1908 fi
1909
1910
1911 fi
1912 if test -z "$ac_cv_prog_CC"; then
1913 ac_ct_CC=$CC
1914 # Extract the first word of "gcc", so it can be a program name with args.
1915 set dummy gcc; ac_word=$2
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1917 $as_echo_n "checking for $ac_word... " >&6; }
1918 if ${ac_cv_prog_ac_ct_CC+:} false; then :
1919 $as_echo_n "(cached) " >&6
1920 else
1921 if test -n "$ac_ct_CC"; then
1922 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1923 else
1924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1925 for as_dir in $PATH
1926 do
1927 IFS=$as_save_IFS
1928 test -z "$as_dir" && as_dir=.
1929 for ac_exec_ext in '' $ac_executable_extensions; do
1930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1931 ac_cv_prog_ac_ct_CC="gcc"
1932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1933 break 2
1934 fi
1935 done
1936 done
1937 IFS=$as_save_IFS
1938
1939 fi
1940 fi
1941 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1942 if test -n "$ac_ct_CC"; then
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
1944 $as_echo "$ac_ct_CC" >&6; }
1945 else
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1947 $as_echo "no" >&6; }
1948 fi
1949
1950 if test "x$ac_ct_CC" = x; then
1951 CC=""
1952 else
1953 case $cross_compiling:$ac_tool_warned in
1954 yes:)
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1957 ac_tool_warned=yes ;;
1958 esac
1959 CC=$ac_ct_CC
1960 fi
1961 else
1962 CC="$ac_cv_prog_CC"
1963 fi
1964
1965 if test -z "$CC"; then
1966 if test -n "$ac_tool_prefix"; then
1967 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1968 set dummy ${ac_tool_prefix}cc; ac_word=$2
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1970 $as_echo_n "checking for $ac_word... " >&6; }
1971 if ${ac_cv_prog_CC+:} false; then :
1972 $as_echo_n "(cached) " >&6
1973 else
1974 if test -n "$CC"; then
1975 ac_cv_prog_CC="$CC" # Let the user override the test.
1976 else
1977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1978 for as_dir in $PATH
1979 do
1980 IFS=$as_save_IFS
1981 test -z "$as_dir" && as_dir=.
1982 for ac_exec_ext in '' $ac_executable_extensions; do
1983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1984 ac_cv_prog_CC="${ac_tool_prefix}cc"
1985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1986 break 2
1987 fi
1988 done
1989 done
1990 IFS=$as_save_IFS
1991
1992 fi
1993 fi
1994 CC=$ac_cv_prog_CC
1995 if test -n "$CC"; then
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1997 $as_echo "$CC" >&6; }
1998 else
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2000 $as_echo "no" >&6; }
2001 fi
2002
2003
2004 fi
2005 fi
2006 if test -z "$CC"; then
2007 # Extract the first word of "cc", so it can be a program name with args.
2008 set dummy cc; ac_word=$2
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2010 $as_echo_n "checking for $ac_word... " >&6; }
2011 if ${ac_cv_prog_CC+:} false; then :
2012 $as_echo_n "(cached) " >&6
2013 else
2014 if test -n "$CC"; then
2015 ac_cv_prog_CC="$CC" # Let the user override the test.
2016 else
2017 ac_prog_rejected=no
2018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2019 for as_dir in $PATH
2020 do
2021 IFS=$as_save_IFS
2022 test -z "$as_dir" && as_dir=.
2023 for ac_exec_ext in '' $ac_executable_extensions; do
2024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2025 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2026 ac_prog_rejected=yes
2027 continue
2028 fi
2029 ac_cv_prog_CC="cc"
2030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2031 break 2
2032 fi
2033 done
2034 done
2035 IFS=$as_save_IFS
2036
2037 if test $ac_prog_rejected = yes; then
2038 # We found a bogon in the path, so make sure we never use it.
2039 set dummy $ac_cv_prog_CC
2040 shift
2041 if test $# != 0; then
2042 # We chose a different compiler from the bogus one.
2043 # However, it has the same basename, so the bogon will be chosen
2044 # first if we set CC to just the basename; use the full file name.
2045 shift
2046 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2047 fi
2048 fi
2049 fi
2050 fi
2051 CC=$ac_cv_prog_CC
2052 if test -n "$CC"; then
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2054 $as_echo "$CC" >&6; }
2055 else
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2057 $as_echo "no" >&6; }
2058 fi
2059
2060
2061 fi
2062 if test -z "$CC"; then
2063 if test -n "$ac_tool_prefix"; then
2064 for ac_prog in cl.exe
2065 do
2066 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2067 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2069 $as_echo_n "checking for $ac_word... " >&6; }
2070 if ${ac_cv_prog_CC+:} false; then :
2071 $as_echo_n "(cached) " >&6
2072 else
2073 if test -n "$CC"; then
2074 ac_cv_prog_CC="$CC" # Let the user override the test.
2075 else
2076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2077 for as_dir in $PATH
2078 do
2079 IFS=$as_save_IFS
2080 test -z "$as_dir" && as_dir=.
2081 for ac_exec_ext in '' $ac_executable_extensions; do
2082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2083 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2085 break 2
2086 fi
2087 done
2088 done
2089 IFS=$as_save_IFS
2090
2091 fi
2092 fi
2093 CC=$ac_cv_prog_CC
2094 if test -n "$CC"; then
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2096 $as_echo "$CC" >&6; }
2097 else
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2099 $as_echo "no" >&6; }
2100 fi
2101
2102
2103 test -n "$CC" && break
2104 done
2105 fi
2106 if test -z "$CC"; then
2107 ac_ct_CC=$CC
2108 for ac_prog in cl.exe
2109 do
2110 # Extract the first word of "$ac_prog", so it can be a program name with args.
2111 set dummy $ac_prog; ac_word=$2
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2113 $as_echo_n "checking for $ac_word... " >&6; }
2114 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2115 $as_echo_n "(cached) " >&6
2116 else
2117 if test -n "$ac_ct_CC"; then
2118 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2119 else
2120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2121 for as_dir in $PATH
2122 do
2123 IFS=$as_save_IFS
2124 test -z "$as_dir" && as_dir=.
2125 for ac_exec_ext in '' $ac_executable_extensions; do
2126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2127 ac_cv_prog_ac_ct_CC="$ac_prog"
2128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2129 break 2
2130 fi
2131 done
2132 done
2133 IFS=$as_save_IFS
2134
2135 fi
2136 fi
2137 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2138 if test -n "$ac_ct_CC"; then
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2140 $as_echo "$ac_ct_CC" >&6; }
2141 else
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2143 $as_echo "no" >&6; }
2144 fi
2145
2146
2147 test -n "$ac_ct_CC" && break
2148 done
2149
2150 if test "x$ac_ct_CC" = x; then
2151 CC=""
2152 else
2153 case $cross_compiling:$ac_tool_warned in
2154 yes:)
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2157 ac_tool_warned=yes ;;
2158 esac
2159 CC=$ac_ct_CC
2160 fi
2161 fi
2162
2163 fi
2164
2165
2166 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2168 as_fn_error $? "no acceptable C compiler found in \$PATH
2169 See \`config.log' for more details" "$LINENO" 5; }
2170
2171 # Provide some information about the compiler.
2172 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2173 set X $ac_compile
2174 ac_compiler=$2
2175 for ac_option in --version -v -V -qversion; do
2176 { { ac_try="$ac_compiler $ac_option >&5"
2177 case "(($ac_try" in
2178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2179 *) ac_try_echo=$ac_try;;
2180 esac
2181 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2182 $as_echo "$ac_try_echo"; } >&5
2183 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2184 ac_status=$?
2185 if test -s conftest.err; then
2186 sed '10a\
2187 ... rest of stderr output deleted ...
2188 10q' conftest.err >conftest.er1
2189 cat conftest.er1 >&5
2190 fi
2191 rm -f conftest.er1 conftest.err
2192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2193 test $ac_status = 0; }
2194 done
2195
2196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197 /* end confdefs.h. */
2198
2199 int
2200 main ()
2201 {
2202
2203 ;
2204 return 0;
2205 }
2206 _ACEOF
2207 ac_clean_files_save=$ac_clean_files
2208 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2209 # Try to create an executable without -o first, disregard a.out.
2210 # It will help us diagnose broken compilers, and finding out an intuition
2211 # of exeext.
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2213 $as_echo_n "checking whether the C compiler works... " >&6; }
2214 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2215
2216 # The possible output files:
2217 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2218
2219 ac_rmfiles=
2220 for ac_file in $ac_files
2221 do
2222 case $ac_file in
2223 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2224 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2225 esac
2226 done
2227 rm -f $ac_rmfiles
2228
2229 if { { ac_try="$ac_link_default"
2230 case "(($ac_try" in
2231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2232 *) ac_try_echo=$ac_try;;
2233 esac
2234 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2235 $as_echo "$ac_try_echo"; } >&5
2236 (eval "$ac_link_default") 2>&5
2237 ac_status=$?
2238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2239 test $ac_status = 0; }; then :
2240 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2241 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2242 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2243 # so that the user can short-circuit this test for compilers unknown to
2244 # Autoconf.
2245 for ac_file in $ac_files ''
2246 do
2247 test -f "$ac_file" || continue
2248 case $ac_file in
2249 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2250 ;;
2251 [ab].out )
2252 # We found the default executable, but exeext='' is most
2253 # certainly right.
2254 break;;
2255 *.* )
2256 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2257 then :; else
2258 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2259 fi
2260 # We set ac_cv_exeext here because the later test for it is not
2261 # safe: cross compilers may not add the suffix if given an `-o'
2262 # argument, so we may need to know it at that point already.
2263 # Even if this section looks crufty: it has the advantage of
2264 # actually working.
2265 break;;
2266 * )
2267 break;;
2268 esac
2269 done
2270 test "$ac_cv_exeext" = no && ac_cv_exeext=
2271
2272 else
2273 ac_file=''
2274 fi
2275 if test -z "$ac_file"; then :
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2277 $as_echo "no" >&6; }
2278 $as_echo "$as_me: failed program was:" >&5
2279 sed 's/^/| /' conftest.$ac_ext >&5
2280
2281 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2282 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2283 as_fn_error 77 "C compiler cannot create executables
2284 See \`config.log' for more details" "$LINENO" 5; }
2285 else
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2287 $as_echo "yes" >&6; }
2288 fi
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2290 $as_echo_n "checking for C compiler default output file name... " >&6; }
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2292 $as_echo "$ac_file" >&6; }
2293 ac_exeext=$ac_cv_exeext
2294
2295 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2296 ac_clean_files=$ac_clean_files_save
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2298 $as_echo_n "checking for suffix of executables... " >&6; }
2299 if { { ac_try="$ac_link"
2300 case "(($ac_try" in
2301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2302 *) ac_try_echo=$ac_try;;
2303 esac
2304 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2305 $as_echo "$ac_try_echo"; } >&5
2306 (eval "$ac_link") 2>&5
2307 ac_status=$?
2308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2309 test $ac_status = 0; }; then :
2310 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2311 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2312 # work properly (i.e., refer to `conftest.exe'), while it won't with
2313 # `rm'.
2314 for ac_file in conftest.exe conftest conftest.*; do
2315 test -f "$ac_file" || continue
2316 case $ac_file in
2317 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2318 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2319 break;;
2320 * ) break;;
2321 esac
2322 done
2323 else
2324 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2325 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2326 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2327 See \`config.log' for more details" "$LINENO" 5; }
2328 fi
2329 rm -f conftest conftest$ac_cv_exeext
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2331 $as_echo "$ac_cv_exeext" >&6; }
2332
2333 rm -f conftest.$ac_ext
2334 EXEEXT=$ac_cv_exeext
2335 ac_exeext=$EXEEXT
2336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2337 /* end confdefs.h. */
2338 #include <stdio.h>
2339 int
2340 main ()
2341 {
2342 FILE *f = fopen ("conftest.out", "w");
2343 return ferror (f) || fclose (f) != 0;
2344
2345 ;
2346 return 0;
2347 }
2348 _ACEOF
2349 ac_clean_files="$ac_clean_files conftest.out"
2350 # Check that the compiler produces executables we can run. If not, either
2351 # the compiler is broken, or we cross compile.
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2353 $as_echo_n "checking whether we are cross compiling... " >&6; }
2354 if test "$cross_compiling" != yes; then
2355 { { ac_try="$ac_link"
2356 case "(($ac_try" in
2357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2358 *) ac_try_echo=$ac_try;;
2359 esac
2360 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2361 $as_echo "$ac_try_echo"; } >&5
2362 (eval "$ac_link") 2>&5
2363 ac_status=$?
2364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2365 test $ac_status = 0; }
2366 if { ac_try='./conftest$ac_cv_exeext'
2367 { { case "(($ac_try" in
2368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2369 *) ac_try_echo=$ac_try;;
2370 esac
2371 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2372 $as_echo "$ac_try_echo"; } >&5
2373 (eval "$ac_try") 2>&5
2374 ac_status=$?
2375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2376 test $ac_status = 0; }; }; then
2377 cross_compiling=no
2378 else
2379 if test "$cross_compiling" = maybe; then
2380 cross_compiling=yes
2381 else
2382 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2383 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2384 as_fn_error $? "cannot run C compiled programs.
2385 If you meant to cross compile, use \`--host'.
2386 See \`config.log' for more details" "$LINENO" 5; }
2387 fi
2388 fi
2389 fi
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2391 $as_echo "$cross_compiling" >&6; }
2392
2393 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2394 ac_clean_files=$ac_clean_files_save
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2396 $as_echo_n "checking for suffix of object files... " >&6; }
2397 if ${ac_cv_objext+:} false; then :
2398 $as_echo_n "(cached) " >&6
2399 else
2400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2401 /* end confdefs.h. */
2402
2403 int
2404 main ()
2405 {
2406
2407 ;
2408 return 0;
2409 }
2410 _ACEOF
2411 rm -f conftest.o conftest.obj
2412 if { { ac_try="$ac_compile"
2413 case "(($ac_try" in
2414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2415 *) ac_try_echo=$ac_try;;
2416 esac
2417 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2418 $as_echo "$ac_try_echo"; } >&5
2419 (eval "$ac_compile") 2>&5
2420 ac_status=$?
2421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2422 test $ac_status = 0; }; then :
2423 for ac_file in conftest.o conftest.obj conftest.*; do
2424 test -f "$ac_file" || continue;
2425 case $ac_file in
2426 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2427 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2428 break;;
2429 esac
2430 done
2431 else
2432 $as_echo "$as_me: failed program was:" >&5
2433 sed 's/^/| /' conftest.$ac_ext >&5
2434
2435 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2437 as_fn_error $? "cannot compute suffix of object files: cannot compile
2438 See \`config.log' for more details" "$LINENO" 5; }
2439 fi
2440 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2441 fi
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2443 $as_echo "$ac_cv_objext" >&6; }
2444 OBJEXT=$ac_cv_objext
2445 ac_objext=$OBJEXT
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2447 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2448 if ${ac_cv_c_compiler_gnu+:} false; then :
2449 $as_echo_n "(cached) " >&6
2450 else
2451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2452 /* end confdefs.h. */
2453
2454 int
2455 main ()
2456 {
2457 #ifndef __GNUC__
2458 choke me
2459 #endif
2460
2461 ;
2462 return 0;
2463 }
2464 _ACEOF
2465 if ac_fn_c_try_compile "$LINENO"; then :
2466 ac_compiler_gnu=yes
2467 else
2468 ac_compiler_gnu=no
2469 fi
2470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2471 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2472
2473 fi
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2475 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2476 if test $ac_compiler_gnu = yes; then
2477 GCC=yes
2478 else
2479 GCC=
2480 fi
2481 ac_test_CFLAGS=${CFLAGS+set}
2482 ac_save_CFLAGS=$CFLAGS
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2484 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2485 if ${ac_cv_prog_cc_g+:} false; then :
2486 $as_echo_n "(cached) " >&6
2487 else
2488 ac_save_c_werror_flag=$ac_c_werror_flag
2489 ac_c_werror_flag=yes
2490 ac_cv_prog_cc_g=no
2491 CFLAGS="-g"
2492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2493 /* end confdefs.h. */
2494
2495 int
2496 main ()
2497 {
2498
2499 ;
2500 return 0;
2501 }
2502 _ACEOF
2503 if ac_fn_c_try_compile "$LINENO"; then :
2504 ac_cv_prog_cc_g=yes
2505 else
2506 CFLAGS=""
2507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2508 /* end confdefs.h. */
2509
2510 int
2511 main ()
2512 {
2513
2514 ;
2515 return 0;
2516 }
2517 _ACEOF
2518 if ac_fn_c_try_compile "$LINENO"; then :
2519
2520 else
2521 ac_c_werror_flag=$ac_save_c_werror_flag
2522 CFLAGS="-g"
2523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2524 /* end confdefs.h. */
2525
2526 int
2527 main ()
2528 {
2529
2530 ;
2531 return 0;
2532 }
2533 _ACEOF
2534 if ac_fn_c_try_compile "$LINENO"; then :
2535 ac_cv_prog_cc_g=yes
2536 fi
2537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2538 fi
2539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2540 fi
2541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2542 ac_c_werror_flag=$ac_save_c_werror_flag
2543 fi
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2545 $as_echo "$ac_cv_prog_cc_g" >&6; }
2546 if test "$ac_test_CFLAGS" = set; then
2547 CFLAGS=$ac_save_CFLAGS
2548 elif test $ac_cv_prog_cc_g = yes; then
2549 if test "$GCC" = yes; then
2550 CFLAGS="-g -O2"
2551 else
2552 CFLAGS="-g"
2553 fi
2554 else
2555 if test "$GCC" = yes; then
2556 CFLAGS="-O2"
2557 else
2558 CFLAGS=
2559 fi
2560 fi
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2562 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2563 if ${ac_cv_prog_cc_c89+:} false; then :
2564 $as_echo_n "(cached) " >&6
2565 else
2566 ac_cv_prog_cc_c89=no
2567 ac_save_CC=$CC
2568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2569 /* end confdefs.h. */
2570 #include <stdarg.h>
2571 #include <stdio.h>
2572 struct stat;
2573 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2574 struct buf { int x; };
2575 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2576 static char *e (p, i)
2577 char **p;
2578 int i;
2579 {
2580 return p[i];
2581 }
2582 static char *f (char * (*g) (char **, int), char **p, ...)
2583 {
2584 char *s;
2585 va_list v;
2586 va_start (v,p);
2587 s = g (p, va_arg (v,int));
2588 va_end (v);
2589 return s;
2590 }
2591
2592 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2593 function prototypes and stuff, but not '\xHH' hex character constants.
2594 These don't provoke an error unfortunately, instead are silently treated
2595 as 'x'. The following induces an error, until -std is added to get
2596 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2597 array size at least. It's necessary to write '\x00'==0 to get something
2598 that's true only with -std. */
2599 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2600
2601 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2602 inside strings and character constants. */
2603 #define FOO(x) 'x'
2604 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2605
2606 int test (int i, double x);
2607 struct s1 {int (*f) (int a);};
2608 struct s2 {int (*f) (double a);};
2609 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2610 int argc;
2611 char **argv;
2612 int
2613 main ()
2614 {
2615 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2616 ;
2617 return 0;
2618 }
2619 _ACEOF
2620 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2621 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2622 do
2623 CC="$ac_save_CC $ac_arg"
2624 if ac_fn_c_try_compile "$LINENO"; then :
2625 ac_cv_prog_cc_c89=$ac_arg
2626 fi
2627 rm -f core conftest.err conftest.$ac_objext
2628 test "x$ac_cv_prog_cc_c89" != "xno" && break
2629 done
2630 rm -f conftest.$ac_ext
2631 CC=$ac_save_CC
2632
2633 fi
2634 # AC_CACHE_VAL
2635 case "x$ac_cv_prog_cc_c89" in
2636 x)
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2638 $as_echo "none needed" >&6; } ;;
2639 xno)
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2641 $as_echo "unsupported" >&6; } ;;
2642 *)
2643 CC="$CC $ac_cv_prog_cc_c89"
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2645 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2646 esac
2647 if test "x$ac_cv_prog_cc_c89" != xno; then :
2648
2649 fi
2650
2651 ac_ext=c
2652 ac_cpp='$CPP $CPPFLAGS'
2653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2656
2657 ac_aux_dir=
2658 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2659 if test -f "$ac_dir/install-sh"; then
2660 ac_aux_dir=$ac_dir
2661 ac_install_sh="$ac_aux_dir/install-sh -c"
2662 break
2663 elif test -f "$ac_dir/install.sh"; then
2664 ac_aux_dir=$ac_dir
2665 ac_install_sh="$ac_aux_dir/install.sh -c"
2666 break
2667 elif test -f "$ac_dir/shtool"; then
2668 ac_aux_dir=$ac_dir
2669 ac_install_sh="$ac_aux_dir/shtool install -c"
2670 break
2671 fi
2672 done
2673 if test -z "$ac_aux_dir"; then
2674 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2675 fi
2676
2677 # These three variables are undocumented and unsupported,
2678 # and are intended to be withdrawn in a future Autoconf release.
2679 # They can cause serious problems if a builder's source tree is in a directory
2680 # whose full name contains unusual characters.
2681 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2682 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2683 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2684
2685
2686 # Find a good install program. We prefer a C program (faster),
2687 # so one script is as good as another. But avoid the broken or
2688 # incompatible versions:
2689 # SysV /etc/install, /usr/sbin/install
2690 # SunOS /usr/etc/install
2691 # IRIX /sbin/install
2692 # AIX /bin/install
2693 # AmigaOS /C/install, which installs bootblocks on floppy discs
2694 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2695 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2696 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2697 # OS/2's system install, which has a completely different semantic
2698 # ./install, which can be erroneously created by make from ./install.sh.
2699 # Reject install programs that cannot install multiple files.
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2701 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2702 if test -z "$INSTALL"; then
2703 if ${ac_cv_path_install+:} false; then :
2704 $as_echo_n "(cached) " >&6
2705 else
2706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707 for as_dir in $PATH
2708 do
2709 IFS=$as_save_IFS
2710 test -z "$as_dir" && as_dir=.
2711 # Account for people who put trailing slashes in PATH elements.
2712 case $as_dir/ in #((
2713 ./ | .// | /[cC]/* | \
2714 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2715 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2716 /usr/ucb/* ) ;;
2717 *)
2718 # OSF1 and SCO ODT 3.0 have their own names for install.
2719 # Don't use installbsd from OSF since it installs stuff as root
2720 # by default.
2721 for ac_prog in ginstall scoinst install; do
2722 for ac_exec_ext in '' $ac_executable_extensions; do
2723 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2724 if test $ac_prog = install &&
2725 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2726 # AIX install. It has an incompatible calling convention.
2727 :
2728 elif test $ac_prog = install &&
2729 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2730 # program-specific install script used by HP pwplus--don't use.
2731 :
2732 else
2733 rm -rf conftest.one conftest.two conftest.dir
2734 echo one > conftest.one
2735 echo two > conftest.two
2736 mkdir conftest.dir
2737 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2738 test -s conftest.one && test -s conftest.two &&
2739 test -s conftest.dir/conftest.one &&
2740 test -s conftest.dir/conftest.two
2741 then
2742 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2743 break 3
2744 fi
2745 fi
2746 fi
2747 done
2748 done
2749 ;;
2750 esac
2751
2752 done
2753 IFS=$as_save_IFS
2754
2755 rm -rf conftest.one conftest.two conftest.dir
2756
2757 fi
2758 if test "${ac_cv_path_install+set}" = set; then
2759 INSTALL=$ac_cv_path_install
2760 else
2761 # As a last resort, use the slow shell script. Don't cache a
2762 # value for INSTALL within a source directory, because that will
2763 # break other packages using the cache if that directory is
2764 # removed, or if the value is a relative name.
2765 INSTALL=$ac_install_sh
2766 fi
2767 fi
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2769 $as_echo "$INSTALL" >&6; }
2770
2771 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2772 # It thinks the first close brace ends the variable substitution.
2773 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2774
2775 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2776
2777 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2778
2779 rm -rf .tst 2>/dev/null
2780 mkdir .tst 2>/dev/null
2781 if test -d .tst; then
2782 am__leading_dot=.
2783 else
2784 am__leading_dot=_
2785 fi
2786 rmdir .tst 2>/dev/null
2787
2788 DEPDIR="${am__leading_dot}deps"
2789
2790 # Dependency checking.
2791
2792
2793 ac_config_commands="$ac_config_commands depdir"
2794
2795
2796 depcc="$CC" am_compiler_list=
2797
2798 am_depcomp=$ac_aux_dir/depcomp
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
2800 $as_echo_n "checking dependency style of $depcc... " >&6; }
2801 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
2802 $as_echo_n "(cached) " >&6
2803 else
2804 if test -f "$am_depcomp"; then
2805 # We make a subdir and do the tests there. Otherwise we can end up
2806 # making bogus files that we don't know about and never remove. For
2807 # instance it was reported that on HP-UX the gcc test will end up
2808 # making a dummy file named `D' -- because `-MD' means `put the output
2809 # in D'.
2810 mkdir conftest.dir
2811 # Copy depcomp to subdir because otherwise we won't find it if we're
2812 # using a relative directory.
2813 cp "$am_depcomp" conftest.dir
2814 cd conftest.dir
2815 # We will build objects and dependencies in a subdirectory because
2816 # it helps to detect inapplicable dependency modes. For instance
2817 # both Tru64's cc and ICC support -MD to output dependencies as a
2818 # side effect of compilation, but ICC will put the dependencies in
2819 # the current directory while Tru64 will put them in the object
2820 # directory.
2821 mkdir sub
2822
2823 am_cv_CC_dependencies_compiler_type=none
2824 if test "$am_compiler_list" = ""; then
2825 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2826 fi
2827 for depmode in $am_compiler_list; do
2828 if test $depmode = none; then break; fi
2829
2830 $as_echo "$as_me:$LINENO: trying $depmode" >&5
2831 # Setup a source with many dependencies, because some compilers
2832 # like to wrap large dependency lists on column 80 (with \), and
2833 # we should not choose a depcomp mode which is confused by this.
2834 #
2835 # We need to recreate these files for each test, as the compiler may
2836 # overwrite some of them when testing with obscure command lines.
2837 # This happens at least with the AIX C compiler.
2838 : > sub/conftest.c
2839 for i in 1 2 3 4 5 6; do
2840 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2841 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2842 # Solaris 8's {/usr,}/bin/sh.
2843 touch sub/conftst$i.h
2844 done
2845 echo "include sub/conftest.Po" > confmf
2846
2847 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2848 # mode. It turns out that the SunPro C++ compiler does not properly
2849 # handle `-M -o', and we need to detect this.
2850 depcmd="depmode=$depmode \
2851 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2852 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2853 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
2854 echo "| $depcmd" | sed -e 's/ */ /g' >&5
2855 if env $depcmd > conftest.err 2>&1 &&
2856 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
2857 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
2858 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
2859 # icc doesn't choke on unknown options, it will just issue warnings
2860 # or remarks (even with -Werror). So we grep stderr for any message
2861 # that says an option was ignored or not supported.
2862 # When given -MP, icc 7.0 and 7.1 complain thusly:
2863 # icc: Command line warning: ignoring option '-M'; no argument required
2864 # The diagnosis changed in icc 8.0:
2865 # icc: Command line remark: option '-MP' not supported
2866 if (grep 'ignoring option' conftest.err ||
2867 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2868 am_cv_CC_dependencies_compiler_type=$depmode
2869 $as_echo "$as_me:$LINENO: success" >&5
2870 break
2871 fi
2872 fi
2873 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
2874 sed -e 's/^/| /' < conftest.err >&5
2875 done
2876
2877 cd ..
2878 rm -rf conftest.dir
2879 else
2880 am_cv_CC_dependencies_compiler_type=none
2881 fi
2882
2883 fi
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
2885 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
2886 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
2887 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
2888 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2889
2890 fi
2891
2892
2893 ALL_LINGUAS=
2894 # If we haven't got the data from the intl directory,
2895 # assume NLS is disabled.
2896 USE_NLS=no
2897 LIBINTL=
2898 LIBINTL_DEP=
2899 INCINTL=
2900 XGETTEXT=
2901 GMSGFMT=
2902 POSUB=
2903
2904 if test -f ../../intl/config.intl; then
2905 . ../../intl/config.intl
2906 fi
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
2908 $as_echo_n "checking whether NLS is requested... " >&6; }
2909 if test x"$USE_NLS" != xyes; then
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2911 $as_echo "no" >&6; }
2912 else
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2914 $as_echo "yes" >&6; }
2915
2916 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
2917
2918
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
2920 $as_echo_n "checking for catalogs to be installed... " >&6; }
2921 # Look for .po and .gmo files in the source directory.
2922 CATALOGS=
2923 XLINGUAS=
2924 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
2925 # If there aren't any .gmo files the shell will give us the
2926 # literal string "../path/to/srcdir/po/*.gmo" which has to be
2927 # weeded out.
2928 case "$cat" in *\**)
2929 continue;;
2930 esac
2931 # The quadruple backslash is collapsed to a double backslash
2932 # by the backticks, then collapsed again by the double quotes,
2933 # leaving us with one backslash in the sed expression (right
2934 # before the dot that mustn't act as a wildcard).
2935 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
2936 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
2937 # The user is allowed to set LINGUAS to a list of languages to
2938 # install catalogs for. If it's empty that means "all of them."
2939 if test "x$LINGUAS" = x; then
2940 CATALOGS="$CATALOGS $cat"
2941 XLINGUAS="$XLINGUAS $lang"
2942 else
2943 case "$LINGUAS" in *$lang*)
2944 CATALOGS="$CATALOGS $cat"
2945 XLINGUAS="$XLINGUAS $lang"
2946 ;;
2947 esac
2948 fi
2949 done
2950 LINGUAS="$XLINGUAS"
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
2952 $as_echo "$LINGUAS" >&6; }
2953
2954
2955 DATADIRNAME=share
2956
2957 INSTOBJEXT=.mo
2958
2959 GENCAT=gencat
2960
2961 CATOBJEXT=.gmo
2962
2963 fi
2964
2965
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2967 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2968 # Check whether --enable-maintainer-mode was given.
2969 if test "${enable_maintainer_mode+set}" = set; then :
2970 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2971 else
2972 USE_MAINTAINER_MODE=no
2973 fi
2974
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2976 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2977 if test $USE_MAINTAINER_MODE = yes; then
2978 MAINTAINER_MODE_TRUE=
2979 MAINTAINER_MODE_FALSE='#'
2980 else
2981 MAINTAINER_MODE_TRUE='#'
2982 MAINTAINER_MODE_FALSE=
2983 fi
2984
2985 MAINT=$MAINTAINER_MODE_TRUE
2986
2987
2988
2989
2990 sim_inline="-DDEFAULT_INLINE=0"
2991 # Check whether --enable-sim-inline was given.
2992 if test "${enable_sim_inline+set}" = set; then :
2993 enableval=$enable_sim_inline; sim_inline=""
2994 case "$enableval" in
2995 no) sim_inline="-DDEFAULT_INLINE=0";;
2996 0) sim_inline="-DDEFAULT_INLINE=0";;
2997 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
2998 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
2999 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
3000 new_flag=""
3001 case "$x" in
3002 *_INLINE=*) new_flag="-D$x";;
3003 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
3004 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
3005 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
3006 esac
3007 if test x"$sim_inline" = x""; then
3008 sim_inline="$new_flag"
3009 else
3010 sim_inline="$sim_inline $new_flag"
3011 fi
3012 done;;
3013 esac
3014 if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
3015 echo "Setting inline flags = $sim_inline" 6>&1
3016 fi
3017 fi
3018
3019
3020
3021 # In the Cygwin environment, we need some additional flags.
3022
3023 ac_ext=c
3024 ac_cpp='$CPP $CPPFLAGS'
3025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3029 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3030 # On Suns, sometimes $CPP names a directory.
3031 if test -n "$CPP" && test -d "$CPP"; then
3032 CPP=
3033 fi
3034 if test -z "$CPP"; then
3035 if ${ac_cv_prog_CPP+:} false; then :
3036 $as_echo_n "(cached) " >&6
3037 else
3038 # Double quotes because CPP needs to be expanded
3039 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3040 do
3041 ac_preproc_ok=false
3042 for ac_c_preproc_warn_flag in '' yes
3043 do
3044 # Use a header file that comes with gcc, so configuring glibc
3045 # with a fresh cross-compiler works.
3046 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3047 # <limits.h> exists even on freestanding compilers.
3048 # On the NeXT, cc -E runs the code through the compiler's parser,
3049 # not just through cpp. "Syntax error" is here to catch this case.
3050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3051 /* end confdefs.h. */
3052 #ifdef __STDC__
3053 # include <limits.h>
3054 #else
3055 # include <assert.h>
3056 #endif
3057 Syntax error
3058 _ACEOF
3059 if ac_fn_c_try_cpp "$LINENO"; then :
3060
3061 else
3062 # Broken: fails on valid input.
3063 continue
3064 fi
3065 rm -f conftest.err conftest.i conftest.$ac_ext
3066
3067 # OK, works on sane cases. Now check whether nonexistent headers
3068 # can be detected and how.
3069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3070 /* end confdefs.h. */
3071 #include <ac_nonexistent.h>
3072 _ACEOF
3073 if ac_fn_c_try_cpp "$LINENO"; then :
3074 # Broken: success on invalid input.
3075 continue
3076 else
3077 # Passes both tests.
3078 ac_preproc_ok=:
3079 break
3080 fi
3081 rm -f conftest.err conftest.i conftest.$ac_ext
3082
3083 done
3084 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3085 rm -f conftest.i conftest.err conftest.$ac_ext
3086 if $ac_preproc_ok; then :
3087 break
3088 fi
3089
3090 done
3091 ac_cv_prog_CPP=$CPP
3092
3093 fi
3094 CPP=$ac_cv_prog_CPP
3095 else
3096 ac_cv_prog_CPP=$CPP
3097 fi
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3099 $as_echo "$CPP" >&6; }
3100 ac_preproc_ok=false
3101 for ac_c_preproc_warn_flag in '' yes
3102 do
3103 # Use a header file that comes with gcc, so configuring glibc
3104 # with a fresh cross-compiler works.
3105 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3106 # <limits.h> exists even on freestanding compilers.
3107 # On the NeXT, cc -E runs the code through the compiler's parser,
3108 # not just through cpp. "Syntax error" is here to catch this case.
3109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3110 /* end confdefs.h. */
3111 #ifdef __STDC__
3112 # include <limits.h>
3113 #else
3114 # include <assert.h>
3115 #endif
3116 Syntax error
3117 _ACEOF
3118 if ac_fn_c_try_cpp "$LINENO"; then :
3119
3120 else
3121 # Broken: fails on valid input.
3122 continue
3123 fi
3124 rm -f conftest.err conftest.i conftest.$ac_ext
3125
3126 # OK, works on sane cases. Now check whether nonexistent headers
3127 # can be detected and how.
3128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3129 /* end confdefs.h. */
3130 #include <ac_nonexistent.h>
3131 _ACEOF
3132 if ac_fn_c_try_cpp "$LINENO"; then :
3133 # Broken: success on invalid input.
3134 continue
3135 else
3136 # Passes both tests.
3137 ac_preproc_ok=:
3138 break
3139 fi
3140 rm -f conftest.err conftest.i conftest.$ac_ext
3141
3142 done
3143 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3144 rm -f conftest.i conftest.err conftest.$ac_ext
3145 if $ac_preproc_ok; then :
3146
3147 else
3148 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3149 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3150 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3151 See \`config.log' for more details" "$LINENO" 5; }
3152 fi
3153
3154 ac_ext=c
3155 ac_cpp='$CPP $CPPFLAGS'
3156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3159
3160
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3162 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3163 if ${ac_cv_path_GREP+:} false; then :
3164 $as_echo_n "(cached) " >&6
3165 else
3166 if test -z "$GREP"; then
3167 ac_path_GREP_found=false
3168 # Loop through the user's path and test for each of PROGNAME-LIST
3169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3171 do
3172 IFS=$as_save_IFS
3173 test -z "$as_dir" && as_dir=.
3174 for ac_prog in grep ggrep; do
3175 for ac_exec_ext in '' $ac_executable_extensions; do
3176 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3177 as_fn_executable_p "$ac_path_GREP" || continue
3178 # Check for GNU ac_path_GREP and select it if it is found.
3179 # Check for GNU $ac_path_GREP
3180 case `"$ac_path_GREP" --version 2>&1` in
3181 *GNU*)
3182 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3183 *)
3184 ac_count=0
3185 $as_echo_n 0123456789 >"conftest.in"
3186 while :
3187 do
3188 cat "conftest.in" "conftest.in" >"conftest.tmp"
3189 mv "conftest.tmp" "conftest.in"
3190 cp "conftest.in" "conftest.nl"
3191 $as_echo 'GREP' >> "conftest.nl"
3192 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3193 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3194 as_fn_arith $ac_count + 1 && ac_count=$as_val
3195 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3196 # Best one so far, save it but keep looking for a better one
3197 ac_cv_path_GREP="$ac_path_GREP"
3198 ac_path_GREP_max=$ac_count
3199 fi
3200 # 10*(2^10) chars as input seems more than enough
3201 test $ac_count -gt 10 && break
3202 done
3203 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3204 esac
3205
3206 $ac_path_GREP_found && break 3
3207 done
3208 done
3209 done
3210 IFS=$as_save_IFS
3211 if test -z "$ac_cv_path_GREP"; then
3212 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3213 fi
3214 else
3215 ac_cv_path_GREP=$GREP
3216 fi
3217
3218 fi
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3220 $as_echo "$ac_cv_path_GREP" >&6; }
3221 GREP="$ac_cv_path_GREP"
3222
3223
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3225 $as_echo_n "checking for egrep... " >&6; }
3226 if ${ac_cv_path_EGREP+:} false; then :
3227 $as_echo_n "(cached) " >&6
3228 else
3229 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3230 then ac_cv_path_EGREP="$GREP -E"
3231 else
3232 if test -z "$EGREP"; then
3233 ac_path_EGREP_found=false
3234 # Loop through the user's path and test for each of PROGNAME-LIST
3235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3236 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3237 do
3238 IFS=$as_save_IFS
3239 test -z "$as_dir" && as_dir=.
3240 for ac_prog in egrep; do
3241 for ac_exec_ext in '' $ac_executable_extensions; do
3242 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3243 as_fn_executable_p "$ac_path_EGREP" || continue
3244 # Check for GNU ac_path_EGREP and select it if it is found.
3245 # Check for GNU $ac_path_EGREP
3246 case `"$ac_path_EGREP" --version 2>&1` in
3247 *GNU*)
3248 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3249 *)
3250 ac_count=0
3251 $as_echo_n 0123456789 >"conftest.in"
3252 while :
3253 do
3254 cat "conftest.in" "conftest.in" >"conftest.tmp"
3255 mv "conftest.tmp" "conftest.in"
3256 cp "conftest.in" "conftest.nl"
3257 $as_echo 'EGREP' >> "conftest.nl"
3258 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3259 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3260 as_fn_arith $ac_count + 1 && ac_count=$as_val
3261 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3262 # Best one so far, save it but keep looking for a better one
3263 ac_cv_path_EGREP="$ac_path_EGREP"
3264 ac_path_EGREP_max=$ac_count
3265 fi
3266 # 10*(2^10) chars as input seems more than enough
3267 test $ac_count -gt 10 && break
3268 done
3269 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3270 esac
3271
3272 $ac_path_EGREP_found && break 3
3273 done
3274 done
3275 done
3276 IFS=$as_save_IFS
3277 if test -z "$ac_cv_path_EGREP"; then
3278 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3279 fi
3280 else
3281 ac_cv_path_EGREP=$EGREP
3282 fi
3283
3284 fi
3285 fi
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3287 $as_echo "$ac_cv_path_EGREP" >&6; }
3288 EGREP="$ac_cv_path_EGREP"
3289
3290
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
3292 $as_echo_n "checking for cygwin... " >&6; }
3293 if ${sim_cv_os_cygwin+:} false; then :
3294 $as_echo_n "(cached) " >&6
3295 else
3296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3297 /* end confdefs.h. */
3298
3299 #ifdef __CYGWIN__
3300 lose
3301 #endif
3302 _ACEOF
3303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3304 $EGREP "lose" >/dev/null 2>&1; then :
3305 sim_cv_os_cygwin=yes
3306 else
3307 sim_cv_os_cygwin=no
3308 fi
3309 rm -f conftest*
3310
3311 fi
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_os_cygwin" >&5
3313 $as_echo "$sim_cv_os_cygwin" >&6; }
3314
3315 # Keep in sync with gdb's configure.ac list.
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
3317 $as_echo_n "checking for library containing tgetent... " >&6; }
3318 if ${ac_cv_search_tgetent+:} false; then :
3319 $as_echo_n "(cached) " >&6
3320 else
3321 ac_func_search_save_LIBS=$LIBS
3322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3323 /* end confdefs.h. */
3324
3325 /* Override any GCC internal prototype to avoid an error.
3326 Use char because int might match the return type of a GCC
3327 builtin and then its argument prototype would still apply. */
3328 #ifdef __cplusplus
3329 extern "C"
3330 #endif
3331 char tgetent ();
3332 int
3333 main ()
3334 {
3335 return tgetent ();
3336 ;
3337 return 0;
3338 }
3339 _ACEOF
3340 for ac_lib in '' termcap tinfo curses ncurses; do
3341 if test -z "$ac_lib"; then
3342 ac_res="none required"
3343 else
3344 ac_res=-l$ac_lib
3345 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3346 fi
3347 if ac_fn_c_try_link "$LINENO"; then :
3348 ac_cv_search_tgetent=$ac_res
3349 fi
3350 rm -f core conftest.err conftest.$ac_objext \
3351 conftest$ac_exeext
3352 if ${ac_cv_search_tgetent+:} false; then :
3353 break
3354 fi
3355 done
3356 if ${ac_cv_search_tgetent+:} false; then :
3357
3358 else
3359 ac_cv_search_tgetent=no
3360 fi
3361 rm conftest.$ac_ext
3362 LIBS=$ac_func_search_save_LIBS
3363 fi
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
3365 $as_echo "$ac_cv_search_tgetent" >&6; }
3366 ac_res=$ac_cv_search_tgetent
3367 if test "$ac_res" != no; then :
3368 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3369 TERMCAP=$ac_cv_search_tgetent
3370 else
3371 TERMCAP=""
3372 fi
3373
3374 if test x$sim_cv_os_cygwin = xyes; then
3375 TERMCAP="${TERMCAP} -luser32"
3376 fi
3377
3378
3379 # We prefer the in-tree readline. Top-level dependencies make sure
3380 # src/readline (if it's there) is configured before src/sim.
3381 if test -r ../../readline/Makefile; then
3382 READLINE=../../readline/readline/libreadline.a
3383 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
3384 else
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
3386 $as_echo_n "checking for readline in -lreadline... " >&6; }
3387 if ${ac_cv_lib_readline_readline+:} false; then :
3388 $as_echo_n "(cached) " >&6
3389 else
3390 ac_check_lib_save_LIBS=$LIBS
3391 LIBS="-lreadline $TERMCAP $LIBS"
3392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3393 /* end confdefs.h. */
3394
3395 /* Override any GCC internal prototype to avoid an error.
3396 Use char because int might match the return type of a GCC
3397 builtin and then its argument prototype would still apply. */
3398 #ifdef __cplusplus
3399 extern "C"
3400 #endif
3401 char readline ();
3402 int
3403 main ()
3404 {
3405 return readline ();
3406 ;
3407 return 0;
3408 }
3409 _ACEOF
3410 if ac_fn_c_try_link "$LINENO"; then :
3411 ac_cv_lib_readline_readline=yes
3412 else
3413 ac_cv_lib_readline_readline=no
3414 fi
3415 rm -f core conftest.err conftest.$ac_objext \
3416 conftest$ac_exeext conftest.$ac_ext
3417 LIBS=$ac_check_lib_save_LIBS
3418 fi
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
3420 $as_echo "$ac_cv_lib_readline_readline" >&6; }
3421 if test "x$ac_cv_lib_readline_readline" = xyes; then :
3422 READLINE=-lreadline
3423 else
3424 as_fn_error $? "the required \"readline\" library is missing" "$LINENO" 5
3425 fi
3426
3427 READLINE_CFLAGS=
3428 fi
3429
3430
3431
3432 hardware="cfi core pal glue "
3433 sim_hw_cflags="-DWITH_HW=1"
3434 sim_hw="$hardware"
3435 sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
3436
3437 # Check whether --enable-sim-hardware was given.
3438 if test "${enable_sim_hardware+set}" = set; then :
3439 enableval=$enable_sim_hardware;
3440 else
3441 enable_sim_hardware="yes"
3442 fi
3443
3444 case ${enable_sim_hardware} in
3445 yes|no) ;;
3446 ,*) hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
3447 *,) hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
3448 *) hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
3449 esac
3450
3451 if test "$enable_sim_hardware" = no; then
3452 sim_hw_objs=
3453 sim_hw_cflags="-DWITH_HW=0"
3454 sim_hw=
3455 else
3456 sim_hw_cflags="-DWITH_HW=1"
3457 # remove duplicates
3458 sim_hw=""
3459 sim_hw_objs="\$(SIM_COMMON_HW_OBJS)"
3460 for i in $hardware ; do
3461 case " $sim_hw " in
3462 *" $i "*) ;;
3463 *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";;
3464 esac
3465 done
3466 # mingw does not support sockser
3467 case ${host} in
3468 *mingw*) ;;
3469 *) # TODO: We don't add dv-sockser to sim_hw as it is not a "real" device
3470 # that you instatiate. Instead, other code will call into it directly.
3471 # At some point, we should convert it over.
3472 sim_hw_objs="$sim_hw_objs dv-sockser.o"
3473 sim_hw_cflags="$sim_hw_cflags -DHAVE_DV_SOCKSER"
3474 ;;
3475 esac
3476 if test x"$silent" != x"yes"; then
3477 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
3478 fi
3479 fi
3480
3481
3482 cgen_breaks=""
3483 if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
3484 cgen_breaks="break cgen_rtx_error";
3485 fi
3486
3487 ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
3488
3489 ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
3490
3491 ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
3492
3493 ac_config_commands="$ac_config_commands Makefile"
3494
3495 ac_config_commands="$ac_config_commands stamp-h"
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507 cat >confcache <<\_ACEOF
3508 # This file is a shell script that caches the results of configure
3509 # tests run on this system so they can be shared between configure
3510 # scripts and configure runs, see configure's option --config-cache.
3511 # It is not useful on other systems. If it contains results you don't
3512 # want to keep, you may remove or edit it.
3513 #
3514 # config.status only pays attention to the cache file if you give it
3515 # the --recheck option to rerun configure.
3516 #
3517 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3518 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3519 # following values.
3520
3521 _ACEOF
3522
3523 # The following way of writing the cache mishandles newlines in values,
3524 # but we know of no workaround that is simple, portable, and efficient.
3525 # So, we kill variables containing newlines.
3526 # Ultrix sh set writes to stderr and can't be redirected directly,
3527 # and sets the high bit in the cache file unless we assign to the vars.
3528 (
3529 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3530 eval ac_val=\$$ac_var
3531 case $ac_val in #(
3532 *${as_nl}*)
3533 case $ac_var in #(
3534 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3535 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3536 esac
3537 case $ac_var in #(
3538 _ | IFS | as_nl) ;; #(
3539 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3540 *) { eval $ac_var=; unset $ac_var;} ;;
3541 esac ;;
3542 esac
3543 done
3544
3545 (set) 2>&1 |
3546 case $as_nl`(ac_space=' '; set) 2>&1` in #(
3547 *${as_nl}ac_space=\ *)
3548 # `set' does not quote correctly, so add quotes: double-quote
3549 # substitution turns \\\\ into \\, and sed turns \\ into \.
3550 sed -n \
3551 "s/'/'\\\\''/g;
3552 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3553 ;; #(
3554 *)
3555 # `set' quotes correctly as required by POSIX, so do not add quotes.
3556 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3557 ;;
3558 esac |
3559 sort
3560 ) |
3561 sed '
3562 /^ac_cv_env_/b end
3563 t clear
3564 :clear
3565 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3566 t end
3567 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3568 :end' >>confcache
3569 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3570 if test -w "$cache_file"; then
3571 if test "x$cache_file" != "x/dev/null"; then
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3573 $as_echo "$as_me: updating cache $cache_file" >&6;}
3574 if test ! -f "$cache_file" || test -h "$cache_file"; then
3575 cat confcache >"$cache_file"
3576 else
3577 case $cache_file in #(
3578 */* | ?:*)
3579 mv -f confcache "$cache_file"$$ &&
3580 mv -f "$cache_file"$$ "$cache_file" ;; #(
3581 *)
3582 mv -f confcache "$cache_file" ;;
3583 esac
3584 fi
3585 fi
3586 else
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3588 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3589 fi
3590 fi
3591 rm -f confcache
3592
3593 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3594 # Let make expand exec_prefix.
3595 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3596
3597 # Transform confdefs.h into DEFS.
3598 # Protect against shell expansion while executing Makefile rules.
3599 # Protect against Makefile macro expansion.
3600 #
3601 # If the first sed substitution is executed (which looks for macros that
3602 # take arguments), then branch to the quote section. Otherwise,
3603 # look for a macro that doesn't take arguments.
3604 ac_script='
3605 :mline
3606 /\\$/{
3607 N
3608 s,\\\n,,
3609 b mline
3610 }
3611 t clear
3612 :clear
3613 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
3614 t quote
3615 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
3616 t quote
3617 b any
3618 :quote
3619 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
3620 s/\[/\\&/g
3621 s/\]/\\&/g
3622 s/\$/$$/g
3623 H
3624 :any
3625 ${
3626 g
3627 s/^\n//
3628 s/\n/ /g
3629 p
3630 }
3631 '
3632 DEFS=`sed -n "$ac_script" confdefs.h`
3633
3634
3635 ac_libobjs=
3636 ac_ltlibobjs=
3637 U=
3638 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3639 # 1. Remove the extension, and $U if already installed.
3640 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3641 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
3642 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
3643 # will be set to the directory where LIBOBJS objects are built.
3644 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3645 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3646 done
3647 LIBOBJS=$ac_libobjs
3648
3649 LTLIBOBJS=$ac_ltlibobjs
3650
3651
3652 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
3653 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
3654 Usually this means the macro was only invoked conditionally." "$LINENO" 5
3655 fi
3656
3657 : "${CONFIG_STATUS=./config.status}"
3658 ac_write_fail=0
3659 ac_clean_files_save=$ac_clean_files
3660 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3662 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
3663 as_write_fail=0
3664 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3665 #! $SHELL
3666 # Generated by $as_me.
3667 # Run this file to recreate the current configuration.
3668 # Compiler output produced by configure, useful for debugging
3669 # configure, is in config.log if it exists.
3670
3671 debug=false
3672 ac_cs_recheck=false
3673 ac_cs_silent=false
3674
3675 SHELL=\${CONFIG_SHELL-$SHELL}
3676 export SHELL
3677 _ASEOF
3678 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3679 ## -------------------- ##
3680 ## M4sh Initialization. ##
3681 ## -------------------- ##
3682
3683 # Be more Bourne compatible
3684 DUALCASE=1; export DUALCASE # for MKS sh
3685 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
3686 emulate sh
3687 NULLCMD=:
3688 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3689 # is contrary to our usage. Disable this feature.
3690 alias -g '${1+"$@"}'='"$@"'
3691 setopt NO_GLOB_SUBST
3692 else
3693 case `(set -o) 2>/dev/null` in #(
3694 *posix*) :
3695 set -o posix ;; #(
3696 *) :
3697 ;;
3698 esac
3699 fi
3700
3701
3702 as_nl='
3703 '
3704 export as_nl
3705 # Printing a long string crashes Solaris 7 /usr/bin/printf.
3706 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3707 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
3708 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
3709 # Prefer a ksh shell builtin over an external printf program on Solaris,
3710 # but without wasting forks for bash or zsh.
3711 if test -z "$BASH_VERSION$ZSH_VERSION" \
3712 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
3713 as_echo='print -r --'
3714 as_echo_n='print -rn --'
3715 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
3716 as_echo='printf %s\n'
3717 as_echo_n='printf %s'
3718 else
3719 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
3720 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
3721 as_echo_n='/usr/ucb/echo -n'
3722 else
3723 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
3724 as_echo_n_body='eval
3725 arg=$1;
3726 case $arg in #(
3727 *"$as_nl"*)
3728 expr "X$arg" : "X\\(.*\\)$as_nl";
3729 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
3730 esac;
3731 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
3732 '
3733 export as_echo_n_body
3734 as_echo_n='sh -c $as_echo_n_body as_echo'
3735 fi
3736 export as_echo_body
3737 as_echo='sh -c $as_echo_body as_echo'
3738 fi
3739
3740 # The user is always right.
3741 if test "${PATH_SEPARATOR+set}" != set; then
3742 PATH_SEPARATOR=:
3743 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3744 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3745 PATH_SEPARATOR=';'
3746 }
3747 fi
3748
3749
3750 # IFS
3751 # We need space, tab and new line, in precisely that order. Quoting is
3752 # there to prevent editors from complaining about space-tab.
3753 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
3754 # splitting by setting IFS to empty value.)
3755 IFS=" "" $as_nl"
3756
3757 # Find who we are. Look in the path if we contain no directory separator.
3758 as_myself=
3759 case $0 in #((
3760 *[\\/]* ) as_myself=$0 ;;
3761 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3762 for as_dir in $PATH
3763 do
3764 IFS=$as_save_IFS
3765 test -z "$as_dir" && as_dir=.
3766 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3767 done
3768 IFS=$as_save_IFS
3769
3770 ;;
3771 esac
3772 # We did not find ourselves, most probably we were run as `sh COMMAND'
3773 # in which case we are not to be found in the path.
3774 if test "x$as_myself" = x; then
3775 as_myself=$0
3776 fi
3777 if test ! -f "$as_myself"; then
3778 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3779 exit 1
3780 fi
3781
3782 # Unset variables that we do not need and which cause bugs (e.g. in
3783 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
3784 # suppresses any "Segmentation fault" message there. '((' could
3785 # trigger a bug in pdksh 5.2.14.
3786 for as_var in BASH_ENV ENV MAIL MAILPATH
3787 do eval test x\${$as_var+set} = xset \
3788 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3789 done
3790 PS1='$ '
3791 PS2='> '
3792 PS4='+ '
3793
3794 # NLS nuisances.
3795 LC_ALL=C
3796 export LC_ALL
3797 LANGUAGE=C
3798 export LANGUAGE
3799
3800 # CDPATH.
3801 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3802
3803
3804 # as_fn_error STATUS ERROR [LINENO LOG_FD]
3805 # ----------------------------------------
3806 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3807 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3808 # script with STATUS, using 1 if that was 0.
3809 as_fn_error ()
3810 {
3811 as_status=$1; test $as_status -eq 0 && as_status=1
3812 if test "$4"; then
3813 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3814 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3815 fi
3816 $as_echo "$as_me: error: $2" >&2
3817 as_fn_exit $as_status
3818 } # as_fn_error
3819
3820
3821 # as_fn_set_status STATUS
3822 # -----------------------
3823 # Set $? to STATUS, without forking.
3824 as_fn_set_status ()
3825 {
3826 return $1
3827 } # as_fn_set_status
3828
3829 # as_fn_exit STATUS
3830 # -----------------
3831 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3832 as_fn_exit ()
3833 {
3834 set +e
3835 as_fn_set_status $1
3836 exit $1
3837 } # as_fn_exit
3838
3839 # as_fn_unset VAR
3840 # ---------------
3841 # Portably unset VAR.
3842 as_fn_unset ()
3843 {
3844 { eval $1=; unset $1;}
3845 }
3846 as_unset=as_fn_unset
3847 # as_fn_append VAR VALUE
3848 # ----------------------
3849 # Append the text in VALUE to the end of the definition contained in VAR. Take
3850 # advantage of any shell optimizations that allow amortized linear growth over
3851 # repeated appends, instead of the typical quadratic growth present in naive
3852 # implementations.
3853 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3854 eval 'as_fn_append ()
3855 {
3856 eval $1+=\$2
3857 }'
3858 else
3859 as_fn_append ()
3860 {
3861 eval $1=\$$1\$2
3862 }
3863 fi # as_fn_append
3864
3865 # as_fn_arith ARG...
3866 # ------------------
3867 # Perform arithmetic evaluation on the ARGs, and store the result in the
3868 # global $as_val. Take advantage of shells that can avoid forks. The arguments
3869 # must be portable across $(()) and expr.
3870 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3871 eval 'as_fn_arith ()
3872 {
3873 as_val=$(( $* ))
3874 }'
3875 else
3876 as_fn_arith ()
3877 {
3878 as_val=`expr "$@" || test $? -eq 1`
3879 }
3880 fi # as_fn_arith
3881
3882
3883 if expr a : '\(a\)' >/dev/null 2>&1 &&
3884 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3885 as_expr=expr
3886 else
3887 as_expr=false
3888 fi
3889
3890 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3891 as_basename=basename
3892 else
3893 as_basename=false
3894 fi
3895
3896 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3897 as_dirname=dirname
3898 else
3899 as_dirname=false
3900 fi
3901
3902 as_me=`$as_basename -- "$0" ||
3903 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3904 X"$0" : 'X\(//\)$' \| \
3905 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3906 $as_echo X/"$0" |
3907 sed '/^.*\/\([^/][^/]*\)\/*$/{
3908 s//\1/
3909 q
3910 }
3911 /^X\/\(\/\/\)$/{
3912 s//\1/
3913 q
3914 }
3915 /^X\/\(\/\).*/{
3916 s//\1/
3917 q
3918 }
3919 s/.*/./; q'`
3920
3921 # Avoid depending upon Character Ranges.
3922 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3923 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3924 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3925 as_cr_digits='0123456789'
3926 as_cr_alnum=$as_cr_Letters$as_cr_digits
3927
3928 ECHO_C= ECHO_N= ECHO_T=
3929 case `echo -n x` in #(((((
3930 -n*)
3931 case `echo 'xy\c'` in
3932 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
3933 xy) ECHO_C='\c';;
3934 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
3935 ECHO_T=' ';;
3936 esac;;
3937 *)
3938 ECHO_N='-n';;
3939 esac
3940
3941 rm -f conf$$ conf$$.exe conf$$.file
3942 if test -d conf$$.dir; then
3943 rm -f conf$$.dir/conf$$.file
3944 else
3945 rm -f conf$$.dir
3946 mkdir conf$$.dir 2>/dev/null
3947 fi
3948 if (echo >conf$$.file) 2>/dev/null; then
3949 if ln -s conf$$.file conf$$ 2>/dev/null; then
3950 as_ln_s='ln -s'
3951 # ... but there are two gotchas:
3952 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3953 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3954 # In both cases, we have to default to `cp -pR'.
3955 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3956 as_ln_s='cp -pR'
3957 elif ln conf$$.file conf$$ 2>/dev/null; then
3958 as_ln_s=ln
3959 else
3960 as_ln_s='cp -pR'
3961 fi
3962 else
3963 as_ln_s='cp -pR'
3964 fi
3965 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3966 rmdir conf$$.dir 2>/dev/null
3967
3968
3969 # as_fn_mkdir_p
3970 # -------------
3971 # Create "$as_dir" as a directory, including parents if necessary.
3972 as_fn_mkdir_p ()
3973 {
3974
3975 case $as_dir in #(
3976 -*) as_dir=./$as_dir;;
3977 esac
3978 test -d "$as_dir" || eval $as_mkdir_p || {
3979 as_dirs=
3980 while :; do
3981 case $as_dir in #(
3982 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3983 *) as_qdir=$as_dir;;
3984 esac
3985 as_dirs="'$as_qdir' $as_dirs"
3986 as_dir=`$as_dirname -- "$as_dir" ||
3987 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3988 X"$as_dir" : 'X\(//\)[^/]' \| \
3989 X"$as_dir" : 'X\(//\)$' \| \
3990 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3991 $as_echo X"$as_dir" |
3992 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3993 s//\1/
3994 q
3995 }
3996 /^X\(\/\/\)[^/].*/{
3997 s//\1/
3998 q
3999 }
4000 /^X\(\/\/\)$/{
4001 s//\1/
4002 q
4003 }
4004 /^X\(\/\).*/{
4005 s//\1/
4006 q
4007 }
4008 s/.*/./; q'`
4009 test -d "$as_dir" && break
4010 done
4011 test -z "$as_dirs" || eval "mkdir $as_dirs"
4012 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4013
4014
4015 } # as_fn_mkdir_p
4016 if mkdir -p . 2>/dev/null; then
4017 as_mkdir_p='mkdir -p "$as_dir"'
4018 else
4019 test -d ./-p && rmdir ./-p
4020 as_mkdir_p=false
4021 fi
4022
4023
4024 # as_fn_executable_p FILE
4025 # -----------------------
4026 # Test if FILE is an executable regular file.
4027 as_fn_executable_p ()
4028 {
4029 test -f "$1" && test -x "$1"
4030 } # as_fn_executable_p
4031 as_test_x='test -x'
4032 as_executable_p=as_fn_executable_p
4033
4034 # Sed expression to map a string onto a valid CPP name.
4035 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4036
4037 # Sed expression to map a string onto a valid variable name.
4038 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4039
4040
4041 exec 6>&1
4042 ## ----------------------------------- ##
4043 ## Main body of $CONFIG_STATUS script. ##
4044 ## ----------------------------------- ##
4045 _ASEOF
4046 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4047
4048 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4049 # Save the log message, to keep $0 and so on meaningful, and to
4050 # report actual input values of CONFIG_FILES etc. instead of their
4051 # values after options handling.
4052 ac_log="
4053 This file was extended by $as_me, which was
4054 generated by GNU Autoconf 2.69. Invocation command line was
4055
4056 CONFIG_FILES = $CONFIG_FILES
4057 CONFIG_HEADERS = $CONFIG_HEADERS
4058 CONFIG_LINKS = $CONFIG_LINKS
4059 CONFIG_COMMANDS = $CONFIG_COMMANDS
4060 $ $0 $@
4061
4062 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4063 "
4064
4065 _ACEOF
4066
4067 case $ac_config_files in *"
4068 "*) set x $ac_config_files; shift; ac_config_files=$*;;
4069 esac
4070
4071
4072
4073 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4074 # Files that config.status was made for.
4075 config_files="$ac_config_files"
4076 config_commands="$ac_config_commands"
4077
4078 _ACEOF
4079
4080 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4081 ac_cs_usage="\
4082 \`$as_me' instantiates files and other configuration actions
4083 from templates according to the current configuration. Unless the files
4084 and actions are specified as TAGs, all are instantiated by default.
4085
4086 Usage: $0 [OPTION]... [TAG]...
4087
4088 -h, --help print this help, then exit
4089 -V, --version print version number and configuration settings, then exit
4090 --config print configuration, then exit
4091 -q, --quiet, --silent
4092 do not print progress messages
4093 -d, --debug don't remove temporary files
4094 --recheck update $as_me by reconfiguring in the same conditions
4095 --file=FILE[:TEMPLATE]
4096 instantiate the configuration file FILE
4097
4098 Configuration files:
4099 $config_files
4100
4101 Configuration commands:
4102 $config_commands
4103
4104 Report bugs to the package provider."
4105
4106 _ACEOF
4107 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4108 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4109 ac_cs_version="\\
4110 config.status
4111 configured by $0, generated by GNU Autoconf 2.69,
4112 with options \\"\$ac_cs_config\\"
4113
4114 Copyright (C) 2012 Free Software Foundation, Inc.
4115 This config.status script is free software; the Free Software Foundation
4116 gives unlimited permission to copy, distribute and modify it."
4117
4118 ac_pwd='$ac_pwd'
4119 srcdir='$srcdir'
4120 INSTALL='$INSTALL'
4121 test -n "\$AWK" || AWK=awk
4122 _ACEOF
4123
4124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4125 # The default lists apply if the user does not specify any file.
4126 ac_need_defaults=:
4127 while test $# != 0
4128 do
4129 case $1 in
4130 --*=?*)
4131 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4132 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4133 ac_shift=:
4134 ;;
4135 --*=)
4136 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4137 ac_optarg=
4138 ac_shift=:
4139 ;;
4140 *)
4141 ac_option=$1
4142 ac_optarg=$2
4143 ac_shift=shift
4144 ;;
4145 esac
4146
4147 case $ac_option in
4148 # Handling of the options.
4149 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4150 ac_cs_recheck=: ;;
4151 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4152 $as_echo "$ac_cs_version"; exit ;;
4153 --config | --confi | --conf | --con | --co | --c )
4154 $as_echo "$ac_cs_config"; exit ;;
4155 --debug | --debu | --deb | --de | --d | -d )
4156 debug=: ;;
4157 --file | --fil | --fi | --f )
4158 $ac_shift
4159 case $ac_optarg in
4160 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4161 '') as_fn_error $? "missing file argument" ;;
4162 esac
4163 as_fn_append CONFIG_FILES " '$ac_optarg'"
4164 ac_need_defaults=false;;
4165 --he | --h | --help | --hel | -h )
4166 $as_echo "$ac_cs_usage"; exit ;;
4167 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4168 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4169 ac_cs_silent=: ;;
4170
4171 # This is an error.
4172 -*) as_fn_error $? "unrecognized option: \`$1'
4173 Try \`$0 --help' for more information." ;;
4174
4175 *) as_fn_append ac_config_targets " $1"
4176 ac_need_defaults=false ;;
4177
4178 esac
4179 shift
4180 done
4181
4182 ac_configure_extra_args=
4183
4184 if $ac_cs_silent; then
4185 exec 6>/dev/null
4186 ac_configure_extra_args="$ac_configure_extra_args --silent"
4187 fi
4188
4189 _ACEOF
4190 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4191 if \$ac_cs_recheck; then
4192 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4193 shift
4194 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4195 CONFIG_SHELL='$SHELL'
4196 export CONFIG_SHELL
4197 exec "\$@"
4198 fi
4199
4200 _ACEOF
4201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4202 exec 5>>config.log
4203 {
4204 echo
4205 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4206 ## Running $as_me. ##
4207 _ASBOX
4208 $as_echo "$ac_log"
4209 } >&5
4210
4211 _ACEOF
4212 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4213 #
4214 # INIT-COMMANDS
4215 #
4216 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
4217
4218 _ACEOF
4219
4220 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4221
4222 # Handling of arguments.
4223 for ac_config_target in $ac_config_targets
4224 do
4225 case $ac_config_target in
4226 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
4227 "Makefile.sim") CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
4228 "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
4229 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
4230 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
4231 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
4232
4233 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4234 esac
4235 done
4236
4237
4238 # If the user did not use the arguments to specify the items to instantiate,
4239 # then the envvar interface is used. Set only those that are not.
4240 # We use the long form for the default assignment because of an extremely
4241 # bizarre bug on SunOS 4.1.3.
4242 if $ac_need_defaults; then
4243 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4244 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4245 fi
4246
4247 # Have a temporary directory for convenience. Make it in the build tree
4248 # simply because there is no reason against having it here, and in addition,
4249 # creating and moving files from /tmp can sometimes cause problems.
4250 # Hook for its removal unless debugging.
4251 # Note that there is a small window in which the directory will not be cleaned:
4252 # after its creation but before its name has been assigned to `$tmp'.
4253 $debug ||
4254 {
4255 tmp= ac_tmp=
4256 trap 'exit_status=$?
4257 : "${ac_tmp:=$tmp}"
4258 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4259 ' 0
4260 trap 'as_fn_exit 1' 1 2 13 15
4261 }
4262 # Create a (secure) tmp directory for tmp files.
4263
4264 {
4265 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4266 test -d "$tmp"
4267 } ||
4268 {
4269 tmp=./conf$$-$RANDOM
4270 (umask 077 && mkdir "$tmp")
4271 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4272 ac_tmp=$tmp
4273
4274 # Set up the scripts for CONFIG_FILES section.
4275 # No need to generate them if there are no CONFIG_FILES.
4276 # This happens for instance with `./config.status config.h'.
4277 if test -n "$CONFIG_FILES"; then
4278
4279
4280 ac_cr=`echo X | tr X '\015'`
4281 # On cygwin, bash can eat \r inside `` if the user requested igncr.
4282 # But we know of no other shell where ac_cr would be empty at this
4283 # point, so we can use a bashism as a fallback.
4284 if test "x$ac_cr" = x; then
4285 eval ac_cr=\$\'\\r\'
4286 fi
4287 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4288 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4289 ac_cs_awk_cr='\\r'
4290 else
4291 ac_cs_awk_cr=$ac_cr
4292 fi
4293
4294 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
4295 _ACEOF
4296
4297
4298 {
4299 echo "cat >conf$$subs.awk <<_ACEOF" &&
4300 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4301 echo "_ACEOF"
4302 } >conf$$subs.sh ||
4303 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4304 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4305 ac_delim='%!_!# '
4306 for ac_last_try in false false false false false :; do
4307 . ./conf$$subs.sh ||
4308 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4309
4310 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4311 if test $ac_delim_n = $ac_delim_num; then
4312 break
4313 elif $ac_last_try; then
4314 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4315 else
4316 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4317 fi
4318 done
4319 rm -f conf$$subs.sh
4320
4321 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4322 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
4323 _ACEOF
4324 sed -n '
4325 h
4326 s/^/S["/; s/!.*/"]=/
4327 p
4328 g
4329 s/^[^!]*!//
4330 :repl
4331 t repl
4332 s/'"$ac_delim"'$//
4333 t delim
4334 :nl
4335 h
4336 s/\(.\{148\}\)..*/\1/
4337 t more1
4338 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4339 p
4340 n
4341 b repl
4342 :more1
4343 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4344 p
4345 g
4346 s/.\{148\}//
4347 t nl
4348 :delim
4349 h
4350 s/\(.\{148\}\)..*/\1/
4351 t more2
4352 s/["\\]/\\&/g; s/^/"/; s/$/"/
4353 p
4354 b
4355 :more2
4356 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4357 p
4358 g
4359 s/.\{148\}//
4360 t delim
4361 ' <conf$$subs.awk | sed '
4362 /^[^""]/{
4363 N
4364 s/\n//
4365 }
4366 ' >>$CONFIG_STATUS || ac_write_fail=1
4367 rm -f conf$$subs.awk
4368 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4369 _ACAWK
4370 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
4371 for (key in S) S_is_set[key] = 1
4372 FS = "\a"
4373
4374 }
4375 {
4376 line = $ 0
4377 nfields = split(line, field, "@")
4378 substed = 0
4379 len = length(field[1])
4380 for (i = 2; i < nfields; i++) {
4381 key = field[i]
4382 keylen = length(key)
4383 if (S_is_set[key]) {
4384 value = S[key]
4385 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4386 len += length(value) + length(field[++i])
4387 substed = 1
4388 } else
4389 len += 1 + keylen
4390 }
4391
4392 print line
4393 }
4394
4395 _ACAWK
4396 _ACEOF
4397 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4398 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4399 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4400 else
4401 cat
4402 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
4403 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
4404 _ACEOF
4405
4406 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
4407 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
4408 # trailing colons and then remove the whole line if VPATH becomes empty
4409 # (actually we leave an empty line to preserve line numbers).
4410 if test "x$srcdir" = x.; then
4411 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
4412 h
4413 s///
4414 s/^/:/
4415 s/[ ]*$/:/
4416 s/:\$(srcdir):/:/g
4417 s/:\${srcdir}:/:/g
4418 s/:@srcdir@:/:/g
4419 s/^:*//
4420 s/:*$//
4421 x
4422 s/\(=[ ]*\).*/\1/
4423 G
4424 s/\n//
4425 s/^[^=]*=[ ]*$//
4426 }'
4427 fi
4428
4429 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4430 fi # test -n "$CONFIG_FILES"
4431
4432
4433 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
4434 shift
4435 for ac_tag
4436 do
4437 case $ac_tag in
4438 :[FHLC]) ac_mode=$ac_tag; continue;;
4439 esac
4440 case $ac_mode$ac_tag in
4441 :[FHL]*:*);;
4442 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
4443 :[FH]-) ac_tag=-:-;;
4444 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4445 esac
4446 ac_save_IFS=$IFS
4447 IFS=:
4448 set x $ac_tag
4449 IFS=$ac_save_IFS
4450 shift
4451 ac_file=$1
4452 shift
4453
4454 case $ac_mode in
4455 :L) ac_source=$1;;
4456 :[FH])
4457 ac_file_inputs=
4458 for ac_f
4459 do
4460 case $ac_f in
4461 -) ac_f="$ac_tmp/stdin";;
4462 *) # Look for the file first in the build tree, then in the source tree
4463 # (if the path is not absolute). The absolute path cannot be DOS-style,
4464 # because $ac_f cannot contain `:'.
4465 test -f "$ac_f" ||
4466 case $ac_f in
4467 [\\/$]*) false;;
4468 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4469 esac ||
4470 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4471 esac
4472 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4473 as_fn_append ac_file_inputs " '$ac_f'"
4474 done
4475
4476 # Let's still pretend it is `configure' which instantiates (i.e., don't
4477 # use $as_me), people would be surprised to read:
4478 # /* config.h. Generated by config.status. */
4479 configure_input='Generated from '`
4480 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4481 `' by configure.'
4482 if test x"$ac_file" != x-; then
4483 configure_input="$ac_file. $configure_input"
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4485 $as_echo "$as_me: creating $ac_file" >&6;}
4486 fi
4487 # Neutralize special characters interpreted by sed in replacement strings.
4488 case $configure_input in #(
4489 *\&* | *\|* | *\\* )
4490 ac_sed_conf_input=`$as_echo "$configure_input" |
4491 sed 's/[\\\\&|]/\\\\&/g'`;; #(
4492 *) ac_sed_conf_input=$configure_input;;
4493 esac
4494
4495 case $ac_tag in
4496 *:-:* | *:-) cat >"$ac_tmp/stdin" \
4497 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
4498 esac
4499 ;;
4500 esac
4501
4502 ac_dir=`$as_dirname -- "$ac_file" ||
4503 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4504 X"$ac_file" : 'X\(//\)[^/]' \| \
4505 X"$ac_file" : 'X\(//\)$' \| \
4506 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4507 $as_echo X"$ac_file" |
4508 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4509 s//\1/
4510 q
4511 }
4512 /^X\(\/\/\)[^/].*/{
4513 s//\1/
4514 q
4515 }
4516 /^X\(\/\/\)$/{
4517 s//\1/
4518 q
4519 }
4520 /^X\(\/\).*/{
4521 s//\1/
4522 q
4523 }
4524 s/.*/./; q'`
4525 as_dir="$ac_dir"; as_fn_mkdir_p
4526 ac_builddir=.
4527
4528 case "$ac_dir" in
4529 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4530 *)
4531 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4532 # A ".." for each directory in $ac_dir_suffix.
4533 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4534 case $ac_top_builddir_sub in
4535 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4536 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4537 esac ;;
4538 esac
4539 ac_abs_top_builddir=$ac_pwd
4540 ac_abs_builddir=$ac_pwd$ac_dir_suffix
4541 # for backward compatibility:
4542 ac_top_builddir=$ac_top_build_prefix
4543
4544 case $srcdir in
4545 .) # We are building in place.
4546 ac_srcdir=.
4547 ac_top_srcdir=$ac_top_builddir_sub
4548 ac_abs_top_srcdir=$ac_pwd ;;
4549 [\\/]* | ?:[\\/]* ) # Absolute name.
4550 ac_srcdir=$srcdir$ac_dir_suffix;
4551 ac_top_srcdir=$srcdir
4552 ac_abs_top_srcdir=$srcdir ;;
4553 *) # Relative name.
4554 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4555 ac_top_srcdir=$ac_top_build_prefix$srcdir
4556 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4557 esac
4558 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4559
4560
4561 case $ac_mode in
4562 :F)
4563 #
4564 # CONFIG_FILE
4565 #
4566
4567 case $INSTALL in
4568 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4569 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
4570 esac
4571 _ACEOF
4572
4573 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4574 # If the template does not know about datarootdir, expand it.
4575 # FIXME: This hack should be removed a few years after 2.60.
4576 ac_datarootdir_hack=; ac_datarootdir_seen=
4577 ac_sed_dataroot='
4578 /datarootdir/ {
4579 p
4580 q
4581 }
4582 /@datadir@/p
4583 /@docdir@/p
4584 /@infodir@/p
4585 /@localedir@/p
4586 /@mandir@/p'
4587 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
4588 *datarootdir*) ac_datarootdir_seen=yes;;
4589 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4591 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4592 _ACEOF
4593 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4594 ac_datarootdir_hack='
4595 s&@datadir@&$datadir&g
4596 s&@docdir@&$docdir&g
4597 s&@infodir@&$infodir&g
4598 s&@localedir@&$localedir&g
4599 s&@mandir@&$mandir&g
4600 s&\\\${datarootdir}&$datarootdir&g' ;;
4601 esac
4602 _ACEOF
4603
4604 # Neutralize VPATH when `$srcdir' = `.'.
4605 # Shell code in configure.ac might set extrasub.
4606 # FIXME: do we really want to maintain this feature?
4607 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4608 ac_sed_extra="$ac_vpsub
4609 $extrasub
4610 _ACEOF
4611 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4612 :t
4613 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4614 s|@configure_input@|$ac_sed_conf_input|;t t
4615 s&@top_builddir@&$ac_top_builddir_sub&;t t
4616 s&@top_build_prefix@&$ac_top_build_prefix&;t t
4617 s&@srcdir@&$ac_srcdir&;t t
4618 s&@abs_srcdir@&$ac_abs_srcdir&;t t
4619 s&@top_srcdir@&$ac_top_srcdir&;t t
4620 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4621 s&@builddir@&$ac_builddir&;t t
4622 s&@abs_builddir@&$ac_abs_builddir&;t t
4623 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4624 s&@INSTALL@&$ac_INSTALL&;t t
4625 $ac_datarootdir_hack
4626 "
4627 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
4628 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4629
4630 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4631 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
4632 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
4633 "$ac_tmp/out"`; test -z "$ac_out"; } &&
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4635 which seems to be undefined. Please make sure it is defined" >&5
4636 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4637 which seems to be undefined. Please make sure it is defined" >&2;}
4638
4639 rm -f "$ac_tmp/stdin"
4640 case $ac_file in
4641 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
4642 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
4643 esac \
4644 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4645 ;;
4646
4647
4648 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
4649 $as_echo "$as_me: executing $ac_file commands" >&6;}
4650 ;;
4651 esac
4652
4653
4654 case $ac_file$ac_mode in
4655 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
4656 "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
4657 rm -f Makesim1.tmp Makesim2.tmp Makefile
4658 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
4659 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
4660 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
4661 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
4662 <Makefile.sim >Makefile
4663 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
4664 ;;
4665 "stamp-h":C) echo > stamp-h ;;
4666
4667 esac
4668 done # for ac_tag
4669
4670
4671 as_fn_exit 0
4672 _ACEOF
4673 ac_clean_files=$ac_clean_files_save
4674
4675 test $ac_write_fail = 0 ||
4676 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
4677
4678
4679 # configure is writing to config.log, and then calls config.status.
4680 # config.status does its own redirection, appending to config.log.
4681 # Unfortunately, on DOS this fails, as config.log is still kept open
4682 # by configure, so config.status won't be able to write to it; its
4683 # output is simply discarded. So we exec the FD to /dev/null,
4684 # effectively closing config.log, so it can be properly (re)opened and
4685 # appended to by config.status. When coming back to configure, we
4686 # need to make the FD available again.
4687 if test "$no_create" != yes; then
4688 ac_cs_success=:
4689 ac_config_status_args=
4690 test "$silent" = yes &&
4691 ac_config_status_args="$ac_config_status_args --quiet"
4692 exec 5>/dev/null
4693 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4694 exec 5>>config.log
4695 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4696 # would make configure fail if this is the last instruction.
4697 $ac_cs_success || as_fn_exit 1
4698 fi
4699 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4701 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
4702 fi
4703
4704
This page took 0.176497 seconds and 5 git commands to generate.