[BACK]Return to configure CVS log [TXT][DIR] Up to [local] / OpenXM_contrib / gnuplot

Diff for /OpenXM_contrib/gnuplot/Attic/configure between version 1.1.1.2 and 1.1.1.3

version 1.1.1.2, 2000/01/22 14:15:49 version 1.1.1.3, 2003/09/15 07:09:22
Line 12  ac_help=
Line 12  ac_help=
 ac_default_prefix=/usr/local  ac_default_prefix=/usr/local
 # Any additions from configure.in:  # Any additions from configure.in:
 ac_help="$ac_help  ac_help="$ac_help
     --disable-dependency-tracking Speeds up one-time builds
     --enable-dependency-tracking  Do not reject slow dependency extractors"
   ac_help="$ac_help
     --with-x                use the X Window System"
   ac_help="$ac_help
     --with-lasergnu         install lasergnu printer script"
   ac_help="$ac_help
     --with-linux-vga        use the Linux SVGA console driver
                             (requires /usr/lib/libvga)"
   ac_help="$ac_help
   --with-readline         use the builtin minimal readline function (default)    --with-readline         use the builtin minimal readline function (default)
   --without-readline      do not use the builtin readline function    --without-readline      do not use the builtin readline function
   --with-readline=gnu     use the GNU readline library    --with-readline=gnu     use the GNU readline library
   --with-readline=PATH            Specify the location of GNU readline"    --with-readline=PATH    Specify the location of GNU readline"
 ac_help="$ac_help  ac_help="$ac_help
   --with-plot             use the Unix plot library    --with-gd[=PATH]        enable gif terminal with Tom Boutell's gd library
   --with-plot=PATH                Specify the location of GNU libplot"                            (requires GD library)"
 ac_help="$ac_help  ac_help="$ac_help
   --with-gd               enable gif terminal with Tom Boutell's gd library    --with-plot[=PATH]      use the Unix plot library"
                           (requires GD library)  
   --with-gd=PATH                  Specify the location of libgd"  
 ac_help="$ac_help  ac_help="$ac_help
   --with-png              enable png terminal    --with-png[=PATH]       enable png terminal
                           (requires libpng and libz)                            (requires libpng and libz)"
   --with-png=PATH                 Specify the location of libpng"  
 ac_help="$ac_help  ac_help="$ac_help
     --with-pdf[=PATH]       enable pdf terminal
                             (requires PDFLib)"
   ac_help="$ac_help
   --with-cwdrc            check current directory for .gnuplot file,    --with-cwdrc            check current directory for .gnuplot file,
                           normally disabled for security reasons"                            normally disabled for security reasons"
 ac_help="$ac_help  ac_help="$ac_help
   --with-lasergnu         install lasergnu printer script"    --enable-ggi            enable ggi driver (EXPERIMENTAL)"
 ac_help="$ac_help  ac_help="$ac_help
   --with-linux-vga        use the Linux SVGA console driver  
                           (requires /usr/lib/libvga)"  
 ac_help="$ac_help  
   --enable-iris           enable IRIS terminal (IRIS4D only)"    --enable-iris           enable IRIS terminal (IRIS4D only)"
 ac_help="$ac_help  ac_help="$ac_help
   --enable-mgr            enable MGR terminal"    --enable-mgr            enable MGR terminal"
 ac_help="$ac_help  ac_help="$ac_help
   --enable-rgip           enable Redwood Graphics Interface Protocol"    --enable-rgip           enable Redwood Graphics Interface Protocol"
 ac_help="$ac_help  
   --with-x                use the X Window System"  
   
 # Initialize some variables set by options.  # Initialize some variables set by options.
 # The variables have the same names as the options, with  # The variables have the same names as the options, with
Line 554  fi
Line 559  fi
   
   
   
 # From configure.in Revision: 1.41.2.7  
   
   
   
 VERSION=`sed -n 's/.*version.*"\(.*\)".*/\1/p' $srcdir/version.c|tr -d ' '`  VERSION=`sed -n 's/.*version.*"\(.*\)".*/\1/p' $srcdir/version.c|tr -d ' '`
 PL=`sed -n 's/.*patchlevel.*"\(.*\)".*/\1/p' $srcdir/version.c|tr -d ' '`  PL=`sed -n 's/.*patchlevel.*"\(.*\)".*/\1/p' $srcdir/version.c|tr -d ' '`
 ac_aux_dir=  ac_aux_dir=
Line 576  ac_config_guess=$ac_aux_dir/config.guess
Line 584  ac_config_guess=$ac_aux_dir/config.guess
 ac_config_sub=$ac_aux_dir/config.sub  ac_config_sub=$ac_aux_dir/config.sub
 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.  ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
   
   
   # expand $ac_aux_dir to an absolute path
   am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd`
   
 # Find a good install program.  We prefer a C program (faster),  # Find a good install program.  We prefer a C program (faster),
 # so one script is as good as another.  But avoid the broken or  # so one script is as good as another.  But avoid the broken or
 # incompatible versions:  # incompatible versions:
Line 588  ac_configure=$ac_aux_dir/configure # This should be Cy
Line 600  ac_configure=$ac_aux_dir/configure # This should be Cy
 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 # ./install, which can be erroneously created by make from ./install.sh.  # ./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 $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
 echo "configure:592: checking for a BSD compatible install" >&5  echo "configure:604: checking for a BSD compatible install" >&5
 if test -z "$INSTALL"; then  if test -z "$INSTALL"; then
 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
Line 641  test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL
Line 653  test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL
 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'  test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   
 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6  echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
 echo "configure:645: checking whether build environment is sane" >&5  echo "configure:657: checking whether build environment is sane" >&5
 # Just in case  # Just in case
 sleep 1  sleep 1
 echo timestamp > conftestfile  echo timestamp > conftest.file
 # Do `set' in a subshell so we don't clobber the current shell's  # Do `set' in a subshell so we don't clobber the current shell's
 # arguments.  Must try -L first in case configure is actually a  # arguments.  Must try -L first in case configure is actually a
 # symlink; some systems play weird games with the mod time of symlinks  # symlink; some systems play weird games with the mod time of symlinks
 # (eg FreeBSD returns the mod time of the symlink's containing  # (eg FreeBSD returns the mod time of the symlink's containing
 # directory).  # directory).
 if (  if (
    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`     set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
    if test "$*" = "X"; then     if test "$*" = "X"; then
       # -L didn't work.        # -L didn't work.
       set X `ls -t $srcdir/configure conftestfile`        set X `ls -t $srcdir/configure conftest.file`
    fi     fi
    if test "$*" != "X $srcdir/configure conftestfile" \     rm -f conftest.file
       && test "$*" != "X conftestfile $srcdir/configure"; then     if test "$*" != "X $srcdir/configure conftest.file" \
         && test "$*" != "X conftest.file $srcdir/configure"; then
   
       # If neither matched, then we have a broken ls.  This can happen        # If neither matched, then we have a broken ls.  This can happen
       # if, for instance, CONFIG_SHELL is bash and it inherits a        # if, for instance, CONFIG_SHELL is bash and it inherits a
Line 667  if (
Line 680  if (
 alias in your environment" 1>&2; exit 1; }  alias in your environment" 1>&2; exit 1; }
    fi     fi
   
    test "$2" = conftestfile     test "$2" = conftest.file
    )     )
 then  then
    # Ok.     # Ok.
Line 676  else
Line 689  else
    { echo "configure: error: newly created file is older than distributed files!     { echo "configure: error: newly created file is older than distributed files!
 Check your system clock" 1>&2; exit 1; }  Check your system clock" 1>&2; exit 1; }
 fi  fi
 rm -f conftest*  
 echo "$ac_t""yes" 1>&6  echo "$ac_t""yes" 1>&6
 if test "$program_transform_name" = s,x,x,; then  if test "$program_transform_name" = s,x,x,; then
   program_transform_name=    program_transform_name=
Line 697  test "$program_suffix" != NONE &&
Line 709  test "$program_suffix" != NONE &&
 # sed with no file args requires a program.  # sed with no file args requires a program.
 test "$program_transform_name" = "" && program_transform_name="s,x,x,"  test "$program_transform_name" = "" && program_transform_name="s,x,x,"
   
   test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
   # Use eval to expand $SHELL
   if eval "$MISSING --run true"; then
     am_missing_run="$MISSING --run "
   else
     am_missing_run=
     am_backtick='`'
     echo "configure: warning: ${am_backtick}missing' script is too old or missing" 1>&2
   fi
   
   for ac_prog in mawk gawk nawk awk
   do
   # Extract the first word of "$ac_prog", so it can be a program name with args.
   set dummy $ac_prog; ac_word=$2
   echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
   echo "configure:728: checking for $ac_word" >&5
   if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
     echo $ac_n "(cached) $ac_c" 1>&6
   else
     if test -n "$AWK"; then
     ac_cv_prog_AWK="$AWK" # Let the user override the test.
   else
     IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     ac_dummy="$PATH"
     for ac_dir in $ac_dummy; do
       test -z "$ac_dir" && ac_dir=.
       if test -f $ac_dir/$ac_word; then
         ac_cv_prog_AWK="$ac_prog"
         break
       fi
     done
     IFS="$ac_save_ifs"
   fi
   fi
   AWK="$ac_cv_prog_AWK"
   if test -n "$AWK"; then
     echo "$ac_t""$AWK" 1>&6
   else
     echo "$ac_t""no" 1>&6
   fi
   
   test -n "$AWK" && break
   done
   
 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6  echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
 echo "configure:702: checking whether ${MAKE-make} sets \${MAKE}" >&5  echo "configure:758: checking whether ${MAKE-make} sets \${MAKE}" >&5
 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`  set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
Line 724  else
Line 780  else
   SET_MAKE="MAKE=${MAKE-make}"    SET_MAKE="MAKE=${MAKE-make}"
 fi  fi
   
   # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
   if test "${enable_dependency_tracking+set}" = set; then
 PACKAGE=gnuplot    enableval="$enable_dependency_tracking"
     :
 VERSION=$VERSION.$PL  
   
 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then  
   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }  
 fi  fi
 cat >> confdefs.h <<EOF  
 #define PACKAGE "$PACKAGE"  
 EOF  
   
 cat >> confdefs.h <<EOF  if test "x$enable_dependency_tracking" != xno; then
 #define VERSION "$VERSION"    am_depcomp="$ac_aux_dir/depcomp"
 EOF    AMDEPBACKSLASH='\'
   
   
   
 missing_dir=`cd $ac_aux_dir && pwd`  
 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6  
 echo "configure:749: checking for working aclocal" >&5  
 # Run test in a subshell; some versions of sh will print an error if  
 # an executable is not found, even if stderr is redirected.  
 # Redirect stdin to placate older versions of autoconf.  Sigh.  
 if (aclocal --version) < /dev/null > /dev/null 2>&1; then  
    ACLOCAL=aclocal  
    echo "$ac_t""found" 1>&6  
 else  
    ACLOCAL="$missing_dir/missing aclocal"  
    echo "$ac_t""missing" 1>&6  
 fi  fi
   
 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6  
 echo "configure:762: checking for working autoconf" >&5  
 # Run test in a subshell; some versions of sh will print an error if  
 # an executable is not found, even if stderr is redirected.  
 # Redirect stdin to placate older versions of autoconf.  Sigh.  
 if (autoconf --version) < /dev/null > /dev/null 2>&1; then  
    AUTOCONF=autoconf  
    echo "$ac_t""found" 1>&6  
 else  
    AUTOCONF="$missing_dir/missing autoconf"  
    echo "$ac_t""missing" 1>&6  
 fi  
   
 echo $ac_n "checking for working automake""... $ac_c" 1>&6  if test "x$enable_dependency_tracking" != xno; then
 echo "configure:775: checking for working automake" >&5    AMDEP_TRUE=
 # Run test in a subshell; some versions of sh will print an error if    AMDEP_FALSE='#'
 # an executable is not found, even if stderr is redirected.  
 # Redirect stdin to placate older versions of autoconf.  Sigh.  
 if (automake --version) < /dev/null > /dev/null 2>&1; then  
    AUTOMAKE=automake  
    echo "$ac_t""found" 1>&6  
 else  else
    AUTOMAKE="$missing_dir/missing automake"    AMDEP_TRUE='#'
    echo "$ac_t""missing" 1>&6    AMDEP_FALSE=
 fi  fi
   
 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6  
 echo "configure:788: checking for working autoheader" >&5  
 # Run test in a subshell; some versions of sh will print an error if  
 # an executable is not found, even if stderr is redirected.  
 # Redirect stdin to placate older versions of autoconf.  Sigh.  
 if (autoheader --version) < /dev/null > /dev/null 2>&1; then  
    AUTOHEADER=autoheader  
    echo "$ac_t""found" 1>&6  
 else  
    AUTOHEADER="$missing_dir/missing autoheader"  
    echo "$ac_t""missing" 1>&6  
 fi  
   
 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6  
 echo "configure:801: checking for working makeinfo" >&5  
 # Run test in a subshell; some versions of sh will print an error if  
 # an executable is not found, even if stderr is redirected.  
 # Redirect stdin to placate older versions of autoconf.  Sigh.  
 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then  
    MAKEINFO=makeinfo  
    echo "$ac_t""found" 1>&6  
 else  
    MAKEINFO="$missing_dir/missing makeinfo"  
    echo "$ac_t""missing" 1>&6  
 fi  
   
 install_sh="$missing_dir/install-sh"  
 test -f "$install_sh" || install_sh="$missing_dir/install.sh"  
   
 for ac_prog in gnutar gtar tar  rm -f .deps 2>/dev/null
 do  mkdir .deps 2>/dev/null
 # Extract the first word of "$ac_prog", so it can be a program name with args.  if test -d .deps; then
 set dummy $ac_prog; ac_word=$2    DEPDIR=.deps
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  
 echo "configure:821: checking for $ac_word" >&5  
 if eval "test \"`echo '$''{'ac_cv_prog_AMTAR'+set}'`\" = set"; then  
   echo $ac_n "(cached) $ac_c" 1>&6  
 else  else
   if test -n "$AMTAR"; then    # MS-DOS does not allow filenames that begin with a dot.
   ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.    DEPDIR=_deps
 else  
   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  
   ac_dummy="$PATH"  
   for ac_dir in $ac_dummy; do  
     test -z "$ac_dir" && ac_dir=.  
     if test -f $ac_dir/$ac_word; then  
       ac_cv_prog_AMTAR="$ac_prog"  
       break  
     fi  
   done  
   IFS="$ac_save_ifs"  
 fi  fi
 fi  rmdir .deps 2>/dev/null
 AMTAR="$ac_cv_prog_AMTAR"  
 if test -n "$AMTAR"; then  
   echo "$ac_t""$AMTAR" 1>&6  
 else  
   echo "$ac_t""no" 1>&6  
 fi  
   
 test -n "$AMTAR" && break  
 done  
   
 AMTARFLAGS=  # test to see if srcdir already configured
 if test -n "$AMTAR"; then  if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
   if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then     test -f $srcdir/config.status; then
         AMTARFLAGS=o    { echo "configure: error: source directory already configured; run \"make distclean\" there first" 1>&2; exit 1; }
   fi  
 fi  fi
   
   # Define the identity of the package.
   PACKAGE=gnuplot
   VERSION=$VERSION.$PL
   cat >> confdefs.h <<EOF
   #define PACKAGE "$PACKAGE"
   EOF
   
   cat >> confdefs.h <<EOF
   #define VERSION "$VERSION"
   EOF
   
   
   # Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
   # the ones we care about.
   
 # Check whether --with-readline or --without-readline was given.  # Autoconf 2.50 always computes EXEEXT.  However we need to be
 if test "${with_readline+set}" = set; then  # compatible with 2.13, for now.  So we always define EXEEXT, but we
   withval="$with_readline"  # don't compute it.
   :  
 else  
   test -z "$with_readline" && with_readline=yes  
   
 fi  # Similar for OBJEXT -- only we only use OBJEXT if the user actually
   # requests that it be used.  This is a bit dumb.
   : ${OBJEXT=o}
   
 # Check whether --with-plot or --without-plot was given.  
 if test "${with_plot+set}" = set; then  
   withval="$with_plot"  
   :  
 else  
   test -z "$with_plot" && with_plot=no  
   
 fi  # Some tools Automake needs.
   
 # Check whether --with-gd or --without-gd was given.  ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
 if test "${with_gd+set}" = set; then  
   withval="$with_gd"  
   :  
 else  
   test -z "$with_gd" && with_gd=yes  
   
 fi  
   
 # Check whether --with-png or --without-png was given.  AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 if test "${with_png+set}" = set; then  
   withval="$with_png"  
   :  
 else  
   test -z "$with_png" && with_png=yes  
   
 fi  
   
 # Check whether --with-cwdrc or --without-cwdrc was given.  AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
 if test "${with_cwdrc+set}" = set; then  
   withval="$with_cwdrc"  
   :  
 else  
   test -z "$with_cwdrc" && with_cwdrc=no  
   
 fi  
   
 # Check whether --with-lasergnu or --without-lasergnu was given.  AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 if test "${with_lasergnu+set}" = set; then  
   withval="$with_lasergnu"  
   if test "$withval" = yes; then LASERGNU=lasergnu_install; \  
 else LASERGNU=lasergnu_noinstall; fi  
 else  
   LASERGNU=lasergnu_noinstall  
   
 fi  
   
 # Check whether --with-linux-vga or --without-linux-vga was given.  MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 if test "${with_linux_vga+set}" = set; then  
   withval="$with_linux_vga"  
   :  
 else  
   test -z "$with_linux_vga" && with_linux_vga=no  
   
 fi  
   
 # Check whether --enable-iris or --disable-iris was given.  AMTAR=${AMTAR-"${am_missing_run}tar"}
 if test "${enable_iris+set}" = set; then  
   enableval="$enable_iris"  
   :  
 else  
   test -z "$enable_iris" && enable_iris=no  
   
 fi  install_sh=${install_sh-"$am_aux_dir/install-sh"}
   
 # Check whether --enable-mgr or --disable-mgr was given.  INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 if test "${enable_mgr+set}" = set; then  
   enableval="$enable_mgr"  
   :  
 else  
   test -z "$enable_mgr" && enable_mgr=no  
   
 fi  # We need awk for the "check" target.  The system "awk" is bad on
   # some platforms.
   
 # Check whether --enable-rgip or --disable-rgip was given.  
 if test "${enable_rgip+set}" = set; then  
   enableval="$enable_rgip"  
   :  
 else  
   test -z "$enable_rgip" && enable_rgip=no  
   
 fi  
   
   
 # Extract the first word of "gcc", so it can be a program name with args.  # Extract the first word of "gcc", so it can be a program name with args.
 set dummy gcc; ac_word=$2  set dummy gcc; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 echo "configure:956: checking for $ac_word" >&5  echo "configure:878: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
Line 982  if test -z "$CC"; then
Line 904  if test -z "$CC"; then
   # Extract the first word of "cc", so it can be a program name with args.    # Extract the first word of "cc", so it can be a program name with args.
 set dummy cc; ac_word=$2  set dummy cc; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 echo "configure:986: checking for $ac_word" >&5  echo "configure:908: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
Line 1033  fi
Line 955  fi
       # Extract the first word of "cl", so it can be a program name with args.        # Extract the first word of "cl", so it can be a program name with args.
 set dummy cl; ac_word=$2  set dummy cl; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 echo "configure:1037: checking for $ac_word" >&5  echo "configure:959: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
Line 1065  fi
Line 987  fi
 fi  fi
   
 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
 echo "configure:1069: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5  echo "configure:991: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
   
 ac_ext=c  ac_ext=c
 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
Line 1076  cross_compiling=$ac_cv_prog_cc_cross
Line 998  cross_compiling=$ac_cv_prog_cc_cross
   
 cat > conftest.$ac_ext << EOF  cat > conftest.$ac_ext << EOF
   
 #line 1080 "configure"  #line 1002 "configure"
 #include "confdefs.h"  #include "confdefs.h"
   
 main(){return(0);}  main(){return(0);}
 EOF  EOF
 if { (eval echo configure:1085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   ac_cv_prog_cc_works=yes    ac_cv_prog_cc_works=yes
   # If we can't run a trivial program, we are probably using a cross compiler.    # If we can't run a trivial program, we are probably using a cross compiler.
   if (./conftest; exit) 2>/dev/null; then    if (./conftest; exit) 2>/dev/null; then
Line 1107  if test $ac_cv_prog_cc_works = no; then
Line 1029  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; }    { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
 fi  fi
 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
 echo "configure:1111: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5  echo "configure:1033: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6  echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
 cross_compiling=$ac_cv_prog_cc_cross  cross_compiling=$ac_cv_prog_cc_cross
   
 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6  echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
 echo "configure:1116: checking whether we are using GNU C" >&5  echo "configure:1038: checking whether we are using GNU C" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
Line 1121  else
Line 1043  else
   yes;    yes;
 #endif  #endif
 EOF  EOF
 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1125: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
   ac_cv_prog_gcc=yes    ac_cv_prog_gcc=yes
 else  else
   ac_cv_prog_gcc=no    ac_cv_prog_gcc=no
Line 1140  ac_test_CFLAGS="${CFLAGS+set}"
Line 1062  ac_test_CFLAGS="${CFLAGS+set}"
 ac_save_CFLAGS="$CFLAGS"  ac_save_CFLAGS="$CFLAGS"
 CFLAGS=  CFLAGS=
 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
 echo "configure:1144: checking whether ${CC-cc} accepts -g" >&5  echo "configure:1066: checking whether ${CC-cc} accepts -g" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
Line 1172  else
Line 1094  else
 fi  fi
   
   
   am_make=${MAKE-make}
   cat > confinc << 'END'
   doit:
           @echo done
   END
   # If we don't find an include directive, just comment out the code.
   echo $ac_n "checking for style of include used by $am_make""... $ac_c" 1>&6
   echo "configure:1105: checking for style of include used by $am_make" >&5
   am__include='#'
   am__quote=
   _am_result=none
   # First try GNU make style include.
   echo "include confinc" > confmf
   # We grep out `Entering directory' and `Leaving directory'
   # messages which can occur if `w' ends up in MAKEFLAGS.
   # In particular we don't look at `^make:' because GNU make might
   # be invoked under some other name (usually "gmake"), in which
   # case it prints its new name instead of `make'.
   if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
      am__include=include
      am__quote=
      _am_result=GNU
   fi
   # Now try BSD make style include.
   if test "$am__include" = "#"; then
      echo '.include "confinc"' > confmf
      if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
         am__include=.include
         am__quote='"'
         _am_result=BSD
      fi
   fi
   
   
   echo "$ac_t""$_am_result" 1>&6
   rm -f confinc confmf
   
   
   depcc="$CC"   am_compiler_list=
   
   echo $ac_n "checking dependency style of $depcc""... $ac_c" 1>&6
   echo "configure:1139: checking dependency style of $depcc" >&5
   if eval "test \"`echo '$''{'am_cv_CC_dependencies_compiler_type'+set}'`\" = set"; then
     echo $ac_n "(cached) $ac_c" 1>&6
   else
     if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
     # We make a subdir and do the tests there.  Otherwise we can end up
     # making bogus files that we don't know about and never remove.  For
     # instance it was reported that on HP-UX the gcc test will end up
     # making a dummy file named `D' -- because `-MD' means `put the output
     # in D'.
     mkdir conftest.dir
     # Copy depcomp to subdir because otherwise we won't find it if we're
     # using a relative directory.
     cp "$am_depcomp" conftest.dir
     cd conftest.dir
   
     am_cv_CC_dependencies_compiler_type=none
     if test "$am_compiler_list" = ""; then
        am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
     fi
     for depmode in $am_compiler_list; do
       # We need to recreate these files for each test, as the compiler may
       # overwrite some of them when testing with obscure command lines.
       # This happens at least with the AIX C compiler.
       echo '#include "conftest.h"' > conftest.c
       echo 'int i;' > conftest.h
       echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
   
       case $depmode in
       nosideeffect)
         # after this tag, mechanisms are not by side-effect, so they'll
         # only be used when explicitly requested
         if test "x$enable_dependency_tracking" = xyes; then
           continue
         else
           break
         fi
         ;;
       none) break ;;
       esac
       # We check with `-c' and `-o' for the sake of the "dashmstdout"
       # mode.  It turns out that the SunPro C++ compiler does not properly
       # handle `-M -o', and we need to detect this.
       if depmode=$depmode \
          source=conftest.c object=conftest.o \
          depfile=conftest.Po tmpdepfile=conftest.TPo \
          $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
          grep conftest.h conftest.Po > /dev/null 2>&1 &&
          ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
         am_cv_CC_dependencies_compiler_type=$depmode
         break
       fi
     done
   
     cd ..
     rm -rf conftest.dir
   else
     am_cv_CC_dependencies_compiler_type=none
   fi
   
   fi
   
   echo "$ac_t""$am_cv_CC_dependencies_compiler_type" 1>&6
   CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
   
   
   
   
   
 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6  echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
 echo "configure:1179: checking for ${CC-cc} option to accept ANSI C" >&5  echo "configure:1209: checking for ${CC-cc} option to accept ANSI C" >&5
 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then  if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
