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