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