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