Maemo "optification" was added
[gnuplot] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for gnuplot 4.2.6.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME='gnuplot'
574 PACKAGE_TARNAME='gnuplot'
575 PACKAGE_VERSION='4.2.6'
576 PACKAGE_STRING='gnuplot 4.2.6'
577 PACKAGE_BUGREPORT=''
578
579 ac_unique_file="src/graphics.c"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 #  include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #  include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 INSTALL_PROGRAM
654 INSTALL_SCRIPT
655 INSTALL_DATA
656 CYGPATH_W
657 PACKAGE
658 VERSION
659 ACLOCAL
660 AUTOCONF
661 AUTOMAKE
662 AUTOHEADER
663 MAKEINFO
664 AMTAR
665 install_sh
666 STRIP
667 INSTALL_STRIP_PROGRAM
668 mkdir_p
669 AWK
670 SET_MAKE
671 am__leading_dot
672 CC
673 CFLAGS
674 LDFLAGS
675 CPPFLAGS
676 ac_ct_CC
677 EXEEXT
678 OBJEXT
679 DEPDIR
680 am__include
681 am__quote
682 AMDEP_TRUE
683 AMDEP_FALSE
684 AMDEPBACKSLASH
685 CCDEPMODE
686 am__fastdepCC_TRUE
687 am__fastdepCC_FALSE
688 CPP
689 GREP
690 EGREP
691 U
692 ANSI2KNR
693 EMACS
694 PLAINTEX
695 LATEX
696 PDFLATEX
697 DVIPS
698 TROFF
699 LIBRARIES_FOR_X
700 XMKMF
701 X_CFLAGS
702 X_PRE_LIBS
703 X_LIBS
704 X_EXTRA_LIBS
705 GNUPLOT_X11
706 BUILD_SRC_BEOS_SUBDIR_TRUE
707 BUILD_SRC_BEOS_SUBDIR_FALSE
708 GDLIB_CONFIG
709 PDFLIB_CONFIG
710 INCLUDE_BINARY_C_TRUE
711 INCLUDE_BINARY_C_FALSE
712 CXX
713 CXXFLAGS
714 ac_ct_CXX
715 CXXDEPMODE
716 am__fastdepCXX_TRUE
717 am__fastdepCXX_FALSE
718 CXXCPP
719 WX_CONFIG
720 PKG_CONFIG
721 CAIROPANGO_CFLAGS
722 CAIROPANGO_LIBS
723 PANGO_1_10_2_CFLAGS
724 PANGO_1_10_2_LIBS
725 GTK_CFLAGS
726 GTK_LIBS
727 GTK28_CFLAGS
728 GTK28_LIBS
729 WX_LIBS
730 BUILD_WXWIDGETS_TRUE
731 BUILD_WXWIDGETS_FALSE
732 subdirs
733 LISPDIR
734 VERSION_MAJOR
735 GIHDIR
736 LASERGNU
737 LINUXSUID
738 TERMLIBS
739 TERMXLIBS
740 TUTORIAL
741 LIBOBJS
742 LTLIBOBJS'
743 ac_subst_files=''
744       ac_precious_vars='build_alias
745 host_alias
746 target_alias
747 CC
748 CFLAGS
749 LDFLAGS
750 LIBS
751 CPPFLAGS
752 CPP
753 XMKMF
754 CXX
755 CXXFLAGS
756 CCC
757 CXXCPP
758 PKG_CONFIG
759 CAIROPANGO_CFLAGS
760 CAIROPANGO_LIBS
761 PANGO_1_10_2_CFLAGS
762 PANGO_1_10_2_LIBS
763 GTK_CFLAGS
764 GTK_LIBS
765 GTK28_CFLAGS
766 GTK28_LIBS'
767 ac_subdirs_all='lisp'
768
769 # Initialize some variables set by options.
770 ac_init_help=
771 ac_init_version=false
772 # The variables have the same names as the options, with
773 # dashes changed to underlines.
774 cache_file=/dev/null
775 exec_prefix=NONE
776 no_create=
777 no_recursion=
778 prefix=NONE
779 program_prefix=NONE
780 program_suffix=NONE
781 program_transform_name=s,x,x,
782 silent=
783 site=
784 srcdir=
785 verbose=
786 x_includes=NONE
787 x_libraries=NONE
788
789 # Installation directory options.
790 # These are left unexpanded so users can "make install exec_prefix=/foo"
791 # and all the variables that are supposed to be based on exec_prefix
792 # by default will actually change.
793 # Use braces instead of parens because sh, perl, etc. also accept them.
794 # (The list follows the same order as the GNU Coding Standards.)
795 bindir='${exec_prefix}/bin'
796 sbindir='${exec_prefix}/sbin'
797 libexecdir='${exec_prefix}/libexec'
798 datarootdir='${prefix}/share'
799 datadir='${datarootdir}'
800 sysconfdir='${prefix}/etc'
801 sharedstatedir='${prefix}/com'
802 localstatedir='${prefix}/var'
803 includedir='${prefix}/include'
804 oldincludedir='/usr/include'
805 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
806 infodir='${datarootdir}/info'
807 htmldir='${docdir}'
808 dvidir='${docdir}'
809 pdfdir='${docdir}'
810 psdir='${docdir}'
811 libdir='${exec_prefix}/lib'
812 localedir='${datarootdir}/locale'
813 mandir='${datarootdir}/man'
814
815 ac_prev=
816 ac_dashdash=
817 for ac_option
818 do
819   # If the previous option needs an argument, assign it.
820   if test -n "$ac_prev"; then
821     eval $ac_prev=\$ac_option
822     ac_prev=
823     continue
824   fi
825
826   case $ac_option in
827   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
828   *)    ac_optarg=yes ;;
829   esac
830
831   # Accept the important Cygnus configure options, so we can diagnose typos.
832
833   case $ac_dashdash$ac_option in
834   --)
835     ac_dashdash=yes ;;
836
837   -bindir | --bindir | --bindi | --bind | --bin | --bi)
838     ac_prev=bindir ;;
839   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
840     bindir=$ac_optarg ;;
841
842   -build | --build | --buil | --bui | --bu)
843     ac_prev=build_alias ;;
844   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
845     build_alias=$ac_optarg ;;
846
847   -cache-file | --cache-file | --cache-fil | --cache-fi \
848   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
849     ac_prev=cache_file ;;
850   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
851   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
852     cache_file=$ac_optarg ;;
853
854   --config-cache | -C)
855     cache_file=config.cache ;;
856
857   -datadir | --datadir | --datadi | --datad)
858     ac_prev=datadir ;;
859   -datadir=* | --datadir=* | --datadi=* | --datad=*)
860     datadir=$ac_optarg ;;
861
862   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
863   | --dataroo | --dataro | --datar)
864     ac_prev=datarootdir ;;
865   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
866   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
867     datarootdir=$ac_optarg ;;
868
869   -disable-* | --disable-*)
870     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
871     # Reject names that are not valid shell variable names.
872     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
873       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
874    { (exit 1); exit 1; }; }
875     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
876     eval enable_$ac_feature=no ;;
877
878   -docdir | --docdir | --docdi | --doc | --do)
879     ac_prev=docdir ;;
880   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
881     docdir=$ac_optarg ;;
882
883   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
884     ac_prev=dvidir ;;
885   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
886     dvidir=$ac_optarg ;;
887
888   -enable-* | --enable-*)
889     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
890     # Reject names that are not valid shell variable names.
891     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
892       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
893    { (exit 1); exit 1; }; }
894     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
895     eval enable_$ac_feature=\$ac_optarg ;;
896
897   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
898   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
899   | --exec | --exe | --ex)
900     ac_prev=exec_prefix ;;
901   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
902   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
903   | --exec=* | --exe=* | --ex=*)
904     exec_prefix=$ac_optarg ;;
905
906   -gas | --gas | --ga | --g)
907     # Obsolete; use --with-gas.
908     with_gas=yes ;;
909
910   -help | --help | --hel | --he | -h)
911     ac_init_help=long ;;
912   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
913     ac_init_help=recursive ;;
914   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
915     ac_init_help=short ;;
916
917   -host | --host | --hos | --ho)
918     ac_prev=host_alias ;;
919   -host=* | --host=* | --hos=* | --ho=*)
920     host_alias=$ac_optarg ;;
921
922   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
923     ac_prev=htmldir ;;
924   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
925   | --ht=*)
926     htmldir=$ac_optarg ;;
927
928   -includedir | --includedir | --includedi | --included | --include \
929   | --includ | --inclu | --incl | --inc)
930     ac_prev=includedir ;;
931   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
932   | --includ=* | --inclu=* | --incl=* | --inc=*)
933     includedir=$ac_optarg ;;
934
935   -infodir | --infodir | --infodi | --infod | --info | --inf)
936     ac_prev=infodir ;;
937   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
938     infodir=$ac_optarg ;;
939
940   -libdir | --libdir | --libdi | --libd)
941     ac_prev=libdir ;;
942   -libdir=* | --libdir=* | --libdi=* | --libd=*)
943     libdir=$ac_optarg ;;
944
945   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
946   | --libexe | --libex | --libe)
947     ac_prev=libexecdir ;;
948   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
949   | --libexe=* | --libex=* | --libe=*)
950     libexecdir=$ac_optarg ;;
951
952   -localedir | --localedir | --localedi | --localed | --locale)
953     ac_prev=localedir ;;
954   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
955     localedir=$ac_optarg ;;
956
957   -localstatedir | --localstatedir | --localstatedi | --localstated \
958   | --localstate | --localstat | --localsta | --localst | --locals)
959     ac_prev=localstatedir ;;
960   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
961   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
962     localstatedir=$ac_optarg ;;
963
964   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
965     ac_prev=mandir ;;
966   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
967     mandir=$ac_optarg ;;
968
969   -nfp | --nfp | --nf)
970     # Obsolete; use --without-fp.
971     with_fp=no ;;
972
973   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
974   | --no-cr | --no-c | -n)
975     no_create=yes ;;
976
977   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
978   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
979     no_recursion=yes ;;
980
981   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
982   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
983   | --oldin | --oldi | --old | --ol | --o)
984     ac_prev=oldincludedir ;;
985   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
986   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
987   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
988     oldincludedir=$ac_optarg ;;
989
990   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
991     ac_prev=prefix ;;
992   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
993     prefix=$ac_optarg ;;
994
995   -program-prefix | --program-prefix | --program-prefi | --program-pref \
996   | --program-pre | --program-pr | --program-p)
997     ac_prev=program_prefix ;;
998   -program-prefix=* | --program-prefix=* | --program-prefi=* \
999   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1000     program_prefix=$ac_optarg ;;
1001
1002   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1003   | --program-suf | --program-su | --program-s)
1004     ac_prev=program_suffix ;;
1005   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1006   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1007     program_suffix=$ac_optarg ;;
1008
1009   -program-transform-name | --program-transform-name \
1010   | --program-transform-nam | --program-transform-na \
1011   | --program-transform-n | --program-transform- \
1012   | --program-transform | --program-transfor \
1013   | --program-transfo | --program-transf \
1014   | --program-trans | --program-tran \
1015   | --progr-tra | --program-tr | --program-t)
1016     ac_prev=program_transform_name ;;
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     program_transform_name=$ac_optarg ;;
1025
1026   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1027     ac_prev=pdfdir ;;
1028   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1029     pdfdir=$ac_optarg ;;
1030
1031   -psdir | --psdir | --psdi | --psd | --ps)
1032     ac_prev=psdir ;;
1033   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1034     psdir=$ac_optarg ;;
1035
1036   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1037   | -silent | --silent | --silen | --sile | --sil)
1038     silent=yes ;;
1039
1040   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1041     ac_prev=sbindir ;;
1042   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1043   | --sbi=* | --sb=*)
1044     sbindir=$ac_optarg ;;
1045
1046   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1047   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1048   | --sharedst | --shareds | --shared | --share | --shar \
1049   | --sha | --sh)
1050     ac_prev=sharedstatedir ;;
1051   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1052   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1053   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1054   | --sha=* | --sh=*)
1055     sharedstatedir=$ac_optarg ;;
1056
1057   -site | --site | --sit)
1058     ac_prev=site ;;
1059   -site=* | --site=* | --sit=*)
1060     site=$ac_optarg ;;
1061
1062   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1063     ac_prev=srcdir ;;
1064   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1065     srcdir=$ac_optarg ;;
1066
1067   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1068   | --syscon | --sysco | --sysc | --sys | --sy)
1069     ac_prev=sysconfdir ;;
1070   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1071   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1072     sysconfdir=$ac_optarg ;;
1073
1074   -target | --target | --targe | --targ | --tar | --ta | --t)
1075     ac_prev=target_alias ;;
1076   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1077     target_alias=$ac_optarg ;;
1078
1079   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1080     verbose=yes ;;
1081
1082   -version | --version | --versio | --versi | --vers | -V)
1083     ac_init_version=: ;;
1084
1085   -with-* | --with-*)
1086     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1087     # Reject names that are not valid shell variable names.
1088     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1089       { echo "$as_me: error: invalid package name: $ac_package" >&2
1090    { (exit 1); exit 1; }; }
1091     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1092     eval with_$ac_package=\$ac_optarg ;;
1093
1094   -without-* | --without-*)
1095     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1096     # Reject names that are not valid shell variable names.
1097     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1098       { echo "$as_me: error: invalid package name: $ac_package" >&2
1099    { (exit 1); exit 1; }; }
1100     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1101     eval with_$ac_package=no ;;
1102
1103   --x)
1104     # Obsolete; use --with-x.
1105     with_x=yes ;;
1106
1107   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1108   | --x-incl | --x-inc | --x-in | --x-i)
1109     ac_prev=x_includes ;;
1110   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1111   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1112     x_includes=$ac_optarg ;;
1113
1114   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1115   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1116     ac_prev=x_libraries ;;
1117   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1118   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1119     x_libraries=$ac_optarg ;;
1120
1121   -*) { echo "$as_me: error: unrecognized option: $ac_option
1122 Try \`$0 --help' for more information." >&2
1123    { (exit 1); exit 1; }; }
1124     ;;
1125
1126   *=*)
1127     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1128     # Reject names that are not valid shell variable names.
1129     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1130       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1131    { (exit 1); exit 1; }; }
1132     eval $ac_envvar=\$ac_optarg
1133     export $ac_envvar ;;
1134
1135   *)
1136     # FIXME: should be removed in autoconf 3.0.
1137     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1138     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1139       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1140     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1141     ;;
1142
1143   esac
1144 done
1145
1146 if test -n "$ac_prev"; then
1147   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1148   { echo "$as_me: error: missing argument to $ac_option" >&2
1149    { (exit 1); exit 1; }; }
1150 fi
1151
1152 # Be sure to have absolute directory names.
1153 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1154                 datadir sysconfdir sharedstatedir localstatedir includedir \
1155                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1156                 libdir localedir mandir
1157 do
1158   eval ac_val=\$$ac_var
1159   case $ac_val in
1160     [\\/$]* | ?:[\\/]* )  continue;;
1161     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1162   esac
1163   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1164    { (exit 1); exit 1; }; }
1165 done
1166
1167 # There might be people who depend on the old broken behavior: `$host'
1168 # used to hold the argument of --host etc.
1169 # FIXME: To remove some day.
1170 build=$build_alias
1171 host=$host_alias
1172 target=$target_alias
1173
1174 # FIXME: To remove some day.
1175 if test "x$host_alias" != x; then
1176   if test "x$build_alias" = x; then
1177     cross_compiling=maybe
1178     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1179     If a cross compiler is detected then cross compile mode will be used." >&2
1180   elif test "x$build_alias" != "x$host_alias"; then
1181     cross_compiling=yes
1182   fi
1183 fi
1184
1185 ac_tool_prefix=
1186 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1187
1188 test "$silent" = yes && exec 6>/dev/null
1189
1190
1191 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1192 ac_ls_di=`ls -di .` &&
1193 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1194   { echo "$as_me: error: Working directory cannot be determined" >&2
1195    { (exit 1); exit 1; }; }
1196 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1197   { echo "$as_me: error: pwd does not report name of working directory" >&2
1198    { (exit 1); exit 1; }; }
1199
1200
1201 # Find the source files, if location was not specified.
1202 if test -z "$srcdir"; then
1203   ac_srcdir_defaulted=yes
1204   # Try the directory containing this script, then the parent directory.
1205   ac_confdir=`$as_dirname -- "$0" ||
1206 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1207          X"$0" : 'X\(//\)[^/]' \| \
1208          X"$0" : 'X\(//\)$' \| \
1209          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1210 echo X"$0" |
1211     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1212             s//\1/
1213             q
1214           }
1215           /^X\(\/\/\)[^/].*/{
1216             s//\1/
1217             q
1218           }
1219           /^X\(\/\/\)$/{
1220             s//\1/
1221             q
1222           }
1223           /^X\(\/\).*/{
1224             s//\1/
1225             q
1226           }
1227           s/.*/./; q'`
1228   srcdir=$ac_confdir
1229   if test ! -r "$srcdir/$ac_unique_file"; then
1230     srcdir=..
1231   fi
1232 else
1233   ac_srcdir_defaulted=no
1234 fi
1235 if test ! -r "$srcdir/$ac_unique_file"; then
1236   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1237   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1238    { (exit 1); exit 1; }; }
1239 fi
1240 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1241 ac_abs_confdir=`(
1242         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1243    { (exit 1); exit 1; }; }
1244         pwd)`
1245 # When building in place, set srcdir=.
1246 if test "$ac_abs_confdir" = "$ac_pwd"; then
1247   srcdir=.
1248 fi
1249 # Remove unnecessary trailing slashes from srcdir.
1250 # Double slashes in file names in object file debugging info
1251 # mess up M-x gdb in Emacs.
1252 case $srcdir in
1253 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1254 esac
1255 for ac_var in $ac_precious_vars; do
1256   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1257   eval ac_env_${ac_var}_value=\$${ac_var}
1258   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1259   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1260 done
1261
1262 #
1263 # Report the --help message.
1264 #
1265 if test "$ac_init_help" = "long"; then
1266   # Omit some internal or obsolete options to make the list less imposing.
1267   # This message is too long to be a string in the A/UX 3.1 sh.
1268   cat <<_ACEOF
1269 \`configure' configures gnuplot 4.2.6 to adapt to many kinds of systems.
1270
1271 Usage: $0 [OPTION]... [VAR=VALUE]...
1272
1273 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1274 VAR=VALUE.  See below for descriptions of some of the useful variables.
1275
1276 Defaults for the options are specified in brackets.
1277
1278 Configuration:
1279   -h, --help              display this help and exit
1280       --help=short        display options specific to this package
1281       --help=recursive    display the short help of all the included packages
1282   -V, --version           display version information and exit
1283   -q, --quiet, --silent   do not print \`checking...' messages
1284       --cache-file=FILE   cache test results in FILE [disabled]
1285   -C, --config-cache      alias for \`--cache-file=config.cache'
1286   -n, --no-create         do not create output files
1287       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1288
1289 Installation directories:
1290   --prefix=PREFIX         install architecture-independent files in PREFIX
1291                           [$ac_default_prefix]
1292   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1293                           [PREFIX]
1294
1295 By default, \`make install' will install all the files in
1296 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1297 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1298 for instance \`--prefix=\$HOME'.
1299
1300 For better control, use the options below.
1301
1302 Fine tuning of the installation directories:
1303   --bindir=DIR           user executables [EPREFIX/bin]
1304   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1305   --libexecdir=DIR       program executables [EPREFIX/libexec]
1306   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1307   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1308   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1309   --libdir=DIR           object code libraries [EPREFIX/lib]
1310   --includedir=DIR       C header files [PREFIX/include]
1311   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1312   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1313   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1314   --infodir=DIR          info documentation [DATAROOTDIR/info]
1315   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1316   --mandir=DIR           man documentation [DATAROOTDIR/man]
1317   --docdir=DIR           documentation root [DATAROOTDIR/doc/gnuplot]
1318   --htmldir=DIR          html documentation [DOCDIR]
1319   --dvidir=DIR           dvi documentation [DOCDIR]
1320   --pdfdir=DIR           pdf documentation [DOCDIR]
1321   --psdir=DIR            ps documentation [DOCDIR]
1322 _ACEOF
1323
1324   cat <<\_ACEOF
1325
1326 Program names:
1327   --program-prefix=PREFIX            prepend PREFIX to installed program names
1328   --program-suffix=SUFFIX            append SUFFIX to installed program names
1329   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1330
1331 X features:
1332   --x-includes=DIR    X include files are in DIR
1333   --x-libraries=DIR   X library files are in DIR
1334 _ACEOF
1335 fi
1336
1337 if test -n "$ac_init_help"; then
1338   case $ac_init_help in
1339      short | recursive ) echo "Configuration of gnuplot 4.2.6:";;
1340    esac
1341   cat <<\_ACEOF
1342
1343 Optional Features:
1344   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1345   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1346   --disable-dependency-tracking  speeds up one-time build
1347   --enable-dependency-tracking   do not reject slow dependency extractors
1348   --disable-history-file  do not use history file
1349   --disable-mouse         disable mouse for the x11 terminal
1350   --disable-x11-mbfonts   disable multi-byte font support for x11
1351   --disable-binary-data-file          disable binary_data_file
1352   --disable-with-image          disable image support
1353   --disable-binary-x11-polygon        disable binary_x11_polygon
1354   --enable-thin-splines   enable thin plate splines
1355   --disable-datastrings   disable reading strings from datafiles
1356   --disable-histograms    disable histograms plot style
1357   --disable-objects       disable rectangles and other objects
1358   --disable-stringvariables   disable string variables
1359   --disable-macros        disable command line macros
1360   --enable-iris           enable IRIS terminal (IRIS4D only)
1361   --enable-mgr            enable MGR terminal
1362   --disable-fiterrvars    disable fitting error variables
1363   --enable-rgip           enable Redwood Graphics Interface Protocol
1364   --disable-h3d-quadtree   disable quadtree optimization in hidden3d code
1365   --enable-h3d-gridbox    enable gridbox optimization in hidden3d code
1366   --disable-wxwidgets      wxWidgets terminal (default enabled)
1367   --disable-backwards-compatibility       disable deprecated syntax
1368
1369 Optional Packages:
1370   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1371   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1372   --with-kpsexpand        search for kpsexpand at run-time (default disabled)
1373   --with-x                use the X Window System
1374   --with-lasergnu         install lasergnu printer script
1375   --with-gihdir=DIR       location of .gih file
1376                           (default PREFIX/share/PACKAGE/VERSION)
1377   --with-linux-vga        use the Linux SVGA console driver
1378                           (requires /usr/lib/libvga)
1379   --with-ggi=DIR        enable the ggi driver (EXPERIMENTAL)
1380   --with-xmi=DIR        ggi's xmi support for pm3d (EXPERIMENTAL)
1381   --with-readline=builtin  use the built-in minimal readline
1382   --with-readline=gnu      use the GNU readline library (default; 4.2 or newer required)
1383   --with-readline=bsd      use the NetBSD editline library
1384   --with-readline=DIR      specify the location of GNU readline
1385   --without-readline       do not use any readline function
1386   --with-plot=DIR       use the Unix plot library
1387   --with-gd=DIR         where to find Tom Boutell's gd library
1388   --with-pdf=DIR        enable pdf terminal
1389                           (requires PDFLib)
1390   --with-cwdrc            check current directory for .gnuplot file,
1391                           normally disabled for security reasons
1392   --without-lisp-files    do not build emacs lisp files
1393   --with-row-help         format help and subtopic tables by row (default)
1394   --without-row-help      format help and subtopic tables by column
1395   --without-tutorial      do not build LaTeX tutorial
1396   --with-wx-config=PATH   Use the given path to wx-config, the wxWidgets configuration program
1397     (default search in $PATH)
1398
1399 Some influential environment variables:
1400   CC          C compiler command
1401   CFLAGS      C compiler flags
1402   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1403               nonstandard directory <lib dir>
1404   LIBS        libraries to pass to the linker, e.g. -l<library>
1405   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1406               you have headers in a nonstandard directory <include dir>
1407   CPP         C preprocessor
1408   XMKMF       Path to xmkmf, Makefile generator for X Window System
1409   CXX         C++ compiler command
1410   CXXFLAGS    C++ compiler flags
1411   CXXCPP      C++ preprocessor
1412   PKG_CONFIG  path to pkg-config utility
1413   CAIROPANGO_CFLAGS
1414               C compiler flags for CAIROPANGO, overriding pkg-config
1415   CAIROPANGO_LIBS
1416               linker flags for CAIROPANGO, overriding pkg-config
1417   PANGO_1_10_2_CFLAGS
1418               C compiler flags for PANGO_1_10_2, overriding pkg-config
1419   PANGO_1_10_2_LIBS
1420               linker flags for PANGO_1_10_2, overriding pkg-config
1421   GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
1422   GTK_LIBS    linker flags for GTK, overriding pkg-config
1423   GTK28_CFLAGS
1424               C compiler flags for GTK28, overriding pkg-config
1425   GTK28_LIBS  linker flags for GTK28, overriding pkg-config
1426
1427 Use these variables to override the choices made by `configure' or to help
1428 it to find libraries and programs with nonstandard names/locations.
1429
1430 _ACEOF
1431 ac_status=$?
1432 fi
1433
1434 if test "$ac_init_help" = "recursive"; then
1435   # If there are subdirs, report their specific --help.
1436   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1437     test -d "$ac_dir" || continue
1438     ac_builddir=.
1439
1440 case "$ac_dir" in
1441 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1442 *)
1443   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1444   # A ".." for each directory in $ac_dir_suffix.
1445   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1446   case $ac_top_builddir_sub in
1447   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1448   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1449   esac ;;
1450 esac
1451 ac_abs_top_builddir=$ac_pwd
1452 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1453 # for backward compatibility:
1454 ac_top_builddir=$ac_top_build_prefix
1455
1456 case $srcdir in
1457   .)  # We are building in place.
1458     ac_srcdir=.
1459     ac_top_srcdir=$ac_top_builddir_sub
1460     ac_abs_top_srcdir=$ac_pwd ;;
1461   [\\/]* | ?:[\\/]* )  # Absolute name.
1462     ac_srcdir=$srcdir$ac_dir_suffix;
1463     ac_top_srcdir=$srcdir
1464     ac_abs_top_srcdir=$srcdir ;;
1465   *) # Relative name.
1466     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1467     ac_top_srcdir=$ac_top_build_prefix$srcdir
1468     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1469 esac
1470 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1471
1472     cd "$ac_dir" || { ac_status=$?; continue; }
1473     # Check for guested configure.
1474     if test -f "$ac_srcdir/configure.gnu"; then
1475       echo &&
1476       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1477     elif test -f "$ac_srcdir/configure"; then
1478       echo &&
1479       $SHELL "$ac_srcdir/configure" --help=recursive
1480     else
1481       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1482     fi || ac_status=$?
1483     cd "$ac_pwd" || { ac_status=$?; break; }
1484   done
1485 fi
1486
1487 test -n "$ac_init_help" && exit $ac_status
1488 if $ac_init_version; then
1489   cat <<\_ACEOF
1490 gnuplot configure 4.2.6
1491 generated by GNU Autoconf 2.61
1492
1493 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1494 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1495 This configure script is free software; the Free Software Foundation
1496 gives unlimited permission to copy, distribute and modify it.
1497 _ACEOF
1498   exit
1499 fi
1500 cat >config.log <<_ACEOF
1501 This file contains any messages produced by compilers while
1502 running configure, to aid debugging if configure makes a mistake.
1503
1504 It was created by gnuplot $as_me 4.2.6, which was
1505 generated by GNU Autoconf 2.61.  Invocation command line was
1506
1507   $ $0 $@
1508
1509 _ACEOF
1510 exec 5>>config.log
1511 {
1512 cat <<_ASUNAME
1513 ## --------- ##
1514 ## Platform. ##
1515 ## --------- ##
1516
1517 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1518 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1519 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1520 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1521 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1522
1523 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1524 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1525
1526 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1527 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1528 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1529 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1530 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1531 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1532 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1533
1534 _ASUNAME
1535
1536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1537 for as_dir in $PATH
1538 do
1539   IFS=$as_save_IFS
1540   test -z "$as_dir" && as_dir=.
1541   echo "PATH: $as_dir"
1542 done
1543 IFS=$as_save_IFS
1544
1545 } >&5
1546
1547 cat >&5 <<_ACEOF
1548
1549
1550 ## ----------- ##
1551 ## Core tests. ##
1552 ## ----------- ##
1553
1554 _ACEOF
1555
1556
1557 # Keep a trace of the command line.
1558 # Strip out --no-create and --no-recursion so they do not pile up.
1559 # Strip out --silent because we don't want to record it for future runs.
1560 # Also quote any args containing shell meta-characters.
1561 # Make two passes to allow for proper duplicate-argument suppression.
1562 ac_configure_args=
1563 ac_configure_args0=
1564 ac_configure_args1=
1565 ac_must_keep_next=false
1566 for ac_pass in 1 2
1567 do
1568   for ac_arg
1569   do
1570     case $ac_arg in
1571     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1572     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1573     | -silent | --silent | --silen | --sile | --sil)
1574       continue ;;
1575     *\'*)
1576       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1577     esac
1578     case $ac_pass in
1579     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1580     2)
1581       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1582       if test $ac_must_keep_next = true; then
1583         ac_must_keep_next=false # Got value, back to normal.
1584       else
1585         case $ac_arg in
1586           *=* | --config-cache | -C | -disable-* | --disable-* \
1587           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1588           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1589           | -with-* | --with-* | -without-* | --without-* | --x)
1590             case "$ac_configure_args0 " in
1591               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1592             esac
1593             ;;
1594           -* ) ac_must_keep_next=true ;;
1595         esac
1596       fi
1597       ac_configure_args="$ac_configure_args '$ac_arg'"
1598       ;;
1599     esac
1600   done
1601 done
1602 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1603 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1604
1605 # When interrupted or exit'd, cleanup temporary files, and complete
1606 # config.log.  We remove comments because anyway the quotes in there
1607 # would cause problems or look ugly.
1608 # WARNING: Use '\'' to represent an apostrophe within the trap.
1609 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1610 trap 'exit_status=$?
1611   # Save into config.log some information that might help in debugging.
1612   {
1613     echo
1614
1615     cat <<\_ASBOX
1616 ## ---------------- ##
1617 ## Cache variables. ##
1618 ## ---------------- ##
1619 _ASBOX
1620     echo
1621     # The following way of writing the cache mishandles newlines in values,
1622 (
1623   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1624     eval ac_val=\$$ac_var
1625     case $ac_val in #(
1626     *${as_nl}*)
1627       case $ac_var in #(
1628       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1629 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1630       esac
1631       case $ac_var in #(
1632       _ | IFS | as_nl) ;; #(
1633       *) $as_unset $ac_var ;;
1634       esac ;;
1635     esac
1636   done
1637   (set) 2>&1 |
1638     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1639     *${as_nl}ac_space=\ *)
1640       sed -n \
1641         "s/'\''/'\''\\\\'\'''\''/g;
1642           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1643       ;; #(
1644     *)
1645       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1646       ;;
1647     esac |
1648     sort
1649 )
1650     echo
1651
1652     cat <<\_ASBOX
1653 ## ----------------- ##
1654 ## Output variables. ##
1655 ## ----------------- ##
1656 _ASBOX
1657     echo
1658     for ac_var in $ac_subst_vars
1659     do
1660       eval ac_val=\$$ac_var
1661       case $ac_val in
1662       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1663       esac
1664       echo "$ac_var='\''$ac_val'\''"
1665     done | sort
1666     echo
1667
1668     if test -n "$ac_subst_files"; then
1669       cat <<\_ASBOX
1670 ## ------------------- ##
1671 ## File substitutions. ##
1672 ## ------------------- ##
1673 _ASBOX
1674       echo
1675       for ac_var in $ac_subst_files
1676       do
1677         eval ac_val=\$$ac_var
1678         case $ac_val in
1679         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1680         esac
1681         echo "$ac_var='\''$ac_val'\''"
1682       done | sort
1683       echo
1684     fi
1685
1686     if test -s confdefs.h; then
1687       cat <<\_ASBOX
1688 ## ----------- ##
1689 ## confdefs.h. ##
1690 ## ----------- ##
1691 _ASBOX
1692       echo
1693       cat confdefs.h
1694       echo
1695     fi
1696     test "$ac_signal" != 0 &&
1697       echo "$as_me: caught signal $ac_signal"
1698     echo "$as_me: exit $exit_status"
1699   } >&5
1700   rm -f core *.core core.conftest.* &&
1701     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1702     exit $exit_status
1703 ' 0
1704 for ac_signal in 1 2 13 15; do
1705   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1706 done
1707 ac_signal=0
1708
1709 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1710 rm -f -r conftest* confdefs.h
1711
1712 # Predefined preprocessor variables.
1713
1714 cat >>confdefs.h <<_ACEOF
1715 #define PACKAGE_NAME "$PACKAGE_NAME"
1716 _ACEOF
1717
1718
1719 cat >>confdefs.h <<_ACEOF
1720 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1721 _ACEOF
1722
1723
1724 cat >>confdefs.h <<_ACEOF
1725 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1726 _ACEOF
1727
1728
1729 cat >>confdefs.h <<_ACEOF
1730 #define PACKAGE_STRING "$PACKAGE_STRING"
1731 _ACEOF
1732
1733
1734 cat >>confdefs.h <<_ACEOF
1735 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1736 _ACEOF
1737
1738
1739 # Let the site file select an alternate cache file if it wants to.
1740 # Prefer explicitly selected file to automatically selected ones.
1741 if test -n "$CONFIG_SITE"; then
1742   set x "$CONFIG_SITE"
1743 elif test "x$prefix" != xNONE; then
1744   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1745 else
1746   set x "$ac_default_prefix/share/config.site" \
1747         "$ac_default_prefix/etc/config.site"
1748 fi
1749 shift
1750 for ac_site_file
1751 do
1752   if test -r "$ac_site_file"; then
1753     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1754 echo "$as_me: loading site script $ac_site_file" >&6;}
1755     sed 's/^/| /' "$ac_site_file" >&5
1756     . "$ac_site_file"
1757   fi
1758 done
1759
1760 if test -r "$cache_file"; then
1761   # Some versions of bash will fail to source /dev/null (special
1762   # files actually), so we avoid doing that.
1763   if test -f "$cache_file"; then
1764     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1765 echo "$as_me: loading cache $cache_file" >&6;}
1766     case $cache_file in
1767       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1768       *)                      . "./$cache_file";;
1769     esac
1770   fi
1771 else
1772   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1773 echo "$as_me: creating cache $cache_file" >&6;}
1774   >$cache_file
1775 fi
1776
1777 # Check that the precious variables saved in the cache have kept the same
1778 # value.
1779 ac_cache_corrupted=false
1780 for ac_var in $ac_precious_vars; do
1781   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1782   eval ac_new_set=\$ac_env_${ac_var}_set
1783   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1784   eval ac_new_val=\$ac_env_${ac_var}_value
1785   case $ac_old_set,$ac_new_set in
1786     set,)
1787       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1788 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1789       ac_cache_corrupted=: ;;
1790     ,set)
1791       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1792 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1793       ac_cache_corrupted=: ;;
1794     ,);;
1795     *)
1796       if test "x$ac_old_val" != "x$ac_new_val"; then
1797         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1798 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1799         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1800 echo "$as_me:   former value:  $ac_old_val" >&2;}
1801         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1802 echo "$as_me:   current value: $ac_new_val" >&2;}
1803         ac_cache_corrupted=:
1804       fi;;
1805   esac
1806   # Pass precious variables to config.status.
1807   if test "$ac_new_set" = set; then
1808     case $ac_new_val in
1809     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1810     *) ac_arg=$ac_var=$ac_new_val ;;
1811     esac
1812     case " $ac_configure_args " in
1813       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1814       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1815     esac
1816   fi
1817 done
1818 if $ac_cache_corrupted; then
1819   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1820 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1821   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1822 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1823    { (exit 1); exit 1; }; }
1824 fi
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850 ac_ext=c
1851 ac_cpp='$CPP $CPPFLAGS'
1852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1855
1856
1857
1858
1859 ac_config_headers="$ac_config_headers config.h:config.hin"
1860
1861 am__api_version="1.8"
1862 ac_aux_dir=
1863 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1864   if test -f "$ac_dir/install-sh"; then
1865     ac_aux_dir=$ac_dir
1866     ac_install_sh="$ac_aux_dir/install-sh -c"
1867     break
1868   elif test -f "$ac_dir/install.sh"; then
1869     ac_aux_dir=$ac_dir
1870     ac_install_sh="$ac_aux_dir/install.sh -c"
1871     break
1872   elif test -f "$ac_dir/shtool"; then
1873     ac_aux_dir=$ac_dir
1874     ac_install_sh="$ac_aux_dir/shtool install -c"
1875     break
1876   fi
1877 done
1878 if test -z "$ac_aux_dir"; then
1879   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1880 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1881    { (exit 1); exit 1; }; }
1882 fi
1883
1884 # These three variables are undocumented and unsupported,
1885 # and are intended to be withdrawn in a future Autoconf release.
1886 # They can cause serious problems if a builder's source tree is in a directory
1887 # whose full name contains unusual characters.
1888 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1889 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1890 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1891
1892
1893 # Find a good install program.  We prefer a C program (faster),
1894 # so one script is as good as another.  But avoid the broken or
1895 # incompatible versions:
1896 # SysV /etc/install, /usr/sbin/install
1897 # SunOS /usr/etc/install
1898 # IRIX /sbin/install
1899 # AIX /bin/install
1900 # AmigaOS /C/install, which installs bootblocks on floppy discs
1901 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1902 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1903 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1904 # OS/2's system install, which has a completely different semantic
1905 # ./install, which can be erroneously created by make from ./install.sh.
1906 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1907 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1908 if test -z "$INSTALL"; then
1909 if test "${ac_cv_path_install+set}" = set; then
1910   echo $ECHO_N "(cached) $ECHO_C" >&6
1911 else
1912   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1913 for as_dir in $PATH
1914 do
1915   IFS=$as_save_IFS
1916   test -z "$as_dir" && as_dir=.
1917   # Account for people who put trailing slashes in PATH elements.
1918 case $as_dir/ in
1919   ./ | .// | /cC/* | \
1920   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1921   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1922   /usr/ucb/* ) ;;
1923   *)
1924     # OSF1 and SCO ODT 3.0 have their own names for install.
1925     # Don't use installbsd from OSF since it installs stuff as root
1926     # by default.
1927     for ac_prog in ginstall scoinst install; do
1928       for ac_exec_ext in '' $ac_executable_extensions; do
1929         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1930           if test $ac_prog = install &&
1931             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1932             # AIX install.  It has an incompatible calling convention.
1933             :
1934           elif test $ac_prog = install &&
1935             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1936             # program-specific install script used by HP pwplus--don't use.
1937             :
1938           else
1939             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1940             break 3
1941           fi
1942         fi
1943       done
1944     done
1945     ;;
1946 esac
1947 done
1948 IFS=$as_save_IFS
1949
1950
1951 fi
1952   if test "${ac_cv_path_install+set}" = set; then
1953     INSTALL=$ac_cv_path_install
1954   else
1955     # As a last resort, use the slow shell script.  Don't cache a
1956     # value for INSTALL within a source directory, because that will
1957     # break other packages using the cache if that directory is
1958     # removed, or if the value is a relative name.
1959     INSTALL=$ac_install_sh
1960   fi
1961 fi
1962 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1963 echo "${ECHO_T}$INSTALL" >&6; }
1964
1965 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1966 # It thinks the first close brace ends the variable substitution.
1967 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1968
1969 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1970
1971 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1972
1973 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1974 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1975 # Just in case
1976 sleep 1
1977 echo timestamp > conftest.file
1978 # Do `set' in a subshell so we don't clobber the current shell's
1979 # arguments.  Must try -L first in case configure is actually a
1980 # symlink; some systems play weird games with the mod time of symlinks
1981 # (eg FreeBSD returns the mod time of the symlink's containing
1982 # directory).
1983 if (
1984    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1985    if test "$*" = "X"; then
1986       # -L didn't work.
1987       set X `ls -t $srcdir/configure conftest.file`
1988    fi
1989    rm -f conftest.file
1990    if test "$*" != "X $srcdir/configure conftest.file" \
1991       && test "$*" != "X conftest.file $srcdir/configure"; then
1992
1993       # If neither matched, then we have a broken ls.  This can happen
1994       # if, for instance, CONFIG_SHELL is bash and it inherits a
1995       # broken ls alias from the environment.  This has actually
1996       # happened.  Such a system could not be considered "sane".
1997       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1998 alias in your environment" >&5
1999 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2000 alias in your environment" >&2;}
2001    { (exit 1); exit 1; }; }
2002    fi
2003
2004    test "$2" = conftest.file
2005    )
2006 then
2007    # Ok.
2008    :
2009 else
2010    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2011 Check your system clock" >&5
2012 echo "$as_me: error: newly created file is older than distributed files!
2013 Check your system clock" >&2;}
2014    { (exit 1); exit 1; }; }
2015 fi
2016 { echo "$as_me:$LINENO: result: yes" >&5
2017 echo "${ECHO_T}yes" >&6; }
2018 test "$program_prefix" != NONE &&
2019   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2020 # Use a double $ so make ignores it.
2021 test "$program_suffix" != NONE &&
2022   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2023 # Double any \ or $.  echo might interpret backslashes.
2024 # By default was `s,x,x', remove it if useless.
2025 cat <<\_ACEOF >conftest.sed
2026 s/[\\$]/&&/g;s/;s,x,x,$//
2027 _ACEOF
2028 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2029 rm -f conftest.sed
2030
2031 # expand $ac_aux_dir to an absolute path
2032 am_aux_dir=`cd $ac_aux_dir && pwd`
2033
2034 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2035 # Use eval to expand $SHELL
2036 if eval "$MISSING --run true"; then
2037   am_missing_run="$MISSING --run "
2038 else
2039   am_missing_run=
2040   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2041 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2042 fi
2043
2044 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2045   # Keeping the `.' argument allows $(mkdir_p) to be used without
2046   # argument.  Indeed, we sometimes output rules like
2047   #   $(mkdir_p) $(somedir)
2048   # where $(somedir) is conditionally defined.
2049   # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
2050   # expensive solution, as it forces Make to start a sub-shell.)
2051   mkdir_p='mkdir -p -- .'
2052 else
2053   # On NextStep and OpenStep, the `mkdir' command does not
2054   # recognize any option.  It will interpret all options as
2055   # directories to create, and then abort because `.' already
2056   # exists.
2057   for d in ./-p ./--version;
2058   do
2059     test -d $d && rmdir $d
2060   done
2061   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2062   if test -f "$ac_aux_dir/mkinstalldirs"; then
2063     mkdir_p='$(mkinstalldirs)'
2064   else
2065     mkdir_p='$(install_sh) -d'
2066   fi
2067 fi
2068
2069 for ac_prog in gawk mawk nawk awk
2070 do
2071   # Extract the first word of "$ac_prog", so it can be a program name with args.
2072 set dummy $ac_prog; ac_word=$2
2073 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2075 if test "${ac_cv_prog_AWK+set}" = set; then
2076   echo $ECHO_N "(cached) $ECHO_C" >&6
2077 else
2078   if test -n "$AWK"; then
2079   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2080 else
2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2082 for as_dir in $PATH
2083 do
2084   IFS=$as_save_IFS
2085   test -z "$as_dir" && as_dir=.
2086   for ac_exec_ext in '' $ac_executable_extensions; do
2087   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2088     ac_cv_prog_AWK="$ac_prog"
2089     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2090     break 2
2091   fi
2092 done
2093 done
2094 IFS=$as_save_IFS
2095
2096 fi
2097 fi
2098 AWK=$ac_cv_prog_AWK
2099 if test -n "$AWK"; then
2100   { echo "$as_me:$LINENO: result: $AWK" >&5
2101 echo "${ECHO_T}$AWK" >&6; }
2102 else
2103   { echo "$as_me:$LINENO: result: no" >&5
2104 echo "${ECHO_T}no" >&6; }
2105 fi
2106
2107
2108   test -n "$AWK" && break
2109 done
2110
2111 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2112 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2113 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2114 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2115   echo $ECHO_N "(cached) $ECHO_C" >&6
2116 else
2117   cat >conftest.make <<\_ACEOF
2118 SHELL = /bin/sh
2119 all:
2120         @echo '@@@%%%=$(MAKE)=@@@%%%'
2121 _ACEOF
2122 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2123 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2124   *@@@%%%=?*=@@@%%%*)
2125     eval ac_cv_prog_make_${ac_make}_set=yes;;
2126   *)
2127     eval ac_cv_prog_make_${ac_make}_set=no;;
2128 esac
2129 rm -f conftest.make
2130 fi
2131 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2132   { echo "$as_me:$LINENO: result: yes" >&5
2133 echo "${ECHO_T}yes" >&6; }
2134   SET_MAKE=
2135 else
2136   { echo "$as_me:$LINENO: result: no" >&5
2137 echo "${ECHO_T}no" >&6; }
2138   SET_MAKE="MAKE=${MAKE-make}"
2139 fi
2140
2141 rm -rf .tst 2>/dev/null
2142 mkdir .tst 2>/dev/null
2143 if test -d .tst; then
2144   am__leading_dot=.
2145 else
2146   am__leading_dot=_
2147 fi
2148 rmdir .tst 2>/dev/null
2149
2150 # test to see if srcdir already configured
2151 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2152    test -f $srcdir/config.status; then
2153   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2154 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2155    { (exit 1); exit 1; }; }
2156 fi
2157
2158 # test whether we have cygpath
2159 if test -z "$CYGPATH_W"; then
2160   if (cygpath --version) >/dev/null 2>/dev/null; then
2161     CYGPATH_W='cygpath -w'
2162   else
2163     CYGPATH_W=echo
2164   fi
2165 fi
2166
2167
2168 # Define the identity of the package.
2169  PACKAGE='gnuplot'
2170  VERSION='4.2.6'
2171
2172
2173 cat >>confdefs.h <<_ACEOF
2174 #define PACKAGE "$PACKAGE"
2175 _ACEOF
2176
2177
2178 cat >>confdefs.h <<_ACEOF
2179 #define VERSION "$VERSION"
2180 _ACEOF
2181
2182 # Some tools Automake needs.
2183
2184 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2185
2186
2187 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2188
2189
2190 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2191
2192
2193 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2194
2195
2196 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2197
2198
2199 AMTAR=${AMTAR-"${am_missing_run}tar"}
2200
2201 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2202
2203 # Installed binaries are usually stripped using `strip' when the user
2204 # run `make install-strip'.  However `strip' might not be the right
2205 # tool to use in cross-compilation environments, therefore Automake
2206 # will honor the `STRIP' environment variable to overrule this program.
2207 if test "$cross_compiling" != no; then
2208   if test -n "$ac_tool_prefix"; then
2209   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2210 set dummy ${ac_tool_prefix}strip; ac_word=$2
2211 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2213 if test "${ac_cv_prog_STRIP+set}" = set; then
2214   echo $ECHO_N "(cached) $ECHO_C" >&6
2215 else
2216   if test -n "$STRIP"; then
2217   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2218 else
2219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2220 for as_dir in $PATH
2221 do
2222   IFS=$as_save_IFS
2223   test -z "$as_dir" && as_dir=.
2224   for ac_exec_ext in '' $ac_executable_extensions; do
2225   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2226     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2227     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2228     break 2
2229   fi
2230 done
2231 done
2232 IFS=$as_save_IFS
2233
2234 fi
2235 fi
2236 STRIP=$ac_cv_prog_STRIP
2237 if test -n "$STRIP"; then
2238   { echo "$as_me:$LINENO: result: $STRIP" >&5
2239 echo "${ECHO_T}$STRIP" >&6; }
2240 else
2241   { echo "$as_me:$LINENO: result: no" >&5
2242 echo "${ECHO_T}no" >&6; }
2243 fi
2244
2245
2246 fi
2247 if test -z "$ac_cv_prog_STRIP"; then
2248   ac_ct_STRIP=$STRIP
2249   # Extract the first word of "strip", so it can be a program name with args.
2250 set dummy strip; ac_word=$2
2251 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2253 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2254   echo $ECHO_N "(cached) $ECHO_C" >&6
2255 else
2256   if test -n "$ac_ct_STRIP"; then
2257   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2258 else
2259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260 for as_dir in $PATH
2261 do
2262   IFS=$as_save_IFS
2263   test -z "$as_dir" && as_dir=.
2264   for ac_exec_ext in '' $ac_executable_extensions; do
2265   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2266     ac_cv_prog_ac_ct_STRIP="strip"
2267     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2268     break 2
2269   fi
2270 done
2271 done
2272 IFS=$as_save_IFS
2273
2274 fi
2275 fi
2276 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2277 if test -n "$ac_ct_STRIP"; then
2278   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2279 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2280 else
2281   { echo "$as_me:$LINENO: result: no" >&5
2282 echo "${ECHO_T}no" >&6; }
2283 fi
2284
2285   if test "x$ac_ct_STRIP" = x; then
2286     STRIP=":"
2287   else
2288     case $cross_compiling:$ac_tool_warned in
2289 yes:)
2290 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2291 whose name does not start with the host triplet.  If you think this
2292 configuration is useful to you, please write to autoconf@gnu.org." >&5
2293 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2294 whose name does not start with the host triplet.  If you think this
2295 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2296 ac_tool_warned=yes ;;
2297 esac
2298     STRIP=$ac_ct_STRIP
2299   fi
2300 else
2301   STRIP="$ac_cv_prog_STRIP"
2302 fi
2303
2304 fi
2305 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2306
2307 # We need awk for the "check" target.  The system "awk" is bad on
2308 # some platforms.
2309
2310
2311
2312
2313 VERSION_MAJOR="`cat $srcdir/VERSION`"
2314 PATCHLEVEL="`cat $srcdir/PATCHLEVEL`"
2315
2316
2317 ac_ext=c
2318 ac_cpp='$CPP $CPPFLAGS'
2319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2322 if test -n "$ac_tool_prefix"; then
2323   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2324 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2327 if test "${ac_cv_prog_CC+set}" = set; then
2328   echo $ECHO_N "(cached) $ECHO_C" >&6
2329 else
2330   if test -n "$CC"; then
2331   ac_cv_prog_CC="$CC" # Let the user override the test.
2332 else
2333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334 for as_dir in $PATH
2335 do
2336   IFS=$as_save_IFS
2337   test -z "$as_dir" && as_dir=.
2338   for ac_exec_ext in '' $ac_executable_extensions; do
2339   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2340     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2341     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2342     break 2
2343   fi
2344 done
2345 done
2346 IFS=$as_save_IFS
2347
2348 fi
2349 fi
2350 CC=$ac_cv_prog_CC
2351 if test -n "$CC"; then
2352   { echo "$as_me:$LINENO: result: $CC" >&5
2353 echo "${ECHO_T}$CC" >&6; }
2354 else
2355   { echo "$as_me:$LINENO: result: no" >&5
2356 echo "${ECHO_T}no" >&6; }
2357 fi
2358
2359
2360 fi
2361 if test -z "$ac_cv_prog_CC"; then
2362   ac_ct_CC=$CC
2363   # Extract the first word of "gcc", so it can be a program name with args.
2364 set dummy gcc; ac_word=$2
2365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2367 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2368   echo $ECHO_N "(cached) $ECHO_C" >&6
2369 else
2370   if test -n "$ac_ct_CC"; then
2371   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2372 else
2373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374 for as_dir in $PATH
2375 do
2376   IFS=$as_save_IFS
2377   test -z "$as_dir" && as_dir=.
2378   for ac_exec_ext in '' $ac_executable_extensions; do
2379   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2380     ac_cv_prog_ac_ct_CC="gcc"
2381     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2382     break 2
2383   fi
2384 done
2385 done
2386 IFS=$as_save_IFS
2387
2388 fi
2389 fi
2390 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2391 if test -n "$ac_ct_CC"; then
2392   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2393 echo "${ECHO_T}$ac_ct_CC" >&6; }
2394 else
2395   { echo "$as_me:$LINENO: result: no" >&5
2396 echo "${ECHO_T}no" >&6; }
2397 fi
2398
2399   if test "x$ac_ct_CC" = x; then
2400     CC=""
2401   else
2402     case $cross_compiling:$ac_tool_warned in
2403 yes:)
2404 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2405 whose name does not start with the host triplet.  If you think this
2406 configuration is useful to you, please write to autoconf@gnu.org." >&5
2407 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2408 whose name does not start with the host triplet.  If you think this
2409 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2410 ac_tool_warned=yes ;;
2411 esac
2412     CC=$ac_ct_CC
2413   fi
2414 else
2415   CC="$ac_cv_prog_CC"
2416 fi
2417
2418 if test -z "$CC"; then
2419           if test -n "$ac_tool_prefix"; then
2420     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2421 set dummy ${ac_tool_prefix}cc; ac_word=$2
2422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2424 if test "${ac_cv_prog_CC+set}" = set; then
2425   echo $ECHO_N "(cached) $ECHO_C" >&6
2426 else
2427   if test -n "$CC"; then
2428   ac_cv_prog_CC="$CC" # Let the user override the test.
2429 else
2430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2431 for as_dir in $PATH
2432 do
2433   IFS=$as_save_IFS
2434   test -z "$as_dir" && as_dir=.
2435   for ac_exec_ext in '' $ac_executable_extensions; do
2436   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2437     ac_cv_prog_CC="${ac_tool_prefix}cc"
2438     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2439     break 2
2440   fi
2441 done
2442 done
2443 IFS=$as_save_IFS
2444
2445 fi
2446 fi
2447 CC=$ac_cv_prog_CC
2448 if test -n "$CC"; then
2449   { echo "$as_me:$LINENO: result: $CC" >&5
2450 echo "${ECHO_T}$CC" >&6; }
2451 else
2452   { echo "$as_me:$LINENO: result: no" >&5
2453 echo "${ECHO_T}no" >&6; }
2454 fi
2455
2456
2457   fi
2458 fi
2459 if test -z "$CC"; then
2460   # Extract the first word of "cc", so it can be a program name with args.
2461 set dummy cc; ac_word=$2
2462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2464 if test "${ac_cv_prog_CC+set}" = set; then
2465   echo $ECHO_N "(cached) $ECHO_C" >&6
2466 else
2467   if test -n "$CC"; then
2468   ac_cv_prog_CC="$CC" # Let the user override the test.
2469 else
2470   ac_prog_rejected=no
2471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472 for as_dir in $PATH
2473 do
2474   IFS=$as_save_IFS
2475   test -z "$as_dir" && as_dir=.
2476   for ac_exec_ext in '' $ac_executable_extensions; do
2477   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2478     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2479        ac_prog_rejected=yes
2480        continue
2481      fi
2482     ac_cv_prog_CC="cc"
2483     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2484     break 2
2485   fi
2486 done
2487 done
2488 IFS=$as_save_IFS
2489
2490 if test $ac_prog_rejected = yes; then
2491   # We found a bogon in the path, so make sure we never use it.
2492   set dummy $ac_cv_prog_CC
2493   shift
2494   if test $# != 0; then
2495     # We chose a different compiler from the bogus one.
2496     # However, it has the same basename, so the bogon will be chosen
2497     # first if we set CC to just the basename; use the full file name.
2498     shift
2499     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2500   fi
2501 fi
2502 fi
2503 fi
2504 CC=$ac_cv_prog_CC
2505 if test -n "$CC"; then
2506   { echo "$as_me:$LINENO: result: $CC" >&5
2507 echo "${ECHO_T}$CC" >&6; }
2508 else
2509   { echo "$as_me:$LINENO: result: no" >&5
2510 echo "${ECHO_T}no" >&6; }
2511 fi
2512
2513
2514 fi
2515 if test -z "$CC"; then
2516   if test -n "$ac_tool_prefix"; then
2517   for ac_prog in cl.exe
2518   do
2519     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2520 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2523 if test "${ac_cv_prog_CC+set}" = set; then
2524   echo $ECHO_N "(cached) $ECHO_C" >&6
2525 else
2526   if test -n "$CC"; then
2527   ac_cv_prog_CC="$CC" # Let the user override the test.
2528 else
2529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530 for as_dir in $PATH
2531 do
2532   IFS=$as_save_IFS
2533   test -z "$as_dir" && as_dir=.
2534   for ac_exec_ext in '' $ac_executable_extensions; do
2535   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2536     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2537     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2538     break 2
2539   fi
2540 done
2541 done
2542 IFS=$as_save_IFS
2543
2544 fi
2545 fi
2546 CC=$ac_cv_prog_CC
2547 if test -n "$CC"; then
2548   { echo "$as_me:$LINENO: result: $CC" >&5
2549 echo "${ECHO_T}$CC" >&6; }
2550 else
2551   { echo "$as_me:$LINENO: result: no" >&5
2552 echo "${ECHO_T}no" >&6; }
2553 fi
2554
2555
2556     test -n "$CC" && break
2557   done
2558 fi
2559 if test -z "$CC"; then
2560   ac_ct_CC=$CC
2561   for ac_prog in cl.exe
2562 do
2563   # Extract the first word of "$ac_prog", so it can be a program name with args.
2564 set dummy $ac_prog; ac_word=$2
2565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2567 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2568   echo $ECHO_N "(cached) $ECHO_C" >&6
2569 else
2570   if test -n "$ac_ct_CC"; then
2571   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2572 else
2573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574 for as_dir in $PATH
2575 do
2576   IFS=$as_save_IFS
2577   test -z "$as_dir" && as_dir=.
2578   for ac_exec_ext in '' $ac_executable_extensions; do
2579   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2580     ac_cv_prog_ac_ct_CC="$ac_prog"
2581     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2582     break 2
2583   fi
2584 done
2585 done
2586 IFS=$as_save_IFS
2587
2588 fi
2589 fi
2590 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2591 if test -n "$ac_ct_CC"; then
2592   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2593 echo "${ECHO_T}$ac_ct_CC" >&6; }
2594 else
2595   { echo "$as_me:$LINENO: result: no" >&5
2596 echo "${ECHO_T}no" >&6; }
2597 fi
2598
2599
2600   test -n "$ac_ct_CC" && break
2601 done
2602
2603   if test "x$ac_ct_CC" = x; then
2604     CC=""
2605   else
2606     case $cross_compiling:$ac_tool_warned in
2607 yes:)
2608 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2609 whose name does not start with the host triplet.  If you think this
2610 configuration is useful to you, please write to autoconf@gnu.org." >&5
2611 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2612 whose name does not start with the host triplet.  If you think this
2613 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2614 ac_tool_warned=yes ;;
2615 esac
2616     CC=$ac_ct_CC
2617   fi
2618 fi
2619
2620 fi
2621
2622
2623 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2624 See \`config.log' for more details." >&5
2625 echo "$as_me: error: no acceptable C compiler found in \$PATH
2626 See \`config.log' for more details." >&2;}
2627    { (exit 1); exit 1; }; }
2628
2629 # Provide some information about the compiler.
2630 echo "$as_me:$LINENO: checking for C compiler version" >&5
2631 ac_compiler=`set X $ac_compile; echo $2`
2632 { (ac_try="$ac_compiler --version >&5"
2633 case "(($ac_try" in
2634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2635   *) ac_try_echo=$ac_try;;
2636 esac
2637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2638   (eval "$ac_compiler --version >&5") 2>&5
2639   ac_status=$?
2640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641   (exit $ac_status); }
2642 { (ac_try="$ac_compiler -v >&5"
2643 case "(($ac_try" in
2644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2645   *) ac_try_echo=$ac_try;;
2646 esac
2647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2648   (eval "$ac_compiler -v >&5") 2>&5
2649   ac_status=$?
2650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651   (exit $ac_status); }
2652 { (ac_try="$ac_compiler -V >&5"
2653 case "(($ac_try" in
2654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2655   *) ac_try_echo=$ac_try;;
2656 esac
2657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2658   (eval "$ac_compiler -V >&5") 2>&5
2659   ac_status=$?
2660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661   (exit $ac_status); }
2662
2663 cat >conftest.$ac_ext <<_ACEOF
2664 /* confdefs.h.  */
2665 _ACEOF
2666 cat confdefs.h >>conftest.$ac_ext
2667 cat >>conftest.$ac_ext <<_ACEOF
2668 /* end confdefs.h.  */
2669
2670 int
2671 main ()
2672 {
2673
2674   ;
2675   return 0;
2676 }
2677 _ACEOF
2678 ac_clean_files_save=$ac_clean_files
2679 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2680 # Try to create an executable without -o first, disregard a.out.
2681 # It will help us diagnose broken compilers, and finding out an intuition
2682 # of exeext.
2683 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2684 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2685 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2686 #
2687 # List of possible output files, starting from the most likely.
2688 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2689 # only as a last resort.  b.out is created by i960 compilers.
2690 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2691 #
2692 # The IRIX 6 linker writes into existing files which may not be
2693 # executable, retaining their permissions.  Remove them first so a
2694 # subsequent execution test works.
2695 ac_rmfiles=
2696 for ac_file in $ac_files
2697 do
2698   case $ac_file in
2699     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2700     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2701   esac
2702 done
2703 rm -f $ac_rmfiles
2704
2705 if { (ac_try="$ac_link_default"
2706 case "(($ac_try" in
2707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2708   *) ac_try_echo=$ac_try;;
2709 esac
2710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2711   (eval "$ac_link_default") 2>&5
2712   ac_status=$?
2713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714   (exit $ac_status); }; then
2715   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2716 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2717 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2718 # so that the user can short-circuit this test for compilers unknown to
2719 # Autoconf.
2720 for ac_file in $ac_files ''
2721 do
2722   test -f "$ac_file" || continue
2723   case $ac_file in
2724     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2725         ;;
2726     [ab].out )
2727         # We found the default executable, but exeext='' is most
2728         # certainly right.
2729         break;;
2730     *.* )
2731         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2732         then :; else
2733            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2734         fi
2735         # We set ac_cv_exeext here because the later test for it is not
2736         # safe: cross compilers may not add the suffix if given an `-o'
2737         # argument, so we may need to know it at that point already.
2738         # Even if this section looks crufty: it has the advantage of
2739         # actually working.
2740         break;;
2741     * )
2742         break;;
2743   esac
2744 done
2745 test "$ac_cv_exeext" = no && ac_cv_exeext=
2746
2747 else
2748   ac_file=''
2749 fi
2750
2751 { echo "$as_me:$LINENO: result: $ac_file" >&5
2752 echo "${ECHO_T}$ac_file" >&6; }
2753 if test -z "$ac_file"; then
2754   echo "$as_me: failed program was:" >&5
2755 sed 's/^/| /' conftest.$ac_ext >&5
2756
2757 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2758 See \`config.log' for more details." >&5
2759 echo "$as_me: error: C compiler cannot create executables
2760 See \`config.log' for more details." >&2;}
2761    { (exit 77); exit 77; }; }
2762 fi
2763
2764 ac_exeext=$ac_cv_exeext
2765
2766 # Check that the compiler produces executables we can run.  If not, either
2767 # the compiler is broken, or we cross compile.
2768 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2769 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2770 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2771 # If not cross compiling, check that we can run a simple program.
2772 if test "$cross_compiling" != yes; then
2773   if { ac_try='./$ac_file'
2774   { (case "(($ac_try" in
2775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776   *) ac_try_echo=$ac_try;;
2777 esac
2778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2779   (eval "$ac_try") 2>&5
2780   ac_status=$?
2781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782   (exit $ac_status); }; }; then
2783     cross_compiling=no
2784   else
2785     if test "$cross_compiling" = maybe; then
2786         cross_compiling=yes
2787     else
2788         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2789 If you meant to cross compile, use \`--host'.
2790 See \`config.log' for more details." >&5
2791 echo "$as_me: error: cannot run C compiled programs.
2792 If you meant to cross compile, use \`--host'.
2793 See \`config.log' for more details." >&2;}
2794    { (exit 1); exit 1; }; }
2795     fi
2796   fi
2797 fi
2798 { echo "$as_me:$LINENO: result: yes" >&5
2799 echo "${ECHO_T}yes" >&6; }
2800
2801 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2802 ac_clean_files=$ac_clean_files_save
2803 # Check that the compiler produces executables we can run.  If not, either
2804 # the compiler is broken, or we cross compile.
2805 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2806 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2807 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2808 echo "${ECHO_T}$cross_compiling" >&6; }
2809
2810 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2811 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2812 if { (ac_try="$ac_link"
2813 case "(($ac_try" in
2814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2815   *) ac_try_echo=$ac_try;;
2816 esac
2817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2818   (eval "$ac_link") 2>&5
2819   ac_status=$?
2820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821   (exit $ac_status); }; then
2822   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2823 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2824 # work properly (i.e., refer to `conftest.exe'), while it won't with
2825 # `rm'.
2826 for ac_file in conftest.exe conftest conftest.*; do
2827   test -f "$ac_file" || continue
2828   case $ac_file in
2829     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2830     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2831           break;;
2832     * ) break;;
2833   esac
2834 done
2835 else
2836   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2837 See \`config.log' for more details." >&5
2838 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2839 See \`config.log' for more details." >&2;}
2840    { (exit 1); exit 1; }; }
2841 fi
2842
2843 rm -f conftest$ac_cv_exeext
2844 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2845 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2846
2847 rm -f conftest.$ac_ext
2848 EXEEXT=$ac_cv_exeext
2849 ac_exeext=$EXEEXT
2850 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2851 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2852 if test "${ac_cv_objext+set}" = set; then
2853   echo $ECHO_N "(cached) $ECHO_C" >&6
2854 else
2855   cat >conftest.$ac_ext <<_ACEOF
2856 /* confdefs.h.  */
2857 _ACEOF
2858 cat confdefs.h >>conftest.$ac_ext
2859 cat >>conftest.$ac_ext <<_ACEOF
2860 /* end confdefs.h.  */
2861
2862 int
2863 main ()
2864 {
2865
2866   ;
2867   return 0;
2868 }
2869 _ACEOF
2870 rm -f conftest.o conftest.obj
2871 if { (ac_try="$ac_compile"
2872 case "(($ac_try" in
2873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2874   *) ac_try_echo=$ac_try;;
2875 esac
2876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2877   (eval "$ac_compile") 2>&5
2878   ac_status=$?
2879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880   (exit $ac_status); }; then
2881   for ac_file in conftest.o conftest.obj conftest.*; do
2882   test -f "$ac_file" || continue;
2883   case $ac_file in
2884     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2885     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2886        break;;
2887   esac
2888 done
2889 else
2890   echo "$as_me: failed program was:" >&5
2891 sed 's/^/| /' conftest.$ac_ext >&5
2892
2893 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2894 See \`config.log' for more details." >&5
2895 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2896 See \`config.log' for more details." >&2;}
2897    { (exit 1); exit 1; }; }
2898 fi
2899
2900 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2901 fi
2902 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2903 echo "${ECHO_T}$ac_cv_objext" >&6; }
2904 OBJEXT=$ac_cv_objext
2905 ac_objext=$OBJEXT
2906 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2907 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2908 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2909   echo $ECHO_N "(cached) $ECHO_C" >&6
2910 else
2911   cat >conftest.$ac_ext <<_ACEOF
2912 /* confdefs.h.  */
2913 _ACEOF
2914 cat confdefs.h >>conftest.$ac_ext
2915 cat >>conftest.$ac_ext <<_ACEOF
2916 /* end confdefs.h.  */
2917
2918 int
2919 main ()
2920 {
2921 #ifndef __GNUC__
2922        choke me
2923 #endif
2924
2925   ;
2926   return 0;
2927 }
2928 _ACEOF
2929 rm -f conftest.$ac_objext
2930 if { (ac_try="$ac_compile"
2931 case "(($ac_try" in
2932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933   *) ac_try_echo=$ac_try;;
2934 esac
2935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2936   (eval "$ac_compile") 2>conftest.er1
2937   ac_status=$?
2938   grep -v '^ *+' conftest.er1 >conftest.err
2939   rm -f conftest.er1
2940   cat conftest.err >&5
2941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942   (exit $ac_status); } && {
2943          test -z "$ac_c_werror_flag" ||
2944          test ! -s conftest.err
2945        } && test -s conftest.$ac_objext; then
2946   ac_compiler_gnu=yes
2947 else
2948   echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.$ac_ext >&5
2950
2951         ac_compiler_gnu=no
2952 fi
2953
2954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2955 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2956
2957 fi
2958 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2959 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2960 GCC=`test $ac_compiler_gnu = yes && echo yes`
2961 ac_test_CFLAGS=${CFLAGS+set}
2962 ac_save_CFLAGS=$CFLAGS
2963 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2964 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2965 if test "${ac_cv_prog_cc_g+set}" = set; then
2966   echo $ECHO_N "(cached) $ECHO_C" >&6
2967 else
2968   ac_save_c_werror_flag=$ac_c_werror_flag
2969    ac_c_werror_flag=yes
2970    ac_cv_prog_cc_g=no
2971    CFLAGS="-g"
2972    cat >conftest.$ac_ext <<_ACEOF
2973 /* confdefs.h.  */
2974 _ACEOF
2975 cat confdefs.h >>conftest.$ac_ext
2976 cat >>conftest.$ac_ext <<_ACEOF
2977 /* end confdefs.h.  */
2978
2979 int
2980 main ()
2981 {
2982
2983   ;
2984   return 0;
2985 }
2986 _ACEOF
2987 rm -f conftest.$ac_objext
2988 if { (ac_try="$ac_compile"
2989 case "(($ac_try" in
2990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2991   *) ac_try_echo=$ac_try;;
2992 esac
2993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2994   (eval "$ac_compile") 2>conftest.er1
2995   ac_status=$?
2996   grep -v '^ *+' conftest.er1 >conftest.err
2997   rm -f conftest.er1
2998   cat conftest.err >&5
2999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000   (exit $ac_status); } && {
3001          test -z "$ac_c_werror_flag" ||
3002          test ! -s conftest.err
3003        } && test -s conftest.$ac_objext; then
3004   ac_cv_prog_cc_g=yes
3005 else
3006   echo "$as_me: failed program was:" >&5
3007 sed 's/^/| /' conftest.$ac_ext >&5
3008
3009         CFLAGS=""
3010       cat >conftest.$ac_ext <<_ACEOF
3011 /* confdefs.h.  */
3012 _ACEOF
3013 cat confdefs.h >>conftest.$ac_ext
3014 cat >>conftest.$ac_ext <<_ACEOF
3015 /* end confdefs.h.  */
3016
3017 int
3018 main ()
3019 {
3020
3021   ;
3022   return 0;
3023 }
3024 _ACEOF
3025 rm -f conftest.$ac_objext
3026 if { (ac_try="$ac_compile"
3027 case "(($ac_try" in
3028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029   *) ac_try_echo=$ac_try;;
3030 esac
3031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032   (eval "$ac_compile") 2>conftest.er1
3033   ac_status=$?
3034   grep -v '^ *+' conftest.er1 >conftest.err
3035   rm -f conftest.er1
3036   cat conftest.err >&5
3037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038   (exit $ac_status); } && {
3039          test -z "$ac_c_werror_flag" ||
3040          test ! -s conftest.err
3041        } && test -s conftest.$ac_objext; then
3042   :
3043 else
3044   echo "$as_me: failed program was:" >&5
3045 sed 's/^/| /' conftest.$ac_ext >&5
3046
3047         ac_c_werror_flag=$ac_save_c_werror_flag
3048          CFLAGS="-g"
3049          cat >conftest.$ac_ext <<_ACEOF
3050 /* confdefs.h.  */
3051 _ACEOF
3052 cat confdefs.h >>conftest.$ac_ext
3053 cat >>conftest.$ac_ext <<_ACEOF
3054 /* end confdefs.h.  */
3055
3056 int
3057 main ()
3058 {
3059
3060   ;
3061   return 0;
3062 }
3063 _ACEOF
3064 rm -f conftest.$ac_objext
3065 if { (ac_try="$ac_compile"
3066 case "(($ac_try" in
3067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068   *) ac_try_echo=$ac_try;;
3069 esac
3070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3071   (eval "$ac_compile") 2>conftest.er1
3072   ac_status=$?
3073   grep -v '^ *+' conftest.er1 >conftest.err
3074   rm -f conftest.er1
3075   cat conftest.err >&5
3076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077   (exit $ac_status); } && {
3078          test -z "$ac_c_werror_flag" ||
3079          test ! -s conftest.err
3080        } && test -s conftest.$ac_objext; then
3081   ac_cv_prog_cc_g=yes
3082 else
3083   echo "$as_me: failed program was:" >&5
3084 sed 's/^/| /' conftest.$ac_ext >&5
3085
3086
3087 fi
3088
3089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3090 fi
3091
3092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3093 fi
3094
3095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3096    ac_c_werror_flag=$ac_save_c_werror_flag
3097 fi
3098 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3099 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3100 if test "$ac_test_CFLAGS" = set; then
3101   CFLAGS=$ac_save_CFLAGS
3102 elif test $ac_cv_prog_cc_g = yes; then
3103   if test "$GCC" = yes; then
3104     CFLAGS="-g -O2"
3105   else
3106     CFLAGS="-g"
3107   fi
3108 else
3109   if test "$GCC" = yes; then
3110     CFLAGS="-O2"
3111   else
3112     CFLAGS=
3113   fi
3114 fi
3115 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3116 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3117 if test "${ac_cv_prog_cc_c89+set}" = set; then
3118   echo $ECHO_N "(cached) $ECHO_C" >&6
3119 else
3120   ac_cv_prog_cc_c89=no
3121 ac_save_CC=$CC
3122 cat >conftest.$ac_ext <<_ACEOF
3123 /* confdefs.h.  */
3124 _ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h.  */
3128 #include <stdarg.h>
3129 #include <stdio.h>
3130 #include <sys/types.h>
3131 #include <sys/stat.h>
3132 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3133 struct buf { int x; };
3134 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3135 static char *e (p, i)
3136      char **p;
3137      int i;
3138 {
3139   return p[i];
3140 }
3141 static char *f (char * (*g) (char **, int), char **p, ...)
3142 {
3143   char *s;
3144   va_list v;
3145   va_start (v,p);
3146   s = g (p, va_arg (v,int));
3147   va_end (v);
3148   return s;
3149 }
3150
3151 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3152    function prototypes and stuff, but not '\xHH' hex character constants.
3153    These don't provoke an error unfortunately, instead are silently treated
3154    as 'x'.  The following induces an error, until -std is added to get
3155    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3156    array size at least.  It's necessary to write '\x00'==0 to get something
3157    that's true only with -std.  */
3158 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3159
3160 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3161    inside strings and character constants.  */
3162 #define FOO(x) 'x'
3163 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3164
3165 int test (int i, double x);
3166 struct s1 {int (*f) (int a);};
3167 struct s2 {int (*f) (double a);};
3168 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3169 int argc;
3170 char **argv;
3171 int
3172 main ()
3173 {
3174 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3175   ;
3176   return 0;
3177 }
3178 _ACEOF
3179 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3180         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3181 do
3182   CC="$ac_save_CC $ac_arg"
3183   rm -f conftest.$ac_objext
3184 if { (ac_try="$ac_compile"
3185 case "(($ac_try" in
3186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187   *) ac_try_echo=$ac_try;;
3188 esac
3189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3190   (eval "$ac_compile") 2>conftest.er1
3191   ac_status=$?
3192   grep -v '^ *+' conftest.er1 >conftest.err
3193   rm -f conftest.er1
3194   cat conftest.err >&5
3195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196   (exit $ac_status); } && {
3197          test -z "$ac_c_werror_flag" ||
3198          test ! -s conftest.err
3199        } && test -s conftest.$ac_objext; then
3200   ac_cv_prog_cc_c89=$ac_arg
3201 else
3202   echo "$as_me: failed program was:" >&5
3203 sed 's/^/| /' conftest.$ac_ext >&5
3204
3205
3206 fi
3207
3208 rm -f core conftest.err conftest.$ac_objext
3209   test "x$ac_cv_prog_cc_c89" != "xno" && break
3210 done
3211 rm -f conftest.$ac_ext
3212 CC=$ac_save_CC
3213
3214 fi
3215 # AC_CACHE_VAL
3216 case "x$ac_cv_prog_cc_c89" in
3217   x)
3218     { echo "$as_me:$LINENO: result: none needed" >&5
3219 echo "${ECHO_T}none needed" >&6; } ;;
3220   xno)
3221     { echo "$as_me:$LINENO: result: unsupported" >&5
3222 echo "${ECHO_T}unsupported" >&6; } ;;
3223   *)
3224     CC="$CC $ac_cv_prog_cc_c89"
3225     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3226 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3227 esac
3228
3229
3230 ac_ext=c
3231 ac_cpp='$CPP $CPPFLAGS'
3232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3235 DEPDIR="${am__leading_dot}deps"
3236
3237 ac_config_commands="$ac_config_commands depfiles"
3238
3239
3240 am_make=${MAKE-make}
3241 cat > confinc << 'END'
3242 am__doit:
3243         @echo done
3244 .PHONY: am__doit
3245 END
3246 # If we don't find an include directive, just comment out the code.
3247 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3248 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3249 am__include="#"
3250 am__quote=
3251 _am_result=none
3252 # First try GNU make style include.
3253 echo "include confinc" > confmf
3254 # We grep out `Entering directory' and `Leaving directory'
3255 # messages which can occur if `w' ends up in MAKEFLAGS.
3256 # In particular we don't look at `^make:' because GNU make might
3257 # be invoked under some other name (usually "gmake"), in which
3258 # case it prints its new name instead of `make'.
3259 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3260    am__include=include
3261    am__quote=
3262    _am_result=GNU
3263 fi
3264 # Now try BSD make style include.
3265 if test "$am__include" = "#"; then
3266    echo '.include "confinc"' > confmf
3267    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3268       am__include=.include
3269       am__quote="\""
3270       _am_result=BSD
3271    fi
3272 fi
3273
3274
3275 { echo "$as_me:$LINENO: result: $_am_result" >&5
3276 echo "${ECHO_T}$_am_result" >&6; }
3277 rm -f confinc confmf
3278
3279 # Check whether --enable-dependency-tracking was given.
3280 if test "${enable_dependency_tracking+set}" = set; then
3281   enableval=$enable_dependency_tracking;
3282 fi
3283
3284 if test "x$enable_dependency_tracking" != xno; then
3285   am_depcomp="$ac_aux_dir/depcomp"
3286   AMDEPBACKSLASH='\'
3287 fi
3288
3289
3290 if test "x$enable_dependency_tracking" != xno; then
3291   AMDEP_TRUE=
3292   AMDEP_FALSE='#'
3293 else
3294   AMDEP_TRUE='#'
3295   AMDEP_FALSE=
3296 fi
3297
3298
3299
3300
3301 depcc="$CC"   am_compiler_list=
3302
3303 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3304 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3305 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3306   echo $ECHO_N "(cached) $ECHO_C" >&6
3307 else
3308   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3309   # We make a subdir and do the tests there.  Otherwise we can end up
3310   # making bogus files that we don't know about and never remove.  For
3311   # instance it was reported that on HP-UX the gcc test will end up
3312   # making a dummy file named `D' -- because `-MD' means `put the output
3313   # in D'.
3314   mkdir conftest.dir
3315   # Copy depcomp to subdir because otherwise we won't find it if we're
3316   # using a relative directory.
3317   cp "$am_depcomp" conftest.dir
3318   cd conftest.dir
3319   # We will build objects and dependencies in a subdirectory because
3320   # it helps to detect inapplicable dependency modes.  For instance
3321   # both Tru64's cc and ICC support -MD to output dependencies as a
3322   # side effect of compilation, but ICC will put the dependencies in
3323   # the current directory while Tru64 will put them in the object
3324   # directory.
3325   mkdir sub
3326
3327   am_cv_CC_dependencies_compiler_type=none
3328   if test "$am_compiler_list" = ""; then
3329      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3330   fi
3331   for depmode in $am_compiler_list; do
3332     # Setup a source with many dependencies, because some compilers
3333     # like to wrap large dependency lists on column 80 (with \), and
3334     # we should not choose a depcomp mode which is confused by this.
3335     #
3336     # We need to recreate these files for each test, as the compiler may
3337     # overwrite some of them when testing with obscure command lines.
3338     # This happens at least with the AIX C compiler.
3339     : > sub/conftest.c
3340     for i in 1 2 3 4 5 6; do
3341       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3342       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3343       # Solaris 8's {/usr,}/bin/sh.
3344       touch sub/conftst$i.h
3345     done
3346     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3347
3348     case $depmode in
3349     nosideeffect)
3350       # after this tag, mechanisms are not by side-effect, so they'll
3351       # only be used when explicitly requested
3352       if test "x$enable_dependency_tracking" = xyes; then
3353         continue
3354       else
3355         break
3356       fi
3357       ;;
3358     none) break ;;
3359     esac
3360     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3361     # mode.  It turns out that the SunPro C++ compiler does not properly
3362     # handle `-M -o', and we need to detect this.
3363     if depmode=$depmode \
3364        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3365        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3366        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3367          >/dev/null 2>conftest.err &&
3368        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3369        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3370        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3371       # icc doesn't choke on unknown options, it will just issue warnings
3372       # or remarks (even with -Werror).  So we grep stderr for any message
3373       # that says an option was ignored or not supported.
3374       # When given -MP, icc 7.0 and 7.1 complain thusly:
3375       #   icc: Command line warning: ignoring option '-M'; no argument required
3376       # The diagnosis changed in icc 8.0:
3377       #   icc: Command line remark: option '-MP' not supported
3378       if (grep 'ignoring option' conftest.err ||
3379           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3380         am_cv_CC_dependencies_compiler_type=$depmode
3381         break
3382       fi
3383     fi
3384   done
3385
3386   cd ..
3387   rm -rf conftest.dir
3388 else
3389   am_cv_CC_dependencies_compiler_type=none
3390 fi
3391
3392 fi
3393 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3394 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3395 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3396
3397
3398
3399 if
3400   test "x$enable_dependency_tracking" != xno \
3401   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3402   am__fastdepCC_TRUE=
3403   am__fastdepCC_FALSE='#'
3404 else
3405   am__fastdepCC_TRUE='#'
3406   am__fastdepCC_FALSE=
3407 fi
3408
3409
3410 { echo "$as_me:$LINENO: checking for function prototypes" >&5
3411 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
3412 if test "$ac_cv_prog_cc_c89" != no; then
3413   { echo "$as_me:$LINENO: result: yes" >&5
3414 echo "${ECHO_T}yes" >&6; }
3415
3416 cat >>confdefs.h <<\_ACEOF
3417 #define PROTOTYPES 1
3418 _ACEOF
3419
3420
3421 cat >>confdefs.h <<\_ACEOF
3422 #define __PROTOTYPES 1
3423 _ACEOF
3424
3425 else
3426   { echo "$as_me:$LINENO: result: no" >&5
3427 echo "${ECHO_T}no" >&6; }
3428 fi
3429
3430
3431 ac_ext=c
3432 ac_cpp='$CPP $CPPFLAGS'
3433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3436 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3437 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3438 # On Suns, sometimes $CPP names a directory.
3439 if test -n "$CPP" && test -d "$CPP"; then
3440   CPP=
3441 fi
3442 if test -z "$CPP"; then
3443   if test "${ac_cv_prog_CPP+set}" = set; then
3444   echo $ECHO_N "(cached) $ECHO_C" >&6
3445 else
3446       # Double quotes because CPP needs to be expanded
3447     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3448     do
3449       ac_preproc_ok=false
3450 for ac_c_preproc_warn_flag in '' yes
3451 do
3452   # Use a header file that comes with gcc, so configuring glibc
3453   # with a fresh cross-compiler works.
3454   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3455   # <limits.h> exists even on freestanding compilers.
3456   # On the NeXT, cc -E runs the code through the compiler's parser,
3457   # not just through cpp. "Syntax error" is here to catch this case.
3458   cat >conftest.$ac_ext <<_ACEOF
3459 /* confdefs.h.  */
3460 _ACEOF
3461 cat confdefs.h >>conftest.$ac_ext
3462 cat >>conftest.$ac_ext <<_ACEOF
3463 /* end confdefs.h.  */
3464 #ifdef __STDC__
3465 # include <limits.h>
3466 #else
3467 # include <assert.h>
3468 #endif
3469                      Syntax error
3470 _ACEOF
3471 if { (ac_try="$ac_cpp conftest.$ac_ext"
3472 case "(($ac_try" in
3473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474   *) ac_try_echo=$ac_try;;
3475 esac
3476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3477   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3478   ac_status=$?
3479   grep -v '^ *+' conftest.er1 >conftest.err
3480   rm -f conftest.er1
3481   cat conftest.err >&5
3482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483   (exit $ac_status); } >/dev/null && {
3484          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3485          test ! -s conftest.err
3486        }; then
3487   :
3488 else
3489   echo "$as_me: failed program was:" >&5
3490 sed 's/^/| /' conftest.$ac_ext >&5
3491
3492   # Broken: fails on valid input.
3493 continue
3494 fi
3495
3496 rm -f conftest.err conftest.$ac_ext
3497
3498   # OK, works on sane cases.  Now check whether nonexistent headers
3499   # can be detected and how.
3500   cat >conftest.$ac_ext <<_ACEOF
3501 /* confdefs.h.  */
3502 _ACEOF
3503 cat confdefs.h >>conftest.$ac_ext
3504 cat >>conftest.$ac_ext <<_ACEOF
3505 /* end confdefs.h.  */
3506 #include <ac_nonexistent.h>
3507 _ACEOF
3508 if { (ac_try="$ac_cpp conftest.$ac_ext"
3509 case "(($ac_try" in
3510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3511   *) ac_try_echo=$ac_try;;
3512 esac
3513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3514   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3515   ac_status=$?
3516   grep -v '^ *+' conftest.er1 >conftest.err
3517   rm -f conftest.er1
3518   cat conftest.err >&5
3519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520   (exit $ac_status); } >/dev/null && {
3521          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3522          test ! -s conftest.err
3523        }; then
3524   # Broken: success on invalid input.
3525 continue
3526 else
3527   echo "$as_me: failed program was:" >&5
3528 sed 's/^/| /' conftest.$ac_ext >&5
3529
3530   # Passes both tests.
3531 ac_preproc_ok=:
3532 break
3533 fi
3534
3535 rm -f conftest.err conftest.$ac_ext
3536
3537 done
3538 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3539 rm -f conftest.err conftest.$ac_ext
3540 if $ac_preproc_ok; then
3541   break
3542 fi
3543
3544     done
3545     ac_cv_prog_CPP=$CPP
3546
3547 fi
3548   CPP=$ac_cv_prog_CPP
3549 else
3550   ac_cv_prog_CPP=$CPP
3551 fi
3552 { echo "$as_me:$LINENO: result: $CPP" >&5
3553 echo "${ECHO_T}$CPP" >&6; }
3554 ac_preproc_ok=false
3555 for ac_c_preproc_warn_flag in '' yes
3556 do
3557   # Use a header file that comes with gcc, so configuring glibc
3558   # with a fresh cross-compiler works.
3559   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3560   # <limits.h> exists even on freestanding compilers.
3561   # On the NeXT, cc -E runs the code through the compiler's parser,
3562   # not just through cpp. "Syntax error" is here to catch this case.
3563   cat >conftest.$ac_ext <<_ACEOF
3564 /* confdefs.h.  */
3565 _ACEOF
3566 cat confdefs.h >>conftest.$ac_ext
3567 cat >>conftest.$ac_ext <<_ACEOF
3568 /* end confdefs.h.  */
3569 #ifdef __STDC__
3570 # include <limits.h>
3571 #else
3572 # include <assert.h>
3573 #endif
3574                      Syntax error
3575 _ACEOF
3576 if { (ac_try="$ac_cpp conftest.$ac_ext"
3577 case "(($ac_try" in
3578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3579   *) ac_try_echo=$ac_try;;
3580 esac
3581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3582   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3583   ac_status=$?
3584   grep -v '^ *+' conftest.er1 >conftest.err
3585   rm -f conftest.er1
3586   cat conftest.err >&5
3587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588   (exit $ac_status); } >/dev/null && {
3589          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3590          test ! -s conftest.err
3591        }; then
3592   :
3593 else
3594   echo "$as_me: failed program was:" >&5
3595 sed 's/^/| /' conftest.$ac_ext >&5
3596
3597   # Broken: fails on valid input.
3598 continue
3599 fi
3600
3601 rm -f conftest.err conftest.$ac_ext
3602
3603   # OK, works on sane cases.  Now check whether nonexistent headers
3604   # can be detected and how.
3605   cat >conftest.$ac_ext <<_ACEOF
3606 /* confdefs.h.  */
3607 _ACEOF
3608 cat confdefs.h >>conftest.$ac_ext
3609 cat >>conftest.$ac_ext <<_ACEOF
3610 /* end confdefs.h.  */
3611 #include <ac_nonexistent.h>
3612 _ACEOF
3613 if { (ac_try="$ac_cpp conftest.$ac_ext"
3614 case "(($ac_try" in
3615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616   *) ac_try_echo=$ac_try;;
3617 esac
3618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3619   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3620   ac_status=$?
3621   grep -v '^ *+' conftest.er1 >conftest.err
3622   rm -f conftest.er1
3623   cat conftest.err >&5
3624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625   (exit $ac_status); } >/dev/null && {
3626          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3627          test ! -s conftest.err
3628        }; then
3629   # Broken: success on invalid input.
3630 continue
3631 else
3632   echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3634
3635   # Passes both tests.
3636 ac_preproc_ok=:
3637 break
3638 fi
3639
3640 rm -f conftest.err conftest.$ac_ext
3641
3642 done
3643 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3644 rm -f conftest.err conftest.$ac_ext
3645 if $ac_preproc_ok; then
3646   :
3647 else
3648   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3649 See \`config.log' for more details." >&5
3650 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3651 See \`config.log' for more details." >&2;}
3652    { (exit 1); exit 1; }; }
3653 fi
3654
3655 ac_ext=c
3656 ac_cpp='$CPP $CPPFLAGS'
3657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3660
3661
3662 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3663 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3664 if test "${ac_cv_path_GREP+set}" = set; then
3665   echo $ECHO_N "(cached) $ECHO_C" >&6
3666 else
3667   # Extract the first word of "grep ggrep" to use in msg output
3668 if test -z "$GREP"; then
3669 set dummy grep ggrep; ac_prog_name=$2
3670 if test "${ac_cv_path_GREP+set}" = set; then
3671   echo $ECHO_N "(cached) $ECHO_C" >&6
3672 else
3673   ac_path_GREP_found=false
3674 # Loop through the user's path and test for each of PROGNAME-LIST
3675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3676 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3677 do
3678   IFS=$as_save_IFS
3679   test -z "$as_dir" && as_dir=.
3680   for ac_prog in grep ggrep; do
3681   for ac_exec_ext in '' $ac_executable_extensions; do
3682     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3683     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3684     # Check for GNU ac_path_GREP and select it if it is found.
3685   # Check for GNU $ac_path_GREP
3686 case `"$ac_path_GREP" --version 2>&1` in
3687 *GNU*)
3688   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3689 *)
3690   ac_count=0
3691   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3692   while :
3693   do
3694     cat "conftest.in" "conftest.in" >"conftest.tmp"
3695     mv "conftest.tmp" "conftest.in"
3696     cp "conftest.in" "conftest.nl"
3697     echo 'GREP' >> "conftest.nl"
3698     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3699     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3700     ac_count=`expr $ac_count + 1`
3701     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3702       # Best one so far, save it but keep looking for a better one
3703       ac_cv_path_GREP="$ac_path_GREP"
3704       ac_path_GREP_max=$ac_count
3705     fi
3706     # 10*(2^10) chars as input seems more than enough
3707     test $ac_count -gt 10 && break
3708   done
3709   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3710 esac
3711
3712
3713     $ac_path_GREP_found && break 3
3714   done
3715 done
3716
3717 done
3718 IFS=$as_save_IFS
3719
3720
3721 fi
3722
3723 GREP="$ac_cv_path_GREP"
3724 if test -z "$GREP"; then
3725   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3726 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3727    { (exit 1); exit 1; }; }
3728 fi
3729
3730 else
3731   ac_cv_path_GREP=$GREP
3732 fi
3733
3734
3735 fi
3736 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3737 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3738  GREP="$ac_cv_path_GREP"
3739
3740
3741 { echo "$as_me:$LINENO: checking for egrep" >&5
3742 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3743 if test "${ac_cv_path_EGREP+set}" = set; then
3744   echo $ECHO_N "(cached) $ECHO_C" >&6
3745 else
3746   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3747    then ac_cv_path_EGREP="$GREP -E"
3748    else
3749      # Extract the first word of "egrep" to use in msg output
3750 if test -z "$EGREP"; then
3751 set dummy egrep; ac_prog_name=$2
3752 if test "${ac_cv_path_EGREP+set}" = set; then
3753   echo $ECHO_N "(cached) $ECHO_C" >&6
3754 else
3755   ac_path_EGREP_found=false
3756 # Loop through the user's path and test for each of PROGNAME-LIST
3757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3758 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3759 do
3760   IFS=$as_save_IFS
3761   test -z "$as_dir" && as_dir=.
3762   for ac_prog in egrep; do
3763   for ac_exec_ext in '' $ac_executable_extensions; do
3764     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3765     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3766     # Check for GNU ac_path_EGREP and select it if it is found.
3767   # Check for GNU $ac_path_EGREP
3768 case `"$ac_path_EGREP" --version 2>&1` in
3769 *GNU*)
3770   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3771 *)
3772   ac_count=0
3773   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3774   while :
3775   do
3776     cat "conftest.in" "conftest.in" >"conftest.tmp"
3777     mv "conftest.tmp" "conftest.in"
3778     cp "conftest.in" "conftest.nl"
3779     echo 'EGREP' >> "conftest.nl"
3780     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3781     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3782     ac_count=`expr $ac_count + 1`
3783     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3784       # Best one so far, save it but keep looking for a better one
3785       ac_cv_path_EGREP="$ac_path_EGREP"
3786       ac_path_EGREP_max=$ac_count
3787     fi
3788     # 10*(2^10) chars as input seems more than enough
3789     test $ac_count -gt 10 && break
3790   done
3791   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3792 esac
3793
3794
3795     $ac_path_EGREP_found && break 3
3796   done
3797 done
3798
3799 done
3800 IFS=$as_save_IFS
3801
3802
3803 fi
3804
3805 EGREP="$ac_cv_path_EGREP"
3806 if test -z "$EGREP"; then
3807   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3808 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3809    { (exit 1); exit 1; }; }
3810 fi
3811
3812 else
3813   ac_cv_path_EGREP=$EGREP
3814 fi
3815
3816
3817    fi
3818 fi
3819 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3820 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3821  EGREP="$ac_cv_path_EGREP"
3822
3823
3824 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3825 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3826 if test "${ac_cv_header_stdc+set}" = set; then
3827   echo $ECHO_N "(cached) $ECHO_C" >&6
3828 else
3829   cat >conftest.$ac_ext <<_ACEOF
3830 /* confdefs.h.  */
3831 _ACEOF
3832 cat confdefs.h >>conftest.$ac_ext
3833 cat >>conftest.$ac_ext <<_ACEOF
3834 /* end confdefs.h.  */
3835 #include <stdlib.h>
3836 #include <stdarg.h>
3837 #include <string.h>
3838 #include <float.h>
3839
3840 int
3841 main ()
3842 {
3843
3844   ;
3845   return 0;
3846 }
3847 _ACEOF
3848 rm -f conftest.$ac_objext
3849 if { (ac_try="$ac_compile"
3850 case "(($ac_try" in
3851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852   *) ac_try_echo=$ac_try;;
3853 esac
3854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3855   (eval "$ac_compile") 2>conftest.er1
3856   ac_status=$?
3857   grep -v '^ *+' conftest.er1 >conftest.err
3858   rm -f conftest.er1
3859   cat conftest.err >&5
3860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861   (exit $ac_status); } && {
3862          test -z "$ac_c_werror_flag" ||
3863          test ! -s conftest.err
3864        } && test -s conftest.$ac_objext; then
3865   ac_cv_header_stdc=yes
3866 else
3867   echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.$ac_ext >&5
3869
3870         ac_cv_header_stdc=no
3871 fi
3872
3873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3874
3875 if test $ac_cv_header_stdc = yes; then
3876   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3877   cat >conftest.$ac_ext <<_ACEOF
3878 /* confdefs.h.  */
3879 _ACEOF
3880 cat confdefs.h >>conftest.$ac_ext
3881 cat >>conftest.$ac_ext <<_ACEOF
3882 /* end confdefs.h.  */
3883 #include <string.h>
3884
3885 _ACEOF
3886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3887   $EGREP "memchr" >/dev/null 2>&1; then
3888   :
3889 else
3890   ac_cv_header_stdc=no
3891 fi
3892 rm -f conftest*
3893
3894 fi
3895
3896 if test $ac_cv_header_stdc = yes; then
3897   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3898   cat >conftest.$ac_ext <<_ACEOF
3899 /* confdefs.h.  */
3900 _ACEOF
3901 cat confdefs.h >>conftest.$ac_ext
3902 cat >>conftest.$ac_ext <<_ACEOF
3903 /* end confdefs.h.  */
3904 #include <stdlib.h>
3905
3906 _ACEOF
3907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3908   $EGREP "free" >/dev/null 2>&1; then
3909   :
3910 else
3911   ac_cv_header_stdc=no
3912 fi
3913 rm -f conftest*
3914
3915 fi
3916
3917 if test $ac_cv_header_stdc = yes; then
3918   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3919   if test "$cross_compiling" = yes; then
3920   :
3921 else
3922   cat >conftest.$ac_ext <<_ACEOF
3923 /* confdefs.h.  */
3924 _ACEOF
3925 cat confdefs.h >>conftest.$ac_ext
3926 cat >>conftest.$ac_ext <<_ACEOF
3927 /* end confdefs.h.  */
3928 #include <ctype.h>
3929 #include <stdlib.h>
3930 #if ((' ' & 0x0FF) == 0x020)
3931 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3932 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3933 #else
3934 # define ISLOWER(c) \
3935                    (('a' <= (c) && (c) <= 'i') \
3936                      || ('j' <= (c) && (c) <= 'r') \
3937                      || ('s' <= (c) && (c) <= 'z'))
3938 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3939 #endif
3940
3941 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3942 int
3943 main ()
3944 {
3945   int i;
3946   for (i = 0; i < 256; i++)
3947     if (XOR (islower (i), ISLOWER (i))
3948         || toupper (i) != TOUPPER (i))
3949       return 2;
3950   return 0;
3951 }
3952 _ACEOF
3953 rm -f conftest$ac_exeext
3954 if { (ac_try="$ac_link"
3955 case "(($ac_try" in
3956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957   *) ac_try_echo=$ac_try;;
3958 esac
3959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3960   (eval "$ac_link") 2>&5
3961   ac_status=$?
3962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3964   { (case "(($ac_try" in
3965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966   *) ac_try_echo=$ac_try;;
3967 esac
3968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3969   (eval "$ac_try") 2>&5
3970   ac_status=$?
3971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972   (exit $ac_status); }; }; then
3973   :
3974 else
3975   echo "$as_me: program exited with status $ac_status" >&5
3976 echo "$as_me: failed program was:" >&5
3977 sed 's/^/| /' conftest.$ac_ext >&5
3978
3979 ( exit $ac_status )
3980 ac_cv_header_stdc=no
3981 fi
3982 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3983 fi
3984
3985
3986 fi
3987 fi
3988 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3989 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3990 if test $ac_cv_header_stdc = yes; then
3991
3992 cat >>confdefs.h <<\_ACEOF
3993 #define STDC_HEADERS 1
3994 _ACEOF
3995
3996 fi
3997
3998 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4009                   inttypes.h stdint.h unistd.h
4010 do
4011 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4012 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4015   echo $ECHO_N "(cached) $ECHO_C" >&6
4016 else
4017   cat >conftest.$ac_ext <<_ACEOF
4018 /* confdefs.h.  */
4019 _ACEOF
4020 cat confdefs.h >>conftest.$ac_ext
4021 cat >>conftest.$ac_ext <<_ACEOF
4022 /* end confdefs.h.  */
4023 $ac_includes_default
4024
4025 #include <$ac_header>
4026 _ACEOF
4027 rm -f conftest.$ac_objext
4028 if { (ac_try="$ac_compile"
4029 case "(($ac_try" in
4030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4031   *) ac_try_echo=$ac_try;;
4032 esac
4033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4034   (eval "$ac_compile") 2>conftest.er1
4035   ac_status=$?
4036   grep -v '^ *+' conftest.er1 >conftest.err
4037   rm -f conftest.er1
4038   cat conftest.err >&5
4039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040   (exit $ac_status); } && {
4041          test -z "$ac_c_werror_flag" ||
4042          test ! -s conftest.err
4043        } && test -s conftest.$ac_objext; then
4044   eval "$as_ac_Header=yes"
4045 else
4046   echo "$as_me: failed program was:" >&5
4047 sed 's/^/| /' conftest.$ac_ext >&5
4048
4049         eval "$as_ac_Header=no"
4050 fi
4051
4052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4053 fi
4054 ac_res=`eval echo '${'$as_ac_Header'}'`
4055                { echo "$as_me:$LINENO: result: $ac_res" >&5
4056 echo "${ECHO_T}$ac_res" >&6; }
4057 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4058   cat >>confdefs.h <<_ACEOF
4059 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4060 _ACEOF
4061
4062 fi
4063
4064 done
4065
4066
4067
4068 if test "$ac_cv_prog_cc_stdc" != no; then
4069   U= ANSI2KNR=
4070 else
4071   U=_ ANSI2KNR=./ansi2knr
4072 fi
4073 # Ensure some checks needed by ansi2knr itself.
4074
4075
4076 for ac_header in string.h
4077 do
4078 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4080   { echo "$as_me:$LINENO: checking for $ac_header" >&5
4081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4083   echo $ECHO_N "(cached) $ECHO_C" >&6
4084 fi
4085 ac_res=`eval echo '${'$as_ac_Header'}'`
4086                { echo "$as_me:$LINENO: result: $ac_res" >&5
4087 echo "${ECHO_T}$ac_res" >&6; }
4088 else
4089   # Is the header compilable?
4090 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4091 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4092 cat >conftest.$ac_ext <<_ACEOF
4093 /* confdefs.h.  */
4094 _ACEOF
4095 cat confdefs.h >>conftest.$ac_ext
4096 cat >>conftest.$ac_ext <<_ACEOF
4097 /* end confdefs.h.  */
4098 $ac_includes_default
4099 #include <$ac_header>
4100 _ACEOF
4101 rm -f conftest.$ac_objext
4102 if { (ac_try="$ac_compile"
4103 case "(($ac_try" in
4104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4105   *) ac_try_echo=$ac_try;;
4106 esac
4107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4108   (eval "$ac_compile") 2>conftest.er1
4109   ac_status=$?
4110   grep -v '^ *+' conftest.er1 >conftest.err
4111   rm -f conftest.er1
4112   cat conftest.err >&5
4113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114   (exit $ac_status); } && {
4115          test -z "$ac_c_werror_flag" ||
4116          test ! -s conftest.err
4117        } && test -s conftest.$ac_objext; then
4118   ac_header_compiler=yes
4119 else
4120   echo "$as_me: failed program was:" >&5
4121 sed 's/^/| /' conftest.$ac_ext >&5
4122
4123         ac_header_compiler=no
4124 fi
4125
4126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4127 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4128 echo "${ECHO_T}$ac_header_compiler" >&6; }
4129
4130 # Is the header present?
4131 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4132 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4133 cat >conftest.$ac_ext <<_ACEOF
4134 /* confdefs.h.  */
4135 _ACEOF
4136 cat confdefs.h >>conftest.$ac_ext
4137 cat >>conftest.$ac_ext <<_ACEOF
4138 /* end confdefs.h.  */
4139 #include <$ac_header>
4140 _ACEOF
4141 if { (ac_try="$ac_cpp conftest.$ac_ext"
4142 case "(($ac_try" in
4143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144   *) ac_try_echo=$ac_try;;
4145 esac
4146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4147   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4148   ac_status=$?
4149   grep -v '^ *+' conftest.er1 >conftest.err
4150   rm -f conftest.er1
4151   cat conftest.err >&5
4152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153   (exit $ac_status); } >/dev/null && {
4154          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4155          test ! -s conftest.err
4156        }; then
4157   ac_header_preproc=yes
4158 else
4159   echo "$as_me: failed program was:" >&5
4160 sed 's/^/| /' conftest.$ac_ext >&5
4161
4162   ac_header_preproc=no
4163 fi
4164
4165 rm -f conftest.err conftest.$ac_ext
4166 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4167 echo "${ECHO_T}$ac_header_preproc" >&6; }
4168
4169 # So?  What about this header?
4170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4171   yes:no: )
4172     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4173 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4174     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4175 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4176     ac_header_preproc=yes
4177     ;;
4178   no:yes:* )
4179     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4181     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4182 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4183     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4184 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4185     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4186 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4187     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4189     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4190 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4191
4192     ;;
4193 esac
4194 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4196 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4197   echo $ECHO_N "(cached) $ECHO_C" >&6
4198 else
4199   eval "$as_ac_Header=\$ac_header_preproc"
4200 fi
4201 ac_res=`eval echo '${'$as_ac_Header'}'`
4202                { echo "$as_me:$LINENO: result: $ac_res" >&5
4203 echo "${ECHO_T}$ac_res" >&6; }
4204
4205 fi
4206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4207   cat >>confdefs.h <<_ACEOF
4208 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4209 _ACEOF
4210
4211 fi
4212
4213 done
4214
4215
4216 ac_ext=c
4217 ac_cpp='$CPP $CPPFLAGS'
4218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4221 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4222 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4223 # On Suns, sometimes $CPP names a directory.
4224 if test -n "$CPP" && test -d "$CPP"; then
4225   CPP=
4226 fi
4227 if test -z "$CPP"; then
4228   if test "${ac_cv_prog_CPP+set}" = set; then
4229   echo $ECHO_N "(cached) $ECHO_C" >&6
4230 else
4231       # Double quotes because CPP needs to be expanded
4232     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4233     do
4234       ac_preproc_ok=false
4235 for ac_c_preproc_warn_flag in '' yes
4236 do
4237   # Use a header file that comes with gcc, so configuring glibc
4238   # with a fresh cross-compiler works.
4239   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4240   # <limits.h> exists even on freestanding compilers.
4241   # On the NeXT, cc -E runs the code through the compiler's parser,
4242   # not just through cpp. "Syntax error" is here to catch this case.
4243   cat >conftest.$ac_ext <<_ACEOF
4244 /* confdefs.h.  */
4245 _ACEOF
4246 cat confdefs.h >>conftest.$ac_ext
4247 cat >>conftest.$ac_ext <<_ACEOF
4248 /* end confdefs.h.  */
4249 #ifdef __STDC__
4250 # include <limits.h>
4251 #else
4252 # include <assert.h>
4253 #endif
4254                      Syntax error
4255 _ACEOF
4256 if { (ac_try="$ac_cpp conftest.$ac_ext"
4257 case "(($ac_try" in
4258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4259   *) ac_try_echo=$ac_try;;
4260 esac
4261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4262   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4263   ac_status=$?
4264   grep -v '^ *+' conftest.er1 >conftest.err
4265   rm -f conftest.er1
4266   cat conftest.err >&5
4267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268   (exit $ac_status); } >/dev/null && {
4269          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4270          test ! -s conftest.err
4271        }; then
4272   :
4273 else
4274   echo "$as_me: failed program was:" >&5
4275 sed 's/^/| /' conftest.$ac_ext >&5
4276
4277   # Broken: fails on valid input.
4278 continue
4279 fi
4280
4281 rm -f conftest.err conftest.$ac_ext
4282
4283   # OK, works on sane cases.  Now check whether nonexistent headers
4284   # can be detected and how.
4285   cat >conftest.$ac_ext <<_ACEOF
4286 /* confdefs.h.  */
4287 _ACEOF
4288 cat confdefs.h >>conftest.$ac_ext
4289 cat >>conftest.$ac_ext <<_ACEOF
4290 /* end confdefs.h.  */
4291 #include <ac_nonexistent.h>
4292 _ACEOF
4293 if { (ac_try="$ac_cpp conftest.$ac_ext"
4294 case "(($ac_try" in
4295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4296   *) ac_try_echo=$ac_try;;
4297 esac
4298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4299   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4300   ac_status=$?
4301   grep -v '^ *+' conftest.er1 >conftest.err
4302   rm -f conftest.er1
4303   cat conftest.err >&5
4304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305   (exit $ac_status); } >/dev/null && {
4306          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4307          test ! -s conftest.err
4308        }; then
4309   # Broken: success on invalid input.
4310 continue
4311 else
4312   echo "$as_me: failed program was:" >&5
4313 sed 's/^/| /' conftest.$ac_ext >&5
4314
4315   # Passes both tests.
4316 ac_preproc_ok=:
4317 break
4318 fi
4319
4320 rm -f conftest.err conftest.$ac_ext
4321
4322 done
4323 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4324 rm -f conftest.err conftest.$ac_ext
4325 if $ac_preproc_ok; then
4326   break
4327 fi
4328
4329     done
4330     ac_cv_prog_CPP=$CPP
4331
4332 fi
4333   CPP=$ac_cv_prog_CPP
4334 else
4335   ac_cv_prog_CPP=$CPP
4336 fi
4337 { echo "$as_me:$LINENO: result: $CPP" >&5
4338 echo "${ECHO_T}$CPP" >&6; }
4339 ac_preproc_ok=false
4340 for ac_c_preproc_warn_flag in '' yes
4341 do
4342   # Use a header file that comes with gcc, so configuring glibc
4343   # with a fresh cross-compiler works.
4344   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4345   # <limits.h> exists even on freestanding compilers.
4346   # On the NeXT, cc -E runs the code through the compiler's parser,
4347   # not just through cpp. "Syntax error" is here to catch this case.
4348   cat >conftest.$ac_ext <<_ACEOF
4349 /* confdefs.h.  */
4350 _ACEOF
4351 cat confdefs.h >>conftest.$ac_ext
4352 cat >>conftest.$ac_ext <<_ACEOF
4353 /* end confdefs.h.  */
4354 #ifdef __STDC__
4355 # include <limits.h>
4356 #else
4357 # include <assert.h>
4358 #endif
4359                      Syntax error
4360 _ACEOF
4361 if { (ac_try="$ac_cpp conftest.$ac_ext"
4362 case "(($ac_try" in
4363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4364   *) ac_try_echo=$ac_try;;
4365 esac
4366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4367   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4368   ac_status=$?
4369   grep -v '^ *+' conftest.er1 >conftest.err
4370   rm -f conftest.er1
4371   cat conftest.err >&5
4372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373   (exit $ac_status); } >/dev/null && {
4374          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4375          test ! -s conftest.err
4376        }; then
4377   :
4378 else
4379   echo "$as_me: failed program was:" >&5
4380 sed 's/^/| /' conftest.$ac_ext >&5
4381
4382   # Broken: fails on valid input.
4383 continue
4384 fi
4385
4386 rm -f conftest.err conftest.$ac_ext
4387
4388   # OK, works on sane cases.  Now check whether nonexistent headers
4389   # can be detected and how.
4390   cat >conftest.$ac_ext <<_ACEOF
4391 /* confdefs.h.  */
4392 _ACEOF
4393 cat confdefs.h >>conftest.$ac_ext
4394 cat >>conftest.$ac_ext <<_ACEOF
4395 /* end confdefs.h.  */
4396 #include <ac_nonexistent.h>
4397 _ACEOF
4398 if { (ac_try="$ac_cpp conftest.$ac_ext"
4399 case "(($ac_try" in
4400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4401   *) ac_try_echo=$ac_try;;
4402 esac
4403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4404   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4405   ac_status=$?
4406   grep -v '^ *+' conftest.er1 >conftest.err
4407   rm -f conftest.er1
4408   cat conftest.err >&5
4409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410   (exit $ac_status); } >/dev/null && {
4411          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4412          test ! -s conftest.err
4413        }; then
4414   # Broken: success on invalid input.
4415 continue
4416 else
4417   echo "$as_me: failed program was:" >&5
4418 sed 's/^/| /' conftest.$ac_ext >&5
4419
4420   # Passes both tests.
4421 ac_preproc_ok=:
4422 break
4423 fi
4424
4425 rm -f conftest.err conftest.$ac_ext
4426
4427 done
4428 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4429 rm -f conftest.err conftest.$ac_ext
4430 if $ac_preproc_ok; then
4431   :
4432 else
4433   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4434 See \`config.log' for more details." >&5
4435 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4436 See \`config.log' for more details." >&2;}
4437    { (exit 1); exit 1; }; }
4438 fi
4439
4440 ac_ext=c
4441 ac_cpp='$CPP $CPPFLAGS'
4442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4445
4446 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4447 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4448 if test "${ac_cv_c_const+set}" = set; then
4449   echo $ECHO_N "(cached) $ECHO_C" >&6
4450 else
4451   cat >conftest.$ac_ext <<_ACEOF
4452 /* confdefs.h.  */
4453 _ACEOF
4454 cat confdefs.h >>conftest.$ac_ext
4455 cat >>conftest.$ac_ext <<_ACEOF
4456 /* end confdefs.h.  */
4457
4458 int
4459 main ()
4460 {
4461 /* FIXME: Include the comments suggested by Paul. */
4462 #ifndef __cplusplus
4463   /* Ultrix mips cc rejects this.  */
4464   typedef int charset[2];
4465   const charset cs;
4466   /* SunOS 4.1.1 cc rejects this.  */
4467   char const *const *pcpcc;
4468   char **ppc;
4469   /* NEC SVR4.0.2 mips cc rejects this.  */
4470   struct point {int x, y;};
4471   static struct point const zero = {0,0};
4472   /* AIX XL C 1.02.0.0 rejects this.
4473      It does not let you subtract one const X* pointer from another in
4474      an arm of an if-expression whose if-part is not a constant
4475      expression */
4476   const char *g = "string";
4477   pcpcc = &g + (g ? g-g : 0);
4478   /* HPUX 7.0 cc rejects these. */
4479   ++pcpcc;
4480   ppc = (char**) pcpcc;
4481   pcpcc = (char const *const *) ppc;
4482   { /* SCO 3.2v4 cc rejects this.  */
4483     char *t;
4484     char const *s = 0 ? (char *) 0 : (char const *) 0;
4485
4486     *t++ = 0;
4487     if (s) return 0;
4488   }
4489   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4490     int x[] = {25, 17};
4491     const int *foo = &x[0];
4492     ++foo;
4493   }
4494   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4495     typedef const int *iptr;
4496     iptr p = 0;
4497     ++p;
4498   }
4499   { /* AIX XL C 1.02.0.0 rejects this saying
4500        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4501     struct s { int j; const int *ap[3]; };
4502     struct s *b; b->j = 5;
4503   }
4504   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4505     const int foo = 10;
4506     if (!foo) return 0;
4507   }
4508   return !cs[0] && !zero.x;
4509 #endif
4510
4511   ;
4512   return 0;
4513 }
4514 _ACEOF
4515 rm -f conftest.$ac_objext
4516 if { (ac_try="$ac_compile"
4517 case "(($ac_try" in
4518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4519   *) ac_try_echo=$ac_try;;
4520 esac
4521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4522   (eval "$ac_compile") 2>conftest.er1
4523   ac_status=$?
4524   grep -v '^ *+' conftest.er1 >conftest.err
4525   rm -f conftest.er1
4526   cat conftest.err >&5
4527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528   (exit $ac_status); } && {
4529          test -z "$ac_c_werror_flag" ||
4530          test ! -s conftest.err
4531        } && test -s conftest.$ac_objext; then
4532   ac_cv_c_const=yes
4533 else
4534   echo "$as_me: failed program was:" >&5
4535 sed 's/^/| /' conftest.$ac_ext >&5
4536
4537         ac_cv_c_const=no
4538 fi
4539
4540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4541 fi
4542 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4543 echo "${ECHO_T}$ac_cv_c_const" >&6; }
4544 if test $ac_cv_c_const = no; then
4545
4546 cat >>confdefs.h <<\_ACEOF
4547 #define const
4548 _ACEOF
4549
4550 fi
4551
4552 { echo "$as_me:$LINENO: checking for inline" >&5
4553 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
4554 if test "${ac_cv_c_inline+set}" = set; then
4555   echo $ECHO_N "(cached) $ECHO_C" >&6
4556 else
4557   ac_cv_c_inline=no
4558 for ac_kw in inline __inline__ __inline; do
4559   cat >conftest.$ac_ext <<_ACEOF
4560 /* confdefs.h.  */
4561 _ACEOF
4562 cat confdefs.h >>conftest.$ac_ext
4563 cat >>conftest.$ac_ext <<_ACEOF
4564 /* end confdefs.h.  */
4565 #ifndef __cplusplus
4566 typedef int foo_t;
4567 static $ac_kw foo_t static_foo () {return 0; }
4568 $ac_kw foo_t foo () {return 0; }
4569 #endif
4570
4571 _ACEOF
4572 rm -f conftest.$ac_objext
4573 if { (ac_try="$ac_compile"
4574 case "(($ac_try" in
4575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4576   *) ac_try_echo=$ac_try;;
4577 esac
4578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4579   (eval "$ac_compile") 2>conftest.er1
4580   ac_status=$?
4581   grep -v '^ *+' conftest.er1 >conftest.err
4582   rm -f conftest.er1
4583   cat conftest.err >&5
4584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585   (exit $ac_status); } && {
4586          test -z "$ac_c_werror_flag" ||
4587          test ! -s conftest.err
4588        } && test -s conftest.$ac_objext; then
4589   ac_cv_c_inline=$ac_kw
4590 else
4591   echo "$as_me: failed program was:" >&5
4592 sed 's/^/| /' conftest.$ac_ext >&5
4593
4594
4595 fi
4596
4597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4598   test "$ac_cv_c_inline" != no && break
4599 done
4600
4601 fi
4602 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4603 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
4604
4605
4606 case $ac_cv_c_inline in
4607   inline | yes) ;;
4608   *)
4609     case $ac_cv_c_inline in
4610       no) ac_val=;;
4611       *) ac_val=$ac_cv_c_inline;;
4612     esac
4613     cat >>confdefs.h <<_ACEOF
4614 #ifndef __cplusplus
4615 #define inline $ac_val
4616 #endif
4617 _ACEOF
4618     ;;
4619 esac
4620
4621 { echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
4622 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6; }
4623 if test "${ac_cv_c_stringize+set}" = set; then
4624   echo $ECHO_N "(cached) $ECHO_C" >&6
4625 else
4626   cat >conftest.$ac_ext <<_ACEOF
4627 /* confdefs.h.  */
4628 _ACEOF
4629 cat confdefs.h >>conftest.$ac_ext
4630 cat >>conftest.$ac_ext <<_ACEOF
4631 /* end confdefs.h.  */
4632 #define x(y) #y
4633
4634 char *s = x(teststring);
4635 _ACEOF
4636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4637   $EGREP "#teststring" >/dev/null 2>&1; then
4638   ac_cv_c_stringize=no
4639 else
4640   ac_cv_c_stringize=yes
4641 fi
4642 rm -f conftest*
4643
4644 fi
4645 { echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
4646 echo "${ECHO_T}$ac_cv_c_stringize" >&6; }
4647 if test $ac_cv_c_stringize = yes; then
4648
4649 cat >>confdefs.h <<\_ACEOF
4650 #define HAVE_STRINGIZE 1
4651 _ACEOF
4652
4653 fi
4654
4655
4656 # If set to t, that means we are running in a shell under Emacs.
4657 # If you have an Emacs named "t", then use the full path.
4658 test x"$EMACS" = xt && EMACS=
4659 for ac_prog in emacs xemacs
4660 do
4661   # Extract the first word of "$ac_prog", so it can be a program name with args.
4662 set dummy $ac_prog; ac_word=$2
4663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4665 if test "${ac_cv_prog_EMACS+set}" = set; then
4666   echo $ECHO_N "(cached) $ECHO_C" >&6
4667 else
4668   if test -n "$EMACS"; then
4669   ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
4670 else
4671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672 for as_dir in $PATH
4673 do
4674   IFS=$as_save_IFS
4675   test -z "$as_dir" && as_dir=.
4676   for ac_exec_ext in '' $ac_executable_extensions; do
4677   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4678     ac_cv_prog_EMACS="$ac_prog"
4679     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4680     break 2
4681   fi
4682 done
4683 done
4684 IFS=$as_save_IFS
4685
4686 fi
4687 fi
4688 EMACS=$ac_cv_prog_EMACS
4689 if test -n "$EMACS"; then
4690   { echo "$as_me:$LINENO: result: $EMACS" >&5
4691 echo "${ECHO_T}$EMACS" >&6; }
4692 else
4693   { echo "$as_me:$LINENO: result: no" >&5
4694 echo "${ECHO_T}no" >&6; }
4695 fi
4696
4697
4698   test -n "$EMACS" && break
4699 done
4700 test -n "$EMACS" || EMACS="no"
4701
4702 for ac_prog in tex
4703 do
4704   # Extract the first word of "$ac_prog", so it can be a program name with args.
4705 set dummy $ac_prog; ac_word=$2
4706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4708 if test "${ac_cv_prog_PLAINTEX+set}" = set; then
4709   echo $ECHO_N "(cached) $ECHO_C" >&6
4710 else
4711   if test -n "$PLAINTEX"; then
4712   ac_cv_prog_PLAINTEX="$PLAINTEX" # Let the user override the test.
4713 else
4714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715 for as_dir in $PATH
4716 do
4717   IFS=$as_save_IFS
4718   test -z "$as_dir" && as_dir=.
4719   for ac_exec_ext in '' $ac_executable_extensions; do
4720   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4721     ac_cv_prog_PLAINTEX="$ac_prog"
4722     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4723     break 2
4724   fi
4725 done
4726 done
4727 IFS=$as_save_IFS
4728
4729 fi
4730 fi
4731 PLAINTEX=$ac_cv_prog_PLAINTEX
4732 if test -n "$PLAINTEX"; then
4733   { echo "$as_me:$LINENO: result: $PLAINTEX" >&5
4734 echo "${ECHO_T}$PLAINTEX" >&6; }
4735 else
4736   { echo "$as_me:$LINENO: result: no" >&5
4737 echo "${ECHO_T}no" >&6; }
4738 fi
4739
4740
4741   test -n "$PLAINTEX" && break
4742 done
4743 test -n "$PLAINTEX" || PLAINTEX="no"
4744
4745 for ac_prog in latex latex2e
4746 do
4747   # Extract the first word of "$ac_prog", so it can be a program name with args.
4748 set dummy $ac_prog; ac_word=$2
4749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4751 if test "${ac_cv_prog_LATEX+set}" = set; then
4752   echo $ECHO_N "(cached) $ECHO_C" >&6
4753 else
4754   if test -n "$LATEX"; then
4755   ac_cv_prog_LATEX="$LATEX" # Let the user override the test.
4756 else
4757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758 for as_dir in $PATH
4759 do
4760   IFS=$as_save_IFS
4761   test -z "$as_dir" && as_dir=.
4762   for ac_exec_ext in '' $ac_executable_extensions; do
4763   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4764     ac_cv_prog_LATEX="$ac_prog"
4765     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4766     break 2
4767   fi
4768 done
4769 done
4770 IFS=$as_save_IFS
4771
4772 fi
4773 fi
4774 LATEX=$ac_cv_prog_LATEX
4775 if test -n "$LATEX"; then
4776   { echo "$as_me:$LINENO: result: $LATEX" >&5
4777 echo "${ECHO_T}$LATEX" >&6; }
4778 else
4779   { echo "$as_me:$LINENO: result: no" >&5
4780 echo "${ECHO_T}no" >&6; }
4781 fi
4782
4783
4784   test -n "$LATEX" && break
4785 done
4786 test -n "$LATEX" || LATEX="no"
4787
4788 for ac_prog in pdflatex
4789 do
4790   # Extract the first word of "$ac_prog", so it can be a program name with args.
4791 set dummy $ac_prog; ac_word=$2
4792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4794 if test "${ac_cv_prog_PDFLATEX+set}" = set; then
4795   echo $ECHO_N "(cached) $ECHO_C" >&6
4796 else
4797   if test -n "$PDFLATEX"; then
4798   ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
4799 else
4800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801 for as_dir in $PATH
4802 do
4803   IFS=$as_save_IFS
4804   test -z "$as_dir" && as_dir=.
4805   for ac_exec_ext in '' $ac_executable_extensions; do
4806   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4807     ac_cv_prog_PDFLATEX="$ac_prog"
4808     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4809     break 2
4810   fi
4811 done
4812 done
4813 IFS=$as_save_IFS
4814
4815 fi
4816 fi
4817 PDFLATEX=$ac_cv_prog_PDFLATEX
4818 if test -n "$PDFLATEX"; then
4819   { echo "$as_me:$LINENO: result: $PDFLATEX" >&5
4820 echo "${ECHO_T}$PDFLATEX" >&6; }
4821 else
4822   { echo "$as_me:$LINENO: result: no" >&5
4823 echo "${ECHO_T}no" >&6; }
4824 fi
4825
4826
4827   test -n "$PDFLATEX" && break
4828 done
4829 test -n "$PDFLATEX" || PDFLATEX="no"
4830
4831 for ac_prog in dvips
4832 do
4833   # Extract the first word of "$ac_prog", so it can be a program name with args.
4834 set dummy $ac_prog; ac_word=$2
4835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4837 if test "${ac_cv_prog_DVIPS+set}" = set; then
4838   echo $ECHO_N "(cached) $ECHO_C" >&6
4839 else
4840   if test -n "$DVIPS"; then
4841   ac_cv_prog_DVIPS="$DVIPS" # Let the user override the test.
4842 else
4843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844 for as_dir in $PATH
4845 do
4846   IFS=$as_save_IFS
4847   test -z "$as_dir" && as_dir=.
4848   for ac_exec_ext in '' $ac_executable_extensions; do
4849   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4850     ac_cv_prog_DVIPS="$ac_prog"
4851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4852     break 2
4853   fi
4854 done
4855 done
4856 IFS=$as_save_IFS
4857
4858 fi
4859 fi
4860 DVIPS=$ac_cv_prog_DVIPS
4861 if test -n "$DVIPS"; then
4862   { echo "$as_me:$LINENO: result: $DVIPS" >&5
4863 echo "${ECHO_T}$DVIPS" >&6; }
4864 else
4865   { echo "$as_me:$LINENO: result: no" >&5
4866 echo "${ECHO_T}no" >&6; }
4867 fi
4868
4869
4870   test -n "$DVIPS" && break
4871 done
4872 test -n "$DVIPS" || DVIPS="no"
4873
4874 for ac_prog in troff
4875 do
4876   # Extract the first word of "$ac_prog", so it can be a program name with args.
4877 set dummy $ac_prog; ac_word=$2
4878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4880 if test "${ac_cv_prog_TROFF+set}" = set; then
4881   echo $ECHO_N "(cached) $ECHO_C" >&6
4882 else
4883   if test -n "$TROFF"; then
4884   ac_cv_prog_TROFF="$TROFF" # Let the user override the test.
4885 else
4886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4887 for as_dir in $PATH
4888 do
4889   IFS=$as_save_IFS
4890   test -z "$as_dir" && as_dir=.
4891   for ac_exec_ext in '' $ac_executable_extensions; do
4892   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4893     ac_cv_prog_TROFF="$ac_prog"
4894     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4895     break 2
4896   fi
4897 done
4898 done
4899 IFS=$as_save_IFS
4900
4901 fi
4902 fi
4903 TROFF=$ac_cv_prog_TROFF
4904 if test -n "$TROFF"; then
4905   { echo "$as_me:$LINENO: result: $TROFF" >&5
4906 echo "${ECHO_T}$TROFF" >&6; }
4907 else
4908   { echo "$as_me:$LINENO: result: no" >&5
4909 echo "${ECHO_T}no" >&6; }
4910 fi
4911
4912
4913   test -n "$TROFF" && break
4914 done
4915 test -n "$TROFF" || TROFF="no"
4916
4917
4918
4919 # Check whether --with-kpsexpand was given.
4920 if test "${with_kpsexpand+set}" = set; then
4921   withval=$with_kpsexpand; if test "$withval" = yes; then
4922
4923 cat >>confdefs.h <<\_ACEOF
4924 #define HAVE_KPSEXPAND 1
4925 _ACEOF
4926
4927   fi
4928 fi
4929
4930
4931
4932 { echo "$as_me:$LINENO: checking for X" >&5
4933 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
4934
4935
4936 # Check whether --with-x was given.
4937 if test "${with_x+set}" = set; then
4938   withval=$with_x;
4939 fi
4940
4941 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4942 if test "x$with_x" = xno; then
4943   # The user explicitly disabled X.
4944   have_x=disabled
4945 else
4946   case $x_includes,$x_libraries in #(
4947     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
4948 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
4949    { (exit 1); exit 1; }; };; #(
4950     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
4951   echo $ECHO_N "(cached) $ECHO_C" >&6
4952 else
4953   # One or both of the vars are not set, and there is no cached value.
4954 ac_x_includes=no ac_x_libraries=no
4955 rm -f -r conftest.dir
4956 if mkdir conftest.dir; then
4957   cd conftest.dir
4958   cat >Imakefile <<'_ACEOF'
4959 incroot:
4960         @echo incroot='${INCROOT}'
4961 usrlibdir:
4962         @echo usrlibdir='${USRLIBDIR}'
4963 libdir:
4964         @echo libdir='${LIBDIR}'
4965 _ACEOF
4966   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4967     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4968     for ac_var in incroot usrlibdir libdir; do
4969       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4970     done
4971     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4972     for ac_extension in a so sl; do
4973       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4974          test -f "$ac_im_libdir/libX11.$ac_extension"; then
4975         ac_im_usrlibdir=$ac_im_libdir; break
4976       fi
4977     done
4978     # Screen out bogus values from the imake configuration.  They are
4979     # bogus both because they are the default anyway, and because
4980     # using them would break gcc on systems where it needs fixed includes.
4981     case $ac_im_incroot in
4982         /usr/include) ac_x_includes= ;;
4983         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4984     esac
4985     case $ac_im_usrlibdir in
4986         /usr/lib | /lib) ;;
4987         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4988     esac
4989   fi
4990   cd ..
4991   rm -f -r conftest.dir
4992 fi
4993
4994 # Standard set of common directories for X headers.
4995 # Check X11 before X11Rn because it is often a symlink to the current release.
4996 ac_x_header_dirs='
4997 /usr/X11/include
4998 /usr/X11R6/include
4999 /usr/X11R5/include
5000 /usr/X11R4/include
5001
5002 /usr/include/X11
5003 /usr/include/X11R6
5004 /usr/include/X11R5
5005 /usr/include/X11R4
5006
5007 /usr/local/X11/include
5008 /usr/local/X11R6/include
5009 /usr/local/X11R5/include
5010 /usr/local/X11R4/include
5011
5012 /usr/local/include/X11
5013 /usr/local/include/X11R6
5014 /usr/local/include/X11R5
5015 /usr/local/include/X11R4
5016
5017 /usr/X386/include
5018 /usr/x386/include
5019 /usr/XFree86/include/X11
5020
5021 /usr/include
5022 /usr/local/include
5023 /usr/unsupported/include
5024 /usr/athena/include
5025 /usr/local/x11r5/include
5026 /usr/lpp/Xamples/include
5027
5028 /usr/openwin/include
5029 /usr/openwin/share/include'
5030
5031 if test "$ac_x_includes" = no; then
5032   # Guess where to find include files, by looking for Xlib.h.
5033   # First, try using that file with no special directory specified.
5034   cat >conftest.$ac_ext <<_ACEOF
5035 /* confdefs.h.  */
5036 _ACEOF
5037 cat confdefs.h >>conftest.$ac_ext
5038 cat >>conftest.$ac_ext <<_ACEOF
5039 /* end confdefs.h.  */
5040 #include <X11/Xlib.h>
5041 _ACEOF
5042 if { (ac_try="$ac_cpp conftest.$ac_ext"
5043 case "(($ac_try" in
5044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5045   *) ac_try_echo=$ac_try;;
5046 esac
5047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5048   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5049   ac_status=$?
5050   grep -v '^ *+' conftest.er1 >conftest.err
5051   rm -f conftest.er1
5052   cat conftest.err >&5
5053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054   (exit $ac_status); } >/dev/null && {
5055          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5056          test ! -s conftest.err
5057        }; then
5058   # We can compile using X headers with no special include directory.
5059 ac_x_includes=
5060 else
5061   echo "$as_me: failed program was:" >&5
5062 sed 's/^/| /' conftest.$ac_ext >&5
5063
5064   for ac_dir in $ac_x_header_dirs; do
5065   if test -r "$ac_dir/X11/Xlib.h"; then
5066     ac_x_includes=$ac_dir
5067     break
5068   fi
5069 done
5070 fi
5071
5072 rm -f conftest.err conftest.$ac_ext
5073 fi # $ac_x_includes = no
5074
5075 if test "$ac_x_libraries" = no; then
5076   # Check for the libraries.
5077   # See if we find them without any special options.
5078   # Don't add to $LIBS permanently.
5079   ac_save_LIBS=$LIBS
5080   LIBS="-lX11 $LIBS"
5081   cat >conftest.$ac_ext <<_ACEOF
5082 /* confdefs.h.  */
5083 _ACEOF
5084 cat confdefs.h >>conftest.$ac_ext
5085 cat >>conftest.$ac_ext <<_ACEOF
5086 /* end confdefs.h.  */
5087 #include <X11/Xlib.h>
5088 int
5089 main ()
5090 {
5091 XrmInitialize ()
5092   ;
5093   return 0;
5094 }
5095 _ACEOF
5096 rm -f conftest.$ac_objext conftest$ac_exeext
5097 if { (ac_try="$ac_link"
5098 case "(($ac_try" in
5099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5100   *) ac_try_echo=$ac_try;;
5101 esac
5102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5103   (eval "$ac_link") 2>conftest.er1
5104   ac_status=$?
5105   grep -v '^ *+' conftest.er1 >conftest.err
5106   rm -f conftest.er1
5107   cat conftest.err >&5
5108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109   (exit $ac_status); } && {
5110          test -z "$ac_c_werror_flag" ||
5111          test ! -s conftest.err
5112        } && test -s conftest$ac_exeext &&
5113        $as_test_x conftest$ac_exeext; then
5114   LIBS=$ac_save_LIBS
5115 # We can link X programs with no special library path.
5116 ac_x_libraries=
5117 else
5118   echo "$as_me: failed program was:" >&5
5119 sed 's/^/| /' conftest.$ac_ext >&5
5120
5121         LIBS=$ac_save_LIBS
5122 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5123 do
5124   # Don't even attempt the hair of trying to link an X program!
5125   for ac_extension in a so sl; do
5126     if test -r "$ac_dir/libX11.$ac_extension"; then
5127       ac_x_libraries=$ac_dir
5128       break 2
5129     fi
5130   done
5131 done
5132 fi
5133
5134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5135       conftest$ac_exeext conftest.$ac_ext
5136 fi # $ac_x_libraries = no
5137
5138 case $ac_x_includes,$ac_x_libraries in #(
5139   no,* | *,no | *\'*)
5140     # Didn't find X, or a directory has "'" in its name.
5141     ac_cv_have_x="have_x=no";; #(
5142   *)
5143     # Record where we found X for the cache.
5144     ac_cv_have_x="have_x=yes\
5145         ac_x_includes='$ac_x_includes'\
5146         ac_x_libraries='$ac_x_libraries'"
5147 esac
5148 fi
5149 ;; #(
5150     *) have_x=yes;;
5151   esac
5152   eval "$ac_cv_have_x"
5153 fi # $with_x != no
5154
5155 if test "$have_x" != yes; then
5156   { echo "$as_me:$LINENO: result: $have_x" >&5
5157 echo "${ECHO_T}$have_x" >&6; }
5158   no_x=yes
5159 else
5160   # If each of the values was on the command line, it overrides each guess.
5161   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5162   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5163   # Update the cache value to reflect the command line values.
5164   ac_cv_have_x="have_x=yes\
5165         ac_x_includes='$x_includes'\
5166         ac_x_libraries='$x_libraries'"
5167   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5168 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
5169 fi
5170
5171 if test "$no_x" = yes; then
5172   # Not all programs may use this symbol, but it does not hurt to define it.
5173
5174 cat >>confdefs.h <<\_ACEOF
5175 #define X_DISPLAY_MISSING 1
5176 _ACEOF
5177
5178   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5179 else
5180   if test -n "$x_includes"; then
5181     X_CFLAGS="$X_CFLAGS -I$x_includes"
5182   fi
5183
5184   # It would also be nice to do this for all -L options, not just this one.
5185   if test -n "$x_libraries"; then
5186     X_LIBS="$X_LIBS -L$x_libraries"
5187     # For Solaris; some versions of Sun CC require a space after -R and
5188     # others require no space.  Words are not sufficient . . . .
5189     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5190 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
5191     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5192     ac_xsave_c_werror_flag=$ac_c_werror_flag
5193     ac_c_werror_flag=yes
5194     cat >conftest.$ac_ext <<_ACEOF
5195 /* confdefs.h.  */
5196 _ACEOF
5197 cat confdefs.h >>conftest.$ac_ext
5198 cat >>conftest.$ac_ext <<_ACEOF
5199 /* end confdefs.h.  */
5200
5201 int
5202 main ()
5203 {
5204
5205   ;
5206   return 0;
5207 }
5208 _ACEOF
5209 rm -f conftest.$ac_objext conftest$ac_exeext
5210 if { (ac_try="$ac_link"
5211 case "(($ac_try" in
5212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5213   *) ac_try_echo=$ac_try;;
5214 esac
5215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5216   (eval "$ac_link") 2>conftest.er1
5217   ac_status=$?
5218   grep -v '^ *+' conftest.er1 >conftest.err
5219   rm -f conftest.er1
5220   cat conftest.err >&5
5221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222   (exit $ac_status); } && {
5223          test -z "$ac_c_werror_flag" ||
5224          test ! -s conftest.err
5225        } && test -s conftest$ac_exeext &&
5226        $as_test_x conftest$ac_exeext; then
5227   { echo "$as_me:$LINENO: result: no" >&5
5228 echo "${ECHO_T}no" >&6; }
5229        X_LIBS="$X_LIBS -R$x_libraries"
5230 else
5231   echo "$as_me: failed program was:" >&5
5232 sed 's/^/| /' conftest.$ac_ext >&5
5233
5234         LIBS="$ac_xsave_LIBS -R $x_libraries"
5235        cat >conftest.$ac_ext <<_ACEOF
5236 /* confdefs.h.  */
5237 _ACEOF
5238 cat confdefs.h >>conftest.$ac_ext
5239 cat >>conftest.$ac_ext <<_ACEOF
5240 /* end confdefs.h.  */
5241
5242 int
5243 main ()
5244 {
5245
5246   ;
5247   return 0;
5248 }
5249 _ACEOF
5250 rm -f conftest.$ac_objext conftest$ac_exeext
5251 if { (ac_try="$ac_link"
5252 case "(($ac_try" in
5253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5254   *) ac_try_echo=$ac_try;;
5255 esac
5256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5257   (eval "$ac_link") 2>conftest.er1
5258   ac_status=$?
5259   grep -v '^ *+' conftest.er1 >conftest.err
5260   rm -f conftest.er1
5261   cat conftest.err >&5
5262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263   (exit $ac_status); } && {
5264          test -z "$ac_c_werror_flag" ||
5265          test ! -s conftest.err
5266        } && test -s conftest$ac_exeext &&
5267        $as_test_x conftest$ac_exeext; then
5268   { echo "$as_me:$LINENO: result: yes" >&5
5269 echo "${ECHO_T}yes" >&6; }
5270           X_LIBS="$X_LIBS -R $x_libraries"
5271 else
5272   echo "$as_me: failed program was:" >&5
5273 sed 's/^/| /' conftest.$ac_ext >&5
5274
5275         { echo "$as_me:$LINENO: result: neither works" >&5
5276 echo "${ECHO_T}neither works" >&6; }
5277 fi
5278
5279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5280       conftest$ac_exeext conftest.$ac_ext
5281 fi
5282
5283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5284       conftest$ac_exeext conftest.$ac_ext
5285     ac_c_werror_flag=$ac_xsave_c_werror_flag
5286     LIBS=$ac_xsave_LIBS
5287   fi
5288
5289   # Check for system-dependent libraries X programs must link with.
5290   # Do this before checking for the system-independent R6 libraries
5291   # (-lICE), since we may need -lsocket or whatever for X linking.
5292
5293   if test "$ISC" = yes; then
5294     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5295   else
5296     # Martyn Johnson says this is needed for Ultrix, if the X
5297     # libraries were built with DECnet support.  And Karl Berry says
5298     # the Alpha needs dnet_stub (dnet does not exist).
5299     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5300     cat >conftest.$ac_ext <<_ACEOF
5301 /* confdefs.h.  */
5302 _ACEOF
5303 cat confdefs.h >>conftest.$ac_ext
5304 cat >>conftest.$ac_ext <<_ACEOF
5305 /* end confdefs.h.  */
5306
5307 /* Override any GCC internal prototype to avoid an error.
5308    Use char because int might match the return type of a GCC
5309    builtin and then its argument prototype would still apply.  */
5310 #ifdef __cplusplus
5311 extern "C"
5312 #endif
5313 char XOpenDisplay ();
5314 int
5315 main ()
5316 {
5317 return XOpenDisplay ();
5318   ;
5319   return 0;
5320 }
5321 _ACEOF
5322 rm -f conftest.$ac_objext conftest$ac_exeext
5323 if { (ac_try="$ac_link"
5324 case "(($ac_try" in
5325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5326   *) ac_try_echo=$ac_try;;
5327 esac
5328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5329   (eval "$ac_link") 2>conftest.er1
5330   ac_status=$?
5331   grep -v '^ *+' conftest.er1 >conftest.err
5332   rm -f conftest.er1
5333   cat conftest.err >&5
5334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335   (exit $ac_status); } && {
5336          test -z "$ac_c_werror_flag" ||
5337          test ! -s conftest.err
5338        } && test -s conftest$ac_exeext &&
5339        $as_test_x conftest$ac_exeext; then
5340   :
5341 else
5342   echo "$as_me: failed program was:" >&5
5343 sed 's/^/| /' conftest.$ac_ext >&5
5344
5345         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5346 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
5347 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5348   echo $ECHO_N "(cached) $ECHO_C" >&6
5349 else
5350   ac_check_lib_save_LIBS=$LIBS
5351 LIBS="-ldnet  $LIBS"
5352 cat >conftest.$ac_ext <<_ACEOF
5353 /* confdefs.h.  */
5354 _ACEOF
5355 cat confdefs.h >>conftest.$ac_ext
5356 cat >>conftest.$ac_ext <<_ACEOF
5357 /* end confdefs.h.  */
5358
5359 /* Override any GCC internal prototype to avoid an error.
5360    Use char because int might match the return type of a GCC
5361    builtin and then its argument prototype would still apply.  */
5362 #ifdef __cplusplus
5363 extern "C"
5364 #endif
5365 char dnet_ntoa ();
5366 int
5367 main ()
5368 {
5369 return dnet_ntoa ();
5370   ;
5371   return 0;
5372 }
5373 _ACEOF
5374 rm -f conftest.$ac_objext conftest$ac_exeext
5375 if { (ac_try="$ac_link"
5376 case "(($ac_try" in
5377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5378   *) ac_try_echo=$ac_try;;
5379 esac
5380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5381   (eval "$ac_link") 2>conftest.er1
5382   ac_status=$?
5383   grep -v '^ *+' conftest.er1 >conftest.err
5384   rm -f conftest.er1
5385   cat conftest.err >&5
5386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387   (exit $ac_status); } && {
5388          test -z "$ac_c_werror_flag" ||
5389          test ! -s conftest.err
5390        } && test -s conftest$ac_exeext &&
5391        $as_test_x conftest$ac_exeext; then
5392   ac_cv_lib_dnet_dnet_ntoa=yes
5393 else
5394   echo "$as_me: failed program was:" >&5
5395 sed 's/^/| /' conftest.$ac_ext >&5
5396
5397         ac_cv_lib_dnet_dnet_ntoa=no
5398 fi
5399
5400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5401       conftest$ac_exeext conftest.$ac_ext
5402 LIBS=$ac_check_lib_save_LIBS
5403 fi
5404 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5405 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
5406 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5407   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5408 fi
5409
5410     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5411       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5412 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
5413 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5414   echo $ECHO_N "(cached) $ECHO_C" >&6
5415 else
5416   ac_check_lib_save_LIBS=$LIBS
5417 LIBS="-ldnet_stub  $LIBS"
5418 cat >conftest.$ac_ext <<_ACEOF
5419 /* confdefs.h.  */
5420 _ACEOF
5421 cat confdefs.h >>conftest.$ac_ext
5422 cat >>conftest.$ac_ext <<_ACEOF
5423 /* end confdefs.h.  */
5424
5425 /* Override any GCC internal prototype to avoid an error.
5426    Use char because int might match the return type of a GCC
5427    builtin and then its argument prototype would still apply.  */
5428 #ifdef __cplusplus
5429 extern "C"
5430 #endif
5431 char dnet_ntoa ();
5432 int
5433 main ()
5434 {
5435 return dnet_ntoa ();
5436   ;
5437   return 0;
5438 }
5439 _ACEOF
5440 rm -f conftest.$ac_objext conftest$ac_exeext
5441 if { (ac_try="$ac_link"
5442 case "(($ac_try" in
5443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5444   *) ac_try_echo=$ac_try;;
5445 esac
5446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5447   (eval "$ac_link") 2>conftest.er1
5448   ac_status=$?
5449   grep -v '^ *+' conftest.er1 >conftest.err
5450   rm -f conftest.er1
5451   cat conftest.err >&5
5452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453   (exit $ac_status); } && {
5454          test -z "$ac_c_werror_flag" ||
5455          test ! -s conftest.err
5456        } && test -s conftest$ac_exeext &&
5457        $as_test_x conftest$ac_exeext; then
5458   ac_cv_lib_dnet_stub_dnet_ntoa=yes
5459 else
5460   echo "$as_me: failed program was:" >&5
5461 sed 's/^/| /' conftest.$ac_ext >&5
5462
5463         ac_cv_lib_dnet_stub_dnet_ntoa=no
5464 fi
5465
5466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5467       conftest$ac_exeext conftest.$ac_ext
5468 LIBS=$ac_check_lib_save_LIBS
5469 fi
5470 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5471 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5472 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5473   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5474 fi
5475
5476     fi
5477 fi
5478
5479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5480       conftest$ac_exeext conftest.$ac_ext
5481     LIBS="$ac_xsave_LIBS"
5482
5483     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5484     # to get the SysV transport functions.
5485     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5486     # needs -lnsl.
5487     # The nsl library prevents programs from opening the X display
5488     # on Irix 5.2, according to T.E. Dickey.
5489     # The functions gethostbyname, getservbyname, and inet_addr are
5490     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5491     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
5492 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
5493 if test "${ac_cv_func_gethostbyname+set}" = set; then
5494   echo $ECHO_N "(cached) $ECHO_C" >&6
5495 else
5496   cat >conftest.$ac_ext <<_ACEOF
5497 /* confdefs.h.  */
5498 _ACEOF
5499 cat confdefs.h >>conftest.$ac_ext
5500 cat >>conftest.$ac_ext <<_ACEOF
5501 /* end confdefs.h.  */
5502 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5503    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5504 #define gethostbyname innocuous_gethostbyname
5505
5506 /* System header to define __stub macros and hopefully few prototypes,
5507     which can conflict with char gethostbyname (); below.
5508     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5509     <limits.h> exists even on freestanding compilers.  */
5510
5511 #ifdef __STDC__
5512 # include <limits.h>
5513 #else
5514 # include <assert.h>
5515 #endif
5516
5517 #undef gethostbyname
5518
5519 /* Override any GCC internal prototype to avoid an error.
5520    Use char because int might match the return type of a GCC
5521    builtin and then its argument prototype would still apply.  */
5522 #ifdef __cplusplus
5523 extern "C"
5524 #endif
5525 char gethostbyname ();
5526 /* The GNU C library defines this for functions which it implements
5527     to always fail with ENOSYS.  Some functions are actually named
5528     something starting with __ and the normal name is an alias.  */
5529 #if defined __stub_gethostbyname || defined __stub___gethostbyname
5530 choke me
5531 #endif
5532
5533 int
5534 main ()
5535 {
5536 return gethostbyname ();
5537   ;
5538   return 0;
5539 }
5540 _ACEOF
5541 rm -f conftest.$ac_objext conftest$ac_exeext
5542 if { (ac_try="$ac_link"
5543 case "(($ac_try" in
5544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5545   *) ac_try_echo=$ac_try;;
5546 esac
5547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5548   (eval "$ac_link") 2>conftest.er1
5549   ac_status=$?
5550   grep -v '^ *+' conftest.er1 >conftest.err
5551   rm -f conftest.er1
5552   cat conftest.err >&5
5553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554   (exit $ac_status); } && {
5555          test -z "$ac_c_werror_flag" ||
5556          test ! -s conftest.err
5557        } && test -s conftest$ac_exeext &&
5558        $as_test_x conftest$ac_exeext; then
5559   ac_cv_func_gethostbyname=yes
5560 else
5561   echo "$as_me: failed program was:" >&5
5562 sed 's/^/| /' conftest.$ac_ext >&5
5563
5564         ac_cv_func_gethostbyname=no
5565 fi
5566
5567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5568       conftest$ac_exeext conftest.$ac_ext
5569 fi
5570 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5571 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
5572
5573     if test $ac_cv_func_gethostbyname = no; then
5574       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5575 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
5576 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5577   echo $ECHO_N "(cached) $ECHO_C" >&6
5578 else
5579   ac_check_lib_save_LIBS=$LIBS
5580 LIBS="-lnsl  $LIBS"
5581 cat >conftest.$ac_ext <<_ACEOF
5582 /* confdefs.h.  */
5583 _ACEOF
5584 cat confdefs.h >>conftest.$ac_ext
5585 cat >>conftest.$ac_ext <<_ACEOF
5586 /* end confdefs.h.  */
5587
5588 /* Override any GCC internal prototype to avoid an error.
5589    Use char because int might match the return type of a GCC
5590    builtin and then its argument prototype would still apply.  */
5591 #ifdef __cplusplus
5592 extern "C"
5593 #endif
5594 char gethostbyname ();
5595 int
5596 main ()
5597 {
5598 return gethostbyname ();
5599   ;
5600   return 0;
5601 }
5602 _ACEOF
5603 rm -f conftest.$ac_objext conftest$ac_exeext
5604 if { (ac_try="$ac_link"
5605 case "(($ac_try" in
5606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5607   *) ac_try_echo=$ac_try;;
5608 esac
5609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5610   (eval "$ac_link") 2>conftest.er1
5611   ac_status=$?
5612   grep -v '^ *+' conftest.er1 >conftest.err
5613   rm -f conftest.er1
5614   cat conftest.err >&5
5615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616   (exit $ac_status); } && {
5617          test -z "$ac_c_werror_flag" ||
5618          test ! -s conftest.err
5619        } && test -s conftest$ac_exeext &&
5620        $as_test_x conftest$ac_exeext; then
5621   ac_cv_lib_nsl_gethostbyname=yes
5622 else
5623   echo "$as_me: failed program was:" >&5
5624 sed 's/^/| /' conftest.$ac_ext >&5
5625
5626         ac_cv_lib_nsl_gethostbyname=no
5627 fi
5628
5629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5630       conftest$ac_exeext conftest.$ac_ext
5631 LIBS=$ac_check_lib_save_LIBS
5632 fi
5633 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5634 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
5635 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5636   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5637 fi
5638
5639       if test $ac_cv_lib_nsl_gethostbyname = no; then
5640         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5641 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
5642 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5643   echo $ECHO_N "(cached) $ECHO_C" >&6
5644 else
5645   ac_check_lib_save_LIBS=$LIBS
5646 LIBS="-lbsd  $LIBS"
5647 cat >conftest.$ac_ext <<_ACEOF
5648 /* confdefs.h.  */
5649 _ACEOF
5650 cat confdefs.h >>conftest.$ac_ext
5651 cat >>conftest.$ac_ext <<_ACEOF
5652 /* end confdefs.h.  */
5653
5654 /* Override any GCC internal prototype to avoid an error.
5655    Use char because int might match the return type of a GCC
5656    builtin and then its argument prototype would still apply.  */
5657 #ifdef __cplusplus
5658 extern "C"
5659 #endif
5660 char gethostbyname ();
5661 int
5662 main ()
5663 {
5664 return gethostbyname ();
5665   ;
5666   return 0;
5667 }
5668 _ACEOF
5669 rm -f conftest.$ac_objext conftest$ac_exeext
5670 if { (ac_try="$ac_link"
5671 case "(($ac_try" in
5672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5673   *) ac_try_echo=$ac_try;;
5674 esac
5675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5676   (eval "$ac_link") 2>conftest.er1
5677   ac_status=$?
5678   grep -v '^ *+' conftest.er1 >conftest.err
5679   rm -f conftest.er1
5680   cat conftest.err >&5
5681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682   (exit $ac_status); } && {
5683          test -z "$ac_c_werror_flag" ||
5684          test ! -s conftest.err
5685        } && test -s conftest$ac_exeext &&
5686        $as_test_x conftest$ac_exeext; then
5687   ac_cv_lib_bsd_gethostbyname=yes
5688 else
5689   echo "$as_me: failed program was:" >&5
5690 sed 's/^/| /' conftest.$ac_ext >&5
5691
5692         ac_cv_lib_bsd_gethostbyname=no
5693 fi
5694
5695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5696       conftest$ac_exeext conftest.$ac_ext
5697 LIBS=$ac_check_lib_save_LIBS
5698 fi
5699 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5700 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
5701 if test $ac_cv_lib_bsd_gethostbyname = yes; then
5702   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5703 fi
5704
5705       fi
5706     fi
5707
5708     # lieder@skyler.mavd.honeywell.com says without -lsocket,
5709     # socket/setsockopt and other routines are undefined under SCO ODT
5710     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
5711     # on later versions), says Simon Leinen: it contains gethostby*
5712     # variants that don't use the name server (or something).  -lsocket
5713     # must be given before -lnsl if both are needed.  We assume that
5714     # if connect needs -lnsl, so does gethostbyname.
5715     { echo "$as_me:$LINENO: checking for connect" >&5
5716 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
5717 if test "${ac_cv_func_connect+set}" = set; then
5718   echo $ECHO_N "(cached) $ECHO_C" >&6
5719 else
5720   cat >conftest.$ac_ext <<_ACEOF
5721 /* confdefs.h.  */
5722 _ACEOF
5723 cat confdefs.h >>conftest.$ac_ext
5724 cat >>conftest.$ac_ext <<_ACEOF
5725 /* end confdefs.h.  */
5726 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
5727    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5728 #define connect innocuous_connect
5729
5730 /* System header to define __stub macros and hopefully few prototypes,
5731     which can conflict with char connect (); below.
5732     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5733     <limits.h> exists even on freestanding compilers.  */
5734
5735 #ifdef __STDC__
5736 # include <limits.h>
5737 #else
5738 # include <assert.h>
5739 #endif
5740
5741 #undef connect
5742
5743 /* Override any GCC internal prototype to avoid an error.
5744    Use char because int might match the return type of a GCC
5745    builtin and then its argument prototype would still apply.  */
5746 #ifdef __cplusplus
5747 extern "C"
5748 #endif
5749 char connect ();
5750 /* The GNU C library defines this for functions which it implements
5751     to always fail with ENOSYS.  Some functions are actually named
5752     something starting with __ and the normal name is an alias.  */
5753 #if defined __stub_connect || defined __stub___connect
5754 choke me
5755 #endif
5756
5757 int
5758 main ()
5759 {
5760 return connect ();
5761   ;
5762   return 0;
5763 }
5764 _ACEOF
5765 rm -f conftest.$ac_objext conftest$ac_exeext
5766 if { (ac_try="$ac_link"
5767 case "(($ac_try" in
5768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5769   *) ac_try_echo=$ac_try;;
5770 esac
5771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5772   (eval "$ac_link") 2>conftest.er1
5773   ac_status=$?
5774   grep -v '^ *+' conftest.er1 >conftest.err
5775   rm -f conftest.er1
5776   cat conftest.err >&5
5777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778   (exit $ac_status); } && {
5779          test -z "$ac_c_werror_flag" ||
5780          test ! -s conftest.err
5781        } && test -s conftest$ac_exeext &&
5782        $as_test_x conftest$ac_exeext; then
5783   ac_cv_func_connect=yes
5784 else
5785   echo "$as_me: failed program was:" >&5
5786 sed 's/^/| /' conftest.$ac_ext >&5
5787
5788         ac_cv_func_connect=no
5789 fi
5790
5791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5792       conftest$ac_exeext conftest.$ac_ext
5793 fi
5794 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5795 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
5796
5797     if test $ac_cv_func_connect = no; then
5798       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5799 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
5800 if test "${ac_cv_lib_socket_connect+set}" = set; then
5801   echo $ECHO_N "(cached) $ECHO_C" >&6
5802 else
5803   ac_check_lib_save_LIBS=$LIBS
5804 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5805 cat >conftest.$ac_ext <<_ACEOF
5806 /* confdefs.h.  */
5807 _ACEOF
5808 cat confdefs.h >>conftest.$ac_ext
5809 cat >>conftest.$ac_ext <<_ACEOF
5810 /* end confdefs.h.  */
5811
5812 /* Override any GCC internal prototype to avoid an error.
5813    Use char because int might match the return type of a GCC
5814    builtin and then its argument prototype would still apply.  */
5815 #ifdef __cplusplus
5816 extern "C"
5817 #endif
5818 char connect ();
5819 int
5820 main ()
5821 {
5822 return connect ();
5823   ;
5824   return 0;
5825 }
5826 _ACEOF
5827 rm -f conftest.$ac_objext conftest$ac_exeext
5828 if { (ac_try="$ac_link"
5829 case "(($ac_try" in
5830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5831   *) ac_try_echo=$ac_try;;
5832 esac
5833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5834   (eval "$ac_link") 2>conftest.er1
5835   ac_status=$?
5836   grep -v '^ *+' conftest.er1 >conftest.err
5837   rm -f conftest.er1
5838   cat conftest.err >&5
5839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840   (exit $ac_status); } && {
5841          test -z "$ac_c_werror_flag" ||
5842          test ! -s conftest.err
5843        } && test -s conftest$ac_exeext &&
5844        $as_test_x conftest$ac_exeext; then
5845   ac_cv_lib_socket_connect=yes
5846 else
5847   echo "$as_me: failed program was:" >&5
5848 sed 's/^/| /' conftest.$ac_ext >&5
5849
5850         ac_cv_lib_socket_connect=no
5851 fi
5852
5853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5854       conftest$ac_exeext conftest.$ac_ext
5855 LIBS=$ac_check_lib_save_LIBS
5856 fi
5857 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5858 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
5859 if test $ac_cv_lib_socket_connect = yes; then
5860   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5861 fi
5862
5863     fi
5864
5865     # Guillermo Gomez says -lposix is necessary on A/UX.
5866     { echo "$as_me:$LINENO: checking for remove" >&5
5867 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
5868 if test "${ac_cv_func_remove+set}" = set; then
5869   echo $ECHO_N "(cached) $ECHO_C" >&6
5870 else
5871   cat >conftest.$ac_ext <<_ACEOF
5872 /* confdefs.h.  */
5873 _ACEOF
5874 cat confdefs.h >>conftest.$ac_ext
5875 cat >>conftest.$ac_ext <<_ACEOF
5876 /* end confdefs.h.  */
5877 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
5878    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5879 #define remove innocuous_remove
5880
5881 /* System header to define __stub macros and hopefully few prototypes,
5882     which can conflict with char remove (); below.
5883     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5884     <limits.h> exists even on freestanding compilers.  */
5885
5886 #ifdef __STDC__
5887 # include <limits.h>
5888 #else
5889 # include <assert.h>
5890 #endif
5891
5892 #undef remove
5893
5894 /* Override any GCC internal prototype to avoid an error.
5895    Use char because int might match the return type of a GCC
5896    builtin and then its argument prototype would still apply.  */
5897 #ifdef __cplusplus
5898 extern "C"
5899 #endif
5900 char remove ();
5901 /* The GNU C library defines this for functions which it implements
5902     to always fail with ENOSYS.  Some functions are actually named
5903     something starting with __ and the normal name is an alias.  */
5904 #if defined __stub_remove || defined __stub___remove
5905 choke me
5906 #endif
5907
5908 int
5909 main ()
5910 {
5911 return remove ();
5912   ;
5913   return 0;
5914 }
5915 _ACEOF
5916 rm -f conftest.$ac_objext conftest$ac_exeext
5917 if { (ac_try="$ac_link"
5918 case "(($ac_try" in
5919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5920   *) ac_try_echo=$ac_try;;
5921 esac
5922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5923   (eval "$ac_link") 2>conftest.er1
5924   ac_status=$?
5925   grep -v '^ *+' conftest.er1 >conftest.err
5926   rm -f conftest.er1
5927   cat conftest.err >&5
5928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929   (exit $ac_status); } && {
5930          test -z "$ac_c_werror_flag" ||
5931          test ! -s conftest.err
5932        } && test -s conftest$ac_exeext &&
5933        $as_test_x conftest$ac_exeext; then
5934   ac_cv_func_remove=yes
5935 else
5936   echo "$as_me: failed program was:" >&5
5937 sed 's/^/| /' conftest.$ac_ext >&5
5938
5939         ac_cv_func_remove=no
5940 fi
5941
5942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5943       conftest$ac_exeext conftest.$ac_ext
5944 fi
5945 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5946 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
5947
5948     if test $ac_cv_func_remove = no; then
5949       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5950 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
5951 if test "${ac_cv_lib_posix_remove+set}" = set; then
5952   echo $ECHO_N "(cached) $ECHO_C" >&6
5953 else
5954   ac_check_lib_save_LIBS=$LIBS
5955 LIBS="-lposix  $LIBS"
5956 cat >conftest.$ac_ext <<_ACEOF
5957 /* confdefs.h.  */
5958 _ACEOF
5959 cat confdefs.h >>conftest.$ac_ext
5960 cat >>conftest.$ac_ext <<_ACEOF
5961 /* end confdefs.h.  */
5962
5963 /* Override any GCC internal prototype to avoid an error.
5964    Use char because int might match the return type of a GCC
5965    builtin and then its argument prototype would still apply.  */
5966 #ifdef __cplusplus
5967 extern "C"
5968 #endif
5969 char remove ();
5970 int
5971 main ()
5972 {
5973 return remove ();
5974   ;
5975   return 0;
5976 }
5977 _ACEOF
5978 rm -f conftest.$ac_objext conftest$ac_exeext
5979 if { (ac_try="$ac_link"
5980 case "(($ac_try" in
5981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5982   *) ac_try_echo=$ac_try;;
5983 esac
5984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5985   (eval "$ac_link") 2>conftest.er1
5986   ac_status=$?
5987   grep -v '^ *+' conftest.er1 >conftest.err
5988   rm -f conftest.er1
5989   cat conftest.err >&5
5990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991   (exit $ac_status); } && {
5992          test -z "$ac_c_werror_flag" ||
5993          test ! -s conftest.err
5994        } && test -s conftest$ac_exeext &&
5995        $as_test_x conftest$ac_exeext; then
5996   ac_cv_lib_posix_remove=yes
5997 else
5998   echo "$as_me: failed program was:" >&5
5999 sed 's/^/| /' conftest.$ac_ext >&5
6000
6001         ac_cv_lib_posix_remove=no
6002 fi
6003
6004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6005       conftest$ac_exeext conftest.$ac_ext
6006 LIBS=$ac_check_lib_save_LIBS
6007 fi
6008 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6009 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
6010 if test $ac_cv_lib_posix_remove = yes; then
6011   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6012 fi
6013
6014     fi
6015
6016     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6017     { echo "$as_me:$LINENO: checking for shmat" >&5
6018 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
6019 if test "${ac_cv_func_shmat+set}" = set; then
6020   echo $ECHO_N "(cached) $ECHO_C" >&6
6021 else
6022   cat >conftest.$ac_ext <<_ACEOF
6023 /* confdefs.h.  */
6024 _ACEOF
6025 cat confdefs.h >>conftest.$ac_ext
6026 cat >>conftest.$ac_ext <<_ACEOF
6027 /* end confdefs.h.  */
6028 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6029    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6030 #define shmat innocuous_shmat
6031
6032 /* System header to define __stub macros and hopefully few prototypes,
6033     which can conflict with char shmat (); below.
6034     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6035     <limits.h> exists even on freestanding compilers.  */
6036
6037 #ifdef __STDC__
6038 # include <limits.h>
6039 #else
6040 # include <assert.h>
6041 #endif
6042
6043 #undef shmat
6044
6045 /* Override any GCC internal prototype to avoid an error.
6046    Use char because int might match the return type of a GCC
6047    builtin and then its argument prototype would still apply.  */
6048 #ifdef __cplusplus
6049 extern "C"
6050 #endif
6051 char shmat ();
6052 /* The GNU C library defines this for functions which it implements
6053     to always fail with ENOSYS.  Some functions are actually named
6054     something starting with __ and the normal name is an alias.  */
6055 #if defined __stub_shmat || defined __stub___shmat
6056 choke me
6057 #endif
6058
6059 int
6060 main ()
6061 {
6062 return shmat ();
6063   ;
6064   return 0;
6065 }
6066 _ACEOF
6067 rm -f conftest.$ac_objext conftest$ac_exeext
6068 if { (ac_try="$ac_link"
6069 case "(($ac_try" in
6070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6071   *) ac_try_echo=$ac_try;;
6072 esac
6073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6074   (eval "$ac_link") 2>conftest.er1
6075   ac_status=$?
6076   grep -v '^ *+' conftest.er1 >conftest.err
6077   rm -f conftest.er1
6078   cat conftest.err >&5
6079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080   (exit $ac_status); } && {
6081          test -z "$ac_c_werror_flag" ||
6082          test ! -s conftest.err
6083        } && test -s conftest$ac_exeext &&
6084        $as_test_x conftest$ac_exeext; then
6085   ac_cv_func_shmat=yes
6086 else
6087   echo "$as_me: failed program was:" >&5
6088 sed 's/^/| /' conftest.$ac_ext >&5
6089
6090         ac_cv_func_shmat=no
6091 fi
6092
6093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6094       conftest$ac_exeext conftest.$ac_ext
6095 fi
6096 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6097 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
6098
6099     if test $ac_cv_func_shmat = no; then
6100       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6101 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
6102 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6103   echo $ECHO_N "(cached) $ECHO_C" >&6
6104 else
6105   ac_check_lib_save_LIBS=$LIBS
6106 LIBS="-lipc  $LIBS"
6107 cat >conftest.$ac_ext <<_ACEOF
6108 /* confdefs.h.  */
6109 _ACEOF
6110 cat confdefs.h >>conftest.$ac_ext
6111 cat >>conftest.$ac_ext <<_ACEOF
6112 /* end confdefs.h.  */
6113
6114 /* Override any GCC internal prototype to avoid an error.
6115    Use char because int might match the return type of a GCC
6116    builtin and then its argument prototype would still apply.  */
6117 #ifdef __cplusplus
6118 extern "C"
6119 #endif
6120 char shmat ();
6121 int
6122 main ()
6123 {
6124 return shmat ();
6125   ;
6126   return 0;
6127 }
6128 _ACEOF
6129 rm -f conftest.$ac_objext conftest$ac_exeext
6130 if { (ac_try="$ac_link"
6131 case "(($ac_try" in
6132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6133   *) ac_try_echo=$ac_try;;
6134 esac
6135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6136   (eval "$ac_link") 2>conftest.er1
6137   ac_status=$?
6138   grep -v '^ *+' conftest.er1 >conftest.err
6139   rm -f conftest.er1
6140   cat conftest.err >&5
6141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142   (exit $ac_status); } && {
6143          test -z "$ac_c_werror_flag" ||
6144          test ! -s conftest.err
6145        } && test -s conftest$ac_exeext &&
6146        $as_test_x conftest$ac_exeext; then
6147   ac_cv_lib_ipc_shmat=yes
6148 else
6149   echo "$as_me: failed program was:" >&5
6150 sed 's/^/| /' conftest.$ac_ext >&5
6151
6152         ac_cv_lib_ipc_shmat=no
6153 fi
6154
6155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6156       conftest$ac_exeext conftest.$ac_ext
6157 LIBS=$ac_check_lib_save_LIBS
6158 fi
6159 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6160 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
6161 if test $ac_cv_lib_ipc_shmat = yes; then
6162   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6163 fi
6164
6165     fi
6166   fi
6167
6168   # Check for libraries that X11R6 Xt/Xaw programs need.
6169   ac_save_LDFLAGS=$LDFLAGS
6170   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6171   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6172   # check for ICE first), but we must link in the order -lSM -lICE or
6173   # we get undefined symbols.  So assume we have SM if we have ICE.
6174   # These have to be linked with before -lX11, unlike the other
6175   # libraries we check for below, so use a different variable.
6176   # John Interrante, Karl Berry
6177   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6178 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
6179 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6180   echo $ECHO_N "(cached) $ECHO_C" >&6
6181 else
6182   ac_check_lib_save_LIBS=$LIBS
6183 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6184 cat >conftest.$ac_ext <<_ACEOF
6185 /* confdefs.h.  */
6186 _ACEOF
6187 cat confdefs.h >>conftest.$ac_ext
6188 cat >>conftest.$ac_ext <<_ACEOF
6189 /* end confdefs.h.  */
6190
6191 /* Override any GCC internal prototype to avoid an error.
6192    Use char because int might match the return type of a GCC
6193    builtin and then its argument prototype would still apply.  */
6194 #ifdef __cplusplus
6195 extern "C"
6196 #endif
6197 char IceConnectionNumber ();
6198 int
6199 main ()
6200 {
6201 return IceConnectionNumber ();
6202   ;
6203   return 0;
6204 }
6205 _ACEOF
6206 rm -f conftest.$ac_objext conftest$ac_exeext
6207 if { (ac_try="$ac_link"
6208 case "(($ac_try" in
6209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6210   *) ac_try_echo=$ac_try;;
6211 esac
6212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6213   (eval "$ac_link") 2>conftest.er1
6214   ac_status=$?
6215   grep -v '^ *+' conftest.er1 >conftest.err
6216   rm -f conftest.er1
6217   cat conftest.err >&5
6218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219   (exit $ac_status); } && {
6220          test -z "$ac_c_werror_flag" ||
6221          test ! -s conftest.err
6222        } && test -s conftest$ac_exeext &&
6223        $as_test_x conftest$ac_exeext; then
6224   ac_cv_lib_ICE_IceConnectionNumber=yes
6225 else
6226   echo "$as_me: failed program was:" >&5
6227 sed 's/^/| /' conftest.$ac_ext >&5
6228
6229         ac_cv_lib_ICE_IceConnectionNumber=no
6230 fi
6231
6232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6233       conftest$ac_exeext conftest.$ac_ext
6234 LIBS=$ac_check_lib_save_LIBS
6235 fi
6236 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6237 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
6238 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6239   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6240 fi
6241
6242   LDFLAGS=$ac_save_LDFLAGS
6243
6244 fi
6245
6246
6247 if test "$ac_cv_func_gethostbyname" = no; then
6248   if test "$ac_cv_lib_nsl_gethostbyname" = no; then
6249     { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6250 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
6251 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6252   echo $ECHO_N "(cached) $ECHO_C" >&6
6253 else
6254   ac_check_lib_save_LIBS=$LIBS
6255 LIBS="-lbsd  $LIBS"
6256 cat >conftest.$ac_ext <<_ACEOF
6257 /* confdefs.h.  */
6258 _ACEOF
6259 cat confdefs.h >>conftest.$ac_ext
6260 cat >>conftest.$ac_ext <<_ACEOF
6261 /* end confdefs.h.  */
6262
6263 /* Override any GCC internal prototype to avoid an error.
6264    Use char because int might match the return type of a GCC
6265    builtin and then its argument prototype would still apply.  */
6266 #ifdef __cplusplus
6267 extern "C"
6268 #endif
6269 char gethostbyname ();
6270 int
6271 main ()
6272 {
6273 return gethostbyname ();
6274   ;
6275   return 0;
6276 }
6277 _ACEOF
6278 rm -f conftest.$ac_objext conftest$ac_exeext
6279 if { (ac_try="$ac_link"
6280 case "(($ac_try" in
6281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6282   *) ac_try_echo=$ac_try;;
6283 esac
6284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6285   (eval "$ac_link") 2>conftest.er1
6286   ac_status=$?
6287   grep -v '^ *+' conftest.er1 >conftest.err
6288   rm -f conftest.er1
6289   cat conftest.err >&5
6290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291   (exit $ac_status); } && {
6292          test -z "$ac_c_werror_flag" ||
6293          test ! -s conftest.err
6294        } && test -s conftest$ac_exeext &&
6295        $as_test_x conftest$ac_exeext; then
6296   ac_cv_lib_bsd_gethostbyname=yes
6297 else
6298   echo "$as_me: failed program was:" >&5
6299 sed 's/^/| /' conftest.$ac_ext >&5
6300
6301         ac_cv_lib_bsd_gethostbyname=no
6302 fi
6303
6304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6305       conftest$ac_exeext conftest.$ac_ext
6306 LIBS=$ac_check_lib_save_LIBS
6307 fi
6308 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6309 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
6310 if test $ac_cv_lib_bsd_gethostbyname = yes; then
6311   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6312 fi
6313
6314   fi
6315 fi
6316
6317 if test "$no_x" != yes; then
6318   CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6319   LIBRARIES_FOR_X="$X_LIBS -lX11 $X_EXTRA_LIBS"
6320   GNUPLOT_X11='gnuplot_x11${EXEEXT}'
6321
6322 cat >>confdefs.h <<\_ACEOF
6323 #define X11 1
6324 _ACEOF
6325
6326 else
6327   GNUPLOT_X11=
6328 fi
6329
6330
6331
6332 { echo "$as_me:$LINENO: checking for MS-DOS/djgpp/libGRX" >&5
6333 echo $ECHO_N "checking for MS-DOS/djgpp/libGRX... $ECHO_C" >&6; }
6334 cat >conftest.$ac_ext <<_ACEOF
6335 /* confdefs.h.  */
6336 _ACEOF
6337 cat confdefs.h >>conftest.$ac_ext
6338 cat >>conftest.$ac_ext <<_ACEOF
6339 /* end confdefs.h.  */
6340 #if __DJGPP__ && __DJGPP__ == 2
6341   yes
6342 #endif
6343
6344 _ACEOF
6345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6346   $EGREP "yes" >/dev/null 2>&1; then
6347   { echo "$as_me:$LINENO: result: yes" >&5
6348 echo "${ECHO_T}yes" >&6; }
6349   LIBS="-lpc $LIBS"
6350
6351 cat >>confdefs.h <<\_ACEOF
6352 #define MSDOS 1
6353 _ACEOF
6354
6355
6356 cat >>confdefs.h <<\_ACEOF
6357 #define DOS32 1
6358 _ACEOF
6359
6360   with_linux_vga=no
6361   { echo "$as_me:$LINENO: checking for GrLine in -lgrx20" >&5
6362 echo $ECHO_N "checking for GrLine in -lgrx20... $ECHO_C" >&6; }
6363 if test "${ac_cv_lib_grx20_GrLine+set}" = set; then
6364   echo $ECHO_N "(cached) $ECHO_C" >&6
6365 else
6366   ac_check_lib_save_LIBS=$LIBS
6367 LIBS="-lgrx20  $LIBS"
6368 cat >conftest.$ac_ext <<_ACEOF
6369 /* confdefs.h.  */
6370 _ACEOF
6371 cat confdefs.h >>conftest.$ac_ext
6372 cat >>conftest.$ac_ext <<_ACEOF
6373 /* end confdefs.h.  */
6374
6375 /* Override any GCC internal prototype to avoid an error.
6376    Use char because int might match the return type of a GCC
6377    builtin and then its argument prototype would still apply.  */
6378 #ifdef __cplusplus
6379 extern "C"
6380 #endif
6381 char GrLine ();
6382 int
6383 main ()
6384 {
6385 return GrLine ();
6386   ;
6387   return 0;
6388 }
6389 _ACEOF
6390 rm -f conftest.$ac_objext conftest$ac_exeext
6391 if { (ac_try="$ac_link"
6392 case "(($ac_try" in
6393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6394   *) ac_try_echo=$ac_try;;
6395 esac
6396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6397   (eval "$ac_link") 2>conftest.er1
6398   ac_status=$?
6399   grep -v '^ *+' conftest.er1 >conftest.err
6400   rm -f conftest.er1
6401   cat conftest.err >&5
6402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403   (exit $ac_status); } && {
6404          test -z "$ac_c_werror_flag" ||
6405          test ! -s conftest.err
6406        } && test -s conftest$ac_exeext &&
6407        $as_test_x conftest$ac_exeext; then
6408   ac_cv_lib_grx20_GrLine=yes
6409 else
6410   echo "$as_me: failed program was:" >&5
6411 sed 's/^/| /' conftest.$ac_ext >&5
6412
6413         ac_cv_lib_grx20_GrLine=no
6414 fi
6415
6416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6417       conftest$ac_exeext conftest.$ac_ext
6418 LIBS=$ac_check_lib_save_LIBS
6419 fi
6420 { echo "$as_me:$LINENO: result: $ac_cv_lib_grx20_GrLine" >&5
6421 echo "${ECHO_T}$ac_cv_lib_grx20_GrLine" >&6; }
6422 if test $ac_cv_lib_grx20_GrLine = yes; then
6423   LIBS="-lgrx20 $LIBS"
6424     CFLAGS="$CFLAGS -fno-inline-functions"
6425
6426 cat >>confdefs.h <<\_ACEOF
6427 #define DJSVGA 1
6428 _ACEOF
6429
6430     { echo "$as_me:$LINENO: checking for GrCustomLine in -lgrx20" >&5
6431 echo $ECHO_N "checking for GrCustomLine in -lgrx20... $ECHO_C" >&6; }
6432 if test "${ac_cv_lib_grx20_GrCustomLine+set}" = set; then
6433   echo $ECHO_N "(cached) $ECHO_C" >&6
6434 else
6435   ac_check_lib_save_LIBS=$LIBS
6436 LIBS="-lgrx20  $LIBS"
6437 cat >conftest.$ac_ext <<_ACEOF
6438 /* confdefs.h.  */
6439 _ACEOF
6440 cat confdefs.h >>conftest.$ac_ext
6441 cat >>conftest.$ac_ext <<_ACEOF
6442 /* end confdefs.h.  */
6443
6444 /* Override any GCC internal prototype to avoid an error.
6445    Use char because int might match the return type of a GCC
6446    builtin and then its argument prototype would still apply.  */
6447 #ifdef __cplusplus
6448 extern "C"
6449 #endif
6450 char GrCustomLine ();
6451 int
6452 main ()
6453 {
6454 return GrCustomLine ();
6455   ;
6456   return 0;
6457 }
6458 _ACEOF
6459 rm -f conftest.$ac_objext conftest$ac_exeext
6460 if { (ac_try="$ac_link"
6461 case "(($ac_try" in
6462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6463   *) ac_try_echo=$ac_try;;
6464 esac
6465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6466   (eval "$ac_link") 2>conftest.er1
6467   ac_status=$?
6468   grep -v '^ *+' conftest.er1 >conftest.err
6469   rm -f conftest.er1
6470   cat conftest.err >&5
6471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472   (exit $ac_status); } && {
6473          test -z "$ac_c_werror_flag" ||
6474          test ! -s conftest.err
6475        } && test -s conftest$ac_exeext &&
6476        $as_test_x conftest$ac_exeext; then
6477   ac_cv_lib_grx20_GrCustomLine=yes
6478 else
6479   echo "$as_me: failed program was:" >&5
6480 sed 's/^/| /' conftest.$ac_ext >&5
6481
6482         ac_cv_lib_grx20_GrCustomLine=no
6483 fi
6484
6485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6486       conftest$ac_exeext conftest.$ac_ext
6487 LIBS=$ac_check_lib_save_LIBS
6488 fi
6489 { echo "$as_me:$LINENO: result: $ac_cv_lib_grx20_GrCustomLine" >&5
6490 echo "${ECHO_T}$ac_cv_lib_grx20_GrCustomLine" >&6; }
6491 if test $ac_cv_lib_grx20_GrCustomLine = yes; then
6492
6493 cat >>confdefs.h <<\_ACEOF
6494 #define GRX21 1
6495 _ACEOF
6496
6497 fi
6498
6499 fi
6500
6501   is_msdos=yes
6502 else
6503   { echo "$as_me:$LINENO: result: no" >&5
6504 echo "${ECHO_T}no" >&6; }
6505   is_msdos=no
6506
6507 fi
6508 rm -f conftest*
6509
6510 { echo "$as_me:$LINENO: checking for NeXT" >&5
6511 echo $ECHO_N "checking for NeXT... $ECHO_C" >&6; }
6512 cat >conftest.$ac_ext <<_ACEOF
6513 /* confdefs.h.  */
6514 _ACEOF
6515 cat confdefs.h >>conftest.$ac_ext
6516 cat >>conftest.$ac_ext <<_ACEOF
6517 /* end confdefs.h.  */
6518 #if __NeXT__
6519   yes
6520 #endif
6521
6522 _ACEOF
6523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6524   $EGREP "yes" >/dev/null 2>&1; then
6525   { echo "$as_me:$LINENO: result: yes" >&5
6526 echo "${ECHO_T}yes" >&6; }
6527    LIBS="$LIBS -lsys_s -lNeXT_s"
6528    CFLAGS="$CFLAGS -ObjC"
6529    is_next=yes
6530 else
6531   { echo "$as_me:$LINENO: result: no" >&5
6532 echo "${ECHO_T}no" >&6; }
6533    is_next=no
6534 fi
6535 rm -f conftest*
6536
6537
6538 { echo "$as_me:$LINENO: checking for Apple MacOS X" >&5
6539 echo $ECHO_N "checking for Apple MacOS X... $ECHO_C" >&6; }
6540 cat >conftest.$ac_ext <<_ACEOF
6541 /* confdefs.h.  */
6542 _ACEOF
6543 cat confdefs.h >>conftest.$ac_ext
6544 cat >>conftest.$ac_ext <<_ACEOF
6545 /* end confdefs.h.  */
6546 #if defined(__APPLE__) && defined(__MACH__)
6547   yes
6548 #endif
6549
6550 _ACEOF
6551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6552   $EGREP "yes" >/dev/null 2>&1; then
6553    { echo "$as_me:$LINENO: result: yes" >&5
6554 echo "${ECHO_T}yes" >&6; }
6555      { echo "$as_me:$LINENO: checking for aqtInit in -laquaterm" >&5
6556 echo $ECHO_N "checking for aqtInit in -laquaterm... $ECHO_C" >&6; }
6557 if test "${ac_cv_lib_aquaterm_aqtInit+set}" = set; then
6558   echo $ECHO_N "(cached) $ECHO_C" >&6
6559 else
6560   ac_check_lib_save_LIBS=$LIBS
6561 LIBS="-laquaterm -lobjc $LIBS"
6562 cat >conftest.$ac_ext <<_ACEOF
6563 /* confdefs.h.  */
6564 _ACEOF
6565 cat confdefs.h >>conftest.$ac_ext
6566 cat >>conftest.$ac_ext <<_ACEOF
6567 /* end confdefs.h.  */
6568
6569 /* Override any GCC internal prototype to avoid an error.
6570    Use char because int might match the return type of a GCC
6571    builtin and then its argument prototype would still apply.  */
6572 #ifdef __cplusplus
6573 extern "C"
6574 #endif
6575 char aqtInit ();
6576 int
6577 main ()
6578 {
6579 return aqtInit ();
6580   ;
6581   return 0;
6582 }
6583 _ACEOF
6584 rm -f conftest.$ac_objext conftest$ac_exeext
6585 if { (ac_try="$ac_link"
6586 case "(($ac_try" in
6587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6588   *) ac_try_echo=$ac_try;;
6589 esac
6590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6591   (eval "$ac_link") 2>conftest.er1
6592   ac_status=$?
6593   grep -v '^ *+' conftest.er1 >conftest.err
6594   rm -f conftest.er1
6595   cat conftest.err >&5
6596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597   (exit $ac_status); } && {
6598          test -z "$ac_c_werror_flag" ||
6599          test ! -s conftest.err
6600        } && test -s conftest$ac_exeext &&
6601        $as_test_x conftest$ac_exeext; then
6602   ac_cv_lib_aquaterm_aqtInit=yes
6603 else
6604   echo "$as_me: failed program was:" >&5
6605 sed 's/^/| /' conftest.$ac_ext >&5
6606
6607         ac_cv_lib_aquaterm_aqtInit=no
6608 fi
6609
6610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6611       conftest$ac_exeext conftest.$ac_ext
6612 LIBS=$ac_check_lib_save_LIBS
6613 fi
6614 { echo "$as_me:$LINENO: result: $ac_cv_lib_aquaterm_aqtInit" >&5
6615 echo "${ECHO_T}$ac_cv_lib_aquaterm_aqtInit" >&6; }
6616 if test $ac_cv_lib_aquaterm_aqtInit = yes; then
6617    LIBS="-laquaterm $LIBS -framework Foundation"
6618        CFLAGS="$CFLAGS -ObjC"
6619
6620 cat >>confdefs.h <<\_ACEOF
6621 #define HAVE_LIBAQUATERM 1
6622 _ACEOF
6623
6624
6625 fi
6626
6627      is_apple=yes
6628
6629 else
6630   { echo "$as_me:$LINENO: result: no" >&5
6631 echo "${ECHO_T}no" >&6; }
6632    is_apple=no
6633 fi
6634 rm -f conftest*
6635
6636
6637 { echo "$as_me:$LINENO: checking for BeOS" >&5
6638 echo $ECHO_N "checking for BeOS... $ECHO_C" >&6; }
6639 cat >conftest.$ac_ext <<_ACEOF
6640 /* confdefs.h.  */
6641 _ACEOF
6642 cat confdefs.h >>conftest.$ac_ext
6643 cat >>conftest.$ac_ext <<_ACEOF
6644 /* end confdefs.h.  */
6645 #if __BEOS__
6646   yes
6647 #endif
6648
6649 _ACEOF
6650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6651   $EGREP "yes" >/dev/null 2>&1; then
6652   { echo "$as_me:$LINENO: result: yes" >&5
6653 echo "${ECHO_T}yes" >&6; }
6654    build_src_beos_subdir=yes
6655 else
6656   build_src_beos_subdir=no
6657    { echo "$as_me:$LINENO: result: no" >&5
6658 echo "${ECHO_T}no" >&6; }
6659 fi
6660 rm -f conftest*
6661
6662
6663 { echo "$as_me:$LINENO: checking for Alpha/AXP CPU" >&5
6664 echo $ECHO_N "checking for Alpha/AXP CPU... $ECHO_C" >&6; }
6665 cat >conftest.$ac_ext <<_ACEOF
6666 /* confdefs.h.  */
6667 _ACEOF
6668 cat confdefs.h >>conftest.$ac_ext
6669 cat >>conftest.$ac_ext <<_ACEOF
6670 /* end confdefs.h.  */
6671 #ifdef __alpha
6672   yes
6673 #endif
6674
6675 _ACEOF
6676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6677   $EGREP "yes" >/dev/null 2>&1; then
6678   { echo "$as_me:$LINENO: result: yes" >&5
6679 echo "${ECHO_T}yes" >&6; }
6680   if test "$GCC" = "yes" ; then
6681      CFLAGS="-mieee $CFLAGS"
6682   else
6683      CFLAGS="-ieee $CFLAGS"
6684   fi
6685 else
6686   { echo "$as_me:$LINENO: result: no" >&5
6687 echo "${ECHO_T}no" >&6; }
6688
6689 fi
6690 rm -f conftest*
6691
6692
6693
6694 if test x$build_beos_subdir = xyes; then
6695   BUILD_SRC_BEOS_SUBDIR_TRUE=
6696   BUILD_SRC_BEOS_SUBDIR_FALSE='#'
6697 else
6698   BUILD_SRC_BEOS_SUBDIR_TRUE='#'
6699   BUILD_SRC_BEOS_SUBDIR_FALSE=
6700 fi
6701
6702
6703 { echo "$as_me:$LINENO: checking for sin" >&5
6704 echo $ECHO_N "checking for sin... $ECHO_C" >&6; }
6705 if test "${ac_cv_func_sin+set}" = set; then
6706   echo $ECHO_N "(cached) $ECHO_C" >&6
6707 else
6708   cat >conftest.$ac_ext <<_ACEOF
6709 /* confdefs.h.  */
6710 _ACEOF
6711 cat confdefs.h >>conftest.$ac_ext
6712 cat >>conftest.$ac_ext <<_ACEOF
6713 /* end confdefs.h.  */
6714 /* Define sin to an innocuous variant, in case <limits.h> declares sin.
6715    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6716 #define sin innocuous_sin
6717
6718 /* System header to define __stub macros and hopefully few prototypes,
6719     which can conflict with char sin (); below.
6720     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6721     <limits.h> exists even on freestanding compilers.  */
6722
6723 #ifdef __STDC__
6724 # include <limits.h>
6725 #else
6726 # include <assert.h>
6727 #endif
6728
6729 #undef sin
6730
6731 /* Override any GCC internal prototype to avoid an error.
6732    Use char because int might match the return type of a GCC
6733    builtin and then its argument prototype would still apply.  */
6734 #ifdef __cplusplus
6735 extern "C"
6736 #endif
6737 char sin ();
6738 /* The GNU C library defines this for functions which it implements
6739     to always fail with ENOSYS.  Some functions are actually named
6740     something starting with __ and the normal name is an alias.  */
6741 #if defined __stub_sin || defined __stub___sin
6742 choke me
6743 #endif
6744
6745 int
6746 main ()
6747 {
6748 return sin ();
6749   ;
6750   return 0;
6751 }
6752 _ACEOF
6753 rm -f conftest.$ac_objext conftest$ac_exeext
6754 if { (ac_try="$ac_link"
6755 case "(($ac_try" in
6756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6757   *) ac_try_echo=$ac_try;;
6758 esac
6759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6760   (eval "$ac_link") 2>conftest.er1
6761   ac_status=$?
6762   grep -v '^ *+' conftest.er1 >conftest.err
6763   rm -f conftest.er1
6764   cat conftest.err >&5
6765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766   (exit $ac_status); } && {
6767          test -z "$ac_c_werror_flag" ||
6768          test ! -s conftest.err
6769        } && test -s conftest$ac_exeext &&
6770        $as_test_x conftest$ac_exeext; then
6771   ac_cv_func_sin=yes
6772 else
6773   echo "$as_me: failed program was:" >&5
6774 sed 's/^/| /' conftest.$ac_ext >&5
6775
6776         ac_cv_func_sin=no
6777 fi
6778
6779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6780       conftest$ac_exeext conftest.$ac_ext
6781 fi
6782 { echo "$as_me:$LINENO: result: $ac_cv_func_sin" >&5
6783 echo "${ECHO_T}$ac_cv_func_sin" >&6; }
6784 if test $ac_cv_func_sin = yes; then
6785   :
6786 else
6787
6788 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
6789 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
6790 if test "${ac_cv_lib_m_sin+set}" = set; then
6791   echo $ECHO_N "(cached) $ECHO_C" >&6
6792 else
6793   ac_check_lib_save_LIBS=$LIBS
6794 LIBS="-lm  $LIBS"
6795 cat >conftest.$ac_ext <<_ACEOF
6796 /* confdefs.h.  */
6797 _ACEOF
6798 cat confdefs.h >>conftest.$ac_ext
6799 cat >>conftest.$ac_ext <<_ACEOF
6800 /* end confdefs.h.  */
6801
6802 /* Override any GCC internal prototype to avoid an error.
6803    Use char because int might match the return type of a GCC
6804    builtin and then its argument prototype would still apply.  */
6805 #ifdef __cplusplus
6806 extern "C"
6807 #endif
6808 char sin ();
6809 int
6810 main ()
6811 {
6812 return sin ();
6813   ;
6814   return 0;
6815 }
6816 _ACEOF
6817 rm -f conftest.$ac_objext conftest$ac_exeext
6818 if { (ac_try="$ac_link"
6819 case "(($ac_try" in
6820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6821   *) ac_try_echo=$ac_try;;
6822 esac
6823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6824   (eval "$ac_link") 2>conftest.er1
6825   ac_status=$?
6826   grep -v '^ *+' conftest.er1 >conftest.err
6827   rm -f conftest.er1
6828   cat conftest.err >&5
6829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830   (exit $ac_status); } && {
6831          test -z "$ac_c_werror_flag" ||
6832          test ! -s conftest.err
6833        } && test -s conftest$ac_exeext &&
6834        $as_test_x conftest$ac_exeext; then
6835   ac_cv_lib_m_sin=yes
6836 else
6837   echo "$as_me: failed program was:" >&5
6838 sed 's/^/| /' conftest.$ac_ext >&5
6839
6840         ac_cv_lib_m_sin=no
6841 fi
6842
6843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6844       conftest$ac_exeext conftest.$ac_ext
6845 LIBS=$ac_check_lib_save_LIBS
6846 fi
6847 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
6848 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
6849 if test $ac_cv_lib_m_sin = yes; then
6850   cat >>confdefs.h <<_ACEOF
6851 #define HAVE_LIBM 1
6852 _ACEOF
6853
6854   LIBS="-lm $LIBS"
6855
6856 fi
6857
6858 fi
6859
6860
6861 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6862 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6863 if test "${ac_cv_header_stdc+set}" = set; then
6864   echo $ECHO_N "(cached) $ECHO_C" >&6
6865 else
6866   cat >conftest.$ac_ext <<_ACEOF
6867 /* confdefs.h.  */
6868 _ACEOF
6869 cat confdefs.h >>conftest.$ac_ext
6870 cat >>conftest.$ac_ext <<_ACEOF
6871 /* end confdefs.h.  */
6872 #include <stdlib.h>
6873 #include <stdarg.h>
6874 #include <string.h>
6875 #include <float.h>
6876
6877 int
6878 main ()
6879 {
6880
6881   ;
6882   return 0;
6883 }
6884 _ACEOF
6885 rm -f conftest.$ac_objext
6886 if { (ac_try="$ac_compile"
6887 case "(($ac_try" in
6888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6889   *) ac_try_echo=$ac_try;;
6890 esac
6891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6892   (eval "$ac_compile") 2>conftest.er1
6893   ac_status=$?
6894   grep -v '^ *+' conftest.er1 >conftest.err
6895   rm -f conftest.er1
6896   cat conftest.err >&5
6897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898   (exit $ac_status); } && {
6899          test -z "$ac_c_werror_flag" ||
6900          test ! -s conftest.err
6901        } && test -s conftest.$ac_objext; then
6902   ac_cv_header_stdc=yes
6903 else
6904   echo "$as_me: failed program was:" >&5
6905 sed 's/^/| /' conftest.$ac_ext >&5
6906
6907         ac_cv_header_stdc=no
6908 fi
6909
6910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6911
6912 if test $ac_cv_header_stdc = yes; then
6913   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6914   cat >conftest.$ac_ext <<_ACEOF
6915 /* confdefs.h.  */
6916 _ACEOF
6917 cat confdefs.h >>conftest.$ac_ext
6918 cat >>conftest.$ac_ext <<_ACEOF
6919 /* end confdefs.h.  */
6920 #include <string.h>
6921
6922 _ACEOF
6923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6924   $EGREP "memchr" >/dev/null 2>&1; then
6925   :
6926 else
6927   ac_cv_header_stdc=no
6928 fi
6929 rm -f conftest*
6930
6931 fi
6932
6933 if test $ac_cv_header_stdc = yes; then
6934   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6935   cat >conftest.$ac_ext <<_ACEOF
6936 /* confdefs.h.  */
6937 _ACEOF
6938 cat confdefs.h >>conftest.$ac_ext
6939 cat >>conftest.$ac_ext <<_ACEOF
6940 /* end confdefs.h.  */
6941 #include <stdlib.h>
6942
6943 _ACEOF
6944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6945   $EGREP "free" >/dev/null 2>&1; then
6946   :
6947 else
6948   ac_cv_header_stdc=no
6949 fi
6950 rm -f conftest*
6951
6952 fi
6953
6954 if test $ac_cv_header_stdc = yes; then
6955   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6956   if test "$cross_compiling" = yes; then
6957   :
6958 else
6959   cat >conftest.$ac_ext <<_ACEOF
6960 /* confdefs.h.  */
6961 _ACEOF
6962 cat confdefs.h >>conftest.$ac_ext
6963 cat >>conftest.$ac_ext <<_ACEOF
6964 /* end confdefs.h.  */
6965 #include <ctype.h>
6966 #include <stdlib.h>
6967 #if ((' ' & 0x0FF) == 0x020)
6968 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6969 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6970 #else
6971 # define ISLOWER(c) \
6972                    (('a' <= (c) && (c) <= 'i') \
6973                      || ('j' <= (c) && (c) <= 'r') \
6974                      || ('s' <= (c) && (c) <= 'z'))
6975 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6976 #endif
6977
6978 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6979 int
6980 main ()
6981 {
6982   int i;
6983   for (i = 0; i < 256; i++)
6984     if (XOR (islower (i), ISLOWER (i))
6985         || toupper (i) != TOUPPER (i))
6986       return 2;
6987   return 0;
6988 }
6989 _ACEOF
6990 rm -f conftest$ac_exeext
6991 if { (ac_try="$ac_link"
6992 case "(($ac_try" in
6993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6994   *) ac_try_echo=$ac_try;;
6995 esac
6996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6997   (eval "$ac_link") 2>&5
6998   ac_status=$?
6999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7001   { (case "(($ac_try" in
7002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7003   *) ac_try_echo=$ac_try;;
7004 esac
7005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7006   (eval "$ac_try") 2>&5
7007   ac_status=$?
7008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009   (exit $ac_status); }; }; then
7010   :
7011 else
7012   echo "$as_me: program exited with status $ac_status" >&5
7013 echo "$as_me: failed program was:" >&5
7014 sed 's/^/| /' conftest.$ac_ext >&5
7015
7016 ( exit $ac_status )
7017 ac_cv_header_stdc=no
7018 fi
7019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7020 fi
7021
7022
7023 fi
7024 fi
7025 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7026 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7027 if test $ac_cv_header_stdc = yes; then
7028
7029 cat >>confdefs.h <<\_ACEOF
7030 #define STDC_HEADERS 1
7031 _ACEOF
7032
7033 fi
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063 for ac_header in dirent.h errno.h float.h limits.h locale.h math.h stdlib.h \
7064   string.h time.h sys/time.h sys/types.h \
7065   sys/bsdtypes.h sys/ioctl.h sys/param.h sys/select.h sys/socket.h \
7066   sys/stat.h sys/systeminfo.h sys/timeb.h sys/utsname.h \
7067   libc.h malloc.h poll.h sgtty.h termios.h values.h pwd.h
7068
7069 do
7070 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7072   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7075   echo $ECHO_N "(cached) $ECHO_C" >&6
7076 fi
7077 ac_res=`eval echo '${'$as_ac_Header'}'`
7078                { echo "$as_me:$LINENO: result: $ac_res" >&5
7079 echo "${ECHO_T}$ac_res" >&6; }
7080 else
7081   # Is the header compilable?
7082 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7083 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7084 cat >conftest.$ac_ext <<_ACEOF
7085 /* confdefs.h.  */
7086 _ACEOF
7087 cat confdefs.h >>conftest.$ac_ext
7088 cat >>conftest.$ac_ext <<_ACEOF
7089 /* end confdefs.h.  */
7090 $ac_includes_default
7091 #include <$ac_header>
7092 _ACEOF
7093 rm -f conftest.$ac_objext
7094 if { (ac_try="$ac_compile"
7095 case "(($ac_try" in
7096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7097   *) ac_try_echo=$ac_try;;
7098 esac
7099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7100   (eval "$ac_compile") 2>conftest.er1
7101   ac_status=$?
7102   grep -v '^ *+' conftest.er1 >conftest.err
7103   rm -f conftest.er1
7104   cat conftest.err >&5
7105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106   (exit $ac_status); } && {
7107          test -z "$ac_c_werror_flag" ||
7108          test ! -s conftest.err
7109        } && test -s conftest.$ac_objext; then
7110   ac_header_compiler=yes
7111 else
7112   echo "$as_me: failed program was:" >&5
7113 sed 's/^/| /' conftest.$ac_ext >&5
7114
7115         ac_header_compiler=no
7116 fi
7117
7118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7119 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7120 echo "${ECHO_T}$ac_header_compiler" >&6; }
7121
7122 # Is the header present?
7123 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7124 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7125 cat >conftest.$ac_ext <<_ACEOF
7126 /* confdefs.h.  */
7127 _ACEOF
7128 cat confdefs.h >>conftest.$ac_ext
7129 cat >>conftest.$ac_ext <<_ACEOF
7130 /* end confdefs.h.  */
7131 #include <$ac_header>
7132 _ACEOF
7133 if { (ac_try="$ac_cpp conftest.$ac_ext"
7134 case "(($ac_try" in
7135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7136   *) ac_try_echo=$ac_try;;
7137 esac
7138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7139   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7140   ac_status=$?
7141   grep -v '^ *+' conftest.er1 >conftest.err
7142   rm -f conftest.er1
7143   cat conftest.err >&5
7144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145   (exit $ac_status); } >/dev/null && {
7146          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7147          test ! -s conftest.err
7148        }; then
7149   ac_header_preproc=yes
7150 else
7151   echo "$as_me: failed program was:" >&5
7152 sed 's/^/| /' conftest.$ac_ext >&5
7153
7154   ac_header_preproc=no
7155 fi
7156
7157 rm -f conftest.err conftest.$ac_ext
7158 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7159 echo "${ECHO_T}$ac_header_preproc" >&6; }
7160
7161 # So?  What about this header?
7162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7163   yes:no: )
7164     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7165 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7166     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7167 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7168     ac_header_preproc=yes
7169     ;;
7170   no:yes:* )
7171     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7172 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7173     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7174 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7175     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7176 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7177     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7178 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7179     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7180 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7181     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7182 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7183
7184     ;;
7185 esac
7186 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7189   echo $ECHO_N "(cached) $ECHO_C" >&6
7190 else
7191   eval "$as_ac_Header=\$ac_header_preproc"
7192 fi
7193 ac_res=`eval echo '${'$as_ac_Header'}'`
7194                { echo "$as_me:$LINENO: result: $ac_res" >&5
7195 echo "${ECHO_T}$ac_res" >&6; }
7196
7197 fi
7198 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7199   cat >>confdefs.h <<_ACEOF
7200 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7201 _ACEOF
7202
7203 fi
7204
7205 done
7206
7207
7208 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
7209 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
7210 if test "${ac_cv_header_stdbool_h+set}" = set; then
7211   echo $ECHO_N "(cached) $ECHO_C" >&6
7212 else
7213   cat >conftest.$ac_ext <<_ACEOF
7214 /* confdefs.h.  */
7215 _ACEOF
7216 cat confdefs.h >>conftest.$ac_ext
7217 cat >>conftest.$ac_ext <<_ACEOF
7218 /* end confdefs.h.  */
7219
7220 #include <stdbool.h>
7221 #ifndef bool
7222  "error: bool is not defined"
7223 #endif
7224 #ifndef false
7225  "error: false is not defined"
7226 #endif
7227 #if false
7228  "error: false is not 0"
7229 #endif
7230 #ifndef true
7231  "error: true is not defined"
7232 #endif
7233 #if true != 1
7234  "error: true is not 1"
7235 #endif
7236 #ifndef __bool_true_false_are_defined
7237  "error: __bool_true_false_are_defined is not defined"
7238 #endif
7239
7240         struct s { _Bool s: 1; _Bool t; } s;
7241
7242         char a[true == 1 ? 1 : -1];
7243         char b[false == 0 ? 1 : -1];
7244         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7245         char d[(bool) 0.5 == true ? 1 : -1];
7246         bool e = &s;
7247         char f[(_Bool) 0.0 == false ? 1 : -1];
7248         char g[true];
7249         char h[sizeof (_Bool)];
7250         char i[sizeof s.t];
7251         enum { j = false, k = true, l = false * true, m = true * 256 };
7252         _Bool n[m];
7253         char o[sizeof n == m * sizeof n[0] ? 1 : -1];
7254         char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
7255 #       if defined __xlc__ || defined __GNUC__
7256          /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
7257             reported by James Lemley on 2005-10-05; see
7258             http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
7259             This test is not quite right, since xlc is allowed to
7260             reject this program, as the initializer for xlcbug is
7261             not one of the forms that C requires support for.
7262             However, doing the test right would require a runtime
7263             test, and that would make cross-compilation harder.
7264             Let us hope that IBM fixes the xlc bug, and also adds
7265             support for this kind of constant expression.  In the
7266             meantime, this test will reject xlc, which is OK, since
7267             our stdbool.h substitute should suffice.  We also test
7268             this with GCC, where it should work, to detect more
7269             quickly whether someone messes up the test in the
7270             future.  */
7271          char digs[] = "0123456789";
7272          int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
7273 #       endif
7274         /* Catch a bug in an HP-UX C compiler.  See
7275            http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
7276            http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
7277          */
7278         _Bool q = true;
7279         _Bool *pq = &q;
7280
7281 int
7282 main ()
7283 {
7284
7285         *pq |= q;
7286         *pq |= ! q;
7287         /* Refer to every declared value, to avoid compiler optimizations.  */
7288         return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
7289                 + !m + !n + !o + !p + !q + !pq);
7290
7291   ;
7292   return 0;
7293 }
7294 _ACEOF
7295 rm -f conftest.$ac_objext
7296 if { (ac_try="$ac_compile"
7297 case "(($ac_try" in
7298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7299   *) ac_try_echo=$ac_try;;
7300 esac
7301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7302   (eval "$ac_compile") 2>conftest.er1
7303   ac_status=$?
7304   grep -v '^ *+' conftest.er1 >conftest.err
7305   rm -f conftest.er1
7306   cat conftest.err >&5
7307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308   (exit $ac_status); } && {
7309          test -z "$ac_c_werror_flag" ||
7310          test ! -s conftest.err
7311        } && test -s conftest.$ac_objext; then
7312   ac_cv_header_stdbool_h=yes
7313 else
7314   echo "$as_me: failed program was:" >&5
7315 sed 's/^/| /' conftest.$ac_ext >&5
7316
7317         ac_cv_header_stdbool_h=no
7318 fi
7319
7320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7321 fi
7322 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
7323 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
7324 { echo "$as_me:$LINENO: checking for _Bool" >&5
7325 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
7326 if test "${ac_cv_type__Bool+set}" = set; then
7327   echo $ECHO_N "(cached) $ECHO_C" >&6
7328 else
7329   cat >conftest.$ac_ext <<_ACEOF
7330 /* confdefs.h.  */
7331 _ACEOF
7332 cat confdefs.h >>conftest.$ac_ext
7333 cat >>conftest.$ac_ext <<_ACEOF
7334 /* end confdefs.h.  */
7335 $ac_includes_default
7336 typedef _Bool ac__type_new_;
7337 int
7338 main ()
7339 {
7340 if ((ac__type_new_ *) 0)
7341   return 0;
7342 if (sizeof (ac__type_new_))
7343   return 0;
7344   ;
7345   return 0;
7346 }
7347 _ACEOF
7348 rm -f conftest.$ac_objext
7349 if { (ac_try="$ac_compile"
7350 case "(($ac_try" in
7351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7352   *) ac_try_echo=$ac_try;;
7353 esac
7354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7355   (eval "$ac_compile") 2>conftest.er1
7356   ac_status=$?
7357   grep -v '^ *+' conftest.er1 >conftest.err
7358   rm -f conftest.er1
7359   cat conftest.err >&5
7360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361   (exit $ac_status); } && {
7362          test -z "$ac_c_werror_flag" ||
7363          test ! -s conftest.err
7364        } && test -s conftest.$ac_objext; then
7365   ac_cv_type__Bool=yes
7366 else
7367   echo "$as_me: failed program was:" >&5
7368 sed 's/^/| /' conftest.$ac_ext >&5
7369
7370         ac_cv_type__Bool=no
7371 fi
7372
7373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7374 fi
7375 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
7376 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
7377 if test $ac_cv_type__Bool = yes; then
7378
7379 cat >>confdefs.h <<_ACEOF
7380 #define HAVE__BOOL 1
7381 _ACEOF
7382
7383
7384 fi
7385
7386 if test $ac_cv_header_stdbool_h = yes; then
7387
7388 cat >>confdefs.h <<\_ACEOF
7389 #define HAVE_STDBOOL_H 1
7390 _ACEOF
7391
7392 fi
7393
7394
7395 if test "$ac_cv_header_math_h" = yes ; then
7396   { echo "$as_me:$LINENO: checking for struct exception in math.h" >&5
7397 echo $ECHO_N "checking for struct exception in math.h... $ECHO_C" >&6; }
7398   cat >conftest.$ac_ext <<_ACEOF
7399 /* confdefs.h.  */
7400 _ACEOF
7401 cat confdefs.h >>conftest.$ac_ext
7402 cat >>conftest.$ac_ext <<_ACEOF
7403 /* end confdefs.h.  */
7404 #include <math.h>
7405 int
7406 main ()
7407 {
7408 struct exception *x; x->type; x->name;
7409   ;
7410   return 0;
7411 }
7412 _ACEOF
7413 rm -f conftest.$ac_objext conftest$ac_exeext
7414 if { (ac_try="$ac_link"
7415 case "(($ac_try" in
7416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7417   *) ac_try_echo=$ac_try;;
7418 esac
7419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7420   (eval "$ac_link") 2>conftest.er1
7421   ac_status=$?
7422   grep -v '^ *+' conftest.er1 >conftest.err
7423   rm -f conftest.er1
7424   cat conftest.err >&5
7425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426   (exit $ac_status); } && {
7427          test -z "$ac_c_werror_flag" ||
7428          test ! -s conftest.err
7429        } && test -s conftest$ac_exeext &&
7430        $as_test_x conftest$ac_exeext; then
7431   { echo "$as_me:$LINENO: result: yes" >&5
7432 echo "${ECHO_T}yes" >&6; }
7433
7434 cat >>confdefs.h <<\_ACEOF
7435 #define HAVE_STRUCT_EXCEPTION_IN_MATH_H 1
7436 _ACEOF
7437
7438 else
7439   echo "$as_me: failed program was:" >&5
7440 sed 's/^/| /' conftest.$ac_ext >&5
7441
7442         { echo "$as_me:$LINENO: result: no" >&5
7443 echo "${ECHO_T}no" >&6; }
7444 fi
7445
7446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7447       conftest$ac_exeext conftest.$ac_ext
7448 fi
7449
7450 if test "$ac_cv_header_sys_stat_h" = yes; then
7451   { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
7452 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
7453 if test "${ac_cv_header_stat_broken+set}" = set; then
7454   echo $ECHO_N "(cached) $ECHO_C" >&6
7455 else
7456   cat >conftest.$ac_ext <<_ACEOF
7457 /* confdefs.h.  */
7458 _ACEOF
7459 cat confdefs.h >>conftest.$ac_ext
7460 cat >>conftest.$ac_ext <<_ACEOF
7461 /* end confdefs.h.  */
7462 #include <sys/types.h>
7463 #include <sys/stat.h>
7464
7465 #if defined S_ISBLK && defined S_IFDIR
7466 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
7467 #endif
7468
7469 #if defined S_ISBLK && defined S_IFCHR
7470 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
7471 #endif
7472
7473 #if defined S_ISLNK && defined S_IFREG
7474 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
7475 #endif
7476
7477 #if defined S_ISSOCK && defined S_IFREG
7478 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
7479 #endif
7480
7481 _ACEOF
7482 rm -f conftest.$ac_objext
7483 if { (ac_try="$ac_compile"
7484 case "(($ac_try" in
7485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7486   *) ac_try_echo=$ac_try;;
7487 esac
7488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7489   (eval "$ac_compile") 2>conftest.er1
7490   ac_status=$?
7491   grep -v '^ *+' conftest.er1 >conftest.err
7492   rm -f conftest.er1
7493   cat conftest.err >&5
7494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495   (exit $ac_status); } && {
7496          test -z "$ac_c_werror_flag" ||
7497          test ! -s conftest.err
7498        } && test -s conftest.$ac_objext; then
7499   ac_cv_header_stat_broken=no
7500 else
7501   echo "$as_me: failed program was:" >&5
7502 sed 's/^/| /' conftest.$ac_ext >&5
7503
7504         ac_cv_header_stat_broken=yes
7505 fi
7506
7507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7508 fi
7509 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
7510 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
7511 if test $ac_cv_header_stat_broken = yes; then
7512
7513 cat >>confdefs.h <<\_ACEOF
7514 #define STAT_MACROS_BROKEN 1
7515 _ACEOF
7516
7517 fi
7518
7519 fi
7520
7521 { echo "$as_me:$LINENO: checking for unistd.h" >&5
7522 echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6; }
7523 cat >conftest.$ac_ext <<_ACEOF
7524 /* confdefs.h.  */
7525 _ACEOF
7526 cat confdefs.h >>conftest.$ac_ext
7527 cat >>conftest.$ac_ext <<_ACEOF
7528 /* end confdefs.h.  */
7529 #include <unistd.h>
7530
7531 _ACEOF
7532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7533   $EGREP "execv" >/dev/null 2>&1; then
7534   cat >>confdefs.h <<\_ACEOF
7535 #define HAVE_UNISTD_H 1
7536 _ACEOF
7537  { echo "$as_me:$LINENO: result: yes" >&5
7538 echo "${ECHO_T}yes" >&6; }
7539 else
7540   { echo "$as_me:$LINENO: result: no" >&5
7541 echo "${ECHO_T}no" >&6; }
7542 fi
7543 rm -f conftest*
7544
7545
7546 { echo "$as_me:$LINENO: checking if errno variable is declared" >&5
7547 echo $ECHO_N "checking if errno variable is declared... $ECHO_C" >&6; }
7548 cat >conftest.$ac_ext <<_ACEOF
7549 /* confdefs.h.  */
7550 _ACEOF
7551 cat confdefs.h >>conftest.$ac_ext
7552 cat >>conftest.$ac_ext <<_ACEOF
7553 /* end confdefs.h.  */
7554 #include <stdio.h>
7555 #ifdef HAVE_ERRNO_H
7556 #include <errno.h>
7557 #endif
7558 int
7559 main ()
7560 {
7561 errno=0
7562   ;
7563   return 0;
7564 }
7565 _ACEOF
7566 rm -f conftest.$ac_objext
7567 if { (ac_try="$ac_compile"
7568 case "(($ac_try" in
7569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7570   *) ac_try_echo=$ac_try;;
7571 esac
7572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7573   (eval "$ac_compile") 2>conftest.er1
7574   ac_status=$?
7575   grep -v '^ *+' conftest.er1 >conftest.err
7576   rm -f conftest.er1
7577   cat conftest.err >&5
7578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579   (exit $ac_status); } && {
7580          test -z "$ac_c_werror_flag" ||
7581          test ! -s conftest.err
7582        } && test -s conftest.$ac_objext; then
7583   { echo "$as_me:$LINENO: result: yes" >&5
7584 echo "${ECHO_T}yes" >&6; }
7585 else
7586   echo "$as_me: failed program was:" >&5
7587 sed 's/^/| /' conftest.$ac_ext >&5
7588
7589
7590 cat >>confdefs.h <<\_ACEOF
7591 #define EXTERN_ERRNO 1
7592 _ACEOF
7593
7594    { echo "$as_me:$LINENO: result: no" >&5
7595 echo "${ECHO_T}no" >&6; }
7596 fi
7597
7598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7599
7600
7601 { echo "$as_me:$LINENO: checking for size_t" >&5
7602 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
7603 if test "${ac_cv_type_size_t+set}" = set; then
7604   echo $ECHO_N "(cached) $ECHO_C" >&6
7605 else
7606   cat >conftest.$ac_ext <<_ACEOF
7607 /* confdefs.h.  */
7608 _ACEOF
7609 cat confdefs.h >>conftest.$ac_ext
7610 cat >>conftest.$ac_ext <<_ACEOF
7611 /* end confdefs.h.  */
7612 $ac_includes_default
7613 typedef size_t ac__type_new_;
7614 int
7615 main ()
7616 {
7617 if ((ac__type_new_ *) 0)
7618   return 0;
7619 if (sizeof (ac__type_new_))
7620   return 0;
7621   ;
7622   return 0;
7623 }
7624 _ACEOF
7625 rm -f conftest.$ac_objext
7626 if { (ac_try="$ac_compile"
7627 case "(($ac_try" in
7628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7629   *) ac_try_echo=$ac_try;;
7630 esac
7631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7632   (eval "$ac_compile") 2>conftest.er1
7633   ac_status=$?
7634   grep -v '^ *+' conftest.er1 >conftest.err
7635   rm -f conftest.er1
7636   cat conftest.err >&5
7637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638   (exit $ac_status); } && {
7639          test -z "$ac_c_werror_flag" ||
7640          test ! -s conftest.err
7641        } && test -s conftest.$ac_objext; then
7642   ac_cv_type_size_t=yes
7643 else
7644   echo "$as_me: failed program was:" >&5
7645 sed 's/^/| /' conftest.$ac_ext >&5
7646
7647         ac_cv_type_size_t=no
7648 fi
7649
7650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7651 fi
7652 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7653 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7654 if test $ac_cv_type_size_t = yes; then
7655   :
7656 else
7657
7658 cat >>confdefs.h <<_ACEOF
7659 #define size_t unsigned int
7660 _ACEOF
7661
7662 fi
7663
7664 { echo "$as_me:$LINENO: checking for time_t in time.h" >&5
7665 echo $ECHO_N "checking for time_t in time.h... $ECHO_C" >&6; }
7666 cat >conftest.$ac_ext <<_ACEOF
7667 /* confdefs.h.  */
7668 _ACEOF
7669 cat confdefs.h >>conftest.$ac_ext
7670 cat >>conftest.$ac_ext <<_ACEOF
7671 /* end confdefs.h.  */
7672 #include <time.h>
7673
7674 _ACEOF
7675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7676   $EGREP "time_t" >/dev/null 2>&1; then
7677   { echo "$as_me:$LINENO: result: yes" >&5
7678 echo "${ECHO_T}yes" >&6; }
7679
7680 cat >>confdefs.h <<\_ACEOF
7681 #define HAVE_TIME_T_IN_TIME_H 1
7682 _ACEOF
7683
7684 fi
7685 rm -f conftest*
7686
7687 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7688 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7689 if test "${ac_cv_type_signal+set}" = set; then
7690   echo $ECHO_N "(cached) $ECHO_C" >&6
7691 else
7692   cat >conftest.$ac_ext <<_ACEOF
7693 /* confdefs.h.  */
7694 _ACEOF
7695 cat confdefs.h >>conftest.$ac_ext
7696 cat >>conftest.$ac_ext <<_ACEOF
7697 /* end confdefs.h.  */
7698 #include <sys/types.h>
7699 #include <signal.h>
7700
7701 int
7702 main ()
7703 {
7704 return *(signal (0, 0)) (0) == 1;
7705   ;
7706   return 0;
7707 }
7708 _ACEOF
7709 rm -f conftest.$ac_objext
7710 if { (ac_try="$ac_compile"
7711 case "(($ac_try" in
7712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7713   *) ac_try_echo=$ac_try;;
7714 esac
7715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7716   (eval "$ac_compile") 2>conftest.er1
7717   ac_status=$?
7718   grep -v '^ *+' conftest.er1 >conftest.err
7719   rm -f conftest.er1
7720   cat conftest.err >&5
7721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722   (exit $ac_status); } && {
7723          test -z "$ac_c_werror_flag" ||
7724          test ! -s conftest.err
7725        } && test -s conftest.$ac_objext; then
7726   ac_cv_type_signal=int
7727 else
7728   echo "$as_me: failed program was:" >&5
7729 sed 's/^/| /' conftest.$ac_ext >&5
7730
7731         ac_cv_type_signal=void
7732 fi
7733
7734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7735 fi
7736 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7737 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7738
7739 cat >>confdefs.h <<_ACEOF
7740 #define RETSIGTYPE $ac_cv_type_signal
7741 _ACEOF
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784 for ac_func in atexit memcpy memmove memset \
7785   on_exit bcopy bzero \
7786   setvbuf strerror strchr strrchr strstr \
7787   index rindex \
7788   isnan \
7789   erf erfc gamma lgamma \
7790   getcwd poll pclose popen select sleep stpcpy \
7791   strcspn strdup strcasecmp stricmp strncasecmp strnicmp \
7792   sysinfo tcgetattr vfprintf doprnt usleep
7793
7794 do
7795 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7796 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7797 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7798 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7799   echo $ECHO_N "(cached) $ECHO_C" >&6
7800 else
7801   cat >conftest.$ac_ext <<_ACEOF
7802 /* confdefs.h.  */
7803 _ACEOF
7804 cat confdefs.h >>conftest.$ac_ext
7805 cat >>conftest.$ac_ext <<_ACEOF
7806 /* end confdefs.h.  */
7807 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7808    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7809 #define $ac_func innocuous_$ac_func
7810
7811 /* System header to define __stub macros and hopefully few prototypes,
7812     which can conflict with char $ac_func (); below.
7813     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7814     <limits.h> exists even on freestanding compilers.  */
7815
7816 #ifdef __STDC__
7817 # include <limits.h>
7818 #else
7819 # include <assert.h>
7820 #endif
7821
7822 #undef $ac_func
7823
7824 /* Override any GCC internal prototype to avoid an error.
7825    Use char because int might match the return type of a GCC
7826    builtin and then its argument prototype would still apply.  */
7827 #ifdef __cplusplus
7828 extern "C"
7829 #endif
7830 char $ac_func ();
7831 /* The GNU C library defines this for functions which it implements
7832     to always fail with ENOSYS.  Some functions are actually named
7833     something starting with __ and the normal name is an alias.  */
7834 #if defined __stub_$ac_func || defined __stub___$ac_func
7835 choke me
7836 #endif
7837
7838 int
7839 main ()
7840 {
7841 return $ac_func ();
7842   ;
7843   return 0;
7844 }
7845 _ACEOF
7846 rm -f conftest.$ac_objext conftest$ac_exeext
7847 if { (ac_try="$ac_link"
7848 case "(($ac_try" in
7849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7850   *) ac_try_echo=$ac_try;;
7851 esac
7852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7853   (eval "$ac_link") 2>conftest.er1
7854   ac_status=$?
7855   grep -v '^ *+' conftest.er1 >conftest.err
7856   rm -f conftest.er1
7857   cat conftest.err >&5
7858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859   (exit $ac_status); } && {
7860          test -z "$ac_c_werror_flag" ||
7861          test ! -s conftest.err
7862        } && test -s conftest$ac_exeext &&
7863        $as_test_x conftest$ac_exeext; then
7864   eval "$as_ac_var=yes"
7865 else
7866   echo "$as_me: failed program was:" >&5
7867 sed 's/^/| /' conftest.$ac_ext >&5
7868
7869         eval "$as_ac_var=no"
7870 fi
7871
7872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7873       conftest$ac_exeext conftest.$ac_ext
7874 fi
7875 ac_res=`eval echo '${'$as_ac_var'}'`
7876                { echo "$as_me:$LINENO: result: $ac_res" >&5
7877 echo "${ECHO_T}$ac_res" >&6; }
7878 if test `eval echo '${'$as_ac_var'}'` = yes; then
7879   cat >>confdefs.h <<_ACEOF
7880 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7881 _ACEOF
7882
7883 fi
7884 done
7885
7886
7887
7888 for ac_func in snprintf
7889 do
7890 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7891 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7892 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7893 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7894   echo $ECHO_N "(cached) $ECHO_C" >&6
7895 else
7896   cat >conftest.$ac_ext <<_ACEOF
7897 /* confdefs.h.  */
7898 _ACEOF
7899 cat confdefs.h >>conftest.$ac_ext
7900 cat >>conftest.$ac_ext <<_ACEOF
7901 /* end confdefs.h.  */
7902 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7903    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7904 #define $ac_func innocuous_$ac_func
7905
7906 /* System header to define __stub macros and hopefully few prototypes,
7907     which can conflict with char $ac_func (); below.
7908     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7909     <limits.h> exists even on freestanding compilers.  */
7910
7911 #ifdef __STDC__
7912 # include <limits.h>
7913 #else
7914 # include <assert.h>
7915 #endif
7916
7917 #undef $ac_func
7918
7919 /* Override any GCC internal prototype to avoid an error.
7920    Use char because int might match the return type of a GCC
7921    builtin and then its argument prototype would still apply.  */
7922 #ifdef __cplusplus
7923 extern "C"
7924 #endif
7925 char $ac_func ();
7926 /* The GNU C library defines this for functions which it implements
7927     to always fail with ENOSYS.  Some functions are actually named
7928     something starting with __ and the normal name is an alias.  */
7929 #if defined __stub_$ac_func || defined __stub___$ac_func
7930 choke me
7931 #endif
7932
7933 int
7934 main ()
7935 {
7936 return $ac_func ();
7937   ;
7938   return 0;
7939 }
7940 _ACEOF
7941 rm -f conftest.$ac_objext conftest$ac_exeext
7942 if { (ac_try="$ac_link"
7943 case "(($ac_try" in
7944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7945   *) ac_try_echo=$ac_try;;
7946 esac
7947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7948   (eval "$ac_link") 2>conftest.er1
7949   ac_status=$?
7950   grep -v '^ *+' conftest.er1 >conftest.err
7951   rm -f conftest.er1
7952   cat conftest.err >&5
7953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954   (exit $ac_status); } && {
7955          test -z "$ac_c_werror_flag" ||
7956          test ! -s conftest.err
7957        } && test -s conftest$ac_exeext &&
7958        $as_test_x conftest$ac_exeext; then
7959   eval "$as_ac_var=yes"
7960 else
7961   echo "$as_me: failed program was:" >&5
7962 sed 's/^/| /' conftest.$ac_ext >&5
7963
7964         eval "$as_ac_var=no"
7965 fi
7966
7967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7968       conftest$ac_exeext conftest.$ac_ext
7969 fi
7970 ac_res=`eval echo '${'$as_ac_var'}'`
7971                { echo "$as_me:$LINENO: result: $ac_res" >&5
7972 echo "${ECHO_T}$ac_res" >&6; }
7973 if test `eval echo '${'$as_ac_var'}'` = yes; then
7974   cat >>confdefs.h <<_ACEOF
7975 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7976 _ACEOF
7977
7978 else
7979     { echo "$as_me:$LINENO: result:
7980   WARNING: Could not find a working version of snprintf.
7981            If a user provides gnuplot with an improper format statement
7982            then a buffer overflow and/or segfault can result.
7983            Please consider providing snprintf via an external library.
7984   " >&5
7985 echo "${ECHO_T}
7986   WARNING: Could not find a working version of snprintf.
7987            If a user provides gnuplot with an improper format statement
7988            then a buffer overflow and/or segfault can result.
7989            Please consider providing snprintf via an external library.
7990   " >&6; }
7991
7992 fi
7993 done
7994
7995
7996
7997 { echo "$as_me:$LINENO: checking whether signgam is declared" >&5
7998 echo $ECHO_N "checking whether signgam is declared... $ECHO_C" >&6; }
7999 if test "${ac_cv_have_decl_signgam+set}" = set; then
8000   echo $ECHO_N "(cached) $ECHO_C" >&6
8001 else
8002   cat >conftest.$ac_ext <<_ACEOF
8003 /* confdefs.h.  */
8004 _ACEOF
8005 cat confdefs.h >>conftest.$ac_ext
8006 cat >>conftest.$ac_ext <<_ACEOF
8007 /* end confdefs.h.  */
8008 #if HAVE_MATH_H
8009 #include <math.h>
8010 #endif
8011
8012
8013 int
8014 main ()
8015 {
8016 #ifndef signgam
8017   (void) signgam;
8018 #endif
8019
8020   ;
8021   return 0;
8022 }
8023 _ACEOF
8024 rm -f conftest.$ac_objext
8025 if { (ac_try="$ac_compile"
8026 case "(($ac_try" in
8027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8028   *) ac_try_echo=$ac_try;;
8029 esac
8030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8031   (eval "$ac_compile") 2>conftest.er1
8032   ac_status=$?
8033   grep -v '^ *+' conftest.er1 >conftest.err
8034   rm -f conftest.er1
8035   cat conftest.err >&5
8036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037   (exit $ac_status); } && {
8038          test -z "$ac_c_werror_flag" ||
8039          test ! -s conftest.err
8040        } && test -s conftest.$ac_objext; then
8041   ac_cv_have_decl_signgam=yes
8042 else
8043   echo "$as_me: failed program was:" >&5
8044 sed 's/^/| /' conftest.$ac_ext >&5
8045
8046         ac_cv_have_decl_signgam=no
8047 fi
8048
8049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8050 fi
8051 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_signgam" >&5
8052 echo "${ECHO_T}$ac_cv_have_decl_signgam" >&6; }
8053 if test $ac_cv_have_decl_signgam = yes; then
8054
8055 cat >>confdefs.h <<_ACEOF
8056 #define HAVE_DECL_SIGNGAM 1
8057 _ACEOF
8058
8059
8060 else
8061   cat >>confdefs.h <<_ACEOF
8062 #define HAVE_DECL_SIGNGAM 0
8063 _ACEOF
8064
8065
8066 fi
8067
8068
8069
8070 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
8071 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
8072 cat >conftest.$ac_ext <<_ACEOF
8073 /* confdefs.h.  */
8074 _ACEOF
8075 cat confdefs.h >>conftest.$ac_ext
8076 cat >>conftest.$ac_ext <<_ACEOF
8077 /* end confdefs.h.  */
8078 #include <setjmp.h>
8079 int
8080 main ()
8081 {
8082 jmp_buf env; sigsetjmp(env, 1);
8083   ;
8084   return 0;
8085 }
8086 _ACEOF
8087 rm -f conftest.$ac_objext conftest$ac_exeext
8088 if { (ac_try="$ac_link"
8089 case "(($ac_try" in
8090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8091   *) ac_try_echo=$ac_try;;
8092 esac
8093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8094   (eval "$ac_link") 2>conftest.er1
8095   ac_status=$?
8096   grep -v '^ *+' conftest.er1 >conftest.err
8097   rm -f conftest.er1
8098   cat conftest.err >&5
8099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100   (exit $ac_status); } && {
8101          test -z "$ac_c_werror_flag" ||
8102          test ! -s conftest.err
8103        } && test -s conftest$ac_exeext &&
8104        $as_test_x conftest$ac_exeext; then
8105   { echo "$as_me:$LINENO: result: yes" >&5
8106 echo "${ECHO_T}yes" >&6; }
8107
8108 cat >>confdefs.h <<\_ACEOF
8109 #define HAVE_SIGSETJMP 1
8110 _ACEOF
8111
8112 else
8113   echo "$as_me: failed program was:" >&5
8114 sed 's/^/| /' conftest.$ac_ext >&5
8115
8116         { echo "$as_me:$LINENO: result: no" >&5
8117 echo "${ECHO_T}no" >&6; }
8118 fi
8119
8120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8121       conftest$ac_exeext conftest.$ac_ext
8122
8123 if test "$ac_cv_func_pclose" = yes -a "$ac_cv_func_popen" = yes ; then
8124
8125 cat >>confdefs.h <<\_ACEOF
8126 #define PIPES 1
8127 _ACEOF
8128
8129 fi
8130
8131
8132
8133 for ac_header in sys/select.h sys/socket.h
8134 do
8135 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8137   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8140   echo $ECHO_N "(cached) $ECHO_C" >&6
8141 fi
8142 ac_res=`eval echo '${'$as_ac_Header'}'`
8143                { echo "$as_me:$LINENO: result: $ac_res" >&5
8144 echo "${ECHO_T}$ac_res" >&6; }
8145 else
8146   # Is the header compilable?
8147 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8148 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8149 cat >conftest.$ac_ext <<_ACEOF
8150 /* confdefs.h.  */
8151 _ACEOF
8152 cat confdefs.h >>conftest.$ac_ext
8153 cat >>conftest.$ac_ext <<_ACEOF
8154 /* end confdefs.h.  */
8155 $ac_includes_default
8156 #include <$ac_header>
8157 _ACEOF
8158 rm -f conftest.$ac_objext
8159 if { (ac_try="$ac_compile"
8160 case "(($ac_try" in
8161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8162   *) ac_try_echo=$ac_try;;
8163 esac
8164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8165   (eval "$ac_compile") 2>conftest.er1
8166   ac_status=$?
8167   grep -v '^ *+' conftest.er1 >conftest.err
8168   rm -f conftest.er1
8169   cat conftest.err >&5
8170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171   (exit $ac_status); } && {
8172          test -z "$ac_c_werror_flag" ||
8173          test ! -s conftest.err
8174        } && test -s conftest.$ac_objext; then
8175   ac_header_compiler=yes
8176 else
8177   echo "$as_me: failed program was:" >&5
8178 sed 's/^/| /' conftest.$ac_ext >&5
8179
8180         ac_header_compiler=no
8181 fi
8182
8183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8184 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8185 echo "${ECHO_T}$ac_header_compiler" >&6; }
8186
8187 # Is the header present?
8188 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8189 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8190 cat >conftest.$ac_ext <<_ACEOF
8191 /* confdefs.h.  */
8192 _ACEOF
8193 cat confdefs.h >>conftest.$ac_ext
8194 cat >>conftest.$ac_ext <<_ACEOF
8195 /* end confdefs.h.  */
8196 #include <$ac_header>
8197 _ACEOF
8198 if { (ac_try="$ac_cpp conftest.$ac_ext"
8199 case "(($ac_try" in
8200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8201   *) ac_try_echo=$ac_try;;
8202 esac
8203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8204   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8205   ac_status=$?
8206   grep -v '^ *+' conftest.er1 >conftest.err
8207   rm -f conftest.er1
8208   cat conftest.err >&5
8209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210   (exit $ac_status); } >/dev/null && {
8211          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8212          test ! -s conftest.err
8213        }; then
8214   ac_header_preproc=yes
8215 else
8216   echo "$as_me: failed program was:" >&5
8217 sed 's/^/| /' conftest.$ac_ext >&5
8218
8219   ac_header_preproc=no
8220 fi
8221
8222 rm -f conftest.err conftest.$ac_ext
8223 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8224 echo "${ECHO_T}$ac_header_preproc" >&6; }
8225
8226 # So?  What about this header?
8227 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8228   yes:no: )
8229     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8230 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8231     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8232 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8233     ac_header_preproc=yes
8234     ;;
8235   no:yes:* )
8236     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8237 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8238     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8239 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8240     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8241 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8242     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8243 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8244     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8245 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8246     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8247 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8248
8249     ;;
8250 esac
8251 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8254   echo $ECHO_N "(cached) $ECHO_C" >&6
8255 else
8256   eval "$as_ac_Header=\$ac_header_preproc"
8257 fi
8258 ac_res=`eval echo '${'$as_ac_Header'}'`
8259                { echo "$as_me:$LINENO: result: $ac_res" >&5
8260 echo "${ECHO_T}$ac_res" >&6; }
8261
8262 fi
8263 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8264   cat >>confdefs.h <<_ACEOF
8265 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8266 _ACEOF
8267
8268 fi
8269
8270 done
8271
8272 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
8273 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
8274 if test "${ac_cv_func_select_args+set}" = set; then
8275   echo $ECHO_N "(cached) $ECHO_C" >&6
8276 else
8277   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
8278  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
8279   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
8280    cat >conftest.$ac_ext <<_ACEOF
8281 /* confdefs.h.  */
8282 _ACEOF
8283 cat confdefs.h >>conftest.$ac_ext
8284 cat >>conftest.$ac_ext <<_ACEOF
8285 /* end confdefs.h.  */
8286 $ac_includes_default
8287 #ifdef HAVE_SYS_SELECT_H
8288 # include <sys/select.h>
8289 #endif
8290 #ifdef HAVE_SYS_SOCKET_H
8291 # include <sys/socket.h>
8292 #endif
8293
8294 int
8295 main ()
8296 {
8297 extern int select ($ac_arg1,
8298                                             $ac_arg234, $ac_arg234, $ac_arg234,
8299                                             $ac_arg5);
8300   ;
8301   return 0;
8302 }
8303 _ACEOF
8304 rm -f conftest.$ac_objext
8305 if { (ac_try="$ac_compile"
8306 case "(($ac_try" in
8307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8308   *) ac_try_echo=$ac_try;;
8309 esac
8310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8311   (eval "$ac_compile") 2>conftest.er1
8312   ac_status=$?
8313   grep -v '^ *+' conftest.er1 >conftest.err
8314   rm -f conftest.er1
8315   cat conftest.err >&5
8316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317   (exit $ac_status); } && {
8318          test -z "$ac_c_werror_flag" ||
8319          test ! -s conftest.err
8320        } && test -s conftest.$ac_objext; then
8321   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
8322 else
8323   echo "$as_me: failed program was:" >&5
8324 sed 's/^/| /' conftest.$ac_ext >&5
8325
8326
8327 fi
8328
8329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8330   done
8331  done
8332 done
8333 # Provide a safe default value.
8334 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
8335
8336 fi
8337 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
8338 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
8339 ac_save_IFS=$IFS; IFS=','
8340 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
8341 IFS=$ac_save_IFS
8342 shift
8343
8344 cat >>confdefs.h <<_ACEOF
8345 #define SELECT_TYPE_ARG1 $1
8346 _ACEOF
8347
8348
8349 cat >>confdefs.h <<_ACEOF
8350 #define SELECT_TYPE_ARG234 ($2)
8351 _ACEOF
8352
8353
8354 cat >>confdefs.h <<_ACEOF
8355 #define SELECT_TYPE_ARG5 ($3)
8356 _ACEOF
8357
8358 rm -f conftest*
8359
8360
8361
8362 LASERGNU=lasergnu-noinstall
8363
8364 # Check whether --with-lasergnu was given.
8365 if test "${with_lasergnu+set}" = set; then
8366   withval=$with_lasergnu; test "$withval" = yes && LASERGNU=lasergnu-install
8367 fi
8368
8369
8370 eval gp_datadir=$datadir
8371 if test "$gp_datadir" = NONE/share; then
8372   datadir="/usr/local/share"
8373 fi
8374 pkgdatadir="$datadir/$PACKAGE"
8375
8376 # Check whether --with-gihdir was given.
8377 if test "${with_gihdir+set}" = set; then
8378   withval=$with_gihdir; GIHDIR="$withval"
8379 else
8380   GIHDIR="$pkgdatadir/$VERSION_MAJOR"
8381 fi
8382
8383
8384
8385 # Check whether --with-linux-vga was given.
8386 if test "${with_linux_vga+set}" = set; then
8387   withval=$with_linux_vga;
8388 else
8389   test -z "$with_linux_vga" && with_linux_vga=no
8390 fi
8391
8392
8393 if test "$with_linux_vga" = yes; then
8394   { echo "$as_me:$LINENO: checking for linux vga library" >&5
8395 echo $ECHO_N "checking for linux vga library... $ECHO_C" >&6; }
8396   { echo "$as_me:$LINENO: checking for vga_init in -lvga" >&5
8397 echo $ECHO_N "checking for vga_init in -lvga... $ECHO_C" >&6; }
8398 if test "${ac_cv_lib_vga_vga_init+set}" = set; then
8399   echo $ECHO_N "(cached) $ECHO_C" >&6
8400 else
8401   ac_check_lib_save_LIBS=$LIBS
8402 LIBS="-lvga  $LIBS"
8403 cat >conftest.$ac_ext <<_ACEOF
8404 /* confdefs.h.  */
8405 _ACEOF
8406 cat confdefs.h >>conftest.$ac_ext
8407 cat >>conftest.$ac_ext <<_ACEOF
8408 /* end confdefs.h.  */
8409
8410 /* Override any GCC internal prototype to avoid an error.
8411    Use char because int might match the return type of a GCC
8412    builtin and then its argument prototype would still apply.  */
8413 #ifdef __cplusplus
8414 extern "C"
8415 #endif
8416 char vga_init ();
8417 int
8418 main ()
8419 {
8420 return vga_init ();
8421   ;
8422   return 0;
8423 }
8424 _ACEOF
8425 rm -f conftest.$ac_objext conftest$ac_exeext
8426 if { (ac_try="$ac_link"
8427 case "(($ac_try" in
8428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8429   *) ac_try_echo=$ac_try;;
8430 esac
8431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8432   (eval "$ac_link") 2>conftest.er1
8433   ac_status=$?
8434   grep -v '^ *+' conftest.er1 >conftest.err
8435   rm -f conftest.er1
8436   cat conftest.err >&5
8437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438   (exit $ac_status); } && {
8439          test -z "$ac_c_werror_flag" ||
8440          test ! -s conftest.err
8441        } && test -s conftest$ac_exeext &&
8442        $as_test_x conftest$ac_exeext; then
8443   ac_cv_lib_vga_vga_init=yes
8444 else
8445   echo "$as_me: failed program was:" >&5
8446 sed 's/^/| /' conftest.$ac_ext >&5
8447
8448         ac_cv_lib_vga_vga_init=no
8449 fi
8450
8451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8452       conftest$ac_exeext conftest.$ac_ext
8453 LIBS=$ac_check_lib_save_LIBS
8454 fi
8455 { echo "$as_me:$LINENO: result: $ac_cv_lib_vga_vga_init" >&5
8456 echo "${ECHO_T}$ac_cv_lib_vga_vga_init" >&6; }
8457 if test $ac_cv_lib_vga_vga_init = yes; then
8458
8459 cat >>confdefs.h <<\_ACEOF
8460 #define LINUXVGA 1
8461 _ACEOF
8462
8463      LINUXSUID='chown root $(bindir)/gnuplot; chmod u+s $(bindir)/gnuplot'
8464      TERMLIBS="-lvga $TERMLIBS"
8465 else
8466   with_linux_vga=no
8467 fi
8468
8469 fi
8470
8471 GGI_SUPPORT=no
8472
8473 # Check whether --with-ggi was given.
8474 if test "${with_ggi+set}" = set; then
8475   withval=$with_ggi; if test "$withval" != no; then
8476      if test -d $withval/include; then
8477        CPPFLAGS="$CPPFLAGS -I$withval/include"
8478      fi
8479      if test -d $withval/lib; then
8480        LDFLAGS="$LDFLAGS -L$withval/lib"
8481      fi
8482      { echo "$as_me:$LINENO: checking for ggiInit in -lggi" >&5
8483 echo $ECHO_N "checking for ggiInit in -lggi... $ECHO_C" >&6; }
8484 if test "${ac_cv_lib_ggi_ggiInit+set}" = set; then
8485   echo $ECHO_N "(cached) $ECHO_C" >&6
8486 else
8487   ac_check_lib_save_LIBS=$LIBS
8488 LIBS="-lggi  $LIBS"
8489 cat >conftest.$ac_ext <<_ACEOF
8490 /* confdefs.h.  */
8491 _ACEOF
8492 cat confdefs.h >>conftest.$ac_ext
8493 cat >>conftest.$ac_ext <<_ACEOF
8494 /* end confdefs.h.  */
8495
8496 /* Override any GCC internal prototype to avoid an error.
8497    Use char because int might match the return type of a GCC
8498    builtin and then its argument prototype would still apply.  */
8499 #ifdef __cplusplus
8500 extern "C"
8501 #endif
8502 char ggiInit ();
8503 int
8504 main ()
8505 {
8506 return ggiInit ();
8507   ;
8508   return 0;
8509 }
8510 _ACEOF
8511 rm -f conftest.$ac_objext conftest$ac_exeext
8512 if { (ac_try="$ac_link"
8513 case "(($ac_try" in
8514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8515   *) ac_try_echo=$ac_try;;
8516 esac
8517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8518   (eval "$ac_link") 2>conftest.er1
8519   ac_status=$?
8520   grep -v '^ *+' conftest.er1 >conftest.err
8521   rm -f conftest.er1
8522   cat conftest.err >&5
8523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524   (exit $ac_status); } && {
8525          test -z "$ac_c_werror_flag" ||
8526          test ! -s conftest.err
8527        } && test -s conftest$ac_exeext &&
8528        $as_test_x conftest$ac_exeext; then
8529   ac_cv_lib_ggi_ggiInit=yes
8530 else
8531   echo "$as_me: failed program was:" >&5
8532 sed 's/^/| /' conftest.$ac_ext >&5
8533
8534         ac_cv_lib_ggi_ggiInit=no
8535 fi
8536
8537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8538       conftest$ac_exeext conftest.$ac_ext
8539 LIBS=$ac_check_lib_save_LIBS
8540 fi
8541 { echo "$as_me:$LINENO: result: $ac_cv_lib_ggi_ggiInit" >&5
8542 echo "${ECHO_T}$ac_cv_lib_ggi_ggiInit" >&6; }
8543 if test $ac_cv_lib_ggi_ggiInit = yes; then
8544   TERMLIBS="-lggi $TERMLIBS"
8545
8546 cat >>confdefs.h <<\_ACEOF
8547 #define USE_GGI_DRIVER 1
8548 _ACEOF
8549
8550         GGI_SUPPORT=yes
8551                 { echo "$as_me:$LINENO: checking for ggiWmhInit in -lggiwmh" >&5
8552 echo $ECHO_N "checking for ggiWmhInit in -lggiwmh... $ECHO_C" >&6; }
8553 if test "${ac_cv_lib_ggiwmh_ggiWmhInit+set}" = set; then
8554   echo $ECHO_N "(cached) $ECHO_C" >&6
8555 else
8556   ac_check_lib_save_LIBS=$LIBS
8557 LIBS="-lggiwmh  $LIBS"
8558 cat >conftest.$ac_ext <<_ACEOF
8559 /* confdefs.h.  */
8560 _ACEOF
8561 cat confdefs.h >>conftest.$ac_ext
8562 cat >>conftest.$ac_ext <<_ACEOF
8563 /* end confdefs.h.  */
8564
8565 /* Override any GCC internal prototype to avoid an error.
8566    Use char because int might match the return type of a GCC
8567    builtin and then its argument prototype would still apply.  */
8568 #ifdef __cplusplus
8569 extern "C"
8570 #endif
8571 char ggiWmhInit ();
8572 int
8573 main ()
8574 {
8575 return ggiWmhInit ();
8576   ;
8577   return 0;
8578 }
8579 _ACEOF
8580 rm -f conftest.$ac_objext conftest$ac_exeext
8581 if { (ac_try="$ac_link"
8582 case "(($ac_try" in
8583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8584   *) ac_try_echo=$ac_try;;
8585 esac
8586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8587   (eval "$ac_link") 2>conftest.er1
8588   ac_status=$?
8589   grep -v '^ *+' conftest.er1 >conftest.err
8590   rm -f conftest.er1
8591   cat conftest.err >&5
8592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593   (exit $ac_status); } && {
8594          test -z "$ac_c_werror_flag" ||
8595          test ! -s conftest.err
8596        } && test -s conftest$ac_exeext &&
8597        $as_test_x conftest$ac_exeext; then
8598   ac_cv_lib_ggiwmh_ggiWmhInit=yes
8599 else
8600   echo "$as_me: failed program was:" >&5
8601 sed 's/^/| /' conftest.$ac_ext >&5
8602
8603         ac_cv_lib_ggiwmh_ggiWmhInit=no
8604 fi
8605
8606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8607       conftest$ac_exeext conftest.$ac_ext
8608 LIBS=$ac_check_lib_save_LIBS
8609 fi
8610 { echo "$as_me:$LINENO: result: $ac_cv_lib_ggiwmh_ggiWmhInit" >&5
8611 echo "${ECHO_T}$ac_cv_lib_ggiwmh_ggiWmhInit" >&6; }
8612 if test $ac_cv_lib_ggiwmh_ggiWmhInit = yes; then
8613   TERMLIBS="-lggiwmh $TERMLIBS"
8614
8615 for ac_header in ggi/wmh.h
8616 do
8617 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8618 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8619   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8622   echo $ECHO_N "(cached) $ECHO_C" >&6
8623 fi
8624 ac_res=`eval echo '${'$as_ac_Header'}'`
8625                { echo "$as_me:$LINENO: result: $ac_res" >&5
8626 echo "${ECHO_T}$ac_res" >&6; }
8627 else
8628   # Is the header compilable?
8629 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8630 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8631 cat >conftest.$ac_ext <<_ACEOF
8632 /* confdefs.h.  */
8633 _ACEOF
8634 cat confdefs.h >>conftest.$ac_ext
8635 cat >>conftest.$ac_ext <<_ACEOF
8636 /* end confdefs.h.  */
8637 $ac_includes_default
8638 #include <$ac_header>
8639 _ACEOF
8640 rm -f conftest.$ac_objext
8641 if { (ac_try="$ac_compile"
8642 case "(($ac_try" in
8643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8644   *) ac_try_echo=$ac_try;;
8645 esac
8646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8647   (eval "$ac_compile") 2>conftest.er1
8648   ac_status=$?
8649   grep -v '^ *+' conftest.er1 >conftest.err
8650   rm -f conftest.er1
8651   cat conftest.err >&5
8652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653   (exit $ac_status); } && {
8654          test -z "$ac_c_werror_flag" ||
8655          test ! -s conftest.err
8656        } && test -s conftest.$ac_objext; then
8657   ac_header_compiler=yes
8658 else
8659   echo "$as_me: failed program was:" >&5
8660 sed 's/^/| /' conftest.$ac_ext >&5
8661
8662         ac_header_compiler=no
8663 fi
8664
8665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8666 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8667 echo "${ECHO_T}$ac_header_compiler" >&6; }
8668
8669 # Is the header present?
8670 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8671 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8672 cat >conftest.$ac_ext <<_ACEOF
8673 /* confdefs.h.  */
8674 _ACEOF
8675 cat confdefs.h >>conftest.$ac_ext
8676 cat >>conftest.$ac_ext <<_ACEOF
8677 /* end confdefs.h.  */
8678 #include <$ac_header>
8679 _ACEOF
8680 if { (ac_try="$ac_cpp conftest.$ac_ext"
8681 case "(($ac_try" in
8682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8683   *) ac_try_echo=$ac_try;;
8684 esac
8685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8686   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8687   ac_status=$?
8688   grep -v '^ *+' conftest.er1 >conftest.err
8689   rm -f conftest.er1
8690   cat conftest.err >&5
8691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692   (exit $ac_status); } >/dev/null && {
8693          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8694          test ! -s conftest.err
8695        }; then
8696   ac_header_preproc=yes
8697 else
8698   echo "$as_me: failed program was:" >&5
8699 sed 's/^/| /' conftest.$ac_ext >&5
8700
8701   ac_header_preproc=no
8702 fi
8703
8704 rm -f conftest.err conftest.$ac_ext
8705 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8706 echo "${ECHO_T}$ac_header_preproc" >&6; }
8707
8708 # So?  What about this header?
8709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8710   yes:no: )
8711     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8712 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8713     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8714 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8715     ac_header_preproc=yes
8716     ;;
8717   no:yes:* )
8718     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8719 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8720     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8721 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8722     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8723 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8724     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8725 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8726     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8727 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8728     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8729 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8730
8731     ;;
8732 esac
8733 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8736   echo $ECHO_N "(cached) $ECHO_C" >&6
8737 else
8738   eval "$as_ac_Header=\$ac_header_preproc"
8739 fi
8740 ac_res=`eval echo '${'$as_ac_Header'}'`
8741                { echo "$as_me:$LINENO: result: $ac_res" >&5
8742 echo "${ECHO_T}$ac_res" >&6; }
8743
8744 fi
8745 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8746   cat >>confdefs.h <<_ACEOF
8747 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8748 _ACEOF
8749
8750 else
8751   { echo "$as_me:$LINENO: WARNING: found ggiwmh library but not ggi/wmh.h
8752 please add path to ggi/wmh.h to CPPFLAGS in Makefile" >&5
8753 echo "$as_me: WARNING: found ggiwmh library but not ggi/wmh.h
8754 please add path to ggi/wmh.h to CPPFLAGS in Makefile" >&2;}
8755 fi
8756
8757 done
8758
8759
8760 fi
8761
8762 fi
8763
8764    fi
8765 fi
8766
8767
8768
8769 # Check whether --with-xmi was given.
8770 if test "${with_xmi+set}" = set; then
8771   withval=$with_xmi; if test "$withval" != no -a "$GGI_SUPPORT" = yes; then
8772      if test -d $withval/include; then
8773        CPPFLAGS="$CPPFLAGS -I$withval/include"
8774      fi
8775      if test -d $withval/lib; then
8776        LDFLAGS="$LDFLAGS -L$withval/lib"
8777      fi
8778      { echo "$as_me:$LINENO: checking for xmiInit in -lxmi" >&5
8779 echo $ECHO_N "checking for xmiInit in -lxmi... $ECHO_C" >&6; }
8780 if test "${ac_cv_lib_xmi_xmiInit+set}" = set; then
8781   echo $ECHO_N "(cached) $ECHO_C" >&6
8782 else
8783   ac_check_lib_save_LIBS=$LIBS
8784 LIBS="-lxmi  $LIBS"
8785 cat >conftest.$ac_ext <<_ACEOF
8786 /* confdefs.h.  */
8787 _ACEOF
8788 cat confdefs.h >>conftest.$ac_ext
8789 cat >>conftest.$ac_ext <<_ACEOF
8790 /* end confdefs.h.  */
8791
8792 /* Override any GCC internal prototype to avoid an error.
8793    Use char because int might match the return type of a GCC
8794    builtin and then its argument prototype would still apply.  */
8795 #ifdef __cplusplus
8796 extern "C"
8797 #endif
8798 char xmiInit ();
8799 int
8800 main ()
8801 {
8802 return xmiInit ();
8803   ;
8804   return 0;
8805 }
8806 _ACEOF
8807 rm -f conftest.$ac_objext conftest$ac_exeext
8808 if { (ac_try="$ac_link"
8809 case "(($ac_try" in
8810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8811   *) ac_try_echo=$ac_try;;
8812 esac
8813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8814   (eval "$ac_link") 2>conftest.er1
8815   ac_status=$?
8816   grep -v '^ *+' conftest.er1 >conftest.err
8817   rm -f conftest.er1
8818   cat conftest.err >&5
8819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820   (exit $ac_status); } && {
8821          test -z "$ac_c_werror_flag" ||
8822          test ! -s conftest.err
8823        } && test -s conftest$ac_exeext &&
8824        $as_test_x conftest$ac_exeext; then
8825   ac_cv_lib_xmi_xmiInit=yes
8826 else
8827   echo "$as_me: failed program was:" >&5
8828 sed 's/^/| /' conftest.$ac_ext >&5
8829
8830         ac_cv_lib_xmi_xmiInit=no
8831 fi
8832
8833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8834       conftest$ac_exeext conftest.$ac_ext
8835 LIBS=$ac_check_lib_save_LIBS
8836 fi
8837 { echo "$as_me:$LINENO: result: $ac_cv_lib_xmi_xmiInit" >&5
8838 echo "${ECHO_T}$ac_cv_lib_xmi_xmiInit" >&6; }
8839 if test $ac_cv_lib_xmi_xmiInit = yes; then
8840   TERMLIBS="-lxmi $TERMLIBS"
8841
8842 for ac_header in ggi/xmi.h
8843 do
8844 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8845 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8846   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8848 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8849   echo $ECHO_N "(cached) $ECHO_C" >&6
8850 fi
8851 ac_res=`eval echo '${'$as_ac_Header'}'`
8852                { echo "$as_me:$LINENO: result: $ac_res" >&5
8853 echo "${ECHO_T}$ac_res" >&6; }
8854 else
8855   # Is the header compilable?
8856 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8857 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8858 cat >conftest.$ac_ext <<_ACEOF
8859 /* confdefs.h.  */
8860 _ACEOF
8861 cat confdefs.h >>conftest.$ac_ext
8862 cat >>conftest.$ac_ext <<_ACEOF
8863 /* end confdefs.h.  */
8864 $ac_includes_default
8865 #include <$ac_header>
8866 _ACEOF
8867 rm -f conftest.$ac_objext
8868 if { (ac_try="$ac_compile"
8869 case "(($ac_try" in
8870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8871   *) ac_try_echo=$ac_try;;
8872 esac
8873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8874   (eval "$ac_compile") 2>conftest.er1
8875   ac_status=$?
8876   grep -v '^ *+' conftest.er1 >conftest.err
8877   rm -f conftest.er1
8878   cat conftest.err >&5
8879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880   (exit $ac_status); } && {
8881          test -z "$ac_c_werror_flag" ||
8882          test ! -s conftest.err
8883        } && test -s conftest.$ac_objext; then
8884   ac_header_compiler=yes
8885 else
8886   echo "$as_me: failed program was:" >&5
8887 sed 's/^/| /' conftest.$ac_ext >&5
8888
8889         ac_header_compiler=no
8890 fi
8891
8892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8893 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8894 echo "${ECHO_T}$ac_header_compiler" >&6; }
8895
8896 # Is the header present?
8897 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8898 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8899 cat >conftest.$ac_ext <<_ACEOF
8900 /* confdefs.h.  */
8901 _ACEOF
8902 cat confdefs.h >>conftest.$ac_ext
8903 cat >>conftest.$ac_ext <<_ACEOF
8904 /* end confdefs.h.  */
8905 #include <$ac_header>
8906 _ACEOF
8907 if { (ac_try="$ac_cpp conftest.$ac_ext"
8908 case "(($ac_try" in
8909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8910   *) ac_try_echo=$ac_try;;
8911 esac
8912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8913   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8914   ac_status=$?
8915   grep -v '^ *+' conftest.er1 >conftest.err
8916   rm -f conftest.er1
8917   cat conftest.err >&5
8918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919   (exit $ac_status); } >/dev/null && {
8920          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8921          test ! -s conftest.err
8922        }; then
8923   ac_header_preproc=yes
8924 else
8925   echo "$as_me: failed program was:" >&5
8926 sed 's/^/| /' conftest.$ac_ext >&5
8927
8928   ac_header_preproc=no
8929 fi
8930
8931 rm -f conftest.err conftest.$ac_ext
8932 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8933 echo "${ECHO_T}$ac_header_preproc" >&6; }
8934
8935 # So?  What about this header?
8936 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8937   yes:no: )
8938     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8939 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8940     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8941 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8942     ac_header_preproc=yes
8943     ;;
8944   no:yes:* )
8945     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8946 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8947     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8948 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8949     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8950 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8951     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8952 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8953     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8954 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8955     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8956 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8957
8958     ;;
8959 esac
8960 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8963   echo $ECHO_N "(cached) $ECHO_C" >&6
8964 else
8965   eval "$as_ac_Header=\$ac_header_preproc"
8966 fi
8967 ac_res=`eval echo '${'$as_ac_Header'}'`
8968                { echo "$as_me:$LINENO: result: $ac_res" >&5
8969 echo "${ECHO_T}$ac_res" >&6; }
8970
8971 fi
8972 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8973   cat >>confdefs.h <<_ACEOF
8974 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8975 _ACEOF
8976
8977 fi
8978
8979 done
8980
8981 fi
8982
8983    fi
8984 fi
8985
8986
8987
8988 # Check whether --with-readline was given.
8989 if test "${with_readline+set}" = set; then
8990   withval=$with_readline;
8991 else
8992   test -z "$with_readline" && with_readline=gnu
8993 fi
8994
8995
8996 # Check whether --enable-history-file was given.
8997 if test "${enable_history_file+set}" = set; then
8998   enableval=$enable_history_file;
8999 else
9000   test -z "$enable_history_file" && enable_history_file=yes
9001 fi
9002
9003
9004 if test "$with_readline" != no; then
9005   if test "$with_readline" != builtin; then
9006
9007     if test "$with_readline" = bsd; then
9008
9009       { echo "$as_me:$LINENO: checking for readline in -ledit" >&5
9010 echo $ECHO_N "checking for readline in -ledit... $ECHO_C" >&6; }
9011 if test "${ac_cv_lib_edit_readline+set}" = set; then
9012   echo $ECHO_N "(cached) $ECHO_C" >&6
9013 else
9014   ac_check_lib_save_LIBS=$LIBS
9015 LIBS="-ledit  $LIBS"
9016 cat >conftest.$ac_ext <<_ACEOF
9017 /* confdefs.h.  */
9018 _ACEOF
9019 cat confdefs.h >>conftest.$ac_ext
9020 cat >>conftest.$ac_ext <<_ACEOF
9021 /* end confdefs.h.  */
9022
9023 /* Override any GCC internal prototype to avoid an error.
9024    Use char because int might match the return type of a GCC
9025    builtin and then its argument prototype would still apply.  */
9026 #ifdef __cplusplus
9027 extern "C"
9028 #endif
9029 char readline ();
9030 int
9031 main ()
9032 {
9033 return readline ();
9034   ;
9035   return 0;
9036 }
9037 _ACEOF
9038 rm -f conftest.$ac_objext conftest$ac_exeext
9039 if { (ac_try="$ac_link"
9040 case "(($ac_try" in
9041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9042   *) ac_try_echo=$ac_try;;
9043 esac
9044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9045   (eval "$ac_link") 2>conftest.er1
9046   ac_status=$?
9047   grep -v '^ *+' conftest.er1 >conftest.err
9048   rm -f conftest.er1
9049   cat conftest.err >&5
9050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051   (exit $ac_status); } && {
9052          test -z "$ac_c_werror_flag" ||
9053          test ! -s conftest.err
9054        } && test -s conftest$ac_exeext &&
9055        $as_test_x conftest$ac_exeext; then
9056   ac_cv_lib_edit_readline=yes
9057 else
9058   echo "$as_me: failed program was:" >&5
9059 sed 's/^/| /' conftest.$ac_ext >&5
9060
9061         ac_cv_lib_edit_readline=no
9062 fi
9063
9064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9065       conftest$ac_exeext conftest.$ac_ext
9066 LIBS=$ac_check_lib_save_LIBS
9067 fi
9068 { echo "$as_me:$LINENO: result: $ac_cv_lib_edit_readline" >&5
9069 echo "${ECHO_T}$ac_cv_lib_edit_readline" >&6; }
9070 if test $ac_cv_lib_edit_readline = yes; then
9071   TERMLIBS="-ledit $TERMLIBS"
9072 else
9073   { echo "$as_me:$LINENO: WARNING: Could not find BSD editline library " >&5
9074 echo "$as_me: WARNING: Could not find BSD editline library " >&2;}
9075          with_readline=builtin
9076 fi
9077
9078
9079       { echo "$as_me:$LINENO: checking for tputs in -lcurses" >&5
9080 echo $ECHO_N "checking for tputs in -lcurses... $ECHO_C" >&6; }
9081 if test "${ac_cv_lib_curses_tputs+set}" = set; then
9082   echo $ECHO_N "(cached) $ECHO_C" >&6
9083 else
9084   ac_check_lib_save_LIBS=$LIBS
9085 LIBS="-lcurses  $LIBS"
9086 cat >conftest.$ac_ext <<_ACEOF
9087 /* confdefs.h.  */
9088 _ACEOF
9089 cat confdefs.h >>conftest.$ac_ext
9090 cat >>conftest.$ac_ext <<_ACEOF
9091 /* end confdefs.h.  */
9092
9093 /* Override any GCC internal prototype to avoid an error.
9094    Use char because int might match the return type of a GCC
9095    builtin and then its argument prototype would still apply.  */
9096 #ifdef __cplusplus
9097 extern "C"
9098 #endif
9099 char tputs ();
9100 int
9101 main ()
9102 {
9103 return tputs ();
9104   ;
9105   return 0;
9106 }
9107 _ACEOF
9108 rm -f conftest.$ac_objext conftest$ac_exeext
9109 if { (ac_try="$ac_link"
9110 case "(($ac_try" in
9111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9112   *) ac_try_echo=$ac_try;;
9113 esac
9114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9115   (eval "$ac_link") 2>conftest.er1
9116   ac_status=$?
9117   grep -v '^ *+' conftest.er1 >conftest.err
9118   rm -f conftest.er1
9119   cat conftest.err >&5
9120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121   (exit $ac_status); } && {
9122          test -z "$ac_c_werror_flag" ||
9123          test ! -s conftest.err
9124        } && test -s conftest$ac_exeext &&
9125        $as_test_x conftest$ac_exeext; then
9126   ac_cv_lib_curses_tputs=yes
9127 else
9128   echo "$as_me: failed program was:" >&5
9129 sed 's/^/| /' conftest.$ac_ext >&5
9130
9131         ac_cv_lib_curses_tputs=no
9132 fi
9133
9134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9135       conftest$ac_exeext conftest.$ac_ext
9136 LIBS=$ac_check_lib_save_LIBS
9137 fi
9138 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tputs" >&5
9139 echo "${ECHO_T}$ac_cv_lib_curses_tputs" >&6; }
9140 if test $ac_cv_lib_curses_tputs = yes; then
9141   TERMLIBS="-lcurses $TERMLIBS"
9142 fi
9143
9144
9145       if test "$ac_cv_lib_edit_readline" = yes; then
9146
9147 cat >>confdefs.h <<\_ACEOF
9148 #define HAVE_LIBEDITLINE 1
9149 _ACEOF
9150
9151
9152 for ac_header in editline/readline.h
9153 do
9154 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9156   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9159   echo $ECHO_N "(cached) $ECHO_C" >&6
9160 fi
9161 ac_res=`eval echo '${'$as_ac_Header'}'`
9162                { echo "$as_me:$LINENO: result: $ac_res" >&5
9163 echo "${ECHO_T}$ac_res" >&6; }
9164 else
9165   # Is the header compilable?
9166 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9167 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9168 cat >conftest.$ac_ext <<_ACEOF
9169 /* confdefs.h.  */
9170 _ACEOF
9171 cat confdefs.h >>conftest.$ac_ext
9172 cat >>conftest.$ac_ext <<_ACEOF
9173 /* end confdefs.h.  */
9174 $ac_includes_default
9175 #include <$ac_header>
9176 _ACEOF
9177 rm -f conftest.$ac_objext
9178 if { (ac_try="$ac_compile"
9179 case "(($ac_try" in
9180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9181   *) ac_try_echo=$ac_try;;
9182 esac
9183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9184   (eval "$ac_compile") 2>conftest.er1
9185   ac_status=$?
9186   grep -v '^ *+' conftest.er1 >conftest.err
9187   rm -f conftest.er1
9188   cat conftest.err >&5
9189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190   (exit $ac_status); } && {
9191          test -z "$ac_c_werror_flag" ||
9192          test ! -s conftest.err
9193        } && test -s conftest.$ac_objext; then
9194   ac_header_compiler=yes
9195 else
9196   echo "$as_me: failed program was:" >&5
9197 sed 's/^/| /' conftest.$ac_ext >&5
9198
9199         ac_header_compiler=no
9200 fi
9201
9202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9203 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9204 echo "${ECHO_T}$ac_header_compiler" >&6; }
9205
9206 # Is the header present?
9207 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9208 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9209 cat >conftest.$ac_ext <<_ACEOF
9210 /* confdefs.h.  */
9211 _ACEOF
9212 cat confdefs.h >>conftest.$ac_ext
9213 cat >>conftest.$ac_ext <<_ACEOF
9214 /* end confdefs.h.  */
9215 #include <$ac_header>
9216 _ACEOF
9217 if { (ac_try="$ac_cpp conftest.$ac_ext"
9218 case "(($ac_try" in
9219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9220   *) ac_try_echo=$ac_try;;
9221 esac
9222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9223   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9224   ac_status=$?
9225   grep -v '^ *+' conftest.er1 >conftest.err
9226   rm -f conftest.er1
9227   cat conftest.err >&5
9228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229   (exit $ac_status); } >/dev/null && {
9230          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9231          test ! -s conftest.err
9232        }; then
9233   ac_header_preproc=yes
9234 else
9235   echo "$as_me: failed program was:" >&5
9236 sed 's/^/| /' conftest.$ac_ext >&5
9237
9238   ac_header_preproc=no
9239 fi
9240
9241 rm -f conftest.err conftest.$ac_ext
9242 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9243 echo "${ECHO_T}$ac_header_preproc" >&6; }
9244
9245 # So?  What about this header?
9246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9247   yes:no: )
9248     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9249 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9250     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9251 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9252     ac_header_preproc=yes
9253     ;;
9254   no:yes:* )
9255     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9256 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9257     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9258 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9259     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9260 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9261     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9262 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9263     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9264 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9265     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9266 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9267
9268     ;;
9269 esac
9270 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9273   echo $ECHO_N "(cached) $ECHO_C" >&6
9274 else
9275   eval "$as_ac_Header=\$ac_header_preproc"
9276 fi
9277 ac_res=`eval echo '${'$as_ac_Header'}'`
9278                { echo "$as_me:$LINENO: result: $ac_res" >&5
9279 echo "${ECHO_T}$ac_res" >&6; }
9280
9281 fi
9282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9283   cat >>confdefs.h <<_ACEOF
9284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9285 _ACEOF
9286
9287 else
9288   { echo "$as_me:$LINENO: WARNING: found BSD editline library but not readline.h please add path to readline.h to CPPFLAGS in Makefile" >&5
9289 echo "$as_me: WARNING: found BSD editline library but not readline.h please add path to readline.h to CPPFLAGS in Makefile" >&2;}
9290 fi
9291
9292 done
9293
9294
9295         if test "$enable_history_file" = yes; then
9296
9297 cat >>confdefs.h <<\_ACEOF
9298 #define GNUPLOT_HISTORY 1
9299 _ACEOF
9300
9301         fi
9302       fi
9303
9304     else # !bsd
9305
9306             gp_tcap=""
9307     for termlib in ncurses curses termcap terminfo termlib; do
9308       as_ac_Lib=`echo "ac_cv_lib_${termlib}''_tputs" | $as_tr_sh`
9309 { echo "$as_me:$LINENO: checking for tputs in -l${termlib}" >&5
9310 echo $ECHO_N "checking for tputs in -l${termlib}... $ECHO_C" >&6; }
9311 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
9312   echo $ECHO_N "(cached) $ECHO_C" >&6
9313 else
9314   ac_check_lib_save_LIBS=$LIBS
9315 LIBS="-l${termlib}  $LIBS"
9316 cat >conftest.$ac_ext <<_ACEOF
9317 /* confdefs.h.  */
9318 _ACEOF
9319 cat confdefs.h >>conftest.$ac_ext
9320 cat >>conftest.$ac_ext <<_ACEOF
9321 /* end confdefs.h.  */
9322
9323 /* Override any GCC internal prototype to avoid an error.
9324    Use char because int might match the return type of a GCC
9325    builtin and then its argument prototype would still apply.  */
9326 #ifdef __cplusplus
9327 extern "C"
9328 #endif
9329 char tputs ();
9330 int
9331 main ()
9332 {
9333 return tputs ();
9334   ;
9335   return 0;
9336 }
9337 _ACEOF
9338 rm -f conftest.$ac_objext conftest$ac_exeext
9339 if { (ac_try="$ac_link"
9340 case "(($ac_try" in
9341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9342   *) ac_try_echo=$ac_try;;
9343 esac
9344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9345   (eval "$ac_link") 2>conftest.er1
9346   ac_status=$?
9347   grep -v '^ *+' conftest.er1 >conftest.err
9348   rm -f conftest.er1
9349   cat conftest.err >&5
9350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351   (exit $ac_status); } && {
9352          test -z "$ac_c_werror_flag" ||
9353          test ! -s conftest.err
9354        } && test -s conftest$ac_exeext &&
9355        $as_test_x conftest$ac_exeext; then
9356   eval "$as_ac_Lib=yes"
9357 else
9358   echo "$as_me: failed program was:" >&5
9359 sed 's/^/| /' conftest.$ac_ext >&5
9360
9361         eval "$as_ac_Lib=no"
9362 fi
9363
9364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9365       conftest$ac_exeext conftest.$ac_ext
9366 LIBS=$ac_check_lib_save_LIBS
9367 fi
9368 ac_res=`eval echo '${'$as_ac_Lib'}'`
9369                { echo "$as_me:$LINENO: result: $ac_res" >&5
9370 echo "${ECHO_T}$ac_res" >&6; }
9371 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
9372   gp_tcap="$gp_tcap -l$termlib"
9373 fi
9374
9375       case "$gp_tcap" in
9376         *-l${termlib}*)
9377           break
9378         ;;
9379       esac
9380     done
9381
9382     if test "$with_readline" = gnu; then
9383       { echo "$as_me:$LINENO: checking for remove_history in -lreadline" >&5
9384 echo $ECHO_N "checking for remove_history in -lreadline... $ECHO_C" >&6; }
9385 if test "${ac_cv_lib_readline_remove_history+set}" = set; then
9386   echo $ECHO_N "(cached) $ECHO_C" >&6
9387 else
9388   ac_check_lib_save_LIBS=$LIBS
9389 LIBS="-lreadline ${gp_tcap} $LIBS"
9390 cat >conftest.$ac_ext <<_ACEOF
9391 /* confdefs.h.  */
9392 _ACEOF
9393 cat confdefs.h >>conftest.$ac_ext
9394 cat >>conftest.$ac_ext <<_ACEOF
9395 /* end confdefs.h.  */
9396
9397 /* Override any GCC internal prototype to avoid an error.
9398    Use char because int might match the return type of a GCC
9399    builtin and then its argument prototype would still apply.  */
9400 #ifdef __cplusplus
9401 extern "C"
9402 #endif
9403 char remove_history ();
9404 int
9405 main ()
9406 {
9407 return remove_history ();
9408   ;
9409   return 0;
9410 }
9411 _ACEOF
9412 rm -f conftest.$ac_objext conftest$ac_exeext
9413 if { (ac_try="$ac_link"
9414 case "(($ac_try" in
9415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9416   *) ac_try_echo=$ac_try;;
9417 esac
9418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9419   (eval "$ac_link") 2>conftest.er1
9420   ac_status=$?
9421   grep -v '^ *+' conftest.er1 >conftest.err
9422   rm -f conftest.er1
9423   cat conftest.err >&5
9424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425   (exit $ac_status); } && {
9426          test -z "$ac_c_werror_flag" ||
9427          test ! -s conftest.err
9428        } && test -s conftest$ac_exeext &&
9429        $as_test_x conftest$ac_exeext; then
9430   ac_cv_lib_readline_remove_history=yes
9431 else
9432   echo "$as_me: failed program was:" >&5
9433 sed 's/^/| /' conftest.$ac_ext >&5
9434
9435         ac_cv_lib_readline_remove_history=no
9436 fi
9437
9438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9439       conftest$ac_exeext conftest.$ac_ext
9440 LIBS=$ac_check_lib_save_LIBS
9441 fi
9442 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_remove_history" >&5
9443 echo "${ECHO_T}$ac_cv_lib_readline_remove_history" >&6; }
9444 if test $ac_cv_lib_readline_remove_history = yes; then
9445   TERMLIBS="-lreadline $gp_tcap $TERMLIBS"
9446 fi
9447
9448     else
9449       if test -d $with_readline/include; then
9450         CPPFLAGS="$CPPFLAGS -I$with_readline/include"
9451       fi
9452       if test -d $with_readline/lib; then
9453         LDFLAGS="$LDFLAGS -L$with_readline/lib"
9454       fi
9455
9456       { echo "$as_me:$LINENO: checking for remove_history in -lreadline" >&5
9457 echo $ECHO_N "checking for remove_history in -lreadline... $ECHO_C" >&6; }
9458 if test "${ac_cv_lib_readline_remove_history+set}" = set; then
9459   echo $ECHO_N "(cached) $ECHO_C" >&6
9460 else
9461   ac_check_lib_save_LIBS=$LIBS
9462 LIBS="-lreadline ${gp_tcap} $LIBS"
9463 cat >conftest.$ac_ext <<_ACEOF
9464 /* confdefs.h.  */
9465 _ACEOF
9466 cat confdefs.h >>conftest.$ac_ext
9467 cat >>conftest.$ac_ext <<_ACEOF
9468 /* end confdefs.h.  */
9469
9470 /* Override any GCC internal prototype to avoid an error.
9471    Use char because int might match the return type of a GCC
9472    builtin and then its argument prototype would still apply.  */
9473 #ifdef __cplusplus
9474 extern "C"
9475 #endif
9476 char remove_history ();
9477 int
9478 main ()
9479 {
9480 return remove_history ();
9481   ;
9482   return 0;
9483 }
9484 _ACEOF
9485 rm -f conftest.$ac_objext conftest$ac_exeext
9486 if { (ac_try="$ac_link"
9487 case "(($ac_try" in
9488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9489   *) ac_try_echo=$ac_try;;
9490 esac
9491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9492   (eval "$ac_link") 2>conftest.er1
9493   ac_status=$?
9494   grep -v '^ *+' conftest.er1 >conftest.err
9495   rm -f conftest.er1
9496   cat conftest.err >&5
9497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498   (exit $ac_status); } && {
9499          test -z "$ac_c_werror_flag" ||
9500          test ! -s conftest.err
9501        } && test -s conftest$ac_exeext &&
9502        $as_test_x conftest$ac_exeext; then
9503   ac_cv_lib_readline_remove_history=yes
9504 else
9505   echo "$as_me: failed program was:" >&5
9506 sed 's/^/| /' conftest.$ac_ext >&5
9507
9508         ac_cv_lib_readline_remove_history=no
9509 fi
9510
9511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9512       conftest$ac_exeext conftest.$ac_ext
9513 LIBS=$ac_check_lib_save_LIBS
9514 fi
9515 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_remove_history" >&5
9516 echo "${ECHO_T}$ac_cv_lib_readline_remove_history" >&6; }
9517 if test $ac_cv_lib_readline_remove_history = yes; then
9518   TERMLIBS="-lreadline $gp_tcap $TERMLIBS"
9519 fi
9520
9521
9522     fi
9523
9524     if test "$ac_cv_lib_readline_remove_history" = no; then
9525             { echo "$as_me:$LINENO: checking for remove_history in -lhistory" >&5
9526 echo $ECHO_N "checking for remove_history in -lhistory... $ECHO_C" >&6; }
9527 if test "${ac_cv_lib_history_remove_history+set}" = set; then
9528   echo $ECHO_N "(cached) $ECHO_C" >&6
9529 else
9530   ac_check_lib_save_LIBS=$LIBS
9531 LIBS="-lhistory ${gp_tcap} $LIBS"
9532 cat >conftest.$ac_ext <<_ACEOF
9533 /* confdefs.h.  */
9534 _ACEOF
9535 cat confdefs.h >>conftest.$ac_ext
9536 cat >>conftest.$ac_ext <<_ACEOF
9537 /* end confdefs.h.  */
9538
9539 /* Override any GCC internal prototype to avoid an error.
9540    Use char because int might match the return type of a GCC
9541    builtin and then its argument prototype would still apply.  */
9542 #ifdef __cplusplus
9543 extern "C"
9544 #endif
9545 char remove_history ();
9546 int
9547 main ()
9548 {
9549 return remove_history ();
9550   ;
9551   return 0;
9552 }
9553 _ACEOF
9554 rm -f conftest.$ac_objext conftest$ac_exeext
9555 if { (ac_try="$ac_link"
9556 case "(($ac_try" in
9557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9558   *) ac_try_echo=$ac_try;;
9559 esac
9560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9561   (eval "$ac_link") 2>conftest.er1
9562   ac_status=$?
9563   grep -v '^ *+' conftest.er1 >conftest.err
9564   rm -f conftest.er1
9565   cat conftest.err >&5
9566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567   (exit $ac_status); } && {
9568          test -z "$ac_c_werror_flag" ||
9569          test ! -s conftest.err
9570        } && test -s conftest$ac_exeext &&
9571        $as_test_x conftest$ac_exeext; then
9572   ac_cv_lib_history_remove_history=yes
9573 else
9574   echo "$as_me: failed program was:" >&5
9575 sed 's/^/| /' conftest.$ac_ext >&5
9576
9577         ac_cv_lib_history_remove_history=no
9578 fi
9579
9580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9581       conftest$ac_exeext conftest.$ac_ext
9582 LIBS=$ac_check_lib_save_LIBS
9583 fi
9584 { echo "$as_me:$LINENO: result: $ac_cv_lib_history_remove_history" >&5
9585 echo "${ECHO_T}$ac_cv_lib_history_remove_history" >&6; }
9586 if test $ac_cv_lib_history_remove_history = yes; then
9587   TERMLIBS="-lreadline -lhistory $gp_tcap $TERMLIBS"
9588 else
9589    { echo "$as_me:$LINENO: WARNING: GNU readline not found - falling back to builtin readline" >&5
9590 echo "$as_me: WARNING: GNU readline not found - falling back to builtin readline" >&2;}
9591           with_readline=builtin
9592
9593 fi
9594
9595     fi
9596
9597     if test "$ac_cv_lib_readline_remove_history" != no || test "$ac_cv_lib_history_remove_history" != no; then
9598       if test "$with_readline" = bsd; then
9599
9600 cat >>confdefs.h <<\_ACEOF
9601 #define HAVE_LIBEDITLINE 1
9602 _ACEOF
9603
9604       else
9605
9606 cat >>confdefs.h <<\_ACEOF
9607 #define HAVE_LIBREADLINE 1
9608 _ACEOF
9609
9610       fi
9611
9612 for ac_header in readline/readline.h
9613 do
9614 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9616   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9618 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9619   echo $ECHO_N "(cached) $ECHO_C" >&6
9620 fi
9621 ac_res=`eval echo '${'$as_ac_Header'}'`
9622                { echo "$as_me:$LINENO: result: $ac_res" >&5
9623 echo "${ECHO_T}$ac_res" >&6; }
9624 else
9625   # Is the header compilable?
9626 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9627 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9628 cat >conftest.$ac_ext <<_ACEOF
9629 /* confdefs.h.  */
9630 _ACEOF
9631 cat confdefs.h >>conftest.$ac_ext
9632 cat >>conftest.$ac_ext <<_ACEOF
9633 /* end confdefs.h.  */
9634 $ac_includes_default
9635 #include <$ac_header>
9636 _ACEOF
9637 rm -f conftest.$ac_objext
9638 if { (ac_try="$ac_compile"
9639 case "(($ac_try" in
9640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9641   *) ac_try_echo=$ac_try;;
9642 esac
9643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9644   (eval "$ac_compile") 2>conftest.er1
9645   ac_status=$?
9646   grep -v '^ *+' conftest.er1 >conftest.err
9647   rm -f conftest.er1
9648   cat conftest.err >&5
9649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650   (exit $ac_status); } && {
9651          test -z "$ac_c_werror_flag" ||
9652          test ! -s conftest.err
9653        } && test -s conftest.$ac_objext; then
9654   ac_header_compiler=yes
9655 else
9656   echo "$as_me: failed program was:" >&5
9657 sed 's/^/| /' conftest.$ac_ext >&5
9658
9659         ac_header_compiler=no
9660 fi
9661
9662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9663 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9664 echo "${ECHO_T}$ac_header_compiler" >&6; }
9665
9666 # Is the header present?
9667 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9668 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9669 cat >conftest.$ac_ext <<_ACEOF
9670 /* confdefs.h.  */
9671 _ACEOF
9672 cat confdefs.h >>conftest.$ac_ext
9673 cat >>conftest.$ac_ext <<_ACEOF
9674 /* end confdefs.h.  */
9675 #include <$ac_header>
9676 _ACEOF
9677 if { (ac_try="$ac_cpp conftest.$ac_ext"
9678 case "(($ac_try" in
9679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9680   *) ac_try_echo=$ac_try;;
9681 esac
9682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9683   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9684   ac_status=$?
9685   grep -v '^ *+' conftest.er1 >conftest.err
9686   rm -f conftest.er1
9687   cat conftest.err >&5
9688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689   (exit $ac_status); } >/dev/null && {
9690          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9691          test ! -s conftest.err
9692        }; then
9693   ac_header_preproc=yes
9694 else
9695   echo "$as_me: failed program was:" >&5
9696 sed 's/^/| /' conftest.$ac_ext >&5
9697
9698   ac_header_preproc=no
9699 fi
9700
9701 rm -f conftest.err conftest.$ac_ext
9702 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9703 echo "${ECHO_T}$ac_header_preproc" >&6; }
9704
9705 # So?  What about this header?
9706 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9707   yes:no: )
9708     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9709 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9710     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9711 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9712     ac_header_preproc=yes
9713     ;;
9714   no:yes:* )
9715     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9716 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9717     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9718 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9719     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9720 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9721     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9722 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9723     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9724 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9725     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9726 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9727
9728     ;;
9729 esac
9730 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9733   echo $ECHO_N "(cached) $ECHO_C" >&6
9734 else
9735   eval "$as_ac_Header=\$ac_header_preproc"
9736 fi
9737 ac_res=`eval echo '${'$as_ac_Header'}'`
9738                { echo "$as_me:$LINENO: result: $ac_res" >&5
9739 echo "${ECHO_T}$ac_res" >&6; }
9740
9741 fi
9742 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9743   cat >>confdefs.h <<_ACEOF
9744 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9745 _ACEOF
9746
9747 else
9748   { echo "$as_me:$LINENO: WARNING: found GNU readline library but not readline.h
9749 please add path to readline.h to CPPFLAGS in Makefile" >&5
9750 echo "$as_me: WARNING: found GNU readline library but not readline.h
9751 please add path to readline.h to CPPFLAGS in Makefile" >&2;}
9752 fi
9753
9754 done
9755
9756
9757 for ac_header in readline/history.h
9758 do
9759 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9761   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9764   echo $ECHO_N "(cached) $ECHO_C" >&6
9765 fi
9766 ac_res=`eval echo '${'$as_ac_Header'}'`
9767                { echo "$as_me:$LINENO: result: $ac_res" >&5
9768 echo "${ECHO_T}$ac_res" >&6; }
9769 else
9770   # Is the header compilable?
9771 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9772 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9773 cat >conftest.$ac_ext <<_ACEOF
9774 /* confdefs.h.  */
9775 _ACEOF
9776 cat confdefs.h >>conftest.$ac_ext
9777 cat >>conftest.$ac_ext <<_ACEOF
9778 /* end confdefs.h.  */
9779 $ac_includes_default
9780 #include <$ac_header>
9781 _ACEOF
9782 rm -f conftest.$ac_objext
9783 if { (ac_try="$ac_compile"
9784 case "(($ac_try" in
9785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9786   *) ac_try_echo=$ac_try;;
9787 esac
9788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9789   (eval "$ac_compile") 2>conftest.er1
9790   ac_status=$?
9791   grep -v '^ *+' conftest.er1 >conftest.err
9792   rm -f conftest.er1
9793   cat conftest.err >&5
9794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795   (exit $ac_status); } && {
9796          test -z "$ac_c_werror_flag" ||
9797          test ! -s conftest.err
9798        } && test -s conftest.$ac_objext; then
9799   ac_header_compiler=yes
9800 else
9801   echo "$as_me: failed program was:" >&5
9802 sed 's/^/| /' conftest.$ac_ext >&5
9803
9804         ac_header_compiler=no
9805 fi
9806
9807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9808 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9809 echo "${ECHO_T}$ac_header_compiler" >&6; }
9810
9811 # Is the header present?
9812 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9813 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9814 cat >conftest.$ac_ext <<_ACEOF
9815 /* confdefs.h.  */
9816 _ACEOF
9817 cat confdefs.h >>conftest.$ac_ext
9818 cat >>conftest.$ac_ext <<_ACEOF
9819 /* end confdefs.h.  */
9820 #include <$ac_header>
9821 _ACEOF
9822 if { (ac_try="$ac_cpp conftest.$ac_ext"
9823 case "(($ac_try" in
9824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9825   *) ac_try_echo=$ac_try;;
9826 esac
9827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9828   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9829   ac_status=$?
9830   grep -v '^ *+' conftest.er1 >conftest.err
9831   rm -f conftest.er1
9832   cat conftest.err >&5
9833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834   (exit $ac_status); } >/dev/null && {
9835          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9836          test ! -s conftest.err
9837        }; then
9838   ac_header_preproc=yes
9839 else
9840   echo "$as_me: failed program was:" >&5
9841 sed 's/^/| /' conftest.$ac_ext >&5
9842
9843   ac_header_preproc=no
9844 fi
9845
9846 rm -f conftest.err conftest.$ac_ext
9847 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9848 echo "${ECHO_T}$ac_header_preproc" >&6; }
9849
9850 # So?  What about this header?
9851 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9852   yes:no: )
9853     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9854 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9855     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9856 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9857     ac_header_preproc=yes
9858     ;;
9859   no:yes:* )
9860     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9861 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9862     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9863 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9864     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9865 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9866     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9867 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9868     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9869 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9870     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9871 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9872
9873     ;;
9874 esac
9875 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9877 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9878   echo $ECHO_N "(cached) $ECHO_C" >&6
9879 else
9880   eval "$as_ac_Header=\$ac_header_preproc"
9881 fi
9882 ac_res=`eval echo '${'$as_ac_Header'}'`
9883                { echo "$as_me:$LINENO: result: $ac_res" >&5
9884 echo "${ECHO_T}$ac_res" >&6; }
9885
9886 fi
9887 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9888   cat >>confdefs.h <<_ACEOF
9889 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9890 _ACEOF
9891
9892 else
9893   { echo "$as_me:$LINENO: WARNING: found GNU readline library but not history.h
9894 please add path to history.h to CPPFLAGS in Makefile" >&5
9895 echo "$as_me: WARNING: found GNU readline library but not history.h
9896 please add path to history.h to CPPFLAGS in Makefile" >&2;}
9897 fi
9898
9899 done
9900
9901
9902       if test "$enable_history_file" = yes; then
9903
9904 for ac_header in readline/tilde.h
9905 do
9906 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9908   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9911   echo $ECHO_N "(cached) $ECHO_C" >&6
9912 fi
9913 ac_res=`eval echo '${'$as_ac_Header'}'`
9914                { echo "$as_me:$LINENO: result: $ac_res" >&5
9915 echo "${ECHO_T}$ac_res" >&6; }
9916 else
9917   # Is the header compilable?
9918 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9919 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9920 cat >conftest.$ac_ext <<_ACEOF
9921 /* confdefs.h.  */
9922 _ACEOF
9923 cat confdefs.h >>conftest.$ac_ext
9924 cat >>conftest.$ac_ext <<_ACEOF
9925 /* end confdefs.h.  */
9926 $ac_includes_default
9927 #include <$ac_header>
9928 _ACEOF
9929 rm -f conftest.$ac_objext
9930 if { (ac_try="$ac_compile"
9931 case "(($ac_try" in
9932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9933   *) ac_try_echo=$ac_try;;
9934 esac
9935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9936   (eval "$ac_compile") 2>conftest.er1
9937   ac_status=$?
9938   grep -v '^ *+' conftest.er1 >conftest.err
9939   rm -f conftest.er1
9940   cat conftest.err >&5
9941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942   (exit $ac_status); } && {
9943          test -z "$ac_c_werror_flag" ||
9944          test ! -s conftest.err
9945        } && test -s conftest.$ac_objext; then
9946   ac_header_compiler=yes
9947 else
9948   echo "$as_me: failed program was:" >&5
9949 sed 's/^/| /' conftest.$ac_ext >&5
9950
9951         ac_header_compiler=no
9952 fi
9953
9954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9955 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9956 echo "${ECHO_T}$ac_header_compiler" >&6; }
9957
9958 # Is the header present?
9959 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9960 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9961 cat >conftest.$ac_ext <<_ACEOF
9962 /* confdefs.h.  */
9963 _ACEOF
9964 cat confdefs.h >>conftest.$ac_ext
9965 cat >>conftest.$ac_ext <<_ACEOF
9966 /* end confdefs.h.  */
9967 #include <$ac_header>
9968 _ACEOF
9969 if { (ac_try="$ac_cpp conftest.$ac_ext"
9970 case "(($ac_try" in
9971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9972   *) ac_try_echo=$ac_try;;
9973 esac
9974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9975   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9976   ac_status=$?
9977   grep -v '^ *+' conftest.er1 >conftest.err
9978   rm -f conftest.er1
9979   cat conftest.err >&5
9980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981   (exit $ac_status); } >/dev/null && {
9982          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9983          test ! -s conftest.err
9984        }; then
9985   ac_header_preproc=yes
9986 else
9987   echo "$as_me: failed program was:" >&5
9988 sed 's/^/| /' conftest.$ac_ext >&5
9989
9990   ac_header_preproc=no
9991 fi
9992
9993 rm -f conftest.err conftest.$ac_ext
9994 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9995 echo "${ECHO_T}$ac_header_preproc" >&6; }
9996
9997 # So?  What about this header?
9998 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9999   yes:no: )
10000     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10001 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10002     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10003 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10004     ac_header_preproc=yes
10005     ;;
10006   no:yes:* )
10007     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10008 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10009     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10010 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10011     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10012 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10013     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10014 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10015     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10016 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10017     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10018 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10019
10020     ;;
10021 esac
10022 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10025   echo $ECHO_N "(cached) $ECHO_C" >&6
10026 else
10027   eval "$as_ac_Header=\$ac_header_preproc"
10028 fi
10029 ac_res=`eval echo '${'$as_ac_Header'}'`
10030                { echo "$as_me:$LINENO: result: $ac_res" >&5
10031 echo "${ECHO_T}$ac_res" >&6; }
10032
10033 fi
10034 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10035   cat >>confdefs.h <<_ACEOF
10036 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10037 _ACEOF
10038
10039 cat >>confdefs.h <<\_ACEOF
10040 #define GNUPLOT_HISTORY 1
10041 _ACEOF
10042
10043 fi
10044
10045 done
10046
10047       fi
10048
10049     fi # ! ac_cv_lib_readline_readline = no
10050
10051    fi # ! with_readline = bsd
10052
10053   fi # ! with_readline != builtin
10054
10055   if test "$with_readline" = builtin; then
10056
10057 cat >>confdefs.h <<\_ACEOF
10058 #define READLINE 1
10059 _ACEOF
10060
10061     if test "$enable_history_file" = yes; then
10062
10063 cat >>confdefs.h <<\_ACEOF
10064 #define GNUPLOT_HISTORY 1
10065 _ACEOF
10066
10067     fi
10068   fi
10069
10070 fi
10071
10072
10073 # Check whether --with-plot was given.
10074 if test "${with_plot+set}" = set; then
10075   withval=$with_plot; if test "$withval" = yes; then
10076           { echo "$as_me:$LINENO: checking for openpl in -lplot" >&5
10077 echo $ECHO_N "checking for openpl in -lplot... $ECHO_C" >&6; }
10078 if test "${ac_cv_lib_plot_openpl+set}" = set; then
10079   echo $ECHO_N "(cached) $ECHO_C" >&6
10080 else
10081   ac_check_lib_save_LIBS=$LIBS
10082 LIBS="-lplot  $LIBS"
10083 cat >conftest.$ac_ext <<_ACEOF
10084 /* confdefs.h.  */
10085 _ACEOF
10086 cat confdefs.h >>conftest.$ac_ext
10087 cat >>conftest.$ac_ext <<_ACEOF
10088 /* end confdefs.h.  */
10089
10090 /* Override any GCC internal prototype to avoid an error.
10091    Use char because int might match the return type of a GCC
10092    builtin and then its argument prototype would still apply.  */
10093 #ifdef __cplusplus
10094 extern "C"
10095 #endif
10096 char openpl ();
10097 int
10098 main ()
10099 {
10100 return openpl ();
10101   ;
10102   return 0;
10103 }
10104 _ACEOF
10105 rm -f conftest.$ac_objext conftest$ac_exeext
10106 if { (ac_try="$ac_link"
10107 case "(($ac_try" in
10108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10109   *) ac_try_echo=$ac_try;;
10110 esac
10111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10112   (eval "$ac_link") 2>conftest.er1
10113   ac_status=$?
10114   grep -v '^ *+' conftest.er1 >conftest.err
10115   rm -f conftest.er1
10116   cat conftest.err >&5
10117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118   (exit $ac_status); } && {
10119          test -z "$ac_c_werror_flag" ||
10120          test ! -s conftest.err
10121        } && test -s conftest$ac_exeext &&
10122        $as_test_x conftest$ac_exeext; then
10123   ac_cv_lib_plot_openpl=yes
10124 else
10125   echo "$as_me: failed program was:" >&5
10126 sed 's/^/| /' conftest.$ac_ext >&5
10127
10128         ac_cv_lib_plot_openpl=no
10129 fi
10130
10131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10132       conftest$ac_exeext conftest.$ac_ext
10133 LIBS=$ac_check_lib_save_LIBS
10134 fi
10135 { echo "$as_me:$LINENO: result: $ac_cv_lib_plot_openpl" >&5
10136 echo "${ECHO_T}$ac_cv_lib_plot_openpl" >&6; }
10137 if test $ac_cv_lib_plot_openpl = yes; then
10138
10139 cat >>confdefs.h <<\_ACEOF
10140 #define UNIXPLOT 1
10141 _ACEOF
10142
10143         TERMLIBS="-lplot $TERMLIBS"
10144 else
10145   with_plot=no
10146 fi
10147
10148    elif test "$withval" != no; then
10149           if test -d $withval/include; then
10150        CPPFLAGS="$CPPFLAGS -I$withval/include"
10151      fi
10152      if test -d $withval/lib; then
10153        LDFLAGS="$LDFLAGS -L$withval/lib"
10154      fi
10155      TERMXLIBS="$X_LIBS -lXaw -lXmu -lXt -lXext -lX11"
10156      { echo "$as_me:$LINENO: checking for pl_textangle in -lplot" >&5
10157 echo $ECHO_N "checking for pl_textangle in -lplot... $ECHO_C" >&6; }
10158 if test "${ac_cv_lib_plot_pl_textangle+set}" = set; then
10159   echo $ECHO_N "(cached) $ECHO_C" >&6
10160 else
10161   ac_check_lib_save_LIBS=$LIBS
10162 LIBS="-lplot $TERMXLIBS $LIBS"
10163 cat >conftest.$ac_ext <<_ACEOF
10164 /* confdefs.h.  */
10165 _ACEOF
10166 cat confdefs.h >>conftest.$ac_ext
10167 cat >>conftest.$ac_ext <<_ACEOF
10168 /* end confdefs.h.  */
10169
10170 /* Override any GCC internal prototype to avoid an error.
10171    Use char because int might match the return type of a GCC
10172    builtin and then its argument prototype would still apply.  */
10173 #ifdef __cplusplus
10174 extern "C"
10175 #endif
10176 char pl_textangle ();
10177 int
10178 main ()
10179 {
10180 return pl_textangle ();
10181   ;
10182   return 0;
10183 }
10184 _ACEOF
10185 rm -f conftest.$ac_objext conftest$ac_exeext
10186 if { (ac_try="$ac_link"
10187 case "(($ac_try" in
10188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10189   *) ac_try_echo=$ac_try;;
10190 esac
10191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10192   (eval "$ac_link") 2>conftest.er1
10193   ac_status=$?
10194   grep -v '^ *+' conftest.er1 >conftest.err
10195   rm -f conftest.er1
10196   cat conftest.err >&5
10197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198   (exit $ac_status); } && {
10199          test -z "$ac_c_werror_flag" ||
10200          test ! -s conftest.err
10201        } && test -s conftest$ac_exeext &&
10202        $as_test_x conftest$ac_exeext; then
10203   ac_cv_lib_plot_pl_textangle=yes
10204 else
10205   echo "$as_me: failed program was:" >&5
10206 sed 's/^/| /' conftest.$ac_ext >&5
10207
10208         ac_cv_lib_plot_pl_textangle=no
10209 fi
10210
10211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10212       conftest$ac_exeext conftest.$ac_ext
10213 LIBS=$ac_check_lib_save_LIBS
10214 fi
10215 { echo "$as_me:$LINENO: result: $ac_cv_lib_plot_pl_textangle" >&5
10216 echo "${ECHO_T}$ac_cv_lib_plot_pl_textangle" >&6; }
10217 if test $ac_cv_lib_plot_pl_textangle = yes; then
10218   TERMLIBS="-lplot $TERMLIBS"
10219
10220 cat >>confdefs.h <<\_ACEOF
10221 #define GNUGRAPH 1
10222 _ACEOF
10223
10224 else
10225   { echo "$as_me:$LINENO: WARNING: GNU plotutils v2.2 or newer required -- disabling gnugraph terminal" >&5
10226 echo "$as_me: WARNING: GNU plotutils v2.2 or newer required -- disabling gnugraph terminal" >&2;}
10227         TERMXLIBS=
10228         with_plot=no
10229 fi
10230
10231    fi
10232 fi
10233
10234
10235 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
10236 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
10237 if test "${ac_cv_lib_z_deflate+set}" = set; then
10238   echo $ECHO_N "(cached) $ECHO_C" >&6
10239 else
10240   ac_check_lib_save_LIBS=$LIBS
10241 LIBS="-lz  $LIBS"
10242 cat >conftest.$ac_ext <<_ACEOF
10243 /* confdefs.h.  */
10244 _ACEOF
10245 cat confdefs.h >>conftest.$ac_ext
10246 cat >>conftest.$ac_ext <<_ACEOF
10247 /* end confdefs.h.  */
10248
10249 /* Override any GCC internal prototype to avoid an error.
10250    Use char because int might match the return type of a GCC
10251    builtin and then its argument prototype would still apply.  */
10252 #ifdef __cplusplus
10253 extern "C"
10254 #endif
10255 char deflate ();
10256 int
10257 main ()
10258 {
10259 return deflate ();
10260   ;
10261   return 0;
10262 }
10263 _ACEOF
10264 rm -f conftest.$ac_objext conftest$ac_exeext
10265 if { (ac_try="$ac_link"
10266 case "(($ac_try" in
10267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10268   *) ac_try_echo=$ac_try;;
10269 esac
10270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10271   (eval "$ac_link") 2>conftest.er1
10272   ac_status=$?
10273   grep -v '^ *+' conftest.er1 >conftest.err
10274   rm -f conftest.er1
10275   cat conftest.err >&5
10276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277   (exit $ac_status); } && {
10278          test -z "$ac_c_werror_flag" ||
10279          test ! -s conftest.err
10280        } && test -s conftest$ac_exeext &&
10281        $as_test_x conftest$ac_exeext; then
10282   ac_cv_lib_z_deflate=yes
10283 else
10284   echo "$as_me: failed program was:" >&5
10285 sed 's/^/| /' conftest.$ac_ext >&5
10286
10287         ac_cv_lib_z_deflate=no
10288 fi
10289
10290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10291       conftest$ac_exeext conftest.$ac_ext
10292 LIBS=$ac_check_lib_save_LIBS
10293 fi
10294 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
10295 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
10296 if test $ac_cv_lib_z_deflate = yes; then
10297   TERMLIBS="$TERMLIBS -lz"
10298
10299 cat >>confdefs.h <<\_ACEOF
10300 #define HAVE_LIBZ 1
10301 _ACEOF
10302
10303    if test "${ac_cv_header_zlib_h+set}" = set; then
10304   { echo "$as_me:$LINENO: checking for zlib.h" >&5
10305 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10306 if test "${ac_cv_header_zlib_h+set}" = set; then
10307   echo $ECHO_N "(cached) $ECHO_C" >&6
10308 fi
10309 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10310 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10311 else
10312   # Is the header compilable?
10313 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
10314 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
10315 cat >conftest.$ac_ext <<_ACEOF
10316 /* confdefs.h.  */
10317 _ACEOF
10318 cat confdefs.h >>conftest.$ac_ext
10319 cat >>conftest.$ac_ext <<_ACEOF
10320 /* end confdefs.h.  */
10321 $ac_includes_default
10322 #include <zlib.h>
10323 _ACEOF
10324 rm -f conftest.$ac_objext
10325 if { (ac_try="$ac_compile"
10326 case "(($ac_try" in
10327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10328   *) ac_try_echo=$ac_try;;
10329 esac
10330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10331   (eval "$ac_compile") 2>conftest.er1
10332   ac_status=$?
10333   grep -v '^ *+' conftest.er1 >conftest.err
10334   rm -f conftest.er1
10335   cat conftest.err >&5
10336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337   (exit $ac_status); } && {
10338          test -z "$ac_c_werror_flag" ||
10339          test ! -s conftest.err
10340        } && test -s conftest.$ac_objext; then
10341   ac_header_compiler=yes
10342 else
10343   echo "$as_me: failed program was:" >&5
10344 sed 's/^/| /' conftest.$ac_ext >&5
10345
10346         ac_header_compiler=no
10347 fi
10348
10349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10350 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10351 echo "${ECHO_T}$ac_header_compiler" >&6; }
10352
10353 # Is the header present?
10354 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
10355 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
10356 cat >conftest.$ac_ext <<_ACEOF
10357 /* confdefs.h.  */
10358 _ACEOF
10359 cat confdefs.h >>conftest.$ac_ext
10360 cat >>conftest.$ac_ext <<_ACEOF
10361 /* end confdefs.h.  */
10362 #include <zlib.h>
10363 _ACEOF
10364 if { (ac_try="$ac_cpp conftest.$ac_ext"
10365 case "(($ac_try" in
10366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10367   *) ac_try_echo=$ac_try;;
10368 esac
10369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10370   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10371   ac_status=$?
10372   grep -v '^ *+' conftest.er1 >conftest.err
10373   rm -f conftest.er1
10374   cat conftest.err >&5
10375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376   (exit $ac_status); } >/dev/null && {
10377          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10378          test ! -s conftest.err
10379        }; then
10380   ac_header_preproc=yes
10381 else
10382   echo "$as_me: failed program was:" >&5
10383 sed 's/^/| /' conftest.$ac_ext >&5
10384
10385   ac_header_preproc=no
10386 fi
10387
10388 rm -f conftest.err conftest.$ac_ext
10389 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10390 echo "${ECHO_T}$ac_header_preproc" >&6; }
10391
10392 # So?  What about this header?
10393 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10394   yes:no: )
10395     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10396 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10397     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
10398 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
10399     ac_header_preproc=yes
10400     ;;
10401   no:yes:* )
10402     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
10403 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
10404     { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
10405 echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
10406     { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
10407 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
10408     { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
10409 echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10410     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
10411 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
10412     { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
10413 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
10414
10415     ;;
10416 esac
10417 { echo "$as_me:$LINENO: checking for zlib.h" >&5
10418 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10419 if test "${ac_cv_header_zlib_h+set}" = set; then
10420   echo $ECHO_N "(cached) $ECHO_C" >&6
10421 else
10422   ac_cv_header_zlib_h=$ac_header_preproc
10423 fi
10424 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10425 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10426
10427 fi
10428 if test $ac_cv_header_zlib_h = yes; then
10429   :
10430 else
10431   { echo "$as_me:$LINENO: WARNING: found z library but not zlib.h
10432 please add path to zlib.h to CPPFLAGS in Makefile" >&5
10433 echo "$as_me: WARNING: found z library but not zlib.h
10434 please add path to zlib.h to CPPFLAGS in Makefile" >&2;}
10435 fi
10436
10437
10438 else
10439   { echo "$as_me:$LINENO: WARNING: zlib is required - see http://www.gzip.org/zlib/" >&5
10440 echo "$as_me: WARNING: zlib is required - see http://www.gzip.org/zlib/" >&2;}
10441 fi
10442
10443
10444
10445 # Check whether --with-gd was given.
10446 if test "${with_gd+set}" = set; then
10447   withval=$with_gd;
10448 else
10449   with_gd=yes
10450 fi
10451
10452
10453 if test "$with_gd" != no; then
10454   # Extract the first word of "gdlib-config", so it can be a program name with args.
10455 set dummy gdlib-config; ac_word=$2
10456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10458 if test "${ac_cv_path_GDLIB_CONFIG+set}" = set; then
10459   echo $ECHO_N "(cached) $ECHO_C" >&6
10460 else
10461   case $GDLIB_CONFIG in
10462   [\\/]* | ?:[\\/]*)
10463   ac_cv_path_GDLIB_CONFIG="$GDLIB_CONFIG" # Let the user override the test with a path.
10464   ;;
10465   *)
10466   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10467 for as_dir in $PATH
10468 do
10469   IFS=$as_save_IFS
10470   test -z "$as_dir" && as_dir=.
10471   for ac_exec_ext in '' $ac_executable_extensions; do
10472   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10473     ac_cv_path_GDLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10475     break 2
10476   fi
10477 done
10478 done
10479 IFS=$as_save_IFS
10480
10481   ;;
10482 esac
10483 fi
10484 GDLIB_CONFIG=$ac_cv_path_GDLIB_CONFIG
10485 if test -n "$GDLIB_CONFIG"; then
10486   { echo "$as_me:$LINENO: result: $GDLIB_CONFIG" >&5
10487 echo "${ECHO_T}$GDLIB_CONFIG" >&6; }
10488 else
10489   { echo "$as_me:$LINENO: result: no" >&5
10490 echo "${ECHO_T}no" >&6; }
10491 fi
10492
10493
10494   if test -n "$GDLIB_CONFIG"; then
10495     libgd_CPPFLAGS=`gdlib-config --cflags`
10496     libgd_LDFLAGS=`gdlib-config --ldflags`
10497   elif test -d "$with_gd"; then
10498     libgd_CPPFLAGS="-I$with_gd/include"
10499     libgd_LDFLAGS="-L$with_gd/lib"
10500   fi
10501
10502   _cppflags="$CPPFLAGS"
10503   _ldflags="$LDFLAGS"
10504   CPPFLAGS="$CPPFLAGS $libgd_CPPFLAGS"
10505   LDFLAGS="$LDFLAGS $libgd_LDFLAGS"
10506
10507   { echo "$as_me:$LINENO: checking for gdImageCreate in -lgd" >&5
10508 echo $ECHO_N "checking for gdImageCreate in -lgd... $ECHO_C" >&6; }
10509 if test "${ac_cv_lib_gd_gdImageCreate+set}" = set; then
10510   echo $ECHO_N "(cached) $ECHO_C" >&6
10511 else
10512   ac_check_lib_save_LIBS=$LIBS
10513 LIBS="-lgd  $LIBS"
10514 cat >conftest.$ac_ext <<_ACEOF
10515 /* confdefs.h.  */
10516 _ACEOF
10517 cat confdefs.h >>conftest.$ac_ext
10518 cat >>conftest.$ac_ext <<_ACEOF
10519 /* end confdefs.h.  */
10520
10521 /* Override any GCC internal prototype to avoid an error.
10522    Use char because int might match the return type of a GCC
10523    builtin and then its argument prototype would still apply.  */
10524 #ifdef __cplusplus
10525 extern "C"
10526 #endif
10527 char gdImageCreate ();
10528 int
10529 main ()
10530 {
10531 return gdImageCreate ();
10532   ;
10533   return 0;
10534 }
10535 _ACEOF
10536 rm -f conftest.$ac_objext conftest$ac_exeext
10537 if { (ac_try="$ac_link"
10538 case "(($ac_try" in
10539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10540   *) ac_try_echo=$ac_try;;
10541 esac
10542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10543   (eval "$ac_link") 2>conftest.er1
10544   ac_status=$?
10545   grep -v '^ *+' conftest.er1 >conftest.err
10546   rm -f conftest.er1
10547   cat conftest.err >&5
10548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549   (exit $ac_status); } && {
10550          test -z "$ac_c_werror_flag" ||
10551          test ! -s conftest.err
10552        } && test -s conftest$ac_exeext &&
10553        $as_test_x conftest$ac_exeext; then
10554   ac_cv_lib_gd_gdImageCreate=yes
10555 else
10556   echo "$as_me: failed program was:" >&5
10557 sed 's/^/| /' conftest.$ac_ext >&5
10558
10559         ac_cv_lib_gd_gdImageCreate=no
10560 fi
10561
10562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10563       conftest$ac_exeext conftest.$ac_ext
10564 LIBS=$ac_check_lib_save_LIBS
10565 fi
10566 { echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageCreate" >&5
10567 echo "${ECHO_T}$ac_cv_lib_gd_gdImageCreate" >&6; }
10568 if test $ac_cv_lib_gd_gdImageCreate = yes; then
10569
10570 cat >>confdefs.h <<\_ACEOF
10571 #define HAVE_LIBGD 1
10572 _ACEOF
10573
10574
10575 for ac_header in gd.h
10576 do
10577 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10578 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10579   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10581 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10582   echo $ECHO_N "(cached) $ECHO_C" >&6
10583 fi
10584 ac_res=`eval echo '${'$as_ac_Header'}'`
10585                { echo "$as_me:$LINENO: result: $ac_res" >&5
10586 echo "${ECHO_T}$ac_res" >&6; }
10587 else
10588   # Is the header compilable?
10589 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10590 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10591 cat >conftest.$ac_ext <<_ACEOF
10592 /* confdefs.h.  */
10593 _ACEOF
10594 cat confdefs.h >>conftest.$ac_ext
10595 cat >>conftest.$ac_ext <<_ACEOF
10596 /* end confdefs.h.  */
10597 $ac_includes_default
10598 #include <$ac_header>
10599 _ACEOF
10600 rm -f conftest.$ac_objext
10601 if { (ac_try="$ac_compile"
10602 case "(($ac_try" in
10603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10604   *) ac_try_echo=$ac_try;;
10605 esac
10606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10607   (eval "$ac_compile") 2>conftest.er1
10608   ac_status=$?
10609   grep -v '^ *+' conftest.er1 >conftest.err
10610   rm -f conftest.er1
10611   cat conftest.err >&5
10612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613   (exit $ac_status); } && {
10614          test -z "$ac_c_werror_flag" ||
10615          test ! -s conftest.err
10616        } && test -s conftest.$ac_objext; then
10617   ac_header_compiler=yes
10618 else
10619   echo "$as_me: failed program was:" >&5
10620 sed 's/^/| /' conftest.$ac_ext >&5
10621
10622         ac_header_compiler=no
10623 fi
10624
10625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10626 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10627 echo "${ECHO_T}$ac_header_compiler" >&6; }
10628
10629 # Is the header present?
10630 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10631 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10632 cat >conftest.$ac_ext <<_ACEOF
10633 /* confdefs.h.  */
10634 _ACEOF
10635 cat confdefs.h >>conftest.$ac_ext
10636 cat >>conftest.$ac_ext <<_ACEOF
10637 /* end confdefs.h.  */
10638 #include <$ac_header>
10639 _ACEOF
10640 if { (ac_try="$ac_cpp conftest.$ac_ext"
10641 case "(($ac_try" in
10642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10643   *) ac_try_echo=$ac_try;;
10644 esac
10645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10646   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10647   ac_status=$?
10648   grep -v '^ *+' conftest.er1 >conftest.err
10649   rm -f conftest.er1
10650   cat conftest.err >&5
10651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652   (exit $ac_status); } >/dev/null && {
10653          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10654          test ! -s conftest.err
10655        }; then
10656   ac_header_preproc=yes
10657 else
10658   echo "$as_me: failed program was:" >&5
10659 sed 's/^/| /' conftest.$ac_ext >&5
10660
10661   ac_header_preproc=no
10662 fi
10663
10664 rm -f conftest.err conftest.$ac_ext
10665 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10666 echo "${ECHO_T}$ac_header_preproc" >&6; }
10667
10668 # So?  What about this header?
10669 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10670   yes:no: )
10671     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10672 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10673     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10674 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10675     ac_header_preproc=yes
10676     ;;
10677   no:yes:* )
10678     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10679 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10680     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10681 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10682     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10683 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10684     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10685 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10686     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10687 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10688     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10689 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10690
10691     ;;
10692 esac
10693 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10696   echo $ECHO_N "(cached) $ECHO_C" >&6
10697 else
10698   eval "$as_ac_Header=\$ac_header_preproc"
10699 fi
10700 ac_res=`eval echo '${'$as_ac_Header'}'`
10701                { echo "$as_me:$LINENO: result: $ac_res" >&5
10702 echo "${ECHO_T}$ac_res" >&6; }
10703
10704 fi
10705 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10706   cat >>confdefs.h <<_ACEOF
10707 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10708 _ACEOF
10709
10710 else
10711   { echo "$as_me:$LINENO: WARNING: please add path to gd.h to CPPFLAGS in Makefile" >&5
10712 echo "$as_me: WARNING: please add path to gd.h to CPPFLAGS in Makefile" >&2;}
10713 fi
10714
10715 done
10716
10717
10718           { echo "$as_me:$LINENO: checking for gdImageGif in -lgd" >&5
10719 echo $ECHO_N "checking for gdImageGif in -lgd... $ECHO_C" >&6; }
10720 if test "${ac_cv_lib_gd_gdImageGif+set}" = set; then
10721   echo $ECHO_N "(cached) $ECHO_C" >&6
10722 else
10723   ac_check_lib_save_LIBS=$LIBS
10724 LIBS="-lgd  $LIBS"
10725 cat >conftest.$ac_ext <<_ACEOF
10726 /* confdefs.h.  */
10727 _ACEOF
10728 cat confdefs.h >>conftest.$ac_ext
10729 cat >>conftest.$ac_ext <<_ACEOF
10730 /* end confdefs.h.  */
10731
10732 /* Override any GCC internal prototype to avoid an error.
10733    Use char because int might match the return type of a GCC
10734    builtin and then its argument prototype would still apply.  */
10735 #ifdef __cplusplus
10736 extern "C"
10737 #endif
10738 char gdImageGif ();
10739 int
10740 main ()
10741 {
10742 return gdImageGif ();
10743   ;
10744   return 0;
10745 }
10746 _ACEOF
10747 rm -f conftest.$ac_objext conftest$ac_exeext
10748 if { (ac_try="$ac_link"
10749 case "(($ac_try" in
10750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10751   *) ac_try_echo=$ac_try;;
10752 esac
10753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10754   (eval "$ac_link") 2>conftest.er1
10755   ac_status=$?
10756   grep -v '^ *+' conftest.er1 >conftest.err
10757   rm -f conftest.er1
10758   cat conftest.err >&5
10759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760   (exit $ac_status); } && {
10761          test -z "$ac_c_werror_flag" ||
10762          test ! -s conftest.err
10763        } && test -s conftest$ac_exeext &&
10764        $as_test_x conftest$ac_exeext; then
10765   ac_cv_lib_gd_gdImageGif=yes
10766 else
10767   echo "$as_me: failed program was:" >&5
10768 sed 's/^/| /' conftest.$ac_ext >&5
10769
10770         ac_cv_lib_gd_gdImageGif=no
10771 fi
10772
10773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10774       conftest$ac_exeext conftest.$ac_ext
10775 LIBS=$ac_check_lib_save_LIBS
10776 fi
10777 { echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageGif" >&5
10778 echo "${ECHO_T}$ac_cv_lib_gd_gdImageGif" >&6; }
10779 if test $ac_cv_lib_gd_gdImageGif = yes; then
10780
10781 cat >>confdefs.h <<\_ACEOF
10782 #define HAVE_GD_GIF 1
10783 _ACEOF
10784
10785 fi
10786
10787      { echo "$as_me:$LINENO: checking for gdImageGifAnimBegin in -lgd" >&5
10788 echo $ECHO_N "checking for gdImageGifAnimBegin in -lgd... $ECHO_C" >&6; }
10789 if test "${ac_cv_lib_gd_gdImageGifAnimBegin+set}" = set; then
10790   echo $ECHO_N "(cached) $ECHO_C" >&6
10791 else
10792   ac_check_lib_save_LIBS=$LIBS
10793 LIBS="-lgd  $LIBS"
10794 cat >conftest.$ac_ext <<_ACEOF
10795 /* confdefs.h.  */
10796 _ACEOF
10797 cat confdefs.h >>conftest.$ac_ext
10798 cat >>conftest.$ac_ext <<_ACEOF
10799 /* end confdefs.h.  */
10800
10801 /* Override any GCC internal prototype to avoid an error.
10802    Use char because int might match the return type of a GCC
10803    builtin and then its argument prototype would still apply.  */
10804 #ifdef __cplusplus
10805 extern "C"
10806 #endif
10807 char gdImageGifAnimBegin ();
10808 int
10809 main ()
10810 {
10811 return gdImageGifAnimBegin ();
10812   ;
10813   return 0;
10814 }
10815 _ACEOF
10816 rm -f conftest.$ac_objext conftest$ac_exeext
10817 if { (ac_try="$ac_link"
10818 case "(($ac_try" in
10819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10820   *) ac_try_echo=$ac_try;;
10821 esac
10822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10823   (eval "$ac_link") 2>conftest.er1
10824   ac_status=$?
10825   grep -v '^ *+' conftest.er1 >conftest.err
10826   rm -f conftest.er1
10827   cat conftest.err >&5
10828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829   (exit $ac_status); } && {
10830          test -z "$ac_c_werror_flag" ||
10831          test ! -s conftest.err
10832        } && test -s conftest$ac_exeext &&
10833        $as_test_x conftest$ac_exeext; then
10834   ac_cv_lib_gd_gdImageGifAnimBegin=yes
10835 else
10836   echo "$as_me: failed program was:" >&5
10837 sed 's/^/| /' conftest.$ac_ext >&5
10838
10839         ac_cv_lib_gd_gdImageGifAnimBegin=no
10840 fi
10841
10842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10843       conftest$ac_exeext conftest.$ac_ext
10844 LIBS=$ac_check_lib_save_LIBS
10845 fi
10846 { echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageGifAnimBegin" >&5
10847 echo "${ECHO_T}$ac_cv_lib_gd_gdImageGifAnimBegin" >&6; }
10848 if test $ac_cv_lib_gd_gdImageGifAnimBegin = yes; then
10849
10850 cat >>confdefs.h <<\_ACEOF
10851 #define GIF_ANIMATION 1
10852 _ACEOF
10853
10854 fi
10855
10856
10857      _libs="$LIBS"
10858      LIBS="$LIBS -ljpeg"
10859           { echo "$as_me:$LINENO: checking for gdImageJpeg in -lgd" >&5
10860 echo $ECHO_N "checking for gdImageJpeg in -lgd... $ECHO_C" >&6; }
10861 if test "${ac_cv_lib_gd_gdImageJpeg+set}" = set; then
10862   echo $ECHO_N "(cached) $ECHO_C" >&6
10863 else
10864   ac_check_lib_save_LIBS=$LIBS
10865 LIBS="-lgd  $LIBS"
10866 cat >conftest.$ac_ext <<_ACEOF
10867 /* confdefs.h.  */
10868 _ACEOF
10869 cat confdefs.h >>conftest.$ac_ext
10870 cat >>conftest.$ac_ext <<_ACEOF
10871 /* end confdefs.h.  */
10872
10873 /* Override any GCC internal prototype to avoid an error.
10874    Use char because int might match the return type of a GCC
10875    builtin and then its argument prototype would still apply.  */
10876 #ifdef __cplusplus
10877 extern "C"
10878 #endif
10879 char gdImageJpeg ();
10880 int
10881 main ()
10882 {
10883 return gdImageJpeg ();
10884   ;
10885   return 0;
10886 }
10887 _ACEOF
10888 rm -f conftest.$ac_objext conftest$ac_exeext
10889 if { (ac_try="$ac_link"
10890 case "(($ac_try" in
10891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10892   *) ac_try_echo=$ac_try;;
10893 esac
10894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10895   (eval "$ac_link") 2>conftest.er1
10896   ac_status=$?
10897   grep -v '^ *+' conftest.er1 >conftest.err
10898   rm -f conftest.er1
10899   cat conftest.err >&5
10900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901   (exit $ac_status); } && {
10902          test -z "$ac_c_werror_flag" ||
10903          test ! -s conftest.err
10904        } && test -s conftest$ac_exeext &&
10905        $as_test_x conftest$ac_exeext; then
10906   ac_cv_lib_gd_gdImageJpeg=yes
10907 else
10908   echo "$as_me: failed program was:" >&5
10909 sed 's/^/| /' conftest.$ac_ext >&5
10910
10911         ac_cv_lib_gd_gdImageJpeg=no
10912 fi
10913
10914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10915       conftest$ac_exeext conftest.$ac_ext
10916 LIBS=$ac_check_lib_save_LIBS
10917 fi
10918 { echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageJpeg" >&5
10919 echo "${ECHO_T}$ac_cv_lib_gd_gdImageJpeg" >&6; }
10920 if test $ac_cv_lib_gd_gdImageJpeg = yes; then
10921
10922 cat >>confdefs.h <<\_ACEOF
10923 #define HAVE_GD_JPEG 1
10924 _ACEOF
10925
10926         libgd_LIBS="$libgd_LIBS -ljpeg"
10927 fi
10928
10929
10930      LIBS="$_libs $libgd_LIBS -lfreetype"
10931           { echo "$as_me:$LINENO: checking for gdImageStringFT in -lgd" >&5
10932 echo $ECHO_N "checking for gdImageStringFT in -lgd... $ECHO_C" >&6; }
10933 if test "${ac_cv_lib_gd_gdImageStringFT+set}" = set; then
10934   echo $ECHO_N "(cached) $ECHO_C" >&6
10935 else
10936   ac_check_lib_save_LIBS=$LIBS
10937 LIBS="-lgd  $LIBS"
10938 cat >conftest.$ac_ext <<_ACEOF
10939 /* confdefs.h.  */
10940 _ACEOF
10941 cat confdefs.h >>conftest.$ac_ext
10942 cat >>conftest.$ac_ext <<_ACEOF
10943 /* end confdefs.h.  */
10944
10945 /* Override any GCC internal prototype to avoid an error.
10946    Use char because int might match the return type of a GCC
10947    builtin and then its argument prototype would still apply.  */
10948 #ifdef __cplusplus
10949 extern "C"
10950 #endif
10951 char gdImageStringFT ();
10952 int
10953 main ()
10954 {
10955 return gdImageStringFT ();
10956   ;
10957   return 0;
10958 }
10959 _ACEOF
10960 rm -f conftest.$ac_objext conftest$ac_exeext
10961 if { (ac_try="$ac_link"
10962 case "(($ac_try" in
10963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10964   *) ac_try_echo=$ac_try;;
10965 esac
10966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10967   (eval "$ac_link") 2>conftest.er1
10968   ac_status=$?
10969   grep -v '^ *+' conftest.er1 >conftest.err
10970   rm -f conftest.er1
10971   cat conftest.err >&5
10972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973   (exit $ac_status); } && {
10974          test -z "$ac_c_werror_flag" ||
10975          test ! -s conftest.err
10976        } && test -s conftest$ac_exeext &&
10977        $as_test_x conftest$ac_exeext; then
10978   ac_cv_lib_gd_gdImageStringFT=yes
10979 else
10980   echo "$as_me: failed program was:" >&5
10981 sed 's/^/| /' conftest.$ac_ext >&5
10982
10983         ac_cv_lib_gd_gdImageStringFT=no
10984 fi
10985
10986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10987       conftest$ac_exeext conftest.$ac_ext
10988 LIBS=$ac_check_lib_save_LIBS
10989 fi
10990 { echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageStringFT" >&5
10991 echo "${ECHO_T}$ac_cv_lib_gd_gdImageStringFT" >&6; }
10992 if test $ac_cv_lib_gd_gdImageStringFT = yes; then
10993   have_ttf=yes
10994 else
10995   { echo "$as_me:$LINENO: checking for gdImageStringTTF in -lgd" >&5
10996 echo $ECHO_N "checking for gdImageStringTTF in -lgd... $ECHO_C" >&6; }
10997 if test "${ac_cv_lib_gd_gdImageStringTTF+set}" = set; then
10998   echo $ECHO_N "(cached) $ECHO_C" >&6
10999 else
11000   ac_check_lib_save_LIBS=$LIBS
11001 LIBS="-lgd  $LIBS"
11002 cat >conftest.$ac_ext <<_ACEOF
11003 /* confdefs.h.  */
11004 _ACEOF
11005 cat confdefs.h >>conftest.$ac_ext
11006 cat >>conftest.$ac_ext <<_ACEOF
11007 /* end confdefs.h.  */
11008
11009 /* Override any GCC internal prototype to avoid an error.
11010    Use char because int might match the return type of a GCC
11011    builtin and then its argument prototype would still apply.  */
11012 #ifdef __cplusplus
11013 extern "C"
11014 #endif
11015 char gdImageStringTTF ();
11016 int
11017 main ()
11018 {
11019 return gdImageStringTTF ();
11020   ;
11021   return 0;
11022 }
11023 _ACEOF
11024 rm -f conftest.$ac_objext conftest$ac_exeext
11025 if { (ac_try="$ac_link"
11026 case "(($ac_try" in
11027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11028   *) ac_try_echo=$ac_try;;
11029 esac
11030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11031   (eval "$ac_link") 2>conftest.er1
11032   ac_status=$?
11033   grep -v '^ *+' conftest.er1 >conftest.err
11034   rm -f conftest.er1
11035   cat conftest.err >&5
11036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037   (exit $ac_status); } && {
11038          test -z "$ac_c_werror_flag" ||
11039          test ! -s conftest.err
11040        } && test -s conftest$ac_exeext &&
11041        $as_test_x conftest$ac_exeext; then
11042   ac_cv_lib_gd_gdImageStringTTF=yes
11043 else
11044   echo "$as_me: failed program was:" >&5
11045 sed 's/^/| /' conftest.$ac_ext >&5
11046
11047         ac_cv_lib_gd_gdImageStringTTF=no
11048 fi
11049
11050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11051       conftest$ac_exeext conftest.$ac_ext
11052 LIBS=$ac_check_lib_save_LIBS
11053 fi
11054 { echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageStringTTF" >&5
11055 echo "${ECHO_T}$ac_cv_lib_gd_gdImageStringTTF" >&6; }
11056 if test $ac_cv_lib_gd_gdImageStringTTF = yes; then
11057
11058 cat >>confdefs.h <<\_ACEOF
11059 #define gdImageStringFT gdImageStringTTF
11060 _ACEOF
11061
11062           have_ttf=yes
11063 fi
11064
11065 fi
11066
11067
11068      if test "$have_ttf" = yes; then
11069
11070 cat >>confdefs.h <<\_ACEOF
11071 #define HAVE_GD_TTF 1
11072 _ACEOF
11073
11074        libgd_LIBS="$libgd_LIBS -lfreetype"
11075      fi
11076
11077      LIBS="$_libs $libgd_LIBS -lpng"
11078           { echo "$as_me:$LINENO: checking for gdImagePng in -lgd" >&5
11079 echo $ECHO_N "checking for gdImagePng in -lgd... $ECHO_C" >&6; }
11080 if test "${ac_cv_lib_gd_gdImagePng+set}" = set; then
11081   echo $ECHO_N "(cached) $ECHO_C" >&6
11082 else
11083   ac_check_lib_save_LIBS=$LIBS
11084 LIBS="-lgd  $LIBS"
11085 cat >conftest.$ac_ext <<_ACEOF
11086 /* confdefs.h.  */
11087 _ACEOF
11088 cat confdefs.h >>conftest.$ac_ext
11089 cat >>conftest.$ac_ext <<_ACEOF
11090 /* end confdefs.h.  */
11091
11092 /* Override any GCC internal prototype to avoid an error.
11093    Use char because int might match the return type of a GCC
11094    builtin and then its argument prototype would still apply.  */
11095 #ifdef __cplusplus
11096 extern "C"
11097 #endif
11098 char gdImagePng ();
11099 int
11100 main ()
11101 {
11102 return gdImagePng ();
11103   ;
11104   return 0;
11105 }
11106 _ACEOF
11107 rm -f conftest.$ac_objext conftest$ac_exeext
11108 if { (ac_try="$ac_link"
11109 case "(($ac_try" in
11110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11111   *) ac_try_echo=$ac_try;;
11112 esac
11113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11114   (eval "$ac_link") 2>conftest.er1
11115   ac_status=$?
11116   grep -v '^ *+' conftest.er1 >conftest.err
11117   rm -f conftest.er1
11118   cat conftest.err >&5
11119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120   (exit $ac_status); } && {
11121          test -z "$ac_c_werror_flag" ||
11122          test ! -s conftest.err
11123        } && test -s conftest$ac_exeext &&
11124        $as_test_x conftest$ac_exeext; then
11125   ac_cv_lib_gd_gdImagePng=yes
11126 else
11127   echo "$as_me: failed program was:" >&5
11128 sed 's/^/| /' conftest.$ac_ext >&5
11129
11130         ac_cv_lib_gd_gdImagePng=no
11131 fi
11132
11133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11134       conftest$ac_exeext conftest.$ac_ext
11135 LIBS=$ac_check_lib_save_LIBS
11136 fi
11137 { echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImagePng" >&5
11138 echo "${ECHO_T}$ac_cv_lib_gd_gdImagePng" >&6; }
11139 if test $ac_cv_lib_gd_gdImagePng = yes; then
11140
11141 cat >>confdefs.h <<\_ACEOF
11142 #define HAVE_GD_PNG 1
11143 _ACEOF
11144
11145         libgd_LIBS="$libgd_LIBS -lpng"
11146 fi
11147
11148      LIBS="$_libs"
11149
11150
11151 else
11152          with_gd=no
11153
11154 fi
11155
11156
11157   if test -n "$GDLIB_CONFIG"; then
11158     libgd_LIBS=`gdlib-config --libs`
11159   fi
11160
11161     if test "$with_gd" = no; then
11162     CPPFLAGS="$_cppflags"
11163     LDFLAGS="$_ldflags"
11164   else
11165     TERMLIBS="$TERMLIBS -lgd $libgd_LIBS"
11166   fi
11167
11168 fi
11169
11170
11171 # Check whether --with-pdf was given.
11172 if test "${with_pdf+set}" = set; then
11173   withval=$with_pdf;
11174 else
11175   with_pdf=yes
11176 fi
11177
11178
11179 if test "$with_pdf" != no; then
11180   # Extract the first word of "pdflib-config", so it can be a program name with args.
11181 set dummy pdflib-config; ac_word=$2
11182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11184 if test "${ac_cv_path_PDFLIB_CONFIG+set}" = set; then
11185   echo $ECHO_N "(cached) $ECHO_C" >&6
11186 else
11187   case $PDFLIB_CONFIG in
11188   [\\/]* | ?:[\\/]*)
11189   ac_cv_path_PDFLIB_CONFIG="$PDFLIB_CONFIG" # Let the user override the test with a path.
11190   ;;
11191   *)
11192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11193 for as_dir in $PATH
11194 do
11195   IFS=$as_save_IFS
11196   test -z "$as_dir" && as_dir=.
11197   for ac_exec_ext in '' $ac_executable_extensions; do
11198   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11199     ac_cv_path_PDFLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11200     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11201     break 2
11202   fi
11203 done
11204 done
11205 IFS=$as_save_IFS
11206
11207   ;;
11208 esac
11209 fi
11210 PDFLIB_CONFIG=$ac_cv_path_PDFLIB_CONFIG
11211 if test -n "$PDFLIB_CONFIG"; then
11212   { echo "$as_me:$LINENO: result: $PDFLIB_CONFIG" >&5
11213 echo "${ECHO_T}$PDFLIB_CONFIG" >&6; }
11214 else
11215   { echo "$as_me:$LINENO: result: no" >&5
11216 echo "${ECHO_T}no" >&6; }
11217 fi
11218
11219
11220   if test -n "$PDFLIB_CONFIG"; then
11221     libpdf_CPPFLAGS=`pdflib-config --cflags`
11222     # D'oh - libraries don't belong here
11223     libpdf_LDFLAGS=`pdflib-config --ldflags |sed 's/ -l[^ ][^ ]*//g'`
11224   elif test -d "$with_pdf"; then
11225     libpdf_CPPFLAGS="-I$with_pdf/include"
11226     libpdf_LDFLAGS="-L$with_pdf/lib"
11227   fi
11228
11229   _cppflags="$CPPFLAGS"
11230   _ldflags="$LDFLAGS"
11231   _libs="$LIBS"
11232   CPPFLAGS="$CPPFLAGS $libpdf_CPPFLAGS"
11233   LDFLAGS="$LDFLAGS $libpdf_LDFLAGS"
11234
11235   { echo "$as_me:$LINENO: checking for PDF_get_majorversion in -lpdf" >&5
11236 echo $ECHO_N "checking for PDF_get_majorversion in -lpdf... $ECHO_C" >&6; }
11237 if test "${ac_cv_lib_pdf_PDF_get_majorversion+set}" = set; then
11238   echo $ECHO_N "(cached) $ECHO_C" >&6
11239 else
11240   ac_check_lib_save_LIBS=$LIBS
11241 LIBS="-lpdf  $LIBS"
11242 cat >conftest.$ac_ext <<_ACEOF
11243 /* confdefs.h.  */
11244 _ACEOF
11245 cat confdefs.h >>conftest.$ac_ext
11246 cat >>conftest.$ac_ext <<_ACEOF
11247 /* end confdefs.h.  */
11248
11249 /* Override any GCC internal prototype to avoid an error.
11250    Use char because int might match the return type of a GCC
11251    builtin and then its argument prototype would still apply.  */
11252 #ifdef __cplusplus
11253 extern "C"
11254 #endif
11255 char PDF_get_majorversion ();
11256 int
11257 main ()
11258 {
11259 return PDF_get_majorversion ();
11260   ;
11261   return 0;
11262 }
11263 _ACEOF
11264 rm -f conftest.$ac_objext conftest$ac_exeext
11265 if { (ac_try="$ac_link"
11266 case "(($ac_try" in
11267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11268   *) ac_try_echo=$ac_try;;
11269 esac
11270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11271   (eval "$ac_link") 2>conftest.er1
11272   ac_status=$?
11273   grep -v '^ *+' conftest.er1 >conftest.err
11274   rm -f conftest.er1
11275   cat conftest.err >&5
11276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277   (exit $ac_status); } && {
11278          test -z "$ac_c_werror_flag" ||
11279          test ! -s conftest.err
11280        } && test -s conftest$ac_exeext &&
11281        $as_test_x conftest$ac_exeext; then
11282   ac_cv_lib_pdf_PDF_get_majorversion=yes
11283 else
11284   echo "$as_me: failed program was:" >&5
11285 sed 's/^/| /' conftest.$ac_ext >&5
11286
11287         ac_cv_lib_pdf_PDF_get_majorversion=no
11288 fi
11289
11290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11291       conftest$ac_exeext conftest.$ac_ext
11292 LIBS=$ac_check_lib_save_LIBS
11293 fi
11294 { echo "$as_me:$LINENO: result: $ac_cv_lib_pdf_PDF_get_majorversion" >&5
11295 echo "${ECHO_T}$ac_cv_lib_pdf_PDF_get_majorversion" >&6; }
11296 if test $ac_cv_lib_pdf_PDF_get_majorversion = yes; then
11297
11298 cat >>confdefs.h <<\_ACEOF
11299 #define HAVE_LIBPDF 1
11300 _ACEOF
11301
11302
11303 for ac_header in pdflib.h
11304 do
11305 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11306 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11307   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11310   echo $ECHO_N "(cached) $ECHO_C" >&6
11311 fi
11312 ac_res=`eval echo '${'$as_ac_Header'}'`
11313                { echo "$as_me:$LINENO: result: $ac_res" >&5
11314 echo "${ECHO_T}$ac_res" >&6; }
11315 else
11316   # Is the header compilable?
11317 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11318 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11319 cat >conftest.$ac_ext <<_ACEOF
11320 /* confdefs.h.  */
11321 _ACEOF
11322 cat confdefs.h >>conftest.$ac_ext
11323 cat >>conftest.$ac_ext <<_ACEOF
11324 /* end confdefs.h.  */
11325 $ac_includes_default
11326 #include <$ac_header>
11327 _ACEOF
11328 rm -f conftest.$ac_objext
11329 if { (ac_try="$ac_compile"
11330 case "(($ac_try" in
11331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11332   *) ac_try_echo=$ac_try;;
11333 esac
11334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11335   (eval "$ac_compile") 2>conftest.er1
11336   ac_status=$?
11337   grep -v '^ *+' conftest.er1 >conftest.err
11338   rm -f conftest.er1
11339   cat conftest.err >&5
11340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341   (exit $ac_status); } && {
11342          test -z "$ac_c_werror_flag" ||
11343          test ! -s conftest.err
11344        } && test -s conftest.$ac_objext; then
11345   ac_header_compiler=yes
11346 else
11347   echo "$as_me: failed program was:" >&5
11348 sed 's/^/| /' conftest.$ac_ext >&5
11349
11350         ac_header_compiler=no
11351 fi
11352
11353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11354 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11355 echo "${ECHO_T}$ac_header_compiler" >&6; }
11356
11357 # Is the header present?
11358 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11359 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11360 cat >conftest.$ac_ext <<_ACEOF
11361 /* confdefs.h.  */
11362 _ACEOF
11363 cat confdefs.h >>conftest.$ac_ext
11364 cat >>conftest.$ac_ext <<_ACEOF
11365 /* end confdefs.h.  */
11366 #include <$ac_header>
11367 _ACEOF
11368 if { (ac_try="$ac_cpp conftest.$ac_ext"
11369 case "(($ac_try" in
11370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11371   *) ac_try_echo=$ac_try;;
11372 esac
11373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11374   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11375   ac_status=$?
11376   grep -v '^ *+' conftest.er1 >conftest.err
11377   rm -f conftest.er1
11378   cat conftest.err >&5
11379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380   (exit $ac_status); } >/dev/null && {
11381          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11382          test ! -s conftest.err
11383        }; then
11384   ac_header_preproc=yes
11385 else
11386   echo "$as_me: failed program was:" >&5
11387 sed 's/^/| /' conftest.$ac_ext >&5
11388
11389   ac_header_preproc=no
11390 fi
11391
11392 rm -f conftest.err conftest.$ac_ext
11393 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11394 echo "${ECHO_T}$ac_header_preproc" >&6; }
11395
11396 # So?  What about this header?
11397 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11398   yes:no: )
11399     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11400 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11401     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11402 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11403     ac_header_preproc=yes
11404     ;;
11405   no:yes:* )
11406     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11407 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11408     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11409 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11410     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11411 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11412     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11413 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11414     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11415 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11416     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11417 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11418
11419     ;;
11420 esac
11421 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11424   echo $ECHO_N "(cached) $ECHO_C" >&6
11425 else
11426   eval "$as_ac_Header=\$ac_header_preproc"
11427 fi
11428 ac_res=`eval echo '${'$as_ac_Header'}'`
11429                { echo "$as_me:$LINENO: result: $ac_res" >&5
11430 echo "${ECHO_T}$ac_res" >&6; }
11431
11432 fi
11433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11434   cat >>confdefs.h <<_ACEOF
11435 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11436 _ACEOF
11437
11438 else
11439   { echo "$as_me:$LINENO: WARNING: please add path to pdflib.h to CPPFLAGS in Makefile" >&5
11440 echo "$as_me: WARNING: please add path to pdflib.h to CPPFLAGS in Makefile" >&2;}
11441 fi
11442
11443 done
11444
11445
11446 else
11447   with_pdf=no
11448 fi
11449
11450
11451   if test "$with_pdf" != no; then
11452
11453 { echo "$as_me:$LINENO: checking for PDF_begin_pattern in -lpdf" >&5
11454 echo $ECHO_N "checking for PDF_begin_pattern in -lpdf... $ECHO_C" >&6; }
11455 if test "${ac_cv_lib_pdf_PDF_begin_pattern+set}" = set; then
11456   echo $ECHO_N "(cached) $ECHO_C" >&6
11457 else
11458   ac_check_lib_save_LIBS=$LIBS
11459 LIBS="-lpdf  $LIBS"
11460 cat >conftest.$ac_ext <<_ACEOF
11461 /* confdefs.h.  */
11462 _ACEOF
11463 cat confdefs.h >>conftest.$ac_ext
11464 cat >>conftest.$ac_ext <<_ACEOF
11465 /* end confdefs.h.  */
11466
11467 /* Override any GCC internal prototype to avoid an error.
11468    Use char because int might match the return type of a GCC
11469    builtin and then its argument prototype would still apply.  */
11470 #ifdef __cplusplus
11471 extern "C"
11472 #endif
11473 char PDF_begin_pattern ();
11474 int
11475 main ()
11476 {
11477 return PDF_begin_pattern ();
11478   ;
11479   return 0;
11480 }
11481 _ACEOF
11482 rm -f conftest.$ac_objext conftest$ac_exeext
11483 if { (ac_try="$ac_link"
11484 case "(($ac_try" in
11485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11486   *) ac_try_echo=$ac_try;;
11487 esac
11488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11489   (eval "$ac_link") 2>conftest.er1
11490   ac_status=$?
11491   grep -v '^ *+' conftest.er1 >conftest.err
11492   rm -f conftest.er1
11493   cat conftest.err >&5
11494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495   (exit $ac_status); } && {
11496          test -z "$ac_c_werror_flag" ||
11497          test ! -s conftest.err
11498        } && test -s conftest$ac_exeext &&
11499        $as_test_x conftest$ac_exeext; then
11500   ac_cv_lib_pdf_PDF_begin_pattern=yes
11501 else
11502   echo "$as_me: failed program was:" >&5
11503 sed 's/^/| /' conftest.$ac_ext >&5
11504
11505         ac_cv_lib_pdf_PDF_begin_pattern=no
11506 fi
11507
11508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11509       conftest$ac_exeext conftest.$ac_ext
11510 LIBS=$ac_check_lib_save_LIBS
11511 fi
11512 { echo "$as_me:$LINENO: result: $ac_cv_lib_pdf_PDF_begin_pattern" >&5
11513 echo "${ECHO_T}$ac_cv_lib_pdf_PDF_begin_pattern" >&6; }
11514 if test $ac_cv_lib_pdf_PDF_begin_pattern = yes; then
11515   cat >>confdefs.h <<_ACEOF
11516 #define HAVE_LIBPDF 1
11517 _ACEOF
11518
11519   LIBS="-lpdf $LIBS"
11520
11521 else
11522
11523 cat >>confdefs.h <<\_ACEOF
11524 #define HAVE_OLD_LIBPDF 1
11525 _ACEOF
11526
11527       { echo "$as_me:$LINENO: WARNING: your version of libpdf is too old!" >&5
11528 echo "$as_me: WARNING: your version of libpdf is too old!" >&2;}
11529
11530 fi
11531
11532   fi
11533
11534   if test "$with_pdf" != no; then
11535
11536 { echo "$as_me:$LINENO: checking for PDF_setdashpattern in -lpdf" >&5
11537 echo $ECHO_N "checking for PDF_setdashpattern in -lpdf... $ECHO_C" >&6; }
11538 if test "${ac_cv_lib_pdf_PDF_setdashpattern+set}" = set; then
11539   echo $ECHO_N "(cached) $ECHO_C" >&6
11540 else
11541   ac_check_lib_save_LIBS=$LIBS
11542 LIBS="-lpdf  $LIBS"
11543 cat >conftest.$ac_ext <<_ACEOF
11544 /* confdefs.h.  */
11545 _ACEOF
11546 cat confdefs.h >>conftest.$ac_ext
11547 cat >>conftest.$ac_ext <<_ACEOF
11548 /* end confdefs.h.  */
11549
11550 /* Override any GCC internal prototype to avoid an error.
11551    Use char because int might match the return type of a GCC
11552    builtin and then its argument prototype would still apply.  */
11553 #ifdef __cplusplus
11554 extern "C"
11555 #endif
11556 char PDF_setdashpattern ();
11557 int
11558 main ()
11559 {
11560 return PDF_setdashpattern ();
11561   ;
11562   return 0;
11563 }
11564 _ACEOF
11565 rm -f conftest.$ac_objext conftest$ac_exeext
11566 if { (ac_try="$ac_link"
11567 case "(($ac_try" in
11568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11569   *) ac_try_echo=$ac_try;;
11570 esac
11571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11572   (eval "$ac_link") 2>conftest.er1
11573   ac_status=$?
11574   grep -v '^ *+' conftest.er1 >conftest.err
11575   rm -f conftest.er1
11576   cat conftest.err >&5
11577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578   (exit $ac_status); } && {
11579          test -z "$ac_c_werror_flag" ||
11580          test ! -s conftest.err
11581        } && test -s conftest$ac_exeext &&
11582        $as_test_x conftest$ac_exeext; then
11583   ac_cv_lib_pdf_PDF_setdashpattern=yes
11584 else
11585   echo "$as_me: failed program was:" >&5
11586 sed 's/^/| /' conftest.$ac_ext >&5
11587
11588         ac_cv_lib_pdf_PDF_setdashpattern=no
11589 fi
11590
11591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11592       conftest$ac_exeext conftest.$ac_ext
11593 LIBS=$ac_check_lib_save_LIBS
11594 fi
11595 { echo "$as_me:$LINENO: result: $ac_cv_lib_pdf_PDF_setdashpattern" >&5
11596 echo "${ECHO_T}$ac_cv_lib_pdf_PDF_setdashpattern" >&6; }
11597 if test $ac_cv_lib_pdf_PDF_setdashpattern = yes; then
11598   cat >>confdefs.h <<_ACEOF
11599 #define HAVE_LIBPDF 1
11600 _ACEOF
11601
11602   LIBS="-lpdf $LIBS"
11603
11604 else
11605
11606 cat >>confdefs.h <<\_ACEOF
11607 #define HAVE_NODASH_LIBPDF 1
11608 _ACEOF
11609
11610       { echo "$as_me:$LINENO: WARNING: your version of libpdf is too old!" >&5
11611 echo "$as_me: WARNING: your version of libpdf is too old!" >&2;}
11612
11613 fi
11614
11615   fi
11616
11617   if test "$with_pdf" != no; then
11618
11619 { echo "$as_me:$LINENO: checking for PDF_begin_document in -lpdf" >&5
11620 echo $ECHO_N "checking for PDF_begin_document in -lpdf... $ECHO_C" >&6; }
11621 if test "${ac_cv_lib_pdf_PDF_begin_document+set}" = set; then
11622   echo $ECHO_N "(cached) $ECHO_C" >&6
11623 else
11624   ac_check_lib_save_LIBS=$LIBS
11625 LIBS="-lpdf  $LIBS"
11626 cat >conftest.$ac_ext <<_ACEOF
11627 /* confdefs.h.  */
11628 _ACEOF
11629 cat confdefs.h >>conftest.$ac_ext
11630 cat >>conftest.$ac_ext <<_ACEOF
11631 /* end confdefs.h.  */
11632
11633 /* Override any GCC internal prototype to avoid an error.
11634    Use char because int might match the return type of a GCC
11635    builtin and then its argument prototype would still apply.  */
11636 #ifdef __cplusplus
11637 extern "C"
11638 #endif
11639 char PDF_begin_document ();
11640 int
11641 main ()
11642 {
11643 return PDF_begin_document ();
11644   ;
11645   return 0;
11646 }
11647 _ACEOF
11648 rm -f conftest.$ac_objext conftest$ac_exeext
11649 if { (ac_try="$ac_link"
11650 case "(($ac_try" in
11651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11652   *) ac_try_echo=$ac_try;;
11653 esac
11654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11655   (eval "$ac_link") 2>conftest.er1
11656   ac_status=$?
11657   grep -v '^ *+' conftest.er1 >conftest.err
11658   rm -f conftest.er1
11659   cat conftest.err >&5
11660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661   (exit $ac_status); } && {
11662          test -z "$ac_c_werror_flag" ||
11663          test ! -s conftest.err
11664        } && test -s conftest$ac_exeext &&
11665        $as_test_x conftest$ac_exeext; then
11666   ac_cv_lib_pdf_PDF_begin_document=yes
11667 else
11668   echo "$as_me: failed program was:" >&5
11669 sed 's/^/| /' conftest.$ac_ext >&5
11670
11671         ac_cv_lib_pdf_PDF_begin_document=no
11672 fi
11673
11674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11675       conftest$ac_exeext conftest.$ac_ext
11676 LIBS=$ac_check_lib_save_LIBS
11677 fi
11678 { echo "$as_me:$LINENO: result: $ac_cv_lib_pdf_PDF_begin_document" >&5
11679 echo "${ECHO_T}$ac_cv_lib_pdf_PDF_begin_document" >&6; }
11680 if test $ac_cv_lib_pdf_PDF_begin_document = yes; then
11681   cat >>confdefs.h <<_ACEOF
11682 #define HAVE_LIBPDF 1
11683 _ACEOF
11684
11685   LIBS="-lpdf $LIBS"
11686
11687 else
11688
11689 cat >>confdefs.h <<\_ACEOF
11690 #define HAVE_LIBPDF_OPEN_FILE 1
11691 _ACEOF
11692
11693       { echo "$as_me:$LINENO: WARNING: your version of libpdf is rather old." >&5
11694 echo "$as_me: WARNING: your version of libpdf is rather old." >&2;}
11695
11696 fi
11697
11698   fi
11699
11700   LIBS="$_libs"
11701   if test "$with_pdf" = no; then
11702     CPPFLAGS="$_cppflags"
11703     LDFLAGS="$_ldflags"
11704   else
11705     TERMLIBS="$TERMLIBS -lpdf"
11706   fi
11707
11708 fi
11709
11710
11711
11712 cat >conftest.$ac_ext <<_ACEOF
11713 /* confdefs.h.  */
11714 _ACEOF
11715 cat confdefs.h >>conftest.$ac_ext
11716 cat >>conftest.$ac_ext <<_ACEOF
11717 /* end confdefs.h.  */
11718 #ifdef SCO
11719 yes
11720 #endif
11721
11722 _ACEOF
11723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11724   $EGREP "yes" >/dev/null 2>&1; then
11725   { echo "$as_me:$LINENO: checking for v_opnwk in -lccgi" >&5
11726 echo $ECHO_N "checking for v_opnwk in -lccgi... $ECHO_C" >&6; }
11727 if test "${ac_cv_lib_ccgi_v_opnwk+set}" = set; then
11728   echo $ECHO_N "(cached) $ECHO_C" >&6
11729 else
11730   ac_check_lib_save_LIBS=$LIBS
11731 LIBS="-lccgi  $LIBS"
11732 cat >conftest.$ac_ext <<_ACEOF
11733 /* confdefs.h.  */
11734 _ACEOF
11735 cat confdefs.h >>conftest.$ac_ext
11736 cat >>conftest.$ac_ext <<_ACEOF
11737 /* end confdefs.h.  */
11738
11739 /* Override any GCC internal prototype to avoid an error.
11740    Use char because int might match the return type of a GCC
11741    builtin and then its argument prototype would still apply.  */
11742 #ifdef __cplusplus
11743 extern "C"
11744 #endif
11745 char v_opnwk ();
11746 int
11747 main ()
11748 {
11749 return v_opnwk ();
11750   ;
11751   return 0;
11752 }
11753 _ACEOF
11754 rm -f conftest.$ac_objext conftest$ac_exeext
11755 if { (ac_try="$ac_link"
11756 case "(($ac_try" in
11757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11758   *) ac_try_echo=$ac_try;;
11759 esac
11760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11761   (eval "$ac_link") 2>conftest.er1
11762   ac_status=$?
11763   grep -v '^ *+' conftest.er1 >conftest.err
11764   rm -f conftest.er1
11765   cat conftest.err >&5
11766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767   (exit $ac_status); } && {
11768          test -z "$ac_c_werror_flag" ||
11769          test ! -s conftest.err
11770        } && test -s conftest$ac_exeext &&
11771        $as_test_x conftest$ac_exeext; then
11772   ac_cv_lib_ccgi_v_opnwk=yes
11773 else
11774   echo "$as_me: failed program was:" >&5
11775 sed 's/^/| /' conftest.$ac_ext >&5
11776
11777         ac_cv_lib_ccgi_v_opnwk=no
11778 fi
11779
11780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11781       conftest$ac_exeext conftest.$ac_ext
11782 LIBS=$ac_check_lib_save_LIBS
11783 fi
11784 { echo "$as_me:$LINENO: result: $ac_cv_lib_ccgi_v_opnwk" >&5
11785 echo "${ECHO_T}$ac_cv_lib_ccgi_v_opnwk" >&6; }
11786 if test $ac_cv_lib_ccgi_v_opnwk = yes; then
11787
11788 cat >>confdefs.h <<\_ACEOF
11789 #define CGI 1
11790 _ACEOF
11791
11792      TERMLIBS="-lccgi $TERMLIBS"
11793 fi
11794
11795 fi
11796 rm -f conftest*
11797
11798
11799 cat >conftest.$ac_ext <<_ACEOF
11800 /* confdefs.h.  */
11801 _ACEOF
11802 cat confdefs.h >>conftest.$ac_ext
11803 cat >>conftest.$ac_ext <<_ACEOF
11804 /* end confdefs.h.  */
11805 #ifdef sun
11806 yes
11807 #endif
11808
11809 _ACEOF
11810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11811   $EGREP "yes" >/dev/null 2>&1; then
11812   { echo "$as_me:$LINENO: checking for window_create in -lsuntool" >&5
11813 echo $ECHO_N "checking for window_create in -lsuntool... $ECHO_C" >&6; }
11814 if test "${ac_cv_lib_suntool_window_create+set}" = set; then
11815   echo $ECHO_N "(cached) $ECHO_C" >&6
11816 else
11817   ac_check_lib_save_LIBS=$LIBS
11818 LIBS="-lsuntool -lsunwindow -lpixrect $LIBS"
11819 cat >conftest.$ac_ext <<_ACEOF
11820 /* confdefs.h.  */
11821 _ACEOF
11822 cat confdefs.h >>conftest.$ac_ext
11823 cat >>conftest.$ac_ext <<_ACEOF
11824 /* end confdefs.h.  */
11825
11826 /* Override any GCC internal prototype to avoid an error.
11827    Use char because int might match the return type of a GCC
11828    builtin and then its argument prototype would still apply.  */
11829 #ifdef __cplusplus
11830 extern "C"
11831 #endif
11832 char window_create ();
11833 int
11834 main ()
11835 {
11836 return window_create ();
11837   ;
11838   return 0;
11839 }
11840 _ACEOF
11841 rm -f conftest.$ac_objext conftest$ac_exeext
11842 if { (ac_try="$ac_link"
11843 case "(($ac_try" in
11844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11845   *) ac_try_echo=$ac_try;;
11846 esac
11847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11848   (eval "$ac_link") 2>conftest.er1
11849   ac_status=$?
11850   grep -v '^ *+' conftest.er1 >conftest.err
11851   rm -f conftest.er1
11852   cat conftest.err >&5
11853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854   (exit $ac_status); } && {
11855          test -z "$ac_c_werror_flag" ||
11856          test ! -s conftest.err
11857        } && test -s conftest$ac_exeext &&
11858        $as_test_x conftest$ac_exeext; then
11859   ac_cv_lib_suntool_window_create=yes
11860 else
11861   echo "$as_me: failed program was:" >&5
11862 sed 's/^/| /' conftest.$ac_ext >&5
11863
11864         ac_cv_lib_suntool_window_create=no
11865 fi
11866
11867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11868       conftest$ac_exeext conftest.$ac_ext
11869 LIBS=$ac_check_lib_save_LIBS
11870 fi
11871 { echo "$as_me:$LINENO: result: $ac_cv_lib_suntool_window_create" >&5
11872 echo "${ECHO_T}$ac_cv_lib_suntool_window_create" >&6; }
11873 if test $ac_cv_lib_suntool_window_create = yes; then
11874   if test "${ac_cv_header_suntool_sunview_h+set}" = set; then
11875   { echo "$as_me:$LINENO: checking for suntool/sunview.h" >&5
11876 echo $ECHO_N "checking for suntool/sunview.h... $ECHO_C" >&6; }
11877 if test "${ac_cv_header_suntool_sunview_h+set}" = set; then
11878   echo $ECHO_N "(cached) $ECHO_C" >&6
11879 fi
11880 { echo "$as_me:$LINENO: result: $ac_cv_header_suntool_sunview_h" >&5
11881 echo "${ECHO_T}$ac_cv_header_suntool_sunview_h" >&6; }
11882 else
11883   # Is the header compilable?
11884 { echo "$as_me:$LINENO: checking suntool/sunview.h usability" >&5
11885 echo $ECHO_N "checking suntool/sunview.h usability... $ECHO_C" >&6; }
11886 cat >conftest.$ac_ext <<_ACEOF
11887 /* confdefs.h.  */
11888 _ACEOF
11889 cat confdefs.h >>conftest.$ac_ext
11890 cat >>conftest.$ac_ext <<_ACEOF
11891 /* end confdefs.h.  */
11892 $ac_includes_default
11893 #include <suntool/sunview.h>
11894 _ACEOF
11895 rm -f conftest.$ac_objext
11896 if { (ac_try="$ac_compile"
11897 case "(($ac_try" in
11898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11899   *) ac_try_echo=$ac_try;;
11900 esac
11901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11902   (eval "$ac_compile") 2>conftest.er1
11903   ac_status=$?
11904   grep -v '^ *+' conftest.er1 >conftest.err
11905   rm -f conftest.er1
11906   cat conftest.err >&5
11907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908   (exit $ac_status); } && {
11909          test -z "$ac_c_werror_flag" ||
11910          test ! -s conftest.err
11911        } && test -s conftest.$ac_objext; then
11912   ac_header_compiler=yes
11913 else
11914   echo "$as_me: failed program was:" >&5
11915 sed 's/^/| /' conftest.$ac_ext >&5
11916
11917         ac_header_compiler=no
11918 fi
11919
11920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11921 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11922 echo "${ECHO_T}$ac_header_compiler" >&6; }
11923
11924 # Is the header present?
11925 { echo "$as_me:$LINENO: checking suntool/sunview.h presence" >&5
11926 echo $ECHO_N "checking suntool/sunview.h presence... $ECHO_C" >&6; }
11927 cat >conftest.$ac_ext <<_ACEOF
11928 /* confdefs.h.  */
11929 _ACEOF
11930 cat confdefs.h >>conftest.$ac_ext
11931 cat >>conftest.$ac_ext <<_ACEOF
11932 /* end confdefs.h.  */
11933 #include <suntool/sunview.h>
11934 _ACEOF
11935 if { (ac_try="$ac_cpp conftest.$ac_ext"
11936 case "(($ac_try" in
11937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11938   *) ac_try_echo=$ac_try;;
11939 esac
11940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11941   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11942   ac_status=$?
11943   grep -v '^ *+' conftest.er1 >conftest.err
11944   rm -f conftest.er1
11945   cat conftest.err >&5
11946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947   (exit $ac_status); } >/dev/null && {
11948          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11949          test ! -s conftest.err
11950        }; then
11951   ac_header_preproc=yes
11952 else
11953   echo "$as_me: failed program was:" >&5
11954 sed 's/^/| /' conftest.$ac_ext >&5
11955
11956   ac_header_preproc=no
11957 fi
11958
11959 rm -f conftest.err conftest.$ac_ext
11960 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11961 echo "${ECHO_T}$ac_header_preproc" >&6; }
11962
11963 # So?  What about this header?
11964 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11965   yes:no: )
11966     { echo "$as_me:$LINENO: WARNING: suntool/sunview.h: accepted by the compiler, rejected by the preprocessor!" >&5
11967 echo "$as_me: WARNING: suntool/sunview.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11968     { echo "$as_me:$LINENO: WARNING: suntool/sunview.h: proceeding with the compiler's result" >&5
11969 echo "$as_me: WARNING: suntool/sunview.h: proceeding with the compiler's result" >&2;}
11970     ac_header_preproc=yes
11971     ;;
11972   no:yes:* )
11973     { echo "$as_me:$LINENO: WARNING: suntool/sunview.h: present but cannot be compiled" >&5
11974 echo "$as_me: WARNING: suntool/sunview.h: present but cannot be compiled" >&2;}
11975     { echo "$as_me:$LINENO: WARNING: suntool/sunview.h:     check for missing prerequisite headers?" >&5
11976 echo "$as_me: WARNING: suntool/sunview.h:     check for missing prerequisite headers?" >&2;}
11977     { echo "$as_me:$LINENO: WARNING: suntool/sunview.h: see the Autoconf documentation" >&5
11978 echo "$as_me: WARNING: suntool/sunview.h: see the Autoconf documentation" >&2;}
11979     { echo "$as_me:$LINENO: WARNING: suntool/sunview.h:     section \"Present But Cannot Be Compiled\"" >&5
11980 echo "$as_me: WARNING: suntool/sunview.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11981     { echo "$as_me:$LINENO: WARNING: suntool/sunview.h: proceeding with the preprocessor's result" >&5
11982 echo "$as_me: WARNING: suntool/sunview.h: proceeding with the preprocessor's result" >&2;}
11983     { echo "$as_me:$LINENO: WARNING: suntool/sunview.h: in the future, the compiler will take precedence" >&5
11984 echo "$as_me: WARNING: suntool/sunview.h: in the future, the compiler will take precedence" >&2;}
11985
11986     ;;
11987 esac
11988 { echo "$as_me:$LINENO: checking for suntool/sunview.h" >&5
11989 echo $ECHO_N "checking for suntool/sunview.h... $ECHO_C" >&6; }
11990 if test "${ac_cv_header_suntool_sunview_h+set}" = set; then
11991   echo $ECHO_N "(cached) $ECHO_C" >&6
11992 else
11993   ac_cv_header_suntool_sunview_h=$ac_header_preproc
11994 fi
11995 { echo "$as_me:$LINENO: result: $ac_cv_header_suntool_sunview_h" >&5
11996 echo "${ECHO_T}$ac_cv_header_suntool_sunview_h" >&6; }
11997
11998 fi
11999 if test $ac_cv_header_suntool_sunview_h = yes; then
12000
12001 cat >>confdefs.h <<\_ACEOF
12002 #define SUN 1
12003 _ACEOF
12004
12005          TERMLIBS="-lsuntool -lsunwindow -lpixrect $TERMLIBS"
12006 fi
12007
12008
12009 fi
12010
12011 fi
12012 rm -f conftest*
12013
12014
12015
12016
12017 # Check whether --with-cwdrc was given.
12018 if test "${with_cwdrc+set}" = set; then
12019   withval=$with_cwdrc;
12020 else
12021   if test "$withval" = yes; then
12022
12023 cat >>confdefs.h <<\_ACEOF
12024 #define NOCWDRC 1
12025 _ACEOF
12026
12027    fi
12028 fi
12029
12030
12031
12032 # Check whether --with-lisp-files was given.
12033 if test "${with_lisp_files+set}" = set; then
12034   withval=$with_lisp_files;
12035 fi
12036
12037
12038
12039 # Check whether --with-row-help was given.
12040 if test "${with_row_help+set}" = set; then
12041   withval=$with_row_help; if test "$with_row_help" = no; then
12042
12043 cat >>confdefs.h <<\_ACEOF
12044 #define COLUMN_HELP 1
12045 _ACEOF
12046
12047    fi
12048 fi
12049
12050
12051 TUTORIAL=tutorial
12052
12053 # Check whether --with-tutorial was given.
12054 if test "${with_tutorial+set}" = set; then
12055   withval=$with_tutorial;
12056 fi
12057
12058 if test "$LATEX" = no -o "$with_tutorial" = no ; then
12059   TUTORIAL=notutorial
12060   with_tutorial=no
12061 fi
12062
12063 # Check whether --enable-mouse was given.
12064 if test "${enable_mouse+set}" = set; then
12065   enableval=$enable_mouse;
12066 else
12067   test -z "$enable_mouse" && enable_mouse=yes
12068 fi
12069
12070
12071 if test "$enable_mouse" = yes; then
12072
12073 cat >>confdefs.h <<\_ACEOF
12074 #define USE_MOUSE 1
12075 _ACEOF
12076
12077
12078 cat >>confdefs.h <<\_ACEOF
12079 #define PIPE_IPC 1
12080 _ACEOF
12081
12082 fi
12083
12084 # Check whether --enable-x11-mbfonts was given.
12085 if test "${enable_x11_mbfonts+set}" = set; then
12086   enableval=$enable_x11_mbfonts;
12087 else
12088   test -z "$enable_x11_mbfonts" && enable_x11_mbfonts=yes
12089 fi
12090
12091   if test "$enable_x11_mbfonts" = yes; then
12092
12093     _ldflags="$LDFLAGS"
12094     LDFLAGS="$LDFLAGS $LIBRARIES_FOR_X"
12095
12096     { echo "$as_me:$LINENO: checking for multi-byte support in x11" >&5
12097 echo $ECHO_N "checking for multi-byte support in x11... $ECHO_C" >&6; }
12098     { echo "$as_me:$LINENO: checking for XmbDrawString in -lX11" >&5
12099 echo $ECHO_N "checking for XmbDrawString in -lX11... $ECHO_C" >&6; }
12100 if test "${ac_cv_lib_X11_XmbDrawString+set}" = set; then
12101   echo $ECHO_N "(cached) $ECHO_C" >&6
12102 else
12103   ac_check_lib_save_LIBS=$LIBS
12104 LIBS="-lX11  $LIBS"
12105 cat >conftest.$ac_ext <<_ACEOF
12106 /* confdefs.h.  */
12107 _ACEOF
12108 cat confdefs.h >>conftest.$ac_ext
12109 cat >>conftest.$ac_ext <<_ACEOF
12110 /* end confdefs.h.  */
12111
12112 /* Override any GCC internal prototype to avoid an error.
12113    Use char because int might match the return type of a GCC
12114    builtin and then its argument prototype would still apply.  */
12115 #ifdef __cplusplus
12116 extern "C"
12117 #endif
12118 char XmbDrawString ();
12119 int
12120 main ()
12121 {
12122 return XmbDrawString ();
12123   ;
12124   return 0;
12125 }
12126 _ACEOF
12127 rm -f conftest.$ac_objext conftest$ac_exeext
12128 if { (ac_try="$ac_link"
12129 case "(($ac_try" in
12130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12131   *) ac_try_echo=$ac_try;;
12132 esac
12133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12134   (eval "$ac_link") 2>conftest.er1
12135   ac_status=$?
12136   grep -v '^ *+' conftest.er1 >conftest.err
12137   rm -f conftest.er1
12138   cat conftest.err >&5
12139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140   (exit $ac_status); } && {
12141          test -z "$ac_c_werror_flag" ||
12142          test ! -s conftest.err
12143        } && test -s conftest$ac_exeext &&
12144        $as_test_x conftest$ac_exeext; then
12145   ac_cv_lib_X11_XmbDrawString=yes
12146 else
12147   echo "$as_me: failed program was:" >&5
12148 sed 's/^/| /' conftest.$ac_ext >&5
12149
12150         ac_cv_lib_X11_XmbDrawString=no
12151 fi
12152
12153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12154       conftest$ac_exeext conftest.$ac_ext
12155 LIBS=$ac_check_lib_save_LIBS
12156 fi
12157 { echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XmbDrawString" >&5
12158 echo "${ECHO_T}$ac_cv_lib_X11_XmbDrawString" >&6; }
12159 if test $ac_cv_lib_X11_XmbDrawString = yes; then
12160
12161 cat >>confdefs.h <<\_ACEOF
12162 #define USE_X11_MULTIBYTE 1
12163 _ACEOF
12164
12165 else
12166   enable_x11_mbfonts=no
12167 fi
12168
12169
12170     LDFLAGS="$_ldflags"
12171
12172   fi
12173
12174 # Check whether --enable-binary_data_file was given.
12175 if test "${enable_binary_data_file+set}" = set; then
12176   enableval=$enable_binary_data_file;
12177 else
12178   test -z "$enable_binary_data_file" && enable_binary_data_file=yes
12179 fi
12180
12181
12182 if test "$enable_binary_data_file" = yes; then
12183
12184 cat >>confdefs.h <<\_ACEOF
12185 #define BINARY_DATA_FILE 1
12186 _ACEOF
12187
12188 fi
12189
12190
12191
12192 if test "$enable_binary_data_file" = no; then
12193   INCLUDE_BINARY_C_TRUE=
12194   INCLUDE_BINARY_C_FALSE='#'
12195 else
12196   INCLUDE_BINARY_C_TRUE='#'
12197   INCLUDE_BINARY_C_FALSE=
12198 fi
12199
12200
12201 # Check whether --enable-with_image was given.
12202 if test "${enable_with_image+set}" = set; then
12203   enableval=$enable_with_image;
12204 else
12205   test -z "$enable_with_image" && enable_with_image=yes
12206 fi
12207
12208
12209 if test "$enable_with_image" = yes; then
12210   if test "$enable_binary_data_file" = yes; then
12211
12212 cat >>confdefs.h <<\_ACEOF
12213 #define WITH_IMAGE 1
12214 _ACEOF
12215
12216   else
12217     enable_with_image=no
12218     { echo "$as_me:$LINENO: WARNING: The with-image option requires --enable-binary-data-file. " >&5
12219 echo "$as_me: WARNING: The with-image option requires --enable-binary-data-file. " >&2;}
12220   fi
12221 fi
12222
12223 # Check whether --enable-binary_x11_polygon was given.
12224 if test "${enable_binary_x11_polygon+set}" = set; then
12225   enableval=$enable_binary_x11_polygon;
12226 else
12227   test -z "$enable_binary_x11_polygon" && enable_binary_x11_polygon=yes
12228 fi
12229
12230
12231 if test "$enable_binary_x11_polygon" = yes; then
12232
12233 cat >>confdefs.h <<\_ACEOF
12234 #define BINARY_X11_POLYGON 1
12235 _ACEOF
12236
12237 fi
12238
12239 if test "$with_linux_vga" = yes; then
12240   _LIBS="$LIBS"
12241     LIBS="$TERMLIBS $LIBS"
12242   { echo "$as_me:$LINENO: checking for the vgagl library" >&5
12243 echo $ECHO_N "checking for the vgagl library... $ECHO_C" >&6; }
12244   { echo "$as_me:$LINENO: checking for gl_hline in -lvgagl" >&5
12245 echo $ECHO_N "checking for gl_hline in -lvgagl... $ECHO_C" >&6; }
12246 if test "${ac_cv_lib_vgagl_gl_hline+set}" = set; then
12247   echo $ECHO_N "(cached) $ECHO_C" >&6
12248 else
12249   ac_check_lib_save_LIBS=$LIBS
12250 LIBS="-lvgagl  $LIBS"
12251 cat >conftest.$ac_ext <<_ACEOF
12252 /* confdefs.h.  */
12253 _ACEOF
12254 cat confdefs.h >>conftest.$ac_ext
12255 cat >>conftest.$ac_ext <<_ACEOF
12256 /* end confdefs.h.  */
12257
12258 /* Override any GCC internal prototype to avoid an error.
12259    Use char because int might match the return type of a GCC
12260    builtin and then its argument prototype would still apply.  */
12261 #ifdef __cplusplus
12262 extern "C"
12263 #endif
12264 char gl_hline ();
12265 int
12266 main ()
12267 {
12268 return gl_hline ();
12269   ;
12270   return 0;
12271 }
12272 _ACEOF
12273 rm -f conftest.$ac_objext conftest$ac_exeext
12274 if { (ac_try="$ac_link"
12275 case "(($ac_try" in
12276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12277   *) ac_try_echo=$ac_try;;
12278 esac
12279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12280   (eval "$ac_link") 2>conftest.er1
12281   ac_status=$?
12282   grep -v '^ *+' conftest.er1 >conftest.err
12283   rm -f conftest.er1
12284   cat conftest.err >&5
12285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286   (exit $ac_status); } && {
12287          test -z "$ac_c_werror_flag" ||
12288          test ! -s conftest.err
12289        } && test -s conftest$ac_exeext &&
12290        $as_test_x conftest$ac_exeext; then
12291   ac_cv_lib_vgagl_gl_hline=yes
12292 else
12293   echo "$as_me: failed program was:" >&5
12294 sed 's/^/| /' conftest.$ac_ext >&5
12295
12296         ac_cv_lib_vgagl_gl_hline=no
12297 fi
12298
12299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12300       conftest$ac_exeext conftest.$ac_ext
12301 LIBS=$ac_check_lib_save_LIBS
12302 fi
12303 { echo "$as_me:$LINENO: result: $ac_cv_lib_vgagl_gl_hline" >&5
12304 echo "${ECHO_T}$ac_cv_lib_vgagl_gl_hline" >&6; }
12305 if test $ac_cv_lib_vgagl_gl_hline = yes; then
12306   LIBS="-lvgagl $LIBS"
12307
12308 for ac_header in vgagl.h
12309 do
12310 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12312   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12313 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12314 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12315   echo $ECHO_N "(cached) $ECHO_C" >&6
12316 fi
12317 ac_res=`eval echo '${'$as_ac_Header'}'`
12318                { echo "$as_me:$LINENO: result: $ac_res" >&5
12319 echo "${ECHO_T}$ac_res" >&6; }
12320 else
12321   # Is the header compilable?
12322 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12323 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12324 cat >conftest.$ac_ext <<_ACEOF
12325 /* confdefs.h.  */
12326 _ACEOF
12327 cat confdefs.h >>conftest.$ac_ext
12328 cat >>conftest.$ac_ext <<_ACEOF
12329 /* end confdefs.h.  */
12330 $ac_includes_default
12331 #include <$ac_header>
12332 _ACEOF
12333 rm -f conftest.$ac_objext
12334 if { (ac_try="$ac_compile"
12335 case "(($ac_try" in
12336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12337   *) ac_try_echo=$ac_try;;
12338 esac
12339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12340   (eval "$ac_compile") 2>conftest.er1
12341   ac_status=$?
12342   grep -v '^ *+' conftest.er1 >conftest.err
12343   rm -f conftest.er1
12344   cat conftest.err >&5
12345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346   (exit $ac_status); } && {
12347          test -z "$ac_c_werror_flag" ||
12348          test ! -s conftest.err
12349        } && test -s conftest.$ac_objext; then
12350   ac_header_compiler=yes
12351 else
12352   echo "$as_me: failed program was:" >&5
12353 sed 's/^/| /' conftest.$ac_ext >&5
12354
12355         ac_header_compiler=no
12356 fi
12357
12358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12359 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12360 echo "${ECHO_T}$ac_header_compiler" >&6; }
12361
12362 # Is the header present?
12363 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12364 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12365 cat >conftest.$ac_ext <<_ACEOF
12366 /* confdefs.h.  */
12367 _ACEOF
12368 cat confdefs.h >>conftest.$ac_ext
12369 cat >>conftest.$ac_ext <<_ACEOF
12370 /* end confdefs.h.  */
12371 #include <$ac_header>
12372 _ACEOF
12373 if { (ac_try="$ac_cpp conftest.$ac_ext"
12374 case "(($ac_try" in
12375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12376   *) ac_try_echo=$ac_try;;
12377 esac
12378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12379   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12380   ac_status=$?
12381   grep -v '^ *+' conftest.er1 >conftest.err
12382   rm -f conftest.er1
12383   cat conftest.err >&5
12384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385   (exit $ac_status); } >/dev/null && {
12386          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12387          test ! -s conftest.err
12388        }; then
12389   ac_header_preproc=yes
12390 else
12391   echo "$as_me: failed program was:" >&5
12392 sed 's/^/| /' conftest.$ac_ext >&5
12393
12394   ac_header_preproc=no
12395 fi
12396
12397 rm -f conftest.err conftest.$ac_ext
12398 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12399 echo "${ECHO_T}$ac_header_preproc" >&6; }
12400
12401 # So?  What about this header?
12402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12403   yes:no: )
12404     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12405 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12406     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12407 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12408     ac_header_preproc=yes
12409     ;;
12410   no:yes:* )
12411     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12412 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12413     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12414 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12415     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12416 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12417     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12418 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12419     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12420 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12421     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12422 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12423
12424     ;;
12425 esac
12426 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12429   echo $ECHO_N "(cached) $ECHO_C" >&6
12430 else
12431   eval "$as_ac_Header=\$ac_header_preproc"
12432 fi
12433 ac_res=`eval echo '${'$as_ac_Header'}'`
12434                { echo "$as_me:$LINENO: result: $ac_res" >&5
12435 echo "${ECHO_T}$ac_res" >&6; }
12436
12437 fi
12438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12439   cat >>confdefs.h <<_ACEOF
12440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12441 _ACEOF
12442
12443 cat >>confdefs.h <<\_ACEOF
12444 #define VGAGL 1
12445 _ACEOF
12446
12447                      { echo "$as_me:$LINENO: checking for gl_striangle in -l3dkit" >&5
12448 echo $ECHO_N "checking for gl_striangle in -l3dkit... $ECHO_C" >&6; }
12449 if test "${ac_cv_lib_3dkit_gl_striangle+set}" = set; then
12450   echo $ECHO_N "(cached) $ECHO_C" >&6
12451 else
12452   ac_check_lib_save_LIBS=$LIBS
12453 LIBS="-l3dkit  $LIBS"
12454 cat >conftest.$ac_ext <<_ACEOF
12455 /* confdefs.h.  */
12456 _ACEOF
12457 cat confdefs.h >>conftest.$ac_ext
12458 cat >>conftest.$ac_ext <<_ACEOF
12459 /* end confdefs.h.  */
12460
12461 /* Override any GCC internal prototype to avoid an error.
12462    Use char because int might match the return type of a GCC
12463    builtin and then its argument prototype would still apply.  */
12464 #ifdef __cplusplus
12465 extern "C"
12466 #endif
12467 char gl_striangle ();
12468 int
12469 main ()
12470 {
12471 return gl_striangle ();
12472   ;
12473   return 0;
12474 }
12475 _ACEOF
12476 rm -f conftest.$ac_objext conftest$ac_exeext
12477 if { (ac_try="$ac_link"
12478 case "(($ac_try" in
12479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12480   *) ac_try_echo=$ac_try;;
12481 esac
12482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12483   (eval "$ac_link") 2>conftest.er1
12484   ac_status=$?
12485   grep -v '^ *+' conftest.er1 >conftest.err
12486   rm -f conftest.er1
12487   cat conftest.err >&5
12488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489   (exit $ac_status); } && {
12490          test -z "$ac_c_werror_flag" ||
12491          test ! -s conftest.err
12492        } && test -s conftest$ac_exeext &&
12493        $as_test_x conftest$ac_exeext; then
12494   ac_cv_lib_3dkit_gl_striangle=yes
12495 else
12496   echo "$as_me: failed program was:" >&5
12497 sed 's/^/| /' conftest.$ac_ext >&5
12498
12499         ac_cv_lib_3dkit_gl_striangle=no
12500 fi
12501
12502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12503       conftest$ac_exeext conftest.$ac_ext
12504 LIBS=$ac_check_lib_save_LIBS
12505 fi
12506 { echo "$as_me:$LINENO: result: $ac_cv_lib_3dkit_gl_striangle" >&5
12507 echo "${ECHO_T}$ac_cv_lib_3dkit_gl_striangle" >&6; }
12508 if test $ac_cv_lib_3dkit_gl_striangle = yes; then
12509
12510 for ac_header in 3dkit.h
12511 do
12512 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12514   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12517   echo $ECHO_N "(cached) $ECHO_C" >&6
12518 fi
12519 ac_res=`eval echo '${'$as_ac_Header'}'`
12520                { echo "$as_me:$LINENO: result: $ac_res" >&5
12521 echo "${ECHO_T}$ac_res" >&6; }
12522 else
12523   # Is the header compilable?
12524 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12525 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12526 cat >conftest.$ac_ext <<_ACEOF
12527 /* confdefs.h.  */
12528 _ACEOF
12529 cat confdefs.h >>conftest.$ac_ext
12530 cat >>conftest.$ac_ext <<_ACEOF
12531 /* end confdefs.h.  */
12532 $ac_includes_default
12533 #include <$ac_header>
12534 _ACEOF
12535 rm -f conftest.$ac_objext
12536 if { (ac_try="$ac_compile"
12537 case "(($ac_try" in
12538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12539   *) ac_try_echo=$ac_try;;
12540 esac
12541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12542   (eval "$ac_compile") 2>conftest.er1
12543   ac_status=$?
12544   grep -v '^ *+' conftest.er1 >conftest.err
12545   rm -f conftest.er1
12546   cat conftest.err >&5
12547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548   (exit $ac_status); } && {
12549          test -z "$ac_c_werror_flag" ||
12550          test ! -s conftest.err
12551        } && test -s conftest.$ac_objext; then
12552   ac_header_compiler=yes
12553 else
12554   echo "$as_me: failed program was:" >&5
12555 sed 's/^/| /' conftest.$ac_ext >&5
12556
12557         ac_header_compiler=no
12558 fi
12559
12560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12561 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12562 echo "${ECHO_T}$ac_header_compiler" >&6; }
12563
12564 # Is the header present?
12565 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12566 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12567 cat >conftest.$ac_ext <<_ACEOF
12568 /* confdefs.h.  */
12569 _ACEOF
12570 cat confdefs.h >>conftest.$ac_ext
12571 cat >>conftest.$ac_ext <<_ACEOF
12572 /* end confdefs.h.  */
12573 #include <$ac_header>
12574 _ACEOF
12575 if { (ac_try="$ac_cpp conftest.$ac_ext"
12576 case "(($ac_try" in
12577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12578   *) ac_try_echo=$ac_try;;
12579 esac
12580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12581   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12582   ac_status=$?
12583   grep -v '^ *+' conftest.er1 >conftest.err
12584   rm -f conftest.er1
12585   cat conftest.err >&5
12586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587   (exit $ac_status); } >/dev/null && {
12588          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12589          test ! -s conftest.err
12590        }; then
12591   ac_header_preproc=yes
12592 else
12593   echo "$as_me: failed program was:" >&5
12594 sed 's/^/| /' conftest.$ac_ext >&5
12595
12596   ac_header_preproc=no
12597 fi
12598
12599 rm -f conftest.err conftest.$ac_ext
12600 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12601 echo "${ECHO_T}$ac_header_preproc" >&6; }
12602
12603 # So?  What about this header?
12604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12605   yes:no: )
12606     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12607 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12608     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12609 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12610     ac_header_preproc=yes
12611     ;;
12612   no:yes:* )
12613     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12614 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12615     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12616 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12617     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12618 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12619     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12620 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12621     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12622 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12623     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12624 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12625
12626     ;;
12627 esac
12628 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12631   echo $ECHO_N "(cached) $ECHO_C" >&6
12632 else
12633   eval "$as_ac_Header=\$ac_header_preproc"
12634 fi
12635 ac_res=`eval echo '${'$as_ac_Header'}'`
12636                { echo "$as_me:$LINENO: result: $ac_res" >&5
12637 echo "${ECHO_T}$ac_res" >&6; }
12638
12639 fi
12640 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12641   cat >>confdefs.h <<_ACEOF
12642 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12643 _ACEOF
12644
12645 cat >>confdefs.h <<\_ACEOF
12646 #define THREEDKIT 1
12647 _ACEOF
12648
12649
12650 cat >>confdefs.h <<\_ACEOF
12651 #define EXTENDED_COLOR_SPECS 1
12652 _ACEOF
12653
12654              VGAGLLIB="-l3dkit -lvgagl"
12655              with_vgagl=yes
12656
12657 else
12658               with_vgagl=no
12659              { echo "$as_me:$LINENO: result: unable to find 3dkit.h" >&5
12660 echo "${ECHO_T}unable to find 3dkit.h" >&6; }
12661
12662 fi
12663
12664 done
12665
12666
12667 else
12668
12669           with_vgagl=no
12670           { echo "$as_me:$LINENO: result: unable to find lib3dkit" >&5
12671 echo "${ECHO_T}unable to find lib3dkit" >&6; }
12672
12673 fi
12674
12675
12676 else
12677
12678        with_vgagl=no
12679        { echo "$as_me:$LINENO: result: unable to find vgagl.h" >&5
12680 echo "${ECHO_T}unable to find vgagl.h" >&6; }
12681
12682 fi
12683
12684 done
12685
12686
12687 else
12688       with_vgagl=no
12689      { echo "$as_me:$LINENO: result: unable to find libvgagl" >&5
12690 echo "${ECHO_T}unable to find libvgagl" >&6; }
12691
12692 fi
12693
12694     LIBS="$_LIBS"
12695 else
12696   with_vgagl=no
12697 fi
12698
12699 TERMLIBS="$VGAGLLIB $TERMLIBS"
12700
12701 # Check whether --enable-thin-splines was given.
12702 if test "${enable_thin_splines+set}" = set; then
12703   enableval=$enable_thin_splines; if test "$enableval" = yes; then
12704
12705 cat >>confdefs.h <<\_ACEOF
12706 #define THIN_PLATE_SPLINES_GRID 1
12707 _ACEOF
12708
12709    fi
12710 fi
12711
12712
12713 # Check whether --enable-datastrings was given.
12714 if test "${enable_datastrings+set}" = set; then
12715   enableval=$enable_datastrings;
12716 else
12717   test -z "$enable_datastrings" && enable_datastrings=yes
12718 fi
12719
12720
12721   if test "$enable_datastrings" = yes; then
12722
12723 cat >>confdefs.h <<\_ACEOF
12724 #define EAM_DATASTRINGS 1
12725 _ACEOF
12726
12727   fi
12728
12729 # Check whether --enable-histograms was given.
12730 if test "${enable_histograms+set}" = set; then
12731   enableval=$enable_histograms;
12732 else
12733   test -z "$enable_histograms" && enable_histograms=yes
12734 fi
12735
12736   if test "$enable_histograms" = yes; then
12737
12738     if test "$enable_datastrings" = yes; then
12739
12740 cat >>confdefs.h <<\_ACEOF
12741 #define EAM_HISTOGRAMS 1
12742 _ACEOF
12743
12744     else
12745       enable_histograms=no
12746       { echo "$as_me:$LINENO: WARNING: The --enable-histograms option requires --enable-datastrings. " >&5
12747 echo "$as_me: WARNING: The --enable-histograms option requires --enable-datastrings. " >&2;}
12748     fi
12749
12750   fi
12751
12752 # Check whether --enable-objects was given.
12753 if test "${enable_objects+set}" = set; then
12754   enableval=$enable_objects;
12755 else
12756   test -z "$enable_objects" && enable_objects=yes
12757 fi
12758
12759
12760   if test "$enable_objects" = yes; then
12761
12762 cat >>confdefs.h <<\_ACEOF
12763 #define EAM_OBJECTS 1
12764 _ACEOF
12765
12766   fi
12767
12768 # Check whether --enable-stringvariables was given.
12769 if test "${enable_stringvariables+set}" = set; then
12770   enableval=$enable_stringvariables;
12771 else
12772   test -z "$enable_stringvariables" && enable_stringvariables=yes
12773 fi
12774
12775   if test "$enable_stringvariables" = yes; then
12776
12777 cat >>confdefs.h <<\_ACEOF
12778 #define GP_STRING_VARS 2
12779 _ACEOF
12780
12781   fi
12782
12783 # Check whether --enable-macros was given.
12784 if test "${enable_macros+set}" = set; then
12785   enableval=$enable_macros;
12786 else
12787   test -z "$enable_macros" && enable_macros=yes
12788 fi
12789
12790   if test "$enable_macros" = yes; then
12791
12792     if test "$enable_stringvariables" = yes; then
12793
12794 cat >>confdefs.h <<\_ACEOF
12795 #define GP_MACROS 1
12796 _ACEOF
12797
12798     else
12799       enable_macros=no
12800       { echo "$as_me:$LINENO: WARNING: The --enable-macros option requires --enable-stringvariables. " >&5
12801 echo "$as_me: WARNING: The --enable-macros option requires --enable-stringvariables. " >&2;}
12802     fi
12803
12804   fi
12805
12806 # Check whether --enable-iris was given.
12807 if test "${enable_iris+set}" = set; then
12808   enableval=$enable_iris; if test "$enableval" = yes; then
12809      { echo "$as_me:$LINENO: checking for winopen in -lgl_s" >&5
12810 echo $ECHO_N "checking for winopen in -lgl_s... $ECHO_C" >&6; }
12811 if test "${ac_cv_lib_gl_s_winopen+set}" = set; then
12812   echo $ECHO_N "(cached) $ECHO_C" >&6
12813 else
12814   ac_check_lib_save_LIBS=$LIBS
12815 LIBS="-lgl_s  $LIBS"
12816 cat >conftest.$ac_ext <<_ACEOF
12817 /* confdefs.h.  */
12818 _ACEOF
12819 cat confdefs.h >>conftest.$ac_ext
12820 cat >>conftest.$ac_ext <<_ACEOF
12821 /* end confdefs.h.  */
12822
12823 /* Override any GCC internal prototype to avoid an error.
12824    Use char because int might match the return type of a GCC
12825    builtin and then its argument prototype would still apply.  */
12826 #ifdef __cplusplus
12827 extern "C"
12828 #endif
12829 char winopen ();
12830 int
12831 main ()
12832 {
12833 return winopen ();
12834   ;
12835   return 0;
12836 }
12837 _ACEOF
12838 rm -f conftest.$ac_objext conftest$ac_exeext
12839 if { (ac_try="$ac_link"
12840 case "(($ac_try" in
12841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12842   *) ac_try_echo=$ac_try;;
12843 esac
12844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12845   (eval "$ac_link") 2>conftest.er1
12846   ac_status=$?
12847   grep -v '^ *+' conftest.er1 >conftest.err
12848   rm -f conftest.er1
12849   cat conftest.err >&5
12850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851   (exit $ac_status); } && {
12852          test -z "$ac_c_werror_flag" ||
12853          test ! -s conftest.err
12854        } && test -s conftest$ac_exeext &&
12855        $as_test_x conftest$ac_exeext; then
12856   ac_cv_lib_gl_s_winopen=yes
12857 else
12858   echo "$as_me: failed program was:" >&5
12859 sed 's/^/| /' conftest.$ac_ext >&5
12860
12861         ac_cv_lib_gl_s_winopen=no
12862 fi
12863
12864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12865       conftest$ac_exeext conftest.$ac_ext
12866 LIBS=$ac_check_lib_save_LIBS
12867 fi
12868 { echo "$as_me:$LINENO: result: $ac_cv_lib_gl_s_winopen" >&5
12869 echo "${ECHO_T}$ac_cv_lib_gl_s_winopen" >&6; }
12870 if test $ac_cv_lib_gl_s_winopen = yes; then
12871
12872 cat >>confdefs.h <<\_ACEOF
12873 #define IRIS 1
12874 _ACEOF
12875
12876         TERMLIBS="-lgl_s $TERMLIBS"
12877 else
12878   enable_iris=no
12879 fi
12880
12881    fi
12882 fi
12883
12884
12885 # Check whether --enable-mgr was given.
12886 if test "${enable_mgr+set}" = set; then
12887   enableval=$enable_mgr; if test "$enableval" = yes; then
12888      { echo "$as_me:$LINENO: checking for m_getinfo in -lmgr" >&5
12889 echo $ECHO_N "checking for m_getinfo in -lmgr... $ECHO_C" >&6; }
12890 if test "${ac_cv_lib_mgr_m_getinfo+set}" = set; then
12891   echo $ECHO_N "(cached) $ECHO_C" >&6
12892 else
12893   ac_check_lib_save_LIBS=$LIBS
12894 LIBS="-lmgr -lpixrect $LIBS"
12895 cat >conftest.$ac_ext <<_ACEOF
12896 /* confdefs.h.  */
12897 _ACEOF
12898 cat confdefs.h >>conftest.$ac_ext
12899 cat >>conftest.$ac_ext <<_ACEOF
12900 /* end confdefs.h.  */
12901
12902 /* Override any GCC internal prototype to avoid an error.
12903    Use char because int might match the return type of a GCC
12904    builtin and then its argument prototype would still apply.  */
12905 #ifdef __cplusplus
12906 extern "C"
12907 #endif
12908 char m_getinfo ();
12909 int
12910 main ()
12911 {
12912 return m_getinfo ();
12913   ;
12914   return 0;
12915 }
12916 _ACEOF
12917 rm -f conftest.$ac_objext conftest$ac_exeext
12918 if { (ac_try="$ac_link"
12919 case "(($ac_try" in
12920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12921   *) ac_try_echo=$ac_try;;
12922 esac
12923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12924   (eval "$ac_link") 2>conftest.er1
12925   ac_status=$?
12926   grep -v '^ *+' conftest.er1 >conftest.err
12927   rm -f conftest.er1
12928   cat conftest.err >&5
12929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930   (exit $ac_status); } && {
12931          test -z "$ac_c_werror_flag" ||
12932          test ! -s conftest.err
12933        } && test -s conftest$ac_exeext &&
12934        $as_test_x conftest$ac_exeext; then
12935   ac_cv_lib_mgr_m_getinfo=yes
12936 else
12937   echo "$as_me: failed program was:" >&5
12938 sed 's/^/| /' conftest.$ac_ext >&5
12939
12940         ac_cv_lib_mgr_m_getinfo=no
12941 fi
12942
12943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12944       conftest$ac_exeext conftest.$ac_ext
12945 LIBS=$ac_check_lib_save_LIBS
12946 fi
12947 { echo "$as_me:$LINENO: result: $ac_cv_lib_mgr_m_getinfo" >&5
12948 echo "${ECHO_T}$ac_cv_lib_mgr_m_getinfo" >&6; }
12949 if test $ac_cv_lib_mgr_m_getinfo = yes; then
12950
12951 cat >>confdefs.h <<\_ACEOF
12952 #define MGR 1
12953 _ACEOF
12954
12955         TERMLIBS="-lmgr -lpixrect $TERMLIBS"
12956 else
12957   enable_mgr=no
12958 fi
12959
12960    fi
12961 fi
12962
12963
12964 # Check whether --enable-fiterrvars was given.
12965 if test "${enable_fiterrvars+set}" = set; then
12966   enableval=$enable_fiterrvars;
12967 else
12968   test -z "${enable_fiterrvars}" && enable_fiterrvars=yes
12969 fi
12970
12971 if test "$enable_fiterrvars" = yes; then
12972
12973 cat >>confdefs.h <<\_ACEOF
12974 #define GP_FIT_ERRVARS 1
12975 _ACEOF
12976
12977 fi
12978
12979 # Check whether --enable-rgip was given.
12980 if test "${enable_rgip+set}" = set; then
12981   enableval=$enable_rgip; if test "$enableval" = yes; then
12982
12983 cat >>confdefs.h <<\_ACEOF
12984 #define RGIP 1
12985 _ACEOF
12986
12987    fi
12988 fi
12989
12990
12991 # Check whether --enable-h3d-quadtree was given.
12992 if test "${enable_h3d_quadtree+set}" = set; then
12993   enableval=$enable_h3d_quadtree;
12994 else
12995   test -z "${enable_h3d_quadtree}" && enable_h3d_quadtree=yes
12996 fi
12997
12998 if test "$enable_h3d_quadtree" = yes; then
12999
13000 cat >>confdefs.h <<\_ACEOF
13001 #define HIDDEN3D_QUADTREE 1
13002 _ACEOF
13003
13004 fi
13005
13006 # Check whether --enable-h3d-gridbox was given.
13007 if test "${enable_h3d_gridbox+set}" = set; then
13008   enableval=$enable_h3d_gridbox; if test "$enable_h3d_quadtree" = yes; then
13009      { { echo "$as_me:$LINENO: error: Only one of the hidden3d options quadtree and gridbox may be enabled." >&5
13010 echo "$as_me: error: Only one of the hidden3d options quadtree and gridbox may be enabled." >&2;}
13011    { (exit 1); exit 1; }; }
13012    fi
13013    if test "$enableval" = yes; then
13014
13015 cat >>confdefs.h <<\_ACEOF
13016 #define HIDDEN3D_GRIDBOX 1
13017 _ACEOF
13018
13019    fi
13020 fi
13021
13022
13023
13024 cat >>confdefs.h <<\_ACEOF
13025 #define HIDDEN3D_VAR_PTSIZE 1
13026 _ACEOF
13027
13028
13029
13030 if test ! -f src/graphics.c ; then
13031   { echo "$as_me:$LINENO: result: Compiling outside source directory - copying needed files" >&5
13032 echo "${ECHO_T}Compiling outside source directory - copying needed files" >&6; }
13033   mkdir tutorial >/dev/null 2>&1
13034   cp ${srcdir}/tutorial/eg3.dat tutorial
13035 fi
13036
13037
13038
13039
13040 ac_ext=cpp
13041 ac_cpp='$CXXCPP $CPPFLAGS'
13042 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13043 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13044 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13045 if test -z "$CXX"; then
13046   if test -n "$CCC"; then
13047     CXX=$CCC
13048   else
13049     if test -n "$ac_tool_prefix"; then
13050   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13051   do
13052     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13053 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13056 if test "${ac_cv_prog_CXX+set}" = set; then
13057   echo $ECHO_N "(cached) $ECHO_C" >&6
13058 else
13059   if test -n "$CXX"; then
13060   ac_cv_prog_CXX="$CXX" # Let the user override the test.
13061 else
13062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13063 for as_dir in $PATH
13064 do
13065   IFS=$as_save_IFS
13066   test -z "$as_dir" && as_dir=.
13067   for ac_exec_ext in '' $ac_executable_extensions; do
13068   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13069     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13070     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13071     break 2
13072   fi
13073 done
13074 done
13075 IFS=$as_save_IFS
13076
13077 fi
13078 fi
13079 CXX=$ac_cv_prog_CXX
13080 if test -n "$CXX"; then
13081   { echo "$as_me:$LINENO: result: $CXX" >&5
13082 echo "${ECHO_T}$CXX" >&6; }
13083 else
13084   { echo "$as_me:$LINENO: result: no" >&5
13085 echo "${ECHO_T}no" >&6; }
13086 fi
13087
13088
13089     test -n "$CXX" && break
13090   done
13091 fi
13092 if test -z "$CXX"; then
13093   ac_ct_CXX=$CXX
13094   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13095 do
13096   # Extract the first word of "$ac_prog", so it can be a program name with args.
13097 set dummy $ac_prog; ac_word=$2
13098 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13100 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13101   echo $ECHO_N "(cached) $ECHO_C" >&6
13102 else
13103   if test -n "$ac_ct_CXX"; then
13104   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13105 else
13106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13107 for as_dir in $PATH
13108 do
13109   IFS=$as_save_IFS
13110   test -z "$as_dir" && as_dir=.
13111   for ac_exec_ext in '' $ac_executable_extensions; do
13112   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13113     ac_cv_prog_ac_ct_CXX="$ac_prog"
13114     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13115     break 2
13116   fi
13117 done
13118 done
13119 IFS=$as_save_IFS
13120
13121 fi
13122 fi
13123 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13124 if test -n "$ac_ct_CXX"; then
13125   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13126 echo "${ECHO_T}$ac_ct_CXX" >&6; }
13127 else
13128   { echo "$as_me:$LINENO: result: no" >&5
13129 echo "${ECHO_T}no" >&6; }
13130 fi
13131
13132
13133   test -n "$ac_ct_CXX" && break
13134 done
13135
13136   if test "x$ac_ct_CXX" = x; then
13137     CXX="g++"
13138   else
13139     case $cross_compiling:$ac_tool_warned in
13140 yes:)
13141 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13142 whose name does not start with the host triplet.  If you think this
13143 configuration is useful to you, please write to autoconf@gnu.org." >&5
13144 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13145 whose name does not start with the host triplet.  If you think this
13146 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13147 ac_tool_warned=yes ;;
13148 esac
13149     CXX=$ac_ct_CXX
13150   fi
13151 fi
13152
13153   fi
13154 fi
13155 # Provide some information about the compiler.
13156 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
13157 ac_compiler=`set X $ac_compile; echo $2`
13158 { (ac_try="$ac_compiler --version >&5"
13159 case "(($ac_try" in
13160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13161   *) ac_try_echo=$ac_try;;
13162 esac
13163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13164   (eval "$ac_compiler --version >&5") 2>&5
13165   ac_status=$?
13166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167   (exit $ac_status); }
13168 { (ac_try="$ac_compiler -v >&5"
13169 case "(($ac_try" in
13170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13171   *) ac_try_echo=$ac_try;;
13172 esac
13173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13174   (eval "$ac_compiler -v >&5") 2>&5
13175   ac_status=$?
13176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177   (exit $ac_status); }
13178 { (ac_try="$ac_compiler -V >&5"
13179 case "(($ac_try" in
13180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13181   *) ac_try_echo=$ac_try;;
13182 esac
13183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13184   (eval "$ac_compiler -V >&5") 2>&5
13185   ac_status=$?
13186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187   (exit $ac_status); }
13188
13189 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13190 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
13191 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13192   echo $ECHO_N "(cached) $ECHO_C" >&6
13193 else
13194   cat >conftest.$ac_ext <<_ACEOF
13195 /* confdefs.h.  */
13196 _ACEOF
13197 cat confdefs.h >>conftest.$ac_ext
13198 cat >>conftest.$ac_ext <<_ACEOF
13199 /* end confdefs.h.  */
13200
13201 int
13202 main ()
13203 {
13204 #ifndef __GNUC__
13205        choke me
13206 #endif
13207
13208   ;
13209   return 0;
13210 }
13211 _ACEOF
13212 rm -f conftest.$ac_objext
13213 if { (ac_try="$ac_compile"
13214 case "(($ac_try" in
13215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13216   *) ac_try_echo=$ac_try;;
13217 esac
13218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13219   (eval "$ac_compile") 2>conftest.er1
13220   ac_status=$?
13221   grep -v '^ *+' conftest.er1 >conftest.err
13222   rm -f conftest.er1
13223   cat conftest.err >&5
13224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225   (exit $ac_status); } && {
13226          test -z "$ac_cxx_werror_flag" ||
13227          test ! -s conftest.err
13228        } && test -s conftest.$ac_objext; then
13229   ac_compiler_gnu=yes
13230 else
13231   echo "$as_me: failed program was:" >&5
13232 sed 's/^/| /' conftest.$ac_ext >&5
13233
13234         ac_compiler_gnu=no
13235 fi
13236
13237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13238 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13239
13240 fi
13241 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13242 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
13243 GXX=`test $ac_compiler_gnu = yes && echo yes`
13244 ac_test_CXXFLAGS=${CXXFLAGS+set}
13245 ac_save_CXXFLAGS=$CXXFLAGS
13246 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13247 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
13248 if test "${ac_cv_prog_cxx_g+set}" = set; then
13249   echo $ECHO_N "(cached) $ECHO_C" >&6
13250 else
13251   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13252    ac_cxx_werror_flag=yes
13253    ac_cv_prog_cxx_g=no
13254    CXXFLAGS="-g"
13255    cat >conftest.$ac_ext <<_ACEOF
13256 /* confdefs.h.  */
13257 _ACEOF
13258 cat confdefs.h >>conftest.$ac_ext
13259 cat >>conftest.$ac_ext <<_ACEOF
13260 /* end confdefs.h.  */
13261
13262 int
13263 main ()
13264 {
13265
13266   ;
13267   return 0;
13268 }
13269 _ACEOF
13270 rm -f conftest.$ac_objext
13271 if { (ac_try="$ac_compile"
13272 case "(($ac_try" in
13273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13274   *) ac_try_echo=$ac_try;;
13275 esac
13276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13277   (eval "$ac_compile") 2>conftest.er1
13278   ac_status=$?
13279   grep -v '^ *+' conftest.er1 >conftest.err
13280   rm -f conftest.er1
13281   cat conftest.err >&5
13282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283   (exit $ac_status); } && {
13284          test -z "$ac_cxx_werror_flag" ||
13285          test ! -s conftest.err
13286        } && test -s conftest.$ac_objext; then
13287   ac_cv_prog_cxx_g=yes
13288 else
13289   echo "$as_me: failed program was:" >&5
13290 sed 's/^/| /' conftest.$ac_ext >&5
13291
13292         CXXFLAGS=""
13293       cat >conftest.$ac_ext <<_ACEOF
13294 /* confdefs.h.  */
13295 _ACEOF
13296 cat confdefs.h >>conftest.$ac_ext
13297 cat >>conftest.$ac_ext <<_ACEOF
13298 /* end confdefs.h.  */
13299
13300 int
13301 main ()
13302 {
13303
13304   ;
13305   return 0;
13306 }
13307 _ACEOF
13308 rm -f conftest.$ac_objext
13309 if { (ac_try="$ac_compile"
13310 case "(($ac_try" in
13311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13312   *) ac_try_echo=$ac_try;;
13313 esac
13314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13315   (eval "$ac_compile") 2>conftest.er1
13316   ac_status=$?
13317   grep -v '^ *+' conftest.er1 >conftest.err
13318   rm -f conftest.er1
13319   cat conftest.err >&5
13320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321   (exit $ac_status); } && {
13322          test -z "$ac_cxx_werror_flag" ||
13323          test ! -s conftest.err
13324        } && test -s conftest.$ac_objext; then
13325   :
13326 else
13327   echo "$as_me: failed program was:" >&5
13328 sed 's/^/| /' conftest.$ac_ext >&5
13329
13330         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13331          CXXFLAGS="-g"
13332          cat >conftest.$ac_ext <<_ACEOF
13333 /* confdefs.h.  */
13334 _ACEOF
13335 cat confdefs.h >>conftest.$ac_ext
13336 cat >>conftest.$ac_ext <<_ACEOF
13337 /* end confdefs.h.  */
13338
13339 int
13340 main ()
13341 {
13342
13343   ;
13344   return 0;
13345 }
13346 _ACEOF
13347 rm -f conftest.$ac_objext
13348 if { (ac_try="$ac_compile"
13349 case "(($ac_try" in
13350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13351   *) ac_try_echo=$ac_try;;
13352 esac
13353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13354   (eval "$ac_compile") 2>conftest.er1
13355   ac_status=$?
13356   grep -v '^ *+' conftest.er1 >conftest.err
13357   rm -f conftest.er1
13358   cat conftest.err >&5
13359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360   (exit $ac_status); } && {
13361          test -z "$ac_cxx_werror_flag" ||
13362          test ! -s conftest.err
13363        } && test -s conftest.$ac_objext; then
13364   ac_cv_prog_cxx_g=yes
13365 else
13366   echo "$as_me: failed program was:" >&5
13367 sed 's/^/| /' conftest.$ac_ext >&5
13368
13369
13370 fi
13371
13372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13373 fi
13374
13375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13376 fi
13377
13378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13379    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13380 fi
13381 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13382 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
13383 if test "$ac_test_CXXFLAGS" = set; then
13384   CXXFLAGS=$ac_save_CXXFLAGS
13385 elif test $ac_cv_prog_cxx_g = yes; then
13386   if test "$GXX" = yes; then
13387     CXXFLAGS="-g -O2"
13388   else
13389     CXXFLAGS="-g"
13390   fi
13391 else
13392   if test "$GXX" = yes; then
13393     CXXFLAGS="-O2"
13394   else
13395     CXXFLAGS=
13396   fi
13397 fi
13398 ac_ext=c
13399 ac_cpp='$CPP $CPPFLAGS'
13400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13403
13404 depcc="$CXX"  am_compiler_list=
13405
13406 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13407 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
13408 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
13409   echo $ECHO_N "(cached) $ECHO_C" >&6
13410 else
13411   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13412   # We make a subdir and do the tests there.  Otherwise we can end up
13413   # making bogus files that we don't know about and never remove.  For
13414   # instance it was reported that on HP-UX the gcc test will end up
13415   # making a dummy file named `D' -- because `-MD' means `put the output
13416   # in D'.
13417   mkdir conftest.dir
13418   # Copy depcomp to subdir because otherwise we won't find it if we're
13419   # using a relative directory.
13420   cp "$am_depcomp" conftest.dir
13421   cd conftest.dir
13422   # We will build objects and dependencies in a subdirectory because
13423   # it helps to detect inapplicable dependency modes.  For instance
13424   # both Tru64's cc and ICC support -MD to output dependencies as a
13425   # side effect of compilation, but ICC will put the dependencies in
13426   # the current directory while Tru64 will put them in the object
13427   # directory.
13428   mkdir sub
13429
13430   am_cv_CXX_dependencies_compiler_type=none
13431   if test "$am_compiler_list" = ""; then
13432      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13433   fi
13434   for depmode in $am_compiler_list; do
13435     # Setup a source with many dependencies, because some compilers
13436     # like to wrap large dependency lists on column 80 (with \), and
13437     # we should not choose a depcomp mode which is confused by this.
13438     #
13439     # We need to recreate these files for each test, as the compiler may
13440     # overwrite some of them when testing with obscure command lines.
13441     # This happens at least with the AIX C compiler.
13442     : > sub/conftest.c
13443     for i in 1 2 3 4 5 6; do
13444       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13445       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13446       # Solaris 8's {/usr,}/bin/sh.
13447       touch sub/conftst$i.h
13448     done
13449     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13450
13451     case $depmode in
13452     nosideeffect)
13453       # after this tag, mechanisms are not by side-effect, so they'll
13454       # only be used when explicitly requested
13455       if test "x$enable_dependency_tracking" = xyes; then
13456         continue
13457       else
13458         break
13459       fi
13460       ;;
13461     none) break ;;
13462     esac
13463     # We check with `-c' and `-o' for the sake of the "dashmstdout"
13464     # mode.  It turns out that the SunPro C++ compiler does not properly
13465     # handle `-M -o', and we need to detect this.
13466     if depmode=$depmode \
13467        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
13468        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13469        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
13470          >/dev/null 2>conftest.err &&
13471        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13472        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
13473        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13474       # icc doesn't choke on unknown options, it will just issue warnings
13475       # or remarks (even with -Werror).  So we grep stderr for any message
13476       # that says an option was ignored or not supported.
13477       # When given -MP, icc 7.0 and 7.1 complain thusly:
13478       #   icc: Command line warning: ignoring option '-M'; no argument required
13479       # The diagnosis changed in icc 8.0:
13480       #   icc: Command line remark: option '-MP' not supported
13481       if (grep 'ignoring option' conftest.err ||
13482           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13483         am_cv_CXX_dependencies_compiler_type=$depmode
13484         break
13485       fi
13486     fi
13487   done
13488
13489   cd ..
13490   rm -rf conftest.dir
13491 else
13492   am_cv_CXX_dependencies_compiler_type=none
13493 fi
13494
13495 fi
13496 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
13497 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
13498 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13499
13500
13501
13502 if
13503   test "x$enable_dependency_tracking" != xno \
13504   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13505   am__fastdepCXX_TRUE=
13506   am__fastdepCXX_FALSE='#'
13507 else
13508   am__fastdepCXX_TRUE='#'
13509   am__fastdepCXX_FALSE=
13510 fi
13511
13512
13513
13514
13515 if test "x${cxxerror}" != "xyes"; then
13516   ac_ext=cpp
13517 ac_cpp='$CXXCPP $CPPFLAGS'
13518 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13519 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13520 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13521
13522
13523 cat >conftest.$ac_ext <<_ACEOF
13524 /* confdefs.h.  */
13525 _ACEOF
13526 cat confdefs.h >>conftest.$ac_ext
13527 cat >>conftest.$ac_ext <<_ACEOF
13528 /* end confdefs.h.  */
13529 #include <iostream>
13530 int
13531 main ()
13532 {
13533 const char hw[] = "Hello, World\n"; std::cout << hw;
13534   ;
13535   return 0;
13536 }
13537 _ACEOF
13538 rm -f conftest.$ac_objext
13539 if { (ac_try="$ac_compile"
13540 case "(($ac_try" in
13541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13542   *) ac_try_echo=$ac_try;;
13543 esac
13544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13545   (eval "$ac_compile") 2>conftest.er1
13546   ac_status=$?
13547   grep -v '^ *+' conftest.er1 >conftest.err
13548   rm -f conftest.er1
13549   cat conftest.err >&5
13550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551   (exit $ac_status); } && {
13552          test -z "$ac_cxx_werror_flag" ||
13553          test ! -s conftest.err
13554        } && test -s conftest.$ac_objext; then
13555   cxxerror=no
13556         ac_ext=cpp
13557 ac_cpp='$CXXCPP $CPPFLAGS'
13558 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13559 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13560 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13561 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13562 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13563 if test -z "$CXXCPP"; then
13564   if test "${ac_cv_prog_CXXCPP+set}" = set; then
13565   echo $ECHO_N "(cached) $ECHO_C" >&6
13566 else
13567       # Double quotes because CXXCPP needs to be expanded
13568     for CXXCPP in "$CXX -E" "/lib/cpp"
13569     do
13570       ac_preproc_ok=false
13571 for ac_cxx_preproc_warn_flag in '' yes
13572 do
13573   # Use a header file that comes with gcc, so configuring glibc
13574   # with a fresh cross-compiler works.
13575   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13576   # <limits.h> exists even on freestanding compilers.
13577   # On the NeXT, cc -E runs the code through the compiler's parser,
13578   # not just through cpp. "Syntax error" is here to catch this case.
13579   cat >conftest.$ac_ext <<_ACEOF
13580 /* confdefs.h.  */
13581 _ACEOF
13582 cat confdefs.h >>conftest.$ac_ext
13583 cat >>conftest.$ac_ext <<_ACEOF
13584 /* end confdefs.h.  */
13585 #ifdef __STDC__
13586 # include <limits.h>
13587 #else
13588 # include <assert.h>
13589 #endif
13590                      Syntax error
13591 _ACEOF
13592 if { (ac_try="$ac_cpp conftest.$ac_ext"
13593 case "(($ac_try" in
13594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13595   *) ac_try_echo=$ac_try;;
13596 esac
13597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13598   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13599   ac_status=$?
13600   grep -v '^ *+' conftest.er1 >conftest.err
13601   rm -f conftest.er1
13602   cat conftest.err >&5
13603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604   (exit $ac_status); } >/dev/null && {
13605          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13606          test ! -s conftest.err
13607        }; then
13608   :
13609 else
13610   echo "$as_me: failed program was:" >&5
13611 sed 's/^/| /' conftest.$ac_ext >&5
13612
13613   # Broken: fails on valid input.
13614 continue
13615 fi
13616
13617 rm -f conftest.err conftest.$ac_ext
13618
13619   # OK, works on sane cases.  Now check whether nonexistent headers
13620   # can be detected and how.
13621   cat >conftest.$ac_ext <<_ACEOF
13622 /* confdefs.h.  */
13623 _ACEOF
13624 cat confdefs.h >>conftest.$ac_ext
13625 cat >>conftest.$ac_ext <<_ACEOF
13626 /* end confdefs.h.  */
13627 #include <ac_nonexistent.h>
13628 _ACEOF
13629 if { (ac_try="$ac_cpp conftest.$ac_ext"
13630 case "(($ac_try" in
13631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13632   *) ac_try_echo=$ac_try;;
13633 esac
13634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13635   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13636   ac_status=$?
13637   grep -v '^ *+' conftest.er1 >conftest.err
13638   rm -f conftest.er1
13639   cat conftest.err >&5
13640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641   (exit $ac_status); } >/dev/null && {
13642          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13643          test ! -s conftest.err
13644        }; then
13645   # Broken: success on invalid input.
13646 continue
13647 else
13648   echo "$as_me: failed program was:" >&5
13649 sed 's/^/| /' conftest.$ac_ext >&5
13650
13651   # Passes both tests.
13652 ac_preproc_ok=:
13653 break
13654 fi
13655
13656 rm -f conftest.err conftest.$ac_ext
13657
13658 done
13659 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13660 rm -f conftest.err conftest.$ac_ext
13661 if $ac_preproc_ok; then
13662   break
13663 fi
13664
13665     done
13666     ac_cv_prog_CXXCPP=$CXXCPP
13667
13668 fi
13669   CXXCPP=$ac_cv_prog_CXXCPP
13670 else
13671   ac_cv_prog_CXXCPP=$CXXCPP
13672 fi
13673 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13674 echo "${ECHO_T}$CXXCPP" >&6; }
13675 ac_preproc_ok=false
13676 for ac_cxx_preproc_warn_flag in '' yes
13677 do
13678   # Use a header file that comes with gcc, so configuring glibc
13679   # with a fresh cross-compiler works.
13680   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13681   # <limits.h> exists even on freestanding compilers.
13682   # On the NeXT, cc -E runs the code through the compiler's parser,
13683   # not just through cpp. "Syntax error" is here to catch this case.
13684   cat >conftest.$ac_ext <<_ACEOF
13685 /* confdefs.h.  */
13686 _ACEOF
13687 cat confdefs.h >>conftest.$ac_ext
13688 cat >>conftest.$ac_ext <<_ACEOF
13689 /* end confdefs.h.  */
13690 #ifdef __STDC__
13691 # include <limits.h>
13692 #else
13693 # include <assert.h>
13694 #endif
13695                      Syntax error
13696 _ACEOF
13697 if { (ac_try="$ac_cpp conftest.$ac_ext"
13698 case "(($ac_try" in
13699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13700   *) ac_try_echo=$ac_try;;
13701 esac
13702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13703   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13704   ac_status=$?
13705   grep -v '^ *+' conftest.er1 >conftest.err
13706   rm -f conftest.er1
13707   cat conftest.err >&5
13708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709   (exit $ac_status); } >/dev/null && {
13710          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13711          test ! -s conftest.err
13712        }; then
13713   :
13714 else
13715   echo "$as_me: failed program was:" >&5
13716 sed 's/^/| /' conftest.$ac_ext >&5
13717
13718   # Broken: fails on valid input.
13719 continue
13720 fi
13721
13722 rm -f conftest.err conftest.$ac_ext
13723
13724   # OK, works on sane cases.  Now check whether nonexistent headers
13725   # can be detected and how.
13726   cat >conftest.$ac_ext <<_ACEOF
13727 /* confdefs.h.  */
13728 _ACEOF
13729 cat confdefs.h >>conftest.$ac_ext
13730 cat >>conftest.$ac_ext <<_ACEOF
13731 /* end confdefs.h.  */
13732 #include <ac_nonexistent.h>
13733 _ACEOF
13734 if { (ac_try="$ac_cpp conftest.$ac_ext"
13735 case "(($ac_try" in
13736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13737   *) ac_try_echo=$ac_try;;
13738 esac
13739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13740   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13741   ac_status=$?
13742   grep -v '^ *+' conftest.er1 >conftest.err
13743   rm -f conftest.er1
13744   cat conftest.err >&5
13745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746   (exit $ac_status); } >/dev/null && {
13747          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13748          test ! -s conftest.err
13749        }; then
13750   # Broken: success on invalid input.
13751 continue
13752 else
13753   echo "$as_me: failed program was:" >&5
13754 sed 's/^/| /' conftest.$ac_ext >&5
13755
13756   # Passes both tests.
13757 ac_preproc_ok=:
13758 break
13759 fi
13760
13761 rm -f conftest.err conftest.$ac_ext
13762
13763 done
13764 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13765 rm -f conftest.err conftest.$ac_ext
13766 if $ac_preproc_ok; then
13767   :
13768 else
13769   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13770 See \`config.log' for more details." >&5
13771 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13772 See \`config.log' for more details." >&2;}
13773    { (exit 1); exit 1; }; }
13774 fi
13775
13776 ac_ext=cpp
13777 ac_cpp='$CXXCPP $CPPFLAGS'
13778 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13779 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13780 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13781
13782 else
13783   echo "$as_me: failed program was:" >&5
13784 sed 's/^/| /' conftest.$ac_ext >&5
13785
13786         cxxerror=yes
13787         CXX=$CC
13788 fi
13789
13790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13791   ac_ext=c
13792 ac_cpp='$CPP $CPPFLAGS'
13793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13796
13797 fi
13798
13799 # Check whether --enable-wxwidgets was given.
13800 if test "${enable_wxwidgets+set}" = set; then
13801   enableval=$enable_wxwidgets;
13802 else
13803   test -z "${enable_wxwidgets}" && enable_wxwidgets=yes
13804 fi
13805
13806
13807 if test "${enable_wxwidgets}" = yes ; then
13808     enable_wxwidgets_ok=yes
13809
13810     if test "x${cxxerror}" = "xyes"; then
13811     { echo "$as_me:$LINENO: WARNING: No C++ compiler found. The wxWidgets terminal will not be compiled." >&5
13812 echo "$as_me: WARNING: No C++ compiler found. The wxWidgets terminal will not be compiled." >&2;}
13813       enable_wxwidgets_ok=no
13814   fi
13815
13816     WXWIDGETS_PATH="${PATH}"
13817
13818 # Check whether --with-wx-config was given.
13819 if test "${with_wx_config+set}" = set; then
13820   withval=$with_wx_config;  if test "${with_wx_config}" != "no" ; then
13821         WXWIDGETS_PATH="${with_wx_config}:${PATH}"
13822      fi
13823 fi
13824
13825
13826     # Extract the first word of "wx-config", so it can be a program name with args.
13827 set dummy wx-config; ac_word=$2
13828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13830 if test "${ac_cv_path_WX_CONFIG+set}" = set; then
13831   echo $ECHO_N "(cached) $ECHO_C" >&6
13832 else
13833   case $WX_CONFIG in
13834   [\\/]* | ?:[\\/]*)
13835   ac_cv_path_WX_CONFIG="$WX_CONFIG" # Let the user override the test with a path.
13836   ;;
13837   *)
13838   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13839 for as_dir in ${WXWIDGETS_PATH}
13840 do
13841   IFS=$as_save_IFS
13842   test -z "$as_dir" && as_dir=.
13843   for ac_exec_ext in '' $ac_executable_extensions; do
13844   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13845     ac_cv_path_WX_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13846     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13847     break 2
13848   fi
13849 done
13850 done
13851 IFS=$as_save_IFS
13852
13853   test -z "$ac_cv_path_WX_CONFIG" && ac_cv_path_WX_CONFIG="no"
13854   ;;
13855 esac
13856 fi
13857 WX_CONFIG=$ac_cv_path_WX_CONFIG
13858 if test -n "$WX_CONFIG"; then
13859   { echo "$as_me:$LINENO: result: $WX_CONFIG" >&5
13860 echo "${ECHO_T}$WX_CONFIG" >&6; }
13861 else
13862   { echo "$as_me:$LINENO: result: no" >&5
13863 echo "${ECHO_T}no" >&6; }
13864 fi
13865
13866
13867   if test "${WX_CONFIG}" = "no"; then
13868     { echo "$as_me:$LINENO: WARNING: wxWidgets can't be found. You can try --with-wx-config-path to give the right path to wx-config. The wxWidgets terminal will not be compiled." >&5
13869 echo "$as_me: WARNING: wxWidgets can't be found. You can try --with-wx-config-path to give the right path to wx-config. The wxWidgets terminal will not be compiled." >&2;}
13870     enable_wxwidgets_ok=no
13871   else
13872
13873         if expr 2.5.3 \> `${WX_CONFIG} --version` >/dev/null; then
13874       { echo "$as_me:$LINENO: WARNING: Your development package for wxWidgets is too old, you need at least version 2.5.3. The wxWidgets terminal will not be compiled." >&5
13875 echo "$as_me: WARNING: Your development package for wxWidgets is too old, you need at least version 2.5.3. The wxWidgets terminal will not be compiled." >&2;}
13876       enable_wxwidgets_ok=no
13877     fi
13878   fi
13879
13880
13881
13882 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13883         if test -n "$ac_tool_prefix"; then
13884   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13885 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13888 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13889   echo $ECHO_N "(cached) $ECHO_C" >&6
13890 else
13891   case $PKG_CONFIG in
13892   [\\/]* | ?:[\\/]*)
13893   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13894   ;;
13895   *)
13896   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13897 for as_dir in $PATH
13898 do
13899   IFS=$as_save_IFS
13900   test -z "$as_dir" && as_dir=.
13901   for ac_exec_ext in '' $ac_executable_extensions; do
13902   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13903     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13904     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13905     break 2
13906   fi
13907 done
13908 done
13909 IFS=$as_save_IFS
13910
13911   ;;
13912 esac
13913 fi
13914 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13915 if test -n "$PKG_CONFIG"; then
13916   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13917 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13918 else
13919   { echo "$as_me:$LINENO: result: no" >&5
13920 echo "${ECHO_T}no" >&6; }
13921 fi
13922
13923
13924 fi
13925 if test -z "$ac_cv_path_PKG_CONFIG"; then
13926   ac_pt_PKG_CONFIG=$PKG_CONFIG
13927   # Extract the first word of "pkg-config", so it can be a program name with args.
13928 set dummy pkg-config; ac_word=$2
13929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13931 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
13932   echo $ECHO_N "(cached) $ECHO_C" >&6
13933 else
13934   case $ac_pt_PKG_CONFIG in
13935   [\\/]* | ?:[\\/]*)
13936   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13937   ;;
13938   *)
13939   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13940 for as_dir in $PATH
13941 do
13942   IFS=$as_save_IFS
13943   test -z "$as_dir" && as_dir=.
13944   for ac_exec_ext in '' $ac_executable_extensions; do
13945   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13946     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13947     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13948     break 2
13949   fi
13950 done
13951 done
13952 IFS=$as_save_IFS
13953
13954   ;;
13955 esac
13956 fi
13957 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13958 if test -n "$ac_pt_PKG_CONFIG"; then
13959   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
13960 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
13961 else
13962   { echo "$as_me:$LINENO: result: no" >&5
13963 echo "${ECHO_T}no" >&6; }
13964 fi
13965
13966   if test "x$ac_pt_PKG_CONFIG" = x; then
13967     PKG_CONFIG=""
13968   else
13969     case $cross_compiling:$ac_tool_warned in
13970 yes:)
13971 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13972 whose name does not start with the host triplet.  If you think this
13973 configuration is useful to you, please write to autoconf@gnu.org." >&5
13974 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13975 whose name does not start with the host triplet.  If you think this
13976 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13977 ac_tool_warned=yes ;;
13978 esac
13979     PKG_CONFIG=$ac_pt_PKG_CONFIG
13980   fi
13981 else
13982   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13983 fi
13984
13985 fi
13986 if test -n "$PKG_CONFIG"; then
13987         _pkg_min_version=0.9.0
13988         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
13989 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
13990         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13991                 { echo "$as_me:$LINENO: result: yes" >&5
13992 echo "${ECHO_T}yes" >&6; }
13993         else
13994                 { echo "$as_me:$LINENO: result: no" >&5
13995 echo "${ECHO_T}no" >&6; }
13996                 PKG_CONFIG=""
13997         fi
13998
13999 fi
14000
14001 pkg_failed=no
14002 { echo "$as_me:$LINENO: checking for CAIROPANGO" >&5
14003 echo $ECHO_N "checking for CAIROPANGO... $ECHO_C" >&6; }
14004
14005 if test -n "$PKG_CONFIG"; then
14006     if test -n "$CAIROPANGO_CFLAGS"; then
14007         pkg_cv_CAIROPANGO_CFLAGS="$CAIROPANGO_CFLAGS"
14008     else
14009         if test -n "$PKG_CONFIG" && \
14010     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo >= 0.9.0 pango >= 1.10 pangocairo >= 1.10\"") >&5
14011   ($PKG_CONFIG --exists --print-errors "cairo >= 0.9.0 pango >= 1.10 pangocairo >= 1.10") 2>&5
14012   ac_status=$?
14013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014   (exit $ac_status); }; then
14015   pkg_cv_CAIROPANGO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 0.9.0 pango >= 1.10 pangocairo >= 1.10" 2>/dev/null`
14016 else
14017   pkg_failed=yes
14018 fi
14019     fi
14020 else
14021         pkg_failed=untried
14022 fi
14023 if test -n "$PKG_CONFIG"; then
14024     if test -n "$CAIROPANGO_LIBS"; then
14025         pkg_cv_CAIROPANGO_LIBS="$CAIROPANGO_LIBS"
14026     else
14027         if test -n "$PKG_CONFIG" && \
14028     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo >= 0.9.0 pango >= 1.10 pangocairo >= 1.10\"") >&5
14029   ($PKG_CONFIG --exists --print-errors "cairo >= 0.9.0 pango >= 1.10 pangocairo >= 1.10") 2>&5
14030   ac_status=$?
14031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032   (exit $ac_status); }; then
14033   pkg_cv_CAIROPANGO_LIBS=`$PKG_CONFIG --libs "cairo >= 0.9.0 pango >= 1.10 pangocairo >= 1.10" 2>/dev/null`
14034 else
14035   pkg_failed=yes
14036 fi
14037     fi
14038 else
14039         pkg_failed=untried
14040 fi
14041
14042
14043
14044 if test $pkg_failed = yes; then
14045
14046 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14047         _pkg_short_errors_supported=yes
14048 else
14049         _pkg_short_errors_supported=no
14050 fi
14051         if test $_pkg_short_errors_supported = yes; then
14052                 CAIROPANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo >= 0.9.0 pango >= 1.10 pangocairo >= 1.10"`
14053         else
14054                 CAIROPANGO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo >= 0.9.0 pango >= 1.10 pangocairo >= 1.10"`
14055         fi
14056         # Put the nasty error message in config.log where it belongs
14057         echo "$CAIROPANGO_PKG_ERRORS" >&5
14058
14059             if test $pkg_failed = yes; then
14060         { echo "$as_me:$LINENO: WARNING: Package requirements (cairo >= 0.9.0 pango >= 1.10 pangocairo >= 1.10) for the
14061 wxWidgets terminal were not met:
14062
14063 $CAIROPANGO_PKG_ERRORS
14064
14065 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14066 installed software in a non-standard prefix.
14067
14068 Alternatively, you can avoid the need to call pkg-config if you set the
14069 environment variables CAIROPANGO_CFLAGS and CAIROPANGO_LIBS to the
14070 corresponding flags for cairo, pango, and pangocairo.
14071 See the pkg-config man page for more details.
14072
14073 The wxWidgets terminal will not be compiled." >&5
14074 echo "$as_me: WARNING: Package requirements (cairo >= 0.9.0 pango >= 1.10 pangocairo >= 1.10) for the
14075 wxWidgets terminal were not met:
14076
14077 $CAIROPANGO_PKG_ERRORS
14078
14079 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14080 installed software in a non-standard prefix.
14081
14082 Alternatively, you can avoid the need to call pkg-config if you set the
14083 environment variables CAIROPANGO_CFLAGS and CAIROPANGO_LIBS to the
14084 corresponding flags for cairo, pango, and pangocairo.
14085 See the pkg-config man page for more details.
14086
14087 The wxWidgets terminal will not be compiled." >&2;}
14088     elif test $pkg_failed = untried; then
14089         { echo "$as_me:$LINENO: WARNING: The pkg-config script could not be found or is too old.  Make sure it
14090 is in your PATH or set the PKG_CONFIG environment variable to the full
14091 path to pkg-config.
14092
14093 Alternatively, you can avoid the need to call pkg-config if you set the
14094 environment variables CAIROPANGO_CFLAGS and CAIROPANGO_LIBS to the
14095 corresponding flags for cairo, pango, and pangocairo.
14096 See the pkg-config man page for more details.
14097
14098 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
14099
14100 The wxWidgets terminal will not be compiled." >&5
14101 echo "$as_me: WARNING: The pkg-config script could not be found or is too old.  Make sure it
14102 is in your PATH or set the PKG_CONFIG environment variable to the full
14103 path to pkg-config.
14104
14105 Alternatively, you can avoid the need to call pkg-config if you set the
14106 environment variables CAIROPANGO_CFLAGS and CAIROPANGO_LIBS to the
14107 corresponding flags for cairo, pango, and pangocairo.
14108 See the pkg-config man page for more details.
14109
14110 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
14111
14112 The wxWidgets terminal will not be compiled." >&2;}
14113     fi
14114     enable_wxwidgets_ok=no
14115 elif test $pkg_failed = untried; then
14116             if test $pkg_failed = yes; then
14117         { echo "$as_me:$LINENO: WARNING: Package requirements (cairo >= 0.9.0 pango >= 1.10 pangocairo >= 1.10) for the
14118 wxWidgets terminal were not met:
14119
14120 $CAIROPANGO_PKG_ERRORS
14121
14122 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14123 installed software in a non-standard prefix.
14124
14125 Alternatively, you can avoid the need to call pkg-config if you set the
14126 environment variables CAIROPANGO_CFLAGS and CAIROPANGO_LIBS to the
14127 corresponding flags for cairo, pango, and pangocairo.
14128 See the pkg-config man page for more details.
14129
14130 The wxWidgets terminal will not be compiled." >&5
14131 echo "$as_me: WARNING: Package requirements (cairo >= 0.9.0 pango >= 1.10 pangocairo >= 1.10) for the
14132 wxWidgets terminal were not met:
14133
14134 $CAIROPANGO_PKG_ERRORS
14135
14136 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14137 installed software in a non-standard prefix.
14138
14139 Alternatively, you can avoid the need to call pkg-config if you set the
14140 environment variables CAIROPANGO_CFLAGS and CAIROPANGO_LIBS to the
14141 corresponding flags for cairo, pango, and pangocairo.
14142 See the pkg-config man page for more details.
14143
14144 The wxWidgets terminal will not be compiled." >&2;}
14145     elif test $pkg_failed = untried; then
14146         { echo "$as_me:$LINENO: WARNING: The pkg-config script could not be found or is too old.  Make sure it
14147 is in your PATH or set the PKG_CONFIG environment variable to the full
14148 path to pkg-config.
14149
14150 Alternatively, you can avoid the need to call pkg-config if you set the
14151 environment variables CAIROPANGO_CFLAGS and CAIROPANGO_LIBS to the
14152 corresponding flags for cairo, pango, and pangocairo.
14153 See the pkg-config man page for more details.
14154
14155 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
14156
14157 The wxWidgets terminal will not be compiled." >&5
14158 echo "$as_me: WARNING: The pkg-config script could not be found or is too old.  Make sure it
14159 is in your PATH or set the PKG_CONFIG environment variable to the full
14160 path to pkg-config.
14161
14162 Alternatively, you can avoid the need to call pkg-config if you set the
14163 environment variables CAIROPANGO_CFLAGS and CAIROPANGO_LIBS to the
14164 corresponding flags for cairo, pango, and pangocairo.
14165 See the pkg-config man page for more details.
14166
14167 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
14168
14169 The wxWidgets terminal will not be compiled." >&2;}
14170     fi
14171     enable_wxwidgets_ok=no
14172 else
14173         CAIROPANGO_CFLAGS=$pkg_cv_CAIROPANGO_CFLAGS
14174         CAIROPANGO_LIBS=$pkg_cv_CAIROPANGO_LIBS
14175         { echo "$as_me:$LINENO: result: yes" >&5
14176 echo "${ECHO_T}yes" >&6; }
14177         HAVE_CAIROPANGO=1
14178 fi
14179
14180
14181 pkg_failed=no
14182 { echo "$as_me:$LINENO: checking for PANGO_1_10_2" >&5
14183 echo $ECHO_N "checking for PANGO_1_10_2... $ECHO_C" >&6; }
14184
14185 if test -n "$PKG_CONFIG"; then
14186     if test -n "$PANGO_1_10_2_CFLAGS"; then
14187         pkg_cv_PANGO_1_10_2_CFLAGS="$PANGO_1_10_2_CFLAGS"
14188     else
14189         if test -n "$PKG_CONFIG" && \
14190     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pango = 1.10.2\"") >&5
14191   ($PKG_CONFIG --exists --print-errors "pango = 1.10.2") 2>&5
14192   ac_status=$?
14193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194   (exit $ac_status); }; then
14195   pkg_cv_PANGO_1_10_2_CFLAGS=`$PKG_CONFIG --cflags "pango = 1.10.2" 2>/dev/null`
14196 else
14197   pkg_failed=yes
14198 fi
14199     fi
14200 else
14201         pkg_failed=untried
14202 fi
14203 if test -n "$PKG_CONFIG"; then
14204     if test -n "$PANGO_1_10_2_LIBS"; then
14205         pkg_cv_PANGO_1_10_2_LIBS="$PANGO_1_10_2_LIBS"
14206     else
14207         if test -n "$PKG_CONFIG" && \
14208     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pango = 1.10.2\"") >&5
14209   ($PKG_CONFIG --exists --print-errors "pango = 1.10.2") 2>&5
14210   ac_status=$?
14211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212   (exit $ac_status); }; then
14213   pkg_cv_PANGO_1_10_2_LIBS=`$PKG_CONFIG --libs "pango = 1.10.2" 2>/dev/null`
14214 else
14215   pkg_failed=yes
14216 fi
14217     fi
14218 else
14219         pkg_failed=untried
14220 fi
14221
14222
14223
14224 if test $pkg_failed = yes; then
14225
14226 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14227         _pkg_short_errors_supported=yes
14228 else
14229         _pkg_short_errors_supported=no
14230 fi
14231         if test $_pkg_short_errors_supported = yes; then
14232                 PANGO_1_10_2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pango = 1.10.2"`
14233         else
14234                 PANGO_1_10_2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pango = 1.10.2"`
14235         fi
14236         # Put the nasty error message in config.log where it belongs
14237         echo "$PANGO_1_10_2_PKG_ERRORS" >&5
14238
14239         { echo "$as_me:$LINENO: result: no" >&5
14240 echo "${ECHO_T}no" >&6; }
14241     HAVE_PANGO_1_10_2=0
14242 elif test $pkg_failed = untried; then
14243         { echo "$as_me:$LINENO: result: no" >&5
14244 echo "${ECHO_T}no" >&6; }
14245     HAVE_PANGO_1_10_2=0
14246 else
14247         PANGO_1_10_2_CFLAGS=$pkg_cv_PANGO_1_10_2_CFLAGS
14248         PANGO_1_10_2_LIBS=$pkg_cv_PANGO_1_10_2_LIBS
14249         { echo "$as_me:$LINENO: result: yes" >&5
14250 echo "${ECHO_T}yes" >&6; }
14251         { echo "$as_me:$LINENO: WARNING: Pango 1.10.2 has been found. This version has a bug which gives unexpected
14252 results in the wxWidgets terminal. If you want to use this terminal, please
14253 install a different version of Pango." >&5
14254 echo "$as_me: WARNING: Pango 1.10.2 has been found. This version has a bug which gives unexpected
14255 results in the wxWidgets terminal. If you want to use this terminal, please
14256 install a different version of Pango." >&2;}
14257     enable_wxwidgets_ok=no
14258 fi
14259 fi
14260
14261 if test "${enable_wxwidgets_ok}" = yes ; then
14262   WX_CXXFLAGS="`$WX_CONFIG --cxxflags | sed 's/-fno-exceptions//'` $CAIROPANGO_CFLAGS"
14263   WX_LIBS="`$WX_CONFIG --libs` $CAIROPANGO_LIBS"
14264
14265     { echo "$as_me:$LINENO: checking for pid_t" >&5
14266 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
14267 if test "${ac_cv_type_pid_t+set}" = set; then
14268   echo $ECHO_N "(cached) $ECHO_C" >&6
14269 else
14270   cat >conftest.$ac_ext <<_ACEOF
14271 /* confdefs.h.  */
14272 _ACEOF
14273 cat confdefs.h >>conftest.$ac_ext
14274 cat >>conftest.$ac_ext <<_ACEOF
14275 /* end confdefs.h.  */
14276 $ac_includes_default
14277 typedef pid_t ac__type_new_;
14278 int
14279 main ()
14280 {
14281 if ((ac__type_new_ *) 0)
14282   return 0;
14283 if (sizeof (ac__type_new_))
14284   return 0;
14285   ;
14286   return 0;
14287 }
14288 _ACEOF
14289 rm -f conftest.$ac_objext
14290 if { (ac_try="$ac_compile"
14291 case "(($ac_try" in
14292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14293   *) ac_try_echo=$ac_try;;
14294 esac
14295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14296   (eval "$ac_compile") 2>conftest.er1
14297   ac_status=$?
14298   grep -v '^ *+' conftest.er1 >conftest.err
14299   rm -f conftest.er1
14300   cat conftest.err >&5
14301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302   (exit $ac_status); } && {
14303          test -z "$ac_c_werror_flag" ||
14304          test ! -s conftest.err
14305        } && test -s conftest.$ac_objext; then
14306   ac_cv_type_pid_t=yes
14307 else
14308   echo "$as_me: failed program was:" >&5
14309 sed 's/^/| /' conftest.$ac_ext >&5
14310
14311         ac_cv_type_pid_t=no
14312 fi
14313
14314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14315 fi
14316 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14317 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
14318 if test $ac_cv_type_pid_t = yes; then
14319   :
14320 else
14321
14322 cat >>confdefs.h <<_ACEOF
14323 #define pid_t int
14324 _ACEOF
14325
14326 fi
14327
14328
14329 for ac_header in vfork.h
14330 do
14331 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14333   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14336   echo $ECHO_N "(cached) $ECHO_C" >&6
14337 fi
14338 ac_res=`eval echo '${'$as_ac_Header'}'`
14339                { echo "$as_me:$LINENO: result: $ac_res" >&5
14340 echo "${ECHO_T}$ac_res" >&6; }
14341 else
14342   # Is the header compilable?
14343 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14344 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14345 cat >conftest.$ac_ext <<_ACEOF
14346 /* confdefs.h.  */
14347 _ACEOF
14348 cat confdefs.h >>conftest.$ac_ext
14349 cat >>conftest.$ac_ext <<_ACEOF
14350 /* end confdefs.h.  */
14351 $ac_includes_default
14352 #include <$ac_header>
14353 _ACEOF
14354 rm -f conftest.$ac_objext
14355 if { (ac_try="$ac_compile"
14356 case "(($ac_try" in
14357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14358   *) ac_try_echo=$ac_try;;
14359 esac
14360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14361   (eval "$ac_compile") 2>conftest.er1
14362   ac_status=$?
14363   grep -v '^ *+' conftest.er1 >conftest.err
14364   rm -f conftest.er1
14365   cat conftest.err >&5
14366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367   (exit $ac_status); } && {
14368          test -z "$ac_c_werror_flag" ||
14369          test ! -s conftest.err
14370        } && test -s conftest.$ac_objext; then
14371   ac_header_compiler=yes
14372 else
14373   echo "$as_me: failed program was:" >&5
14374 sed 's/^/| /' conftest.$ac_ext >&5
14375
14376         ac_header_compiler=no
14377 fi
14378
14379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14380 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14381 echo "${ECHO_T}$ac_header_compiler" >&6; }
14382
14383 # Is the header present?
14384 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14385 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14386 cat >conftest.$ac_ext <<_ACEOF
14387 /* confdefs.h.  */
14388 _ACEOF
14389 cat confdefs.h >>conftest.$ac_ext
14390 cat >>conftest.$ac_ext <<_ACEOF
14391 /* end confdefs.h.  */
14392 #include <$ac_header>
14393 _ACEOF
14394 if { (ac_try="$ac_cpp conftest.$ac_ext"
14395 case "(($ac_try" in
14396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14397   *) ac_try_echo=$ac_try;;
14398 esac
14399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14400   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14401   ac_status=$?
14402   grep -v '^ *+' conftest.er1 >conftest.err
14403   rm -f conftest.er1
14404   cat conftest.err >&5
14405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406   (exit $ac_status); } >/dev/null && {
14407          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14408          test ! -s conftest.err
14409        }; then
14410   ac_header_preproc=yes
14411 else
14412   echo "$as_me: failed program was:" >&5
14413 sed 's/^/| /' conftest.$ac_ext >&5
14414
14415   ac_header_preproc=no
14416 fi
14417
14418 rm -f conftest.err conftest.$ac_ext
14419 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14420 echo "${ECHO_T}$ac_header_preproc" >&6; }
14421
14422 # So?  What about this header?
14423 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14424   yes:no: )
14425     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14426 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14427     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14428 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14429     ac_header_preproc=yes
14430     ;;
14431   no:yes:* )
14432     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14433 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14434     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14435 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14436     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14437 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14438     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14439 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14440     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14441 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14442     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14443 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14444
14445     ;;
14446 esac
14447 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14450   echo $ECHO_N "(cached) $ECHO_C" >&6
14451 else
14452   eval "$as_ac_Header=\$ac_header_preproc"
14453 fi
14454 ac_res=`eval echo '${'$as_ac_Header'}'`
14455                { echo "$as_me:$LINENO: result: $ac_res" >&5
14456 echo "${ECHO_T}$ac_res" >&6; }
14457
14458 fi
14459 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14460   cat >>confdefs.h <<_ACEOF
14461 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14462 _ACEOF
14463
14464 fi
14465
14466 done
14467
14468
14469
14470 for ac_func in fork vfork
14471 do
14472 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14473 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14474 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14475 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14476   echo $ECHO_N "(cached) $ECHO_C" >&6
14477 else
14478   cat >conftest.$ac_ext <<_ACEOF
14479 /* confdefs.h.  */
14480 _ACEOF
14481 cat confdefs.h >>conftest.$ac_ext
14482 cat >>conftest.$ac_ext <<_ACEOF
14483 /* end confdefs.h.  */
14484 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14485    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14486 #define $ac_func innocuous_$ac_func
14487
14488 /* System header to define __stub macros and hopefully few prototypes,
14489     which can conflict with char $ac_func (); below.
14490     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14491     <limits.h> exists even on freestanding compilers.  */
14492
14493 #ifdef __STDC__
14494 # include <limits.h>
14495 #else
14496 # include <assert.h>
14497 #endif
14498
14499 #undef $ac_func
14500
14501 /* Override any GCC internal prototype to avoid an error.
14502    Use char because int might match the return type of a GCC
14503    builtin and then its argument prototype would still apply.  */
14504 #ifdef __cplusplus
14505 extern "C"
14506 #endif
14507 char $ac_func ();
14508 /* The GNU C library defines this for functions which it implements
14509     to always fail with ENOSYS.  Some functions are actually named
14510     something starting with __ and the normal name is an alias.  */
14511 #if defined __stub_$ac_func || defined __stub___$ac_func
14512 choke me
14513 #endif
14514
14515 int
14516 main ()
14517 {
14518 return $ac_func ();
14519   ;
14520   return 0;
14521 }
14522 _ACEOF
14523 rm -f conftest.$ac_objext conftest$ac_exeext
14524 if { (ac_try="$ac_link"
14525 case "(($ac_try" in
14526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14527   *) ac_try_echo=$ac_try;;
14528 esac
14529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14530   (eval "$ac_link") 2>conftest.er1
14531   ac_status=$?
14532   grep -v '^ *+' conftest.er1 >conftest.err
14533   rm -f conftest.er1
14534   cat conftest.err >&5
14535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536   (exit $ac_status); } && {
14537          test -z "$ac_c_werror_flag" ||
14538          test ! -s conftest.err
14539        } && test -s conftest$ac_exeext &&
14540        $as_test_x conftest$ac_exeext; then
14541   eval "$as_ac_var=yes"
14542 else
14543   echo "$as_me: failed program was:" >&5
14544 sed 's/^/| /' conftest.$ac_ext >&5
14545
14546         eval "$as_ac_var=no"
14547 fi
14548
14549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14550       conftest$ac_exeext conftest.$ac_ext
14551 fi
14552 ac_res=`eval echo '${'$as_ac_var'}'`
14553                { echo "$as_me:$LINENO: result: $ac_res" >&5
14554 echo "${ECHO_T}$ac_res" >&6; }
14555 if test `eval echo '${'$as_ac_var'}'` = yes; then
14556   cat >>confdefs.h <<_ACEOF
14557 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14558 _ACEOF
14559
14560 fi
14561 done
14562
14563 if test "x$ac_cv_func_fork" = xyes; then
14564   { echo "$as_me:$LINENO: checking for working fork" >&5
14565 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
14566 if test "${ac_cv_func_fork_works+set}" = set; then
14567   echo $ECHO_N "(cached) $ECHO_C" >&6
14568 else
14569   if test "$cross_compiling" = yes; then
14570   ac_cv_func_fork_works=cross
14571 else
14572   cat >conftest.$ac_ext <<_ACEOF
14573 /* confdefs.h.  */
14574 _ACEOF
14575 cat confdefs.h >>conftest.$ac_ext
14576 cat >>conftest.$ac_ext <<_ACEOF
14577 /* end confdefs.h.  */
14578 $ac_includes_default
14579 int
14580 main ()
14581 {
14582
14583           /* By Ruediger Kuhlmann. */
14584           return fork () < 0;
14585
14586   ;
14587   return 0;
14588 }
14589 _ACEOF
14590 rm -f conftest$ac_exeext
14591 if { (ac_try="$ac_link"
14592 case "(($ac_try" in
14593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14594   *) ac_try_echo=$ac_try;;
14595 esac
14596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14597   (eval "$ac_link") 2>&5
14598   ac_status=$?
14599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14600   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14601   { (case "(($ac_try" in
14602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14603   *) ac_try_echo=$ac_try;;
14604 esac
14605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14606   (eval "$ac_try") 2>&5
14607   ac_status=$?
14608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609   (exit $ac_status); }; }; then
14610   ac_cv_func_fork_works=yes
14611 else
14612   echo "$as_me: program exited with status $ac_status" >&5
14613 echo "$as_me: failed program was:" >&5
14614 sed 's/^/| /' conftest.$ac_ext >&5
14615
14616 ( exit $ac_status )
14617 ac_cv_func_fork_works=no
14618 fi
14619 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14620 fi
14621
14622
14623 fi
14624 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
14625 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
14626
14627 else
14628   ac_cv_func_fork_works=$ac_cv_func_fork
14629 fi
14630 if test "x$ac_cv_func_fork_works" = xcross; then
14631   case $host in
14632     *-*-amigaos* | *-*-msdosdjgpp*)
14633       # Override, as these systems have only a dummy fork() stub
14634       ac_cv_func_fork_works=no
14635       ;;
14636     *)
14637       ac_cv_func_fork_works=yes
14638       ;;
14639   esac
14640   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14641 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14642 fi
14643 ac_cv_func_vfork_works=$ac_cv_func_vfork
14644 if test "x$ac_cv_func_vfork" = xyes; then
14645   { echo "$as_me:$LINENO: checking for working vfork" >&5
14646 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
14647 if test "${ac_cv_func_vfork_works+set}" = set; then
14648   echo $ECHO_N "(cached) $ECHO_C" >&6
14649 else
14650   if test "$cross_compiling" = yes; then
14651   ac_cv_func_vfork_works=cross
14652 else
14653   cat >conftest.$ac_ext <<_ACEOF
14654 /* confdefs.h.  */
14655 _ACEOF
14656 cat confdefs.h >>conftest.$ac_ext
14657 cat >>conftest.$ac_ext <<_ACEOF
14658 /* end confdefs.h.  */
14659 /* Thanks to Paul Eggert for this test.  */
14660 $ac_includes_default
14661 #include <sys/wait.h>
14662 #ifdef HAVE_VFORK_H
14663 # include <vfork.h>
14664 #endif
14665 /* On some sparc systems, changes by the child to local and incoming
14666    argument registers are propagated back to the parent.  The compiler
14667    is told about this with #include <vfork.h>, but some compilers
14668    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
14669    static variable whose address is put into a register that is
14670    clobbered by the vfork.  */
14671 static void
14672 #ifdef __cplusplus
14673 sparc_address_test (int arg)
14674 # else
14675 sparc_address_test (arg) int arg;
14676 #endif
14677 {
14678   static pid_t child;
14679   if (!child) {
14680     child = vfork ();
14681     if (child < 0) {
14682       perror ("vfork");
14683       _exit(2);
14684     }
14685     if (!child) {
14686       arg = getpid();
14687       write(-1, "", 0);
14688       _exit (arg);
14689     }
14690   }
14691 }
14692
14693 int
14694 main ()
14695 {
14696   pid_t parent = getpid ();
14697   pid_t child;
14698
14699   sparc_address_test (0);
14700
14701   child = vfork ();
14702
14703   if (child == 0) {
14704     /* Here is another test for sparc vfork register problems.  This
14705        test uses lots of local variables, at least as many local
14706        variables as main has allocated so far including compiler
14707        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
14708        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
14709        reuse the register of parent for one of the local variables,
14710        since it will think that parent can't possibly be used any more
14711        in this routine.  Assigning to the local variable will thus
14712        munge parent in the parent process.  */
14713     pid_t
14714       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14715       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14716     /* Convince the compiler that p..p7 are live; otherwise, it might
14717        use the same hardware register for all 8 local variables.  */
14718     if (p != p1 || p != p2 || p != p3 || p != p4
14719         || p != p5 || p != p6 || p != p7)
14720       _exit(1);
14721
14722     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14723        from child file descriptors.  If the child closes a descriptor
14724        before it execs or exits, this munges the parent's descriptor
14725        as well.  Test for this by closing stdout in the child.  */
14726     _exit(close(fileno(stdout)) != 0);
14727   } else {
14728     int status;
14729     struct stat st;
14730
14731     while (wait(&status) != child)
14732       ;
14733     return (
14734          /* Was there some problem with vforking?  */
14735          child < 0
14736
14737          /* Did the child fail?  (This shouldn't happen.)  */
14738          || status
14739
14740          /* Did the vfork/compiler bug occur?  */
14741          || parent != getpid()
14742
14743          /* Did the file descriptor bug occur?  */
14744          || fstat(fileno(stdout), &st) != 0
14745          );
14746   }
14747 }
14748 _ACEOF
14749 rm -f conftest$ac_exeext
14750 if { (ac_try="$ac_link"
14751 case "(($ac_try" in
14752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14753   *) ac_try_echo=$ac_try;;
14754 esac
14755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14756   (eval "$ac_link") 2>&5
14757   ac_status=$?
14758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14760   { (case "(($ac_try" in
14761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14762   *) ac_try_echo=$ac_try;;
14763 esac
14764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14765   (eval "$ac_try") 2>&5
14766   ac_status=$?
14767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768   (exit $ac_status); }; }; then
14769   ac_cv_func_vfork_works=yes
14770 else
14771   echo "$as_me: program exited with status $ac_status" >&5
14772 echo "$as_me: failed program was:" >&5
14773 sed 's/^/| /' conftest.$ac_ext >&5
14774
14775 ( exit $ac_status )
14776 ac_cv_func_vfork_works=no
14777 fi
14778 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14779 fi
14780
14781
14782 fi
14783 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
14784 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
14785
14786 fi;
14787 if test "x$ac_cv_func_fork_works" = xcross; then
14788   ac_cv_func_vfork_works=$ac_cv_func_vfork
14789   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14790 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14791 fi
14792
14793 if test "x$ac_cv_func_vfork_works" = xyes; then
14794
14795 cat >>confdefs.h <<\_ACEOF
14796 #define HAVE_WORKING_VFORK 1
14797 _ACEOF
14798
14799 else
14800
14801 cat >>confdefs.h <<\_ACEOF
14802 #define vfork fork
14803 _ACEOF
14804
14805 fi
14806 if test "x$ac_cv_func_fork_works" = xyes; then
14807
14808 cat >>confdefs.h <<\_ACEOF
14809 #define HAVE_WORKING_FORK 1
14810 _ACEOF
14811
14812 fi
14813
14814
14815
14816 pkg_failed=no
14817 { echo "$as_me:$LINENO: checking for GTK" >&5
14818 echo $ECHO_N "checking for GTK... $ECHO_C" >&6; }
14819
14820 if test -n "$PKG_CONFIG"; then
14821     if test -n "$GTK_CFLAGS"; then
14822         pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
14823     else
14824         if test -n "$PKG_CONFIG" && \
14825     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
14826   ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
14827   ac_status=$?
14828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829   (exit $ac_status); }; then
14830   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
14831 else
14832   pkg_failed=yes
14833 fi
14834     fi
14835 else
14836         pkg_failed=untried
14837 fi
14838 if test -n "$PKG_CONFIG"; then
14839     if test -n "$GTK_LIBS"; then
14840         pkg_cv_GTK_LIBS="$GTK_LIBS"
14841     else
14842         if test -n "$PKG_CONFIG" && \
14843     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
14844   ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
14845   ac_status=$?
14846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847   (exit $ac_status); }; then
14848   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
14849 else
14850   pkg_failed=yes
14851 fi
14852     fi
14853 else
14854         pkg_failed=untried
14855 fi
14856
14857
14858
14859 if test $pkg_failed = yes; then
14860
14861 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14862         _pkg_short_errors_supported=yes
14863 else
14864         _pkg_short_errors_supported=no
14865 fi
14866         if test $_pkg_short_errors_supported = yes; then
14867                 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0"`
14868         else
14869                 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0"`
14870         fi
14871         # Put the nasty error message in config.log where it belongs
14872         echo "$GTK_PKG_ERRORS" >&5
14873
14874         have_gtk=no
14875 elif test $pkg_failed = untried; then
14876         have_gtk=no
14877 else
14878         GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
14879         GTK_LIBS=$pkg_cv_GTK_LIBS
14880         { echo "$as_me:$LINENO: result: yes" >&5
14881 echo "${ECHO_T}yes" >&6; }
14882         have_gtk=yes
14883 fi
14884   if  test "${have_gtk}" = yes ; then
14885
14886 cat >>confdefs.h <<\_ACEOF
14887 #define HAVE_GTK 1
14888 _ACEOF
14889
14890     WX_CXXFLAGS="$WX_CXXFLAGS $GTK_CFLAGS"
14891     WX_LIBS="$WX_LIBS $GTK_LIBS"
14892   fi
14893
14894
14895 pkg_failed=no
14896 { echo "$as_me:$LINENO: checking for GTK28" >&5
14897 echo $ECHO_N "checking for GTK28... $ECHO_C" >&6; }
14898
14899 if test -n "$PKG_CONFIG"; then
14900     if test -n "$GTK28_CFLAGS"; then
14901         pkg_cv_GTK28_CFLAGS="$GTK28_CFLAGS"
14902     else
14903         if test -n "$PKG_CONFIG" && \
14904     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.8.0\"") >&5
14905   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.8.0") 2>&5
14906   ac_status=$?
14907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908   (exit $ac_status); }; then
14909   pkg_cv_GTK28_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.8.0" 2>/dev/null`
14910 else
14911   pkg_failed=yes
14912 fi
14913     fi
14914 else
14915         pkg_failed=untried
14916 fi
14917 if test -n "$PKG_CONFIG"; then
14918     if test -n "$GTK28_LIBS"; then
14919         pkg_cv_GTK28_LIBS="$GTK28_LIBS"
14920     else
14921         if test -n "$PKG_CONFIG" && \
14922     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.8.0\"") >&5
14923   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.8.0") 2>&5
14924   ac_status=$?
14925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926   (exit $ac_status); }; then
14927   pkg_cv_GTK28_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.8.0" 2>/dev/null`
14928 else
14929   pkg_failed=yes
14930 fi
14931     fi
14932 else
14933         pkg_failed=untried
14934 fi
14935
14936
14937
14938 if test $pkg_failed = yes; then
14939
14940 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14941         _pkg_short_errors_supported=yes
14942 else
14943         _pkg_short_errors_supported=no
14944 fi
14945         if test $_pkg_short_errors_supported = yes; then
14946                 GTK28_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0 >= 2.8.0"`
14947         else
14948                 GTK28_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.8.0"`
14949         fi
14950         # Put the nasty error message in config.log where it belongs
14951         echo "$GTK28_PKG_ERRORS" >&5
14952
14953         have_gtk28=no
14954 elif test $pkg_failed = untried; then
14955         have_gtk28=no
14956 else
14957         GTK28_CFLAGS=$pkg_cv_GTK28_CFLAGS
14958         GTK28_LIBS=$pkg_cv_GTK28_LIBS
14959         { echo "$as_me:$LINENO: result: yes" >&5
14960 echo "${ECHO_T}yes" >&6; }
14961         have_gtk28=yes
14962 fi
14963   if  test "${have_gtk28}" = yes ; then
14964
14965 cat >>confdefs.h <<\_ACEOF
14966 #define HAVE_GTK28 1
14967 _ACEOF
14968
14969   fi
14970
14971   CPPFLAGS="$CPPFLAGS $CAIROPANGO_CFLAGS"
14972   CXXFLAGS="$CXXFLAGS $WX_CXXFLAGS"
14973
14974
14975 cat >>confdefs.h <<\_ACEOF
14976 #define WXWIDGETS 1
14977 _ACEOF
14978
14979 fi
14980
14981
14982
14983 if test "${enable_wxwidgets_ok}" = yes; then
14984   BUILD_WXWIDGETS_TRUE=
14985   BUILD_WXWIDGETS_FALSE='#'
14986 else
14987   BUILD_WXWIDGETS_TRUE='#'
14988   BUILD_WXWIDGETS_FALSE=
14989 fi
14990
14991
14992
14993 # Check whether --enable-backwards-compatibility was given.
14994 if test "${enable_backwards_compatibility+set}" = set; then
14995   enableval=$enable_backwards_compatibility;
14996 else
14997   test -z "$enable_backwards_compatibility" && enable_backwards_compatibility=yes
14998 fi
14999
15000
15001   if test "$enable_backwards_compatibility" = yes; then
15002
15003 cat >>confdefs.h <<\_ACEOF
15004 #define BACKWARDS_COMPATIBLE 1
15005 _ACEOF
15006
15007   fi
15008
15009 if test "$with_lisp_files" != no; then
15010   subdirs="$subdirs lisp"
15011
15012   LISPDIR=lisp
15013 else
15014   LISPDIR=
15015 fi
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028 ac_config_files="$ac_config_files Makefile config/Makefile demo/Makefile docs/Makefile m4/Makefile man/Makefile share/Makefile share/LaTeX/Makefile src/Makefile src/beos/Makefile src/wxterminal/Makefile term/Makefile maemo/Makefile tutorial/Makefile"
15029
15030 ac_config_commands="$ac_config_commands default"
15031
15032 cat >confcache <<\_ACEOF
15033 # This file is a shell script that caches the results of configure
15034 # tests run on this system so they can be shared between configure
15035 # scripts and configure runs, see configure's option --config-cache.
15036 # It is not useful on other systems.  If it contains results you don't
15037 # want to keep, you may remove or edit it.
15038 #
15039 # config.status only pays attention to the cache file if you give it
15040 # the --recheck option to rerun configure.
15041 #
15042 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15043 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15044 # following values.
15045
15046 _ACEOF
15047
15048 # The following way of writing the cache mishandles newlines in values,
15049 # but we know of no workaround that is simple, portable, and efficient.
15050 # So, we kill variables containing newlines.
15051 # Ultrix sh set writes to stderr and can't be redirected directly,
15052 # and sets the high bit in the cache file unless we assign to the vars.
15053 (
15054   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15055     eval ac_val=\$$ac_var
15056     case $ac_val in #(
15057     *${as_nl}*)
15058       case $ac_var in #(
15059       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15060 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15061       esac
15062       case $ac_var in #(
15063       _ | IFS | as_nl) ;; #(
15064       *) $as_unset $ac_var ;;
15065       esac ;;
15066     esac
15067   done
15068
15069   (set) 2>&1 |
15070     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15071     *${as_nl}ac_space=\ *)
15072       # `set' does not quote correctly, so add quotes (double-quote
15073       # substitution turns \\\\ into \\, and sed turns \\ into \).
15074       sed -n \
15075         "s/'/'\\\\''/g;
15076           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15077       ;; #(
15078     *)
15079       # `set' quotes correctly as required by POSIX, so do not add quotes.
15080       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15081       ;;
15082     esac |
15083     sort
15084 ) |
15085   sed '
15086      /^ac_cv_env_/b end
15087      t clear
15088      :clear
15089      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15090      t end
15091      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15092      :end' >>confcache
15093 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15094   if test -w "$cache_file"; then
15095     test "x$cache_file" != "x/dev/null" &&
15096       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15097 echo "$as_me: updating cache $cache_file" >&6;}
15098     cat confcache >$cache_file
15099   else
15100     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15101 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15102   fi
15103 fi
15104 rm -f confcache
15105
15106 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15107 # Let make expand exec_prefix.
15108 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15109
15110 DEFS=-DHAVE_CONFIG_H
15111
15112 ac_libobjs=
15113 ac_ltlibobjs=
15114 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15115   # 1. Remove the extension, and $U if already installed.
15116   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15117   ac_i=`echo "$ac_i" | sed "$ac_script"`
15118   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15119   #    will be set to the directory where LIBOBJS objects are built.
15120   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15121   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15122 done
15123 LIBOBJS=$ac_libobjs
15124
15125 LTLIBOBJS=$ac_ltlibobjs
15126
15127
15128 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15129   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15130 Usually this means the macro was only invoked conditionally." >&5
15131 echo "$as_me: error: conditional \"AMDEP\" was never defined.
15132 Usually this means the macro was only invoked conditionally." >&2;}
15133    { (exit 1); exit 1; }; }
15134 fi
15135 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15136   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15137 Usually this means the macro was only invoked conditionally." >&5
15138 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15139 Usually this means the macro was only invoked conditionally." >&2;}
15140    { (exit 1); exit 1; }; }
15141 fi
15142 if test -z "${BUILD_SRC_BEOS_SUBDIR_TRUE}" && test -z "${BUILD_SRC_BEOS_SUBDIR_FALSE}"; then
15143   { { echo "$as_me:$LINENO: error: conditional \"BUILD_SRC_BEOS_SUBDIR\" was never defined.
15144 Usually this means the macro was only invoked conditionally." >&5
15145 echo "$as_me: error: conditional \"BUILD_SRC_BEOS_SUBDIR\" was never defined.
15146 Usually this means the macro was only invoked conditionally." >&2;}
15147    { (exit 1); exit 1; }; }
15148 fi
15149 if test -z "${INCLUDE_BINARY_C_TRUE}" && test -z "${INCLUDE_BINARY_C_FALSE}"; then
15150   { { echo "$as_me:$LINENO: error: conditional \"INCLUDE_BINARY_C\" was never defined.
15151 Usually this means the macro was only invoked conditionally." >&5
15152 echo "$as_me: error: conditional \"INCLUDE_BINARY_C\" was never defined.
15153 Usually this means the macro was only invoked conditionally." >&2;}
15154    { (exit 1); exit 1; }; }
15155 fi
15156 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15157   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
15158 Usually this means the macro was only invoked conditionally." >&5
15159 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
15160 Usually this means the macro was only invoked conditionally." >&2;}
15161    { (exit 1); exit 1; }; }
15162 fi
15163 if test -z "${BUILD_WXWIDGETS_TRUE}" && test -z "${BUILD_WXWIDGETS_FALSE}"; then
15164   { { echo "$as_me:$LINENO: error: conditional \"BUILD_WXWIDGETS\" was never defined.
15165 Usually this means the macro was only invoked conditionally." >&5
15166 echo "$as_me: error: conditional \"BUILD_WXWIDGETS\" was never defined.
15167 Usually this means the macro was only invoked conditionally." >&2;}
15168    { (exit 1); exit 1; }; }
15169 fi
15170
15171 : ${CONFIG_STATUS=./config.status}
15172 ac_clean_files_save=$ac_clean_files
15173 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15174 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15175 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15176 cat >$CONFIG_STATUS <<_ACEOF
15177 #! $SHELL
15178 # Generated by $as_me.
15179 # Run this file to recreate the current configuration.
15180 # Compiler output produced by configure, useful for debugging
15181 # configure, is in config.log if it exists.
15182
15183 debug=false
15184 ac_cs_recheck=false
15185 ac_cs_silent=false
15186 SHELL=\${CONFIG_SHELL-$SHELL}
15187 _ACEOF
15188
15189 cat >>$CONFIG_STATUS <<\_ACEOF
15190 ## --------------------- ##
15191 ## M4sh Initialization.  ##
15192 ## --------------------- ##
15193
15194 # Be more Bourne compatible
15195 DUALCASE=1; export DUALCASE # for MKS sh
15196 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15197   emulate sh
15198   NULLCMD=:
15199   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15200   # is contrary to our usage.  Disable this feature.
15201   alias -g '${1+"$@"}'='"$@"'
15202   setopt NO_GLOB_SUBST
15203 else
15204   case `(set -o) 2>/dev/null` in
15205   *posix*) set -o posix ;;
15206 esac
15207
15208 fi
15209
15210
15211
15212
15213 # PATH needs CR
15214 # Avoid depending upon Character Ranges.
15215 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15216 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15217 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15218 as_cr_digits='0123456789'
15219 as_cr_alnum=$as_cr_Letters$as_cr_digits
15220
15221 # The user is always right.
15222 if test "${PATH_SEPARATOR+set}" != set; then
15223   echo "#! /bin/sh" >conf$$.sh
15224   echo  "exit 0"   >>conf$$.sh
15225   chmod +x conf$$.sh
15226   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15227     PATH_SEPARATOR=';'
15228   else
15229     PATH_SEPARATOR=:
15230   fi
15231   rm -f conf$$.sh
15232 fi
15233
15234 # Support unset when possible.
15235 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15236   as_unset=unset
15237 else
15238   as_unset=false
15239 fi
15240
15241
15242 # IFS
15243 # We need space, tab and new line, in precisely that order.  Quoting is
15244 # there to prevent editors from complaining about space-tab.
15245 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15246 # splitting by setting IFS to empty value.)
15247 as_nl='
15248 '
15249 IFS=" ""        $as_nl"
15250
15251 # Find who we are.  Look in the path if we contain no directory separator.
15252 case $0 in
15253   *[\\/]* ) as_myself=$0 ;;
15254   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15255 for as_dir in $PATH
15256 do
15257   IFS=$as_save_IFS
15258   test -z "$as_dir" && as_dir=.
15259   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15260 done
15261 IFS=$as_save_IFS
15262
15263      ;;
15264 esac
15265 # We did not find ourselves, most probably we were run as `sh COMMAND'
15266 # in which case we are not to be found in the path.
15267 if test "x$as_myself" = x; then
15268   as_myself=$0
15269 fi
15270 if test ! -f "$as_myself"; then
15271   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15272   { (exit 1); exit 1; }
15273 fi
15274
15275 # Work around bugs in pre-3.0 UWIN ksh.
15276 for as_var in ENV MAIL MAILPATH
15277 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15278 done
15279 PS1='$ '
15280 PS2='> '
15281 PS4='+ '
15282
15283 # NLS nuisances.
15284 for as_var in \
15285   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15286   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15287   LC_TELEPHONE LC_TIME
15288 do
15289   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15290     eval $as_var=C; export $as_var
15291   else
15292     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15293   fi
15294 done
15295
15296 # Required to use basename.
15297 if expr a : '\(a\)' >/dev/null 2>&1 &&
15298    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15299   as_expr=expr
15300 else
15301   as_expr=false
15302 fi
15303
15304 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15305   as_basename=basename
15306 else
15307   as_basename=false
15308 fi
15309
15310
15311 # Name of the executable.
15312 as_me=`$as_basename -- "$0" ||
15313 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15314          X"$0" : 'X\(//\)$' \| \
15315          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15316 echo X/"$0" |
15317     sed '/^.*\/\([^/][^/]*\)\/*$/{
15318             s//\1/
15319             q
15320           }
15321           /^X\/\(\/\/\)$/{
15322             s//\1/
15323             q
15324           }
15325           /^X\/\(\/\).*/{
15326             s//\1/
15327             q
15328           }
15329           s/.*/./; q'`
15330
15331 # CDPATH.
15332 $as_unset CDPATH
15333
15334
15335
15336   as_lineno_1=$LINENO
15337   as_lineno_2=$LINENO
15338   test "x$as_lineno_1" != "x$as_lineno_2" &&
15339   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15340
15341   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15342   # uniformly replaced by the line number.  The first 'sed' inserts a
15343   # line-number line after each line using $LINENO; the second 'sed'
15344   # does the real work.  The second script uses 'N' to pair each
15345   # line-number line with the line containing $LINENO, and appends
15346   # trailing '-' during substitution so that $LINENO is not a special
15347   # case at line end.
15348   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15349   # scripts with optimization help from Paolo Bonzini.  Blame Lee
15350   # E. McMahon (1931-1989) for sed's syntax.  :-)
15351   sed -n '
15352     p
15353     /[$]LINENO/=
15354   ' <$as_myself |
15355     sed '
15356       s/[$]LINENO.*/&-/
15357       t lineno
15358       b
15359       :lineno
15360       N
15361       :loop
15362       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15363       t loop
15364       s/-\n.*//
15365     ' >$as_me.lineno &&
15366   chmod +x "$as_me.lineno" ||
15367     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15368    { (exit 1); exit 1; }; }
15369
15370   # Don't try to exec as it changes $[0], causing all sort of problems
15371   # (the dirname of $[0] is not the place where we might find the
15372   # original and so on.  Autoconf is especially sensitive to this).
15373   . "./$as_me.lineno"
15374   # Exit status is that of the last command.
15375   exit
15376 }
15377
15378
15379 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15380   as_dirname=dirname
15381 else
15382   as_dirname=false
15383 fi
15384
15385 ECHO_C= ECHO_N= ECHO_T=
15386 case `echo -n x` in
15387 -n*)
15388   case `echo 'x\c'` in
15389   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15390   *)   ECHO_C='\c';;
15391   esac;;
15392 *)
15393   ECHO_N='-n';;
15394 esac
15395
15396 if expr a : '\(a\)' >/dev/null 2>&1 &&
15397    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15398   as_expr=expr
15399 else
15400   as_expr=false
15401 fi
15402
15403 rm -f conf$$ conf$$.exe conf$$.file
15404 if test -d conf$$.dir; then
15405   rm -f conf$$.dir/conf$$.file
15406 else
15407   rm -f conf$$.dir
15408   mkdir conf$$.dir
15409 fi
15410 echo >conf$$.file
15411 if ln -s conf$$.file conf$$ 2>/dev/null; then
15412   as_ln_s='ln -s'
15413   # ... but there are two gotchas:
15414   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15415   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15416   # In both cases, we have to default to `cp -p'.
15417   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15418     as_ln_s='cp -p'
15419 elif ln conf$$.file conf$$ 2>/dev/null; then
15420   as_ln_s=ln
15421 else
15422   as_ln_s='cp -p'
15423 fi
15424 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15425 rmdir conf$$.dir 2>/dev/null
15426
15427 if mkdir -p . 2>/dev/null; then
15428   as_mkdir_p=:
15429 else
15430   test -d ./-p && rmdir ./-p
15431   as_mkdir_p=false
15432 fi
15433
15434 if test -x / >/dev/null 2>&1; then
15435   as_test_x='test -x'
15436 else
15437   if ls -dL / >/dev/null 2>&1; then
15438     as_ls_L_option=L
15439   else
15440     as_ls_L_option=
15441   fi
15442   as_test_x='
15443     eval sh -c '\''
15444       if test -d "$1"; then
15445         test -d "$1/.";
15446       else
15447         case $1 in
15448         -*)set "./$1";;
15449         esac;
15450         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15451         ???[sx]*):;;*)false;;esac;fi
15452     '\'' sh
15453   '
15454 fi
15455 as_executable_p=$as_test_x
15456
15457 # Sed expression to map a string onto a valid CPP name.
15458 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15459
15460 # Sed expression to map a string onto a valid variable name.
15461 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15462
15463
15464 exec 6>&1
15465
15466 # Save the log message, to keep $[0] and so on meaningful, and to
15467 # report actual input values of CONFIG_FILES etc. instead of their
15468 # values after options handling.
15469 ac_log="
15470 This file was extended by gnuplot $as_me 4.2.6, which was
15471 generated by GNU Autoconf 2.61.  Invocation command line was
15472
15473   CONFIG_FILES    = $CONFIG_FILES
15474   CONFIG_HEADERS  = $CONFIG_HEADERS
15475   CONFIG_LINKS    = $CONFIG_LINKS
15476   CONFIG_COMMANDS = $CONFIG_COMMANDS
15477   $ $0 $@
15478
15479 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15480 "
15481
15482 _ACEOF
15483
15484 cat >>$CONFIG_STATUS <<_ACEOF
15485 # Files that config.status was made for.
15486 config_files="$ac_config_files"
15487 config_headers="$ac_config_headers"
15488 config_commands="$ac_config_commands"
15489
15490 _ACEOF
15491
15492 cat >>$CONFIG_STATUS <<\_ACEOF
15493 ac_cs_usage="\
15494 \`$as_me' instantiates files from templates according to the
15495 current configuration.
15496
15497 Usage: $0 [OPTIONS] [FILE]...
15498
15499   -h, --help       print this help, then exit
15500   -V, --version    print version number and configuration settings, then exit
15501   -q, --quiet      do not print progress messages
15502   -d, --debug      don't remove temporary files
15503       --recheck    update $as_me by reconfiguring in the same conditions
15504   --file=FILE[:TEMPLATE]
15505                    instantiate the configuration file FILE
15506   --header=FILE[:TEMPLATE]
15507                    instantiate the configuration header FILE
15508
15509 Configuration files:
15510 $config_files
15511
15512 Configuration headers:
15513 $config_headers
15514
15515 Configuration commands:
15516 $config_commands
15517
15518 Report bugs to <bug-autoconf@gnu.org>."
15519
15520 _ACEOF
15521 cat >>$CONFIG_STATUS <<_ACEOF
15522 ac_cs_version="\\
15523 gnuplot config.status 4.2.6
15524 configured by $0, generated by GNU Autoconf 2.61,
15525   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15526
15527 Copyright (C) 2006 Free Software Foundation, Inc.
15528 This config.status script is free software; the Free Software Foundation
15529 gives unlimited permission to copy, distribute and modify it."
15530
15531 ac_pwd='$ac_pwd'
15532 srcdir='$srcdir'
15533 INSTALL='$INSTALL'
15534 _ACEOF
15535
15536 cat >>$CONFIG_STATUS <<\_ACEOF
15537 # If no file are specified by the user, then we need to provide default
15538 # value.  By we need to know if files were specified by the user.
15539 ac_need_defaults=:
15540 while test $# != 0
15541 do
15542   case $1 in
15543   --*=*)
15544     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15545     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15546     ac_shift=:
15547     ;;
15548   *)
15549     ac_option=$1
15550     ac_optarg=$2
15551     ac_shift=shift
15552     ;;
15553   esac
15554
15555   case $ac_option in
15556   # Handling of the options.
15557   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15558     ac_cs_recheck=: ;;
15559   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15560     echo "$ac_cs_version"; exit ;;
15561   --debug | --debu | --deb | --de | --d | -d )
15562     debug=: ;;
15563   --file | --fil | --fi | --f )
15564     $ac_shift
15565     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15566     ac_need_defaults=false;;
15567   --header | --heade | --head | --hea )
15568     $ac_shift
15569     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15570     ac_need_defaults=false;;
15571   --he | --h)
15572     # Conflict between --help and --header
15573     { echo "$as_me: error: ambiguous option: $1
15574 Try \`$0 --help' for more information." >&2
15575    { (exit 1); exit 1; }; };;
15576   --help | --hel | -h )
15577     echo "$ac_cs_usage"; exit ;;
15578   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15579   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15580     ac_cs_silent=: ;;
15581
15582   # This is an error.
15583   -*) { echo "$as_me: error: unrecognized option: $1
15584 Try \`$0 --help' for more information." >&2
15585    { (exit 1); exit 1; }; } ;;
15586
15587   *) ac_config_targets="$ac_config_targets $1"
15588      ac_need_defaults=false ;;
15589
15590   esac
15591   shift
15592 done
15593
15594 ac_configure_extra_args=
15595
15596 if $ac_cs_silent; then
15597   exec 6>/dev/null
15598   ac_configure_extra_args="$ac_configure_extra_args --silent"
15599 fi
15600
15601 _ACEOF
15602 cat >>$CONFIG_STATUS <<_ACEOF
15603 if \$ac_cs_recheck; then
15604   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15605   CONFIG_SHELL=$SHELL
15606   export CONFIG_SHELL
15607   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15608 fi
15609
15610 _ACEOF
15611 cat >>$CONFIG_STATUS <<\_ACEOF
15612 exec 5>>config.log
15613 {
15614   echo
15615   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15616 ## Running $as_me. ##
15617 _ASBOX
15618   echo "$ac_log"
15619 } >&5
15620
15621 _ACEOF
15622 cat >>$CONFIG_STATUS <<_ACEOF
15623 #
15624 # INIT-COMMANDS
15625 #
15626 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15627
15628 _ACEOF
15629
15630 cat >>$CONFIG_STATUS <<\_ACEOF
15631
15632 # Handling of arguments.
15633 for ac_config_target in $ac_config_targets
15634 do
15635   case $ac_config_target in
15636     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;;
15637     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15638     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15639     "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
15640     "demo/Makefile") CONFIG_FILES="$CONFIG_FILES demo/Makefile" ;;
15641     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
15642     "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
15643     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
15644     "share/Makefile") CONFIG_FILES="$CONFIG_FILES share/Makefile" ;;
15645     "share/LaTeX/Makefile") CONFIG_FILES="$CONFIG_FILES share/LaTeX/Makefile" ;;
15646     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15647     "src/beos/Makefile") CONFIG_FILES="$CONFIG_FILES src/beos/Makefile" ;;
15648     "src/wxterminal/Makefile") CONFIG_FILES="$CONFIG_FILES src/wxterminal/Makefile" ;;
15649     "term/Makefile") CONFIG_FILES="$CONFIG_FILES term/Makefile" ;;
15650     "maemo/Makefile") CONFIG_FILES="$CONFIG_FILES maemo/Makefile" ;;
15651     "tutorial/Makefile") CONFIG_FILES="$CONFIG_FILES tutorial/Makefile" ;;
15652     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15653
15654   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15655 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15656    { (exit 1); exit 1; }; };;
15657   esac
15658 done
15659
15660
15661 # If the user did not use the arguments to specify the items to instantiate,
15662 # then the envvar interface is used.  Set only those that are not.
15663 # We use the long form for the default assignment because of an extremely
15664 # bizarre bug on SunOS 4.1.3.
15665 if $ac_need_defaults; then
15666   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15667   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15668   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15669 fi
15670
15671 # Have a temporary directory for convenience.  Make it in the build tree
15672 # simply because there is no reason against having it here, and in addition,
15673 # creating and moving files from /tmp can sometimes cause problems.
15674 # Hook for its removal unless debugging.
15675 # Note that there is a small window in which the directory will not be cleaned:
15676 # after its creation but before its name has been assigned to `$tmp'.
15677 $debug ||
15678 {
15679   tmp=
15680   trap 'exit_status=$?
15681   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15682 ' 0
15683   trap '{ (exit 1); exit 1; }' 1 2 13 15
15684 }
15685 # Create a (secure) tmp directory for tmp files.
15686
15687 {
15688   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15689   test -n "$tmp" && test -d "$tmp"
15690 }  ||
15691 {
15692   tmp=./conf$$-$RANDOM
15693   (umask 077 && mkdir "$tmp")
15694 } ||
15695 {
15696    echo "$me: cannot create a temporary directory in ." >&2
15697    { (exit 1); exit 1; }
15698 }
15699
15700 #
15701 # Set up the sed scripts for CONFIG_FILES section.
15702 #
15703
15704 # No need to generate the scripts if there are no CONFIG_FILES.
15705 # This happens for instance when ./config.status config.h
15706 if test -n "$CONFIG_FILES"; then
15707
15708 _ACEOF
15709
15710
15711
15712 ac_delim='%!_!# '
15713 for ac_last_try in false false false false false :; do
15714   cat >conf$$subs.sed <<_ACEOF
15715 SHELL!$SHELL$ac_delim
15716 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
15717 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
15718 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
15719 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
15720 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
15721 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
15722 exec_prefix!$exec_prefix$ac_delim
15723 prefix!$prefix$ac_delim
15724 program_transform_name!$program_transform_name$ac_delim
15725 bindir!$bindir$ac_delim
15726 sbindir!$sbindir$ac_delim
15727 libexecdir!$libexecdir$ac_delim
15728 datarootdir!$datarootdir$ac_delim
15729 datadir!$datadir$ac_delim
15730 sysconfdir!$sysconfdir$ac_delim
15731 sharedstatedir!$sharedstatedir$ac_delim
15732 localstatedir!$localstatedir$ac_delim
15733 includedir!$includedir$ac_delim
15734 oldincludedir!$oldincludedir$ac_delim
15735 docdir!$docdir$ac_delim
15736 infodir!$infodir$ac_delim
15737 htmldir!$htmldir$ac_delim
15738 dvidir!$dvidir$ac_delim
15739 pdfdir!$pdfdir$ac_delim
15740 psdir!$psdir$ac_delim
15741 libdir!$libdir$ac_delim
15742 localedir!$localedir$ac_delim
15743 mandir!$mandir$ac_delim
15744 DEFS!$DEFS$ac_delim
15745 ECHO_C!$ECHO_C$ac_delim
15746 ECHO_N!$ECHO_N$ac_delim
15747 ECHO_T!$ECHO_T$ac_delim
15748 LIBS!$LIBS$ac_delim
15749 build_alias!$build_alias$ac_delim
15750 host_alias!$host_alias$ac_delim
15751 target_alias!$target_alias$ac_delim
15752 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
15753 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
15754 INSTALL_DATA!$INSTALL_DATA$ac_delim
15755 CYGPATH_W!$CYGPATH_W$ac_delim
15756 PACKAGE!$PACKAGE$ac_delim
15757 VERSION!$VERSION$ac_delim
15758 ACLOCAL!$ACLOCAL$ac_delim
15759 AUTOCONF!$AUTOCONF$ac_delim
15760 AUTOMAKE!$AUTOMAKE$ac_delim
15761 AUTOHEADER!$AUTOHEADER$ac_delim
15762 MAKEINFO!$MAKEINFO$ac_delim
15763 AMTAR!$AMTAR$ac_delim
15764 install_sh!$install_sh$ac_delim
15765 STRIP!$STRIP$ac_delim
15766 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
15767 mkdir_p!$mkdir_p$ac_delim
15768 AWK!$AWK$ac_delim
15769 SET_MAKE!$SET_MAKE$ac_delim
15770 am__leading_dot!$am__leading_dot$ac_delim
15771 CC!$CC$ac_delim
15772 CFLAGS!$CFLAGS$ac_delim
15773 LDFLAGS!$LDFLAGS$ac_delim
15774 CPPFLAGS!$CPPFLAGS$ac_delim
15775 ac_ct_CC!$ac_ct_CC$ac_delim
15776 EXEEXT!$EXEEXT$ac_delim
15777 OBJEXT!$OBJEXT$ac_delim
15778 DEPDIR!$DEPDIR$ac_delim
15779 am__include!$am__include$ac_delim
15780 am__quote!$am__quote$ac_delim
15781 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
15782 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
15783 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
15784 CCDEPMODE!$CCDEPMODE$ac_delim
15785 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
15786 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
15787 CPP!$CPP$ac_delim
15788 GREP!$GREP$ac_delim
15789 EGREP!$EGREP$ac_delim
15790 U!$U$ac_delim
15791 ANSI2KNR!$ANSI2KNR$ac_delim
15792 EMACS!$EMACS$ac_delim
15793 PLAINTEX!$PLAINTEX$ac_delim
15794 LATEX!$LATEX$ac_delim
15795 PDFLATEX!$PDFLATEX$ac_delim
15796 DVIPS!$DVIPS$ac_delim
15797 TROFF!$TROFF$ac_delim
15798 LIBRARIES_FOR_X!$LIBRARIES_FOR_X$ac_delim
15799 XMKMF!$XMKMF$ac_delim
15800 X_CFLAGS!$X_CFLAGS$ac_delim
15801 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
15802 X_LIBS!$X_LIBS$ac_delim
15803 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
15804 GNUPLOT_X11!$GNUPLOT_X11$ac_delim
15805 BUILD_SRC_BEOS_SUBDIR_TRUE!$BUILD_SRC_BEOS_SUBDIR_TRUE$ac_delim
15806 BUILD_SRC_BEOS_SUBDIR_FALSE!$BUILD_SRC_BEOS_SUBDIR_FALSE$ac_delim
15807 GDLIB_CONFIG!$GDLIB_CONFIG$ac_delim
15808 PDFLIB_CONFIG!$PDFLIB_CONFIG$ac_delim
15809 INCLUDE_BINARY_C_TRUE!$INCLUDE_BINARY_C_TRUE$ac_delim
15810 INCLUDE_BINARY_C_FALSE!$INCLUDE_BINARY_C_FALSE$ac_delim
15811 CXX!$CXX$ac_delim
15812 _ACEOF
15813
15814   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
15815     break
15816   elif $ac_last_try; then
15817     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15818 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15819    { (exit 1); exit 1; }; }
15820   else
15821     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15822   fi
15823 done
15824
15825 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15826 if test -n "$ac_eof"; then
15827   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15828   ac_eof=`expr $ac_eof + 1`
15829 fi
15830
15831 cat >>$CONFIG_STATUS <<_ACEOF
15832 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
15833 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15834 _ACEOF
15835 sed '
15836 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15837 s/^/s,@/; s/!/@,|#_!!_#|/
15838 :n
15839 t n
15840 s/'"$ac_delim"'$/,g/; t
15841 s/$/\\/; p
15842 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15843 ' >>$CONFIG_STATUS <conf$$subs.sed
15844 rm -f conf$$subs.sed
15845 cat >>$CONFIG_STATUS <<_ACEOF
15846 CEOF$ac_eof
15847 _ACEOF
15848
15849
15850 ac_delim='%!_!# '
15851 for ac_last_try in false false false false false :; do
15852   cat >conf$$subs.sed <<_ACEOF
15853 CXXFLAGS!$CXXFLAGS$ac_delim
15854 ac_ct_CXX!$ac_ct_CXX$ac_delim
15855 CXXDEPMODE!$CXXDEPMODE$ac_delim
15856 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
15857 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
15858 CXXCPP!$CXXCPP$ac_delim
15859 WX_CONFIG!$WX_CONFIG$ac_delim
15860 PKG_CONFIG!$PKG_CONFIG$ac_delim
15861 CAIROPANGO_CFLAGS!$CAIROPANGO_CFLAGS$ac_delim
15862 CAIROPANGO_LIBS!$CAIROPANGO_LIBS$ac_delim
15863 PANGO_1_10_2_CFLAGS!$PANGO_1_10_2_CFLAGS$ac_delim
15864 PANGO_1_10_2_LIBS!$PANGO_1_10_2_LIBS$ac_delim
15865 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
15866 GTK_LIBS!$GTK_LIBS$ac_delim
15867 GTK28_CFLAGS!$GTK28_CFLAGS$ac_delim
15868 GTK28_LIBS!$GTK28_LIBS$ac_delim
15869 WX_LIBS!$WX_LIBS$ac_delim
15870 BUILD_WXWIDGETS_TRUE!$BUILD_WXWIDGETS_TRUE$ac_delim
15871 BUILD_WXWIDGETS_FALSE!$BUILD_WXWIDGETS_FALSE$ac_delim
15872 subdirs!$subdirs$ac_delim
15873 LISPDIR!$LISPDIR$ac_delim
15874 VERSION_MAJOR!$VERSION_MAJOR$ac_delim
15875 GIHDIR!$GIHDIR$ac_delim
15876 LASERGNU!$LASERGNU$ac_delim
15877 LINUXSUID!$LINUXSUID$ac_delim
15878 TERMLIBS!$TERMLIBS$ac_delim
15879 TERMXLIBS!$TERMXLIBS$ac_delim
15880 TUTORIAL!$TUTORIAL$ac_delim
15881 LIBOBJS!$LIBOBJS$ac_delim
15882 LTLIBOBJS!$LTLIBOBJS$ac_delim
15883 _ACEOF
15884
15885   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 30; then
15886     break
15887   elif $ac_last_try; then
15888     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15889 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15890    { (exit 1); exit 1; }; }
15891   else
15892     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15893   fi
15894 done
15895
15896 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15897 if test -n "$ac_eof"; then
15898   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15899   ac_eof=`expr $ac_eof + 1`
15900 fi
15901
15902 cat >>$CONFIG_STATUS <<_ACEOF
15903 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
15904 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
15905 _ACEOF
15906 sed '
15907 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15908 s/^/s,@/; s/!/@,|#_!!_#|/
15909 :n
15910 t n
15911 s/'"$ac_delim"'$/,g/; t
15912 s/$/\\/; p
15913 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15914 ' >>$CONFIG_STATUS <conf$$subs.sed
15915 rm -f conf$$subs.sed
15916 cat >>$CONFIG_STATUS <<_ACEOF
15917 :end
15918 s/|#_!!_#|//g
15919 CEOF$ac_eof
15920 _ACEOF
15921
15922
15923 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15924 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15925 # trailing colons and then remove the whole line if VPATH becomes empty
15926 # (actually we leave an empty line to preserve line numbers).
15927 if test "x$srcdir" = x.; then
15928   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15929 s/:*\$(srcdir):*/:/
15930 s/:*\${srcdir}:*/:/
15931 s/:*@srcdir@:*/:/
15932 s/^\([^=]*=[     ]*\):*/\1/
15933 s/:*$//
15934 s/^[^=]*=[       ]*$//
15935 }'
15936 fi
15937
15938 cat >>$CONFIG_STATUS <<\_ACEOF
15939 fi # test -n "$CONFIG_FILES"
15940
15941
15942 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
15943 do
15944   case $ac_tag in
15945   :[FHLC]) ac_mode=$ac_tag; continue;;
15946   esac
15947   case $ac_mode$ac_tag in
15948   :[FHL]*:*);;
15949   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
15950 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
15951    { (exit 1); exit 1; }; };;
15952   :[FH]-) ac_tag=-:-;;
15953   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15954   esac
15955   ac_save_IFS=$IFS
15956   IFS=:
15957   set x $ac_tag
15958   IFS=$ac_save_IFS
15959   shift
15960   ac_file=$1
15961   shift
15962
15963   case $ac_mode in
15964   :L) ac_source=$1;;
15965   :[FH])
15966     ac_file_inputs=
15967     for ac_f
15968     do
15969       case $ac_f in
15970       -) ac_f="$tmp/stdin";;
15971       *) # Look for the file first in the build tree, then in the source tree
15972          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15973          # because $ac_f cannot contain `:'.
15974          test -f "$ac_f" ||
15975            case $ac_f in
15976            [\\/$]*) false;;
15977            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15978            esac ||
15979            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
15980 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
15981    { (exit 1); exit 1; }; };;
15982       esac
15983       ac_file_inputs="$ac_file_inputs $ac_f"
15984     done
15985
15986     # Let's still pretend it is `configure' which instantiates (i.e., don't
15987     # use $as_me), people would be surprised to read:
15988     #    /* config.h.  Generated by config.status.  */
15989     configure_input="Generated from "`IFS=:
15990           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
15991     if test x"$ac_file" != x-; then
15992       configure_input="$ac_file.  $configure_input"
15993       { echo "$as_me:$LINENO: creating $ac_file" >&5
15994 echo "$as_me: creating $ac_file" >&6;}
15995     fi
15996
15997     case $ac_tag in
15998     *:-:* | *:-) cat >"$tmp/stdin";;
15999     esac
16000     ;;
16001   esac
16002
16003   ac_dir=`$as_dirname -- "$ac_file" ||
16004 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16005          X"$ac_file" : 'X\(//\)[^/]' \| \
16006          X"$ac_file" : 'X\(//\)$' \| \
16007          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16008 echo X"$ac_file" |
16009     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16010             s//\1/
16011             q
16012           }
16013           /^X\(\/\/\)[^/].*/{
16014             s//\1/
16015             q
16016           }
16017           /^X\(\/\/\)$/{
16018             s//\1/
16019             q
16020           }
16021           /^X\(\/\).*/{
16022             s//\1/
16023             q
16024           }
16025           s/.*/./; q'`
16026   { as_dir="$ac_dir"
16027   case $as_dir in #(
16028   -*) as_dir=./$as_dir;;
16029   esac
16030   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16031     as_dirs=
16032     while :; do
16033       case $as_dir in #(
16034       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16035       *) as_qdir=$as_dir;;
16036       esac
16037       as_dirs="'$as_qdir' $as_dirs"
16038       as_dir=`$as_dirname -- "$as_dir" ||
16039 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16040          X"$as_dir" : 'X\(//\)[^/]' \| \
16041          X"$as_dir" : 'X\(//\)$' \| \
16042          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16043 echo X"$as_dir" |
16044     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16045             s//\1/
16046             q
16047           }
16048           /^X\(\/\/\)[^/].*/{
16049             s//\1/
16050             q
16051           }
16052           /^X\(\/\/\)$/{
16053             s//\1/
16054             q
16055           }
16056           /^X\(\/\).*/{
16057             s//\1/
16058             q
16059           }
16060           s/.*/./; q'`
16061       test -d "$as_dir" && break
16062     done
16063     test -z "$as_dirs" || eval "mkdir $as_dirs"
16064   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16065 echo "$as_me: error: cannot create directory $as_dir" >&2;}
16066    { (exit 1); exit 1; }; }; }
16067   ac_builddir=.
16068
16069 case "$ac_dir" in
16070 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16071 *)
16072   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16073   # A ".." for each directory in $ac_dir_suffix.
16074   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16075   case $ac_top_builddir_sub in
16076   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16077   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16078   esac ;;
16079 esac
16080 ac_abs_top_builddir=$ac_pwd
16081 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16082 # for backward compatibility:
16083 ac_top_builddir=$ac_top_build_prefix
16084
16085 case $srcdir in
16086   .)  # We are building in place.
16087     ac_srcdir=.
16088     ac_top_srcdir=$ac_top_builddir_sub
16089     ac_abs_top_srcdir=$ac_pwd ;;
16090   [\\/]* | ?:[\\/]* )  # Absolute name.
16091     ac_srcdir=$srcdir$ac_dir_suffix;
16092     ac_top_srcdir=$srcdir
16093     ac_abs_top_srcdir=$srcdir ;;
16094   *) # Relative name.
16095     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16096     ac_top_srcdir=$ac_top_build_prefix$srcdir
16097     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16098 esac
16099 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16100
16101
16102   case $ac_mode in
16103   :F)
16104   #
16105   # CONFIG_FILE
16106   #
16107
16108   case $INSTALL in
16109   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16110   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16111   esac
16112 _ACEOF
16113
16114 cat >>$CONFIG_STATUS <<\_ACEOF
16115 # If the template does not know about datarootdir, expand it.
16116 # FIXME: This hack should be removed a few years after 2.60.
16117 ac_datarootdir_hack=; ac_datarootdir_seen=
16118
16119 case `sed -n '/datarootdir/ {
16120   p
16121   q
16122 }
16123 /@datadir@/p
16124 /@docdir@/p
16125 /@infodir@/p
16126 /@localedir@/p
16127 /@mandir@/p
16128 ' $ac_file_inputs` in
16129 *datarootdir*) ac_datarootdir_seen=yes;;
16130 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16131   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16132 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16133 _ACEOF
16134 cat >>$CONFIG_STATUS <<_ACEOF
16135   ac_datarootdir_hack='
16136   s&@datadir@&$datadir&g
16137   s&@docdir@&$docdir&g
16138   s&@infodir@&$infodir&g
16139   s&@localedir@&$localedir&g
16140   s&@mandir@&$mandir&g
16141     s&\\\${datarootdir}&$datarootdir&g' ;;
16142 esac
16143 _ACEOF
16144
16145 # Neutralize VPATH when `$srcdir' = `.'.
16146 # Shell code in configure.ac might set extrasub.
16147 # FIXME: do we really want to maintain this feature?
16148 cat >>$CONFIG_STATUS <<_ACEOF
16149   sed "$ac_vpsub
16150 $extrasub
16151 _ACEOF
16152 cat >>$CONFIG_STATUS <<\_ACEOF
16153 :t
16154 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16155 s&@configure_input@&$configure_input&;t t
16156 s&@top_builddir@&$ac_top_builddir_sub&;t t
16157 s&@srcdir@&$ac_srcdir&;t t
16158 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16159 s&@top_srcdir@&$ac_top_srcdir&;t t
16160 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16161 s&@builddir@&$ac_builddir&;t t
16162 s&@abs_builddir@&$ac_abs_builddir&;t t
16163 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16164 s&@INSTALL@&$ac_INSTALL&;t t
16165 $ac_datarootdir_hack
16166 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
16167
16168 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16169   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16170   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16171   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16172 which seems to be undefined.  Please make sure it is defined." >&5
16173 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16174 which seems to be undefined.  Please make sure it is defined." >&2;}
16175
16176   rm -f "$tmp/stdin"
16177   case $ac_file in
16178   -) cat "$tmp/out"; rm -f "$tmp/out";;
16179   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16180   esac
16181  ;;
16182   :H)
16183   #
16184   # CONFIG_HEADER
16185   #
16186 _ACEOF
16187
16188 # Transform confdefs.h into a sed script `conftest.defines', that
16189 # substitutes the proper values into config.h.in to produce config.h.
16190 rm -f conftest.defines conftest.tail
16191 # First, append a space to every undef/define line, to ease matching.
16192 echo 's/$/ /' >conftest.defines
16193 # Then, protect against being on the right side of a sed subst, or in
16194 # an unquoted here document, in config.status.  If some macros were
16195 # called several times there might be several #defines for the same
16196 # symbol, which is useless.  But do not sort them, since the last
16197 # AC_DEFINE must be honored.
16198 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16199 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
16200 # NAME is the cpp macro being defined, VALUE is the value it is being given.
16201 # PARAMS is the parameter list in the macro definition--in most cases, it's
16202 # just an empty string.
16203 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
16204 ac_dB='\\)[      (].*,\\1define\\2'
16205 ac_dC=' '
16206 ac_dD=' ,'
16207
16208 uniq confdefs.h |
16209   sed -n '
16210         t rset
16211         :rset
16212         s/^[     ]*#[    ]*define[       ][      ]*//
16213         t ok
16214         d
16215         :ok
16216         s/[\\&,]/\\&/g
16217         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
16218         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
16219   ' >>conftest.defines
16220
16221 # Remove the space that was appended to ease matching.
16222 # Then replace #undef with comments.  This is necessary, for
16223 # example, in the case of _POSIX_SOURCE, which is predefined and required
16224 # on some systems where configure will not decide to define it.
16225 # (The regexp can be short, since the line contains either #define or #undef.)
16226 echo 's/ $//
16227 s,^[     #]*u.*,/* & */,' >>conftest.defines
16228
16229 # Break up conftest.defines:
16230 ac_max_sed_lines=50
16231
16232 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
16233 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
16234 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
16235 # et cetera.
16236 ac_in='$ac_file_inputs'
16237 ac_out='"$tmp/out1"'
16238 ac_nxt='"$tmp/out2"'
16239
16240 while :
16241 do
16242   # Write a here document:
16243     cat >>$CONFIG_STATUS <<_ACEOF
16244     # First, check the format of the line:
16245     cat >"\$tmp/defines.sed" <<\\CEOF
16246 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
16247 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
16248 b
16249 :def
16250 _ACEOF
16251   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
16252   echo 'CEOF
16253     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
16254   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
16255   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
16256   grep . conftest.tail >/dev/null || break
16257   rm -f conftest.defines
16258   mv conftest.tail conftest.defines
16259 done
16260 rm -f conftest.defines conftest.tail
16261
16262 echo "ac_result=$ac_in" >>$CONFIG_STATUS
16263 cat >>$CONFIG_STATUS <<\_ACEOF
16264   if test x"$ac_file" != x-; then
16265     echo "/* $configure_input  */" >"$tmp/config.h"
16266     cat "$ac_result" >>"$tmp/config.h"
16267     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
16268       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16269 echo "$as_me: $ac_file is unchanged" >&6;}
16270     else
16271       rm -f $ac_file
16272       mv "$tmp/config.h" $ac_file
16273     fi
16274   else
16275     echo "/* $configure_input  */"
16276     cat "$ac_result"
16277   fi
16278   rm -f "$tmp/out12"
16279 # Compute $ac_file's index in $config_headers.
16280 _am_stamp_count=1
16281 for _am_header in $config_headers :; do
16282   case $_am_header in
16283     $ac_file | $ac_file:* )
16284       break ;;
16285     * )
16286       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16287   esac
16288 done
16289 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
16290 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16291          X$ac_file : 'X\(//\)[^/]' \| \
16292          X$ac_file : 'X\(//\)$' \| \
16293          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
16294 echo X$ac_file |
16295     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16296             s//\1/
16297             q
16298           }
16299           /^X\(\/\/\)[^/].*/{
16300             s//\1/
16301             q
16302           }
16303           /^X\(\/\/\)$/{
16304             s//\1/
16305             q
16306           }
16307           /^X\(\/\).*/{
16308             s//\1/
16309             q
16310           }
16311           s/.*/./; q'`/stamp-h$_am_stamp_count
16312  ;;
16313
16314   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16315 echo "$as_me: executing $ac_file commands" >&6;}
16316  ;;
16317   esac
16318
16319
16320   case $ac_file$ac_mode in
16321     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
16322   # Strip MF so we end up with the name of the file.
16323   mf=`echo "$mf" | sed -e 's/:.*$//'`
16324   # Check whether this is an Automake generated Makefile or not.
16325   # We used to match only the files named `Makefile.in', but
16326   # some people rename them; so instead we look at the file content.
16327   # Grep'ing the first line is not enough: some people post-process
16328   # each Makefile.in and add a new line on top of each file to say so.
16329   # So let's grep whole file.
16330   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
16331     dirpart=`$as_dirname -- "$mf" ||
16332 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16333          X"$mf" : 'X\(//\)[^/]' \| \
16334          X"$mf" : 'X\(//\)$' \| \
16335          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16336 echo X"$mf" |
16337     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16338             s//\1/
16339             q
16340           }
16341           /^X\(\/\/\)[^/].*/{
16342             s//\1/
16343             q
16344           }
16345           /^X\(\/\/\)$/{
16346             s//\1/
16347             q
16348           }
16349           /^X\(\/\).*/{
16350             s//\1/
16351             q
16352           }
16353           s/.*/./; q'`
16354   else
16355     continue
16356   fi
16357   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
16358   # Extract the definition of DEP_FILES from the Makefile without
16359   # running `make'.
16360   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16361   test -z "$DEPDIR" && continue
16362   # When using ansi2knr, U may be empty or an underscore; expand it
16363   U=`sed -n 's/^U = //p' < "$mf"`
16364   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
16365   # We invoke sed twice because it is the simplest approach to
16366   # changing $(DEPDIR) to its actual value in the expansion.
16367   for file in `sed -n '
16368     /^DEP_FILES = .*\\\\$/ {
16369       s/^DEP_FILES = //
16370       :loop
16371         s/\\\\$//
16372         p
16373         n
16374         /\\\\$/ b loop
16375       p
16376     }
16377     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
16378        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16379     # Make sure the directory exists.
16380     test -f "$dirpart/$file" && continue
16381     fdir=`$as_dirname -- "$file" ||
16382 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16383          X"$file" : 'X\(//\)[^/]' \| \
16384          X"$file" : 'X\(//\)$' \| \
16385          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16386 echo X"$file" |
16387     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16388             s//\1/
16389             q
16390           }
16391           /^X\(\/\/\)[^/].*/{
16392             s//\1/
16393             q
16394           }
16395           /^X\(\/\/\)$/{
16396             s//\1/
16397             q
16398           }
16399           /^X\(\/\).*/{
16400             s//\1/
16401             q
16402           }
16403           s/.*/./; q'`
16404     { as_dir=$dirpart/$fdir
16405   case $as_dir in #(
16406   -*) as_dir=./$as_dir;;
16407   esac
16408   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16409     as_dirs=
16410     while :; do
16411       case $as_dir in #(
16412       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16413       *) as_qdir=$as_dir;;
16414       esac
16415       as_dirs="'$as_qdir' $as_dirs"
16416       as_dir=`$as_dirname -- "$as_dir" ||
16417 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16418          X"$as_dir" : 'X\(//\)[^/]' \| \
16419          X"$as_dir" : 'X\(//\)$' \| \
16420          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16421 echo X"$as_dir" |
16422     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16423             s//\1/
16424             q
16425           }
16426           /^X\(\/\/\)[^/].*/{
16427             s//\1/
16428             q
16429           }
16430           /^X\(\/\/\)$/{
16431             s//\1/
16432             q
16433           }
16434           /^X\(\/\).*/{
16435             s//\1/
16436             q
16437           }
16438           s/.*/./; q'`
16439       test -d "$as_dir" && break
16440     done
16441     test -z "$as_dirs" || eval "mkdir $as_dirs"
16442   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16443 echo "$as_me: error: cannot create directory $as_dir" >&2;}
16444    { (exit 1); exit 1; }; }; }
16445     # echo "creating $dirpart/$file"
16446     echo '# dummy' > "$dirpart/$file"
16447   done
16448 done
16449  ;;
16450     "default":C) test -z "$CONFIG_HEADERS" || echo timestamp >stamp-h ;;
16451
16452   esac
16453 done # for ac_tag
16454
16455
16456 { (exit 0); exit 0; }
16457 _ACEOF
16458 chmod +x $CONFIG_STATUS
16459 ac_clean_files=$ac_clean_files_save
16460
16461
16462 # configure is writing to config.log, and then calls config.status.
16463 # config.status does its own redirection, appending to config.log.
16464 # Unfortunately, on DOS this fails, as config.log is still kept open
16465 # by configure, so config.status won't be able to write to it; its
16466 # output is simply discarded.  So we exec the FD to /dev/null,
16467 # effectively closing config.log, so it can be properly (re)opened and
16468 # appended to by config.status.  When coming back to configure, we
16469 # need to make the FD available again.
16470 if test "$no_create" != yes; then
16471   ac_cs_success=:
16472   ac_config_status_args=
16473   test "$silent" = yes &&
16474     ac_config_status_args="$ac_config_status_args --quiet"
16475   exec 5>/dev/null
16476   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16477   exec 5>>config.log
16478   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16479   # would make configure fail if this is the last instruction.
16480   $ac_cs_success || { (exit 1); exit 1; }
16481 fi
16482
16483 #
16484 # CONFIG_SUBDIRS section.
16485 #
16486 if test "$no_recursion" != yes; then
16487
16488   # Remove --cache-file and --srcdir arguments so they do not pile up.
16489   ac_sub_configure_args=
16490   ac_prev=
16491   eval "set x $ac_configure_args"
16492   shift
16493   for ac_arg
16494   do
16495     if test -n "$ac_prev"; then
16496       ac_prev=
16497       continue
16498     fi
16499     case $ac_arg in
16500     -cache-file | --cache-file | --cache-fil | --cache-fi \
16501     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
16502       ac_prev=cache_file ;;
16503     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
16504     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
16505     | --c=*)
16506       ;;
16507     --config-cache | -C)
16508       ;;
16509     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
16510       ac_prev=srcdir ;;
16511     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
16512       ;;
16513     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
16514       ac_prev=prefix ;;
16515     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
16516       ;;
16517     *)
16518       case $ac_arg in
16519       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16520       esac
16521       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
16522     esac
16523   done
16524
16525   # Always prepend --prefix to ensure using the same prefix
16526   # in subdir configurations.
16527   ac_arg="--prefix=$prefix"
16528   case $ac_arg in
16529   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16530   esac
16531   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
16532
16533   # Pass --silent
16534   if test "$silent" = yes; then
16535     ac_sub_configure_args="--silent $ac_sub_configure_args"
16536   fi
16537
16538   ac_popdir=`pwd`
16539   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
16540
16541     # Do not complain, so a configure script can configure whichever
16542     # parts of a large source tree are present.
16543     test -d "$srcdir/$ac_dir" || continue
16544
16545     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
16546     echo "$as_me:$LINENO: $ac_msg" >&5
16547     echo "$ac_msg" >&6
16548     { as_dir="$ac_dir"
16549   case $as_dir in #(
16550   -*) as_dir=./$as_dir;;
16551   esac
16552   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16553     as_dirs=
16554     while :; do
16555       case $as_dir in #(
16556       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16557       *) as_qdir=$as_dir;;
16558       esac
16559       as_dirs="'$as_qdir' $as_dirs"
16560       as_dir=`$as_dirname -- "$as_dir" ||
16561 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16562          X"$as_dir" : 'X\(//\)[^/]' \| \
16563          X"$as_dir" : 'X\(//\)$' \| \
16564          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16565 echo X"$as_dir" |
16566     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16567             s//\1/
16568             q
16569           }
16570           /^X\(\/\/\)[^/].*/{
16571             s//\1/
16572             q
16573           }
16574           /^X\(\/\/\)$/{
16575             s//\1/
16576             q
16577           }
16578           /^X\(\/\).*/{
16579             s//\1/
16580             q
16581           }
16582           s/.*/./; q'`
16583       test -d "$as_dir" && break
16584     done
16585     test -z "$as_dirs" || eval "mkdir $as_dirs"
16586   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16587 echo "$as_me: error: cannot create directory $as_dir" >&2;}
16588    { (exit 1); exit 1; }; }; }
16589     ac_builddir=.
16590
16591 case "$ac_dir" in
16592 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16593 *)
16594   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16595   # A ".." for each directory in $ac_dir_suffix.
16596   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16597   case $ac_top_builddir_sub in
16598   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16599   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16600   esac ;;
16601 esac
16602 ac_abs_top_builddir=$ac_pwd
16603 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16604 # for backward compatibility:
16605 ac_top_builddir=$ac_top_build_prefix
16606
16607 case $srcdir in
16608   .)  # We are building in place.
16609     ac_srcdir=.
16610     ac_top_srcdir=$ac_top_builddir_sub
16611     ac_abs_top_srcdir=$ac_pwd ;;
16612   [\\/]* | ?:[\\/]* )  # Absolute name.
16613     ac_srcdir=$srcdir$ac_dir_suffix;
16614     ac_top_srcdir=$srcdir
16615     ac_abs_top_srcdir=$srcdir ;;
16616   *) # Relative name.
16617     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16618     ac_top_srcdir=$ac_top_build_prefix$srcdir
16619     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16620 esac
16621 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16622
16623
16624     cd "$ac_dir"
16625
16626     # Check for guested configure; otherwise get Cygnus style configure.
16627     if test -f "$ac_srcdir/configure.gnu"; then
16628       ac_sub_configure=$ac_srcdir/configure.gnu
16629     elif test -f "$ac_srcdir/configure"; then
16630       ac_sub_configure=$ac_srcdir/configure
16631     elif test -f "$ac_srcdir/configure.in"; then
16632       # This should be Cygnus configure.
16633       ac_sub_configure=$ac_aux_dir/configure
16634     else
16635       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
16636 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
16637       ac_sub_configure=
16638     fi
16639
16640     # The recursion is here.
16641     if test -n "$ac_sub_configure"; then
16642       # Make the cache file name correct relative to the subdirectory.
16643       case $cache_file in
16644       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
16645       *) # Relative name.
16646         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
16647       esac
16648
16649       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
16650 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
16651       # The eval makes quoting arguments work.
16652       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
16653            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
16654         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
16655 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
16656    { (exit 1); exit 1; }; }
16657     fi
16658
16659     cd "$ac_popdir"
16660   done
16661 fi
16662
16663
16664
16665 { echo "$as_me:$LINENO: result: " >&5
16666 echo "${ECHO_T}" >&6; }
16667 { echo "$as_me:$LINENO: result: ** Configuration summary for $PACKAGE $VERSION:" >&5
16668 echo "${ECHO_T}** Configuration summary for $PACKAGE $VERSION:" >&6; }
16669 { echo "$as_me:$LINENO: result: " >&5
16670 echo "${ECHO_T}" >&6; }
16671
16672 { echo "$as_me:$LINENO: result: gnuplot will be compiled with the following terminals:" >&5
16673 echo "${ECHO_T}gnuplot will be compiled with the following terminals:" >&6; }
16674 { echo "$as_me:$LINENO: result: " >&5
16675 echo "${ECHO_T}" >&6; }
16676
16677 { echo "$as_me:$LINENO: result:   Standalone terminals: yes (always builtin)" >&5
16678 echo "${ECHO_T}  Standalone terminals: yes (always builtin)" >&6; }
16679 { echo "$as_me:$LINENO: result:     (aed512, aed767, aifm, bitgraph, cgm, corel, dumb, dxf, eepic, emf, emtex," >&5
16680 echo "${ECHO_T}    (aed512, aed767, aifm, bitgraph, cgm, corel, dumb, dxf, eepic, emf, emtex," >&6; }
16681 { echo "$as_me:$LINENO: result:     epslatex, epson_180dpi, epson_60dpi, epson_lx800, fig, gpic, hp2623A," >&5
16682 echo "${ECHO_T}    epslatex, epson_180dpi, epson_60dpi, epson_lx800, fig, gpic, hp2623A," >&6; }
16683 { echo "$as_me:$LINENO: result:     hp2648, hp500c, hpdj, hpgl, hpljii, hppj, imagen, kc_tek40xx, km_tek40xx," >&5
16684 echo "${ECHO_T}    hp2648, hp500c, hpdj, hpgl, hpljii, hppj, imagen, kc_tek40xx, km_tek40xx," >&6; }
16685 { echo "$as_me:$LINENO: result:     latex, metafont, metapost, mif, pbm, postscript, pslatex, nec_cp6, okidata," >&5
16686 echo "${ECHO_T}    latex, metafont, metapost, mif, pbm, postscript, pslatex, nec_cp6, okidata," >&6; }
16687 { echo "$as_me:$LINENO: result:     pcl5, pstex, pstricks, qms, regis, selanar, svg, starc, tandy_60dpi," >&5
16688 echo "${ECHO_T}    pcl5, pstex, pstricks, qms, regis, selanar, svg, starc, tandy_60dpi," >&6; }
16689 { echo "$as_me:$LINENO: result:     tek40xx, tek410x, texdraw, tgif, tkcanvas, tpic, vttek)" >&5
16690 echo "${ECHO_T}    tek40xx, tek410x, texdraw, tgif, tkcanvas, tpic, vttek)" >&6; }
16691
16692 if test "$no_x" != yes; then
16693   if test "$enable_mouse" = yes; then
16694     { echo "$as_me:$LINENO: result:   x11/xlib terminal: yes (with mouse support)" >&5
16695 echo "${ECHO_T}  x11/xlib terminal: yes (with mouse support)" >&6; }
16696   else
16697     { echo "$as_me:$LINENO: result:   x11/xlib terminal: yes (without mouse support)" >&5
16698 echo "${ECHO_T}  x11/xlib terminal: yes (without mouse support)" >&6; }
16699   fi
16700   if test "$enable_x11_mbfonts" = yes; then
16701     { echo "$as_me:$LINENO: result:     (with multi-byte fonts)" >&5
16702 echo "${ECHO_T}    (with multi-byte fonts)" >&6; }
16703   else
16704     { echo "$as_me:$LINENO: result:     (without multi-byte fonts, requires support in libX11)" >&5
16705 echo "${ECHO_T}    (without multi-byte fonts, requires support in libX11)" >&6; }
16706   fi
16707   if test "$enable_binary_x11_polygon" = yes; then
16708     { echo "$as_me:$LINENO: result:     (with binary polygon protocol)" >&5
16709 echo "${ECHO_T}    (with binary polygon protocol)" >&6; }
16710   else
16711     { echo "$as_me:$LINENO: result:     (without binary polygon protocol)" >&5
16712 echo "${ECHO_T}    (without binary polygon protocol)" >&6; }
16713   fi
16714 else
16715     { echo "$as_me:$LINENO: result:   X Window System terminal: no (requires X libraries)" >&5
16716 echo "${ECHO_T}  X Window System terminal: no (requires X libraries)" >&6; }
16717 fi
16718
16719 if test "$ac_cv_lib_gd_gdImageJpeg" = yes; then
16720   { echo "$as_me:$LINENO: result:   jpeg terminal: yes" >&5
16721 echo "${ECHO_T}  jpeg terminal: yes" >&6; }
16722 else
16723   { echo "$as_me:$LINENO: result:   jpeg terminal: no (requires libgd with jpeg support)" >&5
16724 echo "${ECHO_T}  jpeg terminal: no (requires libgd with jpeg support)" >&6; }
16725 fi
16726
16727 if test "$ac_cv_lib_gd_gdImageGif" = yes; then
16728   if test "$ac_cv_lib_gd_gdImageGifAnimBegin" = yes; then
16729     { echo "$as_me:$LINENO: result:   gif terminal: yes (with animated gif)" >&5
16730 echo "${ECHO_T}  gif terminal: yes (with animated gif)" >&6; }
16731   else
16732     { echo "$as_me:$LINENO: result:   gif terminal: yes (without animated gif, requires libgd support)" >&5
16733 echo "${ECHO_T}  gif terminal: yes (without animated gif, requires libgd support)" >&6; }
16734   fi
16735 else
16736   { echo "$as_me:$LINENO: result:   gif terminal: no (requires libgd with gif support)" >&5
16737 echo "${ECHO_T}  gif terminal: no (requires libgd with gif support)" >&6; }
16738 fi
16739
16740
16741 if test "$ac_cv_lib_gd_gdImagePng" = yes; then
16742   { echo "$as_me:$LINENO: result:   png terminal: yes" >&5
16743 echo "${ECHO_T}  png terminal: yes" >&6; }
16744 else
16745   { echo "$as_me:$LINENO: result:   png terminal: no (requires libgd with png support)" >&5
16746 echo "${ECHO_T}  png terminal: no (requires libgd with png support)" >&6; }
16747 fi
16748
16749 if test "$have_ttf" = yes; then
16750   { echo "$as_me:$LINENO: result:     (jpeg, gif and png terminals can use TTF fonts)" >&5
16751 echo "${ECHO_T}    (jpeg, gif and png terminals can use TTF fonts)" >&6; }
16752 else
16753   { echo "$as_me:$LINENO: result:     (jpeg, gif and png terminals cannot use TTF fonts, requires libgd support)" >&5
16754 echo "${ECHO_T}    (jpeg, gif and png terminals cannot use TTF fonts, requires libgd support)" >&6; }
16755 fi
16756
16757 if test "$ac_cv_header_pdflib_h" = yes; then
16758   { echo "$as_me:$LINENO: result:   pdf terminal: yes" >&5
16759 echo "${ECHO_T}  pdf terminal: yes" >&6; }
16760   if test "$ac_cv_lib_pdf_PDF_begin_pattern" != yes; then
16761     { echo "$as_me:$LINENO: result:       (pattern fills not supported, libpdf too old)" >&5
16762 echo "${ECHO_T}      (pattern fills not supported, libpdf too old)" >&6; }
16763   fi
16764   if test "$ac_cv_lib_pdf_PDF_setdashpattern" != yes; then
16765     { echo "$as_me:$LINENO: result:       (dash patterns not supported, libpdf too old)" >&5
16766 echo "${ECHO_T}      (dash patterns not supported, libpdf too old)" >&6; }
16767   fi
16768 else
16769   { echo "$as_me:$LINENO: result:   pdf terminal: no (requires libpdf)" >&5
16770 echo "${ECHO_T}  pdf terminal: no (requires libpdf)" >&6; }
16771 fi
16772
16773 if test x"$with_plot" != x; then
16774   if test "$with_plot" = yes; then
16775     { echo "$as_me:$LINENO: result:   plot library terminal: yes (unixplot - UNIX version)" >&5
16776 echo "${ECHO_T}  plot library terminal: yes (unixplot - UNIX version)" >&6; }
16777   elif test "$with_plot" != no; then
16778     { echo "$as_me:$LINENO: result:   plot library terminal: yes (gnugraph - GNU version)" >&5
16779 echo "${ECHO_T}  plot library terminal: yes (gnugraph - GNU version)" >&6; }
16780   else
16781     { echo "$as_me:$LINENO: result:   plot library terminal: no (requires GNU plotutils or UNIX plot)" >&5
16782 echo "${ECHO_T}  plot library terminal: no (requires GNU plotutils or UNIX plot)" >&6; }
16783   fi
16784 else
16785     { echo "$as_me:$LINENO: result:   plot library terminal: no (use --with-plot to enable, requires GNU plotutils" >&5
16786 echo "${ECHO_T}  plot library terminal: no (use --with-plot to enable, requires GNU plotutils" >&6; }
16787     { echo "$as_me:$LINENO: result:                              or UNIX plot)" >&5
16788 echo "${ECHO_T}                             or UNIX plot)" >&6; }
16789 fi
16790
16791 if test "$with_linux_vga" = yes; then
16792     { echo "$as_me:$LINENO: result:   linux terminal (vga console): yes" >&5
16793 echo "${ECHO_T}  linux terminal (vga console): yes" >&6; }
16794   if test "$with_vgagl" = yes; then
16795     { echo "$as_me:$LINENO: result:   vgagl terminal ((s)vga console): yes" >&5
16796 echo "${ECHO_T}  vgagl terminal ((s)vga console): yes" >&6; }
16797   else
16798     { echo "$as_me:$LINENO: result:   vgagl terminal ((s)vga console): no (requires vgagl)" >&5
16799 echo "${ECHO_T}  vgagl terminal ((s)vga console): no (requires vgagl)" >&6; }
16800   fi
16801   { echo "$as_me:$LINENO: result:     SECURITY NOTICE: SVGAlib requires that gnuplot is installed suid root!" >&5
16802 echo "${ECHO_T}    SECURITY NOTICE: SVGAlib requires that gnuplot is installed suid root!" >&6; }
16803 else
16804   { echo "$as_me:$LINENO: result:   linux terminal (vga console): no (use --with-linux-vga to enable," >&5
16805 echo "${ECHO_T}  linux terminal (vga console): no (use --with-linux-vga to enable," >&6; }
16806   { echo "$as_me:$LINENO: result:                                        requires SVGAlib)" >&5
16807 echo "${ECHO_T}                                       requires SVGAlib)" >&6; }
16808   { echo "$as_me:$LINENO: result:   vgagl terminal ((s)vga console): no (use --with-linux-vga to enable," >&5
16809 echo "${ECHO_T}  vgagl terminal ((s)vga console): no (use --with-linux-vga to enable," >&6; }
16810   { echo "$as_me:$LINENO: result:                                        requires SVGAlib with vgagl)" >&5
16811 echo "${ECHO_T}                                       requires SVGAlib with vgagl)" >&6; }
16812 fi
16813
16814 if test "$GGI_SUPPORT" = yes; then
16815   if test "$ac_cv_header_ggi_xmi_h" = yes; then
16816     { echo "$as_me:$LINENO: result:   ggi terminal: yes (EXPERIMENTAL) (with pm3d support)" >&5
16817 echo "${ECHO_T}  ggi terminal: yes (EXPERIMENTAL) (with pm3d support)" >&6; }
16818   else
16819     { echo "$as_me:$LINENO: result:   ggi terminal: yes (EXPERIMENTAL) (without pm3d support, requires libxmi)" >&5
16820 echo "${ECHO_T}  ggi terminal: yes (EXPERIMENTAL) (without pm3d support, requires libxmi)" >&6; }
16821   fi
16822 else
16823   { echo "$as_me:$LINENO: result:   ggi terminal: no (use --with-ggi to enable, requires libggi)" >&5
16824 echo "${ECHO_T}  ggi terminal: no (use --with-ggi to enable, requires libggi)" >&6; }
16825 fi
16826
16827 if test "$enable_iris" = yes; then
16828   { echo "$as_me:$LINENO: result:   iris4d terminal: yes" >&5
16829 echo "${ECHO_T}  iris4d terminal: yes" >&6; }
16830 else
16831   { echo "$as_me:$LINENO: result:   iris4d terminal: no (use --enable-iris to enable, requires libgl_s)" >&5
16832 echo "${ECHO_T}  iris4d terminal: no (use --enable-iris to enable, requires libgl_s)" >&6; }
16833 fi
16834
16835 if test "$enable_mgr" = yes; then
16836   { echo "$as_me:$LINENO: result:   mgr terminal: yes" >&5
16837 echo "${ECHO_T}  mgr terminal: yes" >&6; }
16838 else
16839   { echo "$as_me:$LINENO: result:   mgr terminal: no (use --enable-mgr to enable, requires libpixrect)" >&5
16840 echo "${ECHO_T}  mgr terminal: no (use --enable-mgr to enable, requires libpixrect)" >&6; }
16841 fi
16842
16843 if test "$enable_rgip" = yes ; then
16844   { echo "$as_me:$LINENO: result:   rgip/uniplex terminal: yes" >&5
16845 echo "${ECHO_T}  rgip/uniplex terminal: yes" >&6; }
16846 else
16847   { echo "$as_me:$LINENO: result:   rgip/uniplex terminal: no (use --enable-rgip to enable)" >&5
16848 echo "${ECHO_T}  rgip/uniplex terminal: no (use --enable-rgip to enable)" >&6; }
16849 fi
16850
16851 if test "$is_msdos" = yes; then
16852   { echo "$as_me:$LINENO: result:   svga terminal (MSDOS/djgpp): yes" >&5
16853 echo "${ECHO_T}  svga terminal (MSDOS/djgpp): yes" >&6; }
16854 else
16855   { echo "$as_me:$LINENO: result:   svga terminal (MSDOS/djgpp): no" >&5
16856 echo "${ECHO_T}  svga terminal (MSDOS/djgpp): no" >&6; }
16857 fi
16858
16859 if test "$build_src_beos_subdir" = yes; then
16860   { echo "$as_me:$LINENO: result:   be terminal (BeOS): yes" >&5
16861 echo "${ECHO_T}  be terminal (BeOS): yes" >&6; }
16862 else
16863   { echo "$as_me:$LINENO: result:   be terminal (BeOS): no" >&5
16864 echo "${ECHO_T}  be terminal (BeOS): no" >&6; }
16865 fi
16866
16867 if test "$is_next" = yes; then
16868   { echo "$as_me:$LINENO: result:   next terminal: yes" >&5
16869 echo "${ECHO_T}  next terminal: yes" >&6; }
16870 else
16871   { echo "$as_me:$LINENO: result:   next terminal: no" >&5
16872 echo "${ECHO_T}  next terminal: no" >&6; }
16873 fi
16874
16875 if test "$is_apple" = yes; then
16876   { echo "$as_me:$LINENO: result:   aqua terminal (MacOS X): yes" >&5
16877 echo "${ECHO_T}  aqua terminal (MacOS X): yes" >&6; }
16878 else
16879   { echo "$as_me:$LINENO: result:   aqua terminal (MacOS X): no" >&5
16880 echo "${ECHO_T}  aqua terminal (MacOS X): no" >&6; }
16881 fi
16882
16883 if test "$enable_wxwidgets_ok" = yes; then
16884   { echo "$as_me:$LINENO: result:   wxt terminal: yes " >&5
16885 echo "${ECHO_T}  wxt terminal: yes " >&6; }
16886 else
16887   { echo "$as_me:$LINENO: result:   wxt terminal: no (requires C++, wxWidgets>2.6, cairo>0.9, pango>1.10)" >&5
16888 echo "${ECHO_T}  wxt terminal: no (requires C++, wxWidgets>2.6, cairo>0.9, pango>1.10)" >&6; }
16889 fi
16890
16891 { echo "$as_me:$LINENO: result: " >&5
16892 echo "${ECHO_T}" >&6; }
16893 { echo "$as_me:$LINENO: result:   Additional terminals are availaible in platform-specific makefiles:" >&5
16894 echo "${ECHO_T}  Additional terminals are availaible in platform-specific makefiles:" >&6; }
16895 { echo "$as_me:$LINENO: result:    amiga (makefile.amg and makefile.ami), apollo/gpr (makefile.unx), atari/vdi" >&5
16896 echo "${ECHO_T}   amiga (makefile.amg and makefile.ami), apollo/gpr (makefile.unx), atari/vdi" >&6; }
16897 { echo "$as_me:$LINENO: result:    (makefile.st), cgi (makefile.unx), mtos (makefile.mto), pm (makefile.os2)," >&5
16898 echo "${ECHO_T}   (makefile.st), cgi (makefile.unx), mtos (makefile.mto), pm (makefile.os2)," >&6; }
16899 { echo "$as_me:$LINENO: result:    sun (makefile.unx), unixpc (makefile.unx), windows (various Windows" >&5
16900 echo "${ECHO_T}   sun (makefile.unx), unixpc (makefile.unx), windows (various Windows" >&6; }
16901 { echo "$as_me:$LINENO: result:    makefiles)" >&5
16902 echo "${ECHO_T}   makefiles)" >&6; }
16903
16904 { echo "$as_me:$LINENO: result:   Additional terminals are built automatically if possible at compile-time:" >&5
16905 echo "${ECHO_T}  Additional terminals are built automatically if possible at compile-time:" >&6; }
16906 { echo "$as_me:$LINENO: result:    vesa (MSDOS), emxvga (MSDOS, OS/2), ega/vga/svga/ssvga/hercules (Windows with" >&5
16907 echo "${ECHO_T}   vesa (MSDOS), emxvga (MSDOS, OS/2), ega/vga/svga/ssvga/hercules (Windows with" >&6; }
16908 { echo "$as_me:$LINENO: result:    Zortec compiler), macintosh" >&5
16909 echo "${ECHO_T}   Zortec compiler), macintosh" >&6; }
16910
16911
16912 { echo "$as_me:$LINENO: result: " >&5
16913 echo "${ECHO_T}" >&6; }
16914 { echo "$as_me:$LINENO: result: gnuplot will be compiled with the following features:" >&5
16915 echo "${ECHO_T}gnuplot will be compiled with the following features:" >&6; }
16916 { echo "$as_me:$LINENO: result: " >&5
16917 echo "${ECHO_T}" >&6; }
16918
16919 if test "$enable_fiterrvars" = yes; then
16920   { echo "$as_me:$LINENO: result:   Fitting error variables: yes" >&5
16921 echo "${ECHO_T}  Fitting error variables: yes" >&6; }
16922 else
16923   { echo "$as_me:$LINENO: result:   Fitting error variables: no" >&5
16924 echo "${ECHO_T}  Fitting error variables: no" >&6; }
16925 fi
16926
16927 if test "$enable_datastrings" = yes; then
16928   { echo "$as_me:$LINENO: result:   String-handling in datafiles: yes" >&5
16929 echo "${ECHO_T}  String-handling in datafiles: yes" >&6; }
16930 else
16931   { echo "$as_me:$LINENO: result:   String-handling in datafiles: no" >&5
16932 echo "${ECHO_T}  String-handling in datafiles: no" >&6; }
16933 fi
16934
16935 if test "$enable_histograms" = yes; then
16936   { echo "$as_me:$LINENO: result:   Plot style histograms: yes" >&5
16937 echo "${ECHO_T}  Plot style histograms: yes" >&6; }
16938 else
16939   { echo "$as_me:$LINENO: result:   Plot style histograms: no (requires string-handling in datafiles)" >&5
16940 echo "${ECHO_T}  Plot style histograms: no (requires string-handling in datafiles)" >&6; }
16941 fi
16942
16943 if test "$enable_stringvariables" = yes; then
16944   { echo "$as_me:$LINENO: result:   String variables: yes" >&5
16945 echo "${ECHO_T}  String variables: yes" >&6; }
16946 else
16947   { echo "$as_me:$LINENO: result:   String variables: no" >&5
16948 echo "${ECHO_T}  String variables: no" >&6; }
16949 fi
16950
16951 if test "$enable_macros" = yes; then
16952   { echo "$as_me:$LINENO: result:   Command line macros: yes (EXPERIMENTAL)" >&5
16953 echo "${ECHO_T}  Command line macros: yes (EXPERIMENTAL)" >&6; }
16954 else
16955   { echo "$as_me:$LINENO: result:   Command line macros: no (requires string variables)" >&5
16956 echo "${ECHO_T}  Command line macros: no (requires string variables)" >&6; }
16957 fi
16958
16959 if test "$enable_objects" = yes; then
16960   { echo "$as_me:$LINENO: result:   Placement of rectangles and other objects: yes (EXPERIMENTAL)" >&5
16961 echo "${ECHO_T}  Placement of rectangles and other objects: yes (EXPERIMENTAL)" >&6; }
16962 else
16963   { echo "$as_me:$LINENO: result:   Placement of rectangles and other objects: no" >&5
16964 echo "${ECHO_T}  Placement of rectangles and other objects: no" >&6; }
16965 fi
16966
16967 if test "$enable_with_image" = yes; then
16968   { echo "$as_me:$LINENO: result:   Plot style image: yes (EXPERIMENTAL)" >&5
16969 echo "${ECHO_T}  Plot style image: yes (EXPERIMENTAL)" >&6; }
16970 else
16971   { echo "$as_me:$LINENO: result:   Plot style image: no" >&5
16972 echo "${ECHO_T}  Plot style image: no" >&6; }
16973 fi
16974
16975 if test "$enable_binary_data_file" = yes; then
16976   { echo "$as_me:$LINENO: result:   General binary data file reading: yes (EXPERIMENTAL)" >&5
16977 echo "${ECHO_T}  General binary data file reading: yes (EXPERIMENTAL)" >&6; }
16978 else
16979   { echo "$as_me:$LINENO: result:   General binary data file reading: no" >&5
16980 echo "${ECHO_T}  General binary data file reading: no" >&6; }
16981 fi
16982
16983 { echo "$as_me:$LINENO: result: " >&5
16984 echo "${ECHO_T}" >&6; }
16985 { echo "$as_me:$LINENO: result: gnuplot will be compiled with the following options:" >&5
16986 echo "${ECHO_T}gnuplot will be compiled with the following options:" >&6; }
16987 { echo "$as_me:$LINENO: result: " >&5
16988 echo "${ECHO_T}" >&6; }
16989
16990 if test "$with_readline" = no; then
16991   { echo "$as_me:$LINENO: result:   No readline support (use --with-readline=gnu or --with-readline=builtin)" >&5
16992 echo "${ECHO_T}  No readline support (use --with-readline=gnu or --with-readline=builtin)" >&6; }
16993 fi
16994
16995   if test "$with_readline" = bsd; then
16996     if test -n "$gp_tcap"; then
16997       { echo "$as_me:$LINENO: result:   Readline library: BSD editline with $gp_tcap" >&5
16998 echo "${ECHO_T}  Readline library: BSD editline with $gp_tcap" >&6; }
16999     else
17000       { echo "$as_me:$LINENO: result:   Readline library: BSD editline library" >&5
17001 echo "${ECHO_T}  Readline library: BSD editline library" >&6; }
17002     fi
17003   else if test "$with_readline" != builtin; then
17004     if test -n "$gp_tcap"; then
17005       { echo "$as_me:$LINENO: result:   Readline library: GNU readline library with $gp_tcap" >&5
17006 echo "${ECHO_T}  Readline library: GNU readline library with $gp_tcap" >&6; }
17007     else
17008       { echo "$as_me:$LINENO: result:   Readline library: GNU readline library" >&5
17009 echo "${ECHO_T}  Readline library: GNU readline library" >&6; }
17010     fi
17011   else
17012     { echo "$as_me:$LINENO: result:   Readline library: builtin minimal (use --with-readline=gnu for GNU readline)" >&5
17013 echo "${ECHO_T}  Readline library: builtin minimal (use --with-readline=gnu for GNU readline)" >&6; }
17014   fi
17015 fi
17016
17017 if test "$enable_history_file" = yes; then
17018   { echo "$as_me:$LINENO: result:   Command-line history file: yes" >&5
17019 echo "${ECHO_T}  Command-line history file: yes" >&6; }
17020 else
17021   { echo "$as_me:$LINENO: result:   Command-line history file: no" >&5
17022 echo "${ECHO_T}  Command-line history file: no" >&6; }
17023 fi
17024
17025 if test "$with_cwdrc" = yes; then
17026   { echo "$as_me:$LINENO: result:   Check current directory for .gnuplot file: yes" >&5
17027 echo "${ECHO_T}  Check current directory for .gnuplot file: yes" >&6; }
17028 else
17029   { echo "$as_me:$LINENO: result:   Check current directory for .gnuplot file: no (use --with-cwdrc to enable)" >&5
17030 echo "${ECHO_T}  Check current directory for .gnuplot file: no (use --with-cwdrc to enable)" >&6; }
17031 fi
17032
17033 if test "$with_row_help" = no; then
17034   { echo "$as_me:$LINENO: result:   Sort help/subtopic tables by column: yes" >&5
17035 echo "${ECHO_T}  Sort help/subtopic tables by column: yes" >&6; }
17036 else
17037   { echo "$as_me:$LINENO: result:   Sort help/subtopic tables by column: no (use --without-row-help to enable)" >&5
17038 echo "${ECHO_T}  Sort help/subtopic tables by column: no (use --without-row-help to enable)" >&6; }
17039 fi
17040
17041 if test "$with_kpsexpand" = yes; then
17042   { echo "$as_me:$LINENO: result:   Use TeX kpsexpand to search for fonts: yes" >&5
17043 echo "${ECHO_T}  Use TeX kpsexpand to search for fonts: yes" >&6; }
17044 else
17045   { echo "$as_me:$LINENO: result:   Use TeX kpsexpand to search for fonts: no (use --with-kpsexpand to enable)" >&5
17046 echo "${ECHO_T}  Use TeX kpsexpand to search for fonts: no (use --with-kpsexpand to enable)" >&6; }
17047 fi
17048
17049 if test "$enable_thin_splines" = yes; then
17050   { echo "$as_me:$LINENO: result:   Thin plate splines: yes" >&5
17051 echo "${ECHO_T}  Thin plate splines: yes" >&6; }
17052 else
17053   { echo "$as_me:$LINENO: result:   Thin plate splines: no (use --enable-thin-spline to enable)" >&5
17054 echo "${ECHO_T}  Thin plate splines: no (use --enable-thin-spline to enable)" >&6; }
17055 fi
17056
17057 if test "$enable_h3d_gridbox" = yes; then
17058   { echo "$as_me:$LINENO: result:   Hidden3d optimization: gridbox" >&5
17059 echo "${ECHO_T}  Hidden3d optimization: gridbox" >&6; }
17060 else
17061   if test "$enable_h3d_quadtree" = no; then
17062     { echo "$as_me:$LINENO: result:   Hidden3d optimization: none" >&5
17063 echo "${ECHO_T}  Hidden3d optimization: none" >&6; }
17064   else
17065     { echo "$as_me:$LINENO: result:   Hidden3d optimization: quadtree" >&5
17066 echo "${ECHO_T}  Hidden3d optimization: quadtree" >&6; }
17067   fi
17068 fi
17069
17070 if test "$enable_backwards_compatibility" = yes; then
17071   { echo "$as_me:$LINENO: result:   Deprecated syntax and terminal options : yes" >&5
17072 echo "${ECHO_T}  Deprecated syntax and terminal options : yes" >&6; }
17073 else
17074   { echo "$as_me:$LINENO: result:   Deprecated syntax and terminal options : no (use --enable-backwards-compatibility to enable)" >&5
17075 echo "${ECHO_T}  Deprecated syntax and terminal options : no (use --enable-backwards-compatibility to enable)" >&6; }
17076 fi
17077
17078
17079 { echo "$as_me:$LINENO: result: " >&5
17080 echo "${ECHO_T}" >&6; }
17081 { echo "$as_me:$LINENO: result: gnuplot will install the following additional materials:" >&5
17082 echo "${ECHO_T}gnuplot will install the following additional materials:" >&6; }
17083 { echo "$as_me:$LINENO: result: " >&5
17084 echo "${ECHO_T}" >&6; }
17085
17086 if test "$with_lasergnu" = yes; then
17087   { echo "$as_me:$LINENO: result:   lasergnu printer script: yes" >&5
17088 echo "${ECHO_T}  lasergnu printer script: yes" >&6; }
17089 else
17090   { echo "$as_me:$LINENO: result:   lasergnu printer script: no (use --with-lasergnu to enable)" >&5
17091 echo "${ECHO_T}  lasergnu printer script: no (use --with-lasergnu to enable)" >&6; }
17092 fi
17093
17094 if test "$with_lisp_files" != no; then
17095   { echo "$as_me:$LINENO: result:   gnuplot-mode for X/Emacs: yes" >&5
17096 echo "${ECHO_T}  gnuplot-mode for X/Emacs: yes" >&6; }
17097 else
17098   { echo "$as_me:$LINENO: result:   gnuplot-mode for X/Emacs: no" >&5
17099 echo "${ECHO_T}  gnuplot-mode for X/Emacs: no" >&6; }
17100 fi
17101
17102 if test "$TUTORIAL" = tutorial; then
17103   { echo "$as_me:$LINENO: result:   LaTeX tutorial: yes" >&5
17104 echo "${ECHO_T}  LaTeX tutorial: yes" >&6; }
17105 else
17106   { echo "$as_me:$LINENO: result:   LaTeX tutorial: no" >&5
17107 echo "${ECHO_T}  LaTeX tutorial: no" >&6; }
17108 fi
17109
17110 { echo "$as_me:$LINENO: result:   Help file: yes (always), in $GIHDIR/gnuplot.gih" >&5
17111 echo "${ECHO_T}  Help file: yes (always), in $GIHDIR/gnuplot.gih" >&6; }
17112
17113 { echo "$as_me:$LINENO: result:   PostScript prologue files: yes (always)" >&5
17114 echo "${ECHO_T}  PostScript prologue files: yes (always)" >&6; }
17115
17116