Line 1192  for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX
Line 1222  for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX
 do  do
   CC="$ac_save_CC $ac_arg"    CC="$ac_save_CC $ac_arg"
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 1196 "configure"  #line 1226 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 #include <stdarg.h>  #include <stdarg.h>
 #include <stdio.h>  #include <stdio.h>
Line 1229  return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) !
Line 1259  return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) !
   
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:1233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:1263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*    rm -rf conftest*
   am_cv_prog_cc_stdc="$ac_arg"; break    am_cv_prog_cc_stdc="$ac_arg"; break
 else  else
Line 1253  case "x$am_cv_prog_cc_stdc" in
Line 1283  case "x$am_cv_prog_cc_stdc" in
 esac  esac
   
 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6  echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
 echo "configure:1257: checking how to run the C preprocessor" >&5  echo "configure:1287: checking how to run the C preprocessor" >&5
 # On Suns, sometimes $CPP names a directory.  # On Suns, sometimes $CPP names a directory.
 if test -n "$CPP" && test -d "$CPP"; then  if test -n "$CPP" && test -d "$CPP"; then
   CPP=    CPP=
Line 1268  else
Line 1298  else
   # On the NeXT, cc -E runs the code through the compiler's parser,    # On the NeXT, cc -E runs the code through the compiler's parser,
   # not just through cpp.    # not just through cpp.
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 1272 "configure"  #line 1302 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 #include <assert.h>  #include <assert.h>
 Syntax Error  Syntax Error
 EOF  EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 { (eval echo configure:1278: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1308: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then  if test -z "$ac_err"; then
   :    :
Line 1285  else
Line 1315  else
   rm -rf conftest*    rm -rf conftest*
   CPP="${CC-cc} -E -traditional-cpp"    CPP="${CC-cc} -E -traditional-cpp"
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 1289 "configure"  #line 1319 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 #include <assert.h>  #include <assert.h>
 Syntax Error  Syntax Error
 EOF  EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 { (eval echo configure:1295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then  if test -z "$ac_err"; then
   :    :
Line 1302  else
Line 1332  else
   rm -rf conftest*    rm -rf conftest*
   CPP="${CC-cc} -nologo -E"    CPP="${CC-cc} -nologo -E"
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 1306 "configure"  #line 1336 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 #include <assert.h>  #include <assert.h>
 Syntax Error  Syntax Error
 EOF  EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 { (eval echo configure:1312: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1342: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then  if test -z "$ac_err"; then
   :    :
Line 1335  echo "$ac_t""$CPP" 1>&6
Line 1365  echo "$ac_t""$CPP" 1>&6
   
   
 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6  echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
 echo "configure:1339: checking for function prototypes" >&5  echo "configure:1369: checking for function prototypes" >&5
 if test "$am_cv_prog_cc_stdc" != no; then  if test "$am_cv_prog_cc_stdc" != no; then
   echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
   cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
Line 1346  EOF
Line 1376  EOF
 else  else
   echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
   U=_ ANSI2KNR=./ansi2knr    U=_ ANSI2KNR=./ansi2knr
   # Ensure some checks needed by ansi2knr itself.  fi
   echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6  # Ensure some checks needed by ansi2knr itself.
 echo "configure:1352: checking for ANSI C header files" >&5  echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
   echo "configure:1383: checking for ANSI C header files" >&5
 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 1357 "configure"  #line 1388 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 #include <stdlib.h>  #include <stdlib.h>
 #include <stdarg.h>  #include <stdarg.h>
Line 1361  else
Line 1392  else
 #include <float.h>  #include <float.h>
 EOF  EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 { (eval echo configure:1365: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then  if test -z "$ac_err"; then
   rm -rf conftest*    rm -rf conftest*
Line 1378  rm -f conftest*
Line 1409  rm -f conftest*
 if test $ac_cv_header_stdc = yes; then  if test $ac_cv_header_stdc = yes; then
   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 1382 "configure"  #line 1413 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 #include <string.h>  #include <string.h>
 EOF  EOF
Line 1396  fi
Line 1427  fi
 if test $ac_cv_header_stdc = yes; then  if test $ac_cv_header_stdc = yes; then
   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 1400 "configure"  #line 1431 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 #include <stdlib.h>  #include <stdlib.h>
 EOF  EOF
Line 1417  if test "$cross_compiling" = yes; then
Line 1448  if test "$cross_compiling" = yes; then
   :    :
 else  else
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 1421 "configure"  #line 1452 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 #include <ctype.h>  #include <ctype.h>
 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')  #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
Line 1428  if (XOR (islower (i), ISLOWER (i)) || toupper (i) != T
Line 1459  if (XOR (islower (i), ISLOWER (i)) || toupper (i) != T
 exit (0); }  exit (0); }
   
 EOF  EOF
 if { (eval echo configure:1432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:1463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then  then
   :    :
 else  else
Line 1451  EOF
Line 1482  EOF
   
 fi  fi
   
   for ac_hdr in string.h  for ac_hdr in string.h
 do  do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
 echo "configure:1459: checking for $ac_hdr" >&5  echo "configure:1490: checking for $ac_hdr" >&5
 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 1464 "configure"  #line 1495 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 #include <$ac_hdr>  #include <$ac_hdr>
 EOF  EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  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; }  { (eval echo configure:1500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then  if test -z "$ac_err"; then
   rm -rf conftest*    rm -rf conftest*
Line 1491  else
Line 1522  else
 fi  fi
 done  done
   
 fi  
   
 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6  echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
 echo "configure:1498: checking how to run the C preprocessor" >&5  echo "configure:1528: checking how to run the C preprocessor" >&5
 # On Suns, sometimes $CPP names a directory.  # On Suns, sometimes $CPP names a directory.
 if test -n "$CPP" && test -d "$CPP"; then  if test -n "$CPP" && test -d "$CPP"; then
   CPP=    CPP=
Line 1509  else
Line 1539  else
   # On the NeXT, cc -E runs the code through the compiler's parser,    # On the NeXT, cc -E runs the code through the compiler's parser,
   # not just through cpp.    # not just through cpp.
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 1513 "configure"  #line 1543 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 #include <assert.h>  #include <assert.h>
 Syntax Error  Syntax Error
 EOF  EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 { (eval echo configure:1519: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1549: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then  if test -z "$ac_err"; then
   :    :
Line 1526  else
Line 1556  else
   rm -rf conftest*    rm -rf conftest*
   CPP="${CC-cc} -E -traditional-cpp"    CPP="${CC-cc} -E -traditional-cpp"
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 1530 "configure"  #line 1560 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 #include <assert.h>  #include <assert.h>
 Syntax Error  Syntax Error
 EOF  EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 { (eval echo configure:1536: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then  if test -z "$ac_err"; then
   :    :
Line 1543  else
Line 1573  else
   rm -rf conftest*    rm -rf conftest*
   CPP="${CC-cc} -nologo -E"    CPP="${CC-cc} -nologo -E"
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 1547 "configure"  #line 1577 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 #include <assert.h>  #include <assert.h>
 Syntax Error  Syntax Error
 EOF  EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 { (eval echo configure:1553: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1583: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then  if test -z "$ac_err"; then
   :    :
Line 1574  fi
Line 1604  fi
 echo "$ac_t""$CPP" 1>&6  echo "$ac_t""$CPP" 1>&6
   
 echo $ac_n "checking for working const""... $ac_c" 1>&6  echo $ac_n "checking for working const""... $ac_c" 1>&6
 echo "configure:1578: checking for working const" >&5  echo "configure:1608: checking for working const" >&5
 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 1583 "configure"  #line 1613 "configure"
 #include "confdefs.h"  #include "confdefs.h"
   
 int main() {  int main() {
Line 1628  ccp = (char const *const *) p;
Line 1658  ccp = (char const *const *) p;
   
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:1632: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:1662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*    rm -rf conftest*
   ac_cv_c_const=yes    ac_cv_c_const=yes
 else  else
Line 1649  EOF
Line 1679  EOF
 fi  fi
   
 echo $ac_n "checking for inline""... $ac_c" 1>&6  echo $ac_n "checking for inline""... $ac_c" 1>&6
 echo "configure:1653: checking for inline" >&5  echo "configure:1683: checking for inline" >&5
 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   ac_cv_c_inline=no    ac_cv_c_inline=no
 for ac_kw in inline __inline__ __inline; do  for ac_kw in inline __inline__ __inline; do
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 1660 "configure"  #line 1690 "configure"
 #include "confdefs.h"  #include "confdefs.h"
   
 int main() {  int main() {
 } $ac_kw foo() {  } $ac_kw foo() {
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:1667: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:1697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*    rm -rf conftest*
   ac_cv_c_inline=$ac_kw; break    ac_cv_c_inline=$ac_kw; break
 else  else
Line 1691  esac
Line 1721  esac
   
   
 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6  echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
 echo "configure:1695: checking for preprocessor stringizing operator" >&5  echo "configure:1725: checking for preprocessor stringizing operator" >&5
 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 1700 "configure"  #line 1730 "configure"
 #include "confdefs.h"  #include "confdefs.h"
   
 #define x(y) #y  #define x(y) #y
Line 1727  echo "$ac_t""${ac_cv_c_stringize}" 1>&6
Line 1757  echo "$ac_t""${ac_cv_c_stringize}" 1>&6
   
   
 echo $ac_n "checking if compiler handles warn and error directives correctly""... $ac_c" 1>&6  echo $ac_n "checking if compiler handles warn and error directives correctly""... $ac_c" 1>&6
 echo "configure:1731: checking if compiler handles warn and error directives correctly" >&5  echo "configure:1761: checking if compiler handles warn and error directives correctly" >&5
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 1733 "configure"  #line 1763 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 #if 0  #if 0
 #error "error"  #error "error"
Line 1737  cat > conftest.$ac_ext <<EOF
Line 1767  cat > conftest.$ac_ext <<EOF
 #endif  #endif
 EOF  EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 { (eval echo configure:1741: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then  if test -z "$ac_err"; then
   rm -rf conftest*    rm -rf conftest*
Line 1761  rm -f conftest*
Line 1791  rm -f conftest*
 # Uses ac_ vars as temps to allow command line to override cache and checks.  # 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.  # --without-x overrides everything else, but does not touch the cache.
 echo $ac_n "checking for X""... $ac_c" 1>&6  echo $ac_n "checking for X""... $ac_c" 1>&6
 echo "configure:1765: checking for X" >&5  echo "configure:1795: checking for X" >&5
   
 # Check whether --with-x or --without-x was given.  # Check whether --with-x or --without-x was given.
 if test "${with_x+set}" = set; then  if test "${with_x+set}" = set; then
Line 1823  if test "$ac_x_includes" = NO; then
Line 1853  if test "$ac_x_includes" = NO; then
   
   # First, try using that file with no special directory specified.    # First, try using that file with no special directory specified.
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 1827 "configure"  #line 1857 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 #include <$x_direct_test_include>  #include <$x_direct_test_include>
 EOF  EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 { (eval echo configure:1832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then  if test -z "$ac_err"; then
   rm -rf conftest*    rm -rf conftest*
Line 1897  if test "$ac_x_libraries" = NO; then
Line 1927  if test "$ac_x_libraries" = NO; then
   ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
   LIBS="-l$x_direct_test_library $LIBS"    LIBS="-l$x_direct_test_library $LIBS"
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 1901 "configure"  #line 1931 "configure"
 #include "confdefs.h"  #include "confdefs.h"
   
 int main() {  int main() {
 ${x_direct_test_function}()  ${x_direct_test_function}()
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:1908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   LIBS="$ac_save_LIBS"    LIBS="$ac_save_LIBS"
 # We can link X programs with no special library path.  # We can link X programs with no special library path.
Line 2010  else
Line 2040  else
     case "`(uname -sr) 2>/dev/null`" in      case "`(uname -sr) 2>/dev/null`" in
     "SunOS 5"*)      "SunOS 5"*)
       echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6        echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
 echo "configure:2014: checking whether -R must be followed by a space" >&5  echo "configure:2044: checking whether -R must be followed by a space" >&5
       ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"        ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
       cat > conftest.$ac_ext <<EOF        cat > conftest.$ac_ext <<EOF
 #line 2017 "configure"  #line 2047 "configure"
 #include "confdefs.h"  #include "confdefs.h"
   
 int main() {  int main() {
   
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:2024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   ac_R_nospace=yes    ac_R_nospace=yes
 else  else
Line 2036  rm -f conftest*
Line 2066  rm -f conftest*
       else        else
         LIBS="$ac_xsave_LIBS -R $x_libraries"          LIBS="$ac_xsave_LIBS -R $x_libraries"
         cat > conftest.$ac_ext <<EOF          cat > conftest.$ac_ext <<EOF
 #line 2040 "configure"  #line 2070 "configure"
 #include "confdefs.h"  #include "confdefs.h"
   
 int main() {  int main() {
   
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:2047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   ac_R_space=yes    ac_R_space=yes
 else  else
Line 2075  rm -f conftest*
Line 2105  rm -f conftest*
     # libraries were built with DECnet support.  And karl@cs.umb.edu says      # libraries were built with DECnet support.  And karl@cs.umb.edu says
     # the Alpha needs dnet_stub (dnet does not exist).      # the Alpha needs dnet_stub (dnet does not exist).
     echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6      echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
 echo "configure:2079: checking for dnet_ntoa in -ldnet" >&5  echo "configure:2109: checking for dnet_ntoa in -ldnet" >&5
 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`  ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
Line 2083  else
Line 2113  else
   ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
 LIBS="-ldnet  $LIBS"  LIBS="-ldnet  $LIBS"
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 2087 "configure"  #line 2117 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
Line 2094  int main() {
Line 2124  int main() {
 dnet_ntoa()  dnet_ntoa()
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:2098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
 else  else
Line 2116  fi
Line 2146  fi
   
     if test $ac_cv_lib_dnet_dnet_ntoa = no; then      if test $ac_cv_lib_dnet_dnet_ntoa = no; then
       echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6        echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
 echo "configure:2120: checking for dnet_ntoa in -ldnet_stub" >&5  echo "configure:2150: checking for dnet_ntoa in -ldnet_stub" >&5
 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`  ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
Line 2124  else
Line 2154  else
   ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
 LIBS="-ldnet_stub  $LIBS"  LIBS="-ldnet_stub  $LIBS"
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 2128 "configure"  #line 2158 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
Line 2135  int main() {
Line 2165  int main() {
 dnet_ntoa()  dnet_ntoa()
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:2139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
 else  else
Line 2164  fi
Line 2194  fi
     # The nsl library prevents programs from opening the X display      # The nsl library prevents programs from opening the X display
     # on Irix 5.2, according to dickey@clark.net.      # on Irix 5.2, according to dickey@clark.net.
     echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6      echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
 echo "configure:2168: checking for gethostbyname" >&5  echo "configure:2198: checking for gethostbyname" >&5
 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 2173 "configure"  #line 2203 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char gethostbyname(); below.  */      which can conflict with char gethostbyname(); below.  */
Line 2192  gethostbyname();
Line 2222  gethostbyname();
   
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:2196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_func_gethostbyname=yes"    eval "ac_cv_func_gethostbyname=yes"
 else  else
Line 2213  fi
Line 2243  fi
   
     if test $ac_cv_func_gethostbyname = no; then      if test $ac_cv_func_gethostbyname = no; then
       echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6        echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
 echo "configure:2217: checking for gethostbyname in -lnsl" >&5  echo "configure:2247: checking for gethostbyname in -lnsl" >&5
 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`  ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
Line 2221  else
Line 2251  else
   ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
 LIBS="-lnsl  $LIBS"  LIBS="-lnsl  $LIBS"
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 2225 "configure"  #line 2255 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
Line 2232  int main() {
Line 2262  int main() {
 gethostbyname()  gethostbyname()
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:2236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
 else  else
Line 2262  fi
Line 2292  fi
     # -lsocket must be given before -lnsl if both are needed.      # -lsocket must be given before -lnsl if both are needed.
     # We assume that if connect needs -lnsl, so does gethostbyname.      # We assume that if connect needs -lnsl, so does gethostbyname.
     echo $ac_n "checking for connect""... $ac_c" 1>&6      echo $ac_n "checking for connect""... $ac_c" 1>&6
 echo "configure:2266: checking for connect" >&5  echo "configure:2296: checking for connect" >&5
 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 2271 "configure"  #line 2301 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char connect(); below.  */      which can conflict with char connect(); below.  */
Line 2290  connect();
Line 2320  connect();
   
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:2294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_func_connect=yes"    eval "ac_cv_func_connect=yes"
 else  else
Line 2311  fi
Line 2341  fi
   
     if test $ac_cv_func_connect = no; then      if test $ac_cv_func_connect = no; then
       echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6        echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
 echo "configure:2315: checking for connect in -lsocket" >&5  echo "configure:2345: checking for connect in -lsocket" >&5
 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`  ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
Line 2319  else
Line 2349  else
   ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"  LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 2323 "configure"  #line 2353 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
Line 2330  int main() {
Line 2360  int main() {
 connect()  connect()
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:2334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
 else  else
Line 2354  fi
Line 2384  fi
   
     # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.      # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
     echo $ac_n "checking for remove""... $ac_c" 1>&6      echo $ac_n "checking for remove""... $ac_c" 1>&6
 echo "configure:2358: checking for remove" >&5  echo "configure:2388: checking for remove" >&5
 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 2363 "configure"  #line 2393 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char remove(); below.  */      which can conflict with char remove(); below.  */
Line 2382  remove();
Line 2412  remove();
   
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:2386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_func_remove=yes"    eval "ac_cv_func_remove=yes"
 else  else
Line 2403  fi
Line 2433  fi
   
     if test $ac_cv_func_remove = no; then      if test $ac_cv_func_remove = no; then
       echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6        echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
 echo "configure:2407: checking for remove in -lposix" >&5  echo "configure:2437: checking for remove in -lposix" >&5
 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`  ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
Line 2411  else
Line 2441  else
   ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
 LIBS="-lposix  $LIBS"  LIBS="-lposix  $LIBS"
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 2415 "configure"  #line 2445 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
Line 2422  int main() {
Line 2452  int main() {
 remove()  remove()
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:2426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
 else  else
Line 2446  fi
Line 2476  fi
   
     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.      # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
     echo $ac_n "checking for shmat""... $ac_c" 1>&6      echo $ac_n "checking for shmat""... $ac_c" 1>&6
 echo "configure:2450: checking for shmat" >&5  echo "configure:2480: checking for shmat" >&5
 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 2455 "configure"  #line 2485 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char shmat(); below.  */      which can conflict with char shmat(); below.  */
Line 2474  shmat();
Line 2504  shmat();
   
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:2478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_func_shmat=yes"    eval "ac_cv_func_shmat=yes"
 else  else
Line 2495  fi
Line 2525  fi
   
     if test $ac_cv_func_shmat = no; then      if test $ac_cv_func_shmat = no; then
       echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6        echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
 echo "configure:2499: checking for shmat in -lipc" >&5  echo "configure:2529: checking for shmat in -lipc" >&5
 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`  ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
Line 2503  else
Line 2533  else
   ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
 LIBS="-lipc  $LIBS"  LIBS="-lipc  $LIBS"
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 2507 "configure"  #line 2537 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
Line 2514  int main() {
Line 2544  int main() {
 shmat()  shmat()
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:2518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
 else  else
Line 2547  fi
Line 2577  fi
   # libraries we check for below, so use a different variable.    # libraries we check for below, so use a different variable.
   #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.    #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
   echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6    echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
 echo "configure:2551: checking for IceConnectionNumber in -lICE" >&5  echo "configure:2581: checking for IceConnectionNumber in -lICE" >&5
 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`  ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
Line 2555  else
Line 2585  else
   ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
 LIBS="-lICE $X_EXTRA_LIBS $LIBS"  LIBS="-lICE $X_EXTRA_LIBS $LIBS"
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 2559 "configure"  #line 2589 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
Line 2566  int main() {
Line 2596  int main() {
 IceConnectionNumber()  IceConnectionNumber()
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:2570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
 else  else
Line 2591  fi
Line 2621  fi
 fi  fi
   
   
 if test "$ac_cv_lib_nsl_gethostbyname" = no; then  if test "$ac_cv_func_gethostbyname" = no; then
   echo $ac_n "checking for gethostbyname in -lbsd""... $ac_c" 1>&6    if test "$ac_cv_lib_nsl_gethostbyname" = no; then
 echo "configure:2597: checking for gethostbyname in -lbsd" >&5      echo $ac_n "checking for gethostbyname in -lbsd""... $ac_c" 1>&6
   echo "configure:2628: checking for gethostbyname in -lbsd" >&5
 ac_lib_var=`echo bsd'_'gethostbyname | sed 'y%./+-%__p_%'`  ac_lib_var=`echo bsd'_'gethostbyname | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
Line 2601  else
Line 2632  else
   ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
 LIBS="-lbsd  $LIBS"  LIBS="-lbsd  $LIBS"
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 2605 "configure"  #line 2636 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
Line 2612  int main() {
Line 2643  int main() {
 gethostbyname()  gethostbyname()
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:2616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
 else  else
Line 2632  else
Line 2663  else
   echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
 fi  fi
   
     fi
 fi  fi
   
 if test "$no_x" != yes; then  if test "$no_x" != yes; then
   CPPFLAGS="$CPPFLAGS $X_CFLAGS"    CPPFLAGS="$CPPFLAGS $X_CFLAGS"
   X_LIBRARIES="$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS"    LIBRARIES_FOR_X="$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS"
   GNUPLOT_X11=gnuplot_x11    GNUPLOT_X11=gnuplot_x11
   cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
 #define X11 1  #define X11 1
Line 2646  fi
Line 2678  fi
   
   
 echo $ac_n "checking for MS-DOS/djgpp/libGRX""... $ac_c" 1>&6  echo $ac_n "checking for MS-DOS/djgpp/libGRX""... $ac_c" 1>&6
 echo "configure:2650: checking for MS-DOS/djgpp/libGRX" >&5  echo "configure:2682: checking for MS-DOS/djgpp/libGRX" >&5
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 2652 "configure"  #line 2684 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 #if __DJGPP__ && __DJGPP__ == 2  #if __DJGPP__ && __DJGPP__ == 2
   yes    yes
Line 2670  EOF
Line 2702  EOF
   
   with_linux_vga=no    with_linux_vga=no
   echo $ac_n "checking for GrLine in -lgrx20""... $ac_c" 1>&6    echo $ac_n "checking for GrLine in -lgrx20""... $ac_c" 1>&6
 echo "configure:2674: checking for GrLine in -lgrx20" >&5  echo "configure:2706: checking for GrLine in -lgrx20" >&5
 ac_lib_var=`echo grx20'_'GrLine | sed 'y%./+-%__p_%'`  ac_lib_var=`echo grx20'_'GrLine | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
Line 2678  else
Line 2710  else
   ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
 LIBS="-lgrx20  $LIBS"  LIBS="-lgrx20  $LIBS"
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 2682 "configure"  #line 2714 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
Line 2689  int main() {
Line 2721  int main() {
 GrLine()  GrLine()
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:2693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
 else  else
Line 2704  LIBS="$ac_save_LIBS"
Line 2736  LIBS="$ac_save_LIBS"
 fi  fi
 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
   echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
       LIBS="-lgrx20 $LIBS"    LIBS="-lgrx20 $LIBS"
     CFLAGS="$CFLAGS -fno-inline-functions"      CFLAGS="$CFLAGS -fno-inline-functions"
     cat >> confdefs.h <<\EOF      cat >> confdefs.h <<\EOF
 #define DJSVGA 1  #define DJSVGA 1
 EOF  EOF
   
     echo $ac_n "checking for GrCustomLine in -lgrx20""... $ac_c" 1>&6      echo $ac_n "checking for GrCustomLine in -lgrx20""... $ac_c" 1>&6
 echo "configure:2715: checking for GrCustomLine in -lgrx20" >&5  echo "configure:2747: checking for GrCustomLine in -lgrx20" >&5
 ac_lib_var=`echo grx20'_'GrCustomLine | sed 'y%./+-%__p_%'`  ac_lib_var=`echo grx20'_'GrCustomLine | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
Line 2719  else
Line 2751  else
   ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
 LIBS="-lgrx20  $LIBS"  LIBS="-lgrx20  $LIBS"
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 2723 "configure"  #line 2755 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
Line 2730  int main() {
Line 2762  int main() {
 GrCustomLine()  GrCustomLine()
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:2734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
 else  else
Line 2745  LIBS="$ac_save_LIBS"
Line 2777  LIBS="$ac_save_LIBS"
 fi  fi
 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
   echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
         cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
 #define GRX21 1  #define GRX21 1
 EOF  EOF
   
Line 2759  fi
Line 2791  fi
   
 else  else
   rm -rf conftest*    rm -rf conftest*
     echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
   
 fi  fi
 rm -f conftest*  rm -f conftest*
   
 echo $ac_n "checking for NeXT""... $ac_c" 1>&6  echo $ac_n "checking for NeXT""... $ac_c" 1>&6
 echo "configure:2769: checking for NeXT" >&5  echo "configure:2801: checking for NeXT" >&5
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 2771 "configure"  #line 2803 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 #if __NeXT__  #if __NeXT__
   yes    yes
Line 2782  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Line 2814  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    CFLAGS="$CFLAGS -ObjC"     CFLAGS="$CFLAGS -ObjC"
 else  else
   rm -rf conftest*    rm -rf conftest*
      echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
 fi  fi
 rm -f conftest*  rm -f conftest*
   
   
   echo $ac_n "checking for Apple MacOS X""... $ac_c" 1>&6
   echo "configure:2824: checking for Apple MacOS X" >&5
   cat > conftest.$ac_ext <<EOF
   #line 2826 "configure"
   #include "confdefs.h"
   #if defined(__APPLE__) && defined(__MACH__)
     yes
   #endif
   
   EOF
   if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     egrep "yes" >/dev/null 2>&1; then
     rm -rf conftest*
     echo "$ac_t""yes" 1>&6
      LIBS="$LIBS -framework Foundation -framework AppKit"
      CFLAGS="$CFLAGS -ObjC"
   else
     rm -rf conftest*
     echo "$ac_t""no" 1>&6
   fi
   rm -f conftest*
   
   
   echo $ac_n "checking for BeOS""... $ac_c" 1>&6
   echo "configure:2847: checking for BeOS" >&5
   cat > conftest.$ac_ext <<EOF
   #line 2849 "configure"
   #include "confdefs.h"
   #if __BEOS__
     yes
   #endif
   
   EOF
   if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     egrep "yes" >/dev/null 2>&1; then
     rm -rf conftest*
     echo "$ac_t""yes" 1>&6
      build_src_beos_subdir=yes
   else
     rm -rf conftest*
     build_src_beos_subdir=no
      echo "$ac_t""no" 1>&6
   fi
   rm -f conftest*
   
   
   
 echo $ac_n "checking for sin""... $ac_c" 1>&6  echo $ac_n "checking for sin""... $ac_c" 1>&6
 echo "configure:2793: checking for sin" >&5  echo "configure:2871: checking for sin" >&5
 if eval "test \"`echo '$''{'ac_cv_func_sin'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_sin'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 2798 "configure"  #line 2876 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char sin(); below.  */      which can conflict with char sin(); below.  */
Line 2817  sin();
Line 2895  sin();
   
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:2821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_func_sin=yes"    eval "ac_cv_func_sin=yes"
 else  else
Line 2838  fi
Line 2916  fi
   
 if test "$ac_cv_func_sin" = no ; then  if test "$ac_cv_func_sin" = no ; then
   echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6    echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
 echo "configure:2842: checking for sin in -lm" >&5  echo "configure:2920: checking for sin in -lm" >&5
 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`  ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
Line 2846  else
Line 2924  else
   ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
 LIBS="-lm  $LIBS"  LIBS="-lm  $LIBS"
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 2850 "configure"  #line 2928 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
Line 2857  int main() {
Line 2935  int main() {
 sin()  sin()
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:2861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
 else  else
Line 2889  dnlLIBS="$LIBS -lm"
Line 2967  dnlLIBS="$LIBS -lm"
   
   
 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6  echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
 echo "configure:2893: checking for ANSI C header files" >&5  echo "configure:2971: checking for ANSI C header files" >&5
 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 2898 "configure"  #line 2976 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 #include <stdlib.h>  #include <stdlib.h>
 #include <stdarg.h>  #include <stdarg.h>
Line 2902  else
Line 2980  else
 #include <float.h>  #include <float.h>
 EOF  EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 { (eval echo configure:2906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:2984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then  if test -z "$ac_err"; then
   rm -rf conftest*    rm -rf conftest*
Line 2919  rm -f conftest*
Line 2997  rm -f conftest*
 if test $ac_cv_header_stdc = yes; then  if test $ac_cv_header_stdc = yes; then
   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 2923 "configure"  #line 3001 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 #include <string.h>  #include <string.h>
 EOF  EOF
Line 2937  fi
Line 3015  fi
 if test $ac_cv_header_stdc = yes; then  if test $ac_cv_header_stdc = yes; then
   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 2941 "configure"  #line 3019 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 #include <stdlib.h>  #include <stdlib.h>
 EOF  EOF
Line 2958  if test "$cross_compiling" = yes; then
Line 3036  if test "$cross_compiling" = yes; then
   :    :
 else  else
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 2962 "configure"  #line 3040 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 #include <ctype.h>  #include <ctype.h>
 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')  #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
Line 2969  if (XOR (islower (i), ISLOWER (i)) || toupper (i) != T
Line 3047  if (XOR (islower (i), ISLOWER (i)) || toupper (i) != T
 exit (0); }  exit (0); }
   
 EOF  EOF
 if { (eval echo configure:2973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:3051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then  then
   :    :
 else  else
Line 2994  fi
Line 3072  fi
   
   
 for ac_hdr in errno.h float.h limits.h locale.h math.h stdlib.h string.h \  for ac_hdr in errno.h float.h limits.h locale.h math.h stdlib.h string.h \
   time.h sys/time.h sys/timeb.h sys/types.h    time.h sys/time.h sys/timeb.h sys/types.h \
 do    sys/bsdtypes.h sys/select.h sys/socket.h sys/stat.h \
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  
 echo "configure:3002: 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 3007 "configure"  
 #include "confdefs.h"  
 #include <$ac_hdr>  
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:3012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  
 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 sys/bsdtypes.h sys/select.h sys/socket.h sys/stat.h \  
   sys/systeminfo.h sys/utsname.h libc.h malloc.h sgtty.h termios.h values.h    sys/systeminfo.h sys/utsname.h libc.h malloc.h sgtty.h termios.h values.h
   
 do  do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
 echo "configure:3043: checking for $ac_hdr" >&5  echo "configure:3083: checking for $ac_hdr" >&5
 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 3048 "configure"  #line 3088 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 #include <$ac_hdr>  #include <$ac_hdr>
 EOF  EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 { (eval echo configure:3053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:3093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then  if test -z "$ac_err"; then
   rm -rf conftest*    rm -rf conftest*
Line 3075  else
Line 3115  else
 fi  fi
 done  done
   
   
 test "$ac_cv_header_sys_stat_h" = yes && echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6  test "$ac_cv_header_sys_stat_h" = yes && echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
 echo "configure:3080: checking whether stat file-mode macros are broken" >&5  echo "configure:3121: checking whether stat file-mode macros are broken" >&5
 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 3085 "configure"  #line 3126 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 #include <sys/types.h>  #include <sys/types.h>
 #include <sys/stat.h>  #include <sys/stat.h>
Line 3133  fi
Line 3174  fi
   
   
 echo $ac_n "checking for unistd.h""... $ac_c" 1>&6  echo $ac_n "checking for unistd.h""... $ac_c" 1>&6
 echo "configure:3137: checking for unistd.h" >&5  echo "configure:3178: checking for unistd.h" >&5
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 3139 "configure"  #line 3180 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 #include <unistd.h>  #include <unistd.h>
 EOF  EOF
Line 3154  rm -f conftest*
Line 3195  rm -f conftest*
   
   
 echo $ac_n "checking if errno variable is declared""... $ac_c" 1>&6  echo $ac_n "checking if errno variable is declared""... $ac_c" 1>&6
 echo "configure:3158: checking if errno variable is declared" >&5  echo "configure:3199: checking if errno variable is declared" >&5
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 3160 "configure"  #line 3201 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 #include <stdio.h>  #include <stdio.h>
 #ifdef HAVE_ERRNO_H  #ifdef HAVE_ERRNO_H
Line 3166  int main() {
Line 3207  int main() {
 errno=0  errno=0
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:3170: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:3211: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*    rm -rf conftest*
   echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
 else  else
   echo "configure: failed program was:" >&5    echo "configure: failed program was:" >&5
   cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
   rm -rf conftest*    rm -rf conftest*
     cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
 #define EXTERN_ERRNO 1  #define EXTERN_ERRNO 1
 EOF  EOF
   
Line 3183  fi
Line 3224  fi
 rm -f conftest*  rm -f conftest*
   
 echo $ac_n "checking for size_t""... $ac_c" 1>&6  echo $ac_n "checking for size_t""... $ac_c" 1>&6
 echo "configure:3187: checking for size_t" >&5  echo "configure:3228: checking for size_t" >&5
 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 3192 "configure"  #line 3233 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 #include <sys/types.h>  #include <sys/types.h>
 #if STDC_HEADERS  #if STDC_HEADERS
Line 3216  EOF
Line 3257  EOF
 fi  fi
   
 echo $ac_n "checking for time_t in time.h""... $ac_c" 1>&6  echo $ac_n "checking for time_t in time.h""... $ac_c" 1>&6
 echo "configure:3220: checking for time_t in time.h" >&5  echo "configure:3261: checking for time_t in time.h" >&5
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 3222 "configure"  #line 3263 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 #include <time.h>  #include <time.h>
 EOF  EOF
 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   egrep "time_t" >/dev/null 2>&1; then    egrep "time_t" >/dev/null 2>&1; then
   rm -rf conftest*    rm -rf conftest*
      ac_cv_type_time_t=yes; echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
 else     cat >> confdefs.h <<\EOF
   rm -rf conftest*  #define HAVE_TIME_T_IN_TIME_H 1
      echo "$ac_t""no" 1>&6 echo $ac_n "checking for time_t""... $ac_c" 1>&6  
 echo "configure:3233: 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 3238 "configure"  
 #include "confdefs.h"  
 #include <sys/types.h>  
 #if STDC_HEADERS  
 #include <stdlib.h>  
 #include <stddef.h>  
 #endif  
 EOF  EOF
 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  
   egrep "(^|[^a-zA-Z_0-9])time_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then  
   rm -rf conftest*  
   ac_cv_type_time_t=yes  
 else  
   rm -rf conftest*  
   ac_cv_type_time_t=no  
 fi  
 rm -f conftest*  
   
 fi  fi
 echo "$ac_t""$ac_cv_type_time_t" 1>&6  
 if test $ac_cv_type_time_t = no; then  
   cat >> confdefs.h <<\EOF  
 #define time_t long  
 EOF  
   
 fi  
   
 fi  
 rm -f conftest*  rm -f conftest*
   
 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6  echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
 echo "configure:3269: checking return type of signal handlers" >&5  echo "configure:3279: checking return type of signal handlers" >&5
 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 3274 "configure"  #line 3284 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 #include <sys/types.h>  #include <sys/types.h>
 #include <signal.h>  #include <signal.h>
Line 3287  int main() {
Line 3297  int main() {
 int i;  int i;
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:3291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:3301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*    rm -rf conftest*
   ac_cv_type_signal=void    ac_cv_type_signal=void
 else  else
Line 3308  EOF
Line 3318  EOF
   
   
   
 for ac_func in atexit on_exit memcpy memmove memset bcopy bzero setvbuf \  for ac_func in atexit memcpy memmove memset \
   strerror strchr index strrchr rindex strstr    on_exit bcopy bzero \
     setvbuf strerror strchr strrchr strstr \
     index rindex \
     erf erfc gamma lgamma \
     getcwd poll pclose popen select sleep snprintf stpcpy \
     strcspn strdup strcasecmp stricmp strncasecmp strnicmp \
     sysinfo tcgetattr vfprintf doprnt
   
 do  do
 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
 echo "configure:3316: checking for $ac_func" >&5  echo "configure:3333: checking for $ac_func" >&5
 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 3321 "configure"  #line 3338 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func(); below.  */
Line 3340  $ac_func();
Line 3357  $ac_func();
   
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:3344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_func_$ac_func=yes"    eval "ac_cv_func_$ac_func=yes"
 else  else
Line 3365  fi
Line 3382  fi
 done  done
   
   
 for ac_func in erf erfc gamma lgamma getcwd pclose popen sleep snprintf \  echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
   strncasecmp strnicmp sysinfo tcgetattr  echo "configure:3387: checking for sigsetjmp" >&5
 do  cat > conftest.$ac_ext <<EOF
 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  #line 3389 "configure"
 echo "configure:3373: 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 3378 "configure"  
 #include "confdefs.h"  #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,  #include <setjmp.h>
     which can conflict with char $ac_func(); below.  */  
 #include <assert.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 $ac_func();  
   
 int main() {  int main() {
   jmp_buf env; sigsetjmp(env, 1);
 /* The GNU C library defines this for functions which it implements  
     to always fail with ENOSYS.  Some functions are actually named  
     something starting with __ and the normal name is an alias.  */  
 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)  
 choke me  
 #else  
 $ac_func();  
 #endif  
   
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:3401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_func_$ac_func=yes"    echo "$ac_t""yes" 1>&6
      cat >> confdefs.h <<\EOF
   #define HAVE_SIGSETJMP 1
   EOF
   
 else  else
   echo "configure: failed program was:" >&5    echo "configure: failed program was:" >&5
   cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_func_$ac_func=no"    echo "$ac_t""no" 1>&6
   
 fi  fi
 rm -f conftest*  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'`  
   cat >> confdefs.h <<EOF  
 #define $ac_tr_func 1  
 EOF  
   
 else  
   echo "$ac_t""no" 1>&6  
 fi  
 done  
   
 if test "$ac_cv_func_pclose" = yes && test "$ac_cv_func_popen" = yes ; then  if test "$ac_cv_func_pclose" = yes && test "$ac_cv_func_popen" = yes ; then
   cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
 #define PIPES 1  #define PIPES 1
Line 3431  fi
Line 3418  fi
 for ac_func in select  for ac_func in select
 do  do
 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
 echo "configure:3435: checking for $ac_func" >&5  echo "configure:3422: checking for $ac_func" >&5
 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 3440 "configure"  #line 3427 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func(); below.  */
Line 3459  $ac_func();
Line 3446  $ac_func();
   
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:3463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_func_$ac_func=yes"    eval "ac_cv_func_$ac_func=yes"
 else  else
Line 3488  if test "$ac_cv_func_select" = yes; then
Line 3475  if test "$ac_cv_func_select" = yes; then
 do  do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
 echo "configure:3492: checking for $ac_hdr" >&5  echo "configure:3479: checking for $ac_hdr" >&5
 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 3497 "configure"  #line 3484 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 #include <$ac_hdr>  #include <$ac_hdr>
 EOF  EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 { (eval echo configure:3502: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:3489: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then  if test -z "$ac_err"; then
   rm -rf conftest*    rm -rf conftest*
Line 3525  fi
Line 3512  fi
 done  done
   
   echo $ac_n "checking argument types of select()""... $ac_c" 1>&6    echo $ac_n "checking argument types of select()""... $ac_c" 1>&6
 echo "configure:3529: checking argument types of select()" >&5  echo "configure:3516: checking argument types of select()" >&5
   if eval "test \"`echo '$''{'ac_cv_type_fd_set_size_t'+set}'`\" = set"; then    if eval "test \"`echo '$''{'ac_cv_type_fd_set_size_t'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
       if eval "test \"`echo '$''{'ac_cv_type_fd_set'+set}'`\" = set"; then    if eval "test \"`echo '$''{'ac_cv_type_fd_set'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
         for ac_cv_type_fd_set in 'fd_set' 'int' 'void'; do    for ac_cv_type_fd_set in 'fd_set' 'int' 'void'; do
         for ac_cv_type_fd_set_size_t in 'int' 'size_t' 'unsigned long' 'unsigned'; do          for ac_cv_type_fd_set_size_t in 'int' 'size_t' 'unsigned long' 'unsigned'; do
           for ac_type_timeval in 'struct timeval' 'const struct timeval'; do            for ac_type_timeval in 'struct timeval' 'const struct timeval'; do
             cat > conftest.$ac_ext <<EOF              cat > conftest.$ac_ext <<EOF
 #line 3540 "configure"  #line 3527 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 #ifdef HAVE_SYS_TIME_H  #ifdef HAVE_SYS_TIME_H
 #include <sys/time.h>  # include <sys/time.h>
 #endif  #endif
 #ifdef HAVE_SYS_TYPES_H  #ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>  # include <sys/types.h>
 #endif  #endif
 #ifdef HAVE_UNISTD_H  #ifdef HAVE_UNISTD_H
 #include <unistd.h>  # include <unistd.h>
 #endif  #endif
 #ifdef HAVE_SYS_SELECT_H  #ifdef HAVE_SYS_SELECT_H
 #include <sys/select.h>  # include <sys/select.h>
 #endif  #endif
 #ifdef HAVE_SYS_SOCKET_H  #ifdef HAVE_SYS_SOCKET_H
 #include <sys/socket.h>  # include <sys/socket.h>
 #endif  #endif
   
 int main() {  int main() {
 #ifdef __STDC__  #ifdef __STDC__
 extern int select ($ac_cv_type_fd_set_size_t,  extern int select ($ac_cv_type_fd_set_size_t,
Line 3564  extern int select ();
Line 3552  extern int select ();
   $ac_cv_type_fd_set *p;    $ac_cv_type_fd_set *p;
   $ac_type_timeval *t;    $ac_type_timeval *t;
 #endif  #endif
   
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:3570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:3559: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*    rm -rf conftest*
   ac_found=yes ; break 3    ac_found=yes ; break 3
 else  else
Line 3598  EOF
Line 3587  EOF
     # FD_SET macros, but insist that you cast the argument to select.  I don't      # FD_SET macros, but insist that you cast the argument to select.  I don't
     # understand why that might be, but it means we cannot define fd_set.      # understand why that might be, but it means we cannot define fd_set.
     cat > conftest.$ac_ext <<EOF      cat > conftest.$ac_ext <<EOF
 #line 3602 "configure"  #line 3591 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 #ifdef HAVE_SYS_TIME_H  #ifdef HAVE_SYS_TIME_H
 #include <sys/time.h>  # include <sys/time.h>
 #endif  #endif
 #ifdef HAVE_SYS_TYPES_H  #ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>  # include <sys/types.h>
 #endif  #endif
 #ifdef HAVE_UNISTD_H  #ifdef HAVE_UNISTD_H
 #include <unistd.h>  # include <unistd.h>
 #endif  #endif
 #ifdef HAVE_SYS_SELECT_H  #ifdef HAVE_SYS_SELECT_H
 #include <sys/select.h>  # include <sys/select.h>
 #endif  #endif
 #ifdef HAVE_SYS_SOCKET_H  #ifdef HAVE_SYS_SOCKET_H
 #include <sys/socket.h>  # include <sys/socket.h>
 #endif  #endif
   
 EOF  EOF
 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   egrep "(^|[^a-zA-Z_0-9])fd_set[^a-zA-Z_0-9]" >/dev/null 2>&1; then    egrep "(^|[^a-zA-Z_0-9])fd_set[^a-zA-Z_0-9]" >/dev/null 2>&1; then
   rm -rf conftest*    rm -rf conftest*
       # We found fd_set type in a header, need special cast    # We found fd_set type in a header, need special cast
     ac_cast="($ac_cv_type_fd_set *)"      ac_cast="($ac_cv_type_fd_set *)"
 else  else
   rm -rf conftest*    rm -rf conftest*
Line 3640  fi
Line 3630  fi
   
   
   
   LASERGNU=lasergnu_noinstall
   # Check whether --with-lasergnu or --without-lasergnu was given.
   if test "${with_lasergnu+set}" = set; then
     withval="$with_lasergnu"
     test "$withval" = yes && LASERGNU=lasergnu_install
   fi
   
   
   # Check whether --with-linux-vga or --without-linux-vga was given.
   if test "${with_linux_vga+set}" = set; then
     withval="$with_linux_vga"
     :
   else
     test -z "$with_linux_vga" && with_linux_vga=no
   fi
   
   
 if test "$with_linux_vga" = yes; then  if test "$with_linux_vga" = yes; then
   echo $ac_n "checking for linux vga library""... $ac_c" 1>&6    echo $ac_n "checking for linux vga library""... $ac_c" 1>&6
 echo "configure:3646: checking for linux vga library" >&5  echo "configure:3653: checking for linux vga library" >&5
   echo $ac_n "checking for vga_init in -lvga""... $ac_c" 1>&6    echo $ac_n "checking for vga_init in -lvga""... $ac_c" 1>&6
 echo "configure:3648: checking for vga_init in -lvga" >&5  echo "configure:3655: checking for vga_init in -lvga" >&5
 ac_lib_var=`echo vga'_'vga_init | sed 'y%./+-%__p_%'`  ac_lib_var=`echo vga'_'vga_init | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
Line 3652  else
Line 3659  else
   ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
 LIBS="-lvga  $LIBS"  LIBS="-lvga  $LIBS"
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 3656 "configure"  #line 3663 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
Line 3663  int main() {
Line 3670  int main() {
 vga_init()  vga_init()
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:3667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
 else  else
Line 3683  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = ye
Line 3690  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = ye
 EOF  EOF
   
      LINUXSUID='chown root $(bindir)/gnuplot; chmod u+s $(bindir)/gnuplot'       LINUXSUID='chown root $(bindir)/gnuplot; chmod u+s $(bindir)/gnuplot'
      TERMLIBS="$TERMLIBS -lvga"       TERMLIBS="-lvga $TERMLIBS"
 else  else
   echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
     with_linux_vga=no  with_linux_vga=no
 fi  fi
   
 fi  fi
   
   # Check whether --with-readline or --without-readline was given.
   if test "${with_readline+set}" = set; then
     withval="$with_readline"
     :
   else
     test -z "$with_readline" && with_readline=yes
   fi
   
   
 if test "$with_readline" != no; then  if test "$with_readline" != no; then
   if test "$with_readline" != yes; then    if test "$with_readline" != yes; then
             gp_tcap=""              gp_tcap=""
     for termlib in ncurses curses termcap terminfo termlib; do      for termlib in ncurses curses termcap terminfo termlib; do
       echo $ac_n "checking for tputs in -l${termlib}""... $ac_c" 1>&6        echo $ac_n "checking for tputs in -l${termlib}""... $ac_c" 1>&6
 echo "configure:3700: checking for tputs in -l${termlib}" >&5  echo "configure:3716: checking for tputs in -l${termlib}" >&5
 ac_lib_var=`echo ${termlib}'_'tputs | sed 'y%./+-%__p_%'`  ac_lib_var=`echo ${termlib}'_'tputs | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
Line 3704  else
Line 3720  else
   ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
 LIBS="-l${termlib}  $LIBS"  LIBS="-l${termlib}  $LIBS"
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 3708 "configure"  #line 3724 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
Line 3715  int main() {
Line 3731  int main() {
 tputs()  tputs()
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:3719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
 else  else
Line 3744  fi
Line 3760  fi
   
     if test "$with_readline" = gnu; then      if test "$with_readline" = gnu; then
       echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6        echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
 echo "configure:3748: checking for readline in -lreadline" >&5  echo "configure:3764: checking for readline in -lreadline" >&5
 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`  ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
Line 3752  else
Line 3768  else
   ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
 LIBS="-lreadline ${gp_tcap} $LIBS"  LIBS="-lreadline ${gp_tcap} $LIBS"
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 3756 "configure"  #line 3772 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
Line 3763  int main() {
Line 3779  int main() {
 readline()  readline()
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:3767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
 else  else
Line 3778  LIBS="$ac_save_LIBS"
Line 3794  LIBS="$ac_save_LIBS"
 fi  fi
 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
   echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
          TERMLIBS="$TERMLIBS -lreadline $gp_tcap"    TERMLIBS="-lreadline $gp_tcap $TERMLIBS"
 else  else
   echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
 fi  fi
   
     else      else
       ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`        if test -d $with_readline/include; then
   gp_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \          CPPFLAGS="$CPPFLAGS -I$with_readline/include"
     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`        fi
 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6        if test -d $with_readline/lib; then
 echo "configure:3792: checking for readline in -lreadline" >&5          LDFLAGS="$LDFLAGS -L$with_readline/lib"
         fi
   
         echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
   echo "configure:3812: 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  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   gp_save_TERMLIBS="$TERMLIBS"    ac_save_LIBS="$LIBS"
 if test "$with_readline" != yes && test "$with_readline" != no; then  LIBS="-lreadline ${gp_tcap} $LIBS"
   gp_l_path=`echo "$with_readline" | sed -e 's%/libreadline\.a$%%'`  
   gp_l_prfx=`echo $gp_l_path | sed -e 's%/lib$%%' -e 's%/include$%%'`  
   gp_l_list="$gp_l_prfx $gp_l_prfx/lib $gp_l_path"  
 fi  
 for ac_dir in $gp_l_list '' /usr/local/lib ; do  
   test x${ac_dir} != x && TERMLIBS="-L${ac_dir} $gp_save_TERMLIBS"  
   ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`  
 ac_save_LIBS="$LIBS"  
 LIBS="$TERMLIBS $TERMXLIBS -lreadline ${gp_tcap} $LIBS"  
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 3808 "configure"  #line 3820 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
Line 3815  int main() {
Line 3827  int main() {
 readline()  readline()
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:3819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
 else  else
Line 3826  else
Line 3838  else
 fi  fi
 rm -f conftest*  rm -f conftest*
 LIBS="$ac_save_LIBS"  LIBS="$ac_save_LIBS"
 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  
   ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \  
     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`  
 fi  
   
   TERMLIBS="$gp_save_TERMLIBS"  
   if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  
     eval "ac_cv_lib_$ac_lib_var=${ac_dir}"  
     break  
   fi  
 done  
   
 fi  fi
   if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" != no"; then  
   if eval "test \"`echo x'$ac_cv_lib_'$ac_lib_var`\" != x" && eval "test \"`echo x'$ac_cv_lib_'$ac_lib_var`\" != xyes"; then  
     eval "TERMLIBS=\"$gp_save_TERMLIBS -L`echo '$ac_cv_lib_'$ac_lib_var`\""  
   fi  
   TERMLIBS="$TERMLIBS -lreadline"  
   echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
     TERMLIBS="-lreadline $gp_tcap $TERMLIBS"
 else  else
   echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
 fi  fi
   
       if test "$ac_cv_lib_readline_readline" != no; then  
         TERMLIBS="$TERMLIBS $gp_tcap"  
       fi  
     fi      fi
   
     if test "$ac_cv_lib_readline_readline" = no; then      if test "$ac_cv_lib_readline_readline" = no; then
Line 3865  EOF
Line 3860  EOF
   
     fi # ! ac_cv_lib_readline_readline = no      fi # ! ac_cv_lib_readline_readline = no
   
   fi # ! with_readline != yes    fi # with_readline" != yes
   
   if test "$with_readline" = yes; then    if test "$with_readline" = yes; then
     cat >> confdefs.h <<\EOF      cat >> confdefs.h <<\EOF
Line 3876  EOF
Line 3871  EOF
   
 fi  fi
   
 if test "$with_plot" != no; then  # Check whether --with-gd or --without-gd was given.
   if test "$with_plot" = yes; then  if test "${with_gd+set}" = set; then
         echo $ac_n "checking for openpl in -lplot""... $ac_c" 1>&6    withval="$with_gd"
 echo "configure:3883: checking for openpl in -lplot" >&5    if test "$withval" != no; then
 ac_lib_var=`echo plot'_'openpl | sed 'y%./+-%__p_%'`       if test -d $withval/include; then
          CPPFLAGS="$CPPFLAGS -I$withval/include"
        fi
        if test -d $withval/lib; then
          LDFLAGS="$LDFLAGS -L$withval/lib"
        fi
        echo $ac_n "checking for gdImageGif in -lgd""... $ac_c" 1>&6
   echo "configure:3886: checking for gdImageGif in -lgd" >&5
   ac_lib_var=`echo gd'_'gdImageGif | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
 LIBS="-lplot  $LIBS"  LIBS="-lgd  $LIBS"
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 3891 "configure"  #line 3894 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
 char openpl();  char gdImageGif();
   
 int main() {  int main() {
 openpl()  gdImageGif()
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:3902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
 else  else
Line 3913  LIBS="$ac_save_LIBS"
Line 3916  LIBS="$ac_save_LIBS"
 fi  fi
 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
   echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
        cat >> confdefs.h <<\EOF    TERMLIBS="-lgd $TERMLIBS"
 #define UNIXPLOT 1          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:3925: 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 3930 "configure"
   #include "confdefs.h"
   #include <$ac_hdr>
 EOF  EOF
   ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
   { (eval echo configure:3935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
   ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
   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
    cat >> confdefs.h <<\EOF
   #define HAVE_LIBGD 1
   EOF
   
      TERMLIBS="$TERMLIBS -lplot"  
 else  else
   echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
      with_plot=no  echo "configure: warning: found gd library but not gd.h
   please add path to gd.h to CPPFLAGS in Makefile" 1>&2
   
 fi  fi
   done
   
   else  else
         TERMXLIBS="$X_LIBS -lXaw -lXmu -lXt -lXext -lX11"    echo "$ac_t""no" 1>&6
     ac_lib_var=`echo plot'_'pl_textangle | sed 'y%./+-%__p_%'`  echo "$ac_t""  GD library not found or cannot create gif images.
   gp_tr_lib=HAVE_LIB`echo plot | sed -e 's/[^a-zA-Z0-9_]/_/g' \    See term/gif.trm for download details" 1>&6
     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`  fi
 echo $ac_n "checking for pl_textangle in -lplot""... $ac_c" 1>&6  
 echo "configure:3933: checking for pl_textangle in -lplot" >&5     fi
   fi
   
   
   # Check whether --with-plot or --without-plot was given.
   if test "${with_plot+set}" = set; then
     withval="$with_plot"
     if test "$withval" = yes; then
             echo $ac_n "checking for openpl in -lplot""... $ac_c" 1>&6
   echo "configure:3982: checking for openpl in -lplot" >&5
   ac_lib_var=`echo plot'_'openpl | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   gp_save_TERMLIBS="$TERMLIBS"    ac_save_LIBS="$LIBS"
 if test "$with_plot" != yes && test "$with_plot" != no; then  LIBS="-lplot  $LIBS"
   gp_l_path=`echo "$with_plot" | sed -e 's%/libplot\.a$%%'`  
   gp_l_prfx=`echo $gp_l_path | sed -e 's%/lib$%%' -e 's%/include$%%'`  
   gp_l_list="$gp_l_prfx $gp_l_prfx/lib $gp_l_path"  
 fi  
 for ac_dir in $gp_l_list '' /usr/local/lib ; do  
   test x${ac_dir} != x && TERMLIBS="-L${ac_dir} $gp_save_TERMLIBS"  
   ac_lib_var=`echo plot'_'pl_textangle | sed 'y%./+-%__p_%'`  
 ac_save_LIBS="$LIBS"  
 LIBS="$TERMLIBS $TERMXLIBS -lplot $TERMXLIBS $LIBS"  
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 3949 "configure"  #line 3990 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
 char pl_textangle();  char openpl();
   
 int main() {  int main() {
 pl_textangle()  openpl()
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:3960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
 else  else
Line 3967  else
Line 4008  else
 fi  fi
 rm -f conftest*  rm -f conftest*
 LIBS="$ac_save_LIBS"  LIBS="$ac_save_LIBS"
 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  
   ac_tr_lib=HAVE_LIB`echo plot | sed -e 's/[^a-zA-Z0-9_]/_/g' \  
     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`  
 fi  
   
   TERMLIBS="$gp_save_TERMLIBS"  
   if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  
     eval "ac_cv_lib_$ac_lib_var=${ac_dir}"  
     break  
   fi  
 done  
   
 fi  fi
   if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" != no"; then  
   if eval "test \"`echo x'$ac_cv_lib_'$ac_lib_var`\" != x" && eval "test \"`echo x'$ac_cv_lib_'$ac_lib_var`\" != xyes"; then  
     eval "TERMLIBS=\"$gp_save_TERMLIBS -L`echo '$ac_cv_lib_'$ac_lib_var`\""  
   fi  
   TERMLIBS="$TERMLIBS -lplot"  
   echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
     cat >> confdefs.h <<\EOF
   #define UNIXPLOT 1
   EOF
   
           TERMLIBS="-lplot $TERMLIBS"
 else  else
   echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
   with_plot=no
 fi  fi
   
     if test "$ac_cv_lib_plot_pl_textangle" = no; then     elif test "$withval" != no; then
       ac_lib_var=`echo plot'_'textangle | sed 'y%./+-%__p_%'`            if test -d $withval/include; then
   gp_tr_lib=HAVE_LIB`echo plot | sed -e 's/[^a-zA-Z0-9_]/_/g' \         CPPFLAGS="$CPPFLAGS -I$withval/include"
     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`       fi
 echo $ac_n "checking for textangle in -lplot""... $ac_c" 1>&6       if test -d $withval/lib; then
 echo "configure:4000: checking for textangle in -lplot" >&5         LDFLAGS="$LDFLAGS -L$withval/lib"
        fi
        TERMXLIBS="$X_LIBS -lXaw -lXmu -lXt -lXext -lX11"
        echo $ac_n "checking for pl_textangle in -lplot""... $ac_c" 1>&6
   echo "configure:4035: checking for pl_textangle in -lplot" >&5
   ac_lib_var=`echo plot'_'pl_textangle | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   gp_save_TERMLIBS="$TERMLIBS"    ac_save_LIBS="$LIBS"
 if test "$with_plot" != yes && test "$with_plot" != no; then  LIBS="-lplot $TERMXLIBS $LIBS"
   gp_l_path=`echo "$with_plot" | sed -e 's%/libplot\.a$%%'`  
   gp_l_prfx=`echo $gp_l_path | sed -e 's%/lib$%%' -e 's%/include$%%'`  
   gp_l_list="$gp_l_prfx $gp_l_prfx/lib $gp_l_path"  
 fi  
 for ac_dir in $gp_l_list '' /usr/local/lib ; do  
   test x${ac_dir} != x && TERMLIBS="-L${ac_dir} $gp_save_TERMLIBS"  
   ac_lib_var=`echo plot'_'textangle | sed 'y%./+-%__p_%'`  
 ac_save_LIBS="$LIBS"  
 LIBS="$TERMLIBS $TERMXLIBS -lplot $TERMXLIBS $LIBS"  
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 4016 "configure"  #line 4043 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
 char textangle();  char pl_textangle();
   
 int main() {  int main() {
 textangle()  pl_textangle()
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:4027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
 else  else
Line 4034  else
Line 4061  else
 fi  fi
 rm -f conftest*  rm -f conftest*
 LIBS="$ac_save_LIBS"  LIBS="$ac_save_LIBS"
   
   fi
 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
   ac_tr_lib=HAVE_LIB`echo plot | sed -e 's/[^a-zA-Z0-9_]/_/g' \    echo "$ac_t""yes" 1>&6
     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`    TERMLIBS="-lplot $TERMLIBS"
           cat >> confdefs.h <<\EOF
   #define GNUGRAPH 1
   EOF
   
   else
     echo "$ac_t""no" 1>&6
   echo "configure: warning: GNU plotutils v2.2 or newer required -- disabling gnugraph terminal" 1>&2
           TERMXLIBS=
           with_plot=no
 fi  fi
   
   TERMLIBS="$gp_save_TERMLIBS"     fi
   if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  
     eval "ac_cv_lib_$ac_lib_var=${ac_dir}"  
     break  
   fi  
 done  
   
 fi  fi
   
 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" != no"; then  
   if eval "test \"`echo x'$ac_cv_lib_'$ac_lib_var`\" != x" && eval "test \"`echo x'$ac_cv_lib_'$ac_lib_var`\" != xyes"; then  # Check whether --with-png or --without-png was given.
     eval "TERMLIBS=\"$gp_save_TERMLIBS -L`echo '$ac_cv_lib_'$ac_lib_var`\""  if test "${with_png+set}" = set; then
   fi    withval="$with_png"
   TERMLIBS="$TERMLIBS -lplot"    if test "$withval" != no; then
   echo "$ac_t""yes" 1>&6       if test -d $withval/include; then
          CPPFLAGS="$CPPFLAGS -I$withval/include"
        fi
        if test -d $withval/lib; then
          LDFLAGS="$LDFLAGS -L$withval/lib"
        fi
        with_png=yes
      fi
 else  else
   echo "$ac_t""no" 1>&6    with_png=yes
 fi  fi
   
       if test "$ac_cv_lib_plot_textangle" = no; then  
         TERMXLIBS=  if test "$with_png" = yes; then
         ac_lib_var=`echo plot'_'rotate | sed 'y%./+-%__p_%'`    echo $ac_n "checking for png_init_io in -lpng""... $ac_c" 1>&6
   gp_tr_lib=HAVE_LIB`echo plot | sed -e 's/[^a-zA-Z0-9_]/_/g' \  echo "configure:4104: checking for png_init_io in -lpng" >&5
     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`  ac_lib_var=`echo png'_'png_init_io | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for rotate in -lplot""... $ac_c" 1>&6  
 echo "configure:4068: checking for rotate in -lplot" >&5  
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   gp_save_TERMLIBS="$TERMLIBS"    ac_save_LIBS="$LIBS"
 if test "$with_plot" != yes && test "$with_plot" != no; then  LIBS="-lpng -lz $LIBS"
   gp_l_path=`echo "$with_plot" | sed -e 's%/libplot\.a$%%'`  
   gp_l_prfx=`echo $gp_l_path | sed -e 's%/lib$%%' -e 's%/include$%%'`  
   gp_l_list="$gp_l_prfx $gp_l_prfx/lib $gp_l_path"  
 fi  
 for ac_dir in $gp_l_list '' /usr/local/lib ; do  
   test x${ac_dir} != x && TERMLIBS="-L${ac_dir} $gp_save_TERMLIBS"  
   ac_lib_var=`echo plot'_'rotate | sed 'y%./+-%__p_%'`  
 ac_save_LIBS="$LIBS"  
 LIBS="$TERMLIBS $TERMXLIBS -lplot  $LIBS"  
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 4084 "configure"  #line 4112 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
 char rotate();  char png_init_io();
   
 int main() {  int main() {
 rotate()  png_init_io()
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:4095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
 else  else
Line 4102  else
Line 4130  else
 fi  fi
 rm -f conftest*  rm -f conftest*
 LIBS="$ac_save_LIBS"  LIBS="$ac_save_LIBS"
 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  
   ac_tr_lib=HAVE_LIB`echo plot | sed -e 's/[^a-zA-Z0-9_]/_/g' \  
     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`  
 fi  
   
   TERMLIBS="$gp_save_TERMLIBS"  
   if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  
     eval "ac_cv_lib_$ac_lib_var=${ac_dir}"  
     break  
   fi  
 done  
   
 fi  fi
   if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" != no"; then  
   if eval "test \"`echo x'$ac_cv_lib_'$ac_lib_var`\" != x" && eval "test \"`echo x'$ac_cv_lib_'$ac_lib_var`\" != xyes"; then  
     eval "TERMLIBS=\"$gp_save_TERMLIBS -L`echo '$ac_cv_lib_'$ac_lib_var`\""  
   fi  
   TERMLIBS="$TERMLIBS -lplot"  
   echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
 else    TERMLIBS="-lpng -lz $TERMLIBS"
   echo "$ac_t""no" 1>&6       for ac_hdr in png.h
 fi  do
   ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
         if test "$ac_cv_lib_plot_rotate" = no; then  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
           echo "configure: warning: can't find GNU libplot -- disabling gnugraph terminal" 1>&2  echo "configure:4143: checking for $ac_hdr" >&5
           with_plot=no  
         else  
           echo "$ac_t"" - using obsolete GNU graphics library" 1>&6  
         fi # old GNU plotlib  
       else  
         echo "$ac_t"" - using GNU plotutils library" 1>&6  
       fi # GNU plotlib pre-2.2  
     else  
       ac_safe=`echo "plotcompat.h" | sed 'y%./+-%__p_%'`  
   ac_tr_hdr=HAVE_`echo plotcompat.h | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  
 echo $ac_n "checking for plotcompat.h""... $ac_c" 1>&6  
 echo "configure:4143: checking for plotcompat.h" >&5  
 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   gp_save_CPPFLAGS="$CPPFLAGS"  
 if test "$with_plot" != yes && test "$with_plot" != no; then  
   gp_h_path=`echo "$with_plot" | sed -e 's%/libplotcompat.h\.a$%%'`  
   gp_h_prfx=`echo "$gp_h_path" | sed -e 's%/lib$%%' -e 's%/include$%%'`  
   gp_h_list="$gp_h_prfx $gp_h_prfx/include $gp_h_path"  
 else  
   gp_h_list=''  
 fi  
 for ac_dir in $gp_h_list '' /usr/local/include ; do  
   test x${ac_dir} != x && CPPFLAGS="$gp_save_CPPFLAGS -I${ac_dir}"  
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 4158 "configure"  #line 4148 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 #include <plotcompat.h>  #include <$ac_hdr>
 EOF  EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 { (eval echo configure:4163: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:4153: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then  if test -z "$ac_err"; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_header_$ac_safe=${ac_dir}"    eval "ac_cv_header_$ac_safe=yes"
 else  else
   echo "$ac_err" >&5    echo "$ac_err" >&5
   echo "configure: failed program was:" >&5    echo "configure: failed program was:" >&5
Line 4172  else
Line 4162  else
   eval "ac_cv_header_$ac_safe=no"    eval "ac_cv_header_$ac_safe=no"
 fi  fi
 rm -f conftest*  rm -f conftest*
   CPPFLAGS="$gp_save_CPPFLAGS"  
   if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" != no"; then  
     break  
   fi  
 done  
   
 fi  fi
   if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" != no"; then    echo "$ac_t""yes" 1>&6
   if eval "test \"`echo x'$ac_cv_header_'$ac_safe`\" != x" && eval "test \"`echo x'$ac_cv_header_'$ac_safe`\" != xyes"; then      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
     eval "CPPFLAGS=\"$gp_save_CPPFLAGS -I`echo '$ac_cv_header_'$ac_safe`\""  
   fi  
   cat >> confdefs.h <<EOF    cat >> confdefs.h <<EOF
 #define $ac_tr_hdr 1  #define $ac_tr_hdr 1
 EOF  EOF
    for ac_hdr in zlib.h
   echo "$ac_t""yes" 1>&6  do
           cat >> confdefs.h <<\EOF  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 #define HAVE_PLOTCOMPAT_H 1  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
 EOF  echo "configure:4177: checking for $ac_hdr" >&5
   if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 else  
   echo "$ac_t""no" 1>&6  
 echo "configure: warning: found GNU plotutils 2.2+ library but not plotcompat.h" 1>&2  
         echo "configure: warning: please add path to plotcompat.h to CPPFLAGS in Makefile" 1>&2  
   
 fi  
  # plotcompat.h  
     fi # new GNU plotlib  
   
     if test "$with_plot" != no; then  
       cat >> confdefs.h <<\EOF  
 #define GNUGRAPH 1  
 EOF  
   
       cat >> confdefs.h <<\EOF  
 #define GNU_PLOTUTILS 1  
 EOF  
   
     fi  
   
   fi # ! Unix plotlib  
 fi  
   
 if test "$with_gd" != no; then  
   ac_lib_var=`echo gd'_'gdImageCreate | sed 'y%./+-%__p_%'`  
   gp_tr_lib=HAVE_LIB`echo gd | sed -e 's/[^a-zA-Z0-9_]/_/g' \  
     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`  
 echo $ac_n "checking for gdImageCreate in -lgd""... $ac_c" 1>&6  
 echo "configure:4225: checking for gdImageCreate in -lgd" >&5  
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   gp_save_TERMLIBS="$TERMLIBS"    cat > conftest.$ac_ext <<EOF
 if test "$with_gd" != yes && test "$with_gd" != no; then  #line 4182 "configure"
   gp_l_path=`echo "$with_gd" | sed -e 's%/libgd\.a$%%'`  
   gp_l_prfx=`echo $gp_l_path | sed -e 's%/lib$%%' -e 's%/include$%%'`  
   gp_l_list="$gp_l_prfx $gp_l_prfx/lib $gp_l_path"  
 fi  
 for ac_dir in $gp_l_list '' /usr/local/lib ; do  
   test x${ac_dir} != x && TERMLIBS="-L${ac_dir} $gp_save_TERMLIBS"  
   ac_lib_var=`echo gd'_'gdImageCreate | sed 'y%./+-%__p_%'`  
 ac_save_LIBS="$LIBS"  
 LIBS="$TERMLIBS $TERMXLIBS -lgd  $LIBS"  
 cat > conftest.$ac_ext <<EOF  
 #line 4241 "configure"  
 #include "confdefs.h"  #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */  #include <$ac_hdr>
 /* 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  EOF
 if { (eval echo configure:4252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
   { (eval echo configure:4187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
   ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
   if test -z "$ac_err"; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_header_$ac_safe=yes"
 else  else
     echo "$ac_err" >&5
   echo "configure: failed program was:" >&5    echo "configure: failed program was:" >&5
   cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=no"    eval "ac_cv_header_$ac_safe=no"
 fi  fi
 rm -f conftest*  rm -f conftest*
 LIBS="$ac_save_LIBS"  
 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  
   ac_tr_lib=HAVE_LIB`echo gd | sed -e 's/[^a-zA-Z0-9_]/_/g' \  
     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`  
 fi  fi
   if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
   TERMLIBS="$gp_save_TERMLIBS"  
   if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  
     eval "ac_cv_lib_$ac_lib_var=${ac_dir}"  
     break  
   fi  
 done  
   
 fi  
   
 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" != no"; then  
   if eval "test \"`echo x'$ac_cv_lib_'$ac_lib_var`\" != x" && eval "test \"`echo x'$ac_cv_lib_'$ac_lib_var`\" != xyes"; then  
     eval "TERMLIBS=\"$gp_save_TERMLIBS -L`echo '$ac_cv_lib_'$ac_lib_var`\""  
   fi  
   TERMLIBS="$TERMLIBS -lgd"  
   echo "$ac_t""yes" 1>&6    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  else
   echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
   echo "configure: warning: found z library but not zlib.h
   please add path to zlib.h to CPPFLAGS in Makefile" 1>&2
 fi  fi
   done
   
   if test "$ac_cv_lib_gd_gdImageCreate" != no; then        cat > conftest.$ac_ext <<EOF
     ac_safe=`echo "gd.h" | sed 'y%./+-%__p_%'`  #line 4216 "configure"
   ac_tr_hdr=HAVE_`echo gd.h | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  
 echo $ac_n "checking for gd.h""... $ac_c" 1>&6  
 echo "configure:4291: checking for gd.h" >&5  
 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  
   echo $ac_n "(cached) $ac_c" 1>&6  
 else  
   gp_save_CPPFLAGS="$CPPFLAGS"  
 if test "$with_gd" != yes && test "$with_gd" != no; then  
   gp_h_path=`echo "$with_gd" | sed -e 's%/libgd.h\.a$%%'`  
   gp_h_prfx=`echo "$gp_h_path" | sed -e 's%/lib$%%' -e 's%/include$%%'`  
   gp_h_list="$gp_h_prfx $gp_h_prfx/include $gp_h_path"  
 else  
   gp_h_list=''  
 fi  
 for ac_dir in $gp_h_list '' /usr/local/include ; do  
   test x${ac_dir} != x && CPPFLAGS="$gp_save_CPPFLAGS -I${ac_dir}"  
   cat > conftest.$ac_ext <<EOF  
 #line 4306 "configure"  
 #include "confdefs.h"  #include "confdefs.h"
 #include <gd.h>  #include "png.h"
   #if PNG_LIBPNG_VER < 89
   You lose.
   #endif
   
 EOF  EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 { (eval echo configure:4311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }    egrep "You lose" >/dev/null 2>&1; then
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  
 if test -z "$ac_err"; then  
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_header_$ac_safe=${ac_dir}"    echo "configure: warning: - libpng too old - not including png driver" 1>&2
 else          ac_cv_header_png_h=no
   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  fi
 rm -f conftest*  rm -f conftest*
   CPPFLAGS="$gp_save_CPPFLAGS"  
   if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" != no"; then  else
     break    echo "$ac_t""no" 1>&6
   fi  echo "configure: warning: found png library but not png.h
   please add path to png.h to CPPFLAGS in Makefile" 1>&2
   fi
 done  done
   
   else
     echo "$ac_t""no" 1>&6
   echo "$ac_t""  PNG library not found.
     See term/png.trm for download details" 1>&6
 fi  fi
   
 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" != no"; then  
   if eval "test \"`echo x'$ac_cv_header_'$ac_safe`\" != x" && eval "test \"`echo x'$ac_cv_header_'$ac_safe`\" != xyes"; then  
     eval "CPPFLAGS=\"$gp_save_CPPFLAGS -I`echo '$ac_cv_header_'$ac_safe`\""  
   fi  
   cat >> confdefs.h <<EOF  
 #define $ac_tr_hdr 1  
 EOF  
   
   echo "$ac_t""yes" 1>&6    if test "$ac_cv_header_png_h" = yes; then
               cat >> confdefs.h <<\EOF      cat >> confdefs.h <<\EOF
 #define HAVE_LIBGD 1  #define HAVE_LIBPNG 1
 EOF  EOF
   
 else    fi
   echo "$ac_t""no" 1>&6  
             echo "configure: warning: found gd library but not gd.h" 1>&2  
       echo "configure: warning: please add path to gd.h to CPPFLAGS in Makefile" 1>&2  
 fi  fi
   
   else  # Check whether --with-pdf or --without-pdf was given.
     echo "$ac_t""- see term/gif.trm for download details" 1>&6  if test "${with_pdf+set}" = set; then
   fi    withval="$with_pdf"
     if test "$withval" != no; then
        if test -d $withval/include; then
          CPPFLAGS="$CPPFLAGS -I$withval/include"
        fi
        if test -d $withval/lib; then
          LDFLAGS="$LDFLAGS -L$withval/lib"
        fi
        with_pdf=yes
      fi
   else
     with_pdf=no
 fi  fi
   
 if test "$with_png" != no; then  
   ac_lib_var=`echo png'_'png_info_init | sed 'y%./+-%__p_%'`  if test "$with_pdf" = yes; then
   gp_tr_lib=HAVE_LIB`echo png | sed -e 's/[^a-zA-Z0-9_]/_/g' \    echo $ac_n "checking for PDF_get_majorversion in -lpdf""... $ac_c" 1>&6
     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`  echo "configure:4273: checking for PDF_get_majorversion in -lpdf" >&5
 echo $ac_n "checking for png_info_init in -lpng""... $ac_c" 1>&6  ac_lib_var=`echo pdf'_'PDF_get_majorversion | sed 'y%./+-%__p_%'`
 echo "configure:4361: checking for png_info_init in -lpng" >&5  
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   gp_save_TERMLIBS="$TERMLIBS"    ac_save_LIBS="$LIBS"
 if test "$with_png" != yes && test "$with_png" != no; then  LIBS="-lpdf  $LIBS"
   gp_l_path=`echo "$with_png" | sed -e 's%/libpng\.a$%%'`  
   gp_l_prfx=`echo $gp_l_path | sed -e 's%/lib$%%' -e 's%/include$%%'`  
   gp_l_list="$gp_l_prfx $gp_l_prfx/lib $gp_l_path"  
 fi  
 for ac_dir in $gp_l_list '' /usr/local/lib ; do  
   test x${ac_dir} != x && TERMLIBS="-L${ac_dir} $gp_save_TERMLIBS"  
   ac_lib_var=`echo png'_'png_info_init | sed 'y%./+-%__p_%'`  
 ac_save_LIBS="$LIBS"  
 LIBS="$TERMLIBS $TERMXLIBS -lpng -lz $LIBS"  
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 4377 "configure"  #line 4281 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
     builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
 char png_info_init();  char PDF_get_majorversion();
   
 int main() {  int main() {
 png_info_init()  PDF_get_majorversion()
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:4388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
 else  else
Line 4395  else
Line 4299  else
 fi  fi
 rm -f conftest*  rm -f conftest*
 LIBS="$ac_save_LIBS"  LIBS="$ac_save_LIBS"
 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  
   ac_tr_lib=HAVE_LIB`echo png | sed -e 's/[^a-zA-Z0-9_]/_/g' \  
     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`  
 fi  
   
   TERMLIBS="$gp_save_TERMLIBS"  
   if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  
     eval "ac_cv_lib_$ac_lib_var=${ac_dir}"  
     break  
   fi  
 done  
   
 fi  fi
   if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" != no"; then  
   if eval "test \"`echo x'$ac_cv_lib_'$ac_lib_var`\" != x" && eval "test \"`echo x'$ac_cv_lib_'$ac_lib_var`\" != xyes"; then  
     eval "TERMLIBS=\"$gp_save_TERMLIBS -L`echo '$ac_cv_lib_'$ac_lib_var`\""  
   fi  
   TERMLIBS="$TERMLIBS -lpng"  
   echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
 else    TERMLIBS="-lpdf $TERMLIBS"
   echo "$ac_t""no" 1>&6       cat >> confdefs.h <<\EOF
 fi  #define HAVE_LIBPDF 1
   EOF
   
   if test "$ac_cv_lib_png_png_info_init" != no; then       for ac_hdr in pdflib.h
     TERMLIBS="$TERMLIBS -lz"  do
     ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
   ac_tr_hdr=HAVE_`echo png.h | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
 echo $ac_n "checking for png.h""... $ac_c" 1>&6  echo "configure:4316: checking for $ac_hdr" >&5
 echo "configure:4428: checking for png.h" >&5  
 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   gp_save_CPPFLAGS="$CPPFLAGS"  
 if test "$with_png" != yes && test "$with_png" != no; then  
   gp_h_path=`echo "$with_png" | sed -e 's%/libpng.h\.a$%%'`  
   gp_h_prfx=`echo "$gp_h_path" | sed -e 's%/lib$%%' -e 's%/include$%%'`  
   gp_h_list="$gp_h_prfx $gp_h_prfx/include $gp_h_path"  
 else  
   gp_h_list=''  
 fi  
 for ac_dir in $gp_h_list '' /usr/local/include ; do  
   test x${ac_dir} != x && CPPFLAGS="$gp_save_CPPFLAGS -I${ac_dir}"  
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 4443 "configure"  #line 4321 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 #include <png.h>  #include <$ac_hdr>
 EOF  EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 { (eval echo configure:4448: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:4326: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then  if test -z "$ac_err"; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_header_$ac_safe=${ac_dir}"    eval "ac_cv_header_$ac_safe=yes"
 else  else
   echo "$ac_err" >&5    echo "$ac_err" >&5
   echo "configure: failed program was:" >&5    echo "configure: failed program was:" >&5
Line 4457  else
Line 4335  else
   eval "ac_cv_header_$ac_safe=no"    eval "ac_cv_header_$ac_safe=no"
 fi  fi
 rm -f conftest*  rm -f conftest*
   CPPFLAGS="$gp_save_CPPFLAGS"  
   if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" != no"; then  
     break  
   fi  
 done  
   
 fi  fi
   if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" != no"; then    echo "$ac_t""yes" 1>&6
   if eval "test \"`echo x'$ac_cv_header_'$ac_safe`\" != x" && eval "test \"`echo x'$ac_cv_header_'$ac_safe`\" != xyes"; then      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
     eval "CPPFLAGS=\"$gp_save_CPPFLAGS -I`echo '$ac_cv_header_'$ac_safe`\""  
   fi  
   cat >> confdefs.h <<EOF    cat >> confdefs.h <<EOF
 #define $ac_tr_hdr 1  #define $ac_tr_hdr 1
 EOF  EOF
   
   echo "$ac_t""yes" 1>&6  
   :  
 else  else
   echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
      echo "configure: warning: found png library but not png.h" 1>&2  echo "configure: warning: found pdf library but not pdflib.h
      echo "configure: warning: please add path to png.h to CPPFLAGS in Makefile" 1>&2  please add path to pdflib.h to CPPFLAGS in Makefile" 1>&2
   
 fi  fi
   done
   
     ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`       for ac_hdr in zlib.h
   ac_tr_hdr=HAVE_`echo zlib.h | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  do
 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo "configure:4489: checking for zlib.h" >&5  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
   echo "configure:4358: checking for $ac_hdr" >&5
 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   gp_save_CPPFLAGS="$CPPFLAGS"  
 if test "$with_png" != yes && test "$with_png" != no; then  
   gp_h_path=`echo "$with_png" | sed -e 's%/libzlib.h\.a$%%'`  
   gp_h_prfx=`echo "$gp_h_path" | sed -e 's%/lib$%%' -e 's%/include$%%'`  
   gp_h_list="$gp_h_prfx $gp_h_prfx/include $gp_h_path"  
 else  
   gp_h_list=''  
 fi  
 for ac_dir in $gp_h_list '' /usr/local/include ; do  
   test x${ac_dir} != x && CPPFLAGS="$gp_save_CPPFLAGS -I${ac_dir}"  
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 4504 "configure"  #line 4363 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 #include <zlib.h>  #include <$ac_hdr>
 EOF  EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 { (eval echo configure:4509: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:4368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then  if test -z "$ac_err"; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_header_$ac_safe=${ac_dir}"    eval "ac_cv_header_$ac_safe=yes"
 else  else
   echo "$ac_err" >&5    echo "$ac_err" >&5
   echo "configure: failed program was:" >&5    echo "configure: failed program was:" >&5
Line 4518  else
Line 4377  else
   eval "ac_cv_header_$ac_safe=no"    eval "ac_cv_header_$ac_safe=no"
 fi  fi
 rm -f conftest*  rm -f conftest*
   CPPFLAGS="$gp_save_CPPFLAGS"  
   if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" != no"; then  
     break  
   fi  
 done  
   
 fi  fi
   if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" != no"; then    echo "$ac_t""yes" 1>&6
   if eval "test \"`echo x'$ac_cv_header_'$ac_safe`\" != x" && eval "test \"`echo x'$ac_cv_header_'$ac_safe`\" != xyes"; then      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
     eval "CPPFLAGS=\"$gp_save_CPPFLAGS -I`echo '$ac_cv_header_'$ac_safe`\""  
   fi  
   cat >> confdefs.h <<EOF    cat >> confdefs.h <<EOF
 #define $ac_tr_hdr 1  #define $ac_tr_hdr 1
 EOF  EOF
   
   echo "$ac_t""yes" 1>&6  
   :  
 else  else
   echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
      echo "configure: warning: found z library but not zlib.h" 1>&2  echo "configure: warning: found z library but not zlib.h
      echo "configure: warning: please add path to zlib.h to CPPFLAGS in Makefile" 1>&2  please add path to zlib.h to CPPFLAGS in Makefile" 1>&2
   
 fi  fi
   done
   
     if test "$ac_cv_header_png_h" != no; then  else
       cat > conftest.$ac_ext <<EOF    echo "$ac_t""no" 1>&6
 #line 4549 "configure"  echo "$ac_t""  PDF library not found.
 #include "confdefs.h"    See term/pdf.trm for download details" 1>&6
 #include "png.h"  
 #if PNG_LIBPNG_VER < 89  
 You lose.  
 #endif  
   
 EOF  
 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  
   egrep "You lose" >/dev/null 2>&1; then  
   rm -rf conftest*  
          echo "configure: warning: - libpng too old - not including png driver" 1>&2  
        with_png=no  
 fi  fi
 rm -f conftest*  
   
     else  
       echo "configure: warning: - cannot check png version - compilation may fail" 1>&2  
     fi  
   
   if test "$with_png" != no; then    if test "$ac_cv_header_pdflib_h" = yes; then
     cat >> confdefs.h <<\EOF      cat >> confdefs.h <<\EOF
 #define HAVE_LIBPNG 1  #define HAVE_LIBPDF 1
 EOF  EOF
   
   fi    fi
   
   else  
     echo "$ac_t""- see term/png.trm for download details" 1>&6  
   fi  
 fi  fi
   
   
   
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 4584 "configure"  #line 4414 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 #ifdef SCO  #ifdef SCO
 yes  yes
Line 4591  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Line 4421  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   egrep "yes" >/dev/null 2>&1; then    egrep "yes" >/dev/null 2>&1; then
   rm -rf conftest*    rm -rf conftest*
   echo $ac_n "checking for v_opnwk in -lccgi""... $ac_c" 1>&6    echo $ac_n "checking for v_opnwk in -lccgi""... $ac_c" 1>&6
 echo "configure:4595: checking for v_opnwk in -lccgi" >&5  echo "configure:4425: checking for v_opnwk in -lccgi" >&5
 ac_lib_var=`echo ccgi'_'v_opnwk | sed 'y%./+-%__p_%'`  ac_lib_var=`echo ccgi'_'v_opnwk | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
Line 4599  else
Line 4429  else
   ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
 LIBS="-lccgi  $LIBS"  LIBS="-lccgi  $LIBS"
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 4603 "configure"  #line 4433 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
Line 4610  int main() {
Line 4440  int main() {
 v_opnwk()  v_opnwk()
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:4614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
 else  else
Line 4625  LIBS="$ac_save_LIBS"
Line 4455  LIBS="$ac_save_LIBS"
 fi  fi
 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
   echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
       cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
 #define CGI 1  #define CGI 1
 EOF  EOF
               TERMLIBS="$TERMLIBS -lccgi"  
                 TERMLIBS="-lccgi $TERMLIBS"
 else  else
   echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
 fi  fi
Line 4638  rm -f conftest*
Line 4469  rm -f conftest*
   
   
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 4642 "configure"  #line 4473 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 #ifdef sun  #ifdef sun
 yes  yes
Line 4649  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Line 4480  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   egrep "yes" >/dev/null 2>&1; then    egrep "yes" >/dev/null 2>&1; then
   rm -rf conftest*    rm -rf conftest*
   echo $ac_n "checking for window_create in -lsuntool""... $ac_c" 1>&6    echo $ac_n "checking for window_create in -lsuntool""... $ac_c" 1>&6
 echo "configure:4653: checking for window_create in -lsuntool" >&5  echo "configure:4484: checking for window_create in -lsuntool" >&5
 ac_lib_var=`echo suntool'_'window_create | sed 'y%./+-%__p_%'`  ac_lib_var=`echo suntool'_'window_create | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
 LIBS="-lsuntool     -lsunwindow -lpixrect $LIBS"  LIBS="-lsuntool -lsunwindow -lpixrect $LIBS"
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 4661 "configure"  #line 4492 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
Line 4668  int main() {
Line 4499  int main() {
 window_create()  window_create()
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:4672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
 else  else
Line 4683  LIBS="$ac_save_LIBS"
Line 4514  LIBS="$ac_save_LIBS"
 fi  fi
 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
   echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
       ac_safe=`echo "suntool/sunview.h" | sed 'y%./+-%__p_%'`    ac_safe=`echo "suntool/sunview.h" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for suntool/sunview.h""... $ac_c" 1>&6  echo $ac_n "checking for suntool/sunview.h""... $ac_c" 1>&6
 echo "configure:4689: checking for suntool/sunview.h" >&5  echo "configure:4520: checking for suntool/sunview.h" >&5
 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
 else  else
   cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
 #line 4694 "configure"  #line 4525 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 #include <suntool/sunview.h>  #include <suntool/sunview.h>
 EOF  EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 { (eval echo configure:4699: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:4530: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then  if test -z "$ac_err"; then
   rm -rf conftest*    rm -rf conftest*
Line 4711  rm -f conftest*
Line 4542  rm -f conftest*
 fi  fi
 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
   echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
       cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
 #define SUN 1  #define SUN 1
 EOF  EOF
     TERMLIBS="$TERMLIBS -lsuntool -lsunwindow -lpixrect"  
       TERMLIBS="-lsuntool -lsunwindow -lpixrect $TERMLIBS"
 else  else
   echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
 fi  fi
Line 4728  rm -f conftest*
Line 4560  rm -f conftest*
   
   
   
 if test "$with_cdwrc" = no; then  # Check whether --with-cwdrc or --without-cwdrc was given.
   cat >> confdefs.h <<\EOF  if test "${with_cwdrc+set}" = set; then
     withval="$with_cwdrc"
     :
   else
     if test "$withval" = yes; then
        cat >> confdefs.h <<\EOF
 #define NOCWDRC 1  #define NOCWDRC 1
 EOF  EOF
   
      fi
 fi  fi
   
 if test "$enable_iris" = yes; then  
   echo $ac_n "checking for winopen in -lgl_s""... $ac_c" 1>&6  # Check whether --enable-ggi or --disable-ggi was given.
 echo "configure:4741: checking for winopen in -lgl_s" >&5  if test "${enable_ggi+set}" = set; then
     enableval="$enable_ggi"
     echo $ac_n "checking for ggiInit in -lggi""... $ac_c" 1>&6
   echo "configure:4582: checking for ggiInit in -lggi" >&5
   ac_lib_var=`echo ggi'_'ggiInit | 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="-lggi  $LIBS"
   cat > conftest.$ac_ext <<EOF
   #line 4590 "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 ggiInit();
   
   int main() {
   ggiInit()
   ; return 0; }
   EOF
   if { (eval echo configure:4601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; 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
   if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     echo "$ac_t""yes" 1>&6
     echo $ac_n "checking for ggiWmhInit in -lggiwmh""... $ac_c" 1>&6
   echo "configure:4617: checking for ggiWmhInit in -lggiwmh" >&5
   ac_lib_var=`echo ggiwmh'_'ggiWmhInit | 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="-lggiwmh  $LIBS"
   cat > conftest.$ac_ext <<EOF
   #line 4625 "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 ggiWmhInit();
   
   int main() {
   ggiWmhInit()
   ; return 0; }
   EOF
   if { (eval echo configure:4636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; 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
   if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     echo "$ac_t""yes" 1>&6
     cat >> confdefs.h <<\EOF
   #define HAVE_GGI 1
   EOF
   
   else
     echo "$ac_t""no" 1>&6
   enable_ggi=no
   fi
   
   else
     echo "$ac_t""no" 1>&6
   enable_ggi=no
   fi
   
   
   
   fi
   
   # Check whether --enable-iris or --disable-iris was given.
   if test "${enable_iris+set}" = set; then
     enableval="$enable_iris"
     if test "$enableval" = yes; then
        echo $ac_n "checking for winopen in -lgl_s""... $ac_c" 1>&6
   echo "configure:4674: checking for winopen in -lgl_s" >&5
 ac_lib_var=`echo gl_s'_'winopen | sed 'y%./+-%__p_%'`  ac_lib_var=`echo gl_s'_'winopen | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
Line 4745  else
Line 4678  else
   ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
 LIBS="-lgl_s  $LIBS"  LIBS="-lgl_s  $LIBS"
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 4749 "configure"  #line 4682 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
Line 4756  int main() {
Line 4689  int main() {
 winopen()  winopen()
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:4760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
 else  else
Line 4771  LIBS="$ac_save_LIBS"
Line 4704  LIBS="$ac_save_LIBS"
 fi  fi
 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
   echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
      cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
 #define IRIS 1  #define IRIS 1
 EOF  EOF
   
    TERMLIBS="$TERMLIBS -lgl_s"         TERMLIBS="-lgl_s $TERMLIBS"
 else  else
   echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
    enable_iris=no  enable_iris=no
 fi  fi
   
      fi
 fi  fi
   
 if test "$enable_mgr" = yes; then  
   echo $ac_n "checking for m_getinfo in -lmgr""... $ac_c" 1>&6  # Check whether --enable-mgr or --disable-mgr was given.
 echo "configure:4789: checking for m_getinfo in -lmgr" >&5  if test "${enable_mgr+set}" = set; then
     enableval="$enable_mgr"
     if test "$enableval" = yes; then
        echo $ac_n "checking for m_getinfo in -lmgr""... $ac_c" 1>&6
   echo "configure:4727: checking for m_getinfo in -lmgr" >&5
 ac_lib_var=`echo mgr'_'m_getinfo | sed 'y%./+-%__p_%'`  ac_lib_var=`echo mgr'_'m_getinfo | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
Line 4793  else
Line 4731  else
   ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
 LIBS="-lmgr -lpixrect $LIBS"  LIBS="-lmgr -lpixrect $LIBS"
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
 #line 4797 "configure"  #line 4735 "configure"
 #include "confdefs.h"  #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
Line 4804  int main() {
Line 4742  int main() {
 m_getinfo()  m_getinfo()
 ; return 0; }  ; return 0; }
 EOF  EOF
 if { (eval echo configure:4808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*    rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
 else  else
Line 4819  LIBS="$ac_save_LIBS"
Line 4757  LIBS="$ac_save_LIBS"
 fi  fi
 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
   echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
      cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
 #define MGR 1  #define MGR 1
 EOF  EOF
   
    TERMLIBS="$TERMLIBS -lmgr -lpixrect"         TERMLIBS="-lmgr -lpixrect $TERMLIBS"
 else  else
   echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
    enable_mgr=no  enable_mgr=no
 fi  fi
   
      fi
 fi  fi
   
 if test "$enable_rgip" = yes; then  
   cat >> confdefs.h <<\EOF  # Check whether --enable-rgip or --disable-rgip was given.
   if test "${enable_rgip+set}" = set; then
     enableval="$enable_rgip"
     if test "$enableval" = yes; then
        cat >> confdefs.h <<\EOF
 #define RGIP 1  #define RGIP 1
 EOF  EOF
   
      fi
 fi  fi
   
   
Line 4846  fi
Line 4790  fi
   
   
   
   
 eval gp_datadir=$datadir  eval gp_datadir=$datadir
 test $gp_datadir = NONE/share && gp_datadir=/usr/local/share  test $gp_datadir = NONE/share && gp_datadir=/usr/local/share
 echo "$ac_t""  echo "$ac_t""
Line 4853  echo "$ac_t""
Line 4798  echo "$ac_t""
   
   Where is the help file?           $gp_datadir/gnuplot.gih    Where is the help file?           $gp_datadir/gnuplot.gih
 " 1>&6  " 1>&6
 test "$ac_cv_header_gd_h" = yes && \  if test "$ac_cv_header_gd_h" = yes; then
   echo "$ac_t""  Enable generation of GIF files" 1>&6    echo "$ac_t""  Enable generation of GIF files" 1>&6
   fi
   
 test "$ac_cv_header_zlib_h" = yes && \  if test "$ac_cv_header_pdflib_h" = yes; then
     echo "$ac_t""  Enable generation of PDF files" 1>&6
   fi
   
   if test "$ac_cv_header_png_h" = yes; then
   echo "$ac_t""  Enable generation of PNG files" 1>&6    echo "$ac_t""  Enable generation of PNG files" 1>&6
   fi
   
 test "$with_cwdrc" = yes && \  if test "$with_cwdrc" = yes; then
   echo "$ac_t""  Check current directory for .gnuplot file" 1>&6    echo "$ac_t""  Check current directory for .gnuplot file" 1>&6
   fi
   
 if test "$with_readline" != no; then  if test "$with_readline" != no; then
   if test "$with_readline" != yes; then    if test "$with_readline" != yes; then
Line 4871  if test "$with_readline" != no; then
Line 4823  if test "$with_readline" != no; then
   fi    fi
 fi  fi
   
 if test "$with_plot" = yes; then  if test x"$with_plot" != x; then
   echo "$ac_t""  Use the Unix plot library" 1>&6    if test "$with_plot" = yes; then
 elif test "$with_plot" != no; then      echo "$ac_t""  Use the Unix plot library" 1>&6
   echo "$ac_t""  Use the GNU plot library," 1>&6  
   if test x"$ac_cv_header_plotcompat_h" != x && \  
      test "$ac_cv_header_plotcompat_h" != no ; then  
     echo "$ac_t""    version 2.2 or newer" 1>&6  
   else    else
     echo "$ac_t""    version 2.1 or older" 1>&6      echo "$ac_t""  Use the GNU plot library v2.2 or better" 1>&6
   fi    fi
 fi  fi
   
 test "$with_lasergnu" = yes && \  if test "$with_lasergnu" = yes; then
   echo "$ac_t""  Install lasergnu printer script" 1>&6    echo "$ac_t""  Install lasergnu printer script" 1>&6
   fi
   
 if test "$with_linux_vga" = yes; then  if test "$with_linux_vga" = yes; then
   echo "$ac_t""  Use the Linux SVGA console driver" 1>&6    echo "$ac_t""  Use the Linux SVGA console driver" 1>&6
Line 4892  if test "$with_linux_vga" = yes; then
Line 4841  if test "$with_linux_vga" = yes; then
   echo "$ac_t""    gnuplot is installed suid root!" 1>&6    echo "$ac_t""    gnuplot is installed suid root!" 1>&6
 fi  fi
   
 test "$enable_iris" = yes && \  if test "$enable_ggi" = yes; then
     echo "$ac_t""  Enable ggi terminal (EXPERIMENTAL)" 1>&6
   fi
   
   if test "$enable_iris" = yes; then
   echo "$ac_t""  Enable IRIS terminal" 1>&6    echo "$ac_t""  Enable IRIS terminal" 1>&6
   fi
   
 test "$enable_mgr" = yes && \  if test "$enable_mgr" = yes; then
   echo "$ac_t""  Enable MGR terminal" 1>&6    echo "$ac_t""  Enable MGR terminal" 1>&6
   fi
   
 test "$enable_rgip" = yes && \  if test "$enable_rgip" = yes; then
   echo "$ac_t""  Enable RGIP terminal" 1>&6    echo "$ac_t""  Enable RGIP terminal" 1>&6
   fi
   
 test "$no_x" != yes && \  if test "$no_x" != yes; then
   echo "$ac_t""  Use the X Window System    echo "$ac_t""  Use the X Window System
 " 1>&6  " 1>&6
   fi
   
 trap '' 1 2 15  trap '' 1 2 15
 cat > confcache <<\EOF  cat > confcache <<\EOF
Line 5043  s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
Line 5000  s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
 s%@INSTALL_DATA@%$INSTALL_DATA%g  s%@INSTALL_DATA@%$INSTALL_DATA%g
 s%@PACKAGE@%$PACKAGE%g  s%@PACKAGE@%$PACKAGE%g
 s%@VERSION@%$VERSION%g  s%@VERSION@%$VERSION%g
   s%@EXEEXT@%$EXEEXT%g
   s%@OBJEXT@%$OBJEXT%g
 s%@ACLOCAL@%$ACLOCAL%g  s%@ACLOCAL@%$ACLOCAL%g
 s%@AUTOCONF@%$AUTOCONF%g  s%@AUTOCONF@%$AUTOCONF%g
 s%@AUTOMAKE@%$AUTOMAKE%g  s%@AUTOMAKE@%$AUTOMAKE%g
 s%@AUTOHEADER@%$AUTOHEADER%g  s%@AUTOHEADER@%$AUTOHEADER%g
 s%@MAKEINFO@%$MAKEINFO%g  s%@MAKEINFO@%$MAKEINFO%g
 s%@install_sh@%$install_sh%g  
 s%@AMTAR@%$AMTAR%g  s%@AMTAR@%$AMTAR%g
 s%@AMTARFLAGS@%$AMTARFLAGS%g  s%@install_sh@%$install_sh%g
   s%@INSTALL_STRIP_PROGRAM@%$INSTALL_STRIP_PROGRAM%g
   s%@AWK@%$AWK%g
 s%@SET_MAKE@%$SET_MAKE%g  s%@SET_MAKE@%$SET_MAKE%g
   s%@AMDEP_TRUE@%$AMDEP_TRUE%g
   s%@AMDEP_FALSE@%$AMDEP_FALSE%g
   s%@AMDEPBACKSLASH@%$AMDEPBACKSLASH%g
   s%@DEPDIR@%$DEPDIR%g
 s%@CC@%$CC%g  s%@CC@%$CC%g
   s%@am__include@%$am__include%g
   s%@am__quote@%$am__quote%g
   s%@CCDEPMODE@%$CCDEPMODE%g
 s%@CPP@%$CPP%g  s%@CPP@%$CPP%g
 s%@U@%$U%g  s%@U@%$U%g
 s%@ANSI2KNR@%$ANSI2KNR%g  s%@ANSI2KNR@%$ANSI2KNR%g
 s%@ERRORFIX@%$ERRORFIX%g  s%@ERRORFIX@%$ERRORFIX%g
 s%@X_LIBRARIES@%$X_LIBRARIES%g  s%@LIBRARIES_FOR_X@%$LIBRARIES_FOR_X%g
 s%@GNUPLOT_X11@%$GNUPLOT_X11%g  s%@GNUPLOT_X11@%$GNUPLOT_X11%g
 s%@X_CFLAGS@%$X_CFLAGS%g  s%@X_CFLAGS@%$X_CFLAGS%g
 s%@X_PRE_LIBS@%$X_PRE_LIBS%g  s%@X_PRE_LIBS@%$X_PRE_LIBS%g
Line 5276  fi; done
Line 5243  fi; done
   
 EOF  EOF
 cat >> $CONFIG_STATUS <<EOF  cat >> $CONFIG_STATUS <<EOF
   am_indx=1
   for am_file in config.h:config.hin; do
     case " \$CONFIG_HEADERS " in
     *" \$am_file "*)
       am_dir=\`echo \$am_file |sed 's%:.*%%;s%[^/]*\$%%'\`
       if test -n "\$am_dir"; then
         am_tmpdir=\`echo \$am_dir |sed 's%^\(/*\).*\$%\1%'\`
         for am_subdir in \`echo \$am_dir |sed 's%/% %'\`; do
           am_tmpdir=\$am_tmpdir\$am_subdir/
           if test ! -d \$am_tmpdir; then
             mkdir \$am_tmpdir
           fi
         done
       fi
       echo timestamp > "\$am_dir"stamp-h\$am_indx
       ;;
     esac
     am_indx=\`expr \$am_indx + 1\`
   done
   AMDEP_TRUE="$AMDEP_TRUE"
   ac_aux_dir="$ac_aux_dir"
   
 EOF  EOF
 cat >> $CONFIG_STATUS <<\EOF  cat >> $CONFIG_STATUS <<\EOF
   test -z "$CONFIG_HEADERS" || echo timestamp >      stamp-h
   
   test x"$AMDEP_TRUE" != x"" ||
   for mf in $CONFIG_FILES; do
     case "$mf" in
     Makefile) dirpart=.;;
     */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
     *) continue;;
     esac
     grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
     # Extract the definition of DEP_FILES from the Makefile without
     # running `make'.
     DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
     test -z "$DEPDIR" && continue
     # When using ansi2knr, U may be empty or an underscore; expand it
     U=`sed -n -e '/^U = / s///p' < "$mf"`
     test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
     # We invoke sed twice because it is the simplest approach to
     # changing $(DEPDIR) to its actual value in the expansion.
     for file in `sed -n -e '
       /^DEP_FILES = .*\\\\$/ {
         s/^DEP_FILES = //
         :loop
           s/\\\\$//
           p
           n
           /\\\\$/ b loop
         p
       }
       /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
       # Make sure the directory exists.
       test -f "$dirpart/$file" && continue
       fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
       $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
       # echo "creating $dirpart/$file"
       echo '# dummy' > "$dirpart/$file"
     done
   done
   
 \  \
 test -z "$CONFIG_HEADERS" || echo timestamp >stamp-h  test -z "$CONFIG_HEADERS" || echo timestamp >stamp-h
 exit 0  exit 0

Legend:
Removed from v.1.1.1.2  
changed lines
  Added in v.1.1.1.3

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>