Fix axis_scale when min==max
[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 CFLAGS="${CFLAGS}"
2952
2953 for ac_prog in gawk mawk nawk awk
2954 do
2955   # Extract the first word of "$ac_prog", so it can be a program name with args.
2956 set dummy $ac_prog; ac_word=$2
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2958 $as_echo_n "checking for $ac_word... " >&6; }
2959 if test "${ac_cv_prog_AWK+set}" = set; then :
2960   $as_echo_n "(cached) " >&6
2961 else
2962   if test -n "$AWK"; then
2963   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2964 else
2965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966 for as_dir in $PATH
2967 do
2968   IFS=$as_save_IFS
2969   test -z "$as_dir" && as_dir=.
2970     for ac_exec_ext in '' $ac_executable_extensions; do
2971   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2972     ac_cv_prog_AWK="$ac_prog"
2973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2974     break 2
2975   fi
2976 done
2977   done
2978 IFS=$as_save_IFS
2979
2980 fi
2981 fi
2982 AWK=$ac_cv_prog_AWK
2983 if test -n "$AWK"; then
2984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2985 $as_echo "$AWK" >&6; }
2986 else
2987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2988 $as_echo "no" >&6; }
2989 fi
2990
2991
2992   test -n "$AWK" && break
2993 done
2994
2995
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2997 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2998 set x ${MAKE-make}
2999 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3000 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3001   $as_echo_n "(cached) " >&6
3002 else
3003   cat >conftest.make <<\_ACEOF
3004 SHELL = /bin/sh
3005 all:
3006         @echo '@@@%%%=$(MAKE)=@@@%%%'
3007 _ACEOF
3008 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3009 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3010   *@@@%%%=?*=@@@%%%*)
3011     eval ac_cv_prog_make_${ac_make}_set=yes;;
3012   *)
3013     eval ac_cv_prog_make_${ac_make}_set=no;;
3014 esac
3015 rm -f conftest.make
3016 fi
3017 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3019 $as_echo "yes" >&6; }
3020   SET_MAKE=
3021 else
3022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3023 $as_echo "no" >&6; }
3024   SET_MAKE="MAKE=${MAKE-make}"
3025 fi
3026
3027 if test -n "$ac_tool_prefix"; then
3028   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3029 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3031 $as_echo_n "checking for $ac_word... " >&6; }
3032 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3033   $as_echo_n "(cached) " >&6
3034 else
3035   if test -n "$RANLIB"; then
3036   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3037 else
3038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039 for as_dir in $PATH
3040 do
3041   IFS=$as_save_IFS
3042   test -z "$as_dir" && as_dir=.
3043     for ac_exec_ext in '' $ac_executable_extensions; do
3044   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3045     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3046     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3047     break 2
3048   fi
3049 done
3050   done
3051 IFS=$as_save_IFS
3052
3053 fi
3054 fi
3055 RANLIB=$ac_cv_prog_RANLIB
3056 if test -n "$RANLIB"; then
3057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3058 $as_echo "$RANLIB" >&6; }
3059 else
3060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3061 $as_echo "no" >&6; }
3062 fi
3063
3064
3065 fi
3066 if test -z "$ac_cv_prog_RANLIB"; then
3067   ac_ct_RANLIB=$RANLIB
3068   # Extract the first word of "ranlib", so it can be a program name with args.
3069 set dummy ranlib; ac_word=$2
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3071 $as_echo_n "checking for $ac_word... " >&6; }
3072 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3073   $as_echo_n "(cached) " >&6
3074 else
3075   if test -n "$ac_ct_RANLIB"; then
3076   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3077 else
3078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079 for as_dir in $PATH
3080 do
3081   IFS=$as_save_IFS
3082   test -z "$as_dir" && as_dir=.
3083     for ac_exec_ext in '' $ac_executable_extensions; do
3084   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3085     ac_cv_prog_ac_ct_RANLIB="ranlib"
3086     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3087     break 2
3088   fi
3089 done
3090   done
3091 IFS=$as_save_IFS
3092
3093 fi
3094 fi
3095 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3096 if test -n "$ac_ct_RANLIB"; then
3097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3098 $as_echo "$ac_ct_RANLIB" >&6; }
3099 else
3100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3101 $as_echo "no" >&6; }
3102 fi
3103
3104   if test "x$ac_ct_RANLIB" = x; then
3105     RANLIB=":"
3106   else
3107     case $cross_compiling:$ac_tool_warned in
3108 yes:)
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3111 ac_tool_warned=yes ;;
3112 esac
3113     RANLIB=$ac_ct_RANLIB
3114   fi
3115 else
3116   RANLIB="$ac_cv_prog_RANLIB"
3117 fi
3118
3119
3120 ac_ext=c
3121 ac_cpp='$CPP $CPPFLAGS'
3122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3125 if test -n "$ac_tool_prefix"; then
3126   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3127 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3129 $as_echo_n "checking for $ac_word... " >&6; }
3130 if test "${ac_cv_prog_CC+set}" = set; then :
3131   $as_echo_n "(cached) " >&6
3132 else
3133   if test -n "$CC"; then
3134   ac_cv_prog_CC="$CC" # Let the user override the test.
3135 else
3136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137 for as_dir in $PATH
3138 do
3139   IFS=$as_save_IFS
3140   test -z "$as_dir" && as_dir=.
3141     for ac_exec_ext in '' $ac_executable_extensions; do
3142   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3143     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3145     break 2
3146   fi
3147 done
3148   done
3149 IFS=$as_save_IFS
3150
3151 fi
3152 fi
3153 CC=$ac_cv_prog_CC
3154 if test -n "$CC"; then
3155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3156 $as_echo "$CC" >&6; }
3157 else
3158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3159 $as_echo "no" >&6; }
3160 fi
3161
3162
3163 fi
3164 if test -z "$ac_cv_prog_CC"; then
3165   ac_ct_CC=$CC
3166   # Extract the first word of "gcc", so it can be a program name with args.
3167 set dummy gcc; ac_word=$2
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3169 $as_echo_n "checking for $ac_word... " >&6; }
3170 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3171   $as_echo_n "(cached) " >&6
3172 else
3173   if test -n "$ac_ct_CC"; then
3174   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3175 else
3176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3177 for as_dir in $PATH
3178 do
3179   IFS=$as_save_IFS
3180   test -z "$as_dir" && as_dir=.
3181     for ac_exec_ext in '' $ac_executable_extensions; do
3182   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3183     ac_cv_prog_ac_ct_CC="gcc"
3184     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3185     break 2
3186   fi
3187 done
3188   done
3189 IFS=$as_save_IFS
3190
3191 fi
3192 fi
3193 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3194 if test -n "$ac_ct_CC"; then
3195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3196 $as_echo "$ac_ct_CC" >&6; }
3197 else
3198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3199 $as_echo "no" >&6; }
3200 fi
3201
3202   if test "x$ac_ct_CC" = x; then
3203     CC=""
3204   else
3205     case $cross_compiling:$ac_tool_warned in
3206 yes:)
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3209 ac_tool_warned=yes ;;
3210 esac
3211     CC=$ac_ct_CC
3212   fi
3213 else
3214   CC="$ac_cv_prog_CC"
3215 fi
3216
3217 if test -z "$CC"; then
3218           if test -n "$ac_tool_prefix"; then
3219     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3220 set dummy ${ac_tool_prefix}cc; ac_word=$2
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3222 $as_echo_n "checking for $ac_word... " >&6; }
3223 if test "${ac_cv_prog_CC+set}" = set; then :
3224   $as_echo_n "(cached) " >&6
3225 else
3226   if test -n "$CC"; then
3227   ac_cv_prog_CC="$CC" # Let the user override the test.
3228 else
3229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230 for as_dir in $PATH
3231 do
3232   IFS=$as_save_IFS
3233   test -z "$as_dir" && as_dir=.
3234     for ac_exec_ext in '' $ac_executable_extensions; do
3235   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3236     ac_cv_prog_CC="${ac_tool_prefix}cc"
3237     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3238     break 2
3239   fi
3240 done
3241   done
3242 IFS=$as_save_IFS
3243
3244 fi
3245 fi
3246 CC=$ac_cv_prog_CC
3247 if test -n "$CC"; then
3248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3249 $as_echo "$CC" >&6; }
3250 else
3251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3252 $as_echo "no" >&6; }
3253 fi
3254
3255
3256   fi
3257 fi
3258 if test -z "$CC"; then
3259   # Extract the first word of "cc", so it can be a program name with args.
3260 set dummy cc; ac_word=$2
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3262 $as_echo_n "checking for $ac_word... " >&6; }
3263 if test "${ac_cv_prog_CC+set}" = set; then :
3264   $as_echo_n "(cached) " >&6
3265 else
3266   if test -n "$CC"; then
3267   ac_cv_prog_CC="$CC" # Let the user override the test.
3268 else
3269   ac_prog_rejected=no
3270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3271 for as_dir in $PATH
3272 do
3273   IFS=$as_save_IFS
3274   test -z "$as_dir" && as_dir=.
3275     for ac_exec_ext in '' $ac_executable_extensions; do
3276   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3277     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3278        ac_prog_rejected=yes
3279        continue
3280      fi
3281     ac_cv_prog_CC="cc"
3282     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3283     break 2
3284   fi
3285 done
3286   done
3287 IFS=$as_save_IFS
3288
3289 if test $ac_prog_rejected = yes; then
3290   # We found a bogon in the path, so make sure we never use it.
3291   set dummy $ac_cv_prog_CC
3292   shift
3293   if test $# != 0; then
3294     # We chose a different compiler from the bogus one.
3295     # However, it has the same basename, so the bogon will be chosen
3296     # first if we set CC to just the basename; use the full file name.
3297     shift
3298     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3299   fi
3300 fi
3301 fi
3302 fi
3303 CC=$ac_cv_prog_CC
3304 if test -n "$CC"; then
3305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3306 $as_echo "$CC" >&6; }
3307 else
3308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3309 $as_echo "no" >&6; }
3310 fi
3311
3312
3313 fi
3314 if test -z "$CC"; then
3315   if test -n "$ac_tool_prefix"; then
3316   for ac_prog in cl.exe
3317   do
3318     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3319 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3321 $as_echo_n "checking for $ac_word... " >&6; }
3322 if test "${ac_cv_prog_CC+set}" = set; then :
3323   $as_echo_n "(cached) " >&6
3324 else
3325   if test -n "$CC"; then
3326   ac_cv_prog_CC="$CC" # Let the user override the test.
3327 else
3328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3329 for as_dir in $PATH
3330 do
3331   IFS=$as_save_IFS
3332   test -z "$as_dir" && as_dir=.
3333     for ac_exec_ext in '' $ac_executable_extensions; do
3334   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3335     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3337     break 2
3338   fi
3339 done
3340   done
3341 IFS=$as_save_IFS
3342
3343 fi
3344 fi
3345 CC=$ac_cv_prog_CC
3346 if test -n "$CC"; then
3347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3348 $as_echo "$CC" >&6; }
3349 else
3350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3351 $as_echo "no" >&6; }
3352 fi
3353
3354
3355     test -n "$CC" && break
3356   done
3357 fi
3358 if test -z "$CC"; then
3359   ac_ct_CC=$CC
3360   for ac_prog in cl.exe
3361 do
3362   # Extract the first word of "$ac_prog", so it can be a program name with args.
3363 set dummy $ac_prog; ac_word=$2
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3365 $as_echo_n "checking for $ac_word... " >&6; }
3366 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3367   $as_echo_n "(cached) " >&6
3368 else
3369   if test -n "$ac_ct_CC"; then
3370   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3371 else
3372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373 for as_dir in $PATH
3374 do
3375   IFS=$as_save_IFS
3376   test -z "$as_dir" && as_dir=.
3377     for ac_exec_ext in '' $ac_executable_extensions; do
3378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3379     ac_cv_prog_ac_ct_CC="$ac_prog"
3380     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3381     break 2
3382   fi
3383 done
3384   done
3385 IFS=$as_save_IFS
3386
3387 fi
3388 fi
3389 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3390 if test -n "$ac_ct_CC"; then
3391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3392 $as_echo "$ac_ct_CC" >&6; }
3393 else
3394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3395 $as_echo "no" >&6; }
3396 fi
3397
3398
3399   test -n "$ac_ct_CC" && break
3400 done
3401
3402   if test "x$ac_ct_CC" = x; then
3403     CC=""
3404   else
3405     case $cross_compiling:$ac_tool_warned in
3406 yes:)
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3408 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3409 ac_tool_warned=yes ;;
3410 esac
3411     CC=$ac_ct_CC
3412   fi
3413 fi
3414
3415 fi
3416
3417
3418 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3419 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3420 as_fn_error "no acceptable C compiler found in \$PATH
3421 See \`config.log' for more details." "$LINENO" 5; }
3422
3423 # Provide some information about the compiler.
3424 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3425 set X $ac_compile
3426 ac_compiler=$2
3427 for ac_option in --version -v -V -qversion; do
3428   { { ac_try="$ac_compiler $ac_option >&5"
3429 case "(($ac_try" in
3430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431   *) ac_try_echo=$ac_try;;
3432 esac
3433 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3434 $as_echo "$ac_try_echo"; } >&5
3435   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3436   ac_status=$?
3437   if test -s conftest.err; then
3438     sed '10a\
3439 ... rest of stderr output deleted ...
3440          10q' conftest.err >conftest.er1
3441     cat conftest.er1 >&5
3442     rm -f conftest.er1 conftest.err
3443   fi
3444   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3445   test $ac_status = 0; }
3446 done
3447
3448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3449 /* end confdefs.h.  */
3450 #include <stdio.h>
3451 int
3452 main ()
3453 {
3454 FILE *f = fopen ("conftest.out", "w");
3455  return ferror (f) || fclose (f) != 0;
3456
3457   ;
3458   return 0;
3459 }
3460 _ACEOF
3461 ac_clean_files_save=$ac_clean_files
3462 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3463 # Try to create an executable without -o first, disregard a.out.
3464 # It will help us diagnose broken compilers, and finding out an intuition
3465 # of exeext.
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3467 $as_echo_n "checking for C compiler default output file name... " >&6; }
3468 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3469
3470 # The possible output files:
3471 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3472
3473 ac_rmfiles=
3474 for ac_file in $ac_files
3475 do
3476   case $ac_file in
3477     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3478     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3479   esac
3480 done
3481 rm -f $ac_rmfiles
3482
3483 if { { ac_try="$ac_link_default"
3484 case "(($ac_try" in
3485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486   *) ac_try_echo=$ac_try;;
3487 esac
3488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3489 $as_echo "$ac_try_echo"; } >&5
3490   (eval "$ac_link_default") 2>&5
3491   ac_status=$?
3492   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3493   test $ac_status = 0; }; then :
3494   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3495 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3496 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3497 # so that the user can short-circuit this test for compilers unknown to
3498 # Autoconf.
3499 for ac_file in $ac_files ''
3500 do
3501   test -f "$ac_file" || continue
3502   case $ac_file in
3503     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3504         ;;
3505     [ab].out )
3506         # We found the default executable, but exeext='' is most
3507         # certainly right.
3508         break;;
3509     *.* )
3510         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3511         then :; else
3512            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3513         fi
3514         # We set ac_cv_exeext here because the later test for it is not
3515         # safe: cross compilers may not add the suffix if given an `-o'
3516         # argument, so we may need to know it at that point already.
3517         # Even if this section looks crufty: it has the advantage of
3518         # actually working.
3519         break;;
3520     * )
3521         break;;
3522   esac
3523 done
3524 test "$ac_cv_exeext" = no && ac_cv_exeext=
3525
3526 else
3527   ac_file=''
3528 fi
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3530 $as_echo "$ac_file" >&6; }
3531 if test -z "$ac_file"; then :
3532   $as_echo "$as_me: failed program was:" >&5
3533 sed 's/^/| /' conftest.$ac_ext >&5
3534
3535 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3537 { as_fn_set_status 77
3538 as_fn_error "C compiler cannot create executables
3539 See \`config.log' for more details." "$LINENO" 5; }; }
3540 fi
3541 ac_exeext=$ac_cv_exeext
3542
3543 # Check that the compiler produces executables we can run.  If not, either
3544 # the compiler is broken, or we cross compile.
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3546 $as_echo_n "checking whether the C compiler works... " >&6; }
3547 # If not cross compiling, check that we can run a simple program.
3548 if test "$cross_compiling" != yes; then
3549   if { ac_try='./$ac_file'
3550   { { case "(($ac_try" in
3551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3552   *) ac_try_echo=$ac_try;;
3553 esac
3554 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3555 $as_echo "$ac_try_echo"; } >&5
3556   (eval "$ac_try") 2>&5
3557   ac_status=$?
3558   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3559   test $ac_status = 0; }; }; then
3560     cross_compiling=no
3561   else
3562     if test "$cross_compiling" = maybe; then
3563         cross_compiling=yes
3564     else
3565         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3567 as_fn_error "cannot run C compiled programs.
3568 If you meant to cross compile, use \`--host'.
3569 See \`config.log' for more details." "$LINENO" 5; }
3570     fi
3571   fi
3572 fi
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3574 $as_echo "yes" >&6; }
3575
3576 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3577 ac_clean_files=$ac_clean_files_save
3578 # Check that the compiler produces executables we can run.  If not, either
3579 # the compiler is broken, or we cross compile.
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3581 $as_echo_n "checking whether we are cross compiling... " >&6; }
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3583 $as_echo "$cross_compiling" >&6; }
3584
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3586 $as_echo_n "checking for suffix of executables... " >&6; }
3587 if { { ac_try="$ac_link"
3588 case "(($ac_try" in
3589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3590   *) ac_try_echo=$ac_try;;
3591 esac
3592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3593 $as_echo "$ac_try_echo"; } >&5
3594   (eval "$ac_link") 2>&5
3595   ac_status=$?
3596   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3597   test $ac_status = 0; }; then :
3598   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3599 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3600 # work properly (i.e., refer to `conftest.exe'), while it won't with
3601 # `rm'.
3602 for ac_file in conftest.exe conftest conftest.*; do
3603   test -f "$ac_file" || continue
3604   case $ac_file in
3605     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3606     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3607           break;;
3608     * ) break;;
3609   esac
3610 done
3611 else
3612   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3613 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3614 as_fn_error "cannot compute suffix of executables: cannot compile and link
3615 See \`config.log' for more details." "$LINENO" 5; }
3616 fi
3617 rm -f conftest$ac_cv_exeext
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3619 $as_echo "$ac_cv_exeext" >&6; }
3620
3621 rm -f conftest.$ac_ext
3622 EXEEXT=$ac_cv_exeext
3623 ac_exeext=$EXEEXT
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3625 $as_echo_n "checking for suffix of object files... " >&6; }
3626 if test "${ac_cv_objext+set}" = set; then :
3627   $as_echo_n "(cached) " >&6
3628 else
3629   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3630 /* end confdefs.h.  */
3631
3632 int
3633 main ()
3634 {
3635
3636   ;
3637   return 0;
3638 }
3639 _ACEOF
3640 rm -f conftest.o conftest.obj
3641 if { { ac_try="$ac_compile"
3642 case "(($ac_try" in
3643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3644   *) ac_try_echo=$ac_try;;
3645 esac
3646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3647 $as_echo "$ac_try_echo"; } >&5
3648   (eval "$ac_compile") 2>&5
3649   ac_status=$?
3650   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3651   test $ac_status = 0; }; then :
3652   for ac_file in conftest.o conftest.obj conftest.*; do
3653   test -f "$ac_file" || continue;
3654   case $ac_file in
3655     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3656     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3657        break;;
3658   esac
3659 done
3660 else
3661   $as_echo "$as_me: failed program was:" >&5
3662 sed 's/^/| /' conftest.$ac_ext >&5
3663
3664 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3665 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3666 as_fn_error "cannot compute suffix of object files: cannot compile
3667 See \`config.log' for more details." "$LINENO" 5; }
3668 fi
3669 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3670 fi
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3672 $as_echo "$ac_cv_objext" >&6; }
3673 OBJEXT=$ac_cv_objext
3674 ac_objext=$OBJEXT
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3676 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3677 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3678   $as_echo_n "(cached) " >&6
3679 else
3680   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3681 /* end confdefs.h.  */
3682
3683 int
3684 main ()
3685 {
3686 #ifndef __GNUC__
3687        choke me
3688 #endif
3689
3690   ;
3691   return 0;
3692 }
3693 _ACEOF
3694 if ac_fn_c_try_compile "$LINENO"; then :
3695   ac_compiler_gnu=yes
3696 else
3697   ac_compiler_gnu=no
3698 fi
3699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3700 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3701
3702 fi
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3704 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3705 if test $ac_compiler_gnu = yes; then
3706   GCC=yes
3707 else
3708   GCC=
3709 fi
3710 ac_test_CFLAGS=${CFLAGS+set}
3711 ac_save_CFLAGS=$CFLAGS
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3713 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3714 if test "${ac_cv_prog_cc_g+set}" = set; then :
3715   $as_echo_n "(cached) " >&6
3716 else
3717   ac_save_c_werror_flag=$ac_c_werror_flag
3718    ac_c_werror_flag=yes
3719    ac_cv_prog_cc_g=no
3720    CFLAGS="-g"
3721    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3722 /* end confdefs.h.  */
3723
3724 int
3725 main ()
3726 {
3727
3728   ;
3729   return 0;
3730 }
3731 _ACEOF
3732 if ac_fn_c_try_compile "$LINENO"; then :
3733   ac_cv_prog_cc_g=yes
3734 else
3735   CFLAGS=""
3736       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3737 /* end confdefs.h.  */
3738
3739 int
3740 main ()
3741 {
3742
3743   ;
3744   return 0;
3745 }
3746 _ACEOF
3747 if ac_fn_c_try_compile "$LINENO"; then :
3748
3749 else
3750   ac_c_werror_flag=$ac_save_c_werror_flag
3751          CFLAGS="-g"
3752          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3753 /* end confdefs.h.  */
3754
3755 int
3756 main ()
3757 {
3758
3759   ;
3760   return 0;
3761 }
3762 _ACEOF
3763 if ac_fn_c_try_compile "$LINENO"; then :
3764   ac_cv_prog_cc_g=yes
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 fi
3770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3771    ac_c_werror_flag=$ac_save_c_werror_flag
3772 fi
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3774 $as_echo "$ac_cv_prog_cc_g" >&6; }
3775 if test "$ac_test_CFLAGS" = set; then
3776   CFLAGS=$ac_save_CFLAGS
3777 elif test $ac_cv_prog_cc_g = yes; then
3778   if test "$GCC" = yes; then
3779     CFLAGS="-g -O2"
3780   else
3781     CFLAGS="-g"
3782   fi
3783 else
3784   if test "$GCC" = yes; then
3785     CFLAGS="-O2"
3786   else
3787     CFLAGS=
3788   fi
3789 fi
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3791 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3792 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3793   $as_echo_n "(cached) " >&6
3794 else
3795   ac_cv_prog_cc_c89=no
3796 ac_save_CC=$CC
3797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3798 /* end confdefs.h.  */
3799 #include <stdarg.h>
3800 #include <stdio.h>
3801 #include <sys/types.h>
3802 #include <sys/stat.h>
3803 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3804 struct buf { int x; };
3805 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3806 static char *e (p, i)
3807      char **p;
3808      int i;
3809 {
3810   return p[i];
3811 }
3812 static char *f (char * (*g) (char **, int), char **p, ...)
3813 {
3814   char *s;
3815   va_list v;
3816   va_start (v,p);
3817   s = g (p, va_arg (v,int));
3818   va_end (v);
3819   return s;
3820 }
3821
3822 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3823    function prototypes and stuff, but not '\xHH' hex character constants.
3824    These don't provoke an error unfortunately, instead are silently treated
3825    as 'x'.  The following induces an error, until -std is added to get
3826    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3827    array size at least.  It's necessary to write '\x00'==0 to get something
3828    that's true only with -std.  */
3829 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3830
3831 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3832    inside strings and character constants.  */
3833 #define FOO(x) 'x'
3834 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3835
3836 int test (int i, double x);
3837 struct s1 {int (*f) (int a);};
3838 struct s2 {int (*f) (double a);};
3839 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3840 int argc;
3841 char **argv;
3842 int
3843 main ()
3844 {
3845 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3846   ;
3847   return 0;
3848 }
3849 _ACEOF
3850 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3851         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3852 do
3853   CC="$ac_save_CC $ac_arg"
3854   if ac_fn_c_try_compile "$LINENO"; then :
3855   ac_cv_prog_cc_c89=$ac_arg
3856 fi
3857 rm -f core conftest.err conftest.$ac_objext
3858   test "x$ac_cv_prog_cc_c89" != "xno" && break
3859 done
3860 rm -f conftest.$ac_ext
3861 CC=$ac_save_CC
3862
3863 fi
3864 # AC_CACHE_VAL
3865 case "x$ac_cv_prog_cc_c89" in
3866   x)
3867     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3868 $as_echo "none needed" >&6; } ;;
3869   xno)
3870     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3871 $as_echo "unsupported" >&6; } ;;
3872   *)
3873     CC="$CC $ac_cv_prog_cc_c89"
3874     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3875 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3876 esac
3877 if test "x$ac_cv_prog_cc_c89" != xno; then :
3878
3879 fi
3880
3881 ac_ext=c
3882 ac_cpp='$CPP $CPPFLAGS'
3883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3886 DEPDIR="${am__leading_dot}deps"
3887
3888 ac_config_commands="$ac_config_commands depfiles"
3889
3890
3891 am_make=${MAKE-make}
3892 cat > confinc << 'END'
3893 am__doit:
3894         @echo done
3895 .PHONY: am__doit
3896 END
3897 # If we don't find an include directive, just comment out the code.
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3899 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3900 am__include="#"
3901 am__quote=
3902 _am_result=none
3903 # First try GNU make style include.
3904 echo "include confinc" > confmf
3905 # We grep out `Entering directory' and `Leaving directory'
3906 # messages which can occur if `w' ends up in MAKEFLAGS.
3907 # In particular we don't look at `^make:' because GNU make might
3908 # be invoked under some other name (usually "gmake"), in which
3909 # case it prints its new name instead of `make'.
3910 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3911    am__include=include
3912    am__quote=
3913    _am_result=GNU
3914 fi
3915 # Now try BSD make style include.
3916 if test "$am__include" = "#"; then
3917    echo '.include "confinc"' > confmf
3918    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3919       am__include=.include
3920       am__quote="\""
3921       _am_result=BSD
3922    fi
3923 fi
3924
3925
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3927 $as_echo "$_am_result" >&6; }
3928 rm -f confinc confmf
3929
3930 # Check whether --enable-dependency-tracking was given.
3931 if test "${enable_dependency_tracking+set}" = set; then :
3932   enableval=$enable_dependency_tracking;
3933 fi
3934
3935 if test "x$enable_dependency_tracking" != xno; then
3936   am_depcomp="$ac_aux_dir/depcomp"
3937   AMDEPBACKSLASH='\'
3938 fi
3939
3940
3941 if test "x$enable_dependency_tracking" != xno; then
3942   AMDEP_TRUE=
3943   AMDEP_FALSE='#'
3944 else
3945   AMDEP_TRUE='#'
3946   AMDEP_FALSE=
3947 fi
3948
3949
3950
3951
3952 depcc="$CC"   am_compiler_list=
3953
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3955 $as_echo_n "checking dependency style of $depcc... " >&6; }
3956 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3957   $as_echo_n "(cached) " >&6
3958 else
3959   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3960   # We make a subdir and do the tests there.  Otherwise we can end up
3961   # making bogus files that we don't know about and never remove.  For
3962   # instance it was reported that on HP-UX the gcc test will end up
3963   # making a dummy file named `D' -- because `-MD' means `put the output
3964   # in D'.
3965   mkdir conftest.dir
3966   # Copy depcomp to subdir because otherwise we won't find it if we're
3967   # using a relative directory.
3968   cp "$am_depcomp" conftest.dir
3969   cd conftest.dir
3970   # We will build objects and dependencies in a subdirectory because
3971   # it helps to detect inapplicable dependency modes.  For instance
3972   # both Tru64's cc and ICC support -MD to output dependencies as a
3973   # side effect of compilation, but ICC will put the dependencies in
3974   # the current directory while Tru64 will put them in the object
3975   # directory.
3976   mkdir sub
3977
3978   am_cv_CC_dependencies_compiler_type=none
3979   if test "$am_compiler_list" = ""; then
3980      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3981   fi
3982   for depmode in $am_compiler_list; do
3983     # Setup a source with many dependencies, because some compilers
3984     # like to wrap large dependency lists on column 80 (with \), and
3985     # we should not choose a depcomp mode which is confused by this.
3986     #
3987     # We need to recreate these files for each test, as the compiler may
3988     # overwrite some of them when testing with obscure command lines.
3989     # This happens at least with the AIX C compiler.
3990     : > sub/conftest.c
3991     for i in 1 2 3 4 5 6; do
3992       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3993       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3994       # Solaris 8's {/usr,}/bin/sh.
3995       touch sub/conftst$i.h
3996     done
3997     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3998
3999     case $depmode in
4000     nosideeffect)
4001       # after this tag, mechanisms are not by side-effect, so they'll
4002       # only be used when explicitly requested
4003       if test "x$enable_dependency_tracking" = xyes; then
4004         continue
4005       else
4006         break
4007       fi
4008       ;;
4009     none) break ;;
4010     esac
4011     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4012     # mode.  It turns out that the SunPro C++ compiler does not properly
4013     # handle `-M -o', and we need to detect this.
4014     if depmode=$depmode \
4015        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4016        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4017        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4018          >/dev/null 2>conftest.err &&
4019        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4020        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4021        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4022       # icc doesn't choke on unknown options, it will just issue warnings
4023       # or remarks (even with -Werror).  So we grep stderr for any message
4024       # that says an option was ignored or not supported.
4025       # When given -MP, icc 7.0 and 7.1 complain thusly:
4026       #   icc: Command line warning: ignoring option '-M'; no argument required
4027       # The diagnosis changed in icc 8.0:
4028       #   icc: Command line remark: option '-MP' not supported
4029       if (grep 'ignoring option' conftest.err ||
4030           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4031         am_cv_CC_dependencies_compiler_type=$depmode
4032         break
4033       fi
4034     fi
4035   done
4036
4037   cd ..
4038   rm -rf conftest.dir
4039 else
4040   am_cv_CC_dependencies_compiler_type=none
4041 fi
4042
4043 fi
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4045 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4046 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4047
4048
4049
4050 if
4051   test "x$enable_dependency_tracking" != xno \
4052   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4053   am__fastdepCC_TRUE=
4054   am__fastdepCC_FALSE='#'
4055 else
4056   am__fastdepCC_TRUE='#'
4057   am__fastdepCC_FALSE=
4058 fi
4059
4060
4061 ac_ext=cpp
4062 ac_cpp='$CXXCPP $CPPFLAGS'
4063 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4064 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4065 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4066 if test -z "$CXX"; then
4067   if test -n "$CCC"; then
4068     CXX=$CCC
4069   else
4070     if test -n "$ac_tool_prefix"; then
4071   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4072   do
4073     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4074 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4076 $as_echo_n "checking for $ac_word... " >&6; }
4077 if test "${ac_cv_prog_CXX+set}" = set; then :
4078   $as_echo_n "(cached) " >&6
4079 else
4080   if test -n "$CXX"; then
4081   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4082 else
4083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4084 for as_dir in $PATH
4085 do
4086   IFS=$as_save_IFS
4087   test -z "$as_dir" && as_dir=.
4088     for ac_exec_ext in '' $ac_executable_extensions; do
4089   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4090     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4091     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4092     break 2
4093   fi
4094 done
4095   done
4096 IFS=$as_save_IFS
4097
4098 fi
4099 fi
4100 CXX=$ac_cv_prog_CXX
4101 if test -n "$CXX"; then
4102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4103 $as_echo "$CXX" >&6; }
4104 else
4105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4106 $as_echo "no" >&6; }
4107 fi
4108
4109
4110     test -n "$CXX" && break
4111   done
4112 fi
4113 if test -z "$CXX"; then
4114   ac_ct_CXX=$CXX
4115   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4116 do
4117   # Extract the first word of "$ac_prog", so it can be a program name with args.
4118 set dummy $ac_prog; ac_word=$2
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4120 $as_echo_n "checking for $ac_word... " >&6; }
4121 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4122   $as_echo_n "(cached) " >&6
4123 else
4124   if test -n "$ac_ct_CXX"; then
4125   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4126 else
4127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128 for as_dir in $PATH
4129 do
4130   IFS=$as_save_IFS
4131   test -z "$as_dir" && as_dir=.
4132     for ac_exec_ext in '' $ac_executable_extensions; do
4133   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4134     ac_cv_prog_ac_ct_CXX="$ac_prog"
4135     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4136     break 2
4137   fi
4138 done
4139   done
4140 IFS=$as_save_IFS
4141
4142 fi
4143 fi
4144 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4145 if test -n "$ac_ct_CXX"; then
4146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4147 $as_echo "$ac_ct_CXX" >&6; }
4148 else
4149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4150 $as_echo "no" >&6; }
4151 fi
4152
4153
4154   test -n "$ac_ct_CXX" && break
4155 done
4156
4157   if test "x$ac_ct_CXX" = x; then
4158     CXX="g++"
4159   else
4160     case $cross_compiling:$ac_tool_warned in
4161 yes:)
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4164 ac_tool_warned=yes ;;
4165 esac
4166     CXX=$ac_ct_CXX
4167   fi
4168 fi
4169
4170   fi
4171 fi
4172 # Provide some information about the compiler.
4173 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4174 set X $ac_compile
4175 ac_compiler=$2
4176 for ac_option in --version -v -V -qversion; do
4177   { { ac_try="$ac_compiler $ac_option >&5"
4178 case "(($ac_try" in
4179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4180   *) ac_try_echo=$ac_try;;
4181 esac
4182 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4183 $as_echo "$ac_try_echo"; } >&5
4184   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4185   ac_status=$?
4186   if test -s conftest.err; then
4187     sed '10a\
4188 ... rest of stderr output deleted ...
4189          10q' conftest.err >conftest.er1
4190     cat conftest.er1 >&5
4191     rm -f conftest.er1 conftest.err
4192   fi
4193   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4194   test $ac_status = 0; }
4195 done
4196
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4198 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4199 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4200   $as_echo_n "(cached) " >&6
4201 else
4202   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4203 /* end confdefs.h.  */
4204
4205 int
4206 main ()
4207 {
4208 #ifndef __GNUC__
4209        choke me
4210 #endif
4211
4212   ;
4213   return 0;
4214 }
4215 _ACEOF
4216 if ac_fn_cxx_try_compile "$LINENO"; then :
4217   ac_compiler_gnu=yes
4218 else
4219   ac_compiler_gnu=no
4220 fi
4221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4222 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4223
4224 fi
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4226 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4227 if test $ac_compiler_gnu = yes; then
4228   GXX=yes
4229 else
4230   GXX=
4231 fi
4232 ac_test_CXXFLAGS=${CXXFLAGS+set}
4233 ac_save_CXXFLAGS=$CXXFLAGS
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4235 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4236 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4237   $as_echo_n "(cached) " >&6
4238 else
4239   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4240    ac_cxx_werror_flag=yes
4241    ac_cv_prog_cxx_g=no
4242    CXXFLAGS="-g"
4243    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4244 /* end confdefs.h.  */
4245
4246 int
4247 main ()
4248 {
4249
4250   ;
4251   return 0;
4252 }
4253 _ACEOF
4254 if ac_fn_cxx_try_compile "$LINENO"; then :
4255   ac_cv_prog_cxx_g=yes
4256 else
4257   CXXFLAGS=""
4258       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4259 /* end confdefs.h.  */
4260
4261 int
4262 main ()
4263 {
4264
4265   ;
4266   return 0;
4267 }
4268 _ACEOF
4269 if ac_fn_cxx_try_compile "$LINENO"; then :
4270
4271 else
4272   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4273          CXXFLAGS="-g"
4274          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4275 /* end confdefs.h.  */
4276
4277 int
4278 main ()
4279 {
4280
4281   ;
4282   return 0;
4283 }
4284 _ACEOF
4285 if ac_fn_cxx_try_compile "$LINENO"; then :
4286   ac_cv_prog_cxx_g=yes
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 fi
4292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4293    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4294 fi
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4296 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4297 if test "$ac_test_CXXFLAGS" = set; then
4298   CXXFLAGS=$ac_save_CXXFLAGS
4299 elif test $ac_cv_prog_cxx_g = yes; then
4300   if test "$GXX" = yes; then
4301     CXXFLAGS="-g -O2"
4302   else
4303     CXXFLAGS="-g"
4304   fi
4305 else
4306   if test "$GXX" = yes; then
4307     CXXFLAGS="-O2"
4308   else
4309     CXXFLAGS=
4310   fi
4311 fi
4312 ac_ext=c
4313 ac_cpp='$CPP $CPPFLAGS'
4314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4317
4318 depcc="$CXX"  am_compiler_list=
4319
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4321 $as_echo_n "checking dependency style of $depcc... " >&6; }
4322 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4323   $as_echo_n "(cached) " >&6
4324 else
4325   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4326   # We make a subdir and do the tests there.  Otherwise we can end up
4327   # making bogus files that we don't know about and never remove.  For
4328   # instance it was reported that on HP-UX the gcc test will end up
4329   # making a dummy file named `D' -- because `-MD' means `put the output
4330   # in D'.
4331   mkdir conftest.dir
4332   # Copy depcomp to subdir because otherwise we won't find it if we're
4333   # using a relative directory.
4334   cp "$am_depcomp" conftest.dir
4335   cd conftest.dir
4336   # We will build objects and dependencies in a subdirectory because
4337   # it helps to detect inapplicable dependency modes.  For instance
4338   # both Tru64's cc and ICC support -MD to output dependencies as a
4339   # side effect of compilation, but ICC will put the dependencies in
4340   # the current directory while Tru64 will put them in the object
4341   # directory.
4342   mkdir sub
4343
4344   am_cv_CXX_dependencies_compiler_type=none
4345   if test "$am_compiler_list" = ""; then
4346      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4347   fi
4348   for depmode in $am_compiler_list; do
4349     # Setup a source with many dependencies, because some compilers
4350     # like to wrap large dependency lists on column 80 (with \), and
4351     # we should not choose a depcomp mode which is confused by this.
4352     #
4353     # We need to recreate these files for each test, as the compiler may
4354     # overwrite some of them when testing with obscure command lines.
4355     # This happens at least with the AIX C compiler.
4356     : > sub/conftest.c
4357     for i in 1 2 3 4 5 6; do
4358       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4359       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4360       # Solaris 8's {/usr,}/bin/sh.
4361       touch sub/conftst$i.h
4362     done
4363     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4364
4365     case $depmode in
4366     nosideeffect)
4367       # after this tag, mechanisms are not by side-effect, so they'll
4368       # only be used when explicitly requested
4369       if test "x$enable_dependency_tracking" = xyes; then
4370         continue
4371       else
4372         break
4373       fi
4374       ;;
4375     none) break ;;
4376     esac
4377     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4378     # mode.  It turns out that the SunPro C++ compiler does not properly
4379     # handle `-M -o', and we need to detect this.
4380     if depmode=$depmode \
4381        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4382        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4383        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4384          >/dev/null 2>conftest.err &&
4385        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4386        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4387        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4388       # icc doesn't choke on unknown options, it will just issue warnings
4389       # or remarks (even with -Werror).  So we grep stderr for any message
4390       # that says an option was ignored or not supported.
4391       # When given -MP, icc 7.0 and 7.1 complain thusly:
4392       #   icc: Command line warning: ignoring option '-M'; no argument required
4393       # The diagnosis changed in icc 8.0:
4394       #   icc: Command line remark: option '-MP' not supported
4395       if (grep 'ignoring option' conftest.err ||
4396           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4397         am_cv_CXX_dependencies_compiler_type=$depmode
4398         break
4399       fi
4400     fi
4401   done
4402
4403   cd ..
4404   rm -rf conftest.dir
4405 else
4406   am_cv_CXX_dependencies_compiler_type=none
4407 fi
4408
4409 fi
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4411 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4412 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4413
4414
4415
4416 if
4417   test "x$enable_dependency_tracking" != xno \
4418   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4419   am__fastdepCXX_TRUE=
4420   am__fastdepCXX_FALSE='#'
4421 else
4422   am__fastdepCXX_TRUE='#'
4423   am__fastdepCXX_FALSE=
4424 fi
4425
4426
4427
4428 ac_ext=c
4429 ac_cpp='$CPP $CPPFLAGS'
4430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4434 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4435 # On Suns, sometimes $CPP names a directory.
4436 if test -n "$CPP" && test -d "$CPP"; then
4437   CPP=
4438 fi
4439 if test -z "$CPP"; then
4440   if test "${ac_cv_prog_CPP+set}" = set; then :
4441   $as_echo_n "(cached) " >&6
4442 else
4443       # Double quotes because CPP needs to be expanded
4444     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4445     do
4446       ac_preproc_ok=false
4447 for ac_c_preproc_warn_flag in '' yes
4448 do
4449   # Use a header file that comes with gcc, so configuring glibc
4450   # with a fresh cross-compiler works.
4451   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4452   # <limits.h> exists even on freestanding compilers.
4453   # On the NeXT, cc -E runs the code through the compiler's parser,
4454   # not just through cpp. "Syntax error" is here to catch this case.
4455   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4456 /* end confdefs.h.  */
4457 #ifdef __STDC__
4458 # include <limits.h>
4459 #else
4460 # include <assert.h>
4461 #endif
4462                      Syntax error
4463 _ACEOF
4464 if ac_fn_c_try_cpp "$LINENO"; then :
4465
4466 else
4467   # Broken: fails on valid input.
4468 continue
4469 fi
4470 rm -f conftest.err conftest.$ac_ext
4471
4472   # OK, works on sane cases.  Now check whether nonexistent headers
4473   # can be detected and how.
4474   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4475 /* end confdefs.h.  */
4476 #include <ac_nonexistent.h>
4477 _ACEOF
4478 if ac_fn_c_try_cpp "$LINENO"; then :
4479   # Broken: success on invalid input.
4480 continue
4481 else
4482   # Passes both tests.
4483 ac_preproc_ok=:
4484 break
4485 fi
4486 rm -f conftest.err conftest.$ac_ext
4487
4488 done
4489 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4490 rm -f conftest.err conftest.$ac_ext
4491 if $ac_preproc_ok; then :
4492   break
4493 fi
4494
4495     done
4496     ac_cv_prog_CPP=$CPP
4497
4498 fi
4499   CPP=$ac_cv_prog_CPP
4500 else
4501   ac_cv_prog_CPP=$CPP
4502 fi
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4504 $as_echo "$CPP" >&6; }
4505 ac_preproc_ok=false
4506 for ac_c_preproc_warn_flag in '' yes
4507 do
4508   # Use a header file that comes with gcc, so configuring glibc
4509   # with a fresh cross-compiler works.
4510   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4511   # <limits.h> exists even on freestanding compilers.
4512   # On the NeXT, cc -E runs the code through the compiler's parser,
4513   # not just through cpp. "Syntax error" is here to catch this case.
4514   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4515 /* end confdefs.h.  */
4516 #ifdef __STDC__
4517 # include <limits.h>
4518 #else
4519 # include <assert.h>
4520 #endif
4521                      Syntax error
4522 _ACEOF
4523 if ac_fn_c_try_cpp "$LINENO"; then :
4524
4525 else
4526   # Broken: fails on valid input.
4527 continue
4528 fi
4529 rm -f conftest.err conftest.$ac_ext
4530
4531   # OK, works on sane cases.  Now check whether nonexistent headers
4532   # can be detected and how.
4533   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534 /* end confdefs.h.  */
4535 #include <ac_nonexistent.h>
4536 _ACEOF
4537 if ac_fn_c_try_cpp "$LINENO"; then :
4538   # Broken: success on invalid input.
4539 continue
4540 else
4541   # Passes both tests.
4542 ac_preproc_ok=:
4543 break
4544 fi
4545 rm -f conftest.err conftest.$ac_ext
4546
4547 done
4548 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4549 rm -f conftest.err conftest.$ac_ext
4550 if $ac_preproc_ok; then :
4551
4552 else
4553   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4555 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4556 See \`config.log' for more details." "$LINENO" 5; }
4557 fi
4558
4559 ac_ext=c
4560 ac_cpp='$CPP $CPPFLAGS'
4561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4564
4565
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4567 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4568 if test "${ac_cv_path_GREP+set}" = set; then :
4569   $as_echo_n "(cached) " >&6
4570 else
4571   if test -z "$GREP"; then
4572   ac_path_GREP_found=false
4573   # Loop through the user's path and test for each of PROGNAME-LIST
4574   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4576 do
4577   IFS=$as_save_IFS
4578   test -z "$as_dir" && as_dir=.
4579     for ac_prog in grep ggrep; do
4580     for ac_exec_ext in '' $ac_executable_extensions; do
4581       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4582       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4583 # Check for GNU ac_path_GREP and select it if it is found.
4584   # Check for GNU $ac_path_GREP
4585 case `"$ac_path_GREP" --version 2>&1` in
4586 *GNU*)
4587   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4588 *)
4589   ac_count=0
4590   $as_echo_n 0123456789 >"conftest.in"
4591   while :
4592   do
4593     cat "conftest.in" "conftest.in" >"conftest.tmp"
4594     mv "conftest.tmp" "conftest.in"
4595     cp "conftest.in" "conftest.nl"
4596     $as_echo 'GREP' >> "conftest.nl"
4597     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4598     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4599     as_fn_arith $ac_count + 1 && ac_count=$as_val
4600     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4601       # Best one so far, save it but keep looking for a better one
4602       ac_cv_path_GREP="$ac_path_GREP"
4603       ac_path_GREP_max=$ac_count
4604     fi
4605     # 10*(2^10) chars as input seems more than enough
4606     test $ac_count -gt 10 && break
4607   done
4608   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4609 esac
4610
4611       $ac_path_GREP_found && break 3
4612     done
4613   done
4614   done
4615 IFS=$as_save_IFS
4616   if test -z "$ac_cv_path_GREP"; then
4617     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4618   fi
4619 else
4620   ac_cv_path_GREP=$GREP
4621 fi
4622
4623 fi
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4625 $as_echo "$ac_cv_path_GREP" >&6; }
4626  GREP="$ac_cv_path_GREP"
4627
4628
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4630 $as_echo_n "checking for egrep... " >&6; }
4631 if test "${ac_cv_path_EGREP+set}" = set; then :
4632   $as_echo_n "(cached) " >&6
4633 else
4634   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4635    then ac_cv_path_EGREP="$GREP -E"
4636    else
4637      if test -z "$EGREP"; then
4638   ac_path_EGREP_found=false
4639   # Loop through the user's path and test for each of PROGNAME-LIST
4640   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4642 do
4643   IFS=$as_save_IFS
4644   test -z "$as_dir" && as_dir=.
4645     for ac_prog in egrep; do
4646     for ac_exec_ext in '' $ac_executable_extensions; do
4647       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4648       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4649 # Check for GNU ac_path_EGREP and select it if it is found.
4650   # Check for GNU $ac_path_EGREP
4651 case `"$ac_path_EGREP" --version 2>&1` in
4652 *GNU*)
4653   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4654 *)
4655   ac_count=0
4656   $as_echo_n 0123456789 >"conftest.in"
4657   while :
4658   do
4659     cat "conftest.in" "conftest.in" >"conftest.tmp"
4660     mv "conftest.tmp" "conftest.in"
4661     cp "conftest.in" "conftest.nl"
4662     $as_echo 'EGREP' >> "conftest.nl"
4663     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4664     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4665     as_fn_arith $ac_count + 1 && ac_count=$as_val
4666     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4667       # Best one so far, save it but keep looking for a better one
4668       ac_cv_path_EGREP="$ac_path_EGREP"
4669       ac_path_EGREP_max=$ac_count
4670     fi
4671     # 10*(2^10) chars as input seems more than enough
4672     test $ac_count -gt 10 && break
4673   done
4674   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4675 esac
4676
4677       $ac_path_EGREP_found && break 3
4678     done
4679   done
4680   done
4681 IFS=$as_save_IFS
4682   if test -z "$ac_cv_path_EGREP"; then
4683     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4684   fi
4685 else
4686   ac_cv_path_EGREP=$EGREP
4687 fi
4688
4689    fi
4690 fi
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4692 $as_echo "$ac_cv_path_EGREP" >&6; }
4693  EGREP="$ac_cv_path_EGREP"
4694
4695
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4697 $as_echo_n "checking for ANSI C header files... " >&6; }
4698 if test "${ac_cv_header_stdc+set}" = set; then :
4699   $as_echo_n "(cached) " >&6
4700 else
4701   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4702 /* end confdefs.h.  */
4703 #include <stdlib.h>
4704 #include <stdarg.h>
4705 #include <string.h>
4706 #include <float.h>
4707
4708 int
4709 main ()
4710 {
4711
4712   ;
4713   return 0;
4714 }
4715 _ACEOF
4716 if ac_fn_c_try_compile "$LINENO"; then :
4717   ac_cv_header_stdc=yes
4718 else
4719   ac_cv_header_stdc=no
4720 fi
4721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4722
4723 if test $ac_cv_header_stdc = yes; then
4724   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4725   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4726 /* end confdefs.h.  */
4727 #include <string.h>
4728
4729 _ACEOF
4730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4731   $EGREP "memchr" >/dev/null 2>&1; then :
4732
4733 else
4734   ac_cv_header_stdc=no
4735 fi
4736 rm -f conftest*
4737
4738 fi
4739
4740 if test $ac_cv_header_stdc = yes; then
4741   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4742   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4743 /* end confdefs.h.  */
4744 #include <stdlib.h>
4745
4746 _ACEOF
4747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4748   $EGREP "free" >/dev/null 2>&1; then :
4749
4750 else
4751   ac_cv_header_stdc=no
4752 fi
4753 rm -f conftest*
4754
4755 fi
4756
4757 if test $ac_cv_header_stdc = yes; then
4758   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4759   if test "$cross_compiling" = yes; then :
4760   :
4761 else
4762   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4763 /* end confdefs.h.  */
4764 #include <ctype.h>
4765 #include <stdlib.h>
4766 #if ((' ' & 0x0FF) == 0x020)
4767 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4768 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4769 #else
4770 # define ISLOWER(c) \
4771                    (('a' <= (c) && (c) <= 'i') \
4772                      || ('j' <= (c) && (c) <= 'r') \
4773                      || ('s' <= (c) && (c) <= 'z'))
4774 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4775 #endif
4776
4777 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4778 int
4779 main ()
4780 {
4781   int i;
4782   for (i = 0; i < 256; i++)
4783     if (XOR (islower (i), ISLOWER (i))
4784         || toupper (i) != TOUPPER (i))
4785       return 2;
4786   return 0;
4787 }
4788 _ACEOF
4789 if ac_fn_c_try_run "$LINENO"; then :
4790
4791 else
4792   ac_cv_header_stdc=no
4793 fi
4794 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4795   conftest.$ac_objext conftest.beam conftest.$ac_ext
4796 fi
4797
4798 fi
4799 fi
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4801 $as_echo "$ac_cv_header_stdc" >&6; }
4802 if test $ac_cv_header_stdc = yes; then
4803
4804 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4805
4806 fi
4807
4808 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4809 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4810                   inttypes.h stdint.h unistd.h
4811 do :
4812   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4813 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4814 "
4815 eval as_val=\$$as_ac_Header
4816    if test "x$as_val" = x""yes; then :
4817   cat >>confdefs.h <<_ACEOF
4818 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4819 _ACEOF
4820
4821 fi
4822
4823 done
4824
4825
4826  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4827 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4828 if test "${ac_cv_c_bigendian+set}" = set; then :
4829   $as_echo_n "(cached) " >&6
4830 else
4831   ac_cv_c_bigendian=unknown
4832     # See if we're dealing with a universal compiler.
4833     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4834 /* end confdefs.h.  */
4835 #ifndef __APPLE_CC__
4836                not a universal capable compiler
4837              #endif
4838              typedef int dummy;
4839
4840 _ACEOF
4841 if ac_fn_c_try_compile "$LINENO"; then :
4842
4843         # Check for potential -arch flags.  It is not universal unless
4844         # there are at least two -arch flags with different values.
4845         ac_arch=
4846         ac_prev=
4847         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4848          if test -n "$ac_prev"; then
4849            case $ac_word in
4850              i?86 | x86_64 | ppc | ppc64)
4851                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4852                  ac_arch=$ac_word
4853                else
4854                  ac_cv_c_bigendian=universal
4855                  break
4856                fi
4857                ;;
4858            esac
4859            ac_prev=
4860          elif test "x$ac_word" = "x-arch"; then
4861            ac_prev=arch
4862          fi
4863        done
4864 fi
4865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4866     if test $ac_cv_c_bigendian = unknown; then
4867       # See if sys/param.h defines the BYTE_ORDER macro.
4868       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4869 /* end confdefs.h.  */
4870 #include <sys/types.h>
4871              #include <sys/param.h>
4872
4873 int
4874 main ()
4875 {
4876 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4877                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4878                      && LITTLE_ENDIAN)
4879               bogus endian macros
4880              #endif
4881
4882   ;
4883   return 0;
4884 }
4885 _ACEOF
4886 if ac_fn_c_try_compile "$LINENO"; then :
4887   # It does; now see whether it defined to BIG_ENDIAN or not.
4888          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4889 /* end confdefs.h.  */
4890 #include <sys/types.h>
4891                 #include <sys/param.h>
4892
4893 int
4894 main ()
4895 {
4896 #if BYTE_ORDER != BIG_ENDIAN
4897                  not big endian
4898                 #endif
4899
4900   ;
4901   return 0;
4902 }
4903 _ACEOF
4904 if ac_fn_c_try_compile "$LINENO"; then :
4905   ac_cv_c_bigendian=yes
4906 else
4907   ac_cv_c_bigendian=no
4908 fi
4909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4910 fi
4911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4912     fi
4913     if test $ac_cv_c_bigendian = unknown; then
4914       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4915       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4916 /* end confdefs.h.  */
4917 #include <limits.h>
4918
4919 int
4920 main ()
4921 {
4922 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4923               bogus endian macros
4924              #endif
4925
4926   ;
4927   return 0;
4928 }
4929 _ACEOF
4930 if ac_fn_c_try_compile "$LINENO"; then :
4931   # It does; now see whether it defined to _BIG_ENDIAN or not.
4932          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933 /* end confdefs.h.  */
4934 #include <limits.h>
4935
4936 int
4937 main ()
4938 {
4939 #ifndef _BIG_ENDIAN
4940                  not big endian
4941                 #endif
4942
4943   ;
4944   return 0;
4945 }
4946 _ACEOF
4947 if ac_fn_c_try_compile "$LINENO"; then :
4948   ac_cv_c_bigendian=yes
4949 else
4950   ac_cv_c_bigendian=no
4951 fi
4952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4953 fi
4954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4955     fi
4956     if test $ac_cv_c_bigendian = unknown; then
4957       # Compile a test program.
4958       if test "$cross_compiling" = yes; then :
4959   # Try to guess by grepping values from an object file.
4960          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4961 /* end confdefs.h.  */
4962 short int ascii_mm[] =
4963                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4964                 short int ascii_ii[] =
4965                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4966                 int use_ascii (int i) {
4967                   return ascii_mm[i] + ascii_ii[i];
4968                 }
4969                 short int ebcdic_ii[] =
4970                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4971                 short int ebcdic_mm[] =
4972                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4973                 int use_ebcdic (int i) {
4974                   return ebcdic_mm[i] + ebcdic_ii[i];
4975                 }
4976                 extern int foo;
4977
4978 int
4979 main ()
4980 {
4981 return use_ascii (foo) == use_ebcdic (foo);
4982   ;
4983   return 0;
4984 }
4985 _ACEOF
4986 if ac_fn_c_try_compile "$LINENO"; then :
4987   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4988               ac_cv_c_bigendian=yes
4989             fi
4990             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4991               if test "$ac_cv_c_bigendian" = unknown; then
4992                 ac_cv_c_bigendian=no
4993               else
4994                 # finding both strings is unlikely to happen, but who knows?
4995                 ac_cv_c_bigendian=unknown
4996               fi
4997             fi
4998 fi
4999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5000 else
5001   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5002 /* end confdefs.h.  */
5003 $ac_includes_default
5004 int
5005 main ()
5006 {
5007
5008              /* Are we little or big endian?  From Harbison&Steele.  */
5009              union
5010              {
5011                long int l;
5012                char c[sizeof (long int)];
5013              } u;
5014              u.l = 1;
5015              return u.c[sizeof (long int) - 1] == 1;
5016
5017   ;
5018   return 0;
5019 }
5020 _ACEOF
5021 if ac_fn_c_try_run "$LINENO"; then :
5022   ac_cv_c_bigendian=no
5023 else
5024   ac_cv_c_bigendian=yes
5025 fi
5026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5027   conftest.$ac_objext conftest.beam conftest.$ac_ext
5028 fi
5029
5030     fi
5031 fi
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5033 $as_echo "$ac_cv_c_bigendian" >&6; }
5034  case $ac_cv_c_bigendian in #(
5035    yes)
5036      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5037 ;; #(
5038    no)
5039       ;; #(
5040    universal)
5041
5042 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5043
5044      ;; #(
5045    *)
5046      as_fn_error "unknown endianness
5047  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5048  esac
5049
5050
5051 # Extract the first word of "wx-config", so it can be a program name with args.
5052 set dummy wx-config; ac_word=$2
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5054 $as_echo_n "checking for $ac_word... " >&6; }
5055 if test "${ac_cv_path_wxconfig+set}" = set; then :
5056   $as_echo_n "(cached) " >&6
5057 else
5058   case $wxconfig in
5059   [\\/]* | ?:[\\/]*)
5060   ac_cv_path_wxconfig="$wxconfig" # Let the user override the test with a path.
5061   ;;
5062   *)
5063   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5064 for as_dir in $PATH
5065 do
5066   IFS=$as_save_IFS
5067   test -z "$as_dir" && as_dir=.
5068     for ac_exec_ext in '' $ac_executable_extensions; do
5069   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5070     ac_cv_path_wxconfig="$as_dir/$ac_word$ac_exec_ext"
5071     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5072     break 2
5073   fi
5074 done
5075   done
5076 IFS=$as_save_IFS
5077
5078   ;;
5079 esac
5080 fi
5081 wxconfig=$ac_cv_path_wxconfig
5082 if test -n "$wxconfig"; then
5083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wxconfig" >&5
5084 $as_echo "$wxconfig" >&6; }
5085 else
5086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5087 $as_echo "no" >&6; }
5088 fi
5089
5090
5091
5092 # Make sure we can run config.sub.
5093 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5094   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5095
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5097 $as_echo_n "checking build system type... " >&6; }
5098 if test "${ac_cv_build+set}" = set; then :
5099   $as_echo_n "(cached) " >&6
5100 else
5101   ac_build_alias=$build_alias
5102 test "x$ac_build_alias" = x &&
5103   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5104 test "x$ac_build_alias" = x &&
5105   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
5106 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5107   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5108
5109 fi
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5111 $as_echo "$ac_cv_build" >&6; }
5112 case $ac_cv_build in
5113 *-*-*) ;;
5114 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
5115 esac
5116 build=$ac_cv_build
5117 ac_save_IFS=$IFS; IFS='-'
5118 set x $ac_cv_build
5119 shift
5120 build_cpu=$1
5121 build_vendor=$2
5122 shift; shift
5123 # Remember, the first character of IFS is used to create $*,
5124 # except with old shells:
5125 build_os=$*
5126 IFS=$ac_save_IFS
5127 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5128
5129
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5131 $as_echo_n "checking host system type... " >&6; }
5132 if test "${ac_cv_host+set}" = set; then :
5133   $as_echo_n "(cached) " >&6
5134 else
5135   if test "x$host_alias" = x; then
5136   ac_cv_host=$ac_cv_build
5137 else
5138   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5139     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5140 fi
5141
5142 fi
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5144 $as_echo "$ac_cv_host" >&6; }
5145 case $ac_cv_host in
5146 *-*-*) ;;
5147 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
5148 esac
5149 host=$ac_cv_host
5150 ac_save_IFS=$IFS; IFS='-'
5151 set x $ac_cv_host
5152 shift
5153 host_cpu=$1
5154 host_vendor=$2
5155 shift; shift
5156 # Remember, the first character of IFS is used to create $*,
5157 # except with old shells:
5158 host_os=$*
5159 IFS=$ac_save_IFS
5160 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5161
5162
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5164 $as_echo_n "checking for inline... " >&6; }
5165 if test "${ac_cv_c_inline+set}" = set; then :
5166   $as_echo_n "(cached) " >&6
5167 else
5168   ac_cv_c_inline=no
5169 for ac_kw in inline __inline__ __inline; do
5170   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5171 /* end confdefs.h.  */
5172 #ifndef __cplusplus
5173 typedef int foo_t;
5174 static $ac_kw foo_t static_foo () {return 0; }
5175 $ac_kw foo_t foo () {return 0; }
5176 #endif
5177
5178 _ACEOF
5179 if ac_fn_c_try_compile "$LINENO"; then :
5180   ac_cv_c_inline=$ac_kw
5181 fi
5182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5183   test "$ac_cv_c_inline" != no && break
5184 done
5185
5186 fi
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5188 $as_echo "$ac_cv_c_inline" >&6; }
5189
5190 case $ac_cv_c_inline in
5191   inline | yes) ;;
5192   *)
5193     case $ac_cv_c_inline in
5194       no) ac_val=;;
5195       *) ac_val=$ac_cv_c_inline;;
5196     esac
5197     cat >>confdefs.h <<_ACEOF
5198 #ifndef __cplusplus
5199 #define inline $ac_val
5200 #endif
5201 _ACEOF
5202     ;;
5203 esac
5204
5205 # The cast to long int works around a bug in the HP C Compiler
5206 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5207 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5208 # This bug is HP SR number 8606223364.
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5210 $as_echo_n "checking size of short... " >&6; }
5211 if test "${ac_cv_sizeof_short+set}" = set; then :
5212   $as_echo_n "(cached) " >&6
5213 else
5214   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
5215
5216 else
5217   if test "$ac_cv_type_short" = yes; then
5218      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5220 { as_fn_set_status 77
5221 as_fn_error "cannot compute sizeof (short)
5222 See \`config.log' for more details." "$LINENO" 5; }; }
5223    else
5224      ac_cv_sizeof_short=0
5225    fi
5226 fi
5227
5228 fi
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5230 $as_echo "$ac_cv_sizeof_short" >&6; }
5231
5232
5233
5234 cat >>confdefs.h <<_ACEOF
5235 #define SIZEOF_SHORT $ac_cv_sizeof_short
5236 _ACEOF
5237
5238
5239 # The cast to long int works around a bug in the HP C Compiler
5240 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5241 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5242 # This bug is HP SR number 8606223364.
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5244 $as_echo_n "checking size of int... " >&6; }
5245 if test "${ac_cv_sizeof_int+set}" = set; then :
5246   $as_echo_n "(cached) " >&6
5247 else
5248   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
5249
5250 else
5251   if test "$ac_cv_type_int" = yes; then
5252      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5254 { as_fn_set_status 77
5255 as_fn_error "cannot compute sizeof (int)
5256 See \`config.log' for more details." "$LINENO" 5; }; }
5257    else
5258      ac_cv_sizeof_int=0
5259    fi
5260 fi
5261
5262 fi
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5264 $as_echo "$ac_cv_sizeof_int" >&6; }
5265
5266
5267
5268 cat >>confdefs.h <<_ACEOF
5269 #define SIZEOF_INT $ac_cv_sizeof_int
5270 _ACEOF
5271
5272
5273 # The cast to long int works around a bug in the HP C Compiler
5274 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5275 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5276 # This bug is HP SR number 8606223364.
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5278 $as_echo_n "checking size of long... " >&6; }
5279 if test "${ac_cv_sizeof_long+set}" = set; then :
5280   $as_echo_n "(cached) " >&6
5281 else
5282   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
5283
5284 else
5285   if test "$ac_cv_type_long" = yes; then
5286      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5288 { as_fn_set_status 77
5289 as_fn_error "cannot compute sizeof (long)
5290 See \`config.log' for more details." "$LINENO" 5; }; }
5291    else
5292      ac_cv_sizeof_long=0
5293    fi
5294 fi
5295
5296 fi
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5298 $as_echo "$ac_cv_sizeof_long" >&6; }
5299
5300
5301
5302 cat >>confdefs.h <<_ACEOF
5303 #define SIZEOF_LONG $ac_cv_sizeof_long
5304 _ACEOF
5305
5306
5307 # The cast to long int works around a bug in the HP C Compiler
5308 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5309 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5310 # This bug is HP SR number 8606223364.
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
5312 $as_echo_n "checking size of float... " >&6; }
5313 if test "${ac_cv_sizeof_float+set}" = set; then :
5314   $as_echo_n "(cached) " >&6
5315 else
5316   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float"        "$ac_includes_default"; then :
5317
5318 else
5319   if test "$ac_cv_type_float" = yes; then
5320      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5322 { as_fn_set_status 77
5323 as_fn_error "cannot compute sizeof (float)
5324 See \`config.log' for more details." "$LINENO" 5; }; }
5325    else
5326      ac_cv_sizeof_float=0
5327    fi
5328 fi
5329
5330 fi
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
5332 $as_echo "$ac_cv_sizeof_float" >&6; }
5333
5334
5335
5336 cat >>confdefs.h <<_ACEOF
5337 #define SIZEOF_FLOAT $ac_cv_sizeof_float
5338 _ACEOF
5339
5340
5341 # The cast to long int works around a bug in the HP C Compiler
5342 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5343 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5344 # This bug is HP SR number 8606223364.
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
5346 $as_echo_n "checking size of double... " >&6; }
5347 if test "${ac_cv_sizeof_double+set}" = set; then :
5348   $as_echo_n "(cached) " >&6
5349 else
5350   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
5351
5352 else
5353   if test "$ac_cv_type_double" = yes; then
5354      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5356 { as_fn_set_status 77
5357 as_fn_error "cannot compute sizeof (double)
5358 See \`config.log' for more details." "$LINENO" 5; }; }
5359    else
5360      ac_cv_sizeof_double=0
5361    fi
5362 fi
5363
5364 fi
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
5366 $as_echo "$ac_cv_sizeof_double" >&6; }
5367
5368
5369
5370 cat >>confdefs.h <<_ACEOF
5371 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
5372 _ACEOF
5373
5374
5375
5376
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
5378 $as_echo_n "checking for deflate in -lz... " >&6; }
5379 if test "${ac_cv_lib_z_deflate+set}" = set; then :
5380   $as_echo_n "(cached) " >&6
5381 else
5382   ac_check_lib_save_LIBS=$LIBS
5383 LIBS="-lz  $LIBS"
5384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5385 /* end confdefs.h.  */
5386
5387 /* Override any GCC internal prototype to avoid an error.
5388    Use char because int might match the return type of a GCC
5389    builtin and then its argument prototype would still apply.  */
5390 #ifdef __cplusplus
5391 extern "C"
5392 #endif
5393 char deflate ();
5394 int
5395 main ()
5396 {
5397 return deflate ();
5398   ;
5399   return 0;
5400 }
5401 _ACEOF
5402 if ac_fn_c_try_link "$LINENO"; then :
5403   ac_cv_lib_z_deflate=yes
5404 else
5405   ac_cv_lib_z_deflate=no
5406 fi
5407 rm -f core conftest.err conftest.$ac_objext \
5408     conftest$ac_exeext conftest.$ac_ext
5409 LIBS=$ac_check_lib_save_LIBS
5410 fi
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
5412 $as_echo "$ac_cv_lib_z_deflate" >&6; }
5413 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
5414    zlib="true"
5415 else
5416    zlib="false" ;  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib missing. Will need zlib for PNG support" >&5
5417 $as_echo "$as_me: WARNING: zlib missing. Will need zlib for PNG support" >&2;}
5418 fi
5419
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
5421 $as_echo_n "checking for sin in -lm... " >&6; }
5422 if test "${ac_cv_lib_m_sin+set}" = set; then :
5423   $as_echo_n "(cached) " >&6
5424 else
5425   ac_check_lib_save_LIBS=$LIBS
5426 LIBS="-lm  $LIBS"
5427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5428 /* end confdefs.h.  */
5429
5430 /* Override any GCC internal prototype to avoid an error.
5431    Use char because int might match the return type of a GCC
5432    builtin and then its argument prototype would still apply.  */
5433 #ifdef __cplusplus
5434 extern "C"
5435 #endif
5436 char sin ();
5437 int
5438 main ()
5439 {
5440 return sin ();
5441   ;
5442   return 0;
5443 }
5444 _ACEOF
5445 if ac_fn_c_try_link "$LINENO"; then :
5446   ac_cv_lib_m_sin=yes
5447 else
5448   ac_cv_lib_m_sin=no
5449 fi
5450 rm -f core conftest.err conftest.$ac_objext \
5451     conftest$ac_exeext conftest.$ac_ext
5452 LIBS=$ac_check_lib_save_LIBS
5453 fi
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
5455 $as_echo "$ac_cv_lib_m_sin" >&6; }
5456 if test "x$ac_cv_lib_m_sin" = x""yes; then :
5457   cat >>confdefs.h <<_ACEOF
5458 #define HAVE_LIBM 1
5459 _ACEOF
5460
5461   LIBS="-lm $LIBS"
5462
5463 fi
5464
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcurses" >&5
5466 $as_echo_n "checking for main in -lcurses... " >&6; }
5467 if test "${ac_cv_lib_curses_main+set}" = set; then :
5468   $as_echo_n "(cached) " >&6
5469 else
5470   ac_check_lib_save_LIBS=$LIBS
5471 LIBS="-lcurses  $LIBS"
5472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5473 /* end confdefs.h.  */
5474
5475
5476 int
5477 main ()
5478 {
5479 return main ();
5480   ;
5481   return 0;
5482 }
5483 _ACEOF
5484 if ac_fn_c_try_link "$LINENO"; then :
5485   ac_cv_lib_curses_main=yes
5486 else
5487   ac_cv_lib_curses_main=no
5488 fi
5489 rm -f core conftest.err conftest.$ac_objext \
5490     conftest$ac_exeext conftest.$ac_ext
5491 LIBS=$ac_check_lib_save_LIBS
5492 fi
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_main" >&5
5494 $as_echo "$ac_cv_lib_curses_main" >&6; }
5495 if test "x$ac_cv_lib_curses_main" = x""yes; then :
5496   curses=true
5497 else
5498   curses=false
5499 fi
5500
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lncurses" >&5
5502 $as_echo_n "checking for main in -lncurses... " >&6; }
5503 if test "${ac_cv_lib_ncurses_main+set}" = set; then :
5504   $as_echo_n "(cached) " >&6
5505 else
5506   ac_check_lib_save_LIBS=$LIBS
5507 LIBS="-lncurses  $LIBS"
5508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5509 /* end confdefs.h.  */
5510
5511
5512 int
5513 main ()
5514 {
5515 return main ();
5516   ;
5517   return 0;
5518 }
5519 _ACEOF
5520 if ac_fn_c_try_link "$LINENO"; then :
5521   ac_cv_lib_ncurses_main=yes
5522 else
5523   ac_cv_lib_ncurses_main=no
5524 fi
5525 rm -f core conftest.err conftest.$ac_objext \
5526     conftest$ac_exeext conftest.$ac_ext
5527 LIBS=$ac_check_lib_save_LIBS
5528 fi
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_main" >&5
5530 $as_echo "$ac_cv_lib_ncurses_main" >&6; }
5531 if test "x$ac_cv_lib_ncurses_main" = x""yes; then :
5532   ncurses=true
5533 else
5534   ncurses=false
5535 fi
5536
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lreadline" >&5
5538 $as_echo_n "checking for main in -lreadline... " >&6; }
5539 if test "${ac_cv_lib_readline_main+set}" = set; then :
5540   $as_echo_n "(cached) " >&6
5541 else
5542   ac_check_lib_save_LIBS=$LIBS
5543 LIBS="-lreadline -lcurses $LIBS"
5544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5545 /* end confdefs.h.  */
5546
5547
5548 int
5549 main ()
5550 {
5551 return main ();
5552   ;
5553   return 0;
5554 }
5555 _ACEOF
5556 if ac_fn_c_try_link "$LINENO"; then :
5557   ac_cv_lib_readline_main=yes
5558 else
5559   ac_cv_lib_readline_main=no
5560 fi
5561 rm -f core conftest.err conftest.$ac_objext \
5562     conftest$ac_exeext conftest.$ac_ext
5563 LIBS=$ac_check_lib_save_LIBS
5564 fi
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_main" >&5
5566 $as_echo "$ac_cv_lib_readline_main" >&6; }
5567 if test "x$ac_cv_lib_readline_main" = x""yes; then :
5568   readline=true;
5569
5570 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
5571
5572 else
5573   readline=false
5574 fi
5575
5576 wxwin=false
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgtk-x11-2.0" >&5
5578 $as_echo_n "checking for main in -lgtk-x11-2.0... " >&6; }
5579 if test "${ac_cv_lib_gtk_x11_2_0_main+set}" = set; then :
5580   $as_echo_n "(cached) " >&6
5581 else
5582   ac_check_lib_save_LIBS=$LIBS
5583 LIBS="-lgtk-x11-2.0  $LIBS"
5584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5585 /* end confdefs.h.  */
5586
5587
5588 int
5589 main ()
5590 {
5591 return main ();
5592   ;
5593   return 0;
5594 }
5595 _ACEOF
5596 if ac_fn_c_try_link "$LINENO"; then :
5597   ac_cv_lib_gtk_x11_2_0_main=yes
5598 else
5599   ac_cv_lib_gtk_x11_2_0_main=no
5600 fi
5601 rm -f core conftest.err conftest.$ac_objext \
5602     conftest$ac_exeext conftest.$ac_ext
5603 LIBS=$ac_check_lib_save_LIBS
5604 fi
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gtk_x11_2_0_main" >&5
5606 $as_echo "$ac_cv_lib_gtk_x11_2_0_main" >&6; }
5607 if test "x$ac_cv_lib_gtk_x11_2_0_main" = x""yes; then :
5608   hasx11gtk2=true
5609 fi
5610
5611 if test "x$hasx11gtk2" = "x" ; then
5612   { $as_echo "$as_me:${as_lineno-$LINENO}: Does not have X11 GTK2" >&5
5613 $as_echo "$as_me: Does not have X11 GTK2" >&6;}
5614
5615
5616 fi
5617 if test "$hasx11gtk2" = "true" ; then
5618
5619
5620   CFLAGS="${CFLAGS} ${g76GTK_CFLAGS} ${GLIB_CFLAGS}"
5621 fi
5622
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lwx_gtk2u_core-2.8" >&5
5624 $as_echo_n "checking for main in -lwx_gtk2u_core-2.8... " >&6; }
5625 if test "${ac_cv_lib_wx_gtk2u_core_2_8_main+set}" = set; then :
5626   $as_echo_n "(cached) " >&6
5627 else
5628   ac_check_lib_save_LIBS=$LIBS
5629 LIBS="-lwx_gtk2u_core-2.8 -L/usr/lib64 -L/usr/lib ${GTK_LIBS} ${GLIB_LIBS}  $LIBS"
5630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5631 /* end confdefs.h.  */
5632
5633
5634 int
5635 main ()
5636 {
5637 return main ();
5638   ;
5639   return 0;
5640 }
5641 _ACEOF
5642 if ac_fn_c_try_link "$LINENO"; then :
5643   ac_cv_lib_wx_gtk2u_core_2_8_main=yes
5644 else
5645   ac_cv_lib_wx_gtk2u_core_2_8_main=no
5646 fi
5647 rm -f core conftest.err conftest.$ac_objext \
5648     conftest$ac_exeext conftest.$ac_ext
5649 LIBS=$ac_check_lib_save_LIBS
5650 fi
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wx_gtk2u_core_2_8_main" >&5
5652 $as_echo "$ac_cv_lib_wx_gtk2u_core_2_8_main" >&6; }
5653 if test "x$ac_cv_lib_wx_gtk2u_core_2_8_main" = x""yes; then :
5654   wxwin=true; wx_gtk=true;
5655 $as_echo "#define HAVE_WXWINDOWS 1" >>confdefs.h
5656
5657 fi
5658
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lwx_mac_core-2.8" >&5
5660 $as_echo_n "checking for main in -lwx_mac_core-2.8... " >&6; }
5661 if test "${ac_cv_lib_wx_mac_core_2_8_main+set}" = set; then :
5662   $as_echo_n "(cached) " >&6
5663 else
5664   ac_check_lib_save_LIBS=$LIBS
5665 LIBS="-lwx_mac_core-2.8  $LIBS"
5666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5667 /* end confdefs.h.  */
5668
5669
5670 int
5671 main ()
5672 {
5673 return main ();
5674   ;
5675   return 0;
5676 }
5677 _ACEOF
5678 if ac_fn_c_try_link "$LINENO"; then :
5679   ac_cv_lib_wx_mac_core_2_8_main=yes
5680 else
5681   ac_cv_lib_wx_mac_core_2_8_main=no
5682 fi
5683 rm -f core conftest.err conftest.$ac_objext \
5684     conftest$ac_exeext conftest.$ac_ext
5685 LIBS=$ac_check_lib_save_LIBS
5686 fi
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wx_mac_core_2_8_main" >&5
5688 $as_echo "$ac_cv_lib_wx_mac_core_2_8_main" >&6; }
5689 if test "x$ac_cv_lib_wx_mac_core_2_8_main" = x""yes; then :
5690   wxwin=true; wx_mac=true;
5691 $as_echo "#define HAVE_WXWINDOWS 1" >>confdefs.h
5692
5693 fi
5694
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_malloc in -lfftw3" >&5
5696 $as_echo_n "checking for fftw_malloc in -lfftw3... " >&6; }
5697 if test "${ac_cv_lib_fftw3_fftw_malloc+set}" = set; then :
5698   $as_echo_n "(cached) " >&6
5699 else
5700   ac_check_lib_save_LIBS=$LIBS
5701 LIBS="-lfftw3 -L/usr/lib64 -L/usr/lib $LIBS"
5702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5703 /* end confdefs.h.  */
5704
5705 /* Override any GCC internal prototype to avoid an error.
5706    Use char because int might match the return type of a GCC
5707    builtin and then its argument prototype would still apply.  */
5708 #ifdef __cplusplus
5709 extern "C"
5710 #endif
5711 char fftw_malloc ();
5712 int
5713 main ()
5714 {
5715 return fftw_malloc ();
5716   ;
5717   return 0;
5718 }
5719 _ACEOF
5720 if ac_fn_c_try_link "$LINENO"; then :
5721   ac_cv_lib_fftw3_fftw_malloc=yes
5722 else
5723   ac_cv_lib_fftw3_fftw_malloc=no
5724 fi
5725 rm -f core conftest.err conftest.$ac_objext \
5726     conftest$ac_exeext conftest.$ac_ext
5727 LIBS=$ac_check_lib_save_LIBS
5728 fi
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_malloc" >&5
5730 $as_echo "$ac_cv_lib_fftw3_fftw_malloc" >&6; }
5731 if test "x$ac_cv_lib_fftw3_fftw_malloc" = x""yes; then :
5732   fftw=true;
5733 $as_echo "#define HAVE_FFTW 1" >>confdefs.h
5734
5735 else
5736   fftw=false
5737 fi
5738
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lGL" >&5
5740 $as_echo_n "checking for main in -lGL... " >&6; }
5741 if test "${ac_cv_lib_GL_main+set}" = set; then :
5742   $as_echo_n "(cached) " >&6
5743 else
5744   ac_check_lib_save_LIBS=$LIBS
5745 LIBS="-lGL -L/usr/X11R6/lib -L/usr/X11R6/lib64 $LIBS"
5746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5747 /* end confdefs.h.  */
5748
5749
5750 int
5751 main ()
5752 {
5753 return main ();
5754   ;
5755   return 0;
5756 }
5757 _ACEOF
5758 if ac_fn_c_try_link "$LINENO"; then :
5759   ac_cv_lib_GL_main=yes
5760 else
5761   ac_cv_lib_GL_main=no
5762 fi
5763 rm -f core conftest.err conftest.$ac_objext \
5764     conftest$ac_exeext conftest.$ac_ext
5765 LIBS=$ac_check_lib_save_LIBS
5766 fi
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_main" >&5
5768 $as_echo "$ac_cv_lib_GL_main" >&6; }
5769 if test "x$ac_cv_lib_GL_main" = x""yes; then :
5770   libgl=true
5771 else
5772   libgl=false
5773 fi
5774
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
5776 $as_echo_n "checking for main in -lpthread... " >&6; }
5777 if test "${ac_cv_lib_pthread_main+set}" = set; then :
5778   $as_echo_n "(cached) " >&6
5779 else
5780   ac_check_lib_save_LIBS=$LIBS
5781 LIBS="-lpthread  $LIBS"
5782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5783 /* end confdefs.h.  */
5784
5785
5786 int
5787 main ()
5788 {
5789 return main ();
5790   ;
5791   return 0;
5792 }
5793 _ACEOF
5794 if ac_fn_c_try_link "$LINENO"; then :
5795   ac_cv_lib_pthread_main=yes
5796 else
5797   ac_cv_lib_pthread_main=no
5798 fi
5799 rm -f core conftest.err conftest.$ac_objext \
5800     conftest$ac_exeext conftest.$ac_ext
5801 LIBS=$ac_check_lib_save_LIBS
5802 fi
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
5804 $as_echo "$ac_cv_lib_pthread_main" >&6; }
5805 if test "x$ac_cv_lib_pthread_main" = x""yes; then :
5806   pthread=true
5807 else
5808   pthread=false
5809 fi
5810
5811
5812 if test "$zlib" = "true" ; then
5813   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpng" >&5
5814 $as_echo_n "checking for main in -lpng... " >&6; }
5815 if test "${ac_cv_lib_png_main+set}" = set; then :
5816   $as_echo_n "(cached) " >&6
5817 else
5818   ac_check_lib_save_LIBS=$LIBS
5819 LIBS="-lpng -L/opt/local/lib -lz -lm $LIBS"
5820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5821 /* end confdefs.h.  */
5822
5823
5824 int
5825 main ()
5826 {
5827 return main ();
5828   ;
5829   return 0;
5830 }
5831 _ACEOF
5832 if ac_fn_c_try_link "$LINENO"; then :
5833   ac_cv_lib_png_main=yes
5834 else
5835   ac_cv_lib_png_main=no
5836 fi
5837 rm -f core conftest.err conftest.$ac_objext \
5838     conftest$ac_exeext conftest.$ac_ext
5839 LIBS=$ac_check_lib_save_LIBS
5840 fi
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_main" >&5
5842 $as_echo "$ac_cv_lib_png_main" >&6; }
5843 if test "x$ac_cv_lib_png_main" = x""yes; then :
5844   png=true ;
5845 $as_echo "#define HAVE_PNG 1" >>confdefs.h
5846
5847 else
5848   png=false
5849 fi
5850
5851 fi
5852
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5854 $as_echo_n "checking for ANSI C header files... " >&6; }
5855 if test "${ac_cv_header_stdc+set}" = set; then :
5856   $as_echo_n "(cached) " >&6
5857 else
5858   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859 /* end confdefs.h.  */
5860 #include <stdlib.h>
5861 #include <stdarg.h>
5862 #include <string.h>
5863 #include <float.h>
5864
5865 int
5866 main ()
5867 {
5868
5869   ;
5870   return 0;
5871 }
5872 _ACEOF
5873 if ac_fn_c_try_compile "$LINENO"; then :
5874   ac_cv_header_stdc=yes
5875 else
5876   ac_cv_header_stdc=no
5877 fi
5878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5879
5880 if test $ac_cv_header_stdc = yes; then
5881   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5882   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5883 /* end confdefs.h.  */
5884 #include <string.h>
5885
5886 _ACEOF
5887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5888   $EGREP "memchr" >/dev/null 2>&1; then :
5889
5890 else
5891   ac_cv_header_stdc=no
5892 fi
5893 rm -f conftest*
5894
5895 fi
5896
5897 if test $ac_cv_header_stdc = yes; then
5898   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5899   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5900 /* end confdefs.h.  */
5901 #include <stdlib.h>
5902
5903 _ACEOF
5904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5905   $EGREP "free" >/dev/null 2>&1; then :
5906
5907 else
5908   ac_cv_header_stdc=no
5909 fi
5910 rm -f conftest*
5911
5912 fi
5913
5914 if test $ac_cv_header_stdc = yes; then
5915   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5916   if test "$cross_compiling" = yes; then :
5917   :
5918 else
5919   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5920 /* end confdefs.h.  */
5921 #include <ctype.h>
5922 #include <stdlib.h>
5923 #if ((' ' & 0x0FF) == 0x020)
5924 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5925 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5926 #else
5927 # define ISLOWER(c) \
5928                    (('a' <= (c) && (c) <= 'i') \
5929                      || ('j' <= (c) && (c) <= 'r') \
5930                      || ('s' <= (c) && (c) <= 'z'))
5931 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5932 #endif
5933
5934 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5935 int
5936 main ()
5937 {
5938   int i;
5939   for (i = 0; i < 256; i++)
5940     if (XOR (islower (i), ISLOWER (i))
5941         || toupper (i) != TOUPPER (i))
5942       return 2;
5943   return 0;
5944 }
5945 _ACEOF
5946 if ac_fn_c_try_run "$LINENO"; then :
5947
5948 else
5949   ac_cv_header_stdc=no
5950 fi
5951 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5952   conftest.$ac_objext conftest.beam conftest.$ac_ext
5953 fi
5954
5955 fi
5956 fi
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5958 $as_echo "$ac_cv_header_stdc" >&6; }
5959 if test $ac_cv_header_stdc = yes; then
5960
5961 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5962
5963 fi
5964
5965 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
5966 do :
5967   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5968 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5969 eval as_val=\$$as_ac_Header
5970    if test "x$as_val" = x""yes; then :
5971   cat >>confdefs.h <<_ACEOF
5972 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5973 _ACEOF
5974
5975 fi
5976
5977 done
5978
5979
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5981 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5982 if test "${ac_cv_c_const+set}" = set; then :
5983   $as_echo_n "(cached) " >&6
5984 else
5985   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5986 /* end confdefs.h.  */
5987
5988 int
5989 main ()
5990 {
5991 /* FIXME: Include the comments suggested by Paul. */
5992 #ifndef __cplusplus
5993   /* Ultrix mips cc rejects this.  */
5994   typedef int charset[2];
5995   const charset cs;
5996   /* SunOS 4.1.1 cc rejects this.  */
5997   char const *const *pcpcc;
5998   char **ppc;
5999   /* NEC SVR4.0.2 mips cc rejects this.  */
6000   struct point {int x, y;};
6001   static struct point const zero = {0,0};
6002   /* AIX XL C 1.02.0.0 rejects this.
6003      It does not let you subtract one const X* pointer from another in
6004      an arm of an if-expression whose if-part is not a constant
6005      expression */
6006   const char *g = "string";
6007   pcpcc = &g + (g ? g-g : 0);
6008   /* HPUX 7.0 cc rejects these. */
6009   ++pcpcc;
6010   ppc = (char**) pcpcc;
6011   pcpcc = (char const *const *) ppc;
6012   { /* SCO 3.2v4 cc rejects this.  */
6013     char *t;
6014     char const *s = 0 ? (char *) 0 : (char const *) 0;
6015
6016     *t++ = 0;
6017     if (s) return 0;
6018   }
6019   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6020     int x[] = {25, 17};
6021     const int *foo = &x[0];
6022     ++foo;
6023   }
6024   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6025     typedef const int *iptr;
6026     iptr p = 0;
6027     ++p;
6028   }
6029   { /* AIX XL C 1.02.0.0 rejects this saying
6030        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6031     struct s { int j; const int *ap[3]; };
6032     struct s *b; b->j = 5;
6033   }
6034   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6035     const int foo = 10;
6036     if (!foo) return 0;
6037   }
6038   return !cs[0] && !zero.x;
6039 #endif
6040
6041   ;
6042   return 0;
6043 }
6044 _ACEOF
6045 if ac_fn_c_try_compile "$LINENO"; then :
6046   ac_cv_c_const=yes
6047 else
6048   ac_cv_c_const=no
6049 fi
6050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6051 fi
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6053 $as_echo "$ac_cv_c_const" >&6; }
6054 if test $ac_cv_c_const = no; then
6055
6056 $as_echo "#define const /**/" >>confdefs.h
6057
6058 fi
6059
6060 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6061 if test "x$ac_cv_type_off_t" = x""yes; then :
6062
6063 else
6064
6065 cat >>confdefs.h <<_ACEOF
6066 #define off_t long int
6067 _ACEOF
6068
6069 fi
6070
6071 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6072 if test "x$ac_cv_type_size_t" = x""yes; then :
6073
6074 else
6075
6076 cat >>confdefs.h <<_ACEOF
6077 #define size_t unsigned int
6078 _ACEOF
6079
6080 fi
6081
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6083 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6084 if test "${ac_cv_struct_tm+set}" = set; then :
6085   $as_echo_n "(cached) " >&6
6086 else
6087   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6088 /* end confdefs.h.  */
6089 #include <sys/types.h>
6090 #include <time.h>
6091
6092 int
6093 main ()
6094 {
6095 struct tm tm;
6096                                      int *p = &tm.tm_sec;
6097                                      return !p;
6098   ;
6099   return 0;
6100 }
6101 _ACEOF
6102 if ac_fn_c_try_compile "$LINENO"; then :
6103   ac_cv_struct_tm=time.h
6104 else
6105   ac_cv_struct_tm=sys/time.h
6106 fi
6107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6108 fi
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6110 $as_echo "$ac_cv_struct_tm" >&6; }
6111 if test $ac_cv_struct_tm = sys/time.h; then
6112
6113 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6114
6115 fi
6116
6117
6118 for ac_func in vprintf
6119 do :
6120   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
6121 if test "x$ac_cv_func_vprintf" = x""yes; then :
6122   cat >>confdefs.h <<_ACEOF
6123 #define HAVE_VPRINTF 1
6124 _ACEOF
6125
6126 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
6127 if test "x$ac_cv_func__doprnt" = x""yes; then :
6128
6129 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
6130
6131 fi
6132
6133 fi
6134 done
6135
6136
6137 for ac_func in strtod strtol snprintf htonl usleep vsprintf vsnprintf basename setjmp setpriority time gettimeofday getenv
6138 do :
6139   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6140 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6141 eval as_val=\$$as_ac_var
6142    if test "x$as_val" = x""yes; then :
6143   cat >>confdefs.h <<_ACEOF
6144 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6145 _ACEOF
6146
6147 fi
6148 done
6149
6150 ac_fn_c_check_func "$LINENO" "basename" "ac_cv_func_basename"
6151 if test "x$ac_cv_func_basename" = x""yes; then :
6152
6153 fi
6154
6155 ac_fn_c_check_func "$LINENO" "setjmp" "ac_cv_func_setjmp"
6156 if test "x$ac_cv_func_setjmp" = x""yes; then :
6157
6158 fi
6159
6160 ac_fn_c_check_func "$LINENO" "setpriority" "ac_cv_func_setpriority"
6161 if test "x$ac_cv_func_setpriority" = x""yes; then :
6162
6163 fi
6164
6165 ac_fn_c_check_func "$LINENO" "time" "ac_cv_func_time"
6166 if test "x$ac_cv_func_time" = x""yes; then :
6167
6168 fi
6169
6170 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
6171 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
6172
6173 fi
6174
6175 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
6176 if test "x$ac_cv_func_getopt" = x""yes; then :
6177    getopt=true
6178 else
6179    getopt=false
6180 fi
6181
6182
6183 if test "${OSTYPE}" = "cygwin" ; then
6184   getopt_long=false
6185 else
6186   ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
6187 if test "x$ac_cv_func_getopt_long" = x""yes; then :
6188    getopt_long=true
6189 else
6190    getopt_long=false
6191 fi
6192
6193 fi
6194
6195 if test "${getopt_long}" = "false" ; then
6196   my_includes="$my_includes -I../getopt"
6197
6198 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
6199
6200   ctlibs_base="$ctlibs_base -lgetopt"
6201   LDFLAGS="$LDFLAGS -L../getopt"
6202   GETOPTLONG=1
6203 fi
6204
6205
6206 if test "$GETOPTLONG"="1"; then
6207   INCLUDED_GETOPT_LONG_TRUE=
6208   INCLUDED_GETOPT_LONG_FALSE='#'
6209 else
6210   INCLUDED_GETOPT_LONG_TRUE='#'
6211   INCLUDED_GETOPT_LONG_FALSE=
6212 fi
6213
6214
6215 if test "${readline}" = "true" ; then
6216   ctlibs_base="$ctlibs_base -lreadline"
6217   if test "${ncurses}" = "true"; then
6218     ctlibs_base="$ctlibs_base -lncurses"
6219   elif test "${curses}" = "true"; then
6220     ctlibs_base="$ctlibs_base -lcurses"
6221   fi
6222 fi
6223
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking debug" >&5
6225 $as_echo_n "checking debug... " >&6; }
6226 # Check whether --enable-debug was given.
6227 if test "${enable_debug+set}" = set; then :
6228   enableval=$enable_debug; case "${enableval}" in
6229   yes) debug="true"
6230        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6231 $as_echo "yes" >&6; }
6232        ;;
6233   no)  debug="false"
6234        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6235 $as_echo "no" >&6; }
6236        ;;
6237   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: bad value ${enableval} for --enable-debug" >&5
6238 $as_echo "bad value ${enableval} for --enable-debug" >&6; }
6239        ;;
6240 esac
6241 else
6242   debug=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6243 $as_echo "no" >&6; }
6244 fi
6245
6246
6247
6248 if test "$debug" = "true"; then
6249   DEBUG_TRUE=
6250   DEBUG_FALSE='#'
6251 else
6252   DEBUG_TRUE='#'
6253   DEBUG_FALSE=
6254 fi
6255
6256
6257 if test "$datadir" != "" ; then
6258   CPPFLAGS="$CPPFLAGS -DDATADIR=\"\\\"$datadir\\\"\""
6259 fi
6260
6261 if test "$debug" = "true" ; then
6262   CFLAGS="$CFLAGS -g -DDEBUG"
6263
6264 $as_echo "#define DEBUG 1" >>confdefs.h
6265
6266 else
6267   CFLAGS="$CFLAGS -O2 -DNDEBUG -fomit-frame-pointer"
6268
6269 $as_echo "#define NDEBUG 1" >>confdefs.h
6270
6271 fi
6272
6273 if test "${pthread}" = "true" ; then
6274
6275 $as_echo "#define HAVE_WXTHREADS 1" >>confdefs.h
6276
6277 fi
6278
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sstream" >&5
6280 $as_echo_n "checking sstream... " >&6; }
6281  if  test -f /usr/include/sstream || test -f /usr/include/g++/sstream ||
6282      test -f /usr/include/g++-2/sstream || test -f /usr/include/g++-3/sstream ||
6283      test -f /usr/include/gcc/darwin/3.1/g++-v3/sstream ; then
6284
6285 $as_echo "#define HAVE_SSTREAM 1" >>confdefs.h
6286
6287    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6288 $as_echo "yes" >&6; }
6289   else
6290    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6291 $as_echo "no" >&6; }
6292  fi
6293
6294
6295 CFLAGS="$CFLAGS -Wall"
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose warnings" >&5
6297 $as_echo_n "checking whether to enable verbose warnings... " >&6; }
6298 # Check whether --enable-verbose-warnings was given.
6299 if test "${enable_verbose_warnings+set}" = set; then :
6300   enableval=$enable_verbose_warnings;  case "$enableval" in
6301   yes)
6302     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6303 $as_echo "yes" >&6; }
6304     CFLAGS="$CFLAGS -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wredundant-decls"
6305     ;;
6306   *)
6307     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6308 $as_echo "no" >&6; }
6309     ;;
6310   esac
6311 else
6312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6313 $as_echo "no" >&6; }
6314
6315 fi
6316
6317
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking static executables" >&5
6319 $as_echo_n "checking static executables... " >&6; }
6320 # Check whether --enable-static was given.
6321 if test "${enable_static+set}" = set; then :
6322   enableval=$enable_static;  case "$enableval" in
6323   yes)
6324     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6325 $as_echo "yes" >&6; }
6326     CFLAGS="$CFLAGS --static"
6327     ;;
6328   *)
6329     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6330 $as_echo "no" >&6; }
6331     ;;
6332   esac
6333 else
6334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6335 $as_echo "no" >&6; }
6336
6337 fi
6338
6339
6340
6341 # Check whether --with-lam was given.
6342 if test "${with_lam+set}" = set; then :
6343   withval=$with_lam;     if test "$withval" != "no" ; then
6344          trylamdir=$withval
6345      fi
6346
6347 fi
6348
6349
6350 if test "$withval" != "no" ; then
6351   if test "$prefix" != "NONE" ; then
6352      trylamdir="$trylamdir $prefix"
6353   fi
6354
6355   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LAM MPI installation" >&5
6356 $as_echo_n "checking for LAM MPI installation... " >&6; }
6357   for testlamdir in "." $trylamdir /usr/local /usr/local/lam /usr /usr/lam /opt /opt/lam ; do
6358     if test -x "$testlamdir/bin/hcp" ; then
6359       if test "$testlamdir" != "/usr"; then
6360         LDFLAGS="$LDFLAGS -L$testlamdir/lib"
6361         CFLAGS="$CFLAGS -I$testlamdir/include"
6362       fi
6363       CFLAGS="$CFLAGS -I$testlamdir/include/mpi2c++"
6364       lamdir="$testlamdir"
6365
6366       mpienable="true"
6367
6368       break
6369     fi
6370   done
6371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lamdir" >&5
6372 $as_echo "$lamdir" >&6; }
6373 else
6374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6375 $as_echo "no" >&6; }
6376 fi
6377
6378
6379
6380 # Check whether --with-ctn was given.
6381 if test "${with_ctn+set}" = set; then :
6382   withval=$with_ctn;     if test "$withval" != "no" ; then
6383          tryctndir=$withval
6384      fi
6385
6386 fi
6387
6388
6389 if test "$withval" == "no" -o "$withval" == "NONE" ; then
6390   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CTN DICOM installation" >&5
6391 $as_echo_n "checking for CTN DICOM installation... " >&6; }
6392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6393 $as_echo "disabled" >&6; }
6394 else
6395   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CTN DICOM installation" >&5
6396 $as_echo_n "checking for CTN DICOM installation... " >&6; }
6397   for testctndir in $tryctndir/lib /usr/local/lib /usr/local/ctn/lib /usr/lib /usr/ctn/lib /usr/lib/ctn /opt/ctn/lib ; do
6398     if test -f "$testctndir/libctn.a" ; then
6399       LDFLAGS="$LDFLAGS -L$testctndir"
6400       ctnlib="true"
6401       break
6402     fi
6403   done
6404   for testctndir in $tryctndir/include /usr/local/include /usr/local/ctn/include /usr/include /usr/include/ctn /usr/ctn/include /opt/ctn/include ; do
6405     if test -f "$testctndir/ctn_os.h" ; then
6406       CFLAGS="$CFLAGS -I$testctndir"
6407       ctninclude="true"
6408       break
6409     fi
6410   done
6411   if test "$ctnlib" == "true" -a "$ctninclude" == "true" ; then
6412       ctn="true"
6413
6414 $as_echo "#define HAVE_CTN_DICOM 1" >>confdefs.h
6415
6416       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6417 $as_echo "yes" >&6; }
6418   else
6419     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6420 $as_echo "no" >&6; }
6421   fi
6422 fi
6423
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPU specification" >&5
6425 $as_echo_n "checking for CPU specification... " >&6; }
6426
6427 # Check whether --with-mcpu was given.
6428 if test "${with_mcpu+set}" = set; then :
6429   withval=$with_mcpu;
6430 fi
6431
6432
6433 if test "$withval" == "no" -o "$withval" == "yes" -o "$withval" == ""; then
6434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6435 $as_echo "no" >&6; }
6436 else
6437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
6438 $as_echo "$withval" >&6; }
6439   CFLAGS="$CFLAGS -mcpu=$withval"
6440 fi
6441
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for web access" >&5
6443 $as_echo_n "checking for web access... " >&6; }
6444
6445 # Check whether --with-cgibin-dir was given.
6446 if test "${with_cgibin_dir+set}" = set; then :
6447   withval=$with_cgibin_dir;  cgibindir=$withval ;
6448 fi
6449
6450
6451
6452 # Check whether --with-cgibin-url was given.
6453 if test "${with_cgibin_url+set}" = set; then :
6454   withval=$with_cgibin_url;  cgibinurl=$withval ;
6455 fi
6456
6457
6458
6459 # Check whether --with-webdata-dir was given.
6460 if test "${with_webdata_dir+set}" = set; then :
6461   withval=$with_webdata_dir;  webdatadir=$withval ;
6462 fi
6463
6464
6465
6466 # Check whether --with-webdata-url was given.
6467 if test "${with_webdata_url+set}" = set; then :
6468   withval=$with_webdata_url;  webdataurl=$withval ;
6469 fi
6470
6471
6472
6473 # Check whether --with-html-dir was given.
6474 if test "${with_html_dir+set}" = set; then :
6475   withval=$with_html_dir;  html_%dir=$withval ;
6476 fi
6477
6478
6479 if test "x$cgibindir" != "x" -o "x$cgibinurl" != "x" ; then
6480   cgiprograms="ctsim.cgi ctsim.conf"
6481
6482 fi
6483
6484 if test "x$html_dir" = "x" ; then
6485   htmldata=simulate.html
6486
6487 fi
6488
6489
6490 if test "x$html_dir" = "x"; then
6491   USE_HTML_TRUE=
6492   USE_HTML_FALSE='#'
6493 else
6494   USE_HTML_TRUE='#'
6495   USE_HTML_FALSE=
6496 fi
6497
6498
6499 if test "x$cgibindir" != "x" -o "x$cgibinurl" != "x" -o "x$webdatadir" != "x" -o "x$webdataurl" != "x" -o "x$html_dir" != "x" ; then
6500   webenabled=true
6501
6502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6503 $as_echo "yes" >&6; }
6504   if test "x$cgibindir" = "x" ; then
6505     as_fn_error "--with-cgibin-dir not set for web access" "$LINENO" 5
6506   elif test "x$cgibinurl" = "x" ; then
6507     as_fn_error "--with-cgibin-url not set for web access" "$LINENO" 5
6508   elif test "x$webdatadir" = "x" ; then
6509     as_fn_error "--with-webdata-dir not set for web access" "$LINENO" 5
6510   elif test "x$webdataurl" = "x" ; then
6511     as_fn_error "--with-webdata-url not set for web access" "$LINENO" 5
6512   elif test "x$html_dir" = "x" ; then
6513     as_fn_error "--with-html-dir not set for web access" "$LINENO" 5
6514   fi
6515 else
6516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6517 $as_echo "no" >&6; }
6518 fi
6519
6520
6521
6522 if test "x$lamdir" != "x"; then
6523   USE_LAM_TRUE=
6524   USE_LAM_FALSE='#'
6525 else
6526   USE_LAM_TRUE='#'
6527   USE_LAM_FALSE=
6528 fi
6529
6530
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
6532 $as_echo_n "checking for X... " >&6; }
6533
6534
6535 # Check whether --with-x was given.
6536 if test "${with_x+set}" = set; then :
6537   withval=$with_x;
6538 fi
6539
6540 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6541 if test "x$with_x" = xno; then
6542   # The user explicitly disabled X.
6543   have_x=disabled
6544 else
6545   case $x_includes,$x_libraries in #(
6546     *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
6547     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
6548   $as_echo_n "(cached) " >&6
6549 else
6550   # One or both of the vars are not set, and there is no cached value.
6551 ac_x_includes=no ac_x_libraries=no
6552 rm -f -r conftest.dir
6553 if mkdir conftest.dir; then
6554   cd conftest.dir
6555   cat >Imakefile <<'_ACEOF'
6556 incroot:
6557         @echo incroot='${INCROOT}'
6558 usrlibdir:
6559         @echo usrlibdir='${USRLIBDIR}'
6560 libdir:
6561         @echo libdir='${LIBDIR}'
6562 _ACEOF
6563   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6564     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6565     for ac_var in incroot usrlibdir libdir; do
6566       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6567     done
6568     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6569     for ac_extension in a so sl dylib la dll; do
6570       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6571          test -f "$ac_im_libdir/libX11.$ac_extension"; then
6572         ac_im_usrlibdir=$ac_im_libdir; break
6573       fi
6574     done
6575     # Screen out bogus values from the imake configuration.  They are
6576     # bogus both because they are the default anyway, and because
6577     # using them would break gcc on systems where it needs fixed includes.
6578     case $ac_im_incroot in
6579         /usr/include) ac_x_includes= ;;
6580         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6581     esac
6582     case $ac_im_usrlibdir in
6583         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
6584         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6585     esac
6586   fi
6587   cd ..
6588   rm -f -r conftest.dir
6589 fi
6590
6591 # Standard set of common directories for X headers.
6592 # Check X11 before X11Rn because it is often a symlink to the current release.
6593 ac_x_header_dirs='
6594 /usr/X11/include
6595 /usr/X11R7/include
6596 /usr/X11R6/include
6597 /usr/X11R5/include
6598 /usr/X11R4/include
6599
6600 /usr/include/X11
6601 /usr/include/X11R7
6602 /usr/include/X11R6
6603 /usr/include/X11R5
6604 /usr/include/X11R4
6605
6606 /usr/local/X11/include
6607 /usr/local/X11R7/include
6608 /usr/local/X11R6/include
6609 /usr/local/X11R5/include
6610 /usr/local/X11R4/include
6611
6612 /usr/local/include/X11
6613 /usr/local/include/X11R7
6614 /usr/local/include/X11R6
6615 /usr/local/include/X11R5
6616 /usr/local/include/X11R4
6617
6618 /usr/X386/include
6619 /usr/x386/include
6620 /usr/XFree86/include/X11
6621
6622 /usr/include
6623 /usr/local/include
6624 /usr/unsupported/include
6625 /usr/athena/include
6626 /usr/local/x11r5/include
6627 /usr/lpp/Xamples/include
6628
6629 /usr/openwin/include
6630 /usr/openwin/share/include'
6631
6632 if test "$ac_x_includes" = no; then
6633   # Guess where to find include files, by looking for Xlib.h.
6634   # First, try using that file with no special directory specified.
6635   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6636 /* end confdefs.h.  */
6637 #include <X11/Xlib.h>
6638 _ACEOF
6639 if ac_fn_c_try_cpp "$LINENO"; then :
6640   # We can compile using X headers with no special include directory.
6641 ac_x_includes=
6642 else
6643   for ac_dir in $ac_x_header_dirs; do
6644   if test -r "$ac_dir/X11/Xlib.h"; then
6645     ac_x_includes=$ac_dir
6646     break
6647   fi
6648 done
6649 fi
6650 rm -f conftest.err conftest.$ac_ext
6651 fi # $ac_x_includes = no
6652
6653 if test "$ac_x_libraries" = no; then
6654   # Check for the libraries.
6655   # See if we find them without any special options.
6656   # Don't add to $LIBS permanently.
6657   ac_save_LIBS=$LIBS
6658   LIBS="-lX11 $LIBS"
6659   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6660 /* end confdefs.h.  */
6661 #include <X11/Xlib.h>
6662 int
6663 main ()
6664 {
6665 XrmInitialize ()
6666   ;
6667   return 0;
6668 }
6669 _ACEOF
6670 if ac_fn_c_try_link "$LINENO"; then :
6671   LIBS=$ac_save_LIBS
6672 # We can link X programs with no special library path.
6673 ac_x_libraries=
6674 else
6675   LIBS=$ac_save_LIBS
6676 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6677 do
6678   # Don't even attempt the hair of trying to link an X program!
6679   for ac_extension in a so sl dylib la dll; do
6680     if test -r "$ac_dir/libX11.$ac_extension"; then
6681       ac_x_libraries=$ac_dir
6682       break 2
6683     fi
6684   done
6685 done
6686 fi
6687 rm -f core conftest.err conftest.$ac_objext \
6688     conftest$ac_exeext conftest.$ac_ext
6689 fi # $ac_x_libraries = no
6690
6691 case $ac_x_includes,$ac_x_libraries in #(
6692   no,* | *,no | *\'*)
6693     # Didn't find X, or a directory has "'" in its name.
6694     ac_cv_have_x="have_x=no";; #(
6695   *)
6696     # Record where we found X for the cache.
6697     ac_cv_have_x="have_x=yes\
6698         ac_x_includes='$ac_x_includes'\
6699         ac_x_libraries='$ac_x_libraries'"
6700 esac
6701 fi
6702 ;; #(
6703     *) have_x=yes;;
6704   esac
6705   eval "$ac_cv_have_x"
6706 fi # $with_x != no
6707
6708 if test "$have_x" != yes; then
6709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
6710 $as_echo "$have_x" >&6; }
6711   no_x=yes
6712 else
6713   # If each of the values was on the command line, it overrides each guess.
6714   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6715   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6716   # Update the cache value to reflect the command line values.
6717   ac_cv_have_x="have_x=yes\
6718         ac_x_includes='$x_includes'\
6719         ac_x_libraries='$x_libraries'"
6720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
6721 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6722 fi
6723
6724 if test "$no_x" = yes; then
6725   # Not all programs may use this symbol, but it does not hurt to define it.
6726
6727 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
6728
6729   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6730 else
6731   if test -n "$x_includes"; then
6732     X_CFLAGS="$X_CFLAGS -I$x_includes"
6733   fi
6734
6735   # It would also be nice to do this for all -L options, not just this one.
6736   if test -n "$x_libraries"; then
6737     X_LIBS="$X_LIBS -L$x_libraries"
6738     # For Solaris; some versions of Sun CC require a space after -R and
6739     # others require no space.  Words are not sufficient . . . .
6740     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
6741 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
6742     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6743     ac_xsave_c_werror_flag=$ac_c_werror_flag
6744     ac_c_werror_flag=yes
6745     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6746 /* end confdefs.h.  */
6747
6748 int
6749 main ()
6750 {
6751
6752   ;
6753   return 0;
6754 }
6755 _ACEOF
6756 if ac_fn_c_try_link "$LINENO"; then :
6757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6758 $as_echo "no" >&6; }
6759        X_LIBS="$X_LIBS -R$x_libraries"
6760 else
6761   LIBS="$ac_xsave_LIBS -R $x_libraries"
6762        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6763 /* end confdefs.h.  */
6764
6765 int
6766 main ()
6767 {
6768
6769   ;
6770   return 0;
6771 }
6772 _ACEOF
6773 if ac_fn_c_try_link "$LINENO"; then :
6774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6775 $as_echo "yes" >&6; }
6776           X_LIBS="$X_LIBS -R $x_libraries"
6777 else
6778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
6779 $as_echo "neither works" >&6; }
6780 fi
6781 rm -f core conftest.err conftest.$ac_objext \
6782     conftest$ac_exeext conftest.$ac_ext
6783 fi
6784 rm -f core conftest.err conftest.$ac_objext \
6785     conftest$ac_exeext conftest.$ac_ext
6786     ac_c_werror_flag=$ac_xsave_c_werror_flag
6787     LIBS=$ac_xsave_LIBS
6788   fi
6789
6790   # Check for system-dependent libraries X programs must link with.
6791   # Do this before checking for the system-independent R6 libraries
6792   # (-lICE), since we may need -lsocket or whatever for X linking.
6793
6794   if test "$ISC" = yes; then
6795     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6796   else
6797     # Martyn Johnson says this is needed for Ultrix, if the X
6798     # libraries were built with DECnet support.  And Karl Berry says
6799     # the Alpha needs dnet_stub (dnet does not exist).
6800     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6801     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6802 /* end confdefs.h.  */
6803
6804 /* Override any GCC internal prototype to avoid an error.
6805    Use char because int might match the return type of a GCC
6806    builtin and then its argument prototype would still apply.  */
6807 #ifdef __cplusplus
6808 extern "C"
6809 #endif
6810 char XOpenDisplay ();
6811 int
6812 main ()
6813 {
6814 return XOpenDisplay ();
6815   ;
6816   return 0;
6817 }
6818 _ACEOF
6819 if ac_fn_c_try_link "$LINENO"; then :
6820
6821 else
6822   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
6823 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
6824 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
6825   $as_echo_n "(cached) " >&6
6826 else
6827   ac_check_lib_save_LIBS=$LIBS
6828 LIBS="-ldnet  $LIBS"
6829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6830 /* end confdefs.h.  */
6831
6832 /* Override any GCC internal prototype to avoid an error.
6833    Use char because int might match the return type of a GCC
6834    builtin and then its argument prototype would still apply.  */
6835 #ifdef __cplusplus
6836 extern "C"
6837 #endif
6838 char dnet_ntoa ();
6839 int
6840 main ()
6841 {
6842 return dnet_ntoa ();
6843   ;
6844   return 0;
6845 }
6846 _ACEOF
6847 if ac_fn_c_try_link "$LINENO"; then :
6848   ac_cv_lib_dnet_dnet_ntoa=yes
6849 else
6850   ac_cv_lib_dnet_dnet_ntoa=no
6851 fi
6852 rm -f core conftest.err conftest.$ac_objext \
6853     conftest$ac_exeext conftest.$ac_ext
6854 LIBS=$ac_check_lib_save_LIBS
6855 fi
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6857 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6858 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
6859   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6860 fi
6861
6862     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6863       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
6864 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
6865 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
6866   $as_echo_n "(cached) " >&6
6867 else
6868   ac_check_lib_save_LIBS=$LIBS
6869 LIBS="-ldnet_stub  $LIBS"
6870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6871 /* end confdefs.h.  */
6872
6873 /* Override any GCC internal prototype to avoid an error.
6874    Use char because int might match the return type of a GCC
6875    builtin and then its argument prototype would still apply.  */
6876 #ifdef __cplusplus
6877 extern "C"
6878 #endif
6879 char dnet_ntoa ();
6880 int
6881 main ()
6882 {
6883 return dnet_ntoa ();
6884   ;
6885   return 0;
6886 }
6887 _ACEOF
6888 if ac_fn_c_try_link "$LINENO"; then :
6889   ac_cv_lib_dnet_stub_dnet_ntoa=yes
6890 else
6891   ac_cv_lib_dnet_stub_dnet_ntoa=no
6892 fi
6893 rm -f core conftest.err conftest.$ac_objext \
6894     conftest$ac_exeext conftest.$ac_ext
6895 LIBS=$ac_check_lib_save_LIBS
6896 fi
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6898 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6899 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
6900   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6901 fi
6902
6903     fi
6904 fi
6905 rm -f core conftest.err conftest.$ac_objext \
6906     conftest$ac_exeext conftest.$ac_ext
6907     LIBS="$ac_xsave_LIBS"
6908
6909     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6910     # to get the SysV transport functions.
6911     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6912     # needs -lnsl.
6913     # The nsl library prevents programs from opening the X display
6914     # on Irix 5.2, according to T.E. Dickey.
6915     # The functions gethostbyname, getservbyname, and inet_addr are
6916     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6917     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
6918 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
6919
6920 fi
6921
6922     if test $ac_cv_func_gethostbyname = no; then
6923       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
6924 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6925 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
6926   $as_echo_n "(cached) " >&6
6927 else
6928   ac_check_lib_save_LIBS=$LIBS
6929 LIBS="-lnsl  $LIBS"
6930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6931 /* end confdefs.h.  */
6932
6933 /* Override any GCC internal prototype to avoid an error.
6934    Use char because int might match the return type of a GCC
6935    builtin and then its argument prototype would still apply.  */
6936 #ifdef __cplusplus
6937 extern "C"
6938 #endif
6939 char gethostbyname ();
6940 int
6941 main ()
6942 {
6943 return gethostbyname ();
6944   ;
6945   return 0;
6946 }
6947 _ACEOF
6948 if ac_fn_c_try_link "$LINENO"; then :
6949   ac_cv_lib_nsl_gethostbyname=yes
6950 else
6951   ac_cv_lib_nsl_gethostbyname=no
6952 fi
6953 rm -f core conftest.err conftest.$ac_objext \
6954     conftest$ac_exeext conftest.$ac_ext
6955 LIBS=$ac_check_lib_save_LIBS
6956 fi
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
6958 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6959 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
6960   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6961 fi
6962
6963       if test $ac_cv_lib_nsl_gethostbyname = no; then
6964         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
6965 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
6966 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
6967   $as_echo_n "(cached) " >&6
6968 else
6969   ac_check_lib_save_LIBS=$LIBS
6970 LIBS="-lbsd  $LIBS"
6971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6972 /* end confdefs.h.  */
6973
6974 /* Override any GCC internal prototype to avoid an error.
6975    Use char because int might match the return type of a GCC
6976    builtin and then its argument prototype would still apply.  */
6977 #ifdef __cplusplus
6978 extern "C"
6979 #endif
6980 char gethostbyname ();
6981 int
6982 main ()
6983 {
6984 return gethostbyname ();
6985   ;
6986   return 0;
6987 }
6988 _ACEOF
6989 if ac_fn_c_try_link "$LINENO"; then :
6990   ac_cv_lib_bsd_gethostbyname=yes
6991 else
6992   ac_cv_lib_bsd_gethostbyname=no
6993 fi
6994 rm -f core conftest.err conftest.$ac_objext \
6995     conftest$ac_exeext conftest.$ac_ext
6996 LIBS=$ac_check_lib_save_LIBS
6997 fi
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
6999 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7000 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
7001   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7002 fi
7003
7004       fi
7005     fi
7006
7007     # lieder@skyler.mavd.honeywell.com says without -lsocket,
7008     # socket/setsockopt and other routines are undefined under SCO ODT
7009     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
7010     # on later versions), says Simon Leinen: it contains gethostby*
7011     # variants that don't use the name server (or something).  -lsocket
7012     # must be given before -lnsl if both are needed.  We assume that
7013     # if connect needs -lnsl, so does gethostbyname.
7014     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7015 if test "x$ac_cv_func_connect" = x""yes; then :
7016
7017 fi
7018
7019     if test $ac_cv_func_connect = no; then
7020       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7021 $as_echo_n "checking for connect in -lsocket... " >&6; }
7022 if test "${ac_cv_lib_socket_connect+set}" = set; then :
7023   $as_echo_n "(cached) " >&6
7024 else
7025   ac_check_lib_save_LIBS=$LIBS
7026 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7028 /* end confdefs.h.  */
7029
7030 /* Override any GCC internal prototype to avoid an error.
7031    Use char because int might match the return type of a GCC
7032    builtin and then its argument prototype would still apply.  */
7033 #ifdef __cplusplus
7034 extern "C"
7035 #endif
7036 char connect ();
7037 int
7038 main ()
7039 {
7040 return connect ();
7041   ;
7042   return 0;
7043 }
7044 _ACEOF
7045 if ac_fn_c_try_link "$LINENO"; then :
7046   ac_cv_lib_socket_connect=yes
7047 else
7048   ac_cv_lib_socket_connect=no
7049 fi
7050 rm -f core conftest.err conftest.$ac_objext \
7051     conftest$ac_exeext conftest.$ac_ext
7052 LIBS=$ac_check_lib_save_LIBS
7053 fi
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7055 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7056 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
7057   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7058 fi
7059
7060     fi
7061
7062     # Guillermo Gomez says -lposix is necessary on A/UX.
7063     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7064 if test "x$ac_cv_func_remove" = x""yes; then :
7065
7066 fi
7067
7068     if test $ac_cv_func_remove = no; then
7069       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7070 $as_echo_n "checking for remove in -lposix... " >&6; }
7071 if test "${ac_cv_lib_posix_remove+set}" = set; then :
7072   $as_echo_n "(cached) " >&6
7073 else
7074   ac_check_lib_save_LIBS=$LIBS
7075 LIBS="-lposix  $LIBS"
7076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7077 /* end confdefs.h.  */
7078
7079 /* Override any GCC internal prototype to avoid an error.
7080    Use char because int might match the return type of a GCC
7081    builtin and then its argument prototype would still apply.  */
7082 #ifdef __cplusplus
7083 extern "C"
7084 #endif
7085 char remove ();
7086 int
7087 main ()
7088 {
7089 return remove ();
7090   ;
7091   return 0;
7092 }
7093 _ACEOF
7094 if ac_fn_c_try_link "$LINENO"; then :
7095   ac_cv_lib_posix_remove=yes
7096 else
7097   ac_cv_lib_posix_remove=no
7098 fi
7099 rm -f core conftest.err conftest.$ac_objext \
7100     conftest$ac_exeext conftest.$ac_ext
7101 LIBS=$ac_check_lib_save_LIBS
7102 fi
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7104 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7105 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
7106   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7107 fi
7108
7109     fi
7110
7111     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7112     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7113 if test "x$ac_cv_func_shmat" = x""yes; then :
7114
7115 fi
7116
7117     if test $ac_cv_func_shmat = no; then
7118       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
7119 $as_echo_n "checking for shmat in -lipc... " >&6; }
7120 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
7121   $as_echo_n "(cached) " >&6
7122 else
7123   ac_check_lib_save_LIBS=$LIBS
7124 LIBS="-lipc  $LIBS"
7125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7126 /* end confdefs.h.  */
7127
7128 /* Override any GCC internal prototype to avoid an error.
7129    Use char because int might match the return type of a GCC
7130    builtin and then its argument prototype would still apply.  */
7131 #ifdef __cplusplus
7132 extern "C"
7133 #endif
7134 char shmat ();
7135 int
7136 main ()
7137 {
7138 return shmat ();
7139   ;
7140   return 0;
7141 }
7142 _ACEOF
7143 if ac_fn_c_try_link "$LINENO"; then :
7144   ac_cv_lib_ipc_shmat=yes
7145 else
7146   ac_cv_lib_ipc_shmat=no
7147 fi
7148 rm -f core conftest.err conftest.$ac_objext \
7149     conftest$ac_exeext conftest.$ac_ext
7150 LIBS=$ac_check_lib_save_LIBS
7151 fi
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
7153 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7154 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
7155   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7156 fi
7157
7158     fi
7159   fi
7160
7161   # Check for libraries that X11R6 Xt/Xaw programs need.
7162   ac_save_LDFLAGS=$LDFLAGS
7163   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7164   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7165   # check for ICE first), but we must link in the order -lSM -lICE or
7166   # we get undefined symbols.  So assume we have SM if we have ICE.
7167   # These have to be linked with before -lX11, unlike the other
7168   # libraries we check for below, so use a different variable.
7169   # John Interrante, Karl Berry
7170   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7171 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7172 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
7173   $as_echo_n "(cached) " >&6
7174 else
7175   ac_check_lib_save_LIBS=$LIBS
7176 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7178 /* end confdefs.h.  */
7179
7180 /* Override any GCC internal prototype to avoid an error.
7181    Use char because int might match the return type of a GCC
7182    builtin and then its argument prototype would still apply.  */
7183 #ifdef __cplusplus
7184 extern "C"
7185 #endif
7186 char IceConnectionNumber ();
7187 int
7188 main ()
7189 {
7190 return IceConnectionNumber ();
7191   ;
7192   return 0;
7193 }
7194 _ACEOF
7195 if ac_fn_c_try_link "$LINENO"; then :
7196   ac_cv_lib_ICE_IceConnectionNumber=yes
7197 else
7198   ac_cv_lib_ICE_IceConnectionNumber=no
7199 fi
7200 rm -f core conftest.err conftest.$ac_objext \
7201     conftest$ac_exeext conftest.$ac_ext
7202 LIBS=$ac_check_lib_save_LIBS
7203 fi
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7205 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7206 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
7207   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7208 fi
7209
7210   LDFLAGS=$ac_save_LDFLAGS
7211
7212 fi
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223 if test "x$with_x" = "xno"; then
7224   NO_X_TRUE=
7225   NO_X_FALSE='#'
7226 else
7227   NO_X_TRUE='#'
7228   NO_X_FALSE=
7229 fi
7230
7231
7232 my_includes="$my_includes -I../include -I.. -I/usr/local/include"
7233
7234
7235 LDFLAGS="$LDFLAGS -L/usr/local/lib"
7236
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7238 $as_echo_n "checking for X... " >&6; }
7239 if test "$with_x" != "no" && test "$wxwin" = "true"; then
7240
7241 $as_echo "#define HAVE_X11 1" >>confdefs.h
7242
7243   LDFLAGS="$LDFLAGS -L../libctgraphics -L/usr/X11R6/lib -L/usr/X11R6/lib64"
7244   my_includes="$my_includes -I/usr/X11R6/include"
7245   ctlib_graphics="$ctlibs_base -lctgraphics"
7246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7247 $as_echo "yes" >&6; }
7248   ctlib_graphics="$ctlib_graphics $X_BASIC_LIBS $X_TOOLKIT_LIBS"
7249   if test "$libgl" = "true" ; then
7250     # Removed "-lglut" for Mac OS X compilation
7251     ctlib_graphics="$ctlib_graphics -lGL -lGLU"
7252     if test "$wxwin" = "true" ; then
7253        wxdebug=""
7254        if test "$debug" = "true"; then
7255          wxdebug="--debug"
7256        fi
7257       if test "x$wx_gtk" != "x" ; then
7258        ctlib_graphics="$ctlib_graphics `$wxconfig $wxdebug --version=2.8  --libs` -lwx_gtk2u_gl-2.8 ${GTK_LIBS} ${GLIB_LIBS}"
7259       elif test "x$wx_mac" != "x" ; then
7260         ctlib_graphics="$ctlib_graphics `$wxconfig $wxdebug --version=2.8 --libs` -lwx_macu_gl-2.8"
7261       fi
7262     fi
7263   fi
7264   if test "$wxwin" = "true" ; then
7265
7266 $as_echo "#define HAVE_SGP 1" >>confdefs.h
7267
7268   fi
7269 else
7270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7271 $as_echo "no" >&6; }
7272 fi
7273
7274
7275
7276 if test "$wxwin" = "true"; then
7277   HAVE_SGP_TRUE=
7278   HAVE_SGP_FALSE='#'
7279 else
7280   HAVE_SGP_TRUE='#'
7281   HAVE_SGP_FALSE=
7282 fi
7283
7284
7285 if test "$png" = "true" ; then
7286   ctlibs_tools="$ctlibs_tools -lpng"
7287 fi
7288 if test "$zlib" = "true" ; then
7289   ctlibs_tools="$ctlibs_tools -lz"
7290 fi
7291 if test "$fftw" = "true" ; then
7292   ctlibs_tools="$ctlibs_tools -lfftw3"
7293 fi
7294 if test "$ctn" = "true"; then
7295   ctlibs_tools="$ctlibs_tools -lctn"
7296 fi
7297
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldmallocxx" >&5
7299 $as_echo_n "checking for main in -ldmallocxx... " >&6; }
7300 if test "${ac_cv_lib_dmallocxx_main+set}" = set; then :
7301   $as_echo_n "(cached) " >&6
7302 else
7303   ac_check_lib_save_LIBS=$LIBS
7304 LIBS="-ldmallocxx  $LIBS"
7305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7306 /* end confdefs.h.  */
7307
7308
7309 int
7310 main ()
7311 {
7312 return main ();
7313   ;
7314   return 0;
7315 }
7316 _ACEOF
7317 if ac_fn_c_try_link "$LINENO"; then :
7318   ac_cv_lib_dmallocxx_main=yes
7319 else
7320   ac_cv_lib_dmallocxx_main=no
7321 fi
7322 rm -f core conftest.err conftest.$ac_objext \
7323     conftest$ac_exeext conftest.$ac_ext
7324 LIBS=$ac_check_lib_save_LIBS
7325 fi
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dmallocxx_main" >&5
7327 $as_echo "$ac_cv_lib_dmallocxx_main" >&6; }
7328 if test "x$ac_cv_lib_dmallocxx_main" = x""yes; then :
7329   dmallocxx=true
7330 else
7331   dmallocxx=false
7332 fi
7333
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for enable-dmalloc" >&5
7335 $as_echo_n "checking for enable-dmalloc... " >&6; }
7336 # Check whether --enable-dmalloc was given.
7337 if test "${enable_dmalloc+set}" = set; then :
7338   enableval=$enable_dmalloc; case "${enableval}" in
7339   yes) usedmalloc=true
7340        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7341 $as_echo "yes" >&6; }
7342        ;;
7343   no)  usedmalloc=false
7344        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7345 $as_echo "no" >&6; }
7346        ;;
7347   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: bad value ${enableval} for --enable-dmalloc" >&5
7348 $as_echo "bad value ${enableval} for --enable-dmalloc" >&6; }
7349        ;;
7350 esac
7351 else
7352   usedmalloc=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7353 $as_echo "no" >&6; }
7354 fi
7355
7356
7357 if test "$dmallocxx" = "true" -a "$usedmalloc" = "true" ; then
7358   ctlibs_tools="$ctlibs_tools -ldmallocxx"
7359
7360 $as_echo "#define HAVE_DMALLOC 1" >>confdefs.h
7361
7362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using dmalloc" >&5
7363 $as_echo "Using dmalloc" >&6; }
7364 fi
7365
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lefence" >&5
7367 $as_echo_n "checking for main in -lefence... " >&6; }
7368 if test "${ac_cv_lib_efence_main+set}" = set; then :
7369   $as_echo_n "(cached) " >&6
7370 else
7371   ac_check_lib_save_LIBS=$LIBS
7372 LIBS="-lefence  $LIBS"
7373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7374 /* end confdefs.h.  */
7375
7376
7377 int
7378 main ()
7379 {
7380 return main ();
7381   ;
7382   return 0;
7383 }
7384 _ACEOF
7385 if ac_fn_c_try_link "$LINENO"; then :
7386   ac_cv_lib_efence_main=yes
7387 else
7388   ac_cv_lib_efence_main=no
7389 fi
7390 rm -f core conftest.err conftest.$ac_objext \
7391     conftest$ac_exeext conftest.$ac_ext
7392 LIBS=$ac_check_lib_save_LIBS
7393 fi
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efence_main" >&5
7395 $as_echo "$ac_cv_lib_efence_main" >&6; }
7396 if test "x$ac_cv_lib_efence_main" = x""yes; then :
7397   efence=true
7398 else
7399   efence=false
7400 fi
7401
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for enable-efence" >&5
7403 $as_echo_n "checking for enable-efence... " >&6; }
7404 # Check whether --enable-efence was given.
7405 if test "${enable_efence+set}" = set; then :
7406   enableval=$enable_efence; case "${enableval}" in
7407   yes) useefence=true
7408        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7409 $as_echo "yes" >&6; }
7410        ;;
7411   no)  useefence=false
7412        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7413 $as_echo "no" >&6; }
7414        ;;
7415   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: bad value ${enableval} for --enable-efence" >&5
7416 $as_echo "bad value ${enableval} for --enable-efence" >&6; }
7417        ;;
7418 esac
7419 else
7420   useefence=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7421 $as_echo "no" >&6; }
7422 fi
7423
7424
7425 if test "$efence" = "true" -a "$useefence" = "true" ; then
7426   ctlibs_tools="$ctlibs_tools -lefence"
7427
7428 $as_echo "#define HAVE_EFENCE 1" >>confdefs.h
7429
7430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using efence" >&5
7431 $as_echo "Using efence" >&6; }
7432 fi
7433
7434 if test "$wxwin" = "true" ; then
7435   if test "$wx_gtk" = "true"  -o "$wx_mac" = "true" ; then
7436     wxcflags=`$wxconfig $wxdebug --cxxflags --version=2.8`
7437     #wxlibs=`$wxconfig --libs`
7438   else
7439         wxcflags="-D__WXMSW__ -D__WIN32__ -D__GNUWIN32__"
7440         wxlibs="-lwx -lglui -ljpeg -lxpm -lzlib -ltiff"
7441   fi
7442   CFLAGS="$CFLAGS -I../include $wxcflags"
7443   ctlib_graphics="$ctlib_graphics $wxlibs"
7444 fi
7445
7446
7447
7448
7449 if test "$wxwin"="true"; then
7450   HAVE_WXWINDOWS_TRUE=
7451   HAVE_WXWINDOWS_FALSE='#'
7452 else
7453   HAVE_WXWINDOWS_TRUE='#'
7454   HAVE_WXWINDOWS_FALSE=
7455 fi
7456
7457
7458 LDFLAGS="$LDFLAGS -L../libctsupport -L../libctsim"
7459 ctlibs="$ctlibs_base -lctsim $ctlib_graphics -lctsupport $ctlibs_tools"
7460
7461
7462 if test "x$lamdir" != "x" ; then
7463   lamprograms="ctsimtext-lam"
7464
7465   lamdefs="$CFLAGS"
7466
7467 fi
7468
7469 CXXFLAGS="$CFLAGS"
7470
7471 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"
7472
7473
7474 cat >confcache <<\_ACEOF
7475 # This file is a shell script that caches the results of configure
7476 # tests run on this system so they can be shared between configure
7477 # scripts and configure runs, see configure's option --config-cache.
7478 # It is not useful on other systems.  If it contains results you don't
7479 # want to keep, you may remove or edit it.
7480 #
7481 # config.status only pays attention to the cache file if you give it
7482 # the --recheck option to rerun configure.
7483 #
7484 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7485 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7486 # following values.
7487
7488 _ACEOF
7489
7490 # The following way of writing the cache mishandles newlines in values,
7491 # but we know of no workaround that is simple, portable, and efficient.
7492 # So, we kill variables containing newlines.
7493 # Ultrix sh set writes to stderr and can't be redirected directly,
7494 # and sets the high bit in the cache file unless we assign to the vars.
7495 (
7496   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7497     eval ac_val=\$$ac_var
7498     case $ac_val in #(
7499     *${as_nl}*)
7500       case $ac_var in #(
7501       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7502 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7503       esac
7504       case $ac_var in #(
7505       _ | IFS | as_nl) ;; #(
7506       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7507       *) { eval $ac_var=; unset $ac_var;} ;;
7508       esac ;;
7509     esac
7510   done
7511
7512   (set) 2>&1 |
7513     case $as_nl`(ac_space=' '; set) 2>&1` in #(
7514     *${as_nl}ac_space=\ *)
7515       # `set' does not quote correctly, so add quotes: double-quote
7516       # substitution turns \\\\ into \\, and sed turns \\ into \.
7517       sed -n \
7518         "s/'/'\\\\''/g;
7519           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7520       ;; #(
7521     *)
7522       # `set' quotes correctly as required by POSIX, so do not add quotes.
7523       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7524       ;;
7525     esac |
7526     sort
7527 ) |
7528   sed '
7529      /^ac_cv_env_/b end
7530      t clear
7531      :clear
7532      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7533      t end
7534      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7535      :end' >>confcache
7536 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7537   if test -w "$cache_file"; then
7538     test "x$cache_file" != "x/dev/null" &&
7539       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7540 $as_echo "$as_me: updating cache $cache_file" >&6;}
7541     cat confcache >$cache_file
7542   else
7543     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7544 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7545   fi
7546 fi
7547 rm -f confcache
7548
7549 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7550 # Let make expand exec_prefix.
7551 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7552
7553 DEFS=-DHAVE_CONFIG_H
7554
7555 ac_libobjs=
7556 ac_ltlibobjs=
7557 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7558   # 1. Remove the extension, and $U if already installed.
7559   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7560   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7561   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
7562   #    will be set to the directory where LIBOBJS objects are built.
7563   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7564   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7565 done
7566 LIBOBJS=$ac_libobjs
7567
7568 LTLIBOBJS=$ac_ltlibobjs
7569
7570
7571 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7572   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
7573 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7574 fi
7575 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7576   as_fn_error "conditional \"AMDEP\" was never defined.
7577 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7578 fi
7579 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7580   as_fn_error "conditional \"am__fastdepCC\" was never defined.
7581 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7582 fi
7583 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
7584   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
7585 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7586 fi
7587
7588 if test -z "${INCLUDED_GETOPT_LONG_TRUE}" && test -z "${INCLUDED_GETOPT_LONG_FALSE}"; then
7589   as_fn_error "conditional \"INCLUDED_GETOPT_LONG\" was never defined.
7590 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7591 fi
7592 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
7593   as_fn_error "conditional \"DEBUG\" was never defined.
7594 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7595 fi
7596 if test -z "${USE_HTML_TRUE}" && test -z "${USE_HTML_FALSE}"; then
7597   as_fn_error "conditional \"USE_HTML\" was never defined.
7598 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7599 fi
7600 if test -z "${USE_LAM_TRUE}" && test -z "${USE_LAM_FALSE}"; then
7601   as_fn_error "conditional \"USE_LAM\" was never defined.
7602 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7603 fi
7604 if test -z "${NO_X_TRUE}" && test -z "${NO_X_FALSE}"; then
7605   as_fn_error "conditional \"NO_X\" was never defined.
7606 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7607 fi
7608 if test -z "${HAVE_SGP_TRUE}" && test -z "${HAVE_SGP_FALSE}"; then
7609   as_fn_error "conditional \"HAVE_SGP\" was never defined.
7610 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7611 fi
7612 if test -z "${HAVE_WXWINDOWS_TRUE}" && test -z "${HAVE_WXWINDOWS_FALSE}"; then
7613   as_fn_error "conditional \"HAVE_WXWINDOWS\" was never defined.
7614 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7615 fi
7616
7617 : ${CONFIG_STATUS=./config.status}
7618 ac_write_fail=0
7619 ac_clean_files_save=$ac_clean_files
7620 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7622 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7623 as_write_fail=0
7624 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7625 #! $SHELL
7626 # Generated by $as_me.
7627 # Run this file to recreate the current configuration.
7628 # Compiler output produced by configure, useful for debugging
7629 # configure, is in config.log if it exists.
7630
7631 debug=false
7632 ac_cs_recheck=false
7633 ac_cs_silent=false
7634
7635 SHELL=\${CONFIG_SHELL-$SHELL}
7636 export SHELL
7637 _ASEOF
7638 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7639 ## -------------------- ##
7640 ## M4sh Initialization. ##
7641 ## -------------------- ##
7642
7643 # Be more Bourne compatible
7644 DUALCASE=1; export DUALCASE # for MKS sh
7645 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7646   emulate sh
7647   NULLCMD=:
7648   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7649   # is contrary to our usage.  Disable this feature.
7650   alias -g '${1+"$@"}'='"$@"'
7651   setopt NO_GLOB_SUBST
7652 else
7653   case `(set -o) 2>/dev/null` in #(
7654   *posix*) :
7655     set -o posix ;; #(
7656   *) :
7657      ;;
7658 esac
7659 fi
7660
7661
7662 as_nl='
7663 '
7664 export as_nl
7665 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7666 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7667 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7668 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7669 # Prefer a ksh shell builtin over an external printf program on Solaris,
7670 # but without wasting forks for bash or zsh.
7671 if test -z "$BASH_VERSION$ZSH_VERSION" \
7672     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7673   as_echo='print -r --'
7674   as_echo_n='print -rn --'
7675 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7676   as_echo='printf %s\n'
7677   as_echo_n='printf %s'
7678 else
7679   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7680     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7681     as_echo_n='/usr/ucb/echo -n'
7682   else
7683     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7684     as_echo_n_body='eval
7685       arg=$1;
7686       case $arg in #(
7687       *"$as_nl"*)
7688         expr "X$arg" : "X\\(.*\\)$as_nl";
7689         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7690       esac;
7691       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7692     '
7693     export as_echo_n_body
7694     as_echo_n='sh -c $as_echo_n_body as_echo'
7695   fi
7696   export as_echo_body
7697   as_echo='sh -c $as_echo_body as_echo'
7698 fi
7699
7700 # The user is always right.
7701 if test "${PATH_SEPARATOR+set}" != set; then
7702   PATH_SEPARATOR=:
7703   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7704     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7705       PATH_SEPARATOR=';'
7706   }
7707 fi
7708
7709
7710 # IFS
7711 # We need space, tab and new line, in precisely that order.  Quoting is
7712 # there to prevent editors from complaining about space-tab.
7713 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7714 # splitting by setting IFS to empty value.)
7715 IFS=" ""        $as_nl"
7716
7717 # Find who we are.  Look in the path if we contain no directory separator.
7718 case $0 in #((
7719   *[\\/]* ) as_myself=$0 ;;
7720   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7721 for as_dir in $PATH
7722 do
7723   IFS=$as_save_IFS
7724   test -z "$as_dir" && as_dir=.
7725     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7726   done
7727 IFS=$as_save_IFS
7728
7729      ;;
7730 esac
7731 # We did not find ourselves, most probably we were run as `sh COMMAND'
7732 # in which case we are not to be found in the path.
7733 if test "x$as_myself" = x; then
7734   as_myself=$0
7735 fi
7736 if test ! -f "$as_myself"; then
7737   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7738   exit 1
7739 fi
7740
7741 # Unset variables that we do not need and which cause bugs (e.g. in
7742 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
7743 # suppresses any "Segmentation fault" message there.  '((' could
7744 # trigger a bug in pdksh 5.2.14.
7745 for as_var in BASH_ENV ENV MAIL MAILPATH
7746 do eval test x\${$as_var+set} = xset \
7747   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7748 done
7749 PS1='$ '
7750 PS2='> '
7751 PS4='+ '
7752
7753 # NLS nuisances.
7754 LC_ALL=C
7755 export LC_ALL
7756 LANGUAGE=C
7757 export LANGUAGE
7758
7759 # CDPATH.
7760 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7761
7762
7763 # as_fn_error ERROR [LINENO LOG_FD]
7764 # ---------------------------------
7765 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7766 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7767 # script with status $?, using 1 if that was 0.
7768 as_fn_error ()
7769 {
7770   as_status=$?; test $as_status -eq 0 && as_status=1
7771   if test "$3"; then
7772     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7773     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
7774   fi
7775   $as_echo "$as_me: error: $1" >&2
7776   as_fn_exit $as_status
7777 } # as_fn_error
7778
7779
7780 # as_fn_set_status STATUS
7781 # -----------------------
7782 # Set $? to STATUS, without forking.
7783 as_fn_set_status ()
7784 {
7785   return $1
7786 } # as_fn_set_status
7787
7788 # as_fn_exit STATUS
7789 # -----------------
7790 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7791 as_fn_exit ()
7792 {
7793   set +e
7794   as_fn_set_status $1
7795   exit $1
7796 } # as_fn_exit
7797
7798 # as_fn_unset VAR
7799 # ---------------
7800 # Portably unset VAR.
7801 as_fn_unset ()
7802 {
7803   { eval $1=; unset $1;}
7804 }
7805 as_unset=as_fn_unset
7806 # as_fn_append VAR VALUE
7807 # ----------------------
7808 # Append the text in VALUE to the end of the definition contained in VAR. Take
7809 # advantage of any shell optimizations that allow amortized linear growth over
7810 # repeated appends, instead of the typical quadratic growth present in naive
7811 # implementations.
7812 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7813   eval 'as_fn_append ()
7814   {
7815     eval $1+=\$2
7816   }'
7817 else
7818   as_fn_append ()
7819   {
7820     eval $1=\$$1\$2
7821   }
7822 fi # as_fn_append
7823
7824 # as_fn_arith ARG...
7825 # ------------------
7826 # Perform arithmetic evaluation on the ARGs, and store the result in the
7827 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7828 # must be portable across $(()) and expr.
7829 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7830   eval 'as_fn_arith ()
7831   {
7832     as_val=$(( $* ))
7833   }'
7834 else
7835   as_fn_arith ()
7836   {
7837     as_val=`expr "$@" || test $? -eq 1`
7838   }
7839 fi # as_fn_arith
7840
7841
7842 if expr a : '\(a\)' >/dev/null 2>&1 &&
7843    test "X`expr 00001 : '.*\(...\)'`" = X001; then
7844   as_expr=expr
7845 else
7846   as_expr=false
7847 fi
7848
7849 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7850   as_basename=basename
7851 else
7852   as_basename=false
7853 fi
7854
7855 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7856   as_dirname=dirname
7857 else
7858   as_dirname=false
7859 fi
7860
7861 as_me=`$as_basename -- "$0" ||
7862 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7863          X"$0" : 'X\(//\)$' \| \
7864          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7865 $as_echo X/"$0" |
7866     sed '/^.*\/\([^/][^/]*\)\/*$/{
7867             s//\1/
7868             q
7869           }
7870           /^X\/\(\/\/\)$/{
7871             s//\1/
7872             q
7873           }
7874           /^X\/\(\/\).*/{
7875             s//\1/
7876             q
7877           }
7878           s/.*/./; q'`
7879
7880 # Avoid depending upon Character Ranges.
7881 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7882 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7883 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7884 as_cr_digits='0123456789'
7885 as_cr_alnum=$as_cr_Letters$as_cr_digits
7886
7887 ECHO_C= ECHO_N= ECHO_T=
7888 case `echo -n x` in #(((((
7889 -n*)
7890   case `echo 'xy\c'` in
7891   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
7892   xy)  ECHO_C='\c';;
7893   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
7894        ECHO_T=' ';;
7895   esac;;
7896 *)
7897   ECHO_N='-n';;
7898 esac
7899
7900 rm -f conf$$ conf$$.exe conf$$.file
7901 if test -d conf$$.dir; then
7902   rm -f conf$$.dir/conf$$.file
7903 else
7904   rm -f conf$$.dir
7905   mkdir conf$$.dir 2>/dev/null
7906 fi
7907 if (echo >conf$$.file) 2>/dev/null; then
7908   if ln -s conf$$.file conf$$ 2>/dev/null; then
7909     as_ln_s='ln -s'
7910     # ... but there are two gotchas:
7911     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7912     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7913     # In both cases, we have to default to `cp -p'.
7914     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7915       as_ln_s='cp -p'
7916   elif ln conf$$.file conf$$ 2>/dev/null; then
7917     as_ln_s=ln
7918   else
7919     as_ln_s='cp -p'
7920   fi
7921 else
7922   as_ln_s='cp -p'
7923 fi
7924 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7925 rmdir conf$$.dir 2>/dev/null
7926
7927
7928 # as_fn_mkdir_p
7929 # -------------
7930 # Create "$as_dir" as a directory, including parents if necessary.
7931 as_fn_mkdir_p ()
7932 {
7933
7934   case $as_dir in #(
7935   -*) as_dir=./$as_dir;;
7936   esac
7937   test -d "$as_dir" || eval $as_mkdir_p || {
7938     as_dirs=
7939     while :; do
7940       case $as_dir in #(
7941       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7942       *) as_qdir=$as_dir;;
7943       esac
7944       as_dirs="'$as_qdir' $as_dirs"
7945       as_dir=`$as_dirname -- "$as_dir" ||
7946 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7947          X"$as_dir" : 'X\(//\)[^/]' \| \
7948          X"$as_dir" : 'X\(//\)$' \| \
7949          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7950 $as_echo X"$as_dir" |
7951     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7952             s//\1/
7953             q
7954           }
7955           /^X\(\/\/\)[^/].*/{
7956             s//\1/
7957             q
7958           }
7959           /^X\(\/\/\)$/{
7960             s//\1/
7961             q
7962           }
7963           /^X\(\/\).*/{
7964             s//\1/
7965             q
7966           }
7967           s/.*/./; q'`
7968       test -d "$as_dir" && break
7969     done
7970     test -z "$as_dirs" || eval "mkdir $as_dirs"
7971   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
7972
7973
7974 } # as_fn_mkdir_p
7975 if mkdir -p . 2>/dev/null; then
7976   as_mkdir_p='mkdir -p "$as_dir"'
7977 else
7978   test -d ./-p && rmdir ./-p
7979   as_mkdir_p=false
7980 fi
7981
7982 if test -x / >/dev/null 2>&1; then
7983   as_test_x='test -x'
7984 else
7985   if ls -dL / >/dev/null 2>&1; then
7986     as_ls_L_option=L
7987   else
7988     as_ls_L_option=
7989   fi
7990   as_test_x='
7991     eval sh -c '\''
7992       if test -d "$1"; then
7993         test -d "$1/.";
7994       else
7995         case $1 in #(
7996         -*)set "./$1";;
7997         esac;
7998         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
7999         ???[sx]*):;;*)false;;esac;fi
8000     '\'' sh
8001   '
8002 fi
8003 as_executable_p=$as_test_x
8004
8005 # Sed expression to map a string onto a valid CPP name.
8006 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8007
8008 # Sed expression to map a string onto a valid variable name.
8009 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8010
8011
8012 exec 6>&1
8013 ## ----------------------------------- ##
8014 ## Main body of $CONFIG_STATUS script. ##
8015 ## ----------------------------------- ##
8016 _ASEOF
8017 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8018
8019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8020 # Save the log message, to keep $0 and so on meaningful, and to
8021 # report actual input values of CONFIG_FILES etc. instead of their
8022 # values after options handling.
8023 ac_log="
8024 This file was extended by $as_me, which was
8025 generated by GNU Autoconf 2.64.  Invocation command line was
8026
8027   CONFIG_FILES    = $CONFIG_FILES
8028   CONFIG_HEADERS  = $CONFIG_HEADERS
8029   CONFIG_LINKS    = $CONFIG_LINKS
8030   CONFIG_COMMANDS = $CONFIG_COMMANDS
8031   $ $0 $@
8032
8033 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8034 "
8035
8036 _ACEOF
8037
8038 case $ac_config_files in *"
8039 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8040 esac
8041
8042 case $ac_config_headers in *"
8043 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8044 esac
8045
8046
8047 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8048 # Files that config.status was made for.
8049 config_files="$ac_config_files"
8050 config_headers="$ac_config_headers"
8051 config_commands="$ac_config_commands"
8052
8053 _ACEOF
8054
8055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8056 ac_cs_usage="\
8057 \`$as_me' instantiates files and other configuration actions
8058 from templates according to the current configuration.  Unless the files
8059 and actions are specified as TAGs, all are instantiated by default.
8060
8061 Usage: $0 [OPTION]... [TAG]...
8062
8063   -h, --help       print this help, then exit
8064   -V, --version    print version number and configuration settings, then exit
8065   -q, --quiet, --silent
8066                    do not print progress messages
8067   -d, --debug      don't remove temporary files
8068       --recheck    update $as_me by reconfiguring in the same conditions
8069       --file=FILE[:TEMPLATE]
8070                    instantiate the configuration file FILE
8071       --header=FILE[:TEMPLATE]
8072                    instantiate the configuration header FILE
8073
8074 Configuration files:
8075 $config_files
8076
8077 Configuration headers:
8078 $config_headers
8079
8080 Configuration commands:
8081 $config_commands
8082
8083 Report bugs to the package provider."
8084
8085 _ACEOF
8086 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8087 ac_cs_version="\\
8088 config.status
8089 configured by $0, generated by GNU Autoconf 2.64,
8090   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8091
8092 Copyright (C) 2009 Free Software Foundation, Inc.
8093 This config.status script is free software; the Free Software Foundation
8094 gives unlimited permission to copy, distribute and modify it."
8095
8096 ac_pwd='$ac_pwd'
8097 srcdir='$srcdir'
8098 INSTALL='$INSTALL'
8099 AWK='$AWK'
8100 test -n "\$AWK" || AWK=awk
8101 _ACEOF
8102
8103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8104 # The default lists apply if the user does not specify any file.
8105 ac_need_defaults=:
8106 while test $# != 0
8107 do
8108   case $1 in
8109   --*=*)
8110     ac_option=`expr "X$1" : 'X\([^=]*\)='`
8111     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8112     ac_shift=:
8113     ;;
8114   *)
8115     ac_option=$1
8116     ac_optarg=$2
8117     ac_shift=shift
8118     ;;
8119   esac
8120
8121   case $ac_option in
8122   # Handling of the options.
8123   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8124     ac_cs_recheck=: ;;
8125   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8126     $as_echo "$ac_cs_version"; exit ;;
8127   --debug | --debu | --deb | --de | --d | -d )
8128     debug=: ;;
8129   --file | --fil | --fi | --f )
8130     $ac_shift
8131     case $ac_optarg in
8132     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8133     esac
8134     as_fn_append CONFIG_FILES " '$ac_optarg'"
8135     ac_need_defaults=false;;
8136   --header | --heade | --head | --hea )
8137     $ac_shift
8138     case $ac_optarg in
8139     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8140     esac
8141     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8142     ac_need_defaults=false;;
8143   --he | --h)
8144     # Conflict between --help and --header
8145     as_fn_error "ambiguous option: \`$1'
8146 Try \`$0 --help' for more information.";;
8147   --help | --hel | -h )
8148     $as_echo "$ac_cs_usage"; exit ;;
8149   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8150   | -silent | --silent | --silen | --sile | --sil | --si | --s)
8151     ac_cs_silent=: ;;
8152
8153   # This is an error.
8154   -*) as_fn_error "unrecognized option: \`$1'
8155 Try \`$0 --help' for more information." ;;
8156
8157   *) as_fn_append ac_config_targets " $1"
8158      ac_need_defaults=false ;;
8159
8160   esac
8161   shift
8162 done
8163
8164 ac_configure_extra_args=
8165
8166 if $ac_cs_silent; then
8167   exec 6>/dev/null
8168   ac_configure_extra_args="$ac_configure_extra_args --silent"
8169 fi
8170
8171 _ACEOF
8172 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8173 if \$ac_cs_recheck; then
8174   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8175   shift
8176   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8177   CONFIG_SHELL='$SHELL'
8178   export CONFIG_SHELL
8179   exec "\$@"
8180 fi
8181
8182 _ACEOF
8183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8184 exec 5>>config.log
8185 {
8186   echo
8187   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8188 ## Running $as_me. ##
8189 _ASBOX
8190   $as_echo "$ac_log"
8191 } >&5
8192
8193 _ACEOF
8194 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8195 #
8196 # INIT-COMMANDS
8197 #
8198 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8199
8200 _ACEOF
8201
8202 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8203
8204 # Handling of arguments.
8205 for ac_config_target in $ac_config_targets
8206 do
8207   case $ac_config_target in
8208     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8209     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8210     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8211     "libctgraphics/Makefile") CONFIG_FILES="$CONFIG_FILES libctgraphics/Makefile" ;;
8212     "libctsupport/Makefile") CONFIG_FILES="$CONFIG_FILES libctsupport/Makefile" ;;
8213     "libctsim/Makefile") CONFIG_FILES="$CONFIG_FILES libctsim/Makefile" ;;
8214     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
8215     "cgi-bin/ctsim.cgi") CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.cgi" ;;
8216     "cgi-bin/Makefile") CONFIG_FILES="$CONFIG_FILES cgi-bin/Makefile" ;;
8217     "html/simulate.html") CONFIG_FILES="$CONFIG_FILES html/simulate.html" ;;
8218     "html/Makefile") CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
8219     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
8220     "getopt/Makefile") CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;;
8221     "tools/sample-ctsim.sh") CONFIG_FILES="$CONFIG_FILES tools/sample-ctsim.sh" ;;
8222     "cgi-bin/ctsim.conf") CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.conf" ;;
8223     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
8224     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8225     "helical/Makefile") CONFIG_FILES="$CONFIG_FILES helical/Makefile" ;;
8226     "helical/sample-helical.sh") CONFIG_FILES="$CONFIG_FILES helical/sample-helical.sh" ;;
8227
8228   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8229   esac
8230 done
8231
8232
8233 # If the user did not use the arguments to specify the items to instantiate,
8234 # then the envvar interface is used.  Set only those that are not.
8235 # We use the long form for the default assignment because of an extremely
8236 # bizarre bug on SunOS 4.1.3.
8237 if $ac_need_defaults; then
8238   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8239   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8240   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8241 fi
8242
8243 # Have a temporary directory for convenience.  Make it in the build tree
8244 # simply because there is no reason against having it here, and in addition,
8245 # creating and moving files from /tmp can sometimes cause problems.
8246 # Hook for its removal unless debugging.
8247 # Note that there is a small window in which the directory will not be cleaned:
8248 # after its creation but before its name has been assigned to `$tmp'.
8249 $debug ||
8250 {
8251   tmp=
8252   trap 'exit_status=$?
8253   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8254 ' 0
8255   trap 'as_fn_exit 1' 1 2 13 15
8256 }
8257 # Create a (secure) tmp directory for tmp files.
8258
8259 {
8260   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8261   test -n "$tmp" && test -d "$tmp"
8262 }  ||
8263 {
8264   tmp=./conf$$-$RANDOM
8265   (umask 077 && mkdir "$tmp")
8266 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
8267
8268 # Set up the scripts for CONFIG_FILES section.
8269 # No need to generate them if there are no CONFIG_FILES.
8270 # This happens for instance with `./config.status config.h'.
8271 if test -n "$CONFIG_FILES"; then
8272
8273
8274 ac_cr=`echo X | tr X '\015'`
8275 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8276 # But we know of no other shell where ac_cr would be empty at this
8277 # point, so we can use a bashism as a fallback.
8278 if test "x$ac_cr" = x; then
8279   eval ac_cr=\$\'\\r\'
8280 fi
8281 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8282 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8283   ac_cs_awk_cr='\r'
8284 else
8285   ac_cs_awk_cr=$ac_cr
8286 fi
8287
8288 echo 'BEGIN {' >"$tmp/subs1.awk" &&
8289 _ACEOF
8290
8291
8292 {
8293   echo "cat >conf$$subs.awk <<_ACEOF" &&
8294   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8295   echo "_ACEOF"
8296 } >conf$$subs.sh ||
8297   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8298 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
8299 ac_delim='%!_!# '
8300 for ac_last_try in false false false false false :; do
8301   . ./conf$$subs.sh ||
8302     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8303
8304   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8305   if test $ac_delim_n = $ac_delim_num; then
8306     break
8307   elif $ac_last_try; then
8308     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8309   else
8310     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8311   fi
8312 done
8313 rm -f conf$$subs.sh
8314
8315 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8316 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8317 _ACEOF
8318 sed -n '
8319 h
8320 s/^/S["/; s/!.*/"]=/
8321 p
8322 g
8323 s/^[^!]*!//
8324 :repl
8325 t repl
8326 s/'"$ac_delim"'$//
8327 t delim
8328 :nl
8329 h
8330 s/\(.\{148\}\).*/\1/
8331 t more1
8332 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8333 p
8334 n
8335 b repl
8336 :more1
8337 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8338 p
8339 g
8340 s/.\{148\}//
8341 t nl
8342 :delim
8343 h
8344 s/\(.\{148\}\).*/\1/
8345 t more2
8346 s/["\\]/\\&/g; s/^/"/; s/$/"/
8347 p
8348 b
8349 :more2
8350 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8351 p
8352 g
8353 s/.\{148\}//
8354 t delim
8355 ' <conf$$subs.awk | sed '
8356 /^[^""]/{
8357   N
8358   s/\n//
8359 }
8360 ' >>$CONFIG_STATUS || ac_write_fail=1
8361 rm -f conf$$subs.awk
8362 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8363 _ACAWK
8364 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8365   for (key in S) S_is_set[key] = 1
8366   FS = "\a"
8367
8368 }
8369 {
8370   line = $ 0
8371   nfields = split(line, field, "@")
8372   substed = 0
8373   len = length(field[1])
8374   for (i = 2; i < nfields; i++) {
8375     key = field[i]
8376     keylen = length(key)
8377     if (S_is_set[key]) {
8378       value = S[key]
8379       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8380       len += length(value) + length(field[++i])
8381       substed = 1
8382     } else
8383       len += 1 + keylen
8384   }
8385
8386   print line
8387 }
8388
8389 _ACAWK
8390 _ACEOF
8391 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8392 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8393   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8394 else
8395   cat
8396 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8397   || as_fn_error "could not setup config files machinery" "$LINENO" 5
8398 _ACEOF
8399
8400 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8401 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8402 # trailing colons and then remove the whole line if VPATH becomes empty
8403 # (actually we leave an empty line to preserve line numbers).
8404 if test "x$srcdir" = x.; then
8405   ac_vpsub='/^[  ]*VPATH[        ]*=/{
8406 s/:*\$(srcdir):*/:/
8407 s/:*\${srcdir}:*/:/
8408 s/:*@srcdir@:*/:/
8409 s/^\([^=]*=[     ]*\):*/\1/
8410 s/:*$//
8411 s/^[^=]*=[       ]*$//
8412 }'
8413 fi
8414
8415 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8416 fi # test -n "$CONFIG_FILES"
8417
8418 # Set up the scripts for CONFIG_HEADERS section.
8419 # No need to generate them if there are no CONFIG_HEADERS.
8420 # This happens for instance with `./config.status Makefile'.
8421 if test -n "$CONFIG_HEADERS"; then
8422 cat >"$tmp/defines.awk" <<\_ACAWK ||
8423 BEGIN {
8424 _ACEOF
8425
8426 # Transform confdefs.h into an awk script `defines.awk', embedded as
8427 # here-document in config.status, that substitutes the proper values into
8428 # config.h.in to produce config.h.
8429
8430 # Create a delimiter string that does not exist in confdefs.h, to ease
8431 # handling of long lines.
8432 ac_delim='%!_!# '
8433 for ac_last_try in false false :; do
8434   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8435   if test -z "$ac_t"; then
8436     break
8437   elif $ac_last_try; then
8438     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
8439   else
8440     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8441   fi
8442 done
8443
8444 # For the awk script, D is an array of macro values keyed by name,
8445 # likewise P contains macro parameters if any.  Preserve backslash
8446 # newline sequences.
8447
8448 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8449 sed -n '
8450 s/.\{148\}/&'"$ac_delim"'/g
8451 t rset
8452 :rset
8453 s/^[     ]*#[    ]*define[       ][      ]*/ /
8454 t def
8455 d
8456 :def
8457 s/\\$//
8458 t bsnl
8459 s/["\\]/\\&/g
8460 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
8461 D["\1"]=" \3"/p
8462 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
8463 d
8464 :bsnl
8465 s/["\\]/\\&/g
8466 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
8467 D["\1"]=" \3\\\\\\n"\\/p
8468 t cont
8469 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8470 t cont
8471 d
8472 :cont
8473 n
8474 s/.\{148\}/&'"$ac_delim"'/g
8475 t clear
8476 :clear
8477 s/\\$//
8478 t bsnlc
8479 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8480 d
8481 :bsnlc
8482 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8483 b cont
8484 ' <confdefs.h | sed '
8485 s/'"$ac_delim"'/"\\\
8486 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8487
8488 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8489   for (key in D) D_is_set[key] = 1
8490   FS = "\a"
8491 }
8492 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8493   line = \$ 0
8494   split(line, arg, " ")
8495   if (arg[1] == "#") {
8496     defundef = arg[2]
8497     mac1 = arg[3]
8498   } else {
8499     defundef = substr(arg[1], 2)
8500     mac1 = arg[2]
8501   }
8502   split(mac1, mac2, "(") #)
8503   macro = mac2[1]
8504   prefix = substr(line, 1, index(line, defundef) - 1)
8505   if (D_is_set[macro]) {
8506     # Preserve the white space surrounding the "#".
8507     print prefix "define", macro P[macro] D[macro]
8508     next
8509   } else {
8510     # Replace #undef with comments.  This is necessary, for example,
8511     # in the case of _POSIX_SOURCE, which is predefined and required
8512     # on some systems where configure will not decide to define it.
8513     if (defundef == "undef") {
8514       print "/*", prefix defundef, macro, "*/"
8515       next
8516     }
8517   }
8518 }
8519 { print }
8520 _ACAWK
8521 _ACEOF
8522 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8523   as_fn_error "could not setup config headers machinery" "$LINENO" 5
8524 fi # test -n "$CONFIG_HEADERS"
8525
8526
8527 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
8528 shift
8529 for ac_tag
8530 do
8531   case $ac_tag in
8532   :[FHLC]) ac_mode=$ac_tag; continue;;
8533   esac
8534   case $ac_mode$ac_tag in
8535   :[FHL]*:*);;
8536   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
8537   :[FH]-) ac_tag=-:-;;
8538   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8539   esac
8540   ac_save_IFS=$IFS
8541   IFS=:
8542   set x $ac_tag
8543   IFS=$ac_save_IFS
8544   shift
8545   ac_file=$1
8546   shift
8547
8548   case $ac_mode in
8549   :L) ac_source=$1;;
8550   :[FH])
8551     ac_file_inputs=
8552     for ac_f
8553     do
8554       case $ac_f in
8555       -) ac_f="$tmp/stdin";;
8556       *) # Look for the file first in the build tree, then in the source tree
8557          # (if the path is not absolute).  The absolute path cannot be DOS-style,
8558          # because $ac_f cannot contain `:'.
8559          test -f "$ac_f" ||
8560            case $ac_f in
8561            [\\/$]*) false;;
8562            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8563            esac ||
8564            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8565       esac
8566       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8567       as_fn_append ac_file_inputs " '$ac_f'"
8568     done
8569
8570     # Let's still pretend it is `configure' which instantiates (i.e., don't
8571     # use $as_me), people would be surprised to read:
8572     #    /* config.h.  Generated by config.status.  */
8573     configure_input='Generated from '`
8574           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8575         `' by configure.'
8576     if test x"$ac_file" != x-; then
8577       configure_input="$ac_file.  $configure_input"
8578       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8579 $as_echo "$as_me: creating $ac_file" >&6;}
8580     fi
8581     # Neutralize special characters interpreted by sed in replacement strings.
8582     case $configure_input in #(
8583     *\&* | *\|* | *\\* )
8584        ac_sed_conf_input=`$as_echo "$configure_input" |
8585        sed 's/[\\\\&|]/\\\\&/g'`;; #(
8586     *) ac_sed_conf_input=$configure_input;;
8587     esac
8588
8589     case $ac_tag in
8590     *:-:* | *:-) cat >"$tmp/stdin" \
8591       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
8592     esac
8593     ;;
8594   esac
8595
8596   ac_dir=`$as_dirname -- "$ac_file" ||
8597 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8598          X"$ac_file" : 'X\(//\)[^/]' \| \
8599          X"$ac_file" : 'X\(//\)$' \| \
8600          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8601 $as_echo X"$ac_file" |
8602     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8603             s//\1/
8604             q
8605           }
8606           /^X\(\/\/\)[^/].*/{
8607             s//\1/
8608             q
8609           }
8610           /^X\(\/\/\)$/{
8611             s//\1/
8612             q
8613           }
8614           /^X\(\/\).*/{
8615             s//\1/
8616             q
8617           }
8618           s/.*/./; q'`
8619   as_dir="$ac_dir"; as_fn_mkdir_p
8620   ac_builddir=.
8621
8622 case "$ac_dir" in
8623 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8624 *)
8625   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8626   # A ".." for each directory in $ac_dir_suffix.
8627   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8628   case $ac_top_builddir_sub in
8629   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8630   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8631   esac ;;
8632 esac
8633 ac_abs_top_builddir=$ac_pwd
8634 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8635 # for backward compatibility:
8636 ac_top_builddir=$ac_top_build_prefix
8637
8638 case $srcdir in
8639   .)  # We are building in place.
8640     ac_srcdir=.
8641     ac_top_srcdir=$ac_top_builddir_sub
8642     ac_abs_top_srcdir=$ac_pwd ;;
8643   [\\/]* | ?:[\\/]* )  # Absolute name.
8644     ac_srcdir=$srcdir$ac_dir_suffix;
8645     ac_top_srcdir=$srcdir
8646     ac_abs_top_srcdir=$srcdir ;;
8647   *) # Relative name.
8648     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8649     ac_top_srcdir=$ac_top_build_prefix$srcdir
8650     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8651 esac
8652 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8653
8654
8655   case $ac_mode in
8656   :F)
8657   #
8658   # CONFIG_FILE
8659   #
8660
8661   case $INSTALL in
8662   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8663   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8664   esac
8665 _ACEOF
8666
8667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8668 # If the template does not know about datarootdir, expand it.
8669 # FIXME: This hack should be removed a few years after 2.60.
8670 ac_datarootdir_hack=; ac_datarootdir_seen=
8671 ac_sed_dataroot='
8672 /datarootdir/ {
8673   p
8674   q
8675 }
8676 /@datadir@/p
8677 /@docdir@/p
8678 /@infodir@/p
8679 /@localedir@/p
8680 /@mandir@/p'
8681 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8682 *datarootdir*) ac_datarootdir_seen=yes;;
8683 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8684   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8685 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8686 _ACEOF
8687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8688   ac_datarootdir_hack='
8689   s&@datadir@&$datadir&g
8690   s&@docdir@&$docdir&g
8691   s&@infodir@&$infodir&g
8692   s&@localedir@&$localedir&g
8693   s&@mandir@&$mandir&g
8694   s&\\\${datarootdir}&$datarootdir&g' ;;
8695 esac
8696 _ACEOF
8697
8698 # Neutralize VPATH when `$srcdir' = `.'.
8699 # Shell code in configure.ac might set extrasub.
8700 # FIXME: do we really want to maintain this feature?
8701 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8702 ac_sed_extra="$ac_vpsub
8703 $extrasub
8704 _ACEOF
8705 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8706 :t
8707 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8708 s|@configure_input@|$ac_sed_conf_input|;t t
8709 s&@top_builddir@&$ac_top_builddir_sub&;t t
8710 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8711 s&@srcdir@&$ac_srcdir&;t t
8712 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8713 s&@top_srcdir@&$ac_top_srcdir&;t t
8714 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8715 s&@builddir@&$ac_builddir&;t t
8716 s&@abs_builddir@&$ac_abs_builddir&;t t
8717 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8718 s&@INSTALL@&$ac_INSTALL&;t t
8719 $ac_datarootdir_hack
8720 "
8721 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8722   || as_fn_error "could not create $ac_file" "$LINENO" 5
8723
8724 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8725   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8726   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8727   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8728 which seems to be undefined.  Please make sure it is defined." >&5
8729 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8730 which seems to be undefined.  Please make sure it is defined." >&2;}
8731
8732   rm -f "$tmp/stdin"
8733   case $ac_file in
8734   -) cat "$tmp/out" && rm -f "$tmp/out";;
8735   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8736   esac \
8737   || as_fn_error "could not create $ac_file" "$LINENO" 5
8738  ;;
8739   :H)
8740   #
8741   # CONFIG_HEADER
8742   #
8743   if test x"$ac_file" != x-; then
8744     {
8745       $as_echo "/* $configure_input  */" \
8746       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8747     } >"$tmp/config.h" \
8748       || as_fn_error "could not create $ac_file" "$LINENO" 5
8749     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8750       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8751 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8752     else
8753       rm -f "$ac_file"
8754       mv "$tmp/config.h" "$ac_file" \
8755         || as_fn_error "could not create $ac_file" "$LINENO" 5
8756     fi
8757   else
8758     $as_echo "/* $configure_input  */" \
8759       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8760       || as_fn_error "could not create -" "$LINENO" 5
8761   fi
8762 # Compute "$ac_file"'s index in $config_headers.
8763 _am_stamp_count=1
8764 for _am_header in $config_headers :; do
8765   case $_am_header in
8766     "$ac_file" | "$ac_file":* )
8767       break ;;
8768     * )
8769       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8770   esac
8771 done
8772 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
8773 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8774          X"$ac_file" : 'X\(//\)[^/]' \| \
8775          X"$ac_file" : 'X\(//\)$' \| \
8776          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8777 $as_echo X"$ac_file" |
8778     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8779             s//\1/
8780             q
8781           }
8782           /^X\(\/\/\)[^/].*/{
8783             s//\1/
8784             q
8785           }
8786           /^X\(\/\/\)$/{
8787             s//\1/
8788             q
8789           }
8790           /^X\(\/\).*/{
8791             s//\1/
8792             q
8793           }
8794           s/.*/./; q'`/stamp-h$_am_stamp_count
8795  ;;
8796
8797   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8798 $as_echo "$as_me: executing $ac_file commands" >&6;}
8799  ;;
8800   esac
8801
8802
8803   case $ac_file$ac_mode in
8804     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
8805   # Strip MF so we end up with the name of the file.
8806   mf=`echo "$mf" | sed -e 's/:.*$//'`
8807   # Check whether this is an Automake generated Makefile or not.
8808   # We used to match only the files named `Makefile.in', but
8809   # some people rename them; so instead we look at the file content.
8810   # Grep'ing the first line is not enough: some people post-process
8811   # each Makefile.in and add a new line on top of each file to say so.
8812   # So let's grep whole file.
8813   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
8814     dirpart=`$as_dirname -- "$mf" ||
8815 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8816          X"$mf" : 'X\(//\)[^/]' \| \
8817          X"$mf" : 'X\(//\)$' \| \
8818          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8819 $as_echo X"$mf" |
8820     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8821             s//\1/
8822             q
8823           }
8824           /^X\(\/\/\)[^/].*/{
8825             s//\1/
8826             q
8827           }
8828           /^X\(\/\/\)$/{
8829             s//\1/
8830             q
8831           }
8832           /^X\(\/\).*/{
8833             s//\1/
8834             q
8835           }
8836           s/.*/./; q'`
8837   else
8838     continue
8839   fi
8840   # Extract the definition of DEPDIR, am__include, and am__quote
8841   # from the Makefile without running `make'.
8842   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8843   test -z "$DEPDIR" && continue
8844   am__include=`sed -n 's/^am__include = //p' < "$mf"`
8845   test -z "am__include" && continue
8846   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8847   # When using ansi2knr, U may be empty or an underscore; expand it
8848   U=`sed -n 's/^U = //p' < "$mf"`
8849   # Find all dependency output files, they are included files with
8850   # $(DEPDIR) in their names.  We invoke sed twice because it is the
8851   # simplest approach to changing $(DEPDIR) to its actual value in the
8852   # expansion.
8853   for file in `sed -n "
8854     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8855        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8856     # Make sure the directory exists.
8857     test -f "$dirpart/$file" && continue
8858     fdir=`$as_dirname -- "$file" ||
8859 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8860          X"$file" : 'X\(//\)[^/]' \| \
8861          X"$file" : 'X\(//\)$' \| \
8862          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8863 $as_echo X"$file" |
8864     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8865             s//\1/
8866             q
8867           }
8868           /^X\(\/\/\)[^/].*/{
8869             s//\1/
8870             q
8871           }
8872           /^X\(\/\/\)$/{
8873             s//\1/
8874             q
8875           }
8876           /^X\(\/\).*/{
8877             s//\1/
8878             q
8879           }
8880           s/.*/./; q'`
8881     as_dir=$dirpart/$fdir; as_fn_mkdir_p
8882     # echo "creating $dirpart/$file"
8883     echo '# dummy' > "$dirpart/$file"
8884   done
8885 done
8886  ;;
8887
8888   esac
8889 done # for ac_tag
8890
8891
8892 as_fn_exit 0
8893 _ACEOF
8894 ac_clean_files=$ac_clean_files_save
8895
8896 test $ac_write_fail = 0 ||
8897   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
8898
8899
8900 # configure is writing to config.log, and then calls config.status.
8901 # config.status does its own redirection, appending to config.log.
8902 # Unfortunately, on DOS this fails, as config.log is still kept open
8903 # by configure, so config.status won't be able to write to it; its
8904 # output is simply discarded.  So we exec the FD to /dev/null,
8905 # effectively closing config.log, so it can be properly (re)opened and
8906 # appended to by config.status.  When coming back to configure, we
8907 # need to make the FD available again.
8908 if test "$no_create" != yes; then
8909   ac_cs_success=:
8910   ac_config_status_args=
8911   test "$silent" = yes &&
8912     ac_config_status_args="$ac_config_status_args --quiet"
8913   exec 5>/dev/null
8914   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8915   exec 5>>config.log
8916   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8917   # would make configure fail if this is the last instruction.
8918   $ac_cs_success || as_fn_exit $?
8919 fi
8920 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8921   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8922 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8923 fi
8924