please dont rip this site

App Inet Ftp Ncftpd Doc Reports Gnuplot-patch.txt

Only  in /home/world/src/gnuplot: LICENSE
Only in /home/world/src/gnuplot: Makefile.bin
diff -c -r gnuplot/Makefile.in /home/world/src/gnuplot/Makefile.in
*** gnuplot/Makefile.in	Mon Feb  9 22:03:17 1998
--- /home/world/src/gnuplot/Makefile.in	Mon Feb  9 22:18:46 1998
***************
*** 6,13 ****
  # Adapted from makefile.unx by djm@gnu.ai.mit.edu
  ############################################################
  
! # default target
  
  all: @ERRORFIX@ gnuplot @GNUPLOT_X11@ doc demo/binary1
  
  
--- 6,18 ----
  # Adapted from makefile.unx by djm@gnu.ai.mit.edu
  ############################################################
  
! #MG#  You may just want to do "make gnuplot" if all you want is the binary.
! #MG#  You can then "make install", or just copy the "gnuplot" program
! #MG#  into /usr/local/bin.  For some reason "make install" makes gnuplot
! #MG#  setuid-root.  I don't like that, and it seems to work just fine
! #MG#  without it.
  
+ # default target
  all: @ERRORFIX@ gnuplot @GNUPLOT_X11@ doc demo/binary1
  
  
***************
*** 41,52 ****
  INSTALL_PROGRAM = @INSTALL_PROGRAM@
  INSTALL_DATA = @INSTALL_DATA@
  
! CC     = @CC@
! CPPFLAGS = @CPPFLAGS@
! DEFS  = @DEFS@ @X_INCLUDES@
! INCLUDES = -I. -I$(top_srcdir)
! CFLAGS = @CFLAGS@
! LDFLAGS = @LDFLAGS@
  
  # Additional devices you can add.
  # -DAPOLLO      Apollo Graphics Primitive Resource (window resize after replot)
--- 46,59 ----
  INSTALL_PROGRAM = @INSTALL_PROGRAM@
  INSTALL_DATA = @INSTALL_DATA@
  
! CC		=@CC@
! CPPFLAGS	=@CPPFLAGS@
! DEFS		=@DEFS@ @X_INCLUDES@
! INCLUDES	=-I. -I$(top_srcdir)
! CFLAGS		=@CFLAGS@
! STATIC		=@STATIC@
! STRIPFLAG	=-s
! LDFLAGS		=@LDFLAGS@ $(STATIC) $(STRIPFLAG)
  
  # Additional devices you can add.
  # -DAPOLLO      Apollo Graphics Primitive Resource (window resize after replot)
***************
*** 61,76 ****
  #               This can only be used in combination with -DUNIXPLOT
  TERMFLAGS = @TERMFLAGS@
  
  #  -lplot if you have -DUNIXPLOT in TERMFLAGS
  #  -lsuntool -lsunwindow -lpixrect  if you have -DSUN in TERMFLAGS
  #  -lgl_s if -DIRIS4D in TERMFLAGS
  #  -lccgi if -DCGI in TERMFLAGS
  #  -lvga if -DLINUXVGA in TERMFLAGS
  #  -L/usr/somewhere/gd -lgd  if gif driver used
! TERMLIBS = @TERMLIBS@
  
! LIBS = @LIBS@
! XLIBS = @X_LIBRARIES@
  
  # Where to send email about bugs and comments (locally)
  EMAIL=bug-gnuplot@dartmouth.edu
--- 68,92 ----
  #               This can only be used in combination with -DUNIXPLOT
  TERMFLAGS = @TERMFLAGS@
  
+ #MG#
+ BDYNAMIC=@BDYNAMIC@
+ BSTATIC=@BSTATIC@
+ #MG#
+ 
  #  -lplot if you have -DUNIXPLOT in TERMFLAGS
  #  -lsuntool -lsunwindow -lpixrect  if you have -DSUN in TERMFLAGS
  #  -lgl_s if -DIRIS4D in TERMFLAGS
  #  -lccgi if -DCGI in TERMFLAGS
  #  -lvga if -DLINUXVGA in TERMFLAGS
  #  -L/usr/somewhere/gd -lgd  if gif driver used
! #MG#
! # TERMLIBS=$(BSTATIC) @TERMLIBS@ $(BDYNAMIC)
! # using -static now.... MG
! #MG#
! TERMLIBS=@TERMLIBS@
  
! LIBS=@LIBS@
! XLIBS=@X_LIBRARIES@
  
  # Where to send email about bugs and comments (locally)
  EMAIL=bug-gnuplot@dartmouth.edu
***************
*** 327,332 ****
--- 343,349 ----
  ################################################################
  
  install: all $(LASERGNU)
+ 	strip gnuplot
  	$(srcdir)/mkinstalldirs $(bindir)
  	$(srcdir)/mkinstalldirs $(datadir)
  	$(srcdir)/mkinstalldirs $(mandir)
***************
*** 421,423 ****
--- 438,479 ----
  dist: $(ETC) $(SOURCES) $(PC) $(DEMOS) $(BETA) $(DOCS)
  	$(TAR) cvf /tmp/gnuplot.tar $(ETC) $(SOURCES) $(PC)\
  	     $(DEMOS) $(BETA) $(DOCS)
+ 
+ #MG#
+ TMPDIR=/tmp
+ TARDIR=gnuplot-3.6beta
+ TARFILE=$(TARDIR)-src.tar
+ TGZFILE=$(TARDIR)-src.tgz
+ DTARFILE=$(TARDIR)-@OS@-export.tar
+ DTGZFILE=$(TARDIR)-@OS@-export.tar.gz
+ 
+ dtar: gnuplot
+ 	( cd docs; $(MAKE) $(MFLAGS) gnuplot.gih )
+ 	-@mkdir $(TMPDIR)/TAR
+ 	-@mkdir $(TMPDIR)/TAR/$(TARDIR)
+ 	-@mkdir $(TMPDIR)/TAR/$(TARDIR)/docs
+ 	cp docs/gnuplot.gih docs/gnuplot.1 $(TMPDIR)/TAR/$(TARDIR)/docs
+ 	cp LICENSE gnuplot $(TMPDIR)/TAR/$(TARDIR)
+ 	strip $(TMPDIR)/TAR/$(TARDIR)/gnuplot
+ 	chmod 755 $(TMPDIR)/TAR/$(TARDIR)/gnuplot
+ 	echo "make install" > $(TMPDIR)/TAR/$(TARDIR)/install.sh
+ 	chmod 755 $(TMPDIR)/TAR/$(TARDIR)/install.sh
+ 	cp Makefile.bin $(TMPDIR)/TAR/$(TARDIR)/Makefile
+ 	( cd $(TMPDIR)/TAR ; tar cf $(TMPDIR)/TAR/$(DTARFILE) ./$(TARDIR) )
+ 	-@cp $(TMPDIR)/TAR/$(DTARFILE) .
+ 	-@chmod 644 $(DTARFILE)
+ 	-@rm -rf $(TMPDIR)/TAR
+ 	-@ls -l $(DTARFILE)
+ 
+ dgz: dtar
+ 	gzip -c $(DTARFILE) > $(DTGZFILE)
+ 	-@rm $(DTARFILE)
+ 	-@chmod 644 $(DTGZFILE)
+ 	-@ls -l $(DTGZFILE)
+ 
+ up: dgz
+ 	$$HOME/bin/ncftpput2probe -v -U 022 fn 'F/gnu/gnuplot/binaries' $(DTGZFILE)
+ 	rm $(DTGZFILE)
+ 
+ mgall: up
+ #MG#
Only in gnuplot: NeXT
diff -c -r gnuplot/aclocal.m4 /home/world/src/gnuplot/aclocal.m4
*** gnuplot/aclocal.m4	Mon Feb  9 22:03:17 1998
--- /home/world/src/gnuplot/aclocal.m4	Sun Feb  8 14:42:45 1998
***************
*** 267,273 ****
                                  echo -I${ac_dir}; fi`"
    gp_CHECK_HEADER_QUIET($1,
      break,
!     CPPFLAGS="$ac_save_CPPFLAGS"
      unset ac_cv_header_$ac_safe
      )dnl AC_CHECK_HEADER
  done
--- 267,274 ----
                                  echo -I${ac_dir}; fi`"
    gp_CHECK_HEADER_QUIET($1,
      break,
! dnl    CPPFLAGS="$ac_save_CPPFLAGS"
!     CPPFLAGS="$gp_save_CPPFLAGS"
      unset ac_cv_header_$ac_safe
      )dnl AC_CHECK_HEADER
  done
Only in /home/world/src/gnuplot: binary1
Only in /home/world/src/gnuplot: binary2
Only in /home/world/src/gnuplot: binary3
diff -c -r gnuplot/config.hin /home/world/src/gnuplot/config.hin
*** gnuplot/config.hin	Mon Feb  9 22:03:17 1998
--- /home/world/src/gnuplot/config.hin	Sun Feb  8 12:34:34 1998
***************
*** 1,5 ****
--- 1,8 ----
  /* config.hin.  Generated automatically from configure.in by autoheader.  */
  
+ /* Define if <png.h> exists, and is not too old. */
+ #undef CAN_USE_PNG_H
+ 
  /* Define to empty if the keyword does not work.  */
  #undef const
  
***************
*** 9,14 ****
--- 12,20 ----
  /* Define as __inline if that's what the C compiler calls it.  */
  #undef inline
  
+ /* Define to 1 if ANSI function prototypes are usable.  */
+ #undef PROTOTYPES
+ 
  /* Define as the return type of signal handlers (int or void).  */
  #undef RETSIGTYPE
  
***************
*** 141,148 ****
--- 147,160 ----
  /* Define if you have the tcgetattr function.  */
  #undef HAVE_TCGETATTR
  
+ /* Define if you have the <gd.h> header file.  */
+ #undef HAVE_GD_H
+ 
  /* Define if you have the <libc.h> header file.  */
  #undef HAVE_LIBC_H
+ 
+ /* Define if you have the <png.h> header file.  */
+ #undef HAVE_PNG_H
  
  /* Define if you have the <sgtty.h> header file.  */
  #undef HAVE_SGTTY_H
diff -c -r gnuplot/configure /home/world/src/gnuplot/configure
*** gnuplot/configure	Mon Feb  9 22:03:17 1998
--- /home/world/src/gnuplot/configure	Sun Feb  8 21:35:01 1998
***************
*** 5,10 ****
--- 5,39 ----
  
  
  
+ 
+ 
+ 
+ 
+ 
+ 
+ 
+ 
+ 
+ 
+ 
+ 
+ 
+ 
+ 
+ 
+ 
+ 
+ 
+ 
+ 
+ 
+ 
+ 
+ 
+ 
+ 
+ 
+ 
  # serial 1
  
  
***************
*** 65,71 ****
  
  
  # Guess values for system-dependent variables and create Makefiles.
! # Generated automatically using autoconf version 2.10 
  # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  #
  # This configure script is free software; the Free Software Foundation
--- 94,100 ----
  
  
  # Guess values for system-dependent variables and create Makefiles.
! # Generated automatically using autoconf version 2.12 
  # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  #
  # This configure script is free software; the Free Software Foundation
***************
*** 136,141 ****
--- 165,172 ----
  # Initialize some other variables.
  subdirs=
  MFLAGS= MAKEFLAGS=
+ # Maximum number of lines to put in a shell here document.
+ ac_max_here_lines=12
  
  ac_prev=
  for ac_option
***************
*** 417,423 ****
      verbose=yes ;;
  
    -version | --version | --versio | --versi | --vers)
!     echo "configure generated by autoconf version 2.10"
      exit 0 ;;
  
    -with-* | --with-*)
--- 448,454 ----
      verbose=yes ;;
  
    -version | --version | --versio | --versi | --vers)
!     echo "configure generated by autoconf version 2.12"
      exit 0 ;;
  
    -with-* | --with-*)
***************
*** 519,529 ****
  done
  
  # NLS nuisances.
! # Only set LANG and LC_ALL to C if already set.
! # These must not be set unconditionally because not all systems understand
! # e.g. LANG=C (notably SCO).
! if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  
  # confdefs.h avoids OS command line length limits that DEFS can exceed.
  rm -rf conftest* confdefs.h
--- 550,563 ----
  done
  
  # NLS nuisances.
! # Only set these to C if already set.  These must not be set unconditionally
! # because not all systems understand e.g. LANG=C (notably SCO).
! # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
! # Non-C LC_CTYPE values break the ctype check.
  if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
+ if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
+ if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
+ if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
  
  # confdefs.h avoids OS command line length limits that DEFS can exceed.
  rm -rf conftest* confdefs.h
***************
*** 585,590 ****
--- 619,625 ----
  ac_cpp='$CPP $CPPFLAGS'
  ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
+ cross_compiling=$ac_cv_prog_cc_cross
  
  if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
    # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
***************
*** 604,609 ****
--- 639,645 ----
  # Extract the first word of "gcc", so it can be a program name with args.
  set dummy gcc; ac_word=$2
  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+ echo "configure:643: checking for $ac_word" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 632,637 ****
--- 668,674 ----
    # Extract the first word of "cc", so it can be a program name with args.
  set dummy cc; ac_word=$2
  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+ echo "configure:672: checking for $ac_word" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 678,684 ****
--- 715,761 ----
    test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  fi
  
+ echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
+ echo "configure:720: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
+ 
+ ac_ext=c
+ # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
+ ac_cpp='$CPP $CPPFLAGS'
+ ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
+ ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
+ cross_compiling=$ac_cv_prog_cc_cross
+ 
+ cat > conftest.$ac_ext <<EOF
+ #line 730 "configure"
+ #include "confdefs.h"
+ main(){return(0);}
+ EOF
+ if { (eval echo configure:734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+   ac_cv_prog_cc_works=yes
+   # If we can't run a trivial program, we are probably using a cross compiler.
+   if (./conftest; exit) 2>/dev/null; then
+     ac_cv_prog_cc_cross=no
+   else
+     ac_cv_prog_cc_cross=yes
+   fi
+ else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   ac_cv_prog_cc_works=no
+ fi
+ rm -fr conftest*
+ 
+ echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
+ if test $ac_cv_prog_cc_works = no; then
+   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
+ fi
+ echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
+ echo "configure:754: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
+ echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
+ cross_compiling=$ac_cv_prog_cc_cross
+ 
  echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
+ echo "configure:759: checking whether we are using GNU C" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 687,693 ****
    yes;
  #endif
  EOF
! if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    ac_cv_prog_gcc=yes
  else
    ac_cv_prog_gcc=no
--- 764,770 ----
    yes;
  #endif
  EOF
! if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    ac_cv_prog_gcc=yes
  else
    ac_cv_prog_gcc=no
***************
*** 695,723 ****
  fi
  
  echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  if test $ac_cv_prog_gcc = yes; then
    GCC=yes
!   if test "${CFLAGS+set}" != set; then
!     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
! if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    echo 'void f(){}' > conftest.c
  if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
!   ac_cv_prog_gcc_g=yes
  else
!   ac_cv_prog_gcc_g=no
  fi
  rm -f conftest*
  
  fi
  
! echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
!     if test $ac_cv_prog_gcc_g = yes; then
!       CFLAGS="-g -O"
!     else
!       CFLAGS="-O"
!     fi
    fi
  else
    GCC=
--- 772,805 ----
  fi
  
  echo "$ac_t""$ac_cv_prog_gcc" 1>&6
+ 
  if test $ac_cv_prog_gcc = yes; then
    GCC=yes
!   ac_test_CFLAGS="${CFLAGS+set}"
!   ac_save_CFLAGS="$CFLAGS"
!   CFLAGS=
!   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
! echo "configure:783: checking whether ${CC-cc} accepts -g" >&5
! if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    echo 'void f(){}' > conftest.c
  if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
!   ac_cv_prog_cc_g=yes
  else
!   ac_cv_prog_cc_g=no
  fi
  rm -f conftest*
  
  fi
  
! echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
!   if test "$ac_test_CFLAGS" = set; then
!     CFLAGS="$ac_save_CFLAGS"
!   elif test $ac_cv_prog_cc_g = yes; then
!     CFLAGS="-g -O2"
!   else
!     CFLAGS="-O2"
    fi
  else
    GCC=
***************
*** 725,730 ****
--- 807,813 ----
  fi
  
  echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
+ echo "configure:811: checking how to run the C preprocessor" >&5
  # On Suns, sometimes $CPP names a directory.
  if test -n "$CPP" && test -d "$CPP"; then
    CPP=
***************
*** 739,771 ****
    # On the NeXT, cc -E runs the code through the compiler's parser,
    # not just through cpp.
    cat > conftest.$ac_ext <<EOF
! #line 743 "configure"
  #include "confdefs.h"
  #include <assert.h>
  Syntax Error
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    :
  else
    echo "$ac_err" >&5
    rm -rf conftest*
    CPP="${CC-cc} -E -traditional-cpp"
    cat > conftest.$ac_ext <<EOF
! #line 758 "configure"
  #include "confdefs.h"
  #include <assert.h>
  Syntax Error
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    :
  else
    echo "$ac_err" >&5
    rm -rf conftest*
    CPP=/lib/cpp
  fi
--- 822,858 ----
    # On the NeXT, cc -E runs the code through the compiler's parser,
    # not just through cpp.
    cat > conftest.$ac_ext <<EOF
! #line 826 "configure"
  #include "confdefs.h"
  #include <assert.h>
  Syntax Error
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    :
  else
    echo "$ac_err" >&5
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    CPP="${CC-cc} -E -traditional-cpp"
    cat > conftest.$ac_ext <<EOF
! #line 843 "configure"
  #include "confdefs.h"
  #include <assert.h>
  Syntax Error
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    :
  else
    echo "$ac_err" >&5
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    CPP=/lib/cpp
  fi
***************
*** 810,820 ****
  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  # ./install, which can be erroneously created by make from ./install.sh.
  echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  if test -z "$INSTALL"; then
  if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
!     IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    for ac_dir in $PATH; do
      # Account for people who put trailing slashes in PATH elements.
      case "$ac_dir/" in
--- 897,908 ----
  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  # ./install, which can be erroneously created by make from ./install.sh.
  echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
+ echo "configure:901: checking for a BSD compatible install" >&5
  if test -z "$INSTALL"; then
  if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
!     IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS="${IFS}:"
    for ac_dir in $PATH; do
      # Account for people who put trailing slashes in PATH elements.
      case "$ac_dir/" in
***************
*** 837,843 ****
        ;;
      esac
    done
!   IFS="$ac_save_ifs"
  
  fi
    if test "${ac_cv_path_install+set}" = set; then
--- 925,931 ----
        ;;
      esac
    done
!   IFS="$ac_save_IFS"
  
  fi
    if test "${ac_cv_path_install+set}" = set; then
***************
*** 859,864 ****
--- 947,954 ----
  test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  
  
+ CPPFLAGS="$CPPFLAGS -I../gd"
+ LDFLAGS="$LDFLAGS -L../gd"
  
  
  # Check whether --with-readline or --without-readline was given.
***************
*** 938,943 ****
--- 1028,1034 ----
  
  
  echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
+ echo "configure:1032: checking for ${CC-cc} option to accept ANSI C" >&5
  if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 953,959 ****
  do
    CC="$ac_save_CC $ac_arg"
    cat > conftest.$ac_ext <<EOF
! #line 957 "configure"
  #include "confdefs.h"
  #if !defined(__STDC__) || __STDC__ != 1
  choke me
--- 1044,1050 ----
  do
    CC="$ac_save_CC $ac_arg"
    cat > conftest.$ac_ext <<EOF
! #line 1048 "configure"
  #include "confdefs.h"
  #if !defined(__STDC__) || __STDC__ != 1
  choke me
***************
*** 964,983 ****
  # include <sys/stat.h>
  #endif
  
! int main() { return 0; }
! int t() {
  
  int test (int i, double x);
  struct s1 {int (*f) (int a);};
  struct s2 {int (*f) (double a);};
  ; return 0; }
  EOF
! if { (eval echo configure:976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    am_cv_prog_cc_stdc="$ac_arg"; break
  fi
  rm -f conftest*
- 
  done
  CC="$ac_save_CC"
  
--- 1055,1075 ----
  # include <sys/stat.h>
  #endif
  
! int main() {
  
  int test (int i, double x);
  struct s1 {int (*f) (int a);};
  struct s2 {int (*f) (double a);};
  ; return 0; }
  EOF
! if { (eval echo configure:1066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    am_cv_prog_cc_stdc="$ac_arg"; break
+ else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
  fi
  rm -f conftest*
  done
  CC="$ac_save_CC"
  
***************
*** 989,1023 ****
    *) CC="$CC $am_cv_prog_cc_stdc" ;;
  esac
  
- # If we cannot run a trivial program, we must be cross compiling.
- echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
- if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
-   echo $ac_n "(cached) $ac_c" 1>&6
- else
-   if test "$cross_compiling" = yes; then
-   ac_cv_c_cross=yes
- else
- cat > conftest.$ac_ext <<EOF
- #line 1002 "configure"
- #include "confdefs.h"
- main(){return(0);}
- EOF
- { (eval echo configure:1006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
- if test -s conftest && (./conftest; exit) 2>/dev/null; then
-   ac_cv_c_cross=no
- else
-   ac_cv_c_cross=yes
- fi
- fi
- rm -fr conftest*
- fi
- 
- echo "$ac_t""$ac_cv_c_cross" 1>&6
- cross_compiling=$ac_cv_c_cross
- 
  
  
  echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
  if test "$am_cv_prog_cc_stdc" != no; then
    echo "$ac_t""yes" 1>&6
    cat >> confdefs.h <<\EOF
--- 1081,1090 ----
    *) CC="$CC $am_cv_prog_cc_stdc" ;;
  esac
  
  
  
  echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
+ echo "configure:1088: checking for function prototypes" >&5
  if test "$am_cv_prog_cc_stdc" != no; then
    echo "$ac_t""yes" 1>&6
    cat >> confdefs.h <<\EOF
***************
*** 1030,1040 ****
    U=_ ANSI2KNR=./ansi2knr
    # Ensure some checks needed by ansi2knr itself.
    echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1038 "configure"
  #include "confdefs.h"
  #include <stdlib.h>
  #include <stdarg.h>
--- 1097,1108 ----
    U=_ ANSI2KNR=./ansi2knr
    # Ensure some checks needed by ansi2knr itself.
    echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
+ echo "configure:1101: checking for ANSI C header files" >&5
  if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1106 "configure"
  #include "confdefs.h"
  #include <stdlib.h>
  #include <stdarg.h>
***************
*** 1042,1054 ****
  #include <float.h>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
    ac_cv_header_stdc=yes
  else
    echo "$ac_err" >&5
    rm -rf conftest*
    ac_cv_header_stdc=no
  fi
--- 1110,1124 ----
  #include <float.h>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1114: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
    ac_cv_header_stdc=yes
  else
    echo "$ac_err" >&5
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    ac_cv_header_stdc=no
  fi
***************
*** 1057,1063 ****
  if test $ac_cv_header_stdc = yes; then
    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat > conftest.$ac_ext <<EOF
! #line 1061 "configure"
  #include "confdefs.h"
  #include <string.h>
  EOF
--- 1127,1133 ----
  if test $ac_cv_header_stdc = yes; then
    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat > conftest.$ac_ext <<EOF
! #line 1131 "configure"
  #include "confdefs.h"
  #include <string.h>
  EOF
***************
*** 1075,1081 ****
  if test $ac_cv_header_stdc = yes; then
    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat > conftest.$ac_ext <<EOF
! #line 1079 "configure"
  #include "confdefs.h"
  #include <stdlib.h>
  EOF
--- 1145,1151 ----
  if test $ac_cv_header_stdc = yes; then
    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat > conftest.$ac_ext <<EOF
! #line 1149 "configure"
  #include "confdefs.h"
  #include <stdlib.h>
  EOF
***************
*** 1095,1102 ****
  if test "$cross_compiling" = yes; then
    :
  else
! cat > conftest.$ac_ext <<EOF
! #line 1100 "configure"
  #include "confdefs.h"
  #include <ctype.h>
  #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
--- 1165,1172 ----
  if test "$cross_compiling" = yes; then
    :
  else
!   cat > conftest.$ac_ext <<EOF
! #line 1170 "configure"
  #include "confdefs.h"
  #include <ctype.h>
  #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
***************
*** 1107,1121 ****
  exit (0); }
  
  EOF
! { (eval echo configure:1111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
! if test -s conftest && (./conftest; exit) 2>/dev/null; then
    :
  else
    ac_cv_header_stdc=no
  fi
- fi
  rm -fr conftest*
  fi
  fi
  
  echo "$ac_t""$ac_cv_header_stdc" 1>&6
--- 1177,1195 ----
  exit (0); }
  
  EOF
! if { (eval echo configure:1181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
! then
    :
  else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   rm -fr conftest*
    ac_cv_header_stdc=no
  fi
  rm -fr conftest*
  fi
+ 
+ fi
  fi
  
  echo "$ac_t""$ac_cv_header_stdc" 1>&6
***************
*** 1128,1151 ****
  
    for ac_hdr in string.h
  do
! ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1138 "configure"
  #include "confdefs.h"
  #include <$ac_hdr>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1143: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=yes"
  else
    echo "$ac_err" >&5
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=no"
  fi
--- 1202,1228 ----
  
    for ac_hdr in string.h
  do
! ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
+ echo "configure:1208: checking for $ac_hdr" >&5
  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1213 "configure"
  #include "confdefs.h"
  #include <$ac_hdr>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1218: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=yes"
  else
    echo "$ac_err" >&5
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=no"
  fi
***************
*** 1153,1159 ****
  fi
  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    echo "$ac_t""yes" 1>&6
!     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
    cat >> confdefs.h <<EOF
  #define $ac_tr_hdr 1
  EOF
--- 1230,1236 ----
  fi
  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    echo "$ac_t""yes" 1>&6
!     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
    cat >> confdefs.h <<EOF
  #define $ac_tr_hdr 1
  EOF
***************
*** 1166,1180 ****
  fi
  
  echo $ac_n "checking for working const""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1174 "configure"
  #include "confdefs.h"
  
! int main() { return 0; }
! int t() {
  
  /* Ultrix mips cc rejects this.  */
  typedef int charset[2]; const charset x;
--- 1243,1257 ----
  fi
  
  echo $ac_n "checking for working const""... $ac_c" 1>&6
+ echo "configure:1247: checking for working const" >&5
  if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1252 "configure"
  #include "confdefs.h"
  
! int main() {
  
  /* Ultrix mips cc rejects this.  */
  typedef int charset[2]; const charset x;
***************
*** 1220,1234 ****
  
  ; return 0; }
  EOF
! if { (eval echo configure:1224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ac_cv_c_const=yes
  else
    rm -rf conftest*
    ac_cv_c_const=no
  fi
  rm -f conftest*
- 
  fi
  
  echo "$ac_t""$ac_cv_c_const" 1>&6
--- 1297,1312 ----
  
  ; return 0; }
  EOF
! if { (eval echo configure:1301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ac_cv_c_const=yes
  else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    ac_cv_c_const=no
  fi
  rm -f conftest*
  fi
  
  echo "$ac_t""$ac_cv_c_const" 1>&6
***************
*** 1240,1265 ****
  fi
  
  echo $ac_n "checking for inline""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    ac_cv_c_inline=no
  for ac_kw in inline __inline__ __inline; do
    cat > conftest.$ac_ext <<EOF
! #line 1250 "configure"
  #include "confdefs.h"
  
! int main() { return 0; }
! int t() {
  } $ac_kw foo() {
  ; return 0; }
  EOF
! if { (eval echo configure:1258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ac_cv_c_inline=$ac_kw; break
  fi
  rm -f conftest*
- 
  done
  
  fi
--- 1318,1345 ----
  fi
  
  echo $ac_n "checking for inline""... $ac_c" 1>&6
+ echo "configure:1322: checking for inline" >&5
  if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    ac_cv_c_inline=no
  for ac_kw in inline __inline__ __inline; do
    cat > conftest.$ac_ext <<EOF
! #line 1329 "configure"
  #include "confdefs.h"
  
! int main() {
  } $ac_kw foo() {
  ; return 0; }
  EOF
! if { (eval echo configure:1336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ac_cv_c_inline=$ac_kw; break
+ else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
  fi
  rm -f conftest*
  done
  
  fi
***************
*** 1286,1306 ****
  fi
  
  echo $ac_n "checking if compiler handles warn and error directives correctly""... $ac_c" 1>&6
  cat > conftest.$ac_ext <<EOF
! #line 1291 "configure"
  #include "confdefs.h"
  
! int main() { return 0; }
! int t() {
  #if 0
  #error "error"
  #endif
  ; return 0; }
  EOF
! if { (eval echo configure:1301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ERRORFIX= echo "$ac_t""yes" 1>&6
  else
    rm -rf conftest*
    ERRORFIX=errorfix echo "$ac_t""no" 1>&6
  fi
--- 1366,1388 ----
  fi
  
  echo $ac_n "checking if compiler handles warn and error directives correctly""... $ac_c" 1>&6
+ echo "configure:1370: checking if compiler handles warn and error directives correctly" >&5
  cat > conftest.$ac_ext <<EOF
! #line 1372 "configure"
  #include "confdefs.h"
  
! int main() {
  #if 0
  #error "error"
  #endif
  ; return 0; }
  EOF
! if { (eval echo configure:1381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ERRORFIX= echo "$ac_t""yes" 1>&6
  else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    ERRORFIX=errorfix echo "$ac_t""no" 1>&6
  fi
***************
*** 1311,1322 ****
  
  
  
- 
  # If we find X, set shell vars x_includes and x_libraries to the
  # paths, otherwise set no_x=yes.
  # Uses ac_ vars as temps to allow command line to override cache and checks.
  # --without-x overrides everything else, but does not touch the cache.
  echo $ac_n "checking for X""... $ac_c" 1>&6
  
  # Check whether --with-x or --without-x was given.
  if test "${with_x+set}" = set; then
--- 1393,1404 ----
  
  
  
  # If we find X, set shell vars x_includes and x_libraries to the
  # paths, otherwise set no_x=yes.
  # Uses ac_ vars as temps to allow command line to override cache and checks.
  # --without-x overrides everything else, but does not touch the cache.
  echo $ac_n "checking for X""... $ac_c" 1>&6
+ echo "configure:1402: checking for X" >&5
  
  # Check whether --with-x or --without-x was given.
  if test "${with_x+set}" = set; then
***************
*** 1356,1362 ****
          ac_im_usrlibdir=$ac_im_libdir; break
        fi
      done
!     # Screen out bogus values from the imake configuration.
      case "$ac_im_incroot" in
  	/usr/include) ;;
  	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
--- 1438,1446 ----
          ac_im_usrlibdir=$ac_im_libdir; break
        fi
      done
!     # Screen out bogus values from the imake configuration.  They are
!     # bogus both because they are the default anyway, and because
!     # using them would break gcc on systems where it needs fixed includes.
      case "$ac_im_incroot" in
  	/usr/include) ;;
  	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
***************
*** 1376,1387 ****
  
    # First, try using that file with no special directory specified.
  cat > conftest.$ac_ext <<EOF
! #line 1380 "configure"
  #include "confdefs.h"
  #include <$x_direct_test_include>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1385: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
--- 1460,1471 ----
  
    # First, try using that file with no special directory specified.
  cat > conftest.$ac_ext <<EOF
! #line 1464 "configure"
  #include "confdefs.h"
  #include <$x_direct_test_include>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
***************
*** 1389,1418 ****
  ac_x_includes=
  else
    echo "$ac_err" >&5
    rm -rf conftest*
    # Look for the header file in a standard set of common directories.
    for ac_dir in               \
      /usr/X11R6/include        \
      /usr/X11R5/include        \
      /usr/X11R4/include        \
                                \
      /usr/include/X11R6        \
      /usr/include/X11R5        \
      /usr/include/X11R4        \
                                \
      /usr/local/X11R6/include  \
      /usr/local/X11R5/include  \
      /usr/local/X11R4/include  \
                                \
      /usr/local/include/X11R6  \
      /usr/local/include/X11R5  \
      /usr/local/include/X11R4  \
                                \
-     /usr/X11/include          \
-     /usr/include/X11          \
-     /usr/local/X11/include    \
-     /usr/local/include/X11    \
-                               \
      /usr/X386/include         \
      /usr/x386/include         \
      /usr/XFree86/include/X11  \
--- 1473,1504 ----
  ac_x_includes=
  else
    echo "$ac_err" >&5
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    # Look for the header file in a standard set of common directories.
+ # Check X11 before X11Rn because it is often a symlink to the current release.
    for ac_dir in               \
+     /usr/X11/include          \
      /usr/X11R6/include        \
      /usr/X11R5/include        \
      /usr/X11R4/include        \
                                \
+     /usr/include/X11          \
      /usr/include/X11R6        \
      /usr/include/X11R5        \
      /usr/include/X11R4        \
                                \
+     /usr/local/X11/include    \
      /usr/local/X11R6/include  \
      /usr/local/X11R5/include  \
      /usr/local/X11R4/include  \
                                \
+     /usr/local/include/X11    \
      /usr/local/include/X11R6  \
      /usr/local/include/X11R5  \
      /usr/local/include/X11R4  \
                                \
      /usr/X386/include         \
      /usr/x386/include         \
      /usr/XFree86/include/X11  \
***************
*** 1448,1492 ****
    ac_save_LIBS="$LIBS"
    LIBS="-l$x_direct_test_library $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 1452 "configure"
  #include "confdefs.h"
  
! int main() { return 0; }
! int t() {
  ${x_direct_test_function}()
  ; return 0; }
  EOF
! if { (eval echo configure:1460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    rm -rf conftest*
    LIBS="$ac_save_LIBS"
  # We can link X programs with no special library path.
  ac_x_libraries=
  else
    rm -rf conftest*
    LIBS="$ac_save_LIBS"
  # First see if replacing the include by lib works.
  for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
      /usr/X11R6/lib        \
      /usr/X11R5/lib        \
      /usr/X11R4/lib        \
                            \
      /usr/lib/X11R6        \
      /usr/lib/X11R5        \
      /usr/lib/X11R4        \
                            \
      /usr/local/X11R6/lib  \
      /usr/local/X11R5/lib  \
      /usr/local/X11R4/lib  \
                            \
      /usr/local/lib/X11R6  \
      /usr/local/lib/X11R5  \
      /usr/local/lib/X11R4  \
                            \
-     /usr/X11/lib          \
-     /usr/lib/X11          \
-     /usr/local/X11/lib    \
-     /usr/local/lib/X11    \
-                           \
      /usr/X386/lib         \
      /usr/x386/lib         \
      /usr/XFree86/lib/X11  \
--- 1534,1579 ----
    ac_save_LIBS="$LIBS"
    LIBS="-l$x_direct_test_library $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 1538 "configure"
  #include "confdefs.h"
  
! int main() {
  ${x_direct_test_function}()
  ; return 0; }
  EOF
! if { (eval echo configure:1545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    LIBS="$ac_save_LIBS"
  # We can link X programs with no special library path.
  ac_x_libraries=
  else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    LIBS="$ac_save_LIBS"
  # First see if replacing the include by lib works.
+ # Check X11 before X11Rn because it is often a symlink to the current release.
  for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
+     /usr/X11/lib          \
      /usr/X11R6/lib        \
      /usr/X11R5/lib        \
      /usr/X11R4/lib        \
                            \
+     /usr/lib/X11          \
      /usr/lib/X11R6        \
      /usr/lib/X11R5        \
      /usr/lib/X11R4        \
                            \
+     /usr/local/X11/lib    \
      /usr/local/X11R6/lib  \
      /usr/local/X11R5/lib  \
      /usr/local/X11R4/lib  \
                            \
+     /usr/local/lib/X11    \
      /usr/local/lib/X11R6  \
      /usr/local/lib/X11R5  \
      /usr/local/lib/X11R4  \
                            \
      /usr/X386/lib         \
      /usr/x386/lib         \
      /usr/XFree86/lib/X11  \
***************
*** 1497,1502 ****
--- 1584,1590 ----
      /usr/athena/lib       \
      /usr/local/x11r5/lib  \
      /usr/lpp/Xamples/lib  \
+     /lib/usr/lib/X11	  \
                            \
      /usr/openwin/lib      \
      /usr/openwin/share/lib \
***************
*** 1511,1517 ****
  done
  fi
  rm -f conftest*
- 
  fi # $ac_x_libraries = NO
  
  if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
--- 1599,1604 ----
***************
*** 1560,1567 ****
  
  
  echo $ac_n "checking for MS-DOS/djgpp/libGRX""... $ac_c" 1>&6
  cat > conftest.$ac_ext <<EOF
! #line 1565 "configure"
  #include "confdefs.h"
  #ifdef __DJGPP__ && __DJGPP__ == 2
    yes
--- 1647,1655 ----
  
  
  echo $ac_n "checking for MS-DOS/djgpp/libGRX""... $ac_c" 1>&6
+ echo "configure:1651: checking for MS-DOS/djgpp/libGRX" >&5
  cat > conftest.$ac_ext <<EOF
! #line 1653 "configure"
  #include "confdefs.h"
  #ifdef __DJGPP__ && __DJGPP__ == 2
    yes
***************
*** 1582,1611 ****
  
     echo "$ac_t""yes" 1>&6
     maybe_linuxdriver=""
!    echo $ac_n "checking for -lgrx20""... $ac_c" 1>&6
! ac_lib_var=`echo grx20'_'GrLine | tr './+\055' '__p_'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    ac_save_LIBS="$LIBS"
  LIBS="-lgrx20  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 1594 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
      builtin and then its argument prototype would still apply.  */
  char GrLine();
  
! int main() { return 0; }
! int t() {
  GrLine()
  ; return 0; }
  EOF
! if { (eval echo configure:1606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=yes"
  else
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=no"
  fi
--- 1670,1701 ----
  
     echo "$ac_t""yes" 1>&6
     maybe_linuxdriver=""
!    echo $ac_n "checking for GrLine in -lgrx20""... $ac_c" 1>&6
! echo "configure:1675: checking for GrLine in -lgrx20" >&5
! ac_lib_var=`echo grx20'_'GrLine | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    ac_save_LIBS="$LIBS"
  LIBS="-lgrx20  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 1683 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
      builtin and then its argument prototype would still apply.  */
  char GrLine();
  
! int main() {
  GrLine()
  ; return 0; }
  EOF
! if { (eval echo configure:1694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=yes"
  else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=no"
  fi
***************
*** 1617,1646 ****
    echo "$ac_t""yes" 1>&6
    LDFLAGS="$LDFLAGS -lgrx20"
        TERMFLAGS="$TERMFLAGS -DDJSVGA -fno-inline-functions"
!       echo $ac_n "checking for -lgrx20""... $ac_c" 1>&6
! ac_lib_var=`echo grx20'_'GrCustomLine | tr './+\055' '__p_'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    ac_save_LIBS="$LIBS"
  LIBS="-lgrx20  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 1629 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
      builtin and then its argument prototype would still apply.  */
  char GrCustomLine();
  
! int main() { return 0; }
! int t() {
  GrCustomLine()
  ; return 0; }
  EOF
! if { (eval echo configure:1641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=yes"
  else
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=no"
  fi
--- 1707,1738 ----
    echo "$ac_t""yes" 1>&6
    LDFLAGS="$LDFLAGS -lgrx20"
        TERMFLAGS="$TERMFLAGS -DDJSVGA -fno-inline-functions"
!       echo $ac_n "checking for GrCustomLine in -lgrx20""... $ac_c" 1>&6
! echo "configure:1712: checking for GrCustomLine in -lgrx20" >&5
! ac_lib_var=`echo grx20'_'GrCustomLine | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    ac_save_LIBS="$LIBS"
  LIBS="-lgrx20  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 1720 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
      builtin and then its argument prototype would still apply.  */
  char GrCustomLine();
  
! int main() {
  GrCustomLine()
  ; return 0; }
  EOF
! if { (eval echo configure:1731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=yes"
  else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=no"
  fi
***************
*** 1668,1677 ****
  rm -f conftest*
  
  echo $ac_n "checking for NeXT""... $ac_c" 1>&6
  NEXTOBJS=
  
  cat > conftest.$ac_ext <<EOF
! #line 1675 "configure"
  #include "confdefs.h"
  #ifdef __NeXT__
    yes
--- 1760,1770 ----
  rm -f conftest*
  
  echo $ac_n "checking for NeXT""... $ac_c" 1>&6
+ echo "configure:1764: checking for NeXT" >&5
  NEXTOBJS=
  
  cat > conftest.$ac_ext <<EOF
! #line 1768 "configure"
  #include "confdefs.h"
  #ifdef __NeXT__
    yes
***************
*** 1697,1707 ****
  
  
  echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1705 "configure"
  #include "confdefs.h"
  #include <stdlib.h>
  #include <stdarg.h>
--- 1790,1801 ----
  
  
  echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
+ echo "configure:1794: checking for ANSI C header files" >&5
  if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1799 "configure"
  #include "confdefs.h"
  #include <stdlib.h>
  #include <stdarg.h>
***************
*** 1709,1721 ****
  #include <float.h>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
    ac_cv_header_stdc=yes
  else
    echo "$ac_err" >&5
    rm -rf conftest*
    ac_cv_header_stdc=no
  fi
--- 1803,1817 ----
  #include <float.h>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
    ac_cv_header_stdc=yes
  else
    echo "$ac_err" >&5
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    ac_cv_header_stdc=no
  fi
***************
*** 1724,1730 ****
  if test $ac_cv_header_stdc = yes; then
    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat > conftest.$ac_ext <<EOF
! #line 1728 "configure"
  #include "confdefs.h"
  #include <string.h>
  EOF
--- 1820,1826 ----
  if test $ac_cv_header_stdc = yes; then
    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat > conftest.$ac_ext <<EOF
! #line 1824 "configure"
  #include "confdefs.h"
  #include <string.h>
  EOF
***************
*** 1742,1748 ****
  if test $ac_cv_header_stdc = yes; then
    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat > conftest.$ac_ext <<EOF
! #line 1746 "configure"
  #include "confdefs.h"
  #include <stdlib.h>
  EOF
--- 1838,1844 ----
  if test $ac_cv_header_stdc = yes; then
    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat > conftest.$ac_ext <<EOF
! #line 1842 "configure"
  #include "confdefs.h"
  #include <stdlib.h>
  EOF
***************
*** 1762,1769 ****
  if test "$cross_compiling" = yes; then
    :
  else
! cat > conftest.$ac_ext <<EOF
! #line 1767 "configure"
  #include "confdefs.h"
  #include <ctype.h>
  #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
--- 1858,1865 ----
  if test "$cross_compiling" = yes; then
    :
  else
!   cat > conftest.$ac_ext <<EOF
! #line 1863 "configure"
  #include "confdefs.h"
  #include <ctype.h>
  #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
***************
*** 1774,1788 ****
  exit (0); }
  
  EOF
! { (eval echo configure:1778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
! if test -s conftest && (./conftest; exit) 2>/dev/null; then
    :
  else
    ac_cv_header_stdc=no
  fi
- fi
  rm -fr conftest*
  fi
  fi
  
  echo "$ac_t""$ac_cv_header_stdc" 1>&6
--- 1870,1888 ----
  exit (0); }
  
  EOF
! if { (eval echo configure:1874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
! then
    :
  else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   rm -fr conftest*
    ac_cv_header_stdc=no
  fi
  rm -fr conftest*
  fi
+ 
+ fi
  fi
  
  echo "$ac_t""$ac_cv_header_stdc" 1>&6
***************
*** 1795,1818 ****
  
  for ac_hdr in sys/bsdtypes.h
  do
! ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1805 "configure"
  #include "confdefs.h"
  #include <$ac_hdr>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1810: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=yes"
  else
    echo "$ac_err" >&5
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=no"
  fi
--- 1895,1921 ----
  
  for ac_hdr in sys/bsdtypes.h
  do
! ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
+ echo "configure:1901: checking for $ac_hdr" >&5
  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1906 "configure"
  #include "confdefs.h"
  #include <$ac_hdr>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=yes"
  else
    echo "$ac_err" >&5
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=no"
  fi
***************
*** 1820,1826 ****
  fi
  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    echo "$ac_t""yes" 1>&6
!     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
    cat >> confdefs.h <<EOF
  #define $ac_tr_hdr 1
  EOF
--- 1923,1929 ----
  fi
  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    echo "$ac_t""yes" 1>&6
!     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
    cat >> confdefs.h <<EOF
  #define $ac_tr_hdr 1
  EOF
***************
*** 1830,1853 ****
  fi
  done
  
! ac_safe=`echo "sys/select.h" | tr './\055' '___'`
  echo $ac_n "checking for sys/select.h""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1840 "configure"
  #include "confdefs.h"
  #include <sys/select.h>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=yes"
  else
    echo "$ac_err" >&5
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=no"
  fi
--- 1933,1959 ----
  fi
  done
  
! ac_safe=`echo "sys/select.h" | sed 'y%./+-%__p_%'`
  echo $ac_n "checking for sys/select.h""... $ac_c" 1>&6
+ echo "configure:1939: checking for sys/select.h" >&5
  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1944 "configure"
  #include "confdefs.h"
  #include <sys/select.h>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=yes"
  else
    echo "$ac_err" >&5
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=no"
  fi
***************
*** 1864,1887 ****
  
  fi
  
! ac_safe=`echo "string.h" | tr './\055' '___'`
  echo $ac_n "checking for string.h""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1874 "configure"
  #include "confdefs.h"
  #include <string.h>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=yes"
  else
    echo "$ac_err" >&5
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=no"
  fi
--- 1970,1996 ----
  
  fi
  
! ac_safe=`echo "string.h" | sed 'y%./+-%__p_%'`
  echo $ac_n "checking for string.h""... $ac_c" 1>&6
+ echo "configure:1976: checking for string.h" >&5
  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1981 "configure"
  #include "confdefs.h"
  #include <string.h>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=yes"
  else
    echo "$ac_err" >&5
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=no"
  fi
***************
*** 1898,1921 ****
  
  fi
  
! ac_safe=`echo "stdlib.h" | tr './\055' '___'`
  echo $ac_n "checking for stdlib.h""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1908 "configure"
  #include "confdefs.h"
  #include <stdlib.h>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1913: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=yes"
  else
    echo "$ac_err" >&5
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=no"
  fi
--- 2007,2033 ----
  
  fi
  
! ac_safe=`echo "stdlib.h" | sed 'y%./+-%__p_%'`
  echo $ac_n "checking for stdlib.h""... $ac_c" 1>&6
+ echo "configure:2013: checking for stdlib.h" >&5
  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2018 "configure"
  #include "confdefs.h"
  #include <stdlib.h>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:2023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=yes"
  else
    echo "$ac_err" >&5
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=no"
  fi
***************
*** 1932,1955 ****
  
  fi
  
! ac_safe=`echo "sys/types.h" | tr './\055' '___'`
  echo $ac_n "checking for sys/types.h""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1942 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=yes"
  else
    echo "$ac_err" >&5
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=no"
  fi
--- 2044,2070 ----
  
  fi
  
! ac_safe=`echo "sys/types.h" | sed 'y%./+-%__p_%'`
  echo $ac_n "checking for sys/types.h""... $ac_c" 1>&6
+ echo "configure:2050: checking for sys/types.h" >&5
  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2055 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:2060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=yes"
  else
    echo "$ac_err" >&5
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=no"
  fi
***************
*** 1966,1989 ****
  
  fi
  
! ac_safe=`echo "float.h" | tr './\055' '___'`
  echo $ac_n "checking for float.h""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1976 "configure"
  #include "confdefs.h"
  #include <float.h>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=yes"
  else
    echo "$ac_err" >&5
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=no"
  fi
--- 2081,2107 ----
  
  fi
  
! ac_safe=`echo "float.h" | sed 'y%./+-%__p_%'`
  echo $ac_n "checking for float.h""... $ac_c" 1>&6
+ echo "configure:2087: checking for float.h" >&5
  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2092 "configure"
  #include "confdefs.h"
  #include <float.h>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:2097: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=yes"
  else
    echo "$ac_err" >&5
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=no"
  fi
***************
*** 2002,2025 ****
  
  for ac_hdr in libc.h
  do
! ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2012 "configure"
  #include "confdefs.h"
  #include <$ac_hdr>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:2017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=yes"
  else
    echo "$ac_err" >&5
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=no"
  fi
--- 2120,2186 ----
  
  for ac_hdr in libc.h
  do
! ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
! echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
! echo "configure:2126: checking for $ac_hdr" >&5
! if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
!   echo $ac_n "(cached) $ac_c" 1>&6
! else
!   cat > conftest.$ac_ext <<EOF
! #line 2131 "configure"
! #include "confdefs.h"
! #include <$ac_hdr>
! EOF
! ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:2136: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
! ac_err=`grep -v '^ *+' conftest.out`
! if test -z "$ac_err"; then
!   rm -rf conftest*
!   eval "ac_cv_header_$ac_safe=yes"
! else
!   echo "$ac_err" >&5
!   echo "configure: failed program was:" >&5
!   cat conftest.$ac_ext >&5
!   rm -rf conftest*
!   eval "ac_cv_header_$ac_safe=no"
! fi
! rm -f conftest*
! fi
! if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
!   echo "$ac_t""yes" 1>&6
!     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
!   cat >> confdefs.h <<EOF
! #define $ac_tr_hdr 1
! EOF
!  
! else
!   echo "$ac_t""no" 1>&6
! fi
! done
! 
! for ac_hdr in gd.h
! do
! ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
+ echo "configure:2166: checking for $ac_hdr" >&5
  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2171 "configure"
  #include "confdefs.h"
  #include <$ac_hdr>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:2176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=yes"
  else
    echo "$ac_err" >&5
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=no"
  fi
***************
*** 2027,2033 ****
  fi
  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    echo "$ac_t""yes" 1>&6
!     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
    cat >> confdefs.h <<EOF
  #define $ac_tr_hdr 1
  EOF
--- 2188,2194 ----
  fi
  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    echo "$ac_t""yes" 1>&6
!     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
    cat >> confdefs.h <<EOF
  #define $ac_tr_hdr 1
  EOF
***************
*** 2038,2061 ****
  done
  
  
! ac_safe=`echo "limits.h" | tr './\055' '___'`
  echo $ac_n "checking for limits.h""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2048 "configure"
  #include "confdefs.h"
  #include <limits.h>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:2053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=yes"
  else
    echo "$ac_err" >&5
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=no"
  fi
--- 2199,2225 ----
  done
  
  
! ac_safe=`echo "limits.h" | sed 'y%./+-%__p_%'`
  echo $ac_n "checking for limits.h""... $ac_c" 1>&6
+ echo "configure:2205: checking for limits.h" >&5
  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2210 "configure"
  #include "confdefs.h"
  #include <limits.h>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:2215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=yes"
  else
    echo "$ac_err" >&5
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=no"
  fi
***************
*** 2074,2097 ****
  
  for ac_hdr in values.h
  do
! ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2084 "configure"
  #include "confdefs.h"
  #include <$ac_hdr>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:2089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=yes"
  else
    echo "$ac_err" >&5
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=no"
  fi
--- 2238,2264 ----
  
  for ac_hdr in values.h
  do
! ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
+ echo "configure:2244: checking for $ac_hdr" >&5
  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2249 "configure"
  #include "confdefs.h"
  #include <$ac_hdr>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:2254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=yes"
  else
    echo "$ac_err" >&5
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=no"
  fi
***************
*** 2099,2105 ****
  fi
  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    echo "$ac_t""yes" 1>&6
!     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
    cat >> confdefs.h <<EOF
  #define $ac_tr_hdr 1
  EOF
--- 2266,2272 ----
  fi
  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    echo "$ac_t""yes" 1>&6
!     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
    cat >> confdefs.h <<EOF
  #define $ac_tr_hdr 1
  EOF
***************
*** 2109,2132 ****
  fi
  done
  
! ac_safe=`echo "locale.h" | tr './\055' '___'`
  echo $ac_n "checking for locale.h""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2119 "configure"
  #include "confdefs.h"
  #include <locale.h>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:2124: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=yes"
  else
    echo "$ac_err" >&5
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=no"
  fi
--- 2276,2302 ----
  fi
  done
  
! ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
  echo $ac_n "checking for locale.h""... $ac_c" 1>&6
+ echo "configure:2282: checking for locale.h" >&5
  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2287 "configure"
  #include "confdefs.h"
  #include <locale.h>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:2292: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=yes"
  else
    echo "$ac_err" >&5
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=no"
  fi
***************
*** 2144,2167 ****
  fi
  
  
! ac_safe=`echo "errno.h" | tr './\055' '___'`
  echo $ac_n "checking for errno.h""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2154 "configure"
  #include "confdefs.h"
  #include <errno.h>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:2159: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=yes"
  else
    echo "$ac_err" >&5
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=no"
  fi
--- 2314,2340 ----
  fi
  
  
! ac_safe=`echo "errno.h" | sed 'y%./+-%__p_%'`
  echo $ac_n "checking for errno.h""... $ac_c" 1>&6
+ echo "configure:2320: checking for errno.h" >&5
  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2325 "configure"
  #include "confdefs.h"
  #include <errno.h>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:2330: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=yes"
  else
    echo "$ac_err" >&5
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=no"
  fi
***************
*** 2179,2200 ****
  fi
  
  echo $ac_n "checking if errno variable is declared""... $ac_c" 1>&6
  cat > conftest.$ac_ext <<EOF
! #line 2184 "configure"
  #include "confdefs.h"
  #include <stdio.h>
  #ifndef NO_ERRNO_H
  #include <errno.h>
  #endif
! int main() { return 0; }
! int t() {
  errno=0
  ; return 0; }
  EOF
! if { (eval echo configure:2195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    echo "$ac_t""yes" 1>&6
  else
    rm -rf conftest*
    cat >> confdefs.h <<\EOF
  #define EXTERN_ERRNO 1
--- 2352,2375 ----
  fi
  
  echo $ac_n "checking if errno variable is declared""... $ac_c" 1>&6
+ echo "configure:2356: checking if errno variable is declared" >&5
  cat > conftest.$ac_ext <<EOF
! #line 2358 "configure"
  #include "confdefs.h"
  #include <stdio.h>
  #ifndef NO_ERRNO_H
  #include <errno.h>
  #endif
! int main() {
  errno=0
  ; return 0; }
  EOF
! if { (eval echo configure:2368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    echo "$ac_t""yes" 1>&6
  else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    cat >> confdefs.h <<\EOF
  #define EXTERN_ERRNO 1
***************
*** 2203,2212 ****
  fi
  rm -f conftest*
  
- 
  echo $ac_n "checking for unistd.h""... $ac_c" 1>&6
  cat > conftest.$ac_ext <<EOF
! #line 2210 "configure"
  #include "confdefs.h"
  #include <unistd.h>
  EOF
--- 2378,2387 ----
  fi
  rm -f conftest*
  
  echo $ac_n "checking for unistd.h""... $ac_c" 1>&6
+ echo "configure:2383: checking for unistd.h" >&5
  cat > conftest.$ac_ext <<EOF
! #line 2385 "configure"
  #include "confdefs.h"
  #include <unistd.h>
  EOF
***************
*** 2226,2249 ****
  
  for ac_hdr in sgtty.h termios.h
  do
! ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2236 "configure"
  #include "confdefs.h"
  #include <$ac_hdr>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:2241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=yes"
  else
    echo "$ac_err" >&5
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=no"
  fi
--- 2401,2427 ----
  
  for ac_hdr in sgtty.h termios.h
  do
! ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
+ echo "configure:2407: checking for $ac_hdr" >&5
  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2412 "configure"
  #include "confdefs.h"
  #include <$ac_hdr>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:2417: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=yes"
  else
    echo "$ac_err" >&5
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=no"
  fi
***************
*** 2251,2257 ****
  fi
  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    echo "$ac_t""yes" 1>&6
!     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
    cat >> confdefs.h <<EOF
  #define $ac_tr_hdr 1
  EOF
--- 2429,2435 ----
  fi
  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    echo "$ac_t""yes" 1>&6
!     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
    cat >> confdefs.h <<EOF
  #define $ac_tr_hdr 1
  EOF
***************
*** 2264,2274 ****
  for ac_func in tcgetattr
  do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2272 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char $ac_func(); below.  */
--- 2442,2453 ----
  for ac_func in tcgetattr
  do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
+ echo "configure:2446: checking for $ac_func" >&5
  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2451 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char $ac_func(); below.  */
***************
*** 2278,2285 ****
      builtin and then its argument prototype would still apply.  */
  char $ac_func();
  
! int main() { return 0; }
! int t() {
  
  /* The GNU C library defines this for functions which it implements
      to always fail with ENOSYS.  Some functions are actually named
--- 2457,2463 ----
      builtin and then its argument prototype would still apply.  */
  char $ac_func();
  
! int main() {
  
  /* The GNU C library defines this for functions which it implements
      to always fail with ENOSYS.  Some functions are actually named
***************
*** 2292,2307 ****
  
  ; return 0; }
  EOF
! if { (eval echo configure:2296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=yes"
  else
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=no"
  fi
  rm -f conftest*
- 
  fi
  if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
    echo "$ac_t""yes" 1>&6
      ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
--- 2470,2487 ----
  
  ; return 0; }
  EOF
! if { (eval echo configure:2474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=yes"
  else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=no"
  fi
  rm -f conftest*
  fi
+ 
  if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
    echo "$ac_t""yes" 1>&6
      ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
***************
*** 2317,2335 ****
  
  
  echo $ac_n "checking for size_t""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2325 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #if STDC_HEADERS
  #include <stdlib.h>
  #endif
  EOF
  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
!   egrep "size_t" >/dev/null 2>&1; then
    rm -rf conftest*
    ac_cv_type_size_t=yes
  else
--- 2497,2522 ----
  
  
  echo $ac_n "checking for size_t""... $ac_c" 1>&6
+ echo "configure:2501: checking for size_t" >&5
  if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2506 "configure"
  #include "confdefs.h"
+ #ifdef HAVE_UNISTD_H
+ #include <unistd.h>
+ #endif
  #include <sys/types.h>
+ #include <sys/signal.h>
+ #include <signal.h>	/* MG: for IRIX */
  #if STDC_HEADERS
  #include <stdlib.h>
+ #include <stddef.h>
  #endif
  EOF
  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
!   egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
    rm -rf conftest*
    ac_cv_type_size_t=yes
  else
***************
*** 2348,2358 ****
  fi
  
  echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2356 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <signal.h>
--- 2535,2546 ----
  fi
  
  echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
+ echo "configure:2539: checking return type of signal handlers" >&5
  if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2544 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <signal.h>
***************
*** 2365,2384 ****
  void (*signal ()) ();
  #endif
  
! int main() { return 0; }
! int t() {
  int i;
  ; return 0; }
  EOF
! if { (eval echo configure:2374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ac_cv_type_signal=void
  else
    rm -rf conftest*
    ac_cv_type_signal=int
  fi
  rm -f conftest*
- 
  fi
  
  echo "$ac_t""$ac_cv_type_signal" 1>&6
--- 2553,2572 ----
  void (*signal ()) ();
  #endif
  
! int main() {
  int i;
  ; return 0; }
  EOF
! if { (eval echo configure:2561: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ac_cv_type_signal=void
  else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    ac_cv_type_signal=int
  fi
  rm -f conftest*
  fi
  
  echo "$ac_t""$ac_cv_type_signal" 1>&6
***************
*** 2387,2410 ****
  EOF
  
  
! ac_safe=`echo "time.h" | tr './\055' '___'`
  echo $ac_n "checking for time.h""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2397 "configure"
  #include "confdefs.h"
  #include <time.h>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:2402: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=yes"
  else
    echo "$ac_err" >&5
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=no"
  fi
--- 2575,2601 ----
  EOF
  
  
! ac_safe=`echo "time.h" | sed 'y%./+-%__p_%'`
  echo $ac_n "checking for time.h""... $ac_c" 1>&6
+ echo "configure:2581: checking for time.h" >&5
  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2586 "configure"
  #include "confdefs.h"
  #include <time.h>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:2591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=yes"
  else
    echo "$ac_err" >&5
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=no"
  fi
***************
*** 2419,2437 ****
  #define NO_TIME_H 1
  EOF
   echo $ac_n "checking for time_t""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_type_time_t'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2427 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #if STDC_HEADERS
  #include <stdlib.h>
  #endif
  EOF
  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
!   egrep "time_t" >/dev/null 2>&1; then
    rm -rf conftest*
    ac_cv_type_time_t=yes
  else
--- 2610,2635 ----
  #define NO_TIME_H 1
  EOF
   echo $ac_n "checking for time_t""... $ac_c" 1>&6
+ echo "configure:2614: checking for time_t" >&5
  if eval "test \"`echo '$''{'ac_cv_type_time_t'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2619 "configure"
  #include "confdefs.h"
+ #ifdef HAVE_UNISTD_H
+ #include <unistd.h>
+ #endif
  #include <sys/types.h>
+ #include <sys/signal.h>
+ #include <signal.h>	/* MG: for IRIX */
  #if STDC_HEADERS
  #include <stdlib.h>
+ #include <stddef.h>
  #endif
  EOF
  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
!   egrep "time_t^a-zA-Z_0-9" >/dev/null 2>&1; then
    rm -rf conftest*
    ac_cv_type_time_t=yes
  else
***************
*** 2456,2466 ****
  for ac_func in erf lgamma gamma
  do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2464 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char $ac_func(); below.  */
--- 2654,2665 ----
  for ac_func in erf lgamma gamma
  do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
+ echo "configure:2658: checking for $ac_func" >&5
  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2663 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char $ac_func(); below.  */
***************
*** 2470,2477 ****
      builtin and then its argument prototype would still apply.  */
  char $ac_func();
  
! int main() { return 0; }
! int t() {
  
  /* The GNU C library defines this for functions which it implements
      to always fail with ENOSYS.  Some functions are actually named
--- 2669,2675 ----
      builtin and then its argument prototype would still apply.  */
  char $ac_func();
  
! int main() {
  
  /* The GNU C library defines this for functions which it implements
      to always fail with ENOSYS.  Some functions are actually named
***************
*** 2484,2499 ****
  
  ; return 0; }
  EOF
! if { (eval echo configure:2488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=yes"
  else
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=no"
  fi
  rm -f conftest*
- 
  fi
  if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
    echo "$ac_t""yes" 1>&6
      ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
--- 2682,2699 ----
  
  ; return 0; }
  EOF
! if { (eval echo configure:2686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=yes"
  else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=no"
  fi
  rm -f conftest*
  fi
+ 
  if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
    echo "$ac_t""yes" 1>&6
      ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
***************
*** 2511,2521 ****
  for ac_func in getcwd
  do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2519 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char $ac_func(); below.  */
--- 2711,2722 ----
  for ac_func in getcwd
  do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
+ echo "configure:2715: checking for $ac_func" >&5
  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2720 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char $ac_func(); below.  */
***************
*** 2525,2532 ****
      builtin and then its argument prototype would still apply.  */
  char $ac_func();
  
! int main() { return 0; }
! int t() {
  
  /* The GNU C library defines this for functions which it implements
      to always fail with ENOSYS.  Some functions are actually named
--- 2726,2732 ----
      builtin and then its argument prototype would still apply.  */
  char $ac_func();
  
! int main() {
  
  /* The GNU C library defines this for functions which it implements
      to always fail with ENOSYS.  Some functions are actually named
***************
*** 2539,2554 ****
  
  ; return 0; }
  EOF
! if { (eval echo configure:2543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=yes"
  else
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=no"
  fi
  rm -f conftest*
- 
  fi
  if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
    echo "$ac_t""yes" 1>&6
      ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
--- 2739,2756 ----
  
  ; return 0; }
  EOF
! if { (eval echo configure:2743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=yes"
  else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=no"
  fi
  rm -f conftest*
  fi
+ 
  if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
    echo "$ac_t""yes" 1>&6
      ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
***************
*** 2562,2572 ****
  done
  
  echo $ac_n "checking for memcpy""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_func_memcpy'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2570 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char memcpy(); below.  */
--- 2764,2775 ----
  done
  
  echo $ac_n "checking for memcpy""... $ac_c" 1>&6
+ echo "configure:2768: checking for memcpy" >&5
  if eval "test \"`echo '$''{'ac_cv_func_memcpy'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2773 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char memcpy(); below.  */
***************
*** 2576,2583 ****
      builtin and then its argument prototype would still apply.  */
  char memcpy();
  
! int main() { return 0; }
! int t() {
  
  /* The GNU C library defines this for functions which it implements
      to always fail with ENOSYS.  Some functions are actually named
--- 2779,2785 ----
      builtin and then its argument prototype would still apply.  */
  char memcpy();
  
! int main() {
  
  /* The GNU C library defines this for functions which it implements
      to always fail with ENOSYS.  Some functions are actually named
***************
*** 2590,2605 ****
  
  ; return 0; }
  EOF
! if { (eval echo configure:2594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    rm -rf conftest*
    eval "ac_cv_func_memcpy=yes"
  else
    rm -rf conftest*
    eval "ac_cv_func_memcpy=no"
  fi
  rm -f conftest*
- 
  fi
  if eval "test \"`echo '$ac_cv_func_'memcpy`\" = yes"; then
    echo "$ac_t""yes" 1>&6
    :
--- 2792,2809 ----
  
  ; return 0; }
  EOF
! if { (eval echo configure:2796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_func_memcpy=yes"
  else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    eval "ac_cv_func_memcpy=no"
  fi
  rm -f conftest*
  fi
+ 
  if eval "test \"`echo '$ac_cv_func_'memcpy`\" = yes"; then
    echo "$ac_t""yes" 1>&6
    :
***************
*** 2609,2619 ****
  #define NO_MEMCPY 1
  EOF
   echo $ac_n "checking for bcopy""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_func_bcopy'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2617 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char bcopy(); below.  */
--- 2813,2824 ----
  #define NO_MEMCPY 1
  EOF
   echo $ac_n "checking for bcopy""... $ac_c" 1>&6
+ echo "configure:2817: checking for bcopy" >&5
  if eval "test \"`echo '$''{'ac_cv_func_bcopy'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2822 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char bcopy(); below.  */
***************
*** 2623,2630 ****
      builtin and then its argument prototype would still apply.  */
  char bcopy();
  
! int main() { return 0; }
! int t() {
  
  /* The GNU C library defines this for functions which it implements
      to always fail with ENOSYS.  Some functions are actually named
--- 2828,2834 ----
      builtin and then its argument prototype would still apply.  */
  char bcopy();
  
! int main() {
  
  /* The GNU C library defines this for functions which it implements
      to always fail with ENOSYS.  Some functions are actually named
***************
*** 2637,2652 ****
  
  ; return 0; }
  EOF
! if { (eval echo configure:2641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    rm -rf conftest*
    eval "ac_cv_func_bcopy=yes"
  else
    rm -rf conftest*
    eval "ac_cv_func_bcopy=no"
  fi
  rm -f conftest*
- 
  fi
  if eval "test \"`echo '$ac_cv_func_'bcopy`\" = yes"; then
    echo "$ac_t""yes" 1>&6
    :
--- 2841,2858 ----
  
  ; return 0; }
  EOF
! if { (eval echo configure:2845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_func_bcopy=yes"
  else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    eval "ac_cv_func_bcopy=no"
  fi
  rm -f conftest*
  fi
+ 
  if eval "test \"`echo '$ac_cv_func_'bcopy`\" = yes"; then
    echo "$ac_t""yes" 1>&6
    :
***************
*** 2661,2671 ****
  fi
  
  echo $ac_n "checking for memset""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_func_memset'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2669 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char memset(); below.  */
--- 2867,2878 ----
  fi
  
  echo $ac_n "checking for memset""... $ac_c" 1>&6
+ echo "configure:2871: checking for memset" >&5
  if eval "test \"`echo '$''{'ac_cv_func_memset'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2876 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char memset(); below.  */
***************
*** 2675,2682 ****
      builtin and then its argument prototype would still apply.  */
  char memset();
  
! int main() { return 0; }
! int t() {
  
  /* The GNU C library defines this for functions which it implements
      to always fail with ENOSYS.  Some functions are actually named
--- 2882,2888 ----
      builtin and then its argument prototype would still apply.  */
  char memset();
  
! int main() {
  
  /* The GNU C library defines this for functions which it implements
      to always fail with ENOSYS.  Some functions are actually named
***************
*** 2689,2704 ****
  
  ; return 0; }
  EOF
! if { (eval echo configure:2693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    rm -rf conftest*
    eval "ac_cv_func_memset=yes"
  else
    rm -rf conftest*
    eval "ac_cv_func_memset=no"
  fi
  rm -f conftest*
- 
  fi
  if eval "test \"`echo '$ac_cv_func_'memset`\" = yes"; then
    echo "$ac_t""yes" 1>&6
    :
--- 2895,2912 ----
  
  ; return 0; }
  EOF
! if { (eval echo configure:2899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_func_memset=yes"
  else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    eval "ac_cv_func_memset=no"
  fi
  rm -f conftest*
  fi
+ 
  if eval "test \"`echo '$ac_cv_func_'memset`\" = yes"; then
    echo "$ac_t""yes" 1>&6
    :
***************
*** 2711,2721 ****
  fi
  
  echo $ac_n "checking for strchr""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_func_strchr'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2719 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char strchr(); below.  */
--- 2919,2930 ----
  fi
  
  echo $ac_n "checking for strchr""... $ac_c" 1>&6
+ echo "configure:2923: checking for strchr" >&5
  if eval "test \"`echo '$''{'ac_cv_func_strchr'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2928 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char strchr(); below.  */
***************
*** 2725,2732 ****
      builtin and then its argument prototype would still apply.  */
  char strchr();
  
! int main() { return 0; }
! int t() {
  
  /* The GNU C library defines this for functions which it implements
      to always fail with ENOSYS.  Some functions are actually named
--- 2934,2940 ----
      builtin and then its argument prototype would still apply.  */
  char strchr();
  
! int main() {
  
  /* The GNU C library defines this for functions which it implements
      to always fail with ENOSYS.  Some functions are actually named
***************
*** 2739,2754 ****
  
  ; return 0; }
  EOF
! if { (eval echo configure:2743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    rm -rf conftest*
    eval "ac_cv_func_strchr=yes"
  else
    rm -rf conftest*
    eval "ac_cv_func_strchr=no"
  fi
  rm -f conftest*
- 
  fi
  if eval "test \"`echo '$ac_cv_func_'strchr`\" = yes"; then
    echo "$ac_t""yes" 1>&6
    :
--- 2947,2964 ----
  
  ; return 0; }
  EOF
! if { (eval echo configure:2951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_func_strchr=yes"
  else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    eval "ac_cv_func_strchr=no"
  fi
  rm -f conftest*
  fi
+ 
  if eval "test \"`echo '$ac_cv_func_'strchr`\" = yes"; then
    echo "$ac_t""yes" 1>&6
    :
***************
*** 2763,2773 ****
  for ac_func in setvbuf
  do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2771 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char $ac_func(); below.  */
--- 2973,2984 ----
  for ac_func in setvbuf
  do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
+ echo "configure:2977: checking for $ac_func" >&5
  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2982 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char $ac_func(); below.  */
***************
*** 2777,2784 ****
      builtin and then its argument prototype would still apply.  */
  char $ac_func();
  
! int main() { return 0; }
! int t() {
  
  /* The GNU C library defines this for functions which it implements
      to always fail with ENOSYS.  Some functions are actually named
--- 2988,2994 ----
      builtin and then its argument prototype would still apply.  */
  char $ac_func();
  
! int main() {
  
  /* The GNU C library defines this for functions which it implements
      to always fail with ENOSYS.  Some functions are actually named
***************
*** 2791,2806 ****
  
  ; return 0; }
  EOF
! if { (eval echo configure:2795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=yes"
  else
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=no"
  fi
  rm -f conftest*
- 
  fi
  if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
    echo "$ac_t""yes" 1>&6
      ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
--- 3001,3018 ----
  
  ; return 0; }
  EOF
! if { (eval echo configure:3005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=yes"
  else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=no"
  fi
  rm -f conftest*
  fi
+ 
  if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
    echo "$ac_t""yes" 1>&6
      ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
***************
*** 2820,2830 ****
  for ac_func in sleep
  do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2828 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char $ac_func(); below.  */
--- 3032,3043 ----
  for ac_func in sleep
  do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
+ echo "configure:3036: checking for $ac_func" >&5
  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 3041 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char $ac_func(); below.  */
***************
*** 2834,2841 ****
      builtin and then its argument prototype would still apply.  */
  char $ac_func();
  
! int main() { return 0; }
! int t() {
  
  /* The GNU C library defines this for functions which it implements
      to always fail with ENOSYS.  Some functions are actually named
--- 3047,3053 ----
      builtin and then its argument prototype would still apply.  */
  char $ac_func();
  
! int main() {
  
  /* The GNU C library defines this for functions which it implements
      to always fail with ENOSYS.  Some functions are actually named
***************
*** 2848,2863 ****
  
  ; return 0; }
  EOF
! if { (eval echo configure:2852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=yes"
  else
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=no"
  fi
  rm -f conftest*
- 
  fi
  if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
    echo "$ac_t""yes" 1>&6
      ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
--- 3060,3077 ----
  
  ; return 0; }
  EOF
! if { (eval echo configure:3064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=yes"
  else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=no"
  fi
  rm -f conftest*
  fi
+ 
  if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
    echo "$ac_t""yes" 1>&6
      ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
***************
*** 2873,2883 ****
  for ac_func in strncasecmp strnicmp strerror
  do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2881 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char $ac_func(); below.  */
--- 3087,3098 ----
  for ac_func in strncasecmp strnicmp strerror
  do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
+ echo "configure:3091: checking for $ac_func" >&5
  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 3096 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char $ac_func(); below.  */
***************
*** 2887,2894 ****
      builtin and then its argument prototype would still apply.  */
  char $ac_func();
  
! int main() { return 0; }
! int t() {
  
  /* The GNU C library defines this for functions which it implements
      to always fail with ENOSYS.  Some functions are actually named
--- 3102,3108 ----
      builtin and then its argument prototype would still apply.  */
  char $ac_func();
  
! int main() {
  
  /* The GNU C library defines this for functions which it implements
      to always fail with ENOSYS.  Some functions are actually named
***************
*** 2901,2916 ****
  
  ; return 0; }
  EOF
! if { (eval echo configure:2905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=yes"
  else
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=no"
  fi
  rm -f conftest*
- 
  fi
  if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
    echo "$ac_t""yes" 1>&6
      ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
--- 3115,3132 ----
  
  ; return 0; }
  EOF
! if { (eval echo configure:3119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=yes"
  else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=no"
  fi
  rm -f conftest*
  fi
+ 
  if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
    echo "$ac_t""yes" 1>&6
      ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
***************
*** 2925,2935 ****
  
  
  echo $ac_n "checking for popen""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_func_popen'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2933 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char popen(); below.  */
--- 3141,3152 ----
  
  
  echo $ac_n "checking for popen""... $ac_c" 1>&6
+ echo "configure:3145: checking for popen" >&5
  if eval "test \"`echo '$''{'ac_cv_func_popen'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 3150 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char popen(); below.  */
***************
*** 2939,2946 ****
      builtin and then its argument prototype would still apply.  */
  char popen();
  
! int main() { return 0; }
! int t() {
  
  /* The GNU C library defines this for functions which it implements
      to always fail with ENOSYS.  Some functions are actually named
--- 3156,3162 ----
      builtin and then its argument prototype would still apply.  */
  char popen();
  
! int main() {
  
  /* The GNU C library defines this for functions which it implements
      to always fail with ENOSYS.  Some functions are actually named
***************
*** 2953,2968 ****
  
  ; return 0; }
  EOF
! if { (eval echo configure:2957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    rm -rf conftest*
    eval "ac_cv_func_popen=yes"
  else
    rm -rf conftest*
    eval "ac_cv_func_popen=no"
  fi
  rm -f conftest*
- 
  fi
  if eval "test \"`echo '$ac_cv_func_'popen`\" = yes"; then
    echo "$ac_t""yes" 1>&6
    :
--- 3169,3186 ----
  
  ; return 0; }
  EOF
! if { (eval echo configure:3173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_func_popen=yes"
  else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    eval "ac_cv_func_popen=no"
  fi
  rm -f conftest*
  fi
+ 
  if eval "test \"`echo '$ac_cv_func_'popen`\" = yes"; then
    echo "$ac_t""yes" 1>&6
    :
***************
*** 2971,2981 ****
  fi
  
  echo $ac_n "checking for pclose""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_func_pclose'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2979 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char pclose(); below.  */
--- 3189,3200 ----
  fi
  
  echo $ac_n "checking for pclose""... $ac_c" 1>&6
+ echo "configure:3193: checking for pclose" >&5
  if eval "test \"`echo '$''{'ac_cv_func_pclose'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 3198 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char pclose(); below.  */
***************
*** 2985,2992 ****
      builtin and then its argument prototype would still apply.  */
  char pclose();
  
! int main() { return 0; }
! int t() {
  
  /* The GNU C library defines this for functions which it implements
      to always fail with ENOSYS.  Some functions are actually named
--- 3204,3210 ----
      builtin and then its argument prototype would still apply.  */
  char pclose();
  
! int main() {
  
  /* The GNU C library defines this for functions which it implements
      to always fail with ENOSYS.  Some functions are actually named
***************
*** 2999,3014 ****
  
  ; return 0; }
  EOF
! if { (eval echo configure:3003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    rm -rf conftest*
    eval "ac_cv_func_pclose=yes"
  else
    rm -rf conftest*
    eval "ac_cv_func_pclose=no"
  fi
  rm -f conftest*
- 
  fi
  if eval "test \"`echo '$ac_cv_func_'pclose`\" = yes"; then
    echo "$ac_t""yes" 1>&6
    :
--- 3217,3234 ----
  
  ; return 0; }
  EOF
! if { (eval echo configure:3221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_func_pclose=yes"
  else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    eval "ac_cv_func_pclose=no"
  fi
  rm -f conftest*
  fi
+ 
  if eval "test \"`echo '$ac_cv_func_'pclose`\" = yes"; then
    echo "$ac_t""yes" 1>&6
    :
***************
*** 3024,3034 ****
  fi
  
  echo $ac_n "checking for atexit""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_func_atexit'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 3032 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char atexit(); below.  */
--- 3244,3255 ----
  fi
  
  echo $ac_n "checking for atexit""... $ac_c" 1>&6
+ echo "configure:3248: checking for atexit" >&5
  if eval "test \"`echo '$''{'ac_cv_func_atexit'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 3253 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char atexit(); below.  */
***************
*** 3038,3045 ****
      builtin and then its argument prototype would still apply.  */
  char atexit();
  
! int main() { return 0; }
! int t() {
  
  /* The GNU C library defines this for functions which it implements
      to always fail with ENOSYS.  Some functions are actually named
--- 3259,3265 ----
      builtin and then its argument prototype would still apply.  */
  char atexit();
  
! int main() {
  
  /* The GNU C library defines this for functions which it implements
      to always fail with ENOSYS.  Some functions are actually named
***************
*** 3052,3067 ****
  
  ; return 0; }
  EOF
! if { (eval echo configure:3056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    rm -rf conftest*
    eval "ac_cv_func_atexit=yes"
  else
    rm -rf conftest*
    eval "ac_cv_func_atexit=no"
  fi
  rm -f conftest*
- 
  fi
  if eval "test \"`echo '$ac_cv_func_'atexit`\" = yes"; then
    echo "$ac_t""yes" 1>&6
    :
--- 3272,3289 ----
  
  ; return 0; }
  EOF
! if { (eval echo configure:3276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_func_atexit=yes"
  else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    eval "ac_cv_func_atexit=no"
  fi
  rm -f conftest*
  fi
+ 
  if eval "test \"`echo '$ac_cv_func_'atexit`\" = yes"; then
    echo "$ac_t""yes" 1>&6
    :
***************
*** 3073,3083 ****
   for ac_func in on_exit
  do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 3081 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char $ac_func(); below.  */
--- 3295,3306 ----
   for ac_func in on_exit
  do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
+ echo "configure:3299: checking for $ac_func" >&5
  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 3304 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char $ac_func(); below.  */
***************
*** 3087,3094 ****
      builtin and then its argument prototype would still apply.  */
  char $ac_func();
  
! int main() { return 0; }
! int t() {
  
  /* The GNU C library defines this for functions which it implements
      to always fail with ENOSYS.  Some functions are actually named
--- 3310,3316 ----
      builtin and then its argument prototype would still apply.  */
  char $ac_func();
  
! int main() {
  
  /* The GNU C library defines this for functions which it implements
      to always fail with ENOSYS.  Some functions are actually named
***************
*** 3101,3116 ****
  
  ; return 0; }
  EOF
! if { (eval echo configure:3105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=yes"
  else
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=no"
  fi
  rm -f conftest*
- 
  fi
  if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
    echo "$ac_t""yes" 1>&6
      ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
--- 3323,3340 ----
  
  ; return 0; }
  EOF
! if { (eval echo configure:3327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=yes"
  else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=no"
  fi
  rm -f conftest*
  fi
+ 
  if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
    echo "$ac_t""yes" 1>&6
      ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
***************
*** 3128,3151 ****
  
  for ac_hdr in sys/systeminfo.h
  do
! ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 3138 "configure"
  #include "confdefs.h"
  #include <$ac_hdr>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:3143: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=yes"
  else
    echo "$ac_err" >&5
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=no"
  fi
--- 3352,3378 ----
  
  for ac_hdr in sys/systeminfo.h
  do
! ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
+ echo "configure:3358: checking for $ac_hdr" >&5
  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 3363 "configure"
  #include "confdefs.h"
  #include <$ac_hdr>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:3368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=yes"
  else
    echo "$ac_err" >&5
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=no"
  fi
***************
*** 3153,3159 ****
  fi
  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    echo "$ac_t""yes" 1>&6
!     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
    cat >> confdefs.h <<EOF
  #define $ac_tr_hdr 1
  EOF
--- 3380,3386 ----
  fi
  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    echo "$ac_t""yes" 1>&6
!     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
    cat >> confdefs.h <<EOF
  #define $ac_tr_hdr 1
  EOF
***************
*** 3167,3177 ****
    for ac_func in sysinfo
  do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 3175 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char $ac_func(); below.  */
--- 3394,3405 ----
    for ac_func in sysinfo
  do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
+ echo "configure:3398: checking for $ac_func" >&5
  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 3403 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char $ac_func(); below.  */
***************
*** 3181,3188 ****
      builtin and then its argument prototype would still apply.  */
  char $ac_func();
  
! int main() { return 0; }
! int t() {
  
  /* The GNU C library defines this for functions which it implements
      to always fail with ENOSYS.  Some functions are actually named
--- 3409,3415 ----
      builtin and then its argument prototype would still apply.  */
  char $ac_func();
  
! int main() {
  
  /* The GNU C library defines this for functions which it implements
      to always fail with ENOSYS.  Some functions are actually named
***************
*** 3195,3210 ****
  
  ; return 0; }
  EOF
! if { (eval echo configure:3199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=yes"
  else
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=no"
  fi
  rm -f conftest*
- 
  fi
  if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
    echo "$ac_t""yes" 1>&6
      ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
--- 3422,3439 ----
  
  ; return 0; }
  EOF
! if { (eval echo configure:3426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=yes"
  else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=no"
  fi
  rm -f conftest*
  fi
+ 
  if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
    echo "$ac_t""yes" 1>&6
      ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
***************
*** 3221,3246 ****
  
  
  
! echo $ac_n "checking for -lsocket""... $ac_c" 1>&6
! ac_lib_var=`echo socket'_'main | tr './+\055' '__p_'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    ac_save_LIBS="$LIBS"
  LIBS="-lsocket  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 3233 "configure"
  #include "confdefs.h"
  
! int main() { return 0; }
! int t() {
  main()
  ; return 0; }
  EOF
! if { (eval echo configure:3241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=yes"
  else
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=no"
  fi
--- 3450,3477 ----
  
  
  
! echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
! echo "configure:3455: checking for main in -lsocket" >&5
! ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    ac_save_LIBS="$LIBS"
  LIBS="-lsocket  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 3463 "configure"
  #include "confdefs.h"
  
! int main() {
  main()
  ; return 0; }
  EOF
! if { (eval echo configure:3470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=yes"
  else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=no"
  fi
***************
*** 3258,3287 ****
  
  if test "$with_linux_vga" = yes; then
    echo $ac_n "checking for linux vga library""... $ac_c" 1>&6
!   echo $ac_n "checking for -lvga""... $ac_c" 1>&6
! ac_lib_var=`echo vga'_'vga_init | tr './+\055' '__p_'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    ac_save_LIBS="$LIBS"
  LIBS="-lvga  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 3270 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
      builtin and then its argument prototype would still apply.  */
  char vga_init();
  
! int main() { return 0; }
! int t() {
  vga_init()
  ; return 0; }
  EOF
! if { (eval echo configure:3282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=yes"
  else
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=no"
  fi
--- 3489,3521 ----
  
  if test "$with_linux_vga" = yes; then
    echo $ac_n "checking for linux vga library""... $ac_c" 1>&6
! echo "configure:3493: checking for linux vga library" >&5
!   echo $ac_n "checking for vga_init in -lvga""... $ac_c" 1>&6
! echo "configure:3495: checking for vga_init in -lvga" >&5
! ac_lib_var=`echo vga'_'vga_init | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    ac_save_LIBS="$LIBS"
  LIBS="-lvga  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 3503 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
      builtin and then its argument prototype would still apply.  */
  char vga_init();
  
! int main() {
  vga_init()
  ; return 0; }
  EOF
! if { (eval echo configure:3514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=yes"
  else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=no"
  fi
***************
*** 3305,3334 ****
  
  
  if test "$with_gnu_readline" = yes; then
!     echo $ac_n "checking for -ltermcap""... $ac_c" 1>&6
! ac_lib_var=`echo termcap'_'tputs | tr './+\055' '__p_'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    ac_save_LIBS="$LIBS"
  LIBS="-ltermcap  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 3317 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
      builtin and then its argument prototype would still apply.  */
  char tputs();
  
! int main() { return 0; }
! int t() {
  tputs()
  ; return 0; }
  EOF
! if { (eval echo configure:3329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=yes"
  else
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=no"
  fi
--- 3539,3570 ----
  
  
  if test "$with_gnu_readline" = yes; then
!     echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
! echo "configure:3544: checking for tputs in -ltermcap" >&5
! ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    ac_save_LIBS="$LIBS"
  LIBS="-ltermcap  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 3552 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
      builtin and then its argument prototype would still apply.  */
  char tputs();
  
! int main() {
  tputs()
  ; return 0; }
  EOF
! if { (eval echo configure:3563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=yes"
  else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=no"
  fi
***************
*** 3344,3351 ****
  gp_tcap=""
  fi
  
!     echo $ac_n "checking for -lreadline""... $ac_c" 1>&6
! ac_lib_var=`echo readline'_'readline | tr './+\055' '__p_'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 3580,3588 ----
  gp_tcap=""
  fi
  
!     echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
! echo "configure:3585: checking for readline in -lreadline" >&5
! ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 3353,3374 ****
  LIBS="-lreadline $gp_tcap 
       $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 3357 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
      builtin and then its argument prototype would still apply.  */
  char readline();
  
! int main() { return 0; }
! int t() {
  readline()
  ; return 0; }
  EOF
! if { (eval echo configure:3369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=yes"
  else
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=no"
  fi
--- 3590,3612 ----
  LIBS="-lreadline $gp_tcap 
       $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 3594 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
      builtin and then its argument prototype would still apply.  */
  char readline();
  
! int main() {
  readline()
  ; return 0; }
  EOF
! if { (eval echo configure:3605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=yes"
  else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=no"
  fi
***************
*** 3393,3422 ****
        { echo "configure: error: No such file $withval" 1>&2; exit 1; }
      fi
  
!     echo $ac_n "checking for -ltermcap""... $ac_c" 1>&6
! ac_lib_var=`echo termcap'_'tputs | tr './+\055' '__p_'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    ac_save_LIBS="$LIBS"
  LIBS="-ltermcap  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 3405 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
      builtin and then its argument prototype would still apply.  */
  char tputs();
  
! int main() { return 0; }
! int t() {
  tputs()
  ; return 0; }
  EOF
! if { (eval echo configure:3417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=yes"
  else
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=no"
  fi
--- 3631,3662 ----
        { echo "configure: error: No such file $withval" 1>&2; exit 1; }
      fi
  
!     echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
! echo "configure:3636: checking for tputs in -ltermcap" >&5
! ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    ac_save_LIBS="$LIBS"
  LIBS="-ltermcap  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 3644 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
      builtin and then its argument prototype would still apply.  */
  char tputs();
  
! int main() {
  tputs()
  ; return 0; }
  EOF
! if { (eval echo configure:3655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=yes"
  else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=no"
  fi
***************
*** 3468,3473 ****
--- 3708,3714 ----
  
    if test "$with_gd" != yes; then
      echo $ac_n "checking for gdImageCreate in -lgd""... $ac_c" 1>&6
+ echo "configure:3712: checking for gdImageCreate in -lgd" >&5
  
      for ac_dir in NONE $libdir $gp_lib_list ; do
        TERMLIBS="$gp_save_TERMLIBS `if test ${ac_dir} != NONE; then \
***************
*** 3480,3506 ****
    ac_save_LIBS="$LIBS"
  LIBS="-lgd          $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 3484 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
      builtin and then its argument prototype would still apply.  */
  char gdImageCreate();
  
! int main() { return 0; }
! int t() {
  gdImageCreate()
  ; return 0; }
  EOF
! if { (eval echo configure:3496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=yes"
  else
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=no"
  fi
  rm -f conftest*
- 
  LIBS="$ac_save_LIBS"
  
  fi
--- 3721,3747 ----
    ac_save_LIBS="$LIBS"
  LIBS="-lgd          $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 3725 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
      builtin and then its argument prototype would still apply.  */
  char gdImageCreate();
  
! int main() {
  gdImageCreate()
  ; return 0; }
  EOF
! if { (eval echo configure:3736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=yes"
  else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=no"
  fi
  rm -f conftest*
  LIBS="$ac_save_LIBS"
  
  fi
***************
*** 3534,3539 ****
--- 3775,3781 ----
  gp_save_CPPFLAGS="$CPPFLAGS"
  
  echo $ac_n "checking for gd.h""... $ac_c" 1>&6
+ echo "configure:3779: checking for gd.h" >&5
  
  for ac_dir in NONE $includedir $gp_lib_prefix $gp_lib_prefix/include ; do
    CPPFLAGS="$gp_save_CPPFLAGS `if test ${ac_dir} != NONE; then \
***************
*** 3543,3560 ****
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 3547 "configure"
  #include "confdefs.h"
  #include <gd.h>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:3552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=yes"
  else
    echo "$ac_err" >&5
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=no"
  fi
--- 3785,3804 ----
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 3789 "configure"
  #include "confdefs.h"
  #include <gd.h>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:3794: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=yes"
  else
    echo "$ac_err" >&5
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=no"
  fi
***************
*** 3563,3569 ****
  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    break
  else
! CPPFLAGS="$ac_save_CPPFLAGS"
      unset ac_cv_header_$ac_safe
      
  fi
--- 3807,3813 ----
  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    break
  else
!     CPPFLAGS="$gp_save_CPPFLAGS"
      unset ac_cv_header_$ac_safe
      
  fi
***************
*** 3611,3616 ****
--- 3855,3861 ----
  
    if test "$with_png" != yes; then
      echo $ac_n "checking for png_info_init in -lpng""... $ac_c" 1>&6
+ echo "configure:3859: checking for png_info_init in -lpng" >&5
  
      for ac_dir in NONE $libdir $gp_lib_list ; do
        TERMLIBS="$gp_save_TERMLIBS `if test ${ac_dir} != NONE; then \
***************
*** 3623,3649 ****
    ac_save_LIBS="$LIBS"
  LIBS="-lpng         -lz $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 3627 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
      builtin and then its argument prototype would still apply.  */
  char png_info_init();
  
! int main() { return 0; }
! int t() {
  png_info_init()
  ; return 0; }
  EOF
! if { (eval echo configure:3639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=yes"
  else
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=no"
  fi
  rm -f conftest*
- 
  LIBS="$ac_save_LIBS"
  
  fi
--- 3868,3894 ----
    ac_save_LIBS="$LIBS"
  LIBS="-lpng         -lz $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 3872 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
      builtin and then its argument prototype would still apply.  */
  char png_info_init();
  
! int main() {
  png_info_init()
  ; return 0; }
  EOF
! if { (eval echo configure:3883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=yes"
  else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=no"
  fi
  rm -f conftest*
  LIBS="$ac_save_LIBS"
  
  fi
***************
*** 3677,3686 ****
--- 3922,4015 ----
  #define HAVE_LIBPNG 1
  EOF
  
+ #MG#
+ 
+ if test "$ac_cv_header_png_h" = "" ; then
+ for ac_hdr in png.h
+ do
+ ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+ echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
+ echo "configure:3933: checking for $ac_hdr" >&5
+ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   cat > conftest.$ac_ext <<EOF
+ #line 3938 "configure"
+ #include "confdefs.h"
+ #include <$ac_hdr>
+ EOF
+ ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+ { (eval echo configure:3943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+ ac_err=`grep -v '^ *+' conftest.out`
+ if test -z "$ac_err"; then
+   rm -rf conftest*
+   eval "ac_cv_header_$ac_safe=yes"
+ else
+   echo "$ac_err" >&5
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   rm -rf conftest*
+   eval "ac_cv_header_$ac_safe=no"
+ fi
+ rm -f conftest*
+ fi
+ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+   echo "$ac_t""yes" 1>&6
+     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
+   cat >> confdefs.h <<EOF
+ #define $ac_tr_hdr 1
+ EOF
+  
+ else
+   echo "$ac_t""no" 1>&6
+ fi
+ done
+ 
+ fi
+ if test "$ac_cv_header_png_h" = yes ; then
+ echo $ac_n "checking if png.h is not too old""... $ac_c" 1>&6
+ echo "configure:3972: checking if png.h is not too old" >&5
+ cat > conftest.$ac_ext <<EOF
+ #line 3974 "configure"
+ #include "confdefs.h"
+ 
+ #include <stdio.h>
+ #include <png.h>
+ 
+ int main() {
+ 
+ #if PNG_LIBPNG_VER < 89
+ #error png library is too old
+ #endif
+ 
+ ; return 0; }
+ EOF
+ if { (eval echo configure:3988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+   rm -rf conftest*
+   use_png_h=yes
+ else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   rm -rf conftest*
+   use_png_h=no
+ fi
+ rm -f conftest*
+ 
+ 	if test "$use_png_h" = yes ; then
+ 		cat >> confdefs.h <<\EOF
+ #define CAN_USE_PNG_H 1
+ EOF
+ 
+ 	fi
+ 	echo "$ac_t""$use_png_h" 1>&6
+ fi
+ 
+ #MG#
    
  gp_save_CPPFLAGS="$CPPFLAGS"
  
  echo $ac_n "checking for png.h""... $ac_c" 1>&6
+ echo "configure:4013: checking for png.h" >&5
  
  for ac_dir in NONE $includedir $gp_lib_prefix $gp_lib_prefix/include ; do
    CPPFLAGS="$gp_save_CPPFLAGS `if test ${ac_dir} != NONE; then \
***************
*** 3690,3707 ****
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 3694 "configure"
  #include "confdefs.h"
  #include <png.h>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:3699: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=yes"
  else
    echo "$ac_err" >&5
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=no"
  fi
--- 4019,4038 ----
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 4023 "configure"
  #include "confdefs.h"
  #include <png.h>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:4028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=yes"
  else
    echo "$ac_err" >&5
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=no"
  fi
***************
*** 3710,3716 ****
  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    break
  else
! CPPFLAGS="$ac_save_CPPFLAGS"
      unset ac_cv_header_$ac_safe
      
  fi
--- 4041,4047 ----
  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    break
  else
!     CPPFLAGS="$gp_save_CPPFLAGS"
      unset ac_cv_header_$ac_safe
      
  fi
***************
*** 3728,3733 ****
--- 4059,4065 ----
  gp_save_CPPFLAGS="$CPPFLAGS"
  
  echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
+ echo "configure:4063: checking for zlib.h" >&5
  
  for ac_dir in NONE $includedir $gp_lib_prefix $gp_lib_prefix/include ; do
    CPPFLAGS="$gp_save_CPPFLAGS `if test ${ac_dir} != NONE; then \
***************
*** 3737,3754 ****
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 3741 "configure"
  #include "confdefs.h"
  #include <zlib.h>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:3746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=yes"
  else
    echo "$ac_err" >&5
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=no"
  fi
--- 4069,4088 ----
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 4073 "configure"
  #include "confdefs.h"
  #include <zlib.h>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:4078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=yes"
  else
    echo "$ac_err" >&5
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=no"
  fi
***************
*** 3757,3763 ****
  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    break
  else
! CPPFLAGS="$ac_save_CPPFLAGS"
      unset ac_cv_header_$ac_safe
      
  fi
--- 4091,4097 ----
  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    break
  else
!     CPPFLAGS="$gp_save_CPPFLAGS"
      unset ac_cv_header_$ac_safe
      
  fi
***************
*** 3789,3794 ****
--- 4123,4235 ----
  
  
  
+ ##MG##
+ host=`uname -n 2>/dev/null | tr '[A-Z]' '[a-z]'`
+ os=`uname -s 2>/dev/null | tr '[A-Z]' '[a-z]'`
+ os_v=`uname -v 2>/dev/null | sed 's/^[^0-9.]*//;s/[^0-9.]*$//'`
+ os_r=`uname -r 2>/dev/null | sed 's/^[^0-9.]*//;s/[^0-9.]*$//'`
+ arch=`uname -m 2>/dev/null | tr '[A-Z]' '[a-z]'`
+ archp=`uname -p 2>/dev/null | tr '[A-Z]' '[a-z]'`
+ SYS=''
+ if test "$GCC" = yes ; then
+ 	BDYNAMIC="-Wl,-Bdynamic"
+ 	BSTATIC="-Wl,-Bstatic"
+ 	STATIC='-static'
+ else
+ 	BDYNAMIC="# -Wl,-Bdynamic"
+ 	BSTATIC="# -Wl,-Bstatic"
+ 	STATIC='# -static'
+ fi
+ 
+ case "$os" in
+ 	osf1)
+ 		OS="digitalunix${os_r}-$arch"
+ 		SYS=digitalunix
+ 		;;
+ 	aix)
+ 		OS="aix${os_v}.${os_r}"
+ 		SYS=aix
+ 		;;
+ 	freebsd)
+ 		OS="freebsd${os_r}-$arch"
+ 		SYS=freebsd
+ 		STATIC="-static"
+ 		;;
+ 	irix)
+ 		OS="irix${os_r}"
+ 		SYS=irix
+ 		;;
+ 	hp-ux)
+ 		os_r=`echo "${os_r}" | cut -d. -f2-`
+ 		OS="hpux${os_r}"
+ 		SYS=hpux
+ 		;;
+ 	netbsd)
+ 		OS="netbsd-$arch"
+ 		SYS=netbsd
+ 		;;
+ 	openbsd)
+ 		OS="openbsd-$arch"
+ 		SYS=openbsd
+ 		;;
+ 	sco*)
+ 		OS=scosv
+ 		SYS=sco
+ 		;;
+ 	linux)
+ 		OS="linux-$arch"
+ 		SYS=linux
+ #		BDYNAMIC="-Wl,-Bdynamic"
+ #		BSTATIC="-Wl,-Bstatic"
+ 		;;
+ 	bsd/os)
+ 		OS="bsdos${os_r}"
+ 		SYS=bsdos
+ 		;;
+ 	ultrix)
+ 		OS="ultrix-$arch"
+ 		SYS=ultrix
+ 		;;
+ 	unixware|eeyore)
+ 		OS="unixware${os_v}"
+ 		SYS=unixware
+ 		;;
+ 	sunos)
+ 		if [ "$arch" = "" ] ; then arch="sparc" ; fi
+ 		if [ "$archp" = "" ] ; then archp="$arch" ; fi
+ 		case "$os_r" in
+ 			[56789].*)
+ 				maj=`echo "$os_r" | cut -c1-1`
+ 				maj=`expr "$maj" - 3`
+ 				os_r=`echo "$os_r" | cut -c2-`
+ 				os_r="${maj}${os_r}"
+ 				OS="solaris${os_r}-$archp"
+ 				SYS=solaris
+ 				;;
+ 			*)
+ 				OS="sunos${os_r}-sparc"
+ 				SYS=sunos
+ 				;;
+ 		esac
+ 		;;
+ 	*)
+ 		OS="$os"
+ 		SYS="$os"
+ 		;;
+ esac
+ 
+ 
+ 
+ 
+ 
+ 
+ 
+ 
+ 
+ ##MG##
+ 
+ 
+ 
  if test ! -f docs/makefile.dst && test -f docs/makefile && \
     test -z "$no_create"; then
    echo moving docs/makefile out of the way
***************
*** 3818,3828 ****
  # --recheck option to rerun configure.
  #
  EOF
  # Ultrix sh set writes to stderr and can't be redirected directly,
  # and sets the high bit in the cache file unless we assign to the vars.
  (set) 2>&1 |
!   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
!   >> confcache
  if cmp -s $cache_file confcache; then
    :
  else
--- 4259,4283 ----
  # --recheck option to rerun configure.
  #
  EOF
+ # The following way of writing the cache mishandles newlines in values,
+ # but we know of no workaround that is simple, portable, and efficient.
+ # So, don't put newlines in cache variables' values.
  # Ultrix sh set writes to stderr and can't be redirected directly,
  # and sets the high bit in the cache file unless we assign to the vars.
  (set) 2>&1 |
!   case `(ac_space=' '; set) 2>&1` in
!   *ac_space=\ *)
!     # `set' does not quote correctly, so add quotes (double-quote substitution
!     # turns \\\\ into \\, and sed turns \\ into \).
!     sed -n \
!       -e "s/'/'\\\\''/g" \
!       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
!     ;;
!   *)
!     # `set' quotes correctly as required by POSIX, so do not add quotes.
!     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
!     ;;
!   esac >> confcache
  if cmp -s $cache_file confcache; then
    :
  else
***************
*** 3850,3856 ****
  
  trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  
! DEFS=-DHAVE_CONFIG_H
  
  # Without the "./", some shells look in PATH for config.status.
  : ${CONFIG_STATUS=./config.status}
--- 4305,4311 ----
  
  trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  
! DEFS="-DHAVE_CONFIG_H $DEFS"
  
  # Without the "./", some shells look in PATH for config.status.
  : ${CONFIG_STATUS=./config.status}
***************
*** 3877,3883 ****
      echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
      exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
    -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
!     echo "$CONFIG_STATUS generated by autoconf version 2.10"
      exit 0 ;;
    -help | --help | --hel | --he | --h)
      echo "\$ac_cs_usage"; exit 0 ;;
--- 4332,4338 ----
      echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
      exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
    -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
!     echo "$CONFIG_STATUS generated by autoconf version 2.12"
      exit 0 ;;
    -help | --help | --hel | --he | --h)
      echo "\$ac_cs_usage"; exit 0 ;;
***************
*** 3933,3955 ****
  s%@LINUXSUID@%$LINUXSUID%g
  s%@TERMFLAGS@%$TERMFLAGS%g
  s%@TERMLIBS@%$TERMLIBS%g
  
  CEOF
  EOF
  cat >> $CONFIG_STATUS <<EOF
  
  CONFIG_FILES=\${CONFIG_FILES-"Makefile docs/Makefile docs/latextut/Makefile"}
  EOF
  cat >> $CONFIG_STATUS <<\EOF
  for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
!   # Support "outfile[:infile]", defaulting infile="outfile.in".
    case "$ac_file" in
!   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
         ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
    *) ac_file_in="${ac_file}.in" ;;
    esac
  
!   # Adjust relative srcdir, etc. for subdirectories.
  
    # Remove last slash and all that follows it.  Not all systems have dirname.
    ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
--- 4388,4451 ----
  s%@LINUXSUID@%$LINUXSUID%g
  s%@TERMFLAGS@%$TERMFLAGS%g
  s%@TERMLIBS@%$TERMLIBS%g
+ s%@OS@%$OS%g
+ s%@SYS@%$SYS%g
+ s%@BDYNAMIC@%$BDYNAMIC%g
+ s%@BSTATIC@%$BSTATIC%g
+ s%@STATIC@%$STATIC%g
  
  CEOF
  EOF
+ 
+ cat >> $CONFIG_STATUS <<\EOF
+ 
+ # Split the substitutions into bite-sized pieces for seds with
+ # small command number limits, like on Digital OSF/1 and HP-UX.
+ ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
+ ac_file=1 # Number of current file.
+ ac_beg=1 # First line for current file.
+ ac_end=$ac_max_sed_cmds # Line after last line for current file.
+ ac_more_lines=:
+ ac_sed_cmds=""
+ while $ac_more_lines; do
+   if test $ac_beg -gt 1; then
+     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
+   else
+     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
+   fi
+   if test ! -s conftest.s$ac_file; then
+     ac_more_lines=false
+     rm -f conftest.s$ac_file
+   else
+     if test -z "$ac_sed_cmds"; then
+       ac_sed_cmds="sed -f conftest.s$ac_file"
+     else
+       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
+     fi
+     ac_file=`expr $ac_file + 1`
+     ac_beg=$ac_end
+     ac_end=`expr $ac_end + $ac_max_sed_cmds`
+   fi
+ done
+ if test -z "$ac_sed_cmds"; then
+   ac_sed_cmds=cat
+ fi
+ EOF
+ 
  cat >> $CONFIG_STATUS <<EOF
  
  CONFIG_FILES=\${CONFIG_FILES-"Makefile docs/Makefile docs/latextut/Makefile"}
  EOF
  cat >> $CONFIG_STATUS <<\EOF
  for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
!   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
    case "$ac_file" in
!   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
         ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
    *) ac_file_in="${ac_file}.in" ;;
    esac
  
!   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  
    # Remove last slash and all that follows it.  Not all systems have dirname.
    ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
***************
*** 3977,3982 ****
--- 4473,4479 ----
    [/$]*) INSTALL="$ac_given_INSTALL" ;;
    *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
    esac
+ 
    echo creating "$ac_file"
    rm -f "$ac_file"
    configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
***************
*** 3985,3998 ****
  # $configure_input" ;;
    *) ac_comsub= ;;
    esac
    sed -e "$ac_comsub
  s%@configure_input@%$configure_input%g
  s%@srcdir@%$srcdir%g
  s%@top_srcdir@%$top_srcdir%g
  s%@INSTALL@%$INSTALL%g
! " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  fi; done
! rm -f conftest.subs
  
  # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  # NAME is the cpp macro being defined and VALUE is the value it is being given.
--- 4482,4497 ----
  # $configure_input" ;;
    *) ac_comsub= ;;
    esac
+ 
+   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
    sed -e "$ac_comsub
  s%@configure_input@%$configure_input%g
  s%@srcdir@%$srcdir%g
  s%@top_srcdir@%$top_srcdir%g
  s%@INSTALL@%$INSTALL%g
! " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  fi; done
! rm -f conftest.s*
  
  # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  # NAME is the cpp macro being defined and VALUE is the value it is being given.
***************
*** 4013,4023 ****
  ac_eC=' '
  ac_eD='%g'
  
! CONFIG_HEADERS=${CONFIG_HEADERS-"config.h:config.hin"}
  for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
!   # Support "outfile[:infile]", defaulting infile="outfile.in".
    case "$ac_file" in
!   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
         ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
    *) ac_file_in="${ac_file}.in" ;;
    esac
--- 4512,4528 ----
  ac_eC=' '
  ac_eD='%g'
  
! if test "${CONFIG_HEADERS+set}" != set; then
! EOF
! cat >> $CONFIG_STATUS <<EOF
!   CONFIG_HEADERS="config.h:config.hin"
! EOF
! cat >> $CONFIG_STATUS <<\EOF
! fi
  for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
!   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
    case "$ac_file" in
!   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
         ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
    *) ac_file_in="${ac_file}.in" ;;
    esac
***************
*** 4025,4031 ****
    echo creating $ac_file
  
    rm -f conftest.frag conftest.in conftest.out
!   cp $ac_given_srcdir/$ac_file_in conftest.in
  
  EOF
  
--- 4530,4537 ----
    echo creating $ac_file
  
    rm -f conftest.frag conftest.in conftest.out
!   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
!   cat $ac_file_inputs > conftest.in
  
  EOF
  
***************
*** 4053,4060 ****
  
  # Break up conftest.vals because some shells have a limit on
  # the size of here documents, and old seds have small limits too.
- # Maximum number of lines to put in a single here document.
- ac_max_here_lines=12
  
  rm -f conftest.tail
  while :
--- 4559,4564 ----
***************
*** 4096,4102 ****
--- 4600,4610 ----
    fi
  fi; done
  
+ EOF
+ cat >> $CONFIG_STATUS <<EOF
  
+ EOF
+ cat >> $CONFIG_STATUS <<\EOF
  \
  test -z "$CONFIG_HEADERS" || echo timestamp >stamp-h
  exit 0
diff -c -r gnuplot/configure.in /home/world/src/gnuplot/configure.in
*** gnuplot/configure.in	Mon Feb  9 22:03:18 1998
--- /home/world/src/gnuplot/configure.in	Sun Feb  8 21:34:56 1998
***************
*** 22,27 ****
--- 22,29 ----
  AC_PROG_CPP
  AC_PROG_INSTALL
  
+ CPPFLAGS="$CPPFLAGS -I../gd"
+ LDFLAGS="$LDFLAGS -L../gd"
  
  dnl Optional features.
  
***************
*** 148,153 ****
--- 150,156 ----
  AC_CHECK_HEADER(sys/types.h, , AC_DEFINE(NO_SYS_TYPES_H))
  AC_CHECK_HEADER(float.h, ,AC_DEFINE(NO_FLOAT_H))
  AC_CHECK_HEADERS(libc.h)
+ AC_CHECK_HEADERS(gd.h)
  
  AC_CHECK_HEADER(limits.h, ,AC_DEFINE(NO_LIMITS_H))
  AC_CHECK_HEADERS(values.h)
***************
*** 284,289 ****
--- 287,295 ----
  gp_CHECK_LIB_PATH(png, png_info_init, -lz)
  if test "$ac_cv_lib_png_png_info_init" = yes; then
    AC_DEFINE(HAVE_LIBPNG)
+ #MG#
+ wi_HEADER_PNG_H
+ #MG#
    gp_CHECK_HEADER(png.h)
    if test "$ac_cv_header_png_h" = yes; then
      gp_CHECK_HEADER(zlib.h)
***************
*** 306,311 ****
--- 312,426 ----
  
  dnl tell ansichek.h that we already know whether we are ANSI or not
  AC_DEFINE(AUTOCONF)
+ 
+ 
+ 
+ ##MG##
+ changequote(<<, >>)dnl
+ host=`uname -n 2>/dev/null | tr '[A-Z]' '[a-z]'`
+ os=`uname -s 2>/dev/null | tr '[A-Z]' '[a-z]'`
+ os_v=`uname -v 2>/dev/null | sed 's/^[^0-9.]*//;s/[^0-9.]*$//'`
+ os_r=`uname -r 2>/dev/null | sed 's/^[^0-9.]*//;s/[^0-9.]*$//'`
+ arch=`uname -m 2>/dev/null | tr '[A-Z]' '[a-z]'`
+ archp=`uname -p 2>/dev/null | tr '[A-Z]' '[a-z]'`
+ SYS=''
+ if test "$GCC" = yes ; then
+ 	BDYNAMIC="-Wl,-Bdynamic"
+ 	BSTATIC="-Wl,-Bstatic"
+ 	STATIC='-static'
+ else
+ 	BDYNAMIC="# -Wl,-Bdynamic"
+ 	BSTATIC="# -Wl,-Bstatic"
+ 	STATIC='# -static'
+ fi
+ 
+ case "$os" in
+ 	osf1)
+ 		OS="digitalunix${os_r}-$arch"
+ 		SYS=digitalunix
+ 		;;
+ 	aix)
+ 		OS="aix${os_v}.${os_r}"
+ 		SYS=aix
+ 		;;
+ 	freebsd)
+ 		OS="freebsd${os_r}-$arch"
+ 		SYS=freebsd
+ 		STATIC="-static"
+ 		;;
+ 	irix)
+ 		OS="irix${os_r}"
+ 		SYS=irix
+ 		;;
+ 	hp-ux)
+ 		os_r=`echo "${os_r}" | cut -d. -f2-`
+ 		OS="hpux${os_r}"
+ 		SYS=hpux
+ 		;;
+ 	netbsd)
+ 		OS="netbsd-$arch"
+ 		SYS=netbsd
+ 		;;
+ 	openbsd)
+ 		OS="openbsd-$arch"
+ 		SYS=openbsd
+ 		;;
+ 	sco*)
+ 		OS=scosv
+ 		SYS=sco
+ 		;;
+ 	linux)
+ 		OS="linux-$arch"
+ 		SYS=linux
+ #		BDYNAMIC="-Wl,-Bdynamic"
+ #		BSTATIC="-Wl,-Bstatic"
+ 		;;
+ 	bsd/os)
+ 		OS="bsdos${os_r}"
+ 		SYS=bsdos
+ 		;;
+ 	ultrix)
+ 		OS="ultrix-$arch"
+ 		SYS=ultrix
+ 		;;
+ 	unixware|eeyore)
+ 		OS="unixware${os_v}"
+ 		SYS=unixware
+ 		;;
+ 	sunos)
+ 		if [ "$arch" = "" ] ; then arch="sparc" ; fi
+ 		if [ "$archp" = "" ] ; then archp="$arch" ; fi
+ 		case "$os_r" in
+ 			[56789].*)
+ 				maj=`echo "$os_r" | cut -c1-1`
+ 				maj=`expr "$maj" - 3`
+ 				os_r=`echo "$os_r" | cut -c2-`
+ 				os_r="${maj}${os_r}"
+ 				OS="solaris${os_r}-$archp"
+ 				SYS=solaris
+ 				;;
+ 			*)
+ 				OS="sunos${os_r}-sparc"
+ 				SYS=sunos
+ 				;;
+ 		esac
+ 		;;
+ 	*)
+ 		OS="$os"
+ 		SYS="$os"
+ 		;;
+ esac
+ 
+ changequote([, ])dnl
+ 
+ AC_SUBST(OS)
+ AC_SUBST(SYS)
+ AC_SUBST(BDYNAMIC)
+ AC_SUBST(BSTATIC)
+ AC_SUBST(STATIC)
+ AC_SUBST(CPPFLAGS)
+ AC_SUBST(LDFLAGS)
+ ##MG##
  
  
  dnl rename makefiles in subdirectories, so that they don't take precedence
Only in /home/world/src/gnuplot: copyrights
Only in gnuplot: demo
Only in gnuplot/docs/latextut: makefile
Only in /home/world/src/gnuplot/docs/latextut: makefile.dst
Only in gnuplot/docs: makefile
Only in /home/world/src/gnuplot/docs: makefile.dst
Only in gnuplot: os2
diff -c -r gnuplot/term.h /home/world/src/gnuplot/term.h
*** gnuplot/term.h	Mon Feb  9 22:03:18 1998
--- /home/world/src/gnuplot/term.h	Sun Feb  8 12:32:29 1998
***************
*** 187,193 ****
  #include "fig.trm"      /* fig graphics */
  
  /* NOTE THAT GIF REQUIRES A SEPARATE LIBRARY : see term/gif.trm */
! #ifdef HAVE_LIBGD /* autoconf */
  #include "gif.trm"   /* GIF format. */
  #endif
  
--- 187,193 ----
  #include "fig.trm"      /* fig graphics */
  
  /* NOTE THAT GIF REQUIRES A SEPARATE LIBRARY : see term/gif.trm */
! #if defined(HAVE_LIBGD) && defined(HAVE_GD_H) /* autoconf */
  #include "gif.trm"   /* GIF format. */
  #endif
  
***************
*** 204,210 ****
  #include "pbm.trm"      /* portable bit map */
  
  /* NOTE THAT PNG REQUIRES A SEPARATE LIBRARY : see term/png.trm */
! #ifdef HAVE_LIBPNG /* autoconf */
  #include "png.trm"   /* png */
  #endif
  
--- 204,210 ----
  #include "pbm.trm"      /* portable bit map */
  
  /* NOTE THAT PNG REQUIRES A SEPARATE LIBRARY : see term/png.trm */
! #if defined(HAVE_LIBPNG) && defined(CAN_USE_PNG_H) /* autoconf */
  #include "png.trm"   /* png */
  #endif
  
Only in gnuplot: win

file: /Techref/app/inet/ftp/ncftpd/doc/reports/gnuplot-patch.txt, 155KB, , updated: 1999/2/20 11:22, local time: 2024/11/29 07:45,
TOP NEW HELP FIND: 
3.149.250.19:LOG IN

 ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://ecomorder.com/techref/app/inet/ftp/ncftpd/doc/reports/gnuplot-patch.txt"> app inet ftp ncftpd doc reports gnuplot-patch</A>

Did you find what you needed?

 

Welcome to ecomorder.com!

 

Welcome to ecomorder.com!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .