Debian Codegraph @

scripts/configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for irsim 9.7.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell [email protected] and
270 $0: [email protected] about your system,
271 $0: including any error possibly output before this
272 $0: message. Then install a modern shell, or manually run
273 $0: the script under such a shell if you do have one."
274 fi
275 exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293 { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302 return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\).*/{
351 s//\1/
352 q
353 }
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
378 {
379 eval $1+=\$2
380 }'
381 else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398 else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417 fi
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425 else
426 as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437 else
438 as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\/\)$/{
451 s//\1/
452 q
453 }
454 /^X\/\(\/\).*/{
455 s//\1/
456 q
457 }
458 s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
474 p
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
480 b
481 :lineno
482 N
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
512 *)
513 ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519 else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
536 fi
537 else
538 as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545 else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='irsim'
582 PACKAGE_TARNAME='irsim'
583 PACKAGE_VERSION='9.7'
584 PACKAGE_STRING='irsim 9.7'
585 PACKAGE_BUGREPORT='[email protected]'
586 PACKAGE_URL=''
587
588 ac_unique_file="rules.mak"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 # include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 # include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
624
625 ac_subst_vars='LTLIBOBJS
626 LIBOBJS
627 INSTALL_TARGET
628 ALL_TARGET
629 LD_RUN_PATH
630 SHLIB_CFLAGS
631 DEPEND_FLAG
632 other_srcs
633 gr_hprog
634 gr_hsrcs
635 gr_srcs
636 gr_libs
637 gr_dflags
638 gr_cflags
639 cadinstall
640 programs
641 unused
642 modules
643 sub_extra_libs
644 top_extra_libs
645 ld_extra_objs
646 ld_extra_libs
647 extra_defs
648 extra_libs
649 SCRIPTS
650 PACKAGE
651 VERSION
652 WISH_EXE
653 TCL_LIB_DIR
654 LIB_SPECS
655 INC_SPECS
656 EXTRA_LIB_SPECS
657 SHLIB_LIB_SPECS
658 LDDL_FLAGS
659 LD
660 SHLIB_LD
661 SHDLIB_EXT
662 X_EXTRA_LIBS
663 X_LIBS
664 X_PRE_LIBS
665 X_CFLAGS
666 XMKMF
667 M4
668 EGREP
669 GREP
670 RANLIB
671 INSTALL_DATA
672 INSTALL_SCRIPT
673 INSTALL_PROGRAM
674 CPP
675 OBJEXT
676 EXEEXT
677 ac_ct_CC
678 CPPFLAGS
679 LDFLAGS
680 CFLAGS
681 CC
682 target_os
683 target_vendor
684 target_cpu
685 target
686 host_os
687 host_vendor
688 host_cpu
689 host
690 build_os
691 build_vendor
692 build_cpu
693 build
694 target_alias
695 host_alias
696 build_alias
697 LIBS
698 ECHO_T
699 ECHO_N
700 ECHO_C
701 DEFS
702 mandir
703 localedir
704 libdir
705 psdir
706 pdfdir
707 dvidir
708 htmldir
709 infodir
710 docdir
711 oldincludedir
712 includedir
713 localstatedir
714 sharedstatedir
715 sysconfdir
716 datadir
717 datarootdir
718 libexecdir
719 sbindir
720 bindir
721 program_transform_name
722 prefix
723 exec_prefix
724 PACKAGE_URL
725 PACKAGE_BUGREPORT
726 PACKAGE_STRING
727 PACKAGE_VERSION
728 PACKAGE_TARNAME
729 PACKAGE_NAME
730 PATH_SEPARATOR
731 SHELL'
732 ac_subst_files=''
733 ac_user_opts='
734 enable_option_checking
735 with_gnu_ld
736 with_interpreter
737 with_tcl
738 with_tk
739 with_tclincls
740 with_tkincls
741 with_tcllibs
742 with_tklibs
743 enable_faultsim
744 enable_powerest
745 enable_usersubckt
746 enable_stat
747 enable_clstat
748 enable_random
749 enable_tclsubckt
750 enable_memdebug
751 enable_threads
752 with_x
753 '
754 ac_precious_vars='build_alias
755 host_alias
756 target_alias
757 CC
758 CFLAGS
759 LDFLAGS
760 LIBS
761 CPPFLAGS
762 CPP
763 XMKMF'
764
765
766 # Initialize some variables set by options.
767 ac_init_help=
768 ac_init_version=false
769 ac_unrecognized_opts=
770 ac_unrecognized_sep=
771 # The variables have the same names as the options, with
772 # dashes changed to underlines.
773 cache_file=/dev/null
774 exec_prefix=NONE
775 no_create=
776 no_recursion=
777 prefix=NONE
778 program_prefix=NONE
779 program_suffix=NONE
780 program_transform_name=s,x,x,
781 silent=
782 site=
783 srcdir=
784 verbose=
785 x_includes=NONE
786 x_libraries=NONE
787
788 # Installation directory options.
789 # These are left unexpanded so users can "make install exec_prefix=/foo"
790 # and all the variables that are supposed to be based on exec_prefix
791 # by default will actually change.
792 # Use braces instead of parens because sh, perl, etc. also accept them.
793 # (The list follows the same order as the GNU Coding Standards.)
794 bindir='${exec_prefix}/bin'
795 sbindir='${exec_prefix}/sbin'
796 libexecdir='${exec_prefix}/libexec'
797 datarootdir='${prefix}/share'
798 datadir='${datarootdir}'
799 sysconfdir='${prefix}/etc'
800 sharedstatedir='${prefix}/com'
801 localstatedir='${prefix}/var'
802 includedir='${prefix}/include'
803 oldincludedir='/usr/include'
804 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
805 infodir='${datarootdir}/info'
806 htmldir='${docdir}'
807 dvidir='${docdir}'
808 pdfdir='${docdir}'
809 psdir='${docdir}'
810 libdir='${exec_prefix}/lib'
811 localedir='${datarootdir}/locale'
812 mandir='${datarootdir}/man'
813
814 ac_prev=
815 ac_dashdash=
816 for ac_option
817 do
818 # If the previous option needs an argument, assign it.
819 if test -n "$ac_prev"; then
820 eval $ac_prev=\$ac_option
821 ac_prev=
822 continue
823 fi
824
825 case $ac_option in
826 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
827 *=) ac_optarg= ;;
828 *) ac_optarg=yes ;;
829 esac
830
831 # Accept the important Cygnus configure options, so we can diagnose typos.
832
833 case $ac_dashdash$ac_option in
834 --)
835 ac_dashdash=yes ;;
836
837 -bindir | --bindir | --bindi | --bind | --bin | --bi)
838 ac_prev=bindir ;;
839 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
840 bindir=$ac_optarg ;;
841
842 -build | --build | --buil | --bui | --bu)
843 ac_prev=build_alias ;;
844 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
845 build_alias=$ac_optarg ;;
846
847 -cache-file | --cache-file | --cache-fil | --cache-fi \
848 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
849 ac_prev=cache_file ;;
850 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
851 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
852 cache_file=$ac_optarg ;;
853
854 --config-cache | -C)
855 cache_file=config.cache ;;
856
857 -datadir | --datadir | --datadi | --datad)
858 ac_prev=datadir ;;
859 -datadir=* | --datadir=* | --datadi=* | --datad=*)
860 datadir=$ac_optarg ;;
861
862 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
863 | --dataroo | --dataro | --datar)
864 ac_prev=datarootdir ;;
865 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
866 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
867 datarootdir=$ac_optarg ;;
868
869 -disable-* | --disable-*)
870 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
871 # Reject names that are not valid shell variable names.
872 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
873 as_fn_error $? "invalid feature name: $ac_useropt"
874 ac_useropt_orig=$ac_useropt
875 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
876 case $ac_user_opts in
877 *"
878 "enable_$ac_useropt"
879 "*) ;;
880 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
881 ac_unrecognized_sep=', ';;
882 esac
883 eval enable_$ac_useropt=no ;;
884
885 -docdir | --docdir | --docdi | --doc | --do)
886 ac_prev=docdir ;;
887 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
888 docdir=$ac_optarg ;;
889
890 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
891 ac_prev=dvidir ;;
892 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
893 dvidir=$ac_optarg ;;
894
895 -enable-* | --enable-*)
896 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
899 as_fn_error $? "invalid feature name: $ac_useropt"
900 ac_useropt_orig=$ac_useropt
901 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902 case $ac_user_opts in
903 *"
904 "enable_$ac_useropt"
905 "*) ;;
906 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
907 ac_unrecognized_sep=', ';;
908 esac
909 eval enable_$ac_useropt=\$ac_optarg ;;
910
911 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
912 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
913 | --exec | --exe | --ex)
914 ac_prev=exec_prefix ;;
915 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
916 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
917 | --exec=* | --exe=* | --ex=*)
918 exec_prefix=$ac_optarg ;;
919
920 -gas | --gas | --ga | --g)
921 # Obsolete; use --with-gas.
922 with_gas=yes ;;
923
924 -help | --help | --hel | --he | -h)
925 ac_init_help=long ;;
926 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
927 ac_init_help=recursive ;;
928 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
929 ac_init_help=short ;;
930
931 -host | --host | --hos | --ho)
932 ac_prev=host_alias ;;
933 -host=* | --host=* | --hos=* | --ho=*)
934 host_alias=$ac_optarg ;;
935
936 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
937 ac_prev=htmldir ;;
938 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
939 | --ht=*)
940 htmldir=$ac_optarg ;;
941
942 -includedir | --includedir | --includedi | --included | --include \
943 | --includ | --inclu | --incl | --inc)
944 ac_prev=includedir ;;
945 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
946 | --includ=* | --inclu=* | --incl=* | --inc=*)
947 includedir=$ac_optarg ;;
948
949 -infodir | --infodir | --infodi | --infod | --info | --inf)
950 ac_prev=infodir ;;
951 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
952 infodir=$ac_optarg ;;
953
954 -libdir | --libdir | --libdi | --libd)
955 ac_prev=libdir ;;
956 -libdir=* | --libdir=* | --libdi=* | --libd=*)
957 libdir=$ac_optarg ;;
958
959 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
960 | --libexe | --libex | --libe)
961 ac_prev=libexecdir ;;
962 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
963 | --libexe=* | --libex=* | --libe=*)
964 libexecdir=$ac_optarg ;;
965
966 -localedir | --localedir | --localedi | --localed | --locale)
967 ac_prev=localedir ;;
968 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
969 localedir=$ac_optarg ;;
970
971 -localstatedir | --localstatedir | --localstatedi | --localstated \
972 | --localstate | --localstat | --localsta | --localst | --locals)
973 ac_prev=localstatedir ;;
974 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
975 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
976 localstatedir=$ac_optarg ;;
977
978 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
979 ac_prev=mandir ;;
980 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
981 mandir=$ac_optarg ;;
982
983 -nfp | --nfp | --nf)
984 # Obsolete; use --without-fp.
985 with_fp=no ;;
986
987 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
988 | --no-cr | --no-c | -n)
989 no_create=yes ;;
990
991 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
992 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
993 no_recursion=yes ;;
994
995 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
996 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
997 | --oldin | --oldi | --old | --ol | --o)
998 ac_prev=oldincludedir ;;
999 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1000 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1001 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1002 oldincludedir=$ac_optarg ;;
1003
1004 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1005 ac_prev=prefix ;;
1006 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1007 prefix=$ac_optarg ;;
1008
1009 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1010 | --program-pre | --program-pr | --program-p)
1011 ac_prev=program_prefix ;;
1012 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1013 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1014 program_prefix=$ac_optarg ;;
1015
1016 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1017 | --program-suf | --program-su | --program-s)
1018 ac_prev=program_suffix ;;
1019 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1020 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1021 program_suffix=$ac_optarg ;;
1022
1023 -program-transform-name | --program-transform-name \
1024 | --program-transform-nam | --program-transform-na \
1025 | --program-transform-n | --program-transform- \
1026 | --program-transform | --program-transfor \
1027 | --program-transfo | --program-transf \
1028 | --program-trans | --program-tran \
1029 | --progr-tra | --program-tr | --program-t)
1030 ac_prev=program_transform_name ;;
1031 -program-transform-name=* | --program-transform-name=* \
1032 | --program-transform-nam=* | --program-transform-na=* \
1033 | --program-transform-n=* | --program-transform-=* \
1034 | --program-transform=* | --program-transfor=* \
1035 | --program-transfo=* | --program-transf=* \
1036 | --program-trans=* | --program-tran=* \
1037 | --progr-tra=* | --program-tr=* | --program-t=*)
1038 program_transform_name=$ac_optarg ;;
1039
1040 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1041 ac_prev=pdfdir ;;
1042 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1043 pdfdir=$ac_optarg ;;
1044
1045 -psdir | --psdir | --psdi | --psd | --ps)
1046 ac_prev=psdir ;;
1047 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1048 psdir=$ac_optarg ;;
1049
1050 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1051 | -silent | --silent | --silen | --sile | --sil)
1052 silent=yes ;;
1053
1054 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1055 ac_prev=sbindir ;;
1056 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1057 | --sbi=* | --sb=*)
1058 sbindir=$ac_optarg ;;
1059
1060 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1061 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1062 | --sharedst | --shareds | --shared | --share | --shar \
1063 | --sha | --sh)
1064 ac_prev=sharedstatedir ;;
1065 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1066 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1067 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1068 | --sha=* | --sh=*)
1069 sharedstatedir=$ac_optarg ;;
1070
1071 -site | --site | --sit)
1072 ac_prev=site ;;
1073 -site=* | --site=* | --sit=*)
1074 site=$ac_optarg ;;
1075
1076 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1077 ac_prev=srcdir ;;
1078 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1079 srcdir=$ac_optarg ;;
1080
1081 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1082 | --syscon | --sysco | --sysc | --sys | --sy)
1083 ac_prev=sysconfdir ;;
1084 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1085 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1086 sysconfdir=$ac_optarg ;;
1087
1088 -target | --target | --targe | --targ | --tar | --ta | --t)
1089 ac_prev=target_alias ;;
1090 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1091 target_alias=$ac_optarg ;;
1092
1093 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1094 verbose=yes ;;
1095
1096 -version | --version | --versio | --versi | --vers | -V)
1097 ac_init_version=: ;;
1098
1099 -with-* | --with-*)
1100 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1101 # Reject names that are not valid shell variable names.
1102 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1103 as_fn_error $? "invalid package name: $ac_useropt"
1104 ac_useropt_orig=$ac_useropt
1105 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1106 case $ac_user_opts in
1107 *"
1108 "with_$ac_useropt"
1109 "*) ;;
1110 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1111 ac_unrecognized_sep=', ';;
1112 esac
1113 eval with_$ac_useropt=\$ac_optarg ;;
1114
1115 -without-* | --without-*)
1116 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1117 # Reject names that are not valid shell variable names.
1118 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1119 as_fn_error $? "invalid package name: $ac_useropt"
1120 ac_useropt_orig=$ac_useropt
1121 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122 case $ac_user_opts in
1123 *"
1124 "with_$ac_useropt"
1125 "*) ;;
1126 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1127 ac_unrecognized_sep=', ';;
1128 esac
1129 eval with_$ac_useropt=no ;;
1130
1131 --x)
1132 # Obsolete; use --with-x.
1133 with_x=yes ;;
1134
1135 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1136 | --x-incl | --x-inc | --x-in | --x-i)
1137 ac_prev=x_includes ;;
1138 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1139 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1140 x_includes=$ac_optarg ;;
1141
1142 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1143 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1144 ac_prev=x_libraries ;;
1145 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1146 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1147 x_libraries=$ac_optarg ;;
1148
1149 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1150 Try \`$0 --help' for more information"
1151 ;;
1152
1153 *=*)
1154 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1155 # Reject names that are not valid shell variable names.
1156 case $ac_envvar in #(
1157 '' | [0-9]* | *[!_$as_cr_alnum]* )
1158 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1159 esac
1160 eval $ac_envvar=\$ac_optarg
1161 export $ac_envvar ;;
1162
1163 *)
1164 # FIXME: should be removed in autoconf 3.0.
1165 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1166 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1167 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1168 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1169 ;;
1170
1171 esac
1172 done
1173
1174 if test -n "$ac_prev"; then
1175 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1176 as_fn_error $? "missing argument to $ac_option"
1177 fi
1178
1179 if test -n "$ac_unrecognized_opts"; then
1180 case $enable_option_checking in
1181 no) ;;
1182 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1183 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1184 esac
1185 fi
1186
1187 # Check all directory arguments for consistency.
1188 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1189 datadir sysconfdir sharedstatedir localstatedir includedir \
1190 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1191 libdir localedir mandir
1192 do
1193 eval ac_val=\$$ac_var
1194 # Remove trailing slashes.
1195 case $ac_val in
1196 */ )
1197 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1198 eval $ac_var=\$ac_val;;
1199 esac
1200 # Be sure to have absolute directory names.
1201 case $ac_val in
1202 [\\/$]* | ?:[\\/]* ) continue;;
1203 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1204 esac
1205 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1206 done
1207
1208 # There might be people who depend on the old broken behavior: `$host'
1209 # used to hold the argument of --host etc.
1210 # FIXME: To remove some day.
1211 build=$build_alias
1212 host=$host_alias
1213 target=$target_alias
1214
1215 # FIXME: To remove some day.
1216 if test "x$host_alias" != x; then
1217 if test "x$build_alias" = x; then
1218 cross_compiling=maybe
1219 elif test "x$build_alias" != "x$host_alias"; then
1220 cross_compiling=yes
1221 fi
1222 fi
1223
1224 ac_tool_prefix=
1225 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1226
1227 test "$silent" = yes && exec 6>/dev/null
1228
1229
1230 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1231 ac_ls_di=`ls -di .` &&
1232 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1233 as_fn_error $? "working directory cannot be determined"
1234 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1235 as_fn_error $? "pwd does not report name of working directory"
1236
1237
1238 # Find the source files, if location was not specified.
1239 if test -z "$srcdir"; then
1240 ac_srcdir_defaulted=yes
1241 # Try the directory containing this script, then the parent directory.
1242 ac_confdir=`$as_dirname -- "$as_myself" ||
1243 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1244 X"$as_myself" : 'X\(//\)[^/]' \| \
1245 X"$as_myself" : 'X\(//\)$' \| \
1246 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1247 $as_echo X"$as_myself" |
1248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1249 s//\1/
1250 q
1251 }
1252 /^X\(\/\/\)[^/].*/{
1253 s//\1/
1254 q
1255 }
1256 /^X\(\/\/\)$/{
1257 s//\1/
1258 q
1259 }
1260 /^X\(\/\).*/{
1261 s//\1/
1262 q
1263 }
1264 s/.*/./; q'`
1265 srcdir=$ac_confdir
1266 if test ! -r "$srcdir/$ac_unique_file"; then
1267 srcdir=..
1268 fi
1269 else
1270 ac_srcdir_defaulted=no
1271 fi
1272 if test ! -r "$srcdir/$ac_unique_file"; then
1273 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1274 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1275 fi
1276 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1277 ac_abs_confdir=`(
1278 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1279 pwd)`
1280 # When building in place, set srcdir=.
1281 if test "$ac_abs_confdir" = "$ac_pwd"; then
1282 srcdir=.
1283 fi
1284 # Remove unnecessary trailing slashes from srcdir.
1285 # Double slashes in file names in object file debugging info
1286 # mess up M-x gdb in Emacs.
1287 case $srcdir in
1288 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1289 esac
1290 for ac_var in $ac_precious_vars; do
1291 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1292 eval ac_env_${ac_var}_value=\$${ac_var}
1293 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1294 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1295 done
1296
1297 #
1298 # Report the --help message.
1299 #
1300 if test "$ac_init_help" = "long"; then
1301 # Omit some internal or obsolete options to make the list less imposing.
1302 # This message is too long to be a string in the A/UX 3.1 sh.
1303 cat <<_ACEOF
1304 \`configure' configures irsim 9.7 to adapt to many kinds of systems.
1305
1306 Usage: $0 [OPTION]... [VAR=VALUE]...
1307
1308 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1309 VAR=VALUE. See below for descriptions of some of the useful variables.
1310
1311 Defaults for the options are specified in brackets.
1312
1313 Configuration:
1314 -h, --help display this help and exit
1315 --help=short display options specific to this package
1316 --help=recursive display the short help of all the included packages
1317 -V, --version display version information and exit
1318 -q, --quiet, --silent do not print \`checking ...' messages
1319 --cache-file=FILE cache test results in FILE [disabled]
1320 -C, --config-cache alias for \`--cache-file=config.cache'
1321 -n, --no-create do not create output files
1322 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1323
1324 Installation directories:
1325 --prefix=PREFIX install architecture-independent files in PREFIX
1326 [$ac_default_prefix]
1327 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1328 [PREFIX]
1329
1330 By default, \`make install' will install all the files in
1331 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1332 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1333 for instance \`--prefix=\$HOME'.
1334
1335 For better control, use the options below.
1336
1337 Fine tuning of the installation directories:
1338 --bindir=DIR user executables [EPREFIX/bin]
1339 --sbindir=DIR system admin executables [EPREFIX/sbin]
1340 --libexecdir=DIR program executables [EPREFIX/libexec]
1341 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1342 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1343 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1344 --libdir=DIR object code libraries [EPREFIX/lib]
1345 --includedir=DIR C header files [PREFIX/include]
1346 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1347 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1348 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1349 --infodir=DIR info documentation [DATAROOTDIR/info]
1350 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1351 --mandir=DIR man documentation [DATAROOTDIR/man]
1352 --docdir=DIR documentation root [DATAROOTDIR/doc/irsim]
1353 --htmldir=DIR html documentation [DOCDIR]
1354 --dvidir=DIR dvi documentation [DOCDIR]
1355 --pdfdir=DIR pdf documentation [DOCDIR]
1356 --psdir=DIR ps documentation [DOCDIR]
1357 _ACEOF
1358
1359 cat <<\_ACEOF
1360
1361 X features:
1362 --x-includes=DIR X include files are in DIR
1363 --x-libraries=DIR X library files are in DIR
1364
1365 System types:
1366 --build=BUILD configure for building on BUILD [guessed]
1367 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1368 --target=TARGET configure for building compilers for TARGET [HOST]
1369 _ACEOF
1370 fi
1371
1372 if test -n "$ac_init_help"; then
1373 case $ac_init_help in
1374 short | recursive ) echo "Configuration of irsim 9.7:";;
1375 esac
1376 cat <<\_ACEOF
1377
1378 Optional Features:
1379 --disable-option-checking ignore unrecognized --enable/--with options
1380 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1381 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1382 --disable-faultsim disable fault simulator
1383 --disable-powerest disable power estimation
1384 --disable-usersubckt disable user subcircuits
1385 --disable-stat disable event statistics
1386 --disable-clstat disable connection list statistics
1387 --disable-random disable pseudorandom number generator
1388 --disable-tclsubckt disable subcircuit example libraries
1389 --enable-memdebug enable memory debugging
1390 --disable-threads disable threaded graphics
1391
1392 Optional Packages:
1393 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1394 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1395 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1396 --with-interpreter=arg enable interpreter
1397 --with-tcl=DIR Find tclConfig.sh in DIR
1398 --with-tk=DIR Find tkConfig.sh in DIR
1399 --with-tclincls=DIR Find tcl.h in DIR
1400 --with-tkincls=DIR Find tk.h in DIR
1401 --with-tcllibs=DIR Find Tcl library in DIR
1402 --with-tklibs=DIR Find Tk library in DIR
1403 --with-x use the X Window System
1404
1405 Some influential environment variables:
1406 CC C compiler command
1407 CFLAGS C compiler flags
1408 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1409 nonstandard directory <lib dir>
1410 LIBS libraries to pass to the linker, e.g. -l<library>
1411 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1412 you have headers in a nonstandard directory <include dir>
1413 CPP C preprocessor
1414 XMKMF Path to xmkmf, Makefile generator for X Window System
1415
1416 Use these variables to override the choices made by `configure' or to help
1417 it to find libraries and programs with nonstandard names/locations.
1418
1419 Report bugs to <[email protected]>.
1420 _ACEOF
1421 ac_status=$?
1422 fi
1423
1424 if test "$ac_init_help" = "recursive"; then
1425 # If there are subdirs, report their specific --help.
1426 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1427 test -d "$ac_dir" ||
1428 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1429 continue
1430 ac_builddir=.
1431
1432 case "$ac_dir" in
1433 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1434 *)
1435 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1436 # A ".." for each directory in $ac_dir_suffix.
1437 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1438 case $ac_top_builddir_sub in
1439 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1440 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1441 esac ;;
1442 esac
1443 ac_abs_top_builddir=$ac_pwd
1444 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1445 # for backward compatibility:
1446 ac_top_builddir=$ac_top_build_prefix
1447
1448 case $srcdir in
1449 .) # We are building in place.
1450 ac_srcdir=.
1451 ac_top_srcdir=$ac_top_builddir_sub
1452 ac_abs_top_srcdir=$ac_pwd ;;
1453 [\\/]* | ?:[\\/]* ) # Absolute name.
1454 ac_srcdir=$srcdir$ac_dir_suffix;
1455 ac_top_srcdir=$srcdir
1456 ac_abs_top_srcdir=$srcdir ;;
1457 *) # Relative name.
1458 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1459 ac_top_srcdir=$ac_top_build_prefix$srcdir
1460 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1461 esac
1462 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1463
1464 cd "$ac_dir" || { ac_status=$?; continue; }
1465 # Check for guested configure.
1466 if test -f "$ac_srcdir/configure.gnu"; then
1467 echo &&
1468 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1469 elif test -f "$ac_srcdir/configure"; then
1470 echo &&
1471 $SHELL "$ac_srcdir/configure" --help=recursive
1472 else
1473 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1474 fi || ac_status=$?
1475 cd "$ac_pwd" || { ac_status=$?; break; }
1476 done
1477 fi
1478
1479 test -n "$ac_init_help" && exit $ac_status
1480 if $ac_init_version; then
1481 cat <<\_ACEOF
1482 irsim configure 9.7
1483 generated by GNU Autoconf 2.69
1484
1485 Copyright (C) 2012 Free Software Foundation, Inc.
1486 This configure script is free software; the Free Software Foundation
1487 gives unlimited permission to copy, distribute and modify it.
1488 _ACEOF
1489 exit
1490 fi
1491
1492 ## ------------------------ ##
1493 ## Autoconf initialization. ##
1494 ## ------------------------ ##
1495
1496 # ac_fn_c_try_compile LINENO
1497 # --------------------------
1498 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1499 ac_fn_c_try_compile ()
1500 {
1501 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1502 rm -f conftest.$ac_objext
1503 if { { ac_try="$ac_compile"
1504 case "(($ac_try" in
1505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1506 *) ac_try_echo=$ac_try;;
1507 esac
1508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1509 $as_echo "$ac_try_echo"; } >&5
1510 (eval "$ac_compile") 2>conftest.err
1511 ac_status=$?
1512 if test -s conftest.err; then
1513 grep -v '^ *+' conftest.err >conftest.er1
1514 cat conftest.er1 >&5
1515 mv -f conftest.er1 conftest.err
1516 fi
1517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1518 test $ac_status = 0; } && {
1519 test -z "$ac_c_werror_flag" ||
1520 test ! -s conftest.err
1521 } && test -s conftest.$ac_objext; then :
1522 ac_retval=0
1523 else
1524 $as_echo "$as_me: failed program was:" >&5
1525 sed 's/^/| /' conftest.$ac_ext >&5
1526
1527 ac_retval=1
1528 fi
1529 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1530 as_fn_set_status $ac_retval
1531
1532 } # ac_fn_c_try_compile
1533
1534 # ac_fn_c_try_cpp LINENO
1535 # ----------------------
1536 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1537 ac_fn_c_try_cpp ()
1538 {
1539 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1540 if { { ac_try="$ac_cpp conftest.$ac_ext"
1541 case "(($ac_try" in
1542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1543 *) ac_try_echo=$ac_try;;
1544 esac
1545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1546 $as_echo "$ac_try_echo"; } >&5
1547 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1548 ac_status=$?
1549 if test -s conftest.err; then
1550 grep -v '^ *+' conftest.err >conftest.er1
1551 cat conftest.er1 >&5
1552 mv -f conftest.er1 conftest.err
1553 fi
1554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1555 test $ac_status = 0; } > conftest.i && {
1556 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1557 test ! -s conftest.err
1558 }; then :
1559 ac_retval=0
1560 else
1561 $as_echo "$as_me: failed program was:" >&5
1562 sed 's/^/| /' conftest.$ac_ext >&5
1563
1564 ac_retval=1
1565 fi
1566 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1567 as_fn_set_status $ac_retval
1568
1569 } # ac_fn_c_try_cpp
1570
1571 # ac_fn_c_try_link LINENO
1572 # -----------------------
1573 # Try to link conftest.$ac_ext, and return whether this succeeded.
1574 ac_fn_c_try_link ()
1575 {
1576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1577 rm -f conftest.$ac_objext conftest$ac_exeext
1578 if { { ac_try="$ac_link"
1579 case "(($ac_try" in
1580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1581 *) ac_try_echo=$ac_try;;
1582 esac
1583 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1584 $as_echo "$ac_try_echo"; } >&5
1585 (eval "$ac_link") 2>conftest.err
1586 ac_status=$?
1587 if test -s conftest.err; then
1588 grep -v '^ *+' conftest.err >conftest.er1
1589 cat conftest.er1 >&5
1590 mv -f conftest.er1 conftest.err
1591 fi
1592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1593 test $ac_status = 0; } && {
1594 test -z "$ac_c_werror_flag" ||
1595 test ! -s conftest.err
1596 } && test -s conftest$ac_exeext && {
1597 test "$cross_compiling" = yes ||
1598 test -x conftest$ac_exeext
1599 }; then :
1600 ac_retval=0
1601 else
1602 $as_echo "$as_me: failed program was:" >&5
1603 sed 's/^/| /' conftest.$ac_ext >&5
1604
1605 ac_retval=1
1606 fi
1607 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1608 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1609 # interfere with the next link command; also delete a directory that is
1610 # left behind by Apple's compiler. We do this before executing the actions.
1611 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1612 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1613 as_fn_set_status $ac_retval
1614
1615 } # ac_fn_c_try_link
1616
1617 # ac_fn_c_try_run LINENO
1618 # ----------------------
1619 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1620 # that executables *can* be run.
1621 ac_fn_c_try_run ()
1622 {
1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624 if { { ac_try="$ac_link"
1625 case "(($ac_try" in
1626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1627 *) ac_try_echo=$ac_try;;
1628 esac
1629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1630 $as_echo "$ac_try_echo"; } >&5
1631 (eval "$ac_link") 2>&5
1632 ac_status=$?
1633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1635 { { case "(($ac_try" in
1636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1637 *) ac_try_echo=$ac_try;;
1638 esac
1639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1640 $as_echo "$ac_try_echo"; } >&5
1641 (eval "$ac_try") 2>&5
1642 ac_status=$?
1643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1644 test $ac_status = 0; }; }; then :
1645 ac_retval=0
1646 else
1647 $as_echo "$as_me: program exited with status $ac_status" >&5
1648 $as_echo "$as_me: failed program was:" >&5
1649 sed 's/^/| /' conftest.$ac_ext >&5
1650
1651 ac_retval=$ac_status
1652 fi
1653 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655 as_fn_set_status $ac_retval
1656
1657 } # ac_fn_c_try_run
1658
1659 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1660 # --------------------------------------------
1661 # Tries to find the compile-time value of EXPR in a program that includes
1662 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1663 # computed
1664 ac_fn_c_compute_int ()
1665 {
1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667 if test "$cross_compiling" = yes; then
1668 # Depending upon the size, compute the lo and hi bounds.
1669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1670 /* end confdefs.h. */
1671 $4
1672 int
1673 main ()
1674 {
1675 static int test_array [1 - 2 * !(($2) >= 0)];
1676 test_array [0] = 0;
1677 return test_array [0];
1678
1679 ;
1680 return 0;
1681 }
1682 _ACEOF
1683 if ac_fn_c_try_compile "$LINENO"; then :
1684 ac_lo=0 ac_mid=0
1685 while :; do
1686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1687 /* end confdefs.h. */
1688 $4
1689 int
1690 main ()
1691 {
1692 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1693 test_array [0] = 0;
1694 return test_array [0];
1695
1696 ;
1697 return 0;
1698 }
1699 _ACEOF
1700 if ac_fn_c_try_compile "$LINENO"; then :
1701 ac_hi=$ac_mid; break
1702 else
1703 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1704 if test $ac_lo -le $ac_mid; then
1705 ac_lo= ac_hi=
1706 break
1707 fi
1708 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1709 fi
1710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1711 done
1712 else
1713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1714 /* end confdefs.h. */
1715 $4
1716 int
1717 main ()
1718 {
1719 static int test_array [1 - 2 * !(($2) < 0)];
1720 test_array [0] = 0;
1721 return test_array [0];
1722
1723 ;
1724 return 0;
1725 }
1726 _ACEOF
1727 if ac_fn_c_try_compile "$LINENO"; then :
1728 ac_hi=-1 ac_mid=-1
1729 while :; do
1730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1731 /* end confdefs.h. */
1732 $4
1733 int
1734 main ()
1735 {
1736 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1737 test_array [0] = 0;
1738 return test_array [0];
1739
1740 ;
1741 return 0;
1742 }
1743 _ACEOF
1744 if ac_fn_c_try_compile "$LINENO"; then :
1745 ac_lo=$ac_mid; break
1746 else
1747 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1748 if test $ac_mid -le $ac_hi; then
1749 ac_lo= ac_hi=
1750 break
1751 fi
1752 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1753 fi
1754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1755 done
1756 else
1757 ac_lo= ac_hi=
1758 fi
1759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1760 fi
1761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1762 # Binary search between lo and hi bounds.
1763 while test "x$ac_lo" != "x$ac_hi"; do
1764 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1766 /* end confdefs.h. */
1767 $4
1768 int
1769 main ()
1770 {
1771 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1772 test_array [0] = 0;
1773 return test_array [0];
1774
1775 ;
1776 return 0;
1777 }
1778 _ACEOF
1779 if ac_fn_c_try_compile "$LINENO"; then :
1780 ac_hi=$ac_mid
1781 else
1782 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1783 fi
1784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1785 done
1786 case $ac_lo in #((
1787 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1788 '') ac_retval=1 ;;
1789 esac
1790 else
1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792 /* end confdefs.h. */
1793 $4
1794 static long int longval () { return $2; }
1795 static unsigned long int ulongval () { return $2; }
1796 #include <stdio.h>
1797 #include <stdlib.h>
1798 int
1799 main ()
1800 {
1801
1802 FILE *f = fopen ("conftest.val", "w");
1803 if (! f)
1804 return 1;
1805 if (($2) < 0)
1806 {
1807 long int i = longval ();
1808 if (i != ($2))
1809 return 1;
1810 fprintf (f, "%ld", i);
1811 }
1812 else
1813 {
1814 unsigned long int i = ulongval ();
1815 if (i != ($2))
1816 return 1;
1817 fprintf (f, "%lu", i);
1818 }
1819 /* Do not output a trailing newline, as this causes \r\n confusion
1820 on some platforms. */
1821 return ferror (f) || fclose (f) != 0;
1822
1823 ;
1824 return 0;
1825 }
1826 _ACEOF
1827 if ac_fn_c_try_run "$LINENO"; then :
1828 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1829 else
1830 ac_retval=1
1831 fi
1832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1833 conftest.$ac_objext conftest.beam conftest.$ac_ext
1834 rm -f conftest.val
1835
1836 fi
1837 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838 as_fn_set_status $ac_retval
1839
1840 } # ac_fn_c_compute_int
1841
1842 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1843 # -------------------------------------------------------
1844 # Tests whether HEADER exists and can be compiled using the include files in
1845 # INCLUDES, setting the cache variable VAR accordingly.
1846 ac_fn_c_check_header_compile ()
1847 {
1848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1850 $as_echo_n "checking for $2... " >&6; }
1851 if eval \${$3+:} false; then :
1852 $as_echo_n "(cached) " >&6
1853 else
1854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1855 /* end confdefs.h. */
1856 $4
1857 #include <$2>
1858 _ACEOF
1859 if ac_fn_c_try_compile "$LINENO"; then :
1860 eval "$3=yes"
1861 else
1862 eval "$3=no"
1863 fi
1864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1865 fi
1866 eval ac_res=\$$3
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1868 $as_echo "$ac_res" >&6; }
1869 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1870
1871 } # ac_fn_c_check_header_compile
1872
1873 # ac_fn_c_check_func LINENO FUNC VAR
1874 # ----------------------------------
1875 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1876 ac_fn_c_check_func ()
1877 {
1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1880 $as_echo_n "checking for $2... " >&6; }
1881 if eval \${$3+:} false; then :
1882 $as_echo_n "(cached) " >&6
1883 else
1884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1885 /* end confdefs.h. */
1886 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1888 #define $2 innocuous_$2
1889
1890 /* System header to define __stub macros and hopefully few prototypes,
1891 which can conflict with char $2 (); below.
1892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1893 <limits.h> exists even on freestanding compilers. */
1894
1895 #ifdef __STDC__
1896 # include <limits.h>
1897 #else
1898 # include <assert.h>
1899 #endif
1900
1901 #undef $2
1902
1903 /* Override any GCC internal prototype to avoid an error.
1904 Use char because int might match the return type of a GCC
1905 builtin and then its argument prototype would still apply. */
1906 #ifdef __cplusplus
1907 extern "C"
1908 #endif
1909 char $2 ();
1910 /* The GNU C library defines this for functions which it implements
1911 to always fail with ENOSYS. Some functions are actually named
1912 something starting with __ and the normal name is an alias. */
1913 #if defined __stub_$2 || defined __stub___$2
1914 choke me
1915 #endif
1916
1917 int
1918 main ()
1919 {
1920 return $2 ();
1921 ;
1922 return 0;
1923 }
1924 _ACEOF
1925 if ac_fn_c_try_link "$LINENO"; then :
1926 eval "$3=yes"
1927 else
1928 eval "$3=no"
1929 fi
1930 rm -f core conftest.err conftest.$ac_objext \
1931 conftest$ac_exeext conftest.$ac_ext
1932 fi
1933 eval ac_res=\$$3
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1935 $as_echo "$ac_res" >&6; }
1936 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1937
1938 } # ac_fn_c_check_func
1939
1940 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1941 # -------------------------------------------------------
1942 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1943 # the include files in INCLUDES and setting the cache variable VAR
1944 # accordingly.
1945 ac_fn_c_check_header_mongrel ()
1946 {
1947 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1948 if eval \${$3+:} false; then :
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1950 $as_echo_n "checking for $2... " >&6; }
1951 if eval \${$3+:} false; then :
1952 $as_echo_n "(cached) " >&6
1953 fi
1954 eval ac_res=\$$3
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956 $as_echo "$ac_res" >&6; }
1957 else
1958 # Is the header compilable?
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1960 $as_echo_n "checking $2 usability... " >&6; }
1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962 /* end confdefs.h. */
1963 $4
1964 #include <$2>
1965 _ACEOF
1966 if ac_fn_c_try_compile "$LINENO"; then :
1967 ac_header_compiler=yes
1968 else
1969 ac_header_compiler=no
1970 fi
1971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1973 $as_echo "$ac_header_compiler" >&6; }
1974
1975 # Is the header present?
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1977 $as_echo_n "checking $2 presence... " >&6; }
1978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979 /* end confdefs.h. */
1980 #include <$2>
1981 _ACEOF
1982 if ac_fn_c_try_cpp "$LINENO"; then :
1983 ac_header_preproc=yes
1984 else
1985 ac_header_preproc=no
1986 fi
1987 rm -f conftest.err conftest.i conftest.$ac_ext
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1989 $as_echo "$ac_header_preproc" >&6; }
1990
1991 # So? What about this header?
1992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1993 yes:no: )
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1995 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1997 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1998 ;;
1999 no:yes:* )
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2001 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2003 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2005 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2007 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2009 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2010 ( $as_echo "## -------------------------------------------- ##
2011 ## Report this to [email protected] ##
2012 ## -------------------------------------------- ##"
2013 ) | sed "s/^/$as_me: WARNING: /" >&2
2014 ;;
2015 esac
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2017 $as_echo_n "checking for $2... " >&6; }
2018 if eval \${$3+:} false; then :
2019 $as_echo_n "(cached) " >&6
2020 else
2021 eval "$3=\$ac_header_compiler"
2022 fi
2023 eval ac_res=\$$3
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2025 $as_echo "$ac_res" >&6; }
2026 fi
2027 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2028
2029 } # ac_fn_c_check_header_mongrel
2030 cat >config.log <<_ACEOF
2031 This file contains any messages produced by compilers while
2032 running configure, to aid debugging if configure makes a mistake.
2033
2034 It was created by irsim $as_me 9.7, which was
2035 generated by GNU Autoconf 2.69. Invocation command line was
2036
2037 $ $0 $@
2038
2039 _ACEOF
2040 exec 5>>config.log
2041 {
2042 cat <<_ASUNAME
2043 ## --------- ##
2044 ## Platform. ##
2045 ## --------- ##
2046
2047 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2048 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2049 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2050 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2051 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2052
2053 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2054 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2055
2056 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2057 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2058 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2059 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2060 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2061 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2062 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2063
2064 _ASUNAME
2065
2066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2067 for as_dir in $PATH
2068 do
2069 IFS=$as_save_IFS
2070 test -z "$as_dir" && as_dir=.
2071 $as_echo "PATH: $as_dir"
2072 done
2073 IFS=$as_save_IFS
2074
2075 } >&5
2076
2077 cat >&5 <<_ACEOF
2078
2079
2080 ## ----------- ##
2081 ## Core tests. ##
2082 ## ----------- ##
2083
2084 _ACEOF
2085
2086
2087 # Keep a trace of the command line.
2088 # Strip out --no-create and --no-recursion so they do not pile up.
2089 # Strip out --silent because we don't want to record it for future runs.
2090 # Also quote any args containing shell meta-characters.
2091 # Make two passes to allow for proper duplicate-argument suppression.
2092 ac_configure_args=
2093 ac_configure_args0=
2094 ac_configure_args1=
2095 ac_must_keep_next=false
2096 for ac_pass in 1 2
2097 do
2098 for ac_arg
2099 do
2100 case $ac_arg in
2101 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2102 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2103 | -silent | --silent | --silen | --sile | --sil)
2104 continue ;;
2105 *\'*)
2106 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2107 esac
2108 case $ac_pass in
2109 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2110 2)
2111 as_fn_append ac_configure_args1 " '$ac_arg'"
2112 if test $ac_must_keep_next = true; then
2113 ac_must_keep_next=false # Got value, back to normal.
2114 else
2115 case $ac_arg in
2116 *=* | --config-cache | -C | -disable-* | --disable-* \
2117 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2118 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2119 | -with-* | --with-* | -without-* | --without-* | --x)
2120 case "$ac_configure_args0 " in
2121 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2122 esac
2123 ;;
2124 -* ) ac_must_keep_next=true ;;
2125 esac
2126 fi
2127 as_fn_append ac_configure_args " '$ac_arg'"
2128 ;;
2129 esac
2130 done
2131 done
2132 { ac_configure_args0=; unset ac_configure_args0;}
2133 { ac_configure_args1=; unset ac_configure_args1;}
2134
2135 # When interrupted or exit'd, cleanup temporary files, and complete
2136 # config.log. We remove comments because anyway the quotes in there
2137 # would cause problems or look ugly.
2138 # WARNING: Use '\'' to represent an apostrophe within the trap.
2139 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2140 trap 'exit_status=$?
2141 # Save into config.log some information that might help in debugging.
2142 {
2143 echo
2144
2145 $as_echo "## ---------------- ##
2146 ## Cache variables. ##
2147 ## ---------------- ##"
2148 echo
2149 # The following way of writing the cache mishandles newlines in values,
2150 (
2151 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2152 eval ac_val=\$$ac_var
2153 case $ac_val in #(
2154 *${as_nl}*)
2155 case $ac_var in #(
2156 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2157 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2158 esac
2159 case $ac_var in #(
2160 _ | IFS | as_nl) ;; #(
2161 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2162 *) { eval $ac_var=; unset $ac_var;} ;;
2163 esac ;;
2164 esac
2165 done
2166 (set) 2>&1 |
2167 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2168 *${as_nl}ac_space=\ *)
2169 sed -n \
2170 "s/'\''/'\''\\\\'\'''\''/g;
2171 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2172 ;; #(
2173 *)
2174 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2175 ;;
2176 esac |
2177 sort
2178 )
2179 echo
2180
2181 $as_echo "## ----------------- ##
2182 ## Output variables. ##
2183 ## ----------------- ##"
2184 echo
2185 for ac_var in $ac_subst_vars
2186 do
2187 eval ac_val=\$$ac_var
2188 case $ac_val in
2189 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2190 esac
2191 $as_echo "$ac_var='\''$ac_val'\''"
2192 done | sort
2193 echo
2194
2195 if test -n "$ac_subst_files"; then
2196 $as_echo "## ------------------- ##
2197 ## File substitutions. ##
2198 ## ------------------- ##"
2199 echo
2200 for ac_var in $ac_subst_files
2201 do
2202 eval ac_val=\$$ac_var
2203 case $ac_val in
2204 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2205 esac
2206 $as_echo "$ac_var='\''$ac_val'\''"
2207 done | sort
2208 echo
2209 fi
2210
2211 if test -s confdefs.h; then
2212 $as_echo "## ----------- ##
2213 ## confdefs.h. ##
2214 ## ----------- ##"
2215 echo
2216 cat confdefs.h
2217 echo
2218 fi
2219 test "$ac_signal" != 0 &&
2220 $as_echo "$as_me: caught signal $ac_signal"
2221 $as_echo "$as_me: exit $exit_status"
2222 } >&5
2223 rm -f core *.core core.conftest.* &&
2224 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2225 exit $exit_status
2226 ' 0
2227 for ac_signal in 1 2 13 15; do
2228 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2229 done
2230 ac_signal=0
2231
2232 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2233 rm -f -r conftest* confdefs.h
2234
2235 $as_echo "/* confdefs.h */" > confdefs.h
2236
2237 # Predefined preprocessor variables.
2238
2239 cat >>confdefs.h <<_ACEOF
2240 #define PACKAGE_NAME "$PACKAGE_NAME"
2241 _ACEOF
2242
2243 cat >>confdefs.h <<_ACEOF
2244 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2245 _ACEOF
2246
2247 cat >>confdefs.h <<_ACEOF
2248 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2249 _ACEOF
2250
2251 cat >>confdefs.h <<_ACEOF
2252 #define PACKAGE_STRING "$PACKAGE_STRING"
2253 _ACEOF
2254
2255 cat >>confdefs.h <<_ACEOF
2256 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2257 _ACEOF
2258
2259 cat >>confdefs.h <<_ACEOF
2260 #define PACKAGE_URL "$PACKAGE_URL"
2261 _ACEOF
2262
2263
2264 # Let the site file select an alternate cache file if it wants to.
2265 # Prefer an explicitly selected file to automatically selected ones.
2266 ac_site_file1=NONE
2267 ac_site_file2=NONE
2268 if test -n "$CONFIG_SITE"; then
2269 # We do not want a PATH search for config.site.
2270 case $CONFIG_SITE in #((
2271 -*) ac_site_file1=./$CONFIG_SITE;;
2272 */*) ac_site_file1=$CONFIG_SITE;;
2273 *) ac_site_file1=./$CONFIG_SITE;;
2274 esac
2275 elif test "x$prefix" != xNONE; then
2276 ac_site_file1=$prefix/share/config.site
2277 ac_site_file2=$prefix/etc/config.site
2278 else
2279 ac_site_file1=$ac_default_prefix/share/config.site
2280 ac_site_file2=$ac_default_prefix/etc/config.site
2281 fi
2282 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2283 do
2284 test "x$ac_site_file" = xNONE && continue
2285 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2287 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2288 sed 's/^/| /' "$ac_site_file" >&5
2289 . "$ac_site_file" \
2290 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2292 as_fn_error $? "failed to load site script $ac_site_file
2293 See \`config.log' for more details" "$LINENO" 5; }
2294 fi
2295 done
2296
2297 if test -r "$cache_file"; then
2298 # Some versions of bash will fail to source /dev/null (special files
2299 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2300 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2302 $as_echo "$as_me: loading cache $cache_file" >&6;}
2303 case $cache_file in
2304 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2305 *) . "./$cache_file";;
2306 esac
2307 fi
2308 else
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2310 $as_echo "$as_me: creating cache $cache_file" >&6;}
2311 >$cache_file
2312 fi
2313
2314 # Check that the precious variables saved in the cache have kept the same
2315 # value.
2316 ac_cache_corrupted=false
2317 for ac_var in $ac_precious_vars; do
2318 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2319 eval ac_new_set=\$ac_env_${ac_var}_set
2320 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2321 eval ac_new_val=\$ac_env_${ac_var}_value
2322 case $ac_old_set,$ac_new_set in
2323 set,)
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2325 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2326 ac_cache_corrupted=: ;;
2327 ,set)
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2329 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2330 ac_cache_corrupted=: ;;
2331 ,);;
2332 *)
2333 if test "x$ac_old_val" != "x$ac_new_val"; then
2334 # differences in whitespace do not lead to failure.
2335 ac_old_val_w=`echo x $ac_old_val`
2336 ac_new_val_w=`echo x $ac_new_val`
2337 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2339 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2340 ac_cache_corrupted=:
2341 else
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2343 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2344 eval $ac_var=\$ac_old_val
2345 fi
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2347 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2349 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2350 fi;;
2351 esac
2352 # Pass precious variables to config.status.
2353 if test "$ac_new_set" = set; then
2354 case $ac_new_val in
2355 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2356 *) ac_arg=$ac_var=$ac_new_val ;;
2357 esac
2358 case " $ac_configure_args " in
2359 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2360 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2361 esac
2362 fi
2363 done
2364 if $ac_cache_corrupted; then
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2366 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2368 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2369 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2370 fi
2371 ## -------------------- ##
2372 ## Main body of script. ##
2373 ## -------------------- ##
2374
2375 ac_ext=c
2376 ac_cpp='$CPP $CPPFLAGS'
2377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2380
2381
2382
2383
2384 ac_aux_dir=
2385 for ac_dir in . "$srcdir"/.; do
2386 if test -f "$ac_dir/install-sh"; then
2387 ac_aux_dir=$ac_dir
2388 ac_install_sh="$ac_aux_dir/install-sh -c"
2389 break
2390 elif test -f "$ac_dir/install.sh"; then
2391 ac_aux_dir=$ac_dir
2392 ac_install_sh="$ac_aux_dir/install.sh -c"
2393 break
2394 elif test -f "$ac_dir/shtool"; then
2395 ac_aux_dir=$ac_dir
2396 ac_install_sh="$ac_aux_dir/shtool install -c"
2397 break
2398 fi
2399 done
2400 if test -z "$ac_aux_dir"; then
2401 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2402 fi
2403
2404 # These three variables are undocumented and unsupported,
2405 # and are intended to be withdrawn in a future Autoconf release.
2406 # They can cause serious problems if a builder's source tree is in a directory
2407 # whose full name contains unusual characters.
2408 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2409 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2410 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2411
2412
2413
2414 # Make sure we can run config.sub.
2415 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2416 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2417
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2419 $as_echo_n "checking build system type... " >&6; }
2420 if ${ac_cv_build+:} false; then :
2421 $as_echo_n "(cached) " >&6
2422 else
2423 ac_build_alias=$build_alias
2424 test "x$ac_build_alias" = x &&
2425 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2426 test "x$ac_build_alias" = x &&
2427 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2428 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2429 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2430
2431 fi
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2433 $as_echo "$ac_cv_build" >&6; }
2434 case $ac_cv_build in
2435 *-*-*) ;;
2436 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2437 esac
2438 build=$ac_cv_build
2439 ac_save_IFS=$IFS; IFS='-'
2440 set x $ac_cv_build
2441 shift
2442 build_cpu=$1
2443 build_vendor=$2
2444 shift; shift
2445 # Remember, the first character of IFS is used to create $*,
2446 # except with old shells:
2447 build_os=$*
2448 IFS=$ac_save_IFS
2449 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2450
2451
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2453 $as_echo_n "checking host system type... " >&6; }
2454 if ${ac_cv_host+:} false; then :
2455 $as_echo_n "(cached) " >&6
2456 else
2457 if test "x$host_alias" = x; then
2458 ac_cv_host=$ac_cv_build
2459 else
2460 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2461 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2462 fi
2463
2464 fi
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2466 $as_echo "$ac_cv_host" >&6; }
2467 case $ac_cv_host in
2468 *-*-*) ;;
2469 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2470 esac
2471 host=$ac_cv_host
2472 ac_save_IFS=$IFS; IFS='-'
2473 set x $ac_cv_host
2474 shift
2475 host_cpu=$1
2476 host_vendor=$2
2477 shift; shift
2478 # Remember, the first character of IFS is used to create $*,
2479 # except with old shells:
2480 host_os=$*
2481 IFS=$ac_save_IFS
2482 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2483
2484
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2486 $as_echo_n "checking target system type... " >&6; }
2487 if ${ac_cv_target+:} false; then :
2488 $as_echo_n "(cached) " >&6
2489 else
2490 if test "x$target_alias" = x; then
2491 ac_cv_target=$ac_cv_host
2492 else
2493 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2494 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2495 fi
2496
2497 fi
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2499 $as_echo "$ac_cv_target" >&6; }
2500 case $ac_cv_target in
2501 *-*-*) ;;
2502 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2503 esac
2504 target=$ac_cv_target
2505 ac_save_IFS=$IFS; IFS='-'
2506 set x $ac_cv_target
2507 shift
2508 target_cpu=$1
2509 target_vendor=$2
2510 shift; shift
2511 # Remember, the first character of IFS is used to create $*,
2512 # except with old shells:
2513 target_os=$*
2514 IFS=$ac_save_IFS
2515 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2516
2517
2518 # The aliases save the names the user supplied, while $host etc.
2519 # will get canonicalized.
2520 test -n "$target_alias" &&
2521 test "$program_prefix$program_suffix$program_transform_name" = \
2522 NONENONEs,x,x, &&
2523 program_prefix=${target_alias}-
2524
2525
2526 PACKAGE=irsim
2527 IRSIM_VERSION=`cat ../VERSION | cut -d. -f1-2`
2528 IRSIM_REVISION=`cat ../VERSION | cut -d. -f3`
2529 cat >>confdefs.h <<_ACEOF
2530 #define IRSIM_VERSION "${IRSIM_VERSION}"
2531 _ACEOF
2532
2533 cat >>confdefs.h <<_ACEOF
2534 #define IRSIM_REVISION "${IRSIM_REVISION}"
2535 _ACEOF
2536
2537
2538 ALL_TARGET="standard"
2539 INSTALL_TARGET="install-irsim"
2540
2541 ac_ext=c
2542 ac_cpp='$CPP $CPPFLAGS'
2543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2546 if test -n "$ac_tool_prefix"; then
2547 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2548 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2550 $as_echo_n "checking for $ac_word... " >&6; }
2551 if ${ac_cv_prog_CC+:} false; then :
2552 $as_echo_n "(cached) " >&6
2553 else
2554 if test -n "$CC"; then
2555 ac_cv_prog_CC="$CC" # Let the user override the test.
2556 else
2557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558 for as_dir in $PATH
2559 do
2560 IFS=$as_save_IFS
2561 test -z "$as_dir" && as_dir=.
2562 for ac_exec_ext in '' $ac_executable_extensions; do
2563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2564 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2566 break 2
2567 fi
2568 done
2569 done
2570 IFS=$as_save_IFS
2571
2572 fi
2573 fi
2574 CC=$ac_cv_prog_CC
2575 if test -n "$CC"; then
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2577 $as_echo "$CC" >&6; }
2578 else
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2580 $as_echo "no" >&6; }
2581 fi
2582
2583
2584 fi
2585 if test -z "$ac_cv_prog_CC"; then
2586 ac_ct_CC=$CC
2587 # Extract the first word of "gcc", so it can be a program name with args.
2588 set dummy gcc; ac_word=$2
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2590 $as_echo_n "checking for $ac_word... " >&6; }
2591 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2592 $as_echo_n "(cached) " >&6
2593 else
2594 if test -n "$ac_ct_CC"; then
2595 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2596 else
2597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598 for as_dir in $PATH
2599 do
2600 IFS=$as_save_IFS
2601 test -z "$as_dir" && as_dir=.
2602 for ac_exec_ext in '' $ac_executable_extensions; do
2603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2604 ac_cv_prog_ac_ct_CC="gcc"
2605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2606 break 2
2607 fi
2608 done
2609 done
2610 IFS=$as_save_IFS
2611
2612 fi
2613 fi
2614 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2615 if test -n "$ac_ct_CC"; then
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2617 $as_echo "$ac_ct_CC" >&6; }
2618 else
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2620 $as_echo "no" >&6; }
2621 fi
2622
2623 if test "x$ac_ct_CC" = x; then
2624 CC=""
2625 else
2626 case $cross_compiling:$ac_tool_warned in
2627 yes:)
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2629 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2630 ac_tool_warned=yes ;;
2631 esac
2632 CC=$ac_ct_CC
2633 fi
2634 else
2635 CC="$ac_cv_prog_CC"
2636 fi
2637
2638 if test -z "$CC"; then
2639 if test -n "$ac_tool_prefix"; then
2640 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2641 set dummy ${ac_tool_prefix}cc; ac_word=$2
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2643 $as_echo_n "checking for $ac_word... " >&6; }
2644 if ${ac_cv_prog_CC+:} false; then :
2645 $as_echo_n "(cached) " >&6
2646 else
2647 if test -n "$CC"; then
2648 ac_cv_prog_CC="$CC" # Let the user override the test.
2649 else
2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651 for as_dir in $PATH
2652 do
2653 IFS=$as_save_IFS
2654 test -z "$as_dir" && as_dir=.
2655 for ac_exec_ext in '' $ac_executable_extensions; do
2656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2657 ac_cv_prog_CC="${ac_tool_prefix}cc"
2658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2659 break 2
2660 fi
2661 done
2662 done
2663 IFS=$as_save_IFS
2664
2665 fi
2666 fi
2667 CC=$ac_cv_prog_CC
2668 if test -n "$CC"; then
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2670 $as_echo "$CC" >&6; }
2671 else
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2673 $as_echo "no" >&6; }
2674 fi
2675
2676
2677 fi
2678 fi
2679 if test -z "$CC"; then
2680 # Extract the first word of "cc", so it can be a program name with args.
2681 set dummy cc; ac_word=$2
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2683 $as_echo_n "checking for $ac_word... " >&6; }
2684 if ${ac_cv_prog_CC+:} false; then :
2685 $as_echo_n "(cached) " >&6
2686 else
2687 if test -n "$CC"; then
2688 ac_cv_prog_CC="$CC" # Let the user override the test.
2689 else
2690 ac_prog_rejected=no
2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692 for as_dir in $PATH
2693 do
2694 IFS=$as_save_IFS
2695 test -z "$as_dir" && as_dir=.
2696 for ac_exec_ext in '' $ac_executable_extensions; do
2697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2698 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2699 ac_prog_rejected=yes
2700 continue
2701 fi
2702 ac_cv_prog_CC="cc"
2703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2704 break 2
2705 fi
2706 done
2707 done
2708 IFS=$as_save_IFS
2709
2710 if test $ac_prog_rejected = yes; then
2711 # We found a bogon in the path, so make sure we never use it.
2712 set dummy $ac_cv_prog_CC
2713 shift
2714 if test $# != 0; then
2715 # We chose a different compiler from the bogus one.
2716 # However, it has the same basename, so the bogon will be chosen
2717 # first if we set CC to just the basename; use the full file name.
2718 shift
2719 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2720 fi
2721 fi
2722 fi
2723 fi
2724 CC=$ac_cv_prog_CC
2725 if test -n "$CC"; then
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2727 $as_echo "$CC" >&6; }
2728 else
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2730 $as_echo "no" >&6; }
2731 fi
2732
2733
2734 fi
2735 if test -z "$CC"; then
2736 if test -n "$ac_tool_prefix"; then
2737 for ac_prog in cl.exe
2738 do
2739 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2740 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2742 $as_echo_n "checking for $ac_word... " >&6; }
2743 if ${ac_cv_prog_CC+:} false; then :
2744 $as_echo_n "(cached) " >&6
2745 else
2746 if test -n "$CC"; then
2747 ac_cv_prog_CC="$CC" # Let the user override the test.
2748 else
2749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750 for as_dir in $PATH
2751 do
2752 IFS=$as_save_IFS
2753 test -z "$as_dir" && as_dir=.
2754 for ac_exec_ext in '' $ac_executable_extensions; do
2755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2756 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2758 break 2
2759 fi
2760 done
2761 done
2762 IFS=$as_save_IFS
2763
2764 fi
2765 fi
2766 CC=$ac_cv_prog_CC
2767 if test -n "$CC"; then
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2769 $as_echo "$CC" >&6; }
2770 else
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2772 $as_echo "no" >&6; }
2773 fi
2774
2775
2776 test -n "$CC" && break
2777 done
2778 fi
2779 if test -z "$CC"; then
2780 ac_ct_CC=$CC
2781 for ac_prog in cl.exe
2782 do
2783 # Extract the first word of "$ac_prog", so it can be a program name with args.
2784 set dummy $ac_prog; ac_word=$2
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2786 $as_echo_n "checking for $ac_word... " >&6; }
2787 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2788 $as_echo_n "(cached) " >&6
2789 else
2790 if test -n "$ac_ct_CC"; then
2791 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2792 else
2793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794 for as_dir in $PATH
2795 do
2796 IFS=$as_save_IFS
2797 test -z "$as_dir" && as_dir=.
2798 for ac_exec_ext in '' $ac_executable_extensions; do
2799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2800 ac_cv_prog_ac_ct_CC="$ac_prog"
2801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2802 break 2
2803 fi
2804 done
2805 done
2806 IFS=$as_save_IFS
2807
2808 fi
2809 fi
2810 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2811 if test -n "$ac_ct_CC"; then
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2813 $as_echo "$ac_ct_CC" >&6; }
2814 else
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2816 $as_echo "no" >&6; }
2817 fi
2818
2819
2820 test -n "$ac_ct_CC" && break
2821 done
2822
2823 if test "x$ac_ct_CC" = x; then
2824 CC=""
2825 else
2826 case $cross_compiling:$ac_tool_warned in
2827 yes:)
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2829 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2830 ac_tool_warned=yes ;;
2831 esac
2832 CC=$ac_ct_CC
2833 fi
2834 fi
2835
2836 fi
2837
2838
2839 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2840 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2841 as_fn_error $? "no acceptable C compiler found in \$PATH
2842 See \`config.log' for more details" "$LINENO" 5; }
2843
2844 # Provide some information about the compiler.
2845 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2846 set X $ac_compile
2847 ac_compiler=$2
2848 for ac_option in --version -v -V -qversion; do
2849 { { ac_try="$ac_compiler $ac_option >&5"
2850 case "(($ac_try" in
2851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2852 *) ac_try_echo=$ac_try;;
2853 esac
2854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2855 $as_echo "$ac_try_echo"; } >&5
2856 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2857 ac_status=$?
2858 if test -s conftest.err; then
2859 sed '10a\
2860 ... rest of stderr output deleted ...
2861 10q' conftest.err >conftest.er1
2862 cat conftest.er1 >&5
2863 fi
2864 rm -f conftest.er1 conftest.err
2865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2866 test $ac_status = 0; }
2867 done
2868
2869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2870 /* end confdefs.h. */
2871
2872 int
2873 main ()
2874 {
2875
2876 ;
2877 return 0;
2878 }
2879 _ACEOF
2880 ac_clean_files_save=$ac_clean_files
2881 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2882 # Try to create an executable without -o first, disregard a.out.
2883 # It will help us diagnose broken compilers, and finding out an intuition
2884 # of exeext.
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2886 $as_echo_n "checking whether the C compiler works... " >&6; }
2887 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2888
2889 # The possible output files:
2890 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2891
2892 ac_rmfiles=
2893 for ac_file in $ac_files
2894 do
2895 case $ac_file in
2896 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2897 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2898 esac
2899 done
2900 rm -f $ac_rmfiles
2901
2902 if { { ac_try="$ac_link_default"
2903 case "(($ac_try" in
2904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905 *) ac_try_echo=$ac_try;;
2906 esac
2907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2908 $as_echo "$ac_try_echo"; } >&5
2909 (eval "$ac_link_default") 2>&5
2910 ac_status=$?
2911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2912 test $ac_status = 0; }; then :
2913 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2914 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2915 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2916 # so that the user can short-circuit this test for compilers unknown to
2917 # Autoconf.
2918 for ac_file in $ac_files ''
2919 do
2920 test -f "$ac_file" || continue
2921 case $ac_file in
2922 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2923 ;;
2924 [ab].out )
2925 # We found the default executable, but exeext='' is most
2926 # certainly right.
2927 break;;
2928 *.* )
2929 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2930 then :; else
2931 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2932 fi
2933 # We set ac_cv_exeext here because the later test for it is not
2934 # safe: cross compilers may not add the suffix if given an `-o'
2935 # argument, so we may need to know it at that point already.
2936 # Even if this section looks crufty: it has the advantage of
2937 # actually working.
2938 break;;
2939 * )
2940 break;;
2941 esac
2942 done
2943 test "$ac_cv_exeext" = no && ac_cv_exeext=
2944
2945 else
2946 ac_file=''
2947 fi
2948 if test -z "$ac_file"; then :
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2950 $as_echo "no" >&6; }
2951 $as_echo "$as_me: failed program was:" >&5
2952 sed 's/^/| /' conftest.$ac_ext >&5
2953
2954 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2955 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2956 as_fn_error 77 "C compiler cannot create executables
2957 See \`config.log' for more details" "$LINENO" 5; }
2958 else
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2960 $as_echo "yes" >&6; }
2961 fi
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2963 $as_echo_n "checking for C compiler default output file name... " >&6; }
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2965 $as_echo "$ac_file" >&6; }
2966 ac_exeext=$ac_cv_exeext
2967
2968 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2969 ac_clean_files=$ac_clean_files_save
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2971 $as_echo_n "checking for suffix of executables... " >&6; }
2972 if { { ac_try="$ac_link"
2973 case "(($ac_try" in
2974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2975 *) ac_try_echo=$ac_try;;
2976 esac
2977 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2978 $as_echo "$ac_try_echo"; } >&5
2979 (eval "$ac_link") 2>&5
2980 ac_status=$?
2981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2982 test $ac_status = 0; }; then :
2983 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2984 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2985 # work properly (i.e., refer to `conftest.exe'), while it won't with
2986 # `rm'.
2987 for ac_file in conftest.exe conftest conftest.*; do
2988 test -f "$ac_file" || continue
2989 case $ac_file in
2990 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2991 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2992 break;;
2993 * ) break;;
2994 esac
2995 done
2996 else
2997 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2998 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2999 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3000 See \`config.log' for more details" "$LINENO" 5; }
3001 fi
3002 rm -f conftest conftest$ac_cv_exeext
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3004 $as_echo "$ac_cv_exeext" >&6; }
3005
3006 rm -f conftest.$ac_ext
3007 EXEEXT=$ac_cv_exeext
3008 ac_exeext=$EXEEXT
3009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3010 /* end confdefs.h. */
3011 #include <stdio.h>
3012 int
3013 main ()
3014 {
3015 FILE *f = fopen ("conftest.out", "w");
3016 return ferror (f) || fclose (f) != 0;
3017
3018 ;
3019 return 0;
3020 }
3021 _ACEOF
3022 ac_clean_files="$ac_clean_files conftest.out"
3023 # Check that the compiler produces executables we can run. If not, either
3024 # the compiler is broken, or we cross compile.
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3026 $as_echo_n "checking whether we are cross compiling... " >&6; }
3027 if test "$cross_compiling" != yes; then
3028 { { ac_try="$ac_link"
3029 case "(($ac_try" in
3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031 *) ac_try_echo=$ac_try;;
3032 esac
3033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3034 $as_echo "$ac_try_echo"; } >&5
3035 (eval "$ac_link") 2>&5
3036 ac_status=$?
3037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3038 test $ac_status = 0; }
3039 if { ac_try='./conftest$ac_cv_exeext'
3040 { { case "(($ac_try" in
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3043 esac
3044 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3045 $as_echo "$ac_try_echo"; } >&5
3046 (eval "$ac_try") 2>&5
3047 ac_status=$?
3048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3049 test $ac_status = 0; }; }; then
3050 cross_compiling=no
3051 else
3052 if test "$cross_compiling" = maybe; then
3053 cross_compiling=yes
3054 else
3055 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3056 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3057 as_fn_error $? "cannot run C compiled programs.
3058 If you meant to cross compile, use \`--host'.
3059 See \`config.log' for more details" "$LINENO" 5; }
3060 fi
3061 fi
3062 fi
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3064 $as_echo "$cross_compiling" >&6; }
3065
3066 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3067 ac_clean_files=$ac_clean_files_save
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3069 $as_echo_n "checking for suffix of object files... " >&6; }
3070 if ${ac_cv_objext+:} false; then :
3071 $as_echo_n "(cached) " >&6
3072 else
3073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3074 /* end confdefs.h. */
3075
3076 int
3077 main ()
3078 {
3079
3080 ;
3081 return 0;
3082 }
3083 _ACEOF
3084 rm -f conftest.o conftest.obj
3085 if { { ac_try="$ac_compile"
3086 case "(($ac_try" in
3087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088 *) ac_try_echo=$ac_try;;
3089 esac
3090 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3091 $as_echo "$ac_try_echo"; } >&5
3092 (eval "$ac_compile") 2>&5
3093 ac_status=$?
3094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3095 test $ac_status = 0; }; then :
3096 for ac_file in conftest.o conftest.obj conftest.*; do
3097 test -f "$ac_file" || continue;
3098 case $ac_file in
3099 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3100 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3101 break;;
3102 esac
3103 done
3104 else
3105 $as_echo "$as_me: failed program was:" >&5
3106 sed 's/^/| /' conftest.$ac_ext >&5
3107
3108 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3109 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3110 as_fn_error $? "cannot compute suffix of object files: cannot compile
3111 See \`config.log' for more details" "$LINENO" 5; }
3112 fi
3113 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3114 fi
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3116 $as_echo "$ac_cv_objext" >&6; }
3117 OBJEXT=$ac_cv_objext
3118 ac_objext=$OBJEXT
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3120 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3121 if ${ac_cv_c_compiler_gnu+:} false; then :
3122 $as_echo_n "(cached) " >&6
3123 else
3124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3125 /* end confdefs.h. */
3126
3127 int
3128 main ()
3129 {
3130 #ifndef __GNUC__
3131 choke me
3132 #endif
3133
3134 ;
3135 return 0;
3136 }
3137 _ACEOF
3138 if ac_fn_c_try_compile "$LINENO"; then :
3139 ac_compiler_gnu=yes
3140 else
3141 ac_compiler_gnu=no
3142 fi
3143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3144 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3145
3146 fi
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3148 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3149 if test $ac_compiler_gnu = yes; then
3150 GCC=yes
3151 else
3152 GCC=
3153 fi
3154 ac_test_CFLAGS=${CFLAGS+set}
3155 ac_save_CFLAGS=$CFLAGS
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3157 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3158 if ${ac_cv_prog_cc_g+:} false; then :
3159 $as_echo_n "(cached) " >&6
3160 else
3161 ac_save_c_werror_flag=$ac_c_werror_flag
3162 ac_c_werror_flag=yes
3163 ac_cv_prog_cc_g=no
3164 CFLAGS="-g"
3165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3166 /* end confdefs.h. */
3167
3168 int
3169 main ()
3170 {
3171
3172 ;
3173 return 0;
3174 }
3175 _ACEOF
3176 if ac_fn_c_try_compile "$LINENO"; then :
3177 ac_cv_prog_cc_g=yes
3178 else
3179 CFLAGS=""
3180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3181 /* end confdefs.h. */
3182
3183 int
3184 main ()
3185 {
3186
3187 ;
3188 return 0;
3189 }
3190 _ACEOF
3191 if ac_fn_c_try_compile "$LINENO"; then :
3192
3193 else
3194 ac_c_werror_flag=$ac_save_c_werror_flag
3195 CFLAGS="-g"
3196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3197 /* end confdefs.h. */
3198
3199 int
3200 main ()
3201 {
3202
3203 ;
3204 return 0;
3205 }
3206 _ACEOF
3207 if ac_fn_c_try_compile "$LINENO"; then :
3208 ac_cv_prog_cc_g=yes
3209 fi
3210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3211 fi
3212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3213 fi
3214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3215 ac_c_werror_flag=$ac_save_c_werror_flag
3216 fi
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3218 $as_echo "$ac_cv_prog_cc_g" >&6; }
3219 if test "$ac_test_CFLAGS" = set; then
3220 CFLAGS=$ac_save_CFLAGS
3221 elif test $ac_cv_prog_cc_g = yes; then
3222 if test "$GCC" = yes; then
3223 CFLAGS="-g -O2"
3224 else
3225 CFLAGS="-g"
3226 fi
3227 else
3228 if test "$GCC" = yes; then
3229 CFLAGS="-O2"
3230 else
3231 CFLAGS=
3232 fi
3233 fi
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3235 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3236 if ${ac_cv_prog_cc_c89+:} false; then :
3237 $as_echo_n "(cached) " >&6
3238 else
3239 ac_cv_prog_cc_c89=no
3240 ac_save_CC=$CC
3241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3242 /* end confdefs.h. */
3243 #include <stdarg.h>
3244 #include <stdio.h>
3245 struct stat;
3246 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3247 struct buf { int x; };
3248 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3249 static char *e (p, i)
3250 char **p;
3251 int i;
3252 {
3253 return p[i];
3254 }
3255 static char *f (char * (*g) (char **, int), char **p, ...)
3256 {
3257 char *s;
3258 va_list v;
3259 va_start (v,p);
3260 s = g (p, va_arg (v,int));
3261 va_end (v);
3262 return s;
3263 }
3264
3265 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3266 function prototypes and stuff, but not '\xHH' hex character constants.
3267 These don't provoke an error unfortunately, instead are silently treated
3268 as 'x'. The following induces an error, until -std is added to get
3269 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3270 array size at least. It's necessary to write '\x00'==0 to get something
3271 that's true only with -std. */
3272 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3273
3274 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3275 inside strings and character constants. */
3276 #define FOO(x) 'x'
3277 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3278
3279 int test (int i, double x);
3280 struct s1 {int (*f) (int a);};
3281 struct s2 {int (*f) (double a);};
3282 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3283 int argc;
3284 char **argv;
3285 int
3286 main ()
3287 {
3288 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3289 ;
3290 return 0;
3291 }
3292 _ACEOF
3293 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3294 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3295 do
3296 CC="$ac_save_CC $ac_arg"
3297 if ac_fn_c_try_compile "$LINENO"; then :
3298 ac_cv_prog_cc_c89=$ac_arg
3299 fi
3300 rm -f core conftest.err conftest.$ac_objext
3301 test "x$ac_cv_prog_cc_c89" != "xno" && break
3302 done
3303 rm -f conftest.$ac_ext
3304 CC=$ac_save_CC
3305
3306 fi
3307 # AC_CACHE_VAL
3308 case "x$ac_cv_prog_cc_c89" in
3309 x)
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3311 $as_echo "none needed" >&6; } ;;
3312 xno)
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3314 $as_echo "unsupported" >&6; } ;;
3315 *)
3316 CC="$CC $ac_cv_prog_cc_c89"
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3318 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3319 esac
3320 if test "x$ac_cv_prog_cc_c89" != xno; then :
3321
3322 fi
3323
3324 ac_ext=c
3325 ac_cpp='$CPP $CPPFLAGS'
3326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3329
3330 ac_ext=c
3331 ac_cpp='$CPP $CPPFLAGS'
3332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3336 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3337 # On Suns, sometimes $CPP names a directory.
3338 if test -n "$CPP" && test -d "$CPP"; then
3339 CPP=
3340 fi
3341 if test -z "$CPP"; then
3342 if ${ac_cv_prog_CPP+:} false; then :
3343 $as_echo_n "(cached) " >&6
3344 else
3345 # Double quotes because CPP needs to be expanded
3346 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3347 do
3348 ac_preproc_ok=false
3349 for ac_c_preproc_warn_flag in '' yes
3350 do
3351 # Use a header file that comes with gcc, so configuring glibc
3352 # with a fresh cross-compiler works.
3353 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3354 # <limits.h> exists even on freestanding compilers.
3355 # On the NeXT, cc -E runs the code through the compiler's parser,
3356 # not just through cpp. "Syntax error" is here to catch this case.
3357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3358 /* end confdefs.h. */
3359 #ifdef __STDC__
3360 # include <limits.h>
3361 #else
3362 # include <assert.h>
3363 #endif
3364 Syntax error
3365 _ACEOF
3366 if ac_fn_c_try_cpp "$LINENO"; then :
3367
3368 else
3369 # Broken: fails on valid input.
3370 continue
3371 fi
3372 rm -f conftest.err conftest.i conftest.$ac_ext
3373
3374 # OK, works on sane cases. Now check whether nonexistent headers
3375 # can be detected and how.
3376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3377 /* end confdefs.h. */
3378 #include <ac_nonexistent.h>
3379 _ACEOF
3380 if ac_fn_c_try_cpp "$LINENO"; then :
3381 # Broken: success on invalid input.
3382 continue
3383 else
3384 # Passes both tests.
3385 ac_preproc_ok=:
3386 break
3387 fi
3388 rm -f conftest.err conftest.i conftest.$ac_ext
3389
3390 done
3391 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3392 rm -f conftest.i conftest.err conftest.$ac_ext
3393 if $ac_preproc_ok; then :
3394 break
3395 fi
3396
3397 done
3398 ac_cv_prog_CPP=$CPP
3399
3400 fi
3401 CPP=$ac_cv_prog_CPP
3402 else
3403 ac_cv_prog_CPP=$CPP
3404 fi
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3406 $as_echo "$CPP" >&6; }
3407 ac_preproc_ok=false
3408 for ac_c_preproc_warn_flag in '' yes
3409 do
3410 # Use a header file that comes with gcc, so configuring glibc
3411 # with a fresh cross-compiler works.
3412 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3413 # <limits.h> exists even on freestanding compilers.
3414 # On the NeXT, cc -E runs the code through the compiler's parser,
3415 # not just through cpp. "Syntax error" is here to catch this case.
3416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3417 /* end confdefs.h. */
3418 #ifdef __STDC__
3419 # include <limits.h>
3420 #else
3421 # include <assert.h>
3422 #endif
3423 Syntax error
3424 _ACEOF
3425 if ac_fn_c_try_cpp "$LINENO"; then :
3426
3427 else
3428 # Broken: fails on valid input.
3429 continue
3430 fi
3431 rm -f conftest.err conftest.i conftest.$ac_ext
3432
3433 # OK, works on sane cases. Now check whether nonexistent headers
3434 # can be detected and how.
3435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3436 /* end confdefs.h. */
3437 #include <ac_nonexistent.h>
3438 _ACEOF
3439 if ac_fn_c_try_cpp "$LINENO"; then :
3440 # Broken: success on invalid input.
3441 continue
3442 else
3443 # Passes both tests.
3444 ac_preproc_ok=:
3445 break
3446 fi
3447 rm -f conftest.err conftest.i conftest.$ac_ext
3448
3449 done
3450 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3451 rm -f conftest.i conftest.err conftest.$ac_ext
3452 if $ac_preproc_ok; then :
3453
3454 else
3455 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3456 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3457 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3458 See \`config.log' for more details" "$LINENO" 5; }
3459 fi
3460
3461 ac_ext=c
3462 ac_cpp='$CPP $CPPFLAGS'
3463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3466
3467
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3469 $as_echo_n "checking for library containing strerror... " >&6; }
3470 if ${ac_cv_search_strerror+:} false; then :
3471 $as_echo_n "(cached) " >&6
3472 else
3473 ac_func_search_save_LIBS=$LIBS
3474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3475 /* end confdefs.h. */
3476
3477 /* Override any GCC internal prototype to avoid an error.
3478 Use char because int might match the return type of a GCC
3479 builtin and then its argument prototype would still apply. */
3480 #ifdef __cplusplus
3481 extern "C"
3482 #endif
3483 char strerror ();
3484 int
3485 main ()
3486 {
3487 return strerror ();
3488 ;
3489 return 0;
3490 }
3491 _ACEOF
3492 for ac_lib in '' cposix; do
3493 if test -z "$ac_lib"; then
3494 ac_res="none required"
3495 else
3496 ac_res=-l$ac_lib
3497 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3498 fi
3499 if ac_fn_c_try_link "$LINENO"; then :
3500 ac_cv_search_strerror=$ac_res
3501 fi
3502 rm -f core conftest.err conftest.$ac_objext \
3503 conftest$ac_exeext
3504 if ${ac_cv_search_strerror+:} false; then :
3505 break
3506 fi
3507 done
3508 if ${ac_cv_search_strerror+:} false; then :
3509
3510 else
3511 ac_cv_search_strerror=no
3512 fi
3513 rm conftest.$ac_ext
3514 LIBS=$ac_func_search_save_LIBS
3515 fi
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3517 $as_echo "$ac_cv_search_strerror" >&6; }
3518 ac_res=$ac_cv_search_strerror
3519 if test "$ac_res" != no; then :
3520 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3521
3522 fi
3523
3524 # Find a good install program. We prefer a C program (faster),
3525 # so one script is as good as another. But avoid the broken or
3526 # incompatible versions:
3527 # SysV /etc/install, /usr/sbin/install
3528 # SunOS /usr/etc/install
3529 # IRIX /sbin/install
3530 # AIX /bin/install
3531 # AmigaOS /C/install, which installs bootblocks on floppy discs
3532 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3533 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3534 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3535 # OS/2's system install, which has a completely different semantic
3536 # ./install, which can be erroneously created by make from ./install.sh.
3537 # Reject install programs that cannot install multiple files.
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3539 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3540 if test -z "$INSTALL"; then
3541 if ${ac_cv_path_install+:} false; then :
3542 $as_echo_n "(cached) " >&6
3543 else
3544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545 for as_dir in $PATH
3546 do
3547 IFS=$as_save_IFS
3548 test -z "$as_dir" && as_dir=.
3549 # Account for people who put trailing slashes in PATH elements.
3550 case $as_dir/ in #((
3551 ./ | .// | /[cC]/* | \
3552 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3553 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3554 /usr/ucb/* ) ;;
3555 *)
3556 # OSF1 and SCO ODT 3.0 have their own names for install.
3557 # Don't use installbsd from OSF since it installs stuff as root
3558 # by default.
3559 for ac_prog in ginstall scoinst install; do
3560 for ac_exec_ext in '' $ac_executable_extensions; do
3561 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3562 if test $ac_prog = install &&
3563 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3564 # AIX install. It has an incompatible calling convention.
3565 :
3566 elif test $ac_prog = install &&
3567 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3568 # program-specific install script used by HP pwplus--don't use.
3569 :
3570 else
3571 rm -rf conftest.one conftest.two conftest.dir
3572 echo one > conftest.one
3573 echo two > conftest.two
3574 mkdir conftest.dir
3575 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3576 test -s conftest.one && test -s conftest.two &&
3577 test -s conftest.dir/conftest.one &&
3578 test -s conftest.dir/conftest.two
3579 then
3580 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3581 break 3
3582 fi
3583 fi
3584 fi
3585 done
3586 done
3587 ;;
3588 esac
3589
3590 done
3591 IFS=$as_save_IFS
3592
3593 rm -rf conftest.one conftest.two conftest.dir
3594
3595 fi
3596 if test "${ac_cv_path_install+set}" = set; then
3597 INSTALL=$ac_cv_path_install
3598 else
3599 # As a last resort, use the slow shell script. Don't cache a
3600 # value for INSTALL within a source directory, because that will
3601 # break other packages using the cache if that directory is
3602 # removed, or if the value is a relative name.
3603 INSTALL=$ac_install_sh
3604 fi
3605 fi
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3607 $as_echo "$INSTALL" >&6; }
3608
3609 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3610 # It thinks the first close brace ends the variable substitution.
3611 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3612
3613 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3614
3615 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3616
3617 if test -n "$ac_tool_prefix"; then
3618 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3619 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3621 $as_echo_n "checking for $ac_word... " >&6; }
3622 if ${ac_cv_prog_RANLIB+:} false; then :
3623 $as_echo_n "(cached) " >&6
3624 else
3625 if test -n "$RANLIB"; then
3626 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3627 else
3628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3629 for as_dir in $PATH
3630 do
3631 IFS=$as_save_IFS
3632 test -z "$as_dir" && as_dir=.
3633 for ac_exec_ext in '' $ac_executable_extensions; do
3634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3635 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3637 break 2
3638 fi
3639 done
3640 done
3641 IFS=$as_save_IFS
3642
3643 fi
3644 fi
3645 RANLIB=$ac_cv_prog_RANLIB
3646 if test -n "$RANLIB"; then
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3648 $as_echo "$RANLIB" >&6; }
3649 else
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3651 $as_echo "no" >&6; }
3652 fi
3653
3654
3655 fi
3656 if test -z "$ac_cv_prog_RANLIB"; then
3657 ac_ct_RANLIB=$RANLIB
3658 # Extract the first word of "ranlib", so it can be a program name with args.
3659 set dummy ranlib; ac_word=$2
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3661 $as_echo_n "checking for $ac_word... " >&6; }
3662 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3663 $as_echo_n "(cached) " >&6
3664 else
3665 if test -n "$ac_ct_RANLIB"; then
3666 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3667 else
3668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669 for as_dir in $PATH
3670 do
3671 IFS=$as_save_IFS
3672 test -z "$as_dir" && as_dir=.
3673 for ac_exec_ext in '' $ac_executable_extensions; do
3674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3675 ac_cv_prog_ac_ct_RANLIB="ranlib"
3676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3677 break 2
3678 fi
3679 done
3680 done
3681 IFS=$as_save_IFS
3682
3683 fi
3684 fi
3685 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3686 if test -n "$ac_ct_RANLIB"; then
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3688 $as_echo "$ac_ct_RANLIB" >&6; }
3689 else
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3691 $as_echo "no" >&6; }
3692 fi
3693
3694 if test "x$ac_ct_RANLIB" = x; then
3695 RANLIB=":"
3696 else
3697 case $cross_compiling:$ac_tool_warned in
3698 yes:)
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3701 ac_tool_warned=yes ;;
3702 esac
3703 RANLIB=$ac_ct_RANLIB
3704 fi
3705 else
3706 RANLIB="$ac_cv_prog_RANLIB"
3707 fi
3708
3709
3710
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3712 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3713 if ${ac_cv_path_GREP+:} false; then :
3714 $as_echo_n "(cached) " >&6
3715 else
3716 if test -z "$GREP"; then
3717 ac_path_GREP_found=false
3718 # Loop through the user's path and test for each of PROGNAME-LIST
3719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3720 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3721 do
3722 IFS=$as_save_IFS
3723 test -z "$as_dir" && as_dir=.
3724 for ac_prog in grep ggrep; do
3725 for ac_exec_ext in '' $ac_executable_extensions; do
3726 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3727 as_fn_executable_p "$ac_path_GREP" || continue
3728 # Check for GNU ac_path_GREP and select it if it is found.
3729 # Check for GNU $ac_path_GREP
3730 case `"$ac_path_GREP" --version 2>&1` in
3731 *GNU*)
3732 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3733 *)
3734 ac_count=0
3735 $as_echo_n 0123456789 >"conftest.in"
3736 while :
3737 do
3738 cat "conftest.in" "conftest.in" >"conftest.tmp"
3739 mv "conftest.tmp" "conftest.in"
3740 cp "conftest.in" "conftest.nl"
3741 $as_echo 'GREP' >> "conftest.nl"
3742 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3743 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3744 as_fn_arith $ac_count + 1 && ac_count=$as_val
3745 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3746 # Best one so far, save it but keep looking for a better one
3747 ac_cv_path_GREP="$ac_path_GREP"
3748 ac_path_GREP_max=$ac_count
3749 fi
3750 # 10*(2^10) chars as input seems more than enough
3751 test $ac_count -gt 10 && break
3752 done
3753 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3754 esac
3755
3756 $ac_path_GREP_found && break 3
3757 done
3758 done
3759 done
3760 IFS=$as_save_IFS
3761 if test -z "$ac_cv_path_GREP"; then
3762 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3763 fi
3764 else
3765 ac_cv_path_GREP=$GREP
3766 fi
3767
3768 fi
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3770 $as_echo "$ac_cv_path_GREP" >&6; }
3771 GREP="$ac_cv_path_GREP"
3772
3773
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3775 $as_echo_n "checking for egrep... " >&6; }
3776 if ${ac_cv_path_EGREP+:} false; then :
3777 $as_echo_n "(cached) " >&6
3778 else
3779 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3780 then ac_cv_path_EGREP="$GREP -E"
3781 else
3782 if test -z "$EGREP"; then
3783 ac_path_EGREP_found=false
3784 # Loop through the user's path and test for each of PROGNAME-LIST
3785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3786 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3787 do
3788 IFS=$as_save_IFS
3789 test -z "$as_dir" && as_dir=.
3790 for ac_prog in egrep; do
3791 for ac_exec_ext in '' $ac_executable_extensions; do
3792 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3793 as_fn_executable_p "$ac_path_EGREP" || continue
3794 # Check for GNU ac_path_EGREP and select it if it is found.
3795 # Check for GNU $ac_path_EGREP
3796 case `"$ac_path_EGREP" --version 2>&1` in
3797 *GNU*)
3798 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3799 *)
3800 ac_count=0
3801 $as_echo_n 0123456789 >"conftest.in"
3802 while :
3803 do
3804 cat "conftest.in" "conftest.in" >"conftest.tmp"
3805 mv "conftest.tmp" "conftest.in"
3806 cp "conftest.in" "conftest.nl"
3807 $as_echo 'EGREP' >> "conftest.nl"
3808 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3809 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3810 as_fn_arith $ac_count + 1 && ac_count=$as_val
3811 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3812 # Best one so far, save it but keep looking for a better one
3813 ac_cv_path_EGREP="$ac_path_EGREP"
3814 ac_path_EGREP_max=$ac_count
3815 fi
3816 # 10*(2^10) chars as input seems more than enough
3817 test $ac_count -gt 10 && break
3818 done
3819 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3820 esac
3821
3822 $ac_path_EGREP_found && break 3
3823 done
3824 done
3825 done
3826 IFS=$as_save_IFS
3827 if test -z "$ac_cv_path_EGREP"; then
3828 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3829 fi
3830 else
3831 ac_cv_path_EGREP=$EGREP
3832 fi
3833
3834 fi
3835 fi
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3837 $as_echo "$ac_cv_path_EGREP" >&6; }
3838 EGREP="$ac_cv_path_EGREP"
3839
3840
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3842 $as_echo_n "checking for ANSI C header files... " >&6; }
3843 if ${ac_cv_header_stdc+:} false; then :
3844 $as_echo_n "(cached) " >&6
3845 else
3846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847 /* end confdefs.h. */
3848 #include <stdlib.h>
3849 #include <stdarg.h>
3850 #include <string.h>
3851 #include <float.h>
3852
3853 int
3854 main ()
3855 {
3856
3857 ;
3858 return 0;
3859 }
3860 _ACEOF
3861 if ac_fn_c_try_compile "$LINENO"; then :
3862 ac_cv_header_stdc=yes
3863 else
3864 ac_cv_header_stdc=no
3865 fi
3866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3867
3868 if test $ac_cv_header_stdc = yes; then
3869 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3871 /* end confdefs.h. */
3872 #include <string.h>
3873
3874 _ACEOF
3875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3876 $EGREP "memchr" >/dev/null 2>&1; then :
3877
3878 else
3879 ac_cv_header_stdc=no
3880 fi
3881 rm -f conftest*
3882
3883 fi
3884
3885 if test $ac_cv_header_stdc = yes; then
3886 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3888 /* end confdefs.h. */
3889 #include <stdlib.h>
3890
3891 _ACEOF
3892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3893 $EGREP "free" >/dev/null 2>&1; then :
3894
3895 else
3896 ac_cv_header_stdc=no
3897 fi
3898 rm -f conftest*
3899
3900 fi
3901
3902 if test $ac_cv_header_stdc = yes; then
3903 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3904 if test "$cross_compiling" = yes; then :
3905 :
3906 else
3907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3908 /* end confdefs.h. */
3909 #include <ctype.h>
3910 #include <stdlib.h>
3911 #if ((' ' & 0x0FF) == 0x020)
3912 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3913 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3914 #else
3915 # define ISLOWER(c) \
3916 (('a' <= (c) && (c) <= 'i') \
3917 || ('j' <= (c) && (c) <= 'r') \
3918 || ('s' <= (c) && (c) <= 'z'))
3919 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3920 #endif
3921
3922 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3923 int
3924 main ()
3925 {
3926 int i;
3927 for (i = 0; i < 256; i++)
3928 if (XOR (islower (i), ISLOWER (i))
3929 || toupper (i) != TOUPPER (i))
3930 return 2;
3931 return 0;
3932 }
3933 _ACEOF
3934 if ac_fn_c_try_run "$LINENO"; then :
3935
3936 else
3937 ac_cv_header_stdc=no
3938 fi
3939 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3940 conftest.$ac_objext conftest.beam conftest.$ac_ext
3941 fi
3942
3943 fi
3944 fi
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3946 $as_echo "$ac_cv_header_stdc" >&6; }
3947 if test $ac_cv_header_stdc = yes; then
3948
3949 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3950
3951 fi
3952
3953 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3954 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3955 inttypes.h stdint.h unistd.h
3956 do :
3957 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3958 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3959 "
3960 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3961 cat >>confdefs.h <<_ACEOF
3962 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3963 _ACEOF
3964
3965 fi
3966
3967 done
3968
3969
3970 # The cast to long int works around a bug in the HP C Compiler
3971 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3972 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3973 # This bug is HP SR number 8606223364.
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
3975 $as_echo_n "checking size of void *... " >&6; }
3976 if ${ac_cv_sizeof_void_p+:} false; then :
3977 $as_echo_n "(cached) " >&6
3978 else
3979 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
3980
3981 else
3982 if test "$ac_cv_type_void_p" = yes; then
3983 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3984 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3985 as_fn_error 77 "cannot compute sizeof (void *)
3986 See \`config.log' for more details" "$LINENO" 5; }
3987 else
3988 ac_cv_sizeof_void_p=0
3989 fi
3990 fi
3991
3992 fi
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
3994 $as_echo "$ac_cv_sizeof_void_p" >&6; }
3995
3996
3997
3998 cat >>confdefs.h <<_ACEOF
3999 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4000 _ACEOF
4001
4002
4003 # The cast to long int works around a bug in the HP C Compiler
4004 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4005 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4006 # This bug is HP SR number 8606223364.
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
4008 $as_echo_n "checking size of unsigned int... " >&6; }
4009 if ${ac_cv_sizeof_unsigned_int+:} false; then :
4010 $as_echo_n "(cached) " >&6
4011 else
4012 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
4013
4014 else
4015 if test "$ac_cv_type_unsigned_int" = yes; then
4016 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4017 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4018 as_fn_error 77 "cannot compute sizeof (unsigned int)
4019 See \`config.log' for more details" "$LINENO" 5; }
4020 else
4021 ac_cv_sizeof_unsigned_int=0
4022 fi
4023 fi
4024
4025 fi
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
4027 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
4028
4029
4030
4031 cat >>confdefs.h <<_ACEOF
4032 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
4033 _ACEOF
4034
4035
4036 # The cast to long int works around a bug in the HP C Compiler
4037 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4038 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4039 # This bug is HP SR number 8606223364.
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
4041 $as_echo_n "checking size of unsigned long... " >&6; }
4042 if ${ac_cv_sizeof_unsigned_long+:} false; then :
4043 $as_echo_n "(cached) " >&6
4044 else
4045 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
4046
4047 else
4048 if test "$ac_cv_type_unsigned_long" = yes; then
4049 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4050 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4051 as_fn_error 77 "cannot compute sizeof (unsigned long)
4052 See \`config.log' for more details" "$LINENO" 5; }
4053 else
4054 ac_cv_sizeof_unsigned_long=0
4055 fi
4056 fi
4057
4058 fi
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
4060 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
4061
4062
4063
4064 cat >>confdefs.h <<_ACEOF
4065 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
4066 _ACEOF
4067
4068
4069 # The cast to long int works around a bug in the HP C Compiler
4070 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4071 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4072 # This bug is HP SR number 8606223364.
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
4074 $as_echo_n "checking size of unsigned long long... " >&6; }
4075 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
4076 $as_echo_n "(cached) " >&6
4077 else
4078 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
4079
4080 else
4081 if test "$ac_cv_type_unsigned_long_long" = yes; then
4082 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4084 as_fn_error 77 "cannot compute sizeof (unsigned long long)
4085 See \`config.log' for more details" "$LINENO" 5; }
4086 else
4087 ac_cv_sizeof_unsigned_long_long=0
4088 fi
4089 fi
4090
4091 fi
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
4093 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
4094
4095
4096
4097 cat >>confdefs.h <<_ACEOF
4098 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
4099 _ACEOF
4100
4101
4102
4103 for ac_prog in gm4 gnum4 m4
4104 do
4105 # Extract the first word of "$ac_prog", so it can be a program name with args.
4106 set dummy $ac_prog; ac_word=$2
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4108 $as_echo_n "checking for $ac_word... " >&6; }
4109 if ${ac_cv_path_M4+:} false; then :
4110 $as_echo_n "(cached) " >&6
4111 else
4112 case $M4 in
4113 [\\/]* | ?:[\\/]*)
4114 ac_cv_path_M4="$M4" # Let the user override the test with a path.
4115 ;;
4116 *)
4117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4118 for as_dir in $PATH
4119 do
4120 IFS=$as_save_IFS
4121 test -z "$as_dir" && as_dir=.
4122 for ac_exec_ext in '' $ac_executable_extensions; do
4123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4124 ac_cv_path_M4="$as_dir/$ac_word$ac_exec_ext"
4125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4126 break 2
4127 fi
4128 done
4129 done
4130 IFS=$as_save_IFS
4131
4132 ;;
4133 esac
4134 fi
4135 M4=$ac_cv_path_M4
4136 if test -n "$M4"; then
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
4138 $as_echo "$M4" >&6; }
4139 else
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4141 $as_echo "no" >&6; }
4142 fi
4143
4144
4145 test -n "$M4" && break
4146 done
4147 test -n "$M4" || M4="no"
4148
4149 if test x$M4 = xno; then
4150 as_fn_error $? "M4 is required" "$LINENO" 5
4151 fi
4152
4153
4154 #------------------------------------------------------------
4155 # AC_PROG_LD - find the path to the GNU or non-GNU linker
4156 # (This stuff ripped from libtool)
4157 #------------------------------------------------------------
4158
4159
4160
4161
4162
4163 # Check whether --with-gnu-ld was given.
4164 if test "${with_gnu_ld+set}" = set; then :
4165 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4166 else
4167 with_gnu_ld=no
4168 fi
4169
4170 ac_prog=ld
4171 if test "$GCC" = yes; then
4172 # Check if gcc -print-prog-name=ld gives a path.
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4174 $as_echo_n "checking for ld used by GCC... " >&6; }
4175 case $host in
4176 *-*-mingw*)
4177 # gcc leaves a trailing carriage return which upsets mingw
4178 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4179 *)
4180 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4181 esac
4182 case "$ac_prog" in
4183 # Accept absolute paths.
4184 [\\/]* | [A-Za-z]:[\\/]*)
4185 re_direlt='/[^/][^/]*/\.\./'
4186 # Canonicalize the path of ld
4187 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4188 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4189 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4190 done
4191 test -z "$LD" && LD="$ac_prog"
4192 ;;
4193 "")
4194 # If it fails, then pretend we aren't using GCC.
4195 ac_prog=ld
4196 ;;
4197 *)
4198 # If it is relative, then search for the first ld in PATH.
4199 with_gnu_ld=unknown
4200 ;;
4201 esac
4202 elif test "$with_gnu_ld" = yes; then
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4204 $as_echo_n "checking for GNU ld... " >&6; }
4205 else
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4207 $as_echo_n "checking for non-GNU ld... " >&6; }
4208 fi
4209 if ${ac_cv_path_LD+:} false; then :
4210 $as_echo_n "(cached) " >&6
4211 else
4212 if test -z "$LD"; then
4213 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4214 for ac_dir in $PATH; do
4215 test -z "$ac_dir" && ac_dir=.
4216 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4217 ac_cv_path_LD="$ac_dir/$ac_prog"
4218 # Check to see if the program is GNU ld. I'd rather use --version,
4219 # but apparently some GNU ld's only accept -v.
4220 # Break only if it was the GNU/non-GNU ld that we prefer.
4221 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4222 test "$with_gnu_ld" != no && break
4223 else
4224 test "$with_gnu_ld" != yes && break
4225 fi
4226 fi
4227 done
4228 IFS="$ac_save_ifs"
4229 else
4230 ac_cv_path_LD="$LD" # Let the user override the test with a path.
4231 fi
4232 fi
4233
4234 LD="$ac_cv_path_LD"
4235 if test -n "$LD"; then
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4237 $as_echo "$LD" >&6; }
4238 else
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4240 $as_echo "no" >&6; }
4241 fi
4242 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4244 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4245 if ${ac_cv_prog_gnu_ld+:} false; then :
4246 $as_echo_n "(cached) " >&6
4247 else
4248 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4249 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4250 ac_cv_prog_gnu_ld=yes
4251 else
4252 ac_cv_prog_gnu_ld=no
4253 fi
4254 fi
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gnu_ld" >&5
4256 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
4257 with_gnu_ld=$ac_cv_prog_gnu_ld
4258
4259
4260
4261 # The cast to long int works around a bug in the HP C Compiler
4262 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4263 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4264 # This bug is HP SR number 8606223364.
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
4266 $as_echo_n "checking size of void *... " >&6; }
4267 if ${ac_cv_sizeof_void_p+:} false; then :
4268 $as_echo_n "(cached) " >&6
4269 else
4270 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
4271
4272 else
4273 if test "$ac_cv_type_void_p" = yes; then
4274 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4275 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4276 as_fn_error 77 "cannot compute sizeof (void *)
4277 See \`config.log' for more details" "$LINENO" 5; }
4278 else
4279 ac_cv_sizeof_void_p=0
4280 fi
4281 fi
4282
4283 fi
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
4285 $as_echo "$ac_cv_sizeof_void_p" >&6; }
4286
4287
4288
4289 cat >>confdefs.h <<_ACEOF
4290 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4291 _ACEOF
4292
4293
4294 # The cast to long int works around a bug in the HP C Compiler
4295 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4296 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4297 # This bug is HP SR number 8606223364.
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
4299 $as_echo_n "checking size of unsigned int... " >&6; }
4300 if ${ac_cv_sizeof_unsigned_int+:} false; then :
4301 $as_echo_n "(cached) " >&6
4302 else
4303 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
4304
4305 else
4306 if test "$ac_cv_type_unsigned_int" = yes; then
4307 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4309 as_fn_error 77 "cannot compute sizeof (unsigned int)
4310 See \`config.log' for more details" "$LINENO" 5; }
4311 else
4312 ac_cv_sizeof_unsigned_int=0
4313 fi
4314 fi
4315
4316 fi
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
4318 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
4319
4320
4321
4322 cat >>confdefs.h <<_ACEOF
4323 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
4324 _ACEOF
4325
4326
4327 # The cast to long int works around a bug in the HP C Compiler
4328 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4329 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4330 # This bug is HP SR number 8606223364.
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
4332 $as_echo_n "checking size of unsigned long... " >&6; }
4333 if ${ac_cv_sizeof_unsigned_long+:} false; then :
4334 $as_echo_n "(cached) " >&6
4335 else
4336 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
4337
4338 else
4339 if test "$ac_cv_type_unsigned_long" = yes; then
4340 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4342 as_fn_error 77 "cannot compute sizeof (unsigned long)
4343 See \`config.log' for more details" "$LINENO" 5; }
4344 else
4345 ac_cv_sizeof_unsigned_long=0
4346 fi
4347 fi
4348
4349 fi
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
4351 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
4352
4353
4354
4355 cat >>confdefs.h <<_ACEOF
4356 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
4357 _ACEOF
4358
4359
4360 # The cast to long int works around a bug in the HP C Compiler
4361 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4362 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4363 # This bug is HP SR number 8606223364.
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
4365 $as_echo_n "checking size of unsigned long long... " >&6; }
4366 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
4367 $as_echo_n "(cached) " >&6
4368 else
4369 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
4370
4371 else
4372 if test "$ac_cv_type_unsigned_long_long" = yes; then
4373 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4374 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4375 as_fn_error 77 "cannot compute sizeof (unsigned long long)
4376 See \`config.log' for more details" "$LINENO" 5; }
4377 else
4378 ac_cv_sizeof_unsigned_long_long=0
4379 fi
4380 fi
4381
4382 fi
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
4384 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
4385
4386
4387
4388 cat >>confdefs.h <<_ACEOF
4389 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
4390 _ACEOF
4391
4392
4393
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4395 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4396 if ${ac_cv_c_bigendian+:} false; then :
4397 $as_echo_n "(cached) " >&6
4398 else
4399 ac_cv_c_bigendian=unknown
4400 # See if we're dealing with a universal compiler.
4401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4402 /* end confdefs.h. */
4403 #ifndef __APPLE_CC__
4404 not a universal capable compiler
4405 #endif
4406 typedef int dummy;
4407
4408 _ACEOF
4409 if ac_fn_c_try_compile "$LINENO"; then :
4410
4411 # Check for potential -arch flags. It is not universal unless
4412 # there are at least two -arch flags with different values.
4413 ac_arch=
4414 ac_prev=
4415 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4416 if test -n "$ac_prev"; then
4417 case $ac_word in
4418 i?86 | x86_64 | ppc | ppc64)
4419 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4420 ac_arch=$ac_word
4421 else
4422 ac_cv_c_bigendian=universal
4423 break
4424 fi
4425 ;;
4426 esac
4427 ac_prev=
4428 elif test "x$ac_word" = "x-arch"; then
4429 ac_prev=arch
4430 fi
4431 done
4432 fi
4433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4434 if test $ac_cv_c_bigendian = unknown; then
4435 # See if sys/param.h defines the BYTE_ORDER macro.
4436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4437 /* end confdefs.h. */
4438 #include <sys/types.h>
4439 #include <sys/param.h>
4440
4441 int
4442 main ()
4443 {
4444 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4445 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4446 && LITTLE_ENDIAN)
4447 bogus endian macros
4448 #endif
4449
4450 ;
4451 return 0;
4452 }
4453 _ACEOF
4454 if ac_fn_c_try_compile "$LINENO"; then :
4455 # It does; now see whether it defined to BIG_ENDIAN or not.
4456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4457 /* end confdefs.h. */
4458 #include <sys/types.h>
4459 #include <sys/param.h>
4460
4461 int
4462 main ()
4463 {
4464 #if BYTE_ORDER != BIG_ENDIAN
4465 not big endian
4466 #endif
4467
4468 ;
4469 return 0;
4470 }
4471 _ACEOF
4472 if ac_fn_c_try_compile "$LINENO"; then :
4473 ac_cv_c_bigendian=yes
4474 else
4475 ac_cv_c_bigendian=no
4476 fi
4477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4478 fi
4479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4480 fi
4481 if test $ac_cv_c_bigendian = unknown; then
4482 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4484 /* end confdefs.h. */
4485 #include <limits.h>
4486
4487 int
4488 main ()
4489 {
4490 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4491 bogus endian macros
4492 #endif
4493
4494 ;
4495 return 0;
4496 }
4497 _ACEOF
4498 if ac_fn_c_try_compile "$LINENO"; then :
4499 # It does; now see whether it defined to _BIG_ENDIAN or not.
4500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4501 /* end confdefs.h. */
4502 #include <limits.h>
4503
4504 int
4505 main ()
4506 {
4507 #ifndef _BIG_ENDIAN
4508 not big endian
4509 #endif
4510
4511 ;
4512 return 0;
4513 }
4514 _ACEOF
4515 if ac_fn_c_try_compile "$LINENO"; then :
4516 ac_cv_c_bigendian=yes
4517 else
4518 ac_cv_c_bigendian=no
4519 fi
4520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4521 fi
4522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4523 fi
4524 if test $ac_cv_c_bigendian = unknown; then
4525 # Compile a test program.
4526 if test "$cross_compiling" = yes; then :
4527 # Try to guess by grepping values from an object file.
4528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4529 /* end confdefs.h. */
4530 short int ascii_mm[] =
4531 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4532 short int ascii_ii[] =
4533 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4534 int use_ascii (int i) {
4535 return ascii_mm[i] + ascii_ii[i];
4536 }
4537 short int ebcdic_ii[] =
4538 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4539 short int ebcdic_mm[] =
4540 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4541 int use_ebcdic (int i) {
4542 return ebcdic_mm[i] + ebcdic_ii[i];
4543 }
4544 extern int foo;
4545
4546 int
4547 main ()
4548 {
4549 return use_ascii (foo) == use_ebcdic (foo);
4550 ;
4551 return 0;
4552 }
4553 _ACEOF
4554 if ac_fn_c_try_compile "$LINENO"; then :
4555 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4556 ac_cv_c_bigendian=yes
4557 fi
4558 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4559 if test "$ac_cv_c_bigendian" = unknown; then
4560 ac_cv_c_bigendian=no
4561 else
4562 # finding both strings is unlikely to happen, but who knows?
4563 ac_cv_c_bigendian=unknown
4564 fi
4565 fi
4566 fi
4567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4568 else
4569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4570 /* end confdefs.h. */
4571 $ac_includes_default
4572 int
4573 main ()
4574 {
4575
4576 /* Are we little or big endian? From Harbison&Steele. */
4577 union
4578 {
4579 long int l;
4580 char c[sizeof (long int)];
4581 } u;
4582 u.l = 1;
4583 return u.c[sizeof (long int) - 1] == 1;
4584
4585 ;
4586 return 0;
4587 }
4588 _ACEOF
4589 if ac_fn_c_try_run "$LINENO"; then :
4590 ac_cv_c_bigendian=no
4591 else
4592 ac_cv_c_bigendian=yes
4593 fi
4594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4595 conftest.$ac_objext conftest.beam conftest.$ac_ext
4596 fi
4597
4598 fi
4599 fi
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4601 $as_echo "$ac_cv_c_bigendian" >&6; }
4602 case $ac_cv_c_bigendian in #(
4603 yes)
4604 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4605 ;; #(
4606 no)
4607 ;; #(
4608 universal)
4609
4610 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4611
4612 ;; #(
4613 *)
4614 as_fn_error $? "unknown endianness
4615 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4616 esac
4617
4618
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4620 $as_echo_n "checking for ANSI C header files... " >&6; }
4621 if ${ac_cv_header_stdc+:} false; then :
4622 $as_echo_n "(cached) " >&6
4623 else
4624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4625 /* end confdefs.h. */
4626 #include <stdlib.h>
4627 #include <stdarg.h>
4628 #include <string.h>
4629 #include <float.h>
4630
4631 int
4632 main ()
4633 {
4634
4635 ;
4636 return 0;
4637 }
4638 _ACEOF
4639 if ac_fn_c_try_compile "$LINENO"; then :
4640 ac_cv_header_stdc=yes
4641 else
4642 ac_cv_header_stdc=no
4643 fi
4644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4645
4646 if test $ac_cv_header_stdc = yes; then
4647 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4649 /* end confdefs.h. */
4650 #include <string.h>
4651
4652 _ACEOF
4653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4654 $EGREP "memchr" >/dev/null 2>&1; then :
4655
4656 else
4657 ac_cv_header_stdc=no
4658 fi
4659 rm -f conftest*
4660
4661 fi
4662
4663 if test $ac_cv_header_stdc = yes; then
4664 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4666 /* end confdefs.h. */
4667 #include <stdlib.h>
4668
4669 _ACEOF
4670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4671 $EGREP "free" >/dev/null 2>&1; then :
4672
4673 else
4674 ac_cv_header_stdc=no
4675 fi
4676 rm -f conftest*
4677
4678 fi
4679
4680 if test $ac_cv_header_stdc = yes; then
4681 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4682 if test "$cross_compiling" = yes; then :
4683 :
4684 else
4685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4686 /* end confdefs.h. */
4687 #include <ctype.h>
4688 #include <stdlib.h>
4689 #if ((' ' & 0x0FF) == 0x020)
4690 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4691 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4692 #else
4693 # define ISLOWER(c) \
4694 (('a' <= (c) && (c) <= 'i') \
4695 || ('j' <= (c) && (c) <= 'r') \
4696 || ('s' <= (c) && (c) <= 'z'))
4697 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4698 #endif
4699
4700 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4701 int
4702 main ()
4703 {
4704 int i;
4705 for (i = 0; i < 256; i++)
4706 if (XOR (islower (i), ISLOWER (i))
4707 || toupper (i) != TOUPPER (i))
4708 return 2;
4709 return 0;
4710 }
4711 _ACEOF
4712 if ac_fn_c_try_run "$LINENO"; then :
4713
4714 else
4715 ac_cv_header_stdc=no
4716 fi
4717 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4718 conftest.$ac_objext conftest.beam conftest.$ac_ext
4719 fi
4720
4721 fi
4722 fi
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4724 $as_echo "$ac_cv_header_stdc" >&6; }
4725 if test $ac_cv_header_stdc = yes; then
4726
4727 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4728
4729 fi
4730
4731
4732 for ac_func in setenv putenv
4733 do :
4734 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4735 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4736 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4737 cat >>confdefs.h <<_ACEOF
4738 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4739 _ACEOF
4740
4741 fi
4742 done
4743
4744
4745 ac_fn_c_check_func "$LINENO" "vfork" "ac_cv_func_vfork"
4746 if test "x$ac_cv_func_vfork" = xyes; then :
4747
4748 fi
4749
4750
4751 for ac_header in dirent.h
4752 do :
4753 ac_fn_c_check_header_mongrel "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
4754 if test "x$ac_cv_header_dirent_h" = xyes; then :
4755 cat >>confdefs.h <<_ACEOF
4756 #define HAVE_DIRENT_H 1
4757 _ACEOF
4758
4759 fi
4760
4761 done
4762
4763
4764 for ac_header in limits.h
4765 do :
4766 ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
4767 if test "x$ac_cv_header_limits_h" = xyes; then :
4768 cat >>confdefs.h <<_ACEOF
4769 #define HAVE_LIMITS_H 1
4770 _ACEOF
4771
4772 fi
4773
4774 done
4775
4776
4777 for ac_header in param.h
4778 do :
4779 ac_fn_c_check_header_mongrel "$LINENO" "param.h" "ac_cv_header_param_h" "$ac_includes_default"
4780 if test "x$ac_cv_header_param_h" = xyes; then :
4781 cat >>confdefs.h <<_ACEOF
4782 #define HAVE_PARAM_H 1
4783 _ACEOF
4784
4785 fi
4786
4787 done
4788
4789
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
4791 $as_echo_n "checking for va_copy... " >&6; }
4792 if ${ac_cv_c_va_copy+:} false; then :
4793 $as_echo_n "(cached) " >&6
4794 else
4795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4796 /* end confdefs.h. */
4797 #include <stdarg.h>
4798 int
4799 main ()
4800 {
4801 va_list ap1, ap2;
4802 va_copy(ap1,ap2);
4803
4804 ;
4805 return 0;
4806 }
4807 _ACEOF
4808 if ac_fn_c_try_link "$LINENO"; then :
4809 ac_cv_c_va_copy="yes"
4810 else
4811 ac_cv_c_va_copy="no"
4812 fi
4813 rm -f core conftest.err conftest.$ac_objext \
4814 conftest$ac_exeext conftest.$ac_ext
4815
4816 fi
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_va_copy" >&5
4818 $as_echo "$ac_cv_c_va_copy" >&6; }
4819 if test "$ac_cv_c_va_copy" = "yes"
4820 then
4821
4822 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
4823
4824 fi
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __va_copy" >&5
4826 $as_echo_n "checking for __va_copy... " >&6; }
4827 if ${ac_cv_c___va_copy+:} false; then :
4828 $as_echo_n "(cached) " >&6
4829 else
4830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4831 /* end confdefs.h. */
4832 #include <stdarg.h>
4833 int
4834 main ()
4835 {
4836 va_list ap1, ap2;
4837 __va_copy(ap1,ap2);
4838
4839 ;
4840 return 0;
4841 }
4842 _ACEOF
4843 if ac_fn_c_try_link "$LINENO"; then :
4844 ac_cv_c___va_copy="yes"
4845 else
4846 ac_cv_c___va_copy="no"
4847 fi
4848 rm -f core conftest.err conftest.$ac_objext \
4849 conftest$ac_exeext conftest.$ac_ext
4850
4851 fi
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c___va_copy" >&5
4853 $as_echo "$ac_cv_c___va_copy" >&6; }
4854 if test "$ac_cv_c___va_copy" = "yes"
4855 then
4856
4857 $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
4858
4859 fi
4860
4861 extra_defs="$extra_defs -DCAD_DIR=\\\"\${LIBDIR}\\\" -DBIN_DIR=\\\"\${BINDIR}\\\""
4862 X_LIBS=
4863 X_CFLAGS=
4864 CPPFLAGS=
4865 INC_SPECS=
4866 DEPEND_FLAG=
4867 SHLIB_CFLAGS=""
4868 LD_RUN_PATH=""
4869 WISH_EXE=""
4870 CXX=
4871
4872 modules=""
4873 unused=""
4874 cadinstall=""
4875 extra_libs=""
4876 other_srcs=""
4877 top_extra_libs=""
4878 sub_extra_libs=""
4879 ld_extra_libs=""
4880 ld_extra_objs=""
4881 programs=""
4882 gr_cflags=
4883 gr_dflags=
4884 gr_libs=
4885 gr_srcs=
4886 gr_hsrcs=
4887 gr_hprog=
4888
4889 irsim_with_tcl="yes"
4890 irsim_with_tk="yes"
4891 irsim_with_tcl_includes=""
4892 irsim_with_tk_includes=""
4893 irsim_with_tcl_libraries=""
4894 irsim_with_tk_libraries=""
4895
4896
4897 usingTcl=1
4898
4899
4900
4901 # Check whether --with-interpreter was given.
4902 if test "${with_interpreter+set}" = set; then :
4903 withval=$with_interpreter;
4904 if test "$withval" = "no" -o "$withval" = "NO"; then
4905 usingTcl=
4906 elif test "$withval" = "scheme" -o "$withval" = "SCHEME"; then
4907 usingScheme=1
4908 usingTcl=
4909 elif test "$withval" != "tcl" -a "$withval" != "TCL"; then
4910 echo "Unknown option to --with-interpreter: Must be scheme, tcl, or no."
4911 exit 1
4912 fi
4913
4914 fi
4915
4916
4917
4918 # Check whether --with-tcl was given.
4919 if test "${with_tcl+set}" = set; then :
4920 withval=$with_tcl;
4921 irsim_with_tcl=$withval
4922 if test "$withval" = "no" -o "$withval" = "NO"; then
4923 usingTcl=
4924 elif test $usingScheme ; then
4925 echo Attempt to enable both Tcl and Scheme interpreters.
4926 echo Disabling Tcl, and using Scheme instead.
4927 usingTcl=
4928 fi
4929
4930 fi
4931
4932
4933
4934
4935 # Check whether --with-tk was given.
4936 if test "${with_tk+set}" = set; then :
4937 withval=$with_tk; irsim_with_tk=$withval
4938 fi
4939
4940
4941 # Check whether --with-tclincls was given.
4942 if test "${with_tclincls+set}" = set; then :
4943 withval=$with_tclincls; irsim_with_tcl_includes=$withval
4944 fi
4945
4946
4947 # Check whether --with-tkincls was given.
4948 if test "${with_tkincls+set}" = set; then :
4949 withval=$with_tkincls; irsim_with_tk_includes=$withval
4950 fi
4951
4952
4953 # Check whether --with-tcllibs was given.
4954 if test "${with_tcllibs+set}" = set; then :
4955 withval=$with_tcllibs; irsim_with_tcl_libraries=$withval
4956 fi
4957
4958
4959 # Check whether --with-tklibs was given.
4960 if test "${with_tklibs+set}" = set; then :
4961 withval=$with_tklibs; irsim_with_tk_libraries=$withval
4962 fi
4963
4964
4965 # -----------------------------------------------------------------------
4966 # Find the Tcl build configuration file "tclConfig.sh"
4967 # -----------------------------------------------------------------------
4968
4969 if test $usingTcl ; then
4970 TCL_INC_DIR="."
4971 TK_INC_DIR="."
4972
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclConfig.sh" >&5
4974 $as_echo_n "checking for tclConfig.sh... " >&6; }
4975 tcl_config_sh=""
4976
4977 if test "$irsim_with_tcl" = "no" ; then
4978 irsim_with_tcl=""
4979 elif test "$irsim_with_tcl" != "yes" ; then
4980 #
4981 # Verify that a tclConfig.sh file exists in the directory specified
4982 # by --with-tcl.
4983 #
4984 for dir in \
4985 $irsim_with_tcl
4986 do
4987 if test -r "$dir/tclConfig.sh" ; then
4988 tcl_config_sh="$dir/tclConfig.sh"
4989 break
4990 elif test -r "$dir/lib/tclConfig.sh" ; then
4991 tcl_config_sh="$dir/lib/tclConfig.sh"
4992 break
4993 elif test -r "$dir/unix/tclConfig.sh" ; then
4994 tcl_config_sh="$dir/unix/tclConfig.sh"
4995 break
4996 fi
4997 done
4998 else
4999 #
5000 # Otherwise, search for Tcl configuration file.
5001 #
5002
5003 # 1. Search previously named locations.
5004
5005 for dir in \
5006 $prefix \
5007 $exec_prefix
5008 do
5009 if test -r "$dir/tclConfig.sh" ; then
5010 tcl_config_sh="$dir/tclConfig.sh"
5011 break
5012 elif test -r "$dir/lib/tclConfig.sh" ; then
5013 tcl_config_sh="$dir/lib/tclConfig.sh"
5014 break
5015 elif test -r "$dir/unix/tclConfig.sh" ; then
5016 tcl_config_sh="$dir/unix/tclConfig.sh"
5017 break
5018 fi
5019 done
5020
5021 # 2. Search standard locations.
5022
5023 if test "x$tcl_config_sh" = "x" ; then
5024 for dir in \
5025 `ls -dr /usr/local/tcl/tcl[7-9].[0-9]* 2>/dev/null` \
5026 /usr/local/tcl \
5027 /usr/local/lib \
5028 /usr/lib64 \
5029 /usr/local \
5030 `ls -dr /usr/lib/tcl[7-9].[0-9]* 2>/dev/null` \
5031 /sw/lib \
5032 /usr
5033 do
5034 if test -r "$dir/tclConfig.sh" ; then
5035 tcl_config_sh="$dir/tclConfig.sh"
5036 break
5037 elif test -r "$dir/lib/tclConfig.sh" ; then
5038 tcl_config_sh="$dir/lib/tclConfig.sh"
5039 break
5040 fi
5041 done
5042 fi
5043 fi
5044
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${tcl_config_sh}" >&5
5046 $as_echo "${tcl_config_sh}" >&6; }
5047
5048 if test "x$tcl_config_sh" = "x" ; then
5049 echo "Can't find Tcl configuration script \"tclConfig.sh\""
5050 echo "Reverting to non-Tcl compilation"
5051 usingTcl=
5052 fi
5053 fi
5054
5055 # -----------------------------------------------------------------------
5056 # Find the Tk build configuration file "tkConfig.sh"
5057 # -----------------------------------------------------------------------
5058
5059 if test $usingTcl ; then
5060
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tkConfig.sh" >&5
5062 $as_echo_n "checking for tkConfig.sh... " >&6; }
5063 tk_config_sh=""
5064 if test "$irsim_with_tk" != "yes"; then
5065 #
5066 # Verify that a tkConfig.sh file exists in the directory specified
5067 # by --with-tcl or --with-tk.
5068 #
5069 for dir in \
5070 $irsim_with_tk \
5071 $irsim_with_tcl
5072 do
5073 if test -r "$dir/tkConfig.sh" ; then
5074 tk_config_sh="$dir/tkConfig.sh"
5075 break
5076 elif test -r "$dir/lib/tkConfig.sh" ; then
5077 tk_config_sh="$dir/lib/tkConfig.sh"
5078 break
5079 elif test -r "$dir/unix/tkConfig.sh" ; then
5080 tk_config_sh="$dir/unix/tkConfig.sh"
5081 break
5082 fi
5083 done
5084 else
5085 #
5086 # Search for Tk configuration file.
5087 #
5088
5089 #
5090 # 1. Search previously named locations.
5091 #
5092 for dir in \
5093 $prefix \
5094 $exec_prefix
5095 do
5096 if test -r "$dir/tkConfig.sh" ; then
5097 tk_config_sh="$dir/tkConfig.sh"
5098 break
5099 elif test -r "$dir/lib/tkConfig.sh" ; then
5100 tk_config_sh="$dir/lib/tkConfig.sh"
5101 break
5102 elif test -r "$dir/unix/tkConfig.sh" ; then
5103 tk_config_sh="$dir/unix/tkConfig.sh"
5104 break
5105 fi
5106 done
5107 #
5108 # 2. Search standard locations.
5109 #
5110 if test "x$tk_config_sh" = "x" ; then
5111 for dir in \
5112 `ls -dr /usr/local/tcl/tcl[7-9].[0-9]* 2>/dev/null` \
5113 `ls -dr /usr/local/tk/tk[7-9].[0-9]* 2>/dev/null` \
5114 /usr/local/tcl \
5115 /usr/local/lib \
5116 /usr/lib64 \
5117 /usr/local \
5118 `ls -dr /usr/lib/tcl[7-9].[0-9]* 2>/dev/null` \
5119 `ls -dr /usr/lib/tk[7-9].[0-9]* 2>/dev/null` \
5120 /sw/lib \
5121 ${x_libraries} \
5122 /usr/lib \
5123 /usr
5124 do
5125 if test -r "$dir/tkConfig.sh" ; then
5126 tk_config_sh="$dir/tkConfig.sh"
5127 break
5128 elif test -r "$dir/lib/tkConfig.sh" ; then
5129 tk_config_sh="$dir/lib/tkConfig.sh"
5130 break
5131 fi
5132 done
5133 fi
5134 fi
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${tk_config_sh}" >&5
5136 $as_echo "${tk_config_sh}" >&6; }
5137
5138 if test "x$tk_config_sh" = "x" ; then
5139 echo "can't find Tk configuration script \"tkConfig.sh\""
5140 echo "Reverting to non-Tcl compilation"
5141 usingTcl=
5142 fi
5143 fi
5144
5145 # -----------------------------------------------------------------------
5146 # Source in the Tcl/Tk configuration scripts.
5147 # -----------------------------------------------------------------------
5148
5149 if test $usingTcl ; then
5150 . $tcl_config_sh
5151 . $tk_config_sh
5152
5153 # Should probably trust the config file contents, but this configure
5154 # file checks the Tcl and Tk include and lib directories. Since
5155 # the config file doesn't separate out the libraries from the strings
5156 # passed to the compiler/linker, do it manually here.
5157 #
5158 # Extract TCL_LIB_DIR from TCL_LIB_SPEC
5159 # Extract TK_LIB_DIR from TK_LIB_SPEC
5160 # Extract TCL_INC_DIR from TCL_INCLUDE_SPEC
5161 # Extract TK_INC_DIR from TK_INCLUDE_SPEC
5162 #
5163 # These will be the defaults unless overridden by configure command line
5164
5165 tmpstr=${TCL_LIB_SPEC#*-L}
5166 TCL_LIB_DIR=${tmpstr% -l*}
5167 tmpstr=${TK_LIB_SPEC#*-L}
5168 TK_LIB_DIR=${tmpstr% -l*}
5169 TCL_INC_DIR=${TCL_INCLUDE_SPEC#*-I}
5170 TK_INC_DIR=${TK_INCLUDE_SPEC#*-I}
5171
5172 if test "$TCL_VERSION" = "7.6" -a "$TK_VERSION" = "4.2" ; then
5173 :
5174 elif test "$TCL_VERSION" = "7.5" -a "$TK_VERSION" = "4.1" ; then
5175 :
5176 elif test "$TCL_VERSION" = "$TK_VERSION" ; then
5177 :
5178 else
5179 echo "Mismatched Tcl/Tk versions ($TCL_VERSION != $TK_VERSION)"
5180 echo "Reverting to non-Tcl compile"
5181 usingTcl=
5182 fi
5183 fi
5184
5185 if test $usingTcl ; then
5186 if test "x${irsim_with_tcl_includes}" != "x" ; then
5187 if test -r "${irsim_with_tcl_includes}/tcl.h" ; then
5188 TCL_INC_DIR=${irsim_with_tcl_includes}
5189 else
5190 echo "Can't find tcl.h in \"${irsim_with_tcl_includes}\""
5191 echo "Reverting to non-Tcl compile"
5192 usingTcl=
5193 fi
5194 else
5195 for dir in \
5196 ${TCL_PREFIX}/include/tcl${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION} \
5197 ${TCL_PREFIX}/include \
5198 ${TCL_SRC_DIR}/generic \
5199 ${TCL_INC_DIR}
5200 do
5201 if test -r "$dir/tcl.h" ; then
5202 TCL_INC_DIR=$dir
5203 break
5204 fi
5205 done
5206 if test "x${TCL_INC_DIR}" = "x" ; then
5207 echo "Can't find tcl.h header file"
5208 echo "Reverting to non-Tcl compile"
5209 usingTcl=
5210 fi
5211 fi
5212 fi
5213
5214 if test $usingTcl ; then
5215 if test "x${irsim_with_tk_includes}" != "x" ; then
5216 if test -r "${irsim_with_tk_includes}/tk.h" ; then
5217 TK_INC_DIR=${irsim_with_tk_includes}
5218 else
5219 echo "Can't find tk.h in \"${irsim_with_tk_includes}\""
5220 echo "Reverting to non-Tcl compile"
5221 usingTcl=
5222 fi
5223 else
5224 for dir in \
5225 ${TK_PREFIX}/include/tk${TK_MAJOR_VERSION}.${TK_MINOR_VERSION} \
5226 ${TK_PREFIX}/include \
5227 ${TK_SRC_DIR}/generic \
5228 ${TK_INC_DIR} \
5229 ${TCL_INC_DIR}
5230 do
5231 if test -r "$dir/tk.h" ; then
5232 TK_INC_DIR=$dir
5233 break
5234 fi
5235 done
5236 if test "x${TK_INC_DIR}" = "x" ; then
5237 echo "Can't find tk.h header file"
5238 echo "Reverting to non-Tcl compile"
5239 usingTcl=
5240 fi
5241 fi
5242 fi
5243
5244 if test $usingTcl ; then
5245 case $target in
5246 *-sunos4*|*-*-netbsd*|NetBSD-*|FreeBSD-*|OpenBSD-*)
5247 TCL_LIB_NAME="tcl${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}"
5248 TK_LIB_NAME="tk${TK_MAJOR_VERSION}${TK_MINOR_VERSION}"
5249 ;;
5250 *)
5251 TCL_LIB_NAME="tcl${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}"
5252 TK_LIB_NAME="tk${TK_MAJOR_VERSION}.${TK_MINOR_VERSION}"
5253 ;;
5254 esac
5255
5256 loclib=`echo ${TCL_LIB_SPEC} | sed -e 's/.*-L//' -e 's/ .*//'`
5257
5258 if test "x${TCL_LIB_SPEC}" = "x" ; then
5259 TCL_LIB_SPEC="-l${TCL_LIB_NAME}"
5260 fi
5261 if test "x${TK_LIB_SPEC}" = "x" ; then
5262 TK_LIB_SPEC="-l${TK_LIB_NAME}"
5263 fi
5264
5265 # Find the version of "wish" that corresponds to TCL_EXEC_PREFIX
5266 # We really ought to run "ldd" to confirm that the linked libraries match.
5267
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wish executable" >&5
5269 $as_echo_n "checking for wish executable... " >&6; }
5270 for dir in \
5271 ${TK_EXEC_PREFIX}/bin \
5272 ${TK_EXEC_PREFIX}
5273 do
5274 for wishexe in \
5275 wish \
5276 wish${TK_VERSION} \
5277 wish.exe \
5278 wish${TK_VERSION}.exe
5279 do
5280 if test -r "$dir/$wishexe" ; then
5281 WISH_EXE=$dir/$wishexe
5282 break
5283 fi
5284 done
5285 if test "x${WISH_EXE}" != "x" ; then
5286 break
5287 fi
5288 done
5289 if test "x${WISH_EXE}" = "x" ; then
5290 echo "Warning: Can't find executable for \"wish\". You may have to"
5291 echo "manually set the value for WISH_EXE in the netgen startup script."
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5293 $as_echo "no" >&6; }
5294 else
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WISH_EXE}" >&5
5296 $as_echo "${WISH_EXE}" >&6; }
5297 fi
5298
5299 # Have to define SHDLIB_EXT here even though we have to do it below, too.
5300 case $target in
5301 *-hpux*)
5302 SHDLIB_EXT=".sl"
5303 SHDLIB_EXT_ALT=".sl"
5304 ;;
5305 *cygwin*)
5306 SHDLIB_EXT=".dll"
5307 SHDLIB_EXT_ALT=".dll.a"
5308 ;;
5309 *darwin*)
5310 SHDLIB_EXT=".dylib"
5311 SHDLIB_EXT_ALT=".dylib"
5312 ;;
5313 *)
5314 SHDLIB_EXT=".so"
5315 SHDLIB_EXT_ALT=".so"
5316 ;;
5317 esac
5318
5319 if test "x${irsim_with_tcl_libraries}" != "x" ; then
5320 for libname in \
5321 "${irsim_with_tcl_libraries}/${TCL_LIB_FILE}" \
5322 "${irsim_with_tcl_libraries}/lib${TCL_LIB_NAME}${SHDLIB_EXT}" \
5323 "${irsim_with_tcl_libraries}/lib${TCL_LIB_NAME}${SHDLIB_EXT_ALT}"
5324 do
5325 if test -r "$libname" ; then
5326 TCL_LIB_DIR="${irsim_with_tcl_libraries}"
5327 break
5328 fi
5329 done
5330
5331 if test "x${TCL_LIB_DIR}" = "x" ; then
5332 echo "Can't find tcl library in \"${irsim_with_tcl_libraries}\""
5333 echo "Reverting to non-Tcl compile"
5334 usingTcl=
5335 fi
5336 else
5337 for libname in \
5338 "${loclib:=${TCL_EXEC_PREFIX}/lib}/lib${TCL_LIB_NAME}${SHDLIB_EXT}" \
5339 "${loclib:=${TCL_EXEC_PREFIX}/lib}/lib${TCL_LIB_NAME}${SHDLIB_EXT_ALT}"
5340 do
5341 if test -r "$libname" ; then
5342 TCL_LIB_DIR="${TCL_EXEC_PREFIX}/lib"
5343 break
5344 fi
5345 done
5346 if test "x${TCL_LIB_DIR}" = "x" ; then
5347 echo "Can't find tcl library"
5348 echo "Reverting to non-Tcl compile"
5349 usingTcl=
5350 fi
5351 fi
5352 fi
5353
5354 if test $usingTcl ; then
5355 if test "x${irsim_with_tk_libraries}" != "x" ; then
5356 for libname in \
5357 "${irsim_with_tk_libraries}/{TCL_LIB_FILE}" \
5358 "${irsim_with_tk_libraries}/lib${TK_LIB_NAME}${SHDLIB_EXT}" \
5359 "${irsim_with_tk_libraries}/lib${TK_LIB_NAME}${SHDLIB_EXT_ALT}"
5360 do
5361 if test -r "$libname" ; then
5362 TK_LIB_DIR="${irsim_with_tk_libraries}"
5363 break
5364 fi
5365 done
5366 if test "x${TK_LIB_DIR}" = "x" ; then
5367 echo "Can't find tk library in \"${irsim_with_tk_libraries}\""
5368 echo "Reverting to non-Tcl compile"
5369 usingTcl=
5370 fi
5371 else
5372 for libname in \
5373 "${loclib:=${TK_EXEC_PREFIX}/lib}/lib${TK_LIB_NAME}${SHDLIB_EXT}" \
5374 "${loclib:=${TK_EXEC_PREFIX}/lib}/lib${TK_LIB_NAME}${SHDLIB_EXT_ALT}"
5375 do
5376 if test -r "$libname" ; then
5377 TK_LIB_DIR="${TK_EXEC_PREFIX}/lib"
5378 break
5379 fi
5380 done
5381 if test "x${TK_LIB_DIR}" = "x" ; then
5382 echo "Can't find tk library"
5383 echo "Reverting to non-Tcl compile"
5384 usingTcl=
5385 fi
5386 fi
5387 fi
5388
5389
5390 # Check whether --enable-faultsim was given.
5391 if test "${enable_faultsim+set}" = set; then :
5392 enableval=$enable_faultsim;
5393 other_srcs="$other_srcs incstub.c"
5394
5395 else
5396
5397 modules="$modules faultsim"
5398 extra_libs="$extra_libs \${IRSIMDIR}/faultsim/libfaultsim.o"
5399 $as_echo "#define FAULT_SIM 1" >>confdefs.h
5400
5401
5402 fi
5403
5404
5405 # Check whether --enable-powerest was given.
5406 if test "${enable_powerest+set}" = set; then :
5407 enableval=$enable_powerest;
5408 else
5409
5410 $as_echo "#define POWER_EST 1" >>confdefs.h
5411
5412
5413 fi
5414
5415
5416 # Check whether --enable-usersubckt was given.
5417 if test "${enable_usersubckt+set}" = set; then :
5418 enableval=$enable_usersubckt;
5419 else
5420
5421 modules="$modules usersubckt"
5422 extra_libs="$extra_libs \${IRSIMDIR}/usersubckt/libusersubckt.o"
5423 $as_echo "#define USER_SUBCKT 1" >>confdefs.h
5424
5425
5426 fi
5427
5428
5429 # Check whether --enable-stat was given.
5430 if test "${enable_stat+set}" = set; then :
5431 enableval=$enable_stat;
5432 else
5433
5434 $as_echo "#define STATS 1" >>confdefs.h
5435
5436
5437 fi
5438
5439
5440 # Check whether --enable-clstat was given.
5441 if test "${enable_clstat+set}" = set; then :
5442 enableval=$enable_clstat;
5443 else
5444
5445 $as_echo "#define CL_STATS 1" >>confdefs.h
5446
5447
5448 fi
5449
5450
5451 # Check whether --enable-random was given.
5452 if test "${enable_random+set}" = set; then :
5453 enableval=$enable_random;
5454 else
5455
5456 programs="$programs random"
5457 $as_echo "#define RANDOM 1" >>confdefs.h
5458
5459
5460 fi
5461
5462
5463 # Check whether --enable-tclsubckt was given.
5464 if test "${enable_tclsubckt+set}" = set; then :
5465 enableval=$enable_tclsubckt;
5466 else
5467
5468 if test $usingTcl ; then
5469 programs="$programs tclsubckt"
5470 $as_echo "#define TCLSUBCKT 1" >>confdefs.h
5471
5472 fi
5473
5474 fi
5475
5476
5477 # Check whether --enable-memdebug was given.
5478 if test "${enable_memdebug+set}" = set; then :
5479 enableval=$enable_memdebug;
5480 if test "x$irsim_with_tcl" = "x" ; then
5481 LIBS="${LIBS} -lefence"
5482 else
5483 $as_echo "#define TCL_MEM_DEBUG 1" >>confdefs.h
5484
5485 fi
5486
5487 fi
5488
5489
5490 # Check whether --enable-threads was given.
5491 if test "${enable_threads+set}" = set; then :
5492 enableval=$enable_threads;
5493 else
5494
5495 if ! test $usingTcl ; then
5496 usingThreads=1
5497 $as_echo "#define HAVE_PTHREADS 1" >>confdefs.h
5498
5499 gr_libs="$gr_libs -lpthread"
5500 gr_srcs="$gr_srcs thread.c"
5501 gr_hsrcs=""
5502 gr_hprog=""
5503 fi
5504
5505 fi
5506
5507
5508
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
5510 $as_echo_n "checking for X... " >&6; }
5511
5512
5513 # Check whether --with-x was given.
5514 if test "${with_x+set}" = set; then :
5515 withval=$with_x;
5516 fi
5517
5518 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5519 if test "x$with_x" = xno; then
5520 # The user explicitly disabled X.
5521 have_x=disabled
5522 else
5523 case $x_includes,$x_libraries in #(
5524 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
5525 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
5526 $as_echo_n "(cached) " >&6
5527 else
5528 # One or both of the vars are not set, and there is no cached value.
5529 ac_x_includes=no ac_x_libraries=no
5530 rm -f -r conftest.dir
5531 if mkdir conftest.dir; then
5532 cd conftest.dir
5533 cat >Imakefile <<'_ACEOF'
5534 incroot:
5535 @echo incroot='${INCROOT}'
5536 usrlibdir:
5537 @echo usrlibdir='${USRLIBDIR}'
5538 libdir:
5539 @echo libdir='${LIBDIR}'
5540 _ACEOF
5541 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
5542 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5543 for ac_var in incroot usrlibdir libdir; do
5544 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5545 done
5546 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5547 for ac_extension in a so sl dylib la dll; do
5548 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5549 test -f "$ac_im_libdir/libX11.$ac_extension"; then
5550 ac_im_usrlibdir=$ac_im_libdir; break
5551 fi
5552 done
5553 # Screen out bogus values from the imake configuration. They are
5554 # bogus both because they are the default anyway, and because
5555 # using them would break gcc on systems where it needs fixed includes.
5556 case $ac_im_incroot in
5557 /usr/include) ac_x_includes= ;;
5558 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5559 esac
5560 case $ac_im_usrlibdir in
5561 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
5562 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5563 esac
5564 fi
5565 cd ..
5566 rm -f -r conftest.dir
5567 fi
5568
5569 # Standard set of common directories for X headers.
5570 # Check X11 before X11Rn because it is often a symlink to the current release.
5571 ac_x_header_dirs='
5572 /usr/X11/include
5573 /usr/X11R7/include
5574 /usr/X11R6/include
5575 /usr/X11R5/include
5576 /usr/X11R4/include
5577
5578 /usr/include/X11
5579 /usr/include/X11R7
5580 /usr/include/X11R6
5581 /usr/include/X11R5
5582 /usr/include/X11R4
5583
5584 /usr/local/X11/include
5585 /usr/local/X11R7/include
5586 /usr/local/X11R6/include
5587 /usr/local/X11R5/include
5588 /usr/local/X11R4/include
5589
5590 /usr/local/include/X11
5591 /usr/local/include/X11R7
5592 /usr/local/include/X11R6
5593 /usr/local/include/X11R5
5594 /usr/local/include/X11R4
5595
5596 /usr/X386/include
5597 /usr/x386/include
5598 /usr/XFree86/include/X11
5599
5600 /usr/include
5601 /usr/local/include
5602 /usr/unsupported/include
5603 /usr/athena/include
5604 /usr/local/x11r5/include
5605 /usr/lpp/Xamples/include
5606
5607 /usr/openwin/include
5608 /usr/openwin/share/include'
5609
5610 if test "$ac_x_includes" = no; then
5611 # Guess where to find include files, by looking for Xlib.h.
5612 # First, try using that file with no special directory specified.
5613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5614 /* end confdefs.h. */
5615 #include <X11/Xlib.h>
5616 _ACEOF
5617 if ac_fn_c_try_cpp "$LINENO"; then :
5618 # We can compile using X headers with no special include directory.
5619 ac_x_includes=
5620 else
5621 for ac_dir in $ac_x_header_dirs; do
5622 if test -r "$ac_dir/X11/Xlib.h"; then
5623 ac_x_includes=$ac_dir
5624 break
5625 fi
5626 done
5627 fi
5628 rm -f conftest.err conftest.i conftest.$ac_ext
5629 fi # $ac_x_includes = no
5630
5631 if test "$ac_x_libraries" = no; then
5632 # Check for the libraries.
5633 # See if we find them without any special options.
5634 # Don't add to $LIBS permanently.
5635 ac_save_LIBS=$LIBS
5636 LIBS="-lX11 $LIBS"
5637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5638 /* end confdefs.h. */
5639 #include <X11/Xlib.h>
5640 int
5641 main ()
5642 {
5643 XrmInitialize ()
5644 ;
5645 return 0;
5646 }
5647 _ACEOF
5648 if ac_fn_c_try_link "$LINENO"; then :
5649 LIBS=$ac_save_LIBS
5650 # We can link X programs with no special library path.
5651 ac_x_libraries=
5652 else
5653 LIBS=$ac_save_LIBS
5654 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5655 do
5656 # Don't even attempt the hair of trying to link an X program!
5657 for ac_extension in a so sl dylib la dll; do
5658 if test -r "$ac_dir/libX11.$ac_extension"; then
5659 ac_x_libraries=$ac_dir
5660 break 2
5661 fi
5662 done
5663 done
5664 fi
5665 rm -f core conftest.err conftest.$ac_objext \
5666 conftest$ac_exeext conftest.$ac_ext
5667 fi # $ac_x_libraries = no
5668
5669 case $ac_x_includes,$ac_x_libraries in #(
5670 no,* | *,no | *\'*)
5671 # Didn't find X, or a directory has "'" in its name.
5672 ac_cv_have_x="have_x=no";; #(
5673 *)
5674 # Record where we found X for the cache.
5675 ac_cv_have_x="have_x=yes\
5676 ac_x_includes='$ac_x_includes'\
5677 ac_x_libraries='$ac_x_libraries'"
5678 esac
5679 fi
5680 ;; #(
5681 *) have_x=yes;;
5682 esac
5683 eval "$ac_cv_have_x"
5684 fi # $with_x != no
5685
5686 if test "$have_x" != yes; then
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
5688 $as_echo "$have_x" >&6; }
5689 no_x=yes
5690 else
5691 # If each of the values was on the command line, it overrides each guess.
5692 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5693 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5694 # Update the cache value to reflect the command line values.
5695 ac_cv_have_x="have_x=yes\
5696 ac_x_includes='$x_includes'\
5697 ac_x_libraries='$x_libraries'"
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
5699 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
5700 fi
5701
5702 if test "$no_x" = yes; then
5703 # Not all programs may use this symbol, but it does not hurt to define it.
5704
5705 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
5706
5707 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5708 else
5709 if test -n "$x_includes"; then
5710 X_CFLAGS="$X_CFLAGS -I$x_includes"
5711 fi
5712
5713 # It would also be nice to do this for all -L options, not just this one.
5714 if test -n "$x_libraries"; then
5715 X_LIBS="$X_LIBS -L$x_libraries"
5716 # For Solaris; some versions of Sun CC require a space after -R and
5717 # others require no space. Words are not sufficient . . . .
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
5719 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
5720 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5721 ac_xsave_c_werror_flag=$ac_c_werror_flag
5722 ac_c_werror_flag=yes
5723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5724 /* end confdefs.h. */
5725
5726 int
5727 main ()
5728 {
5729
5730 ;
5731 return 0;
5732 }
5733 _ACEOF
5734 if ac_fn_c_try_link "$LINENO"; then :
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5736 $as_echo "no" >&6; }
5737 X_LIBS="$X_LIBS -R$x_libraries"
5738 else
5739 LIBS="$ac_xsave_LIBS -R $x_libraries"
5740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5741 /* end confdefs.h. */
5742
5743 int
5744 main ()
5745 {
5746
5747 ;
5748 return 0;
5749 }
5750 _ACEOF
5751 if ac_fn_c_try_link "$LINENO"; then :
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5753 $as_echo "yes" >&6; }
5754 X_LIBS="$X_LIBS -R $x_libraries"
5755 else
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
5757 $as_echo "neither works" >&6; }
5758 fi
5759 rm -f core conftest.err conftest.$ac_objext \
5760 conftest$ac_exeext conftest.$ac_ext
5761 fi
5762 rm -f core conftest.err conftest.$ac_objext \
5763 conftest$ac_exeext conftest.$ac_ext
5764 ac_c_werror_flag=$ac_xsave_c_werror_flag
5765 LIBS=$ac_xsave_LIBS
5766 fi
5767
5768 # Check for system-dependent libraries X programs must link with.
5769 # Do this before checking for the system-independent R6 libraries
5770 # (-lICE), since we may need -lsocket or whatever for X linking.
5771
5772 if test "$ISC" = yes; then
5773 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5774 else
5775 # Martyn Johnson says this is needed for Ultrix, if the X
5776 # libraries were built with DECnet support. And Karl Berry says
5777 # the Alpha needs dnet_stub (dnet does not exist).
5778 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5780 /* end confdefs.h. */
5781
5782 /* Override any GCC internal prototype to avoid an error.
5783 Use char because int might match the return type of a GCC
5784 builtin and then its argument prototype would still apply. */
5785 #ifdef __cplusplus
5786 extern "C"
5787 #endif
5788 char XOpenDisplay ();
5789 int
5790 main ()
5791 {
5792 return XOpenDisplay ();
5793 ;
5794 return 0;
5795 }
5796 _ACEOF
5797 if ac_fn_c_try_link "$LINENO"; then :
5798
5799 else
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
5801 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
5802 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
5803 $as_echo_n "(cached) " >&6
5804 else
5805 ac_check_lib_save_LIBS=$LIBS
5806 LIBS="-ldnet $LIBS"
5807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5808 /* end confdefs.h. */
5809
5810 /* Override any GCC internal prototype to avoid an error.
5811 Use char because int might match the return type of a GCC
5812 builtin and then its argument prototype would still apply. */
5813 #ifdef __cplusplus
5814 extern "C"
5815 #endif
5816 char dnet_ntoa ();
5817 int
5818 main ()
5819 {
5820 return dnet_ntoa ();
5821 ;
5822 return 0;
5823 }
5824 _ACEOF
5825 if ac_fn_c_try_link "$LINENO"; then :
5826 ac_cv_lib_dnet_dnet_ntoa=yes
5827 else
5828 ac_cv_lib_dnet_dnet_ntoa=no
5829 fi
5830 rm -f core conftest.err conftest.$ac_objext \
5831 conftest$ac_exeext conftest.$ac_ext
5832 LIBS=$ac_check_lib_save_LIBS
5833 fi
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5835 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
5836 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
5837 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5838 fi
5839
5840 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
5842 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
5843 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
5844 $as_echo_n "(cached) " >&6
5845 else
5846 ac_check_lib_save_LIBS=$LIBS
5847 LIBS="-ldnet_stub $LIBS"
5848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5849 /* end confdefs.h. */
5850
5851 /* Override any GCC internal prototype to avoid an error.
5852 Use char because int might match the return type of a GCC
5853 builtin and then its argument prototype would still apply. */
5854 #ifdef __cplusplus
5855 extern "C"
5856 #endif
5857 char dnet_ntoa ();
5858 int
5859 main ()
5860 {
5861 return dnet_ntoa ();
5862 ;
5863 return 0;
5864 }
5865 _ACEOF
5866 if ac_fn_c_try_link "$LINENO"; then :
5867 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5868 else
5869 ac_cv_lib_dnet_stub_dnet_ntoa=no
5870 fi
5871 rm -f core conftest.err conftest.$ac_objext \
5872 conftest$ac_exeext conftest.$ac_ext
5873 LIBS=$ac_check_lib_save_LIBS
5874 fi
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5876 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5877 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
5878 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5879 fi
5880
5881 fi
5882 fi
5883 rm -f core conftest.err conftest.$ac_objext \
5884 conftest$ac_exeext conftest.$ac_ext
5885 LIBS="$ac_xsave_LIBS"
5886
5887 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
5888 # to get the SysV transport functions.
5889 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5890 # needs -lnsl.
5891 # The nsl library prevents programs from opening the X display
5892 # on Irix 5.2, according to T.E. Dickey.
5893 # The functions gethostbyname, getservbyname, and inet_addr are
5894 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5895 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
5896 if test "x$ac_cv_func_gethostbyname" = xyes; then :
5897
5898 fi
5899
5900 if test $ac_cv_func_gethostbyname = no; then
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
5902 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
5903 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
5904 $as_echo_n "(cached) " >&6
5905 else
5906 ac_check_lib_save_LIBS=$LIBS
5907 LIBS="-lnsl $LIBS"
5908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5909 /* end confdefs.h. */
5910
5911 /* Override any GCC internal prototype to avoid an error.
5912 Use char because int might match the return type of a GCC
5913 builtin and then its argument prototype would still apply. */
5914 #ifdef __cplusplus
5915 extern "C"
5916 #endif
5917 char gethostbyname ();
5918 int
5919 main ()
5920 {
5921 return gethostbyname ();
5922 ;
5923 return 0;
5924 }
5925 _ACEOF
5926 if ac_fn_c_try_link "$LINENO"; then :
5927 ac_cv_lib_nsl_gethostbyname=yes
5928 else
5929 ac_cv_lib_nsl_gethostbyname=no
5930 fi
5931 rm -f core conftest.err conftest.$ac_objext \
5932 conftest$ac_exeext conftest.$ac_ext
5933 LIBS=$ac_check_lib_save_LIBS
5934 fi
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
5936 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
5937 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
5938 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5939 fi
5940
5941 if test $ac_cv_lib_nsl_gethostbyname = no; then
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
5943 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
5944 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
5945 $as_echo_n "(cached) " >&6
5946 else
5947 ac_check_lib_save_LIBS=$LIBS
5948 LIBS="-lbsd $LIBS"
5949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5950 /* end confdefs.h. */
5951
5952 /* Override any GCC internal prototype to avoid an error.
5953 Use char because int might match the return type of a GCC
5954 builtin and then its argument prototype would still apply. */
5955 #ifdef __cplusplus
5956 extern "C"
5957 #endif
5958 char gethostbyname ();
5959 int
5960 main ()
5961 {
5962 return gethostbyname ();
5963 ;
5964 return 0;
5965 }
5966 _ACEOF
5967 if ac_fn_c_try_link "$LINENO"; then :
5968 ac_cv_lib_bsd_gethostbyname=yes
5969 else
5970 ac_cv_lib_bsd_gethostbyname=no
5971 fi
5972 rm -f core conftest.err conftest.$ac_objext \
5973 conftest$ac_exeext conftest.$ac_ext
5974 LIBS=$ac_check_lib_save_LIBS
5975 fi
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
5977 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
5978 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
5979 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5980 fi
5981
5982 fi
5983 fi
5984
5985 # [email protected] says without -lsocket,
5986 # socket/setsockopt and other routines are undefined under SCO ODT
5987 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5988 # on later versions), says Simon Leinen: it contains gethostby*
5989 # variants that don't use the name server (or something). -lsocket
5990 # must be given before -lnsl if both are needed. We assume that
5991 # if connect needs -lnsl, so does gethostbyname.
5992 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
5993 if test "x$ac_cv_func_connect" = xyes; then :
5994
5995 fi
5996
5997 if test $ac_cv_func_connect = no; then
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
5999 $as_echo_n "checking for connect in -lsocket... " >&6; }
6000 if ${ac_cv_lib_socket_connect+:} false; then :
6001 $as_echo_n "(cached) " >&6
6002 else
6003 ac_check_lib_save_LIBS=$LIBS
6004 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6006 /* end confdefs.h. */
6007
6008 /* Override any GCC internal prototype to avoid an error.
6009 Use char because int might match the return type of a GCC
6010 builtin and then its argument prototype would still apply. */
6011 #ifdef __cplusplus
6012 extern "C"
6013 #endif
6014 char connect ();
6015 int
6016 main ()
6017 {
6018 return connect ();
6019 ;
6020 return 0;
6021 }
6022 _ACEOF
6023 if ac_fn_c_try_link "$LINENO"; then :
6024 ac_cv_lib_socket_connect=yes
6025 else
6026 ac_cv_lib_socket_connect=no
6027 fi
6028 rm -f core conftest.err conftest.$ac_objext \
6029 conftest$ac_exeext conftest.$ac_ext
6030 LIBS=$ac_check_lib_save_LIBS
6031 fi
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
6033 $as_echo "$ac_cv_lib_socket_connect" >&6; }
6034 if test "x$ac_cv_lib_socket_connect" = xyes; then :
6035 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6036 fi
6037
6038 fi
6039
6040 # Guillermo Gomez says -lposix is necessary on A/UX.
6041 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
6042 if test "x$ac_cv_func_remove" = xyes; then :
6043
6044 fi
6045
6046 if test $ac_cv_func_remove = no; then
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
6048 $as_echo_n "checking for remove in -lposix... " >&6; }
6049 if ${ac_cv_lib_posix_remove+:} false; then :
6050 $as_echo_n "(cached) " >&6
6051 else
6052 ac_check_lib_save_LIBS=$LIBS
6053 LIBS="-lposix $LIBS"
6054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6055 /* end confdefs.h. */
6056
6057 /* Override any GCC internal prototype to avoid an error.
6058 Use char because int might match the return type of a GCC
6059 builtin and then its argument prototype would still apply. */
6060 #ifdef __cplusplus
6061 extern "C"
6062 #endif
6063 char remove ();
6064 int
6065 main ()
6066 {
6067 return remove ();
6068 ;
6069 return 0;
6070 }
6071 _ACEOF
6072 if ac_fn_c_try_link "$LINENO"; then :
6073 ac_cv_lib_posix_remove=yes
6074 else
6075 ac_cv_lib_posix_remove=no
6076 fi
6077 rm -f core conftest.err conftest.$ac_objext \
6078 conftest$ac_exeext conftest.$ac_ext
6079 LIBS=$ac_check_lib_save_LIBS
6080 fi
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
6082 $as_echo "$ac_cv_lib_posix_remove" >&6; }
6083 if test "x$ac_cv_lib_posix_remove" = xyes; then :
6084 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6085 fi
6086
6087 fi
6088
6089 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6090 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
6091 if test "x$ac_cv_func_shmat" = xyes; then :
6092
6093 fi
6094
6095 if test $ac_cv_func_shmat = no; then
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
6097 $as_echo_n "checking for shmat in -lipc... " >&6; }
6098 if ${ac_cv_lib_ipc_shmat+:} false; then :
6099 $as_echo_n "(cached) " >&6
6100 else
6101 ac_check_lib_save_LIBS=$LIBS
6102 LIBS="-lipc $LIBS"
6103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6104 /* end confdefs.h. */
6105
6106 /* Override any GCC internal prototype to avoid an error.
6107 Use char because int might match the return type of a GCC
6108 builtin and then its argument prototype would still apply. */
6109 #ifdef __cplusplus
6110 extern "C"
6111 #endif
6112 char shmat ();
6113 int
6114 main ()
6115 {
6116 return shmat ();
6117 ;
6118 return 0;
6119 }
6120 _ACEOF
6121 if ac_fn_c_try_link "$LINENO"; then :
6122 ac_cv_lib_ipc_shmat=yes
6123 else
6124 ac_cv_lib_ipc_shmat=no
6125 fi
6126 rm -f core conftest.err conftest.$ac_objext \
6127 conftest$ac_exeext conftest.$ac_ext
6128 LIBS=$ac_check_lib_save_LIBS
6129 fi
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
6131 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
6132 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
6133 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6134 fi
6135
6136 fi
6137 fi
6138
6139 # Check for libraries that X11R6 Xt/Xaw programs need.
6140 ac_save_LDFLAGS=$LDFLAGS
6141 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6142 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6143 # check for ICE first), but we must link in the order -lSM -lICE or
6144 # we get undefined symbols. So assume we have SM if we have ICE.
6145 # These have to be linked with before -lX11, unlike the other
6146 # libraries we check for below, so use a different variable.
6147 # John Interrante, Karl Berry
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
6149 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
6150 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
6151 $as_echo_n "(cached) " >&6
6152 else
6153 ac_check_lib_save_LIBS=$LIBS
6154 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6156 /* end confdefs.h. */
6157
6158 /* Override any GCC internal prototype to avoid an error.
6159 Use char because int might match the return type of a GCC
6160 builtin and then its argument prototype would still apply. */
6161 #ifdef __cplusplus
6162 extern "C"
6163 #endif
6164 char IceConnectionNumber ();
6165 int
6166 main ()
6167 {
6168 return IceConnectionNumber ();
6169 ;
6170 return 0;
6171 }
6172 _ACEOF
6173 if ac_fn_c_try_link "$LINENO"; then :
6174 ac_cv_lib_ICE_IceConnectionNumber=yes
6175 else
6176 ac_cv_lib_ICE_IceConnectionNumber=no
6177 fi
6178 rm -f core conftest.err conftest.$ac_objext \
6179 conftest$ac_exeext conftest.$ac_ext
6180 LIBS=$ac_check_lib_save_LIBS
6181 fi
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6183 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
6184 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
6185 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6186 fi
6187
6188 LDFLAGS=$ac_save_LDFLAGS
6189
6190 fi
6191
6192 if test "x$no_x" = "x"; then
6193 usingX11=1
6194 else
6195 echo Cannot find X11---will attempt to compile anyway.
6196 echo Graphics options will be NULL only!
6197 if test $usingTcl ; then
6198 echo "Cannot compile TCL version without X11, disabling."
6199 usingTcl=
6200 fi
6201 fi
6202
6203
6204 if test $usingTcl ; then
6205 cadinstall="$cadinstall tcltk"
6206 modules="$modules tcltk"
6207 programs="$programs tcltk"
6208 ALL_TARGET="tcl"
6209 INSTALL_TARGET="install-tcl"
6210 $as_echo "#define TCL_IRSIM 1" >>confdefs.h
6211
6212 extra_libs="$extra_libs \${IRSIMDIR}/tcltk/libtcltk.o"
6213 extra_defs="$extra_defs -DTCL_DIR=\\\"\${TCLDIR}\\\""
6214 else
6215 programs="$programs irsim"
6216 unused="$unused tcltk"
6217 fi
6218
6219
6220 if test $usingTcl ; then
6221 if test $usingX11 ; then
6222 gr_dflags="$gr_dflags -DX11 -DXLIB"
6223 gr_libs="$gr_libs -lX11"
6224 gr_srcs="$gr_srcs \${TK_SRCS}"
6225 else
6226 gr_srcs="$gr_srcs \${NULL_SRCS}"
6227 fi
6228 else
6229 if test $usingX11 ; then
6230 gr_dflags="$gr_dflags -DX11 -DXLIB"
6231 gr_libs="$gr_libs -lX11"
6232 gr_srcs="$gr_srcs \${X11_SRCS}"
6233 fi
6234 if test $usingX11 ; then
6235 if ! test $usingThreads; then
6236 gr_dflags="$gr_dflags -DX11HELP_PROG=\\\"\${X11HELP_PROG}\\\""
6237 gr_hsrcs="$gr_hsrcs \${X11HELPER_SRCS}"
6238 gr_prog="$gr_hprog \${X11HELP_PROG}"
6239 fi
6240 fi
6241 fi
6242
6243
6244 case $target in
6245 *-linux*)
6246 $as_echo "#define LINUX 1" >>confdefs.h
6247
6248 $as_echo "#define SYSV 1" >>confdefs.h
6249
6250 $as_echo "#define ISC 1" >>confdefs.h
6251
6252 case $target in
6253 *x86_64*)
6254 CFLAGS="${CFLAGS} -m64 -fPIC"
6255 ;;
6256 esac
6257 if test -f /usr/lib/libbsd-compat.a ; then
6258 gr_libs="$gr_libs -lbsd-compat"
6259 elif test -f /usr/lib/libbsd.a ; then
6260 gr_libs="$gr_libs -lbsd"
6261 fi
6262 ;;
6263 *solaris*)
6264 $as_echo "#define SYSV 1" >>confdefs.h
6265
6266 ;;
6267 *irix*)
6268 $as_echo "#define SYSV 1" >>confdefs.h
6269
6270 $as_echo "#define IRIX 1" >>confdefs.h
6271
6272 $as_echo "#define _BSD_SIGNALS 1" >>confdefs.h
6273
6274 ;;
6275 *sysv*)
6276 $as_echo "#define SYSV 1" >>confdefs.h
6277
6278 ;;
6279 *cygwin*)
6280 $as_echo "#define CYGWIN 1" >>confdefs.h
6281
6282 $as_echo "#define i386 1" >>confdefs.h
6283
6284 ;;
6285 *darwin*)
6286 if test "$CPP" = "cc -E" ; then
6287 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
6288 fi
6289 ;;
6290 esac
6291 # -----------------------------------------------------------------------
6292 # Tcl/Tk configuration
6293 # -----------------------------------------------------------------------
6294
6295 if test $usingTcl ; then
6296
6297 # -----------------------------------------------------------------------
6298 #
6299 # Tk libraries and header files
6300 #
6301 # -----------------------------------------------------------------------
6302 if test "${TK_INC_DIR}" != "/usr/include" ; then
6303 INC_SPECS="${INC_SPECS} -I${TK_INC_DIR}"
6304 fi
6305 if test "${TK_LIB_DIR}" = "/usr/lib" -o \
6306 "${TK_LIB_DIR}" = "/usr/lib64" ; then
6307 LIB_SPECS="${LIB_SPECS} ${TK_LIB_SPEC}"
6308 else
6309 LIB_SPECS="${LIB_SPECS} -L${TK_LIB_DIR} ${TK_LIB_SPEC}"
6310 if test "x${loader_run_path}" = "x" ; then
6311 loader_run_path="${TK_LIB_DIR}"
6312 else
6313 loader_run_path="${TK_LIB_DIR}:${loader_run_path}"
6314 fi
6315 fi
6316
6317 # -----------------------------------------------------------------------
6318 #
6319 # Tcl libraries and header files
6320 #
6321 # Add a header file directory specification only if the Tcl headers reside
6322 # in a different directory from Tk's.
6323 #
6324 ## -----------------------------------------------------------------------
6325 if test "${TCL_INC_DIR}" != "/usr/include" -a \
6326 "${TCL_INC_DIR}" != "${TK_INC_DIR}" ; then
6327 INC_SPECS="${INC_SPECS} -I${TCL_INC_DIR}"
6328 fi
6329
6330 if test "${TCL_LIB_DIR}" = "/usr/lib" -o \
6331 "${TCL_LIB_DIR}" = "/usr/lib64" -o \
6332 "${TCL_LIB_DIR}" = "${TK_LIB_DIR}" ; then
6333 LIB_SPECS="${LIB_SPECS} ${TCL_LIB_SPEC}"
6334 else
6335 LIB_SPECS="${LIB_SPECS} -L${TCL_LIB_DIR} ${TCL_LIB_SPEC}"
6336 if test "x${loader_run_path}" = "x" ; then
6337 loader_run_path="${TCL_LIB_DIR}"
6338 else
6339 loader_run_path="${TCL_LIB_DIR}:${loader_run_path}"
6340 fi
6341 fi
6342
6343 #--------------------------------------------------------------------
6344 #
6345 # Check if we can generate shared libraries on this system. Set flags
6346 # to generate shared libraries for systems that we know about. Start
6347 # with the values found in tclConfig.sh, make changes as we know about
6348 # the different systems.
6349 #
6350 #--------------------------------------------------------------------
6351
6352 # Initialize shared library build variables
6353
6354 SHLIB_LD=""
6355 LDDL_FLAGS="-shared"
6356 SHDLIB_EXT=".so"
6357 EXTRA_LIB_SPECS=""
6358
6359 build_shared="yes"
6360
6361 case $target in
6362 *-aix4.[2-9]*)
6363 # No Position-Independent flags needed
6364
6365 # Use the installed export file or the one found in the source directory.
6366
6367 if test -r "${TCL_LIB_DIR}/lib${TCL_LIB_NAME}.exp" ; then
6368 tcl_exp="${TCL_LIB_DIR}/lib${TCL_LIB_NAME}.exp"
6369 else
6370 tcl_exp="${TCL_SRC_DIR}/unix/lib.exp"
6371 fi
6372 if test -r "${TK_LIB_DIR}/lib${TK_LIB_NAME}.exp" ; then
6373 tk_exp="${TK_LIB_DIR}/lib${TK_LIB_NAME}.exp"
6374 else
6375 tk_exp="${TK_SRC_DIR}/unix/lib.exp"
6376 fi
6377
6378 full_src_path=`cd ${srcdir}; pwd`
6379
6380 # Use shell-script to link shared library
6381 LD="${full_src_path}/cf/ldAix /bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry -bI:${tk_exp} -bI:${tcl_exp}"
6382
6383 SHLIB_LIB_SPECS="${aix_lib_specs} -lc"
6384
6385 LDFLAGS="-L${loader_run_path}"
6386 EXTRA_LIB_SPECS="-ldl"
6387 ;;
6388
6389 *-aix*)
6390 # No Position-Independent flags needed
6391
6392 # Use the installed export file or the one found in the source directory.
6393
6394 if test -r "${TCL_LIB_DIR}/lib${TCL_LIB_NAME}.exp" ; then
6395 tcl_exp="${TCL_LIB_DIR}/lib${TCL_LIB_NAME}.exp"
6396 else
6397 tcl_exp="${TCL_SRC_DIR}/unix/lib.exp"
6398 fi
6399 if test -r "${TK_LIB_DIR}/lib${TK_LIB_NAME}.exp" ; then
6400 tk_exp="${TK_LIB_DIR}/lib${TK_LIB_NAME}.exp"
6401 else
6402 tk_exp="${TK_SRC_DIR}/unix/lib.exp"
6403 fi
6404
6405 full_src_path=`cd ${srcdir}/cf; pwd`
6406
6407 # Use shell-script to link shared library
6408
6409 LD="${full_src_path}/ldAix /bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry -bI:${tk_exp} -bI:${tcl_exp}"
6410 SHLIB_LIB_SPECS="${aix_lib_specs} -lc"
6411 LDFLAGS="-L${loader_run_path}"
6412 EXTRA_LIB_SPECS="-lld"
6413 ;;
6414
6415 *-bsdi2*|*-bsdi3*)
6416 LD="shlicc"
6417 LDDL_FLAGS="-r"
6418 EXTRA_LIB_SPECS="-ldl"
6419 ;;
6420
6421 *darwin*)
6422 SHDLIB_EXT=".dylib"
6423 LDDL_FLAGS="-dynamiclib -flat_namespace -undefined suppress -noprebind"
6424 LDFLAGS="${LDFLAGS} ${LIB_SPECS}"
6425 CFLAGS="${CFLAGS} ${X_CFLAGS} ${INC_SPECS} -I/sw/include -fno-common"
6426 ;;
6427
6428 *cygwin*)
6429 SHDLIB_EXT=".dll"
6430 $as_echo "#define USE_DL_IMPORT 1" >>confdefs.h
6431
6432 LDDL_FLAGS='-shared -Wl,--enable-auto-image-base'
6433 if test "x${loader_run_path}" != "x" ; then
6434 LD_RUN_PATH="${LD_RUN_PATH} -Wl,-rpath,${loader_run_path}"
6435 fi
6436 ld_extra_libs=${LIB_SPECS}
6437 sub_extra_libs='-L${IRSIMDIR}/irsim -ltclirsim'
6438 ;;
6439
6440 *-bsdi4*)
6441 SHLIB_CFLAGS="-export-dynamic -fPIC"
6442 LDDL_FLAGS='-shared -Wl,-E -Wl,-soname,$@'
6443 ;;
6444
6445 *-dgux*)
6446 SHLIB_CFLAGS="-K PIC"
6447 LDDL_FLAGS="-G"
6448 EXTRA_LIB_SPECS="-ldl"
6449 ;;
6450
6451 *-hpux*)
6452 if test "$GCC" = "no" ; then
6453 $as_echo "#define _HPUX_SOURCE 1" >>confdefs.h
6454
6455 fi
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
6457 $as_echo_n "checking for shl_load in -ldld... " >&6; }
6458 if ${ac_cv_lib_dld_shl_load+:} false; then :
6459 $as_echo_n "(cached) " >&6
6460 else
6461 ac_check_lib_save_LIBS=$LIBS
6462 LIBS="-ldld $LIBS"
6463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6464 /* end confdefs.h. */
6465
6466 /* Override any GCC internal prototype to avoid an error.
6467 Use char because int might match the return type of a GCC
6468 builtin and then its argument prototype would still apply. */
6469 #ifdef __cplusplus
6470 extern "C"
6471 #endif
6472 char shl_load ();
6473 int
6474 main ()
6475 {
6476 return shl_load ();
6477 ;
6478 return 0;
6479 }
6480 _ACEOF
6481 if ac_fn_c_try_link "$LINENO"; then :
6482 ac_cv_lib_dld_shl_load=yes
6483 else
6484 ac_cv_lib_dld_shl_load=no
6485 fi
6486 rm -f core conftest.err conftest.$ac_objext \
6487 conftest$ac_exeext conftest.$ac_ext
6488 LIBS=$ac_check_lib_save_LIBS
6489 fi
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
6491 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
6492 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
6493 found=yes
6494 else
6495 found=no
6496 fi
6497
6498 if test "${found}" = "yes" ; then
6499 SHLIB_CFLAGS="+z"
6500 LDDL_FLAGS="-b -E -n +s +b,${loader_run_path}:."
6501 SHDLIB_EXT=".sl"
6502
6503 # The run path is included in both LDFLAGS and LDDL_FLAGS
6504 # because SHLIB_LD is ld and LD is cc/gcc.
6505
6506 LDFLAGS="-Wl,-E -Wl,+s,+b,${loader_run_path}:."
6507 EXTRA_LIB_SPECS="-ldld"
6508 fi
6509 ;;
6510
6511 *-irix64-6.5*)
6512 LDDL_FLAGS="-32 -shared -rdata_shared"
6513 if test "x${loader_run_path}" != "x" ; then
6514 LD_RUN_PATH="${LD_RUN_PATH} -Wl,-rpath,${loader_run_path}"
6515 fi
6516 ;;
6517
6518 *-irix-56.*|*-irix64-*)
6519 LDDL_FLAGS="-shared -rdata_shared"
6520 if test "x${loader_run_path}" != "x" ; then
6521 LD_RUN_PATH="${LD_RUN_PATH} -Wl,-rpath,${loader_run_path}"
6522 fi
6523 LDFLAGS=""
6524 if test "$GCC" = "yes" ; then
6525 SHLIB_CFLAGS="-mabi=n32 $SHLIB_CFLAGS"
6526 LDDL_FLAGS="-mabi=n32 $LDDL_FLAGS"
6527 LDFLAGS="-mabi=n32 $LDFLAGS"
6528 else
6529 CFLAGS="-n32 $CFLAGS"
6530 LDFLAGS="-n32 $LDFLAGS"
6531 fi
6532 ;;
6533
6534 *-linux*)
6535 LDDL_FLAGS='-shared -Wl,-soname,$@'
6536 if test "x${loader_run_path}" != "x" ; then
6537 LD_RUN_PATH="${LD_RUN_PATH} -Wl,-rpath,${loader_run_path}"
6538 fi
6539 LDFLAGS=""
6540 EXTRA_LIB_SPECS="-ldl"
6541 ;;
6542
6543 *-mp-ras-02*)
6544 SHLIB_CFLAGS="-G -K PIC"
6545 LDDL_FLAGS=""
6546 ;;
6547
6548 *-mp-ras-*)
6549 SHLIB_CFLAGS="-G -K PIC"
6550 LDDL_FLAGS="-Wl,-Bexport"
6551 ;;
6552
6553 *-ncr-sysv4-*2*)
6554 SHLIB_CFLAGS="-K PIC"
6555 LDDL_FLAGS="-G"
6556
6557 EXTRA_LIB_SPECS="-ldl"
6558 ;;
6559
6560 *-ncr-sysv4*)
6561 SHLIB_CFLAGS="-K PIC"
6562 LDDL_FLAGS="-G -Wl,-Bexport"
6563
6564 LDFLAGS="-Wl,-Bexport"
6565 EXTRA_LIB_SPECS="-ldl"
6566 ;;
6567
6568 *-freebsd*)
6569 # Not available on all versions: check for include file.
6570 SHLIB_CFLAGS="-fpic"
6571 LDDL_FLAGS="-shared ${LIB_SPECS}"
6572 CFLAGS="${CFLAGS} -l/usr/X11R6/include"
6573 ;;
6574
6575 *-netbsd*|*-openbsd*)
6576 # Not available on all versions: check for include file.
6577 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
6578 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6579 test_ok=yes
6580 else
6581 test_ok=no
6582 fi
6583
6584
6585 if test "$test_ok" = yes; then
6586 SHLIB_CFLAGS="-fPIC"
6587 LDDL_FLAGS="-shared ${LIB_SPEC}"
6588 fi
6589 ;;
6590
6591 *-nextstep*)
6592 LDDL_FLAGS="-nostdlib -r"
6593 ;;
6594
6595 *-osf1-1.012*)
6596 # OSF/1 1.[012] from OSF, and derivatives, including Paragon OSF/1
6597
6598 # Warning: Ugly Makefile Hack
6599 # Make package name same as library name
6600
6601 SHLIB_LD='ld -R -export $@:'
6602 ;;
6603
6604 *-osf1-1.*)
6605 # OSF/1 1.3 from OSF using ELF, and derivatives, including AD2
6606
6607 SHLIB_CFLAGS="-fpic"
6608 SHLIB_LD="ld -shared"
6609 ;;
6610
6611 *-osf1V*)
6612 # Digital OSF/1
6613
6614 LDDL_FLAGS='-shared -expect_unresolved "*"'
6615 if test "x${loader_run_path}" != "x" ; then
6616 LD_RUN_PATH="${LD_RUN_PATH} -Wl,-rpath,${loader_run_path}"
6617 fi
6618 LDFLAGS=""
6619 ;;
6620
6621 *-sco*)
6622 # Note, dlopen is available only on SCO 3.2.5 and greater. However,
6623 # this test works, since "uname -s" was non-standard in 3.2.4 and
6624 # below.
6625
6626 SHLIB_CFLAGS="-Kpic -belf"
6627 LDDL_FLAGS="-G"
6628 LDFLAGS="-belf -Wl,-Bexport"
6629 ;;
6630
6631 *-sni-sysv*)
6632
6633 SHLIB_CFLAGS="-K PIC"
6634 LDDL_FLAGS="-G"
6635
6636 EXTRA_LIB_SPECS="-ldl"
6637 ;;
6638
6639 *-sunos4*)
6640
6641 SHLIB_CFLAGS="-PIC"
6642 LDDL_FLAGS="-assert pure-text"
6643
6644 EXTRA_LIB_SPECS="-ldl"
6645 ;;
6646
6647 *-solaris2*)
6648
6649 if test "$with_gnu_ld" = "yes" ; then
6650 LDDL_FLAGS='-shared -Wl,-E -Wl,-soname,$@ ${LIB_SPEC}'
6651 if test "x${loader_run_path}" != "x" ; then
6652 LD_RUN_PATH="${LD_RUN_PATH} -Wl,-rpath,${loader_run_path}"
6653 fi
6654 else
6655 LDDL_FLAGS="-shared -mimpure-text"
6656 if test "x${loader_run_path}" != "x" ; then
6657 LD_RUN_PATH="${LD_RUN_PATH} -R ${loader_run_path}"
6658 fi
6659 fi
6660 EXTRA_LIB_SPECS="-ldl"
6661 ;;
6662
6663 *-mips-dde-sysv*)
6664
6665 SHLIB_CFLAGS="-KPIC"
6666 LDDL_FLAGS="-G"
6667
6668 EXTRA_LIB_SPECS="-ldl"
6669 ;;
6670
6671 *-pc-sysv4* | *-unixware-5*)
6672 SHLIB_CFLAGS="-G -KPIC"
6673 LDDL_FLAGS=" -Wl,-Bexport"
6674 ;;
6675
6676 esac
6677
6678 # If we're running gcc, then set SHLIB_CFLAGS flags for compiling
6679 # shared libraries for gcc, instead of those of the vendor's compiler.
6680
6681 if test "$GCC" = "yes" ; then
6682 case $target in
6683 *cygwin*)
6684 ;;
6685 *)
6686 SHLIB_CFLAGS="-fPIC"
6687 ;;
6688 esac
6689 fi
6690 if test "$with_gnu_ld" = "yes" ; then
6691 LDDL_FLAGS="${LDDL_FLAGS} -Wl,--version-script=\${IRSIMDIR}/irsim/symbol.map"
6692 fi
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707 fi
6708
6709 if test "$GCC" = "yes" ; then
6710 DEPEND_FLAG="-MM"
6711 fi
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747 ac_config_files="$ac_config_files defs.mak"
6748
6749 cat >confcache <<\_ACEOF
6750 # This file is a shell script that caches the results of configure
6751 # tests run on this system so they can be shared between configure
6752 # scripts and configure runs, see configure's option --config-cache.
6753 # It is not useful on other systems. If it contains results you don't
6754 # want to keep, you may remove or edit it.
6755 #
6756 # config.status only pays attention to the cache file if you give it
6757 # the --recheck option to rerun configure.
6758 #
6759 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6760 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6761 # following values.
6762
6763 _ACEOF
6764
6765 # The following way of writing the cache mishandles newlines in values,
6766 # but we know of no workaround that is simple, portable, and efficient.
6767 # So, we kill variables containing newlines.
6768 # Ultrix sh set writes to stderr and can't be redirected directly,
6769 # and sets the high bit in the cache file unless we assign to the vars.
6770 (
6771 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6772 eval ac_val=\$$ac_var
6773 case $ac_val in #(
6774 *${as_nl}*)
6775 case $ac_var in #(
6776 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6777 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6778 esac
6779 case $ac_var in #(
6780 _ | IFS | as_nl) ;; #(
6781 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6782 *) { eval $ac_var=; unset $ac_var;} ;;
6783 esac ;;
6784 esac
6785 done
6786
6787 (set) 2>&1 |
6788 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6789 *${as_nl}ac_space=\ *)
6790 # `set' does not quote correctly, so add quotes: double-quote
6791 # substitution turns \\\\ into \\, and sed turns \\ into \.
6792 sed -n \
6793 "s/'/'\\\\''/g;
6794 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6795 ;; #(
6796 *)
6797 # `set' quotes correctly as required by POSIX, so do not add quotes.
6798 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6799 ;;
6800 esac |
6801 sort
6802 ) |
6803 sed '
6804 /^ac_cv_env_/b end
6805 t clear
6806 :clear
6807 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6808 t end
6809 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6810 :end' >>confcache
6811 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6812 if test -w "$cache_file"; then
6813 if test "x$cache_file" != "x/dev/null"; then
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6815 $as_echo "$as_me: updating cache $cache_file" >&6;}
6816 if test ! -f "$cache_file" || test -h "$cache_file"; then
6817 cat confcache >"$cache_file"
6818 else
6819 case $cache_file in #(
6820 */* | ?:*)
6821 mv -f confcache "$cache_file"$$ &&
6822 mv -f "$cache_file"$$ "$cache_file" ;; #(
6823 *)
6824 mv -f confcache "$cache_file" ;;
6825 esac
6826 fi
6827 fi
6828 else
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6830 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6831 fi
6832 fi
6833 rm -f confcache
6834
6835 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6836 # Let make expand exec_prefix.
6837 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6838
6839 # Transform confdefs.h into DEFS.
6840 # Protect against shell expansion while executing Makefile rules.
6841 # Protect against Makefile macro expansion.
6842 #
6843 # If the first sed substitution is executed (which looks for macros that
6844 # take arguments), then branch to the quote section. Otherwise,
6845 # look for a macro that doesn't take arguments.
6846 ac_script='
6847 :mline
6848 /\\$/{
6849 N
6850 s,\\\n,,
6851 b mline
6852 }
6853 t clear
6854 :clear
6855 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
6856 t quote
6857 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
6858 t quote
6859 b any
6860 :quote
6861 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
6862 s/\[/\\&/g
6863 s/\]/\\&/g
6864 s/\$/$$/g
6865 H
6866 :any
6867 ${
6868 g
6869 s/^\n//
6870 s/\n/ /g
6871 p
6872 }
6873 '
6874 DEFS=`sed -n "$ac_script" confdefs.h`
6875
6876
6877 ac_libobjs=
6878 ac_ltlibobjs=
6879 U=
6880 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6881 # 1. Remove the extension, and $U if already installed.
6882 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6883 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6884 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6885 # will be set to the directory where LIBOBJS objects are built.
6886 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6887 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6888 done
6889 LIBOBJS=$ac_libobjs
6890
6891 LTLIBOBJS=$ac_ltlibobjs
6892
6893
6894
6895
6896 : "${CONFIG_STATUS=./config.status}"
6897 ac_write_fail=0
6898 ac_clean_files_save=$ac_clean_files
6899 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6901 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6902 as_write_fail=0
6903 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6904 #! $SHELL
6905 # Generated by $as_me.
6906 # Run this file to recreate the current configuration.
6907 # Compiler output produced by configure, useful for debugging
6908 # configure, is in config.log if it exists.
6909
6910 debug=false
6911 ac_cs_recheck=false
6912 ac_cs_silent=false
6913
6914 SHELL=\${CONFIG_SHELL-$SHELL}
6915 export SHELL
6916 _ASEOF
6917 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6918 ## -------------------- ##
6919 ## M4sh Initialization. ##
6920 ## -------------------- ##
6921
6922 # Be more Bourne compatible
6923 DUALCASE=1; export DUALCASE # for MKS sh
6924 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6925 emulate sh
6926 NULLCMD=:
6927 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6928 # is contrary to our usage. Disable this feature.
6929 alias -g '${1+"$@"}'='"$@"'
6930 setopt NO_GLOB_SUBST
6931 else
6932 case `(set -o) 2>/dev/null` in #(
6933 *posix*) :
6934 set -o posix ;; #(
6935 *) :
6936 ;;
6937 esac
6938 fi
6939
6940
6941 as_nl='
6942 '
6943 export as_nl
6944 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6945 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6946 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6947 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6948 # Prefer a ksh shell builtin over an external printf program on Solaris,
6949 # but without wasting forks for bash or zsh.
6950 if test -z "$BASH_VERSION$ZSH_VERSION" \
6951 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6952 as_echo='print -r --'
6953 as_echo_n='print -rn --'
6954 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6955 as_echo='printf %s\n'
6956 as_echo_n='printf %s'
6957 else
6958 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6959 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6960 as_echo_n='/usr/ucb/echo -n'
6961 else
6962 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6963 as_echo_n_body='eval
6964 arg=$1;
6965 case $arg in #(
6966 *"$as_nl"*)
6967 expr "X$arg" : "X\\(.*\\)$as_nl";
6968 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6969 esac;
6970 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6971 '
6972 export as_echo_n_body
6973 as_echo_n='sh -c $as_echo_n_body as_echo'
6974 fi
6975 export as_echo_body
6976 as_echo='sh -c $as_echo_body as_echo'
6977 fi
6978
6979 # The user is always right.
6980 if test "${PATH_SEPARATOR+set}" != set; then
6981 PATH_SEPARATOR=:
6982 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6983 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6984 PATH_SEPARATOR=';'
6985 }
6986 fi
6987
6988
6989 # IFS
6990 # We need space, tab and new line, in precisely that order. Quoting is
6991 # there to prevent editors from complaining about space-tab.
6992 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6993 # splitting by setting IFS to empty value.)
6994 IFS=" "" $as_nl"
6995
6996 # Find who we are. Look in the path if we contain no directory separator.
6997 as_myself=
6998 case $0 in #((
6999 *[\\/]* ) as_myself=$0 ;;
7000 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7001 for as_dir in $PATH
7002 do
7003 IFS=$as_save_IFS
7004 test -z "$as_dir" && as_dir=.
7005 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7006 done
7007 IFS=$as_save_IFS
7008
7009 ;;
7010 esac
7011 # We did not find ourselves, most probably we were run as `sh COMMAND'
7012 # in which case we are not to be found in the path.
7013 if test "x$as_myself" = x; then
7014 as_myself=$0
7015 fi
7016 if test ! -f "$as_myself"; then
7017 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7018 exit 1
7019 fi
7020
7021 # Unset variables that we do not need and which cause bugs (e.g. in
7022 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7023 # suppresses any "Segmentation fault" message there. '((' could
7024 # trigger a bug in pdksh 5.2.14.
7025 for as_var in BASH_ENV ENV MAIL MAILPATH
7026 do eval test x\${$as_var+set} = xset \
7027 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7028 done
7029 PS1='$ '
7030 PS2='> '
7031 PS4='+ '
7032
7033 # NLS nuisances.
7034 LC_ALL=C
7035 export LC_ALL
7036 LANGUAGE=C
7037 export LANGUAGE
7038
7039 # CDPATH.
7040 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7041
7042
7043 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7044 # ----------------------------------------
7045 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7046 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7047 # script with STATUS, using 1 if that was 0.
7048 as_fn_error ()
7049 {
7050 as_status=$1; test $as_status -eq 0 && as_status=1
7051 if test "$4"; then
7052 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7053 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7054 fi
7055 $as_echo "$as_me: error: $2" >&2
7056 as_fn_exit $as_status
7057 } # as_fn_error
7058
7059
7060 # as_fn_set_status STATUS
7061 # -----------------------
7062 # Set $? to STATUS, without forking.
7063 as_fn_set_status ()
7064 {
7065 return $1
7066 } # as_fn_set_status
7067
7068 # as_fn_exit STATUS
7069 # -----------------
7070 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7071 as_fn_exit ()
7072 {
7073 set +e
7074 as_fn_set_status $1
7075 exit $1
7076 } # as_fn_exit
7077
7078 # as_fn_unset VAR
7079 # ---------------
7080 # Portably unset VAR.
7081 as_fn_unset ()
7082 {
7083 { eval $1=; unset $1;}
7084 }
7085 as_unset=as_fn_unset
7086 # as_fn_append VAR VALUE
7087 # ----------------------
7088 # Append the text in VALUE to the end of the definition contained in VAR. Take
7089 # advantage of any shell optimizations that allow amortized linear growth over
7090 # repeated appends, instead of the typical quadratic growth present in naive
7091 # implementations.
7092 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7093 eval 'as_fn_append ()
7094 {
7095 eval $1+=\$2
7096 }'
7097 else
7098 as_fn_append ()
7099 {
7100 eval $1=\$$1\$2
7101 }
7102 fi # as_fn_append
7103
7104 # as_fn_arith ARG...
7105 # ------------------
7106 # Perform arithmetic evaluation on the ARGs, and store the result in the
7107 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7108 # must be portable across $(()) and expr.
7109 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7110 eval 'as_fn_arith ()
7111 {
7112 as_val=$(( $* ))
7113 }'
7114 else
7115 as_fn_arith ()
7116 {
7117 as_val=`expr "$@" || test $? -eq 1`
7118 }
7119 fi # as_fn_arith
7120
7121
7122 if expr a : '\(a\)' >/dev/null 2>&1 &&
7123 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7124 as_expr=expr
7125 else
7126 as_expr=false
7127 fi
7128
7129 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7130 as_basename=basename
7131 else
7132 as_basename=false
7133 fi
7134
7135 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7136 as_dirname=dirname
7137 else
7138 as_dirname=false
7139 fi
7140
7141 as_me=`$as_basename -- "$0" ||
7142 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7143 X"$0" : 'X\(//\)$' \| \
7144 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7145 $as_echo X/"$0" |
7146 sed '/^.*\/\([^/][^/]*\)\/*$/{
7147 s//\1/
7148 q
7149 }
7150 /^X\/\(\/\/\)$/{
7151 s//\1/
7152 q
7153 }
7154 /^X\/\(\/\).*/{
7155 s//\1/
7156 q
7157 }
7158 s/.*/./; q'`
7159
7160 # Avoid depending upon Character Ranges.
7161 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7162 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7163 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7164 as_cr_digits='0123456789'
7165 as_cr_alnum=$as_cr_Letters$as_cr_digits
7166
7167 ECHO_C= ECHO_N= ECHO_T=
7168 case `echo -n x` in #(((((
7169 -n*)
7170 case `echo 'xy\c'` in
7171 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7172 xy) ECHO_C='\c';;
7173 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7174 ECHO_T=' ';;
7175 esac;;
7176 *)
7177 ECHO_N='-n';;
7178 esac
7179
7180 rm -f conf$$ conf$$.exe conf$$.file
7181 if test -d conf$$.dir; then
7182 rm -f conf$$.dir/conf$$.file
7183 else
7184 rm -f conf$$.dir
7185 mkdir conf$$.dir 2>/dev/null
7186 fi
7187 if (echo >conf$$.file) 2>/dev/null; then
7188 if ln -s conf$$.file conf$$ 2>/dev/null; then
7189 as_ln_s='ln -s'
7190 # ... but there are two gotchas:
7191 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7192 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7193 # In both cases, we have to default to `cp -pR'.
7194 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7195 as_ln_s='cp -pR'
7196 elif ln conf$$.file conf$$ 2>/dev/null; then
7197 as_ln_s=ln
7198 else
7199 as_ln_s='cp -pR'
7200 fi
7201 else
7202 as_ln_s='cp -pR'
7203 fi
7204 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7205 rmdir conf$$.dir 2>/dev/null
7206
7207
7208 # as_fn_mkdir_p
7209 # -------------
7210 # Create "$as_dir" as a directory, including parents if necessary.
7211 as_fn_mkdir_p ()
7212 {
7213
7214 case $as_dir in #(
7215 -*) as_dir=./$as_dir;;
7216 esac
7217 test -d "$as_dir" || eval $as_mkdir_p || {
7218 as_dirs=
7219 while :; do
7220 case $as_dir in #(
7221 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7222 *) as_qdir=$as_dir;;
7223 esac
7224 as_dirs="'$as_qdir' $as_dirs"
7225 as_dir=`$as_dirname -- "$as_dir" ||
7226 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7227 X"$as_dir" : 'X\(//\)[^/]' \| \
7228 X"$as_dir" : 'X\(//\)$' \| \
7229 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7230 $as_echo X"$as_dir" |
7231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7232 s//\1/
7233 q
7234 }
7235 /^X\(\/\/\)[^/].*/{
7236 s//\1/
7237 q
7238 }
7239 /^X\(\/\/\)$/{
7240 s//\1/
7241 q
7242 }
7243 /^X\(\/\).*/{
7244 s//\1/
7245 q
7246 }
7247 s/.*/./; q'`
7248 test -d "$as_dir" && break
7249 done
7250 test -z "$as_dirs" || eval "mkdir $as_dirs"
7251 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7252
7253
7254 } # as_fn_mkdir_p
7255 if mkdir -p . 2>/dev/null; then
7256 as_mkdir_p='mkdir -p "$as_dir"'
7257 else
7258 test -d ./-p && rmdir ./-p
7259 as_mkdir_p=false
7260 fi
7261
7262
7263 # as_fn_executable_p FILE
7264 # -----------------------
7265 # Test if FILE is an executable regular file.
7266 as_fn_executable_p ()
7267 {
7268 test -f "$1" && test -x "$1"
7269 } # as_fn_executable_p
7270 as_test_x='test -x'
7271 as_executable_p=as_fn_executable_p
7272
7273 # Sed expression to map a string onto a valid CPP name.
7274 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7275
7276 # Sed expression to map a string onto a valid variable name.
7277 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7278
7279
7280 exec 6>&1
7281 ## ----------------------------------- ##
7282 ## Main body of $CONFIG_STATUS script. ##
7283 ## ----------------------------------- ##
7284 _ASEOF
7285 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7286
7287 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7288 # Save the log message, to keep $0 and so on meaningful, and to
7289 # report actual input values of CONFIG_FILES etc. instead of their
7290 # values after options handling.
7291 ac_log="
7292 This file was extended by irsim $as_me 9.7, which was
7293 generated by GNU Autoconf 2.69. Invocation command line was
7294
7295 CONFIG_FILES = $CONFIG_FILES
7296 CONFIG_HEADERS = $CONFIG_HEADERS
7297 CONFIG_LINKS = $CONFIG_LINKS
7298 CONFIG_COMMANDS = $CONFIG_COMMANDS
7299 $ $0 $@
7300
7301 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7302 "
7303
7304 _ACEOF
7305
7306 case $ac_config_files in *"
7307 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7308 esac
7309
7310
7311
7312 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7313 # Files that config.status was made for.
7314 config_files="$ac_config_files"
7315
7316 _ACEOF
7317
7318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7319 ac_cs_usage="\
7320 \`$as_me' instantiates files and other configuration actions
7321 from templates according to the current configuration. Unless the files
7322 and actions are specified as TAGs, all are instantiated by default.
7323
7324 Usage: $0 [OPTION]... [TAG]...
7325
7326 -h, --help print this help, then exit
7327 -V, --version print version number and configuration settings, then exit
7328 --config print configuration, then exit
7329 -q, --quiet, --silent
7330 do not print progress messages
7331 -d, --debug don't remove temporary files
7332 --recheck update $as_me by reconfiguring in the same conditions
7333 --file=FILE[:TEMPLATE]
7334 instantiate the configuration file FILE
7335
7336 Configuration files:
7337 $config_files
7338
7339 Report bugs to <[email protected]>."
7340
7341 _ACEOF
7342 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7343 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7344 ac_cs_version="\\
7345 irsim config.status 9.7
7346 configured by $0, generated by GNU Autoconf 2.69,
7347 with options \\"\$ac_cs_config\\"
7348
7349 Copyright (C) 2012 Free Software Foundation, Inc.
7350 This config.status script is free software; the Free Software Foundation
7351 gives unlimited permission to copy, distribute and modify it."
7352
7353 ac_pwd='$ac_pwd'
7354 srcdir='$srcdir'
7355 INSTALL='$INSTALL'
7356 test -n "\$AWK" || AWK=awk
7357 _ACEOF
7358
7359 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7360 # The default lists apply if the user does not specify any file.
7361 ac_need_defaults=:
7362 while test $# != 0
7363 do
7364 case $1 in
7365 --*=?*)
7366 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7367 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7368 ac_shift=:
7369 ;;
7370 --*=)
7371 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7372 ac_optarg=
7373 ac_shift=:
7374 ;;
7375 *)
7376 ac_option=$1
7377 ac_optarg=$2
7378 ac_shift=shift
7379 ;;
7380 esac
7381
7382 case $ac_option in
7383 # Handling of the options.
7384 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7385 ac_cs_recheck=: ;;
7386 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7387 $as_echo "$ac_cs_version"; exit ;;
7388 --config | --confi | --conf | --con | --co | --c )
7389 $as_echo "$ac_cs_config"; exit ;;
7390 --debug | --debu | --deb | --de | --d | -d )
7391 debug=: ;;
7392 --file | --fil | --fi | --f )
7393 $ac_shift
7394 case $ac_optarg in
7395 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7396 '') as_fn_error $? "missing file argument" ;;
7397 esac
7398 as_fn_append CONFIG_FILES " '$ac_optarg'"
7399 ac_need_defaults=false;;
7400 --he | --h | --help | --hel | -h )
7401 $as_echo "$ac_cs_usage"; exit ;;
7402 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7403 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7404 ac_cs_silent=: ;;
7405
7406 # This is an error.
7407 -*) as_fn_error $? "unrecognized option: \`$1'
7408 Try \`$0 --help' for more information." ;;
7409
7410 *) as_fn_append ac_config_targets " $1"
7411 ac_need_defaults=false ;;
7412
7413 esac
7414 shift
7415 done
7416
7417 ac_configure_extra_args=
7418
7419 if $ac_cs_silent; then
7420 exec 6>/dev/null
7421 ac_configure_extra_args="$ac_configure_extra_args --silent"
7422 fi
7423
7424 _ACEOF
7425 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7426 if \$ac_cs_recheck; then
7427 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7428 shift
7429 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7430 CONFIG_SHELL='$SHELL'
7431 export CONFIG_SHELL
7432 exec "\$@"
7433 fi
7434
7435 _ACEOF
7436 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7437 exec 5>>config.log
7438 {
7439 echo
7440 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7441 ## Running $as_me. ##
7442 _ASBOX
7443 $as_echo "$ac_log"
7444 } >&5
7445
7446 _ACEOF
7447 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7448 _ACEOF
7449
7450 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7451
7452 # Handling of arguments.
7453 for ac_config_target in $ac_config_targets
7454 do
7455 case $ac_config_target in
7456 "defs.mak") CONFIG_FILES="$CONFIG_FILES defs.mak" ;;
7457
7458 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7459 esac
7460 done
7461
7462
7463 # If the user did not use the arguments to specify the items to instantiate,
7464 # then the envvar interface is used. Set only those that are not.
7465 # We use the long form for the default assignment because of an extremely
7466 # bizarre bug on SunOS 4.1.3.
7467 if $ac_need_defaults; then
7468 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7469 fi
7470
7471 # Have a temporary directory for convenience. Make it in the build tree
7472 # simply because there is no reason against having it here, and in addition,
7473 # creating and moving files from /tmp can sometimes cause problems.
7474 # Hook for its removal unless debugging.
7475 # Note that there is a small window in which the directory will not be cleaned:
7476 # after its creation but before its name has been assigned to `$tmp'.
7477 $debug ||
7478 {
7479 tmp= ac_tmp=
7480 trap 'exit_status=$?
7481 : "${ac_tmp:=$tmp}"
7482 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7483 ' 0
7484 trap 'as_fn_exit 1' 1 2 13 15
7485 }
7486 # Create a (secure) tmp directory for tmp files.
7487
7488 {
7489 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7490 test -d "$tmp"
7491 } ||
7492 {
7493 tmp=./conf$$-$RANDOM
7494 (umask 077 && mkdir "$tmp")
7495 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7496 ac_tmp=$tmp
7497
7498 # Set up the scripts for CONFIG_FILES section.
7499 # No need to generate them if there are no CONFIG_FILES.
7500 # This happens for instance with `./config.status config.h'.
7501 if test -n "$CONFIG_FILES"; then
7502
7503
7504 ac_cr=`echo X | tr X '\015'`
7505 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7506 # But we know of no other shell where ac_cr would be empty at this
7507 # point, so we can use a bashism as a fallback.
7508 if test "x$ac_cr" = x; then
7509 eval ac_cr=\$\'\\r\'
7510 fi
7511 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7512 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7513 ac_cs_awk_cr='\\r'
7514 else
7515 ac_cs_awk_cr=$ac_cr
7516 fi
7517
7518 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7519 _ACEOF
7520
7521
7522 {
7523 echo "cat >conf$$subs.awk <<_ACEOF" &&
7524 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7525 echo "_ACEOF"
7526 } >conf$$subs.sh ||
7527 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7528 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7529 ac_delim='%!_!# '
7530 for ac_last_try in false false false false false :; do
7531 . ./conf$$subs.sh ||
7532 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7533
7534 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7535 if test $ac_delim_n = $ac_delim_num; then
7536 break
7537 elif $ac_last_try; then
7538 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7539 else
7540 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7541 fi
7542 done
7543 rm -f conf$$subs.sh
7544
7545 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7546 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7547 _ACEOF
7548 sed -n '
7549 h
7550 s/^/S["/; s/!.*/"]=/
7551 p
7552 g
7553 s/^[^!]*!//
7554 :repl
7555 t repl
7556 s/'"$ac_delim"'$//
7557 t delim
7558 :nl
7559 h
7560 s/\(.\{148\}\)..*/\1/
7561 t more1
7562 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7563 p
7564 n
7565 b repl
7566 :more1
7567 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7568 p
7569 g
7570 s/.\{148\}//
7571 t nl
7572 :delim
7573 h
7574 s/\(.\{148\}\)..*/\1/
7575 t more2
7576 s/["\\]/\\&/g; s/^/"/; s/$/"/
7577 p
7578 b
7579 :more2
7580 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7581 p
7582 g
7583 s/.\{148\}//
7584 t delim
7585 ' <conf$$subs.awk | sed '
7586 /^[^""]/{
7587 N
7588 s/\n//
7589 }
7590 ' >>$CONFIG_STATUS || ac_write_fail=1
7591 rm -f conf$$subs.awk
7592 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7593 _ACAWK
7594 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7595 for (key in S) S_is_set[key] = 1
7596 FS = ""
7597
7598 }
7599 {
7600 line = $ 0
7601 nfields = split(line, field, "@")
7602 substed = 0
7603 len = length(field[1])
7604 for (i = 2; i < nfields; i++) {
7605 key = field[i]
7606 keylen = length(key)
7607 if (S_is_set[key]) {
7608 value = S[key]
7609 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7610 len += length(value) + length(field[++i])
7611 substed = 1
7612 } else
7613 len += 1 + keylen
7614 }
7615
7616 print line
7617 }
7618
7619 _ACAWK
7620 _ACEOF
7621 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7622 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7623 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7624 else
7625 cat
7626 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7627 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7628 _ACEOF
7629
7630 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7631 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7632 # trailing colons and then remove the whole line if VPATH becomes empty
7633 # (actually we leave an empty line to preserve line numbers).
7634 if test "x$srcdir" = x.; then
7635 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7636 h
7637 s///
7638 s/^/:/
7639 s/[ ]*$/:/
7640 s/:\$(srcdir):/:/g
7641 s/:\${srcdir}:/:/g
7642 s/:@srcdir@:/:/g
7643 s/^:*//
7644 s/:*$//
7645 x
7646 s/\(=[ ]*\).*/\1/
7647 G
7648 s/\n//
7649 s/^[^=]*=[ ]*$//
7650 }'
7651 fi
7652
7653 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7654 fi # test -n "$CONFIG_FILES"
7655
7656
7657 eval set X " :F $CONFIG_FILES "
7658 shift
7659 for ac_tag
7660 do
7661 case $ac_tag in
7662 :[FHLC]) ac_mode=$ac_tag; continue;;
7663 esac
7664 case $ac_mode$ac_tag in
7665 :[FHL]*:*);;
7666 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7667 :[FH]-) ac_tag=-:-;;
7668 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7669 esac
7670 ac_save_IFS=$IFS
7671 IFS=:
7672 set x $ac_tag
7673 IFS=$ac_save_IFS
7674 shift
7675 ac_file=$1
7676 shift
7677
7678 case $ac_mode in
7679 :L) ac_source=$1;;
7680 :[FH])
7681 ac_file_inputs=
7682 for ac_f
7683 do
7684 case $ac_f in
7685 -) ac_f="$ac_tmp/stdin";;
7686 *) # Look for the file first in the build tree, then in the source tree
7687 # (if the path is not absolute). The absolute path cannot be DOS-style,
7688 # because $ac_f cannot contain `:'.
7689 test -f "$ac_f" ||
7690 case $ac_f in
7691 [\\/$]*) false;;
7692 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7693 esac ||
7694 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7695 esac
7696 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7697 as_fn_append ac_file_inputs " '$ac_f'"
7698 done
7699
7700 # Let's still pretend it is `configure' which instantiates (i.e., don't
7701 # use $as_me), people would be surprised to read:
7702 # /* config.h. Generated by config.status. */
7703 configure_input='Generated from '`
7704 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7705 `' by configure.'
7706 if test x"$ac_file" != x-; then
7707 configure_input="$ac_file. $configure_input"
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7709 $as_echo "$as_me: creating $ac_file" >&6;}
7710 fi
7711 # Neutralize special characters interpreted by sed in replacement strings.
7712 case $configure_input in #(
7713 *\&* | *\|* | *\\* )
7714 ac_sed_conf_input=`$as_echo "$configure_input" |
7715 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7716 *) ac_sed_conf_input=$configure_input;;
7717 esac
7718
7719 case $ac_tag in
7720 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7721 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7722 esac
7723 ;;
7724 esac
7725
7726 ac_dir=`$as_dirname -- "$ac_file" ||
7727 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7728 X"$ac_file" : 'X\(//\)[^/]' \| \
7729 X"$ac_file" : 'X\(//\)$' \| \
7730 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7731 $as_echo X"$ac_file" |
7732 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7733 s//\1/
7734 q
7735 }
7736 /^X\(\/\/\)[^/].*/{
7737 s//\1/
7738 q
7739 }
7740 /^X\(\/\/\)$/{
7741 s//\1/
7742 q
7743 }
7744 /^X\(\/\).*/{
7745 s//\1/
7746 q
7747 }
7748 s/.*/./; q'`
7749 as_dir="$ac_dir"; as_fn_mkdir_p
7750 ac_builddir=.
7751
7752 case "$ac_dir" in
7753 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7754 *)
7755 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7756 # A ".." for each directory in $ac_dir_suffix.
7757 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7758 case $ac_top_builddir_sub in
7759 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7760 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7761 esac ;;
7762 esac
7763 ac_abs_top_builddir=$ac_pwd
7764 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7765 # for backward compatibility:
7766 ac_top_builddir=$ac_top_build_prefix
7767
7768 case $srcdir in
7769 .) # We are building in place.
7770 ac_srcdir=.
7771 ac_top_srcdir=$ac_top_builddir_sub
7772 ac_abs_top_srcdir=$ac_pwd ;;
7773 [\\/]* | ?:[\\/]* ) # Absolute name.
7774 ac_srcdir=$srcdir$ac_dir_suffix;
7775 ac_top_srcdir=$srcdir
7776 ac_abs_top_srcdir=$srcdir ;;
7777 *) # Relative name.
7778 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7779 ac_top_srcdir=$ac_top_build_prefix$srcdir
7780 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7781 esac
7782 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7783
7784
7785 case $ac_mode in
7786 :F)
7787 #
7788 # CONFIG_FILE
7789 #
7790
7791 case $INSTALL in
7792 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7793 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7794 esac
7795 _ACEOF
7796
7797 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7798 # If the template does not know about datarootdir, expand it.
7799 # FIXME: This hack should be removed a few years after 2.60.
7800 ac_datarootdir_hack=; ac_datarootdir_seen=
7801 ac_sed_dataroot='
7802 /datarootdir/ {
7803 p
7804 q
7805 }
7806 /@datadir@/p
7807 /@docdir@/p
7808 /@infodir@/p
7809 /@localedir@/p
7810 /@mandir@/p'
7811 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7812 *datarootdir*) ac_datarootdir_seen=yes;;
7813 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7815 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7816 _ACEOF
7817 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7818 ac_datarootdir_hack='
7819 s&@datadir@&$datadir&g
7820 s&@docdir@&$docdir&g
7821 s&@infodir@&$infodir&g
7822 s&@localedir@&$localedir&g
7823 s&@mandir@&$mandir&g
7824 s&\\\${datarootdir}&$datarootdir&g' ;;
7825 esac
7826 _ACEOF
7827
7828 # Neutralize VPATH when `$srcdir' = `.'.
7829 # Shell code in configure.ac might set extrasub.
7830 # FIXME: do we really want to maintain this feature?
7831 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7832 ac_sed_extra="$ac_vpsub
7833 $extrasub
7834 _ACEOF
7835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7836 :t
7837 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7838 s|@configure_input@|$ac_sed_conf_input|;t t
7839 s&@top_builddir@&$ac_top_builddir_sub&;t t
7840 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7841 s&@srcdir@&$ac_srcdir&;t t
7842 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7843 s&@top_srcdir@&$ac_top_srcdir&;t t
7844 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7845 s&@builddir@&$ac_builddir&;t t
7846 s&@abs_builddir@&$ac_abs_builddir&;t t
7847 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7848 s&@INSTALL@&$ac_INSTALL&;t t
7849 $ac_datarootdir_hack
7850 "
7851 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7852 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7853
7854 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7855 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7856 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7857 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7859 which seems to be undefined. Please make sure it is defined" >&5
7860 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7861 which seems to be undefined. Please make sure it is defined" >&2;}
7862
7863 rm -f "$ac_tmp/stdin"
7864 case $ac_file in
7865 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7866 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7867 esac \
7868 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7869 ;;
7870
7871
7872
7873 esac
7874
7875 done # for ac_tag
7876
7877
7878 as_fn_exit 0
7879 _ACEOF
7880 ac_clean_files=$ac_clean_files_save
7881
7882 test $ac_write_fail = 0 ||
7883 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7884
7885
7886 # configure is writing to config.log, and then calls config.status.
7887 # config.status does its own redirection, appending to config.log.
7888 # Unfortunately, on DOS this fails, as config.log is still kept open
7889 # by configure, so config.status won't be able to write to it; its
7890 # output is simply discarded. So we exec the FD to /dev/null,
7891 # effectively closing config.log, so it can be properly (re)opened and
7892 # appended to by config.status. When coming back to configure, we
7893 # need to make the FD available again.
7894 if test "$no_create" != yes; then
7895 ac_cs_success=:
7896 ac_config_status_args=
7897 test "$silent" = yes &&
7898 ac_config_status_args="$ac_config_status_args --quiet"
7899 exec 5>/dev/null
7900 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7901 exec 5>>config.log
7902 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7903 # would make configure fail if this is the last instruction.
7904 $ac_cs_success || as_fn_exit 1
7905 fi
7906 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7908 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7909 fi
7910
7911
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: \"Notice: Use 'make' to compile and 'make install' to install\"" >&5
7913 $as_echo "$as_me: \"Notice: Use 'make' to compile and 'make install' to install\"" >&6;}
7914
7915 cp defs.mak ..