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