diff -ur gnuplot-3.7.1.orig/config.hin gnuplot-3.7.1/config.hin --- gnuplot-3.7.1.orig/config.hin Fri Oct 22 19:29:08 1999 +++ gnuplot-3.7.1/config.hin Fri Dec 3 20:47:50 1999 @@ -210,6 +210,9 @@ /* Define if you want to use a newer version of libgrx under MSDOS/djgpp. */ #undef GRX21 +/* Define on FreeBSD to suppress SIGFPE on divide by zero. */ +#undef SUPPRESS_386_SIGFPE + /* Define if declares errno. */ #undef EXTERN_ERRNO diff -ur gnuplot-3.7.1.orig/configure gnuplot-3.7.1/configure --- gnuplot-3.7.1.orig/configure Sun Nov 7 15:57:22 1999 +++ gnuplot-3.7.1/configure Sun Dec 5 21:15:56 1999 @@ -3132,10 +3132,58 @@ fi +ac_safe=`echo "floatingpoint.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for floatingpoint.h""... $ac_c" 1>&6 +echo "configure:3138: checking for floatingpoint.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:3148: \"$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 + cat > conftest.$ac_ext < +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "__fpsetreg" >/dev/null 2>&1; then + rm -rf conftest* + cat >> confdefs.h <<\EOF +#define SUPPRESS_386_SIGFPE 1 +EOF + +fi +rm -f conftest* + +else + echo "$ac_t""no" 1>&6 +fi + + echo $ac_n "checking for unistd.h""... $ac_c" 1>&6 -echo "configure:3137: checking for unistd.h" >&5 +echo "configure:3185: checking for unistd.h" >&5 cat > conftest.$ac_ext < EOF @@ -3154,9 +3202,9 @@ 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:3206: checking if errno variable is declared" >&5 cat > conftest.$ac_ext < #ifdef HAVE_ERRNO_H @@ -3166,7 +3214,7 @@ errno=0 ; return 0; } EOF -if { (eval echo configure:3170: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3218: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* echo "$ac_t""yes" 1>&6 else @@ -3183,12 +3231,12 @@ rm -f conftest* echo $ac_n "checking for size_t""... $ac_c" 1>&6 -echo "configure:3187: checking for size_t" >&5 +echo "configure:3235: checking for size_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -3216,9 +3264,9 @@ fi 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:3268: checking for time_t in time.h" >&5 cat > conftest.$ac_ext < EOF @@ -3229,12 +3277,12 @@ else rm -rf conftest* 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 +echo "configure:3281: 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 < #if STDC_HEADERS @@ -3265,12 +3313,12 @@ rm -f conftest* 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:3317: checking return type of signal handlers" >&5 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -3287,7 +3335,7 @@ int i; ; return 0; } EOF -if { (eval echo configure:3291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3339: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_type_signal=void else @@ -3312,12 +3360,12 @@ strerror strchr index strrchr rindex strstr do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:3316: checking for $ac_func" >&5 +echo "configure:3364: 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 <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -3369,12 +3417,12 @@ strncasecmp strnicmp sysinfo tcgetattr do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:3373: checking for $ac_func" >&5 +echo "configure:3421: 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 <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -3431,12 +3479,12 @@ for ac_func in select do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:3435: checking for $ac_func" >&5 +echo "configure:3483: 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 <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -3488,17 +3536,17 @@ do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:3492: checking for $ac_hdr" >&5 +echo "configure:3540: 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 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:3550: \"$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* @@ -3525,7 +3573,7 @@ done echo $ac_n "checking argument types of select()""... $ac_c" 1>&6 -echo "configure:3529: checking argument types of select()" >&5 +echo "configure:3577: checking argument types of select()" >&5 if eval "test \"`echo '$''{'ac_cv_type_fd_set_size_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3536,7 +3584,7 @@ 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 cat > conftest.$ac_ext < @@ -3566,7 +3614,7 @@ #endif ; return 0; } EOF -if { (eval echo configure:3570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_found=yes ; break 3 else @@ -3598,7 +3646,7 @@ # 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. cat > conftest.$ac_ext < @@ -3642,9 +3690,9 @@ if test "$with_linux_vga" = yes; then echo $ac_n "checking for linux vga library""... $ac_c" 1>&6 -echo "configure:3646: checking for linux vga library" >&5 +echo "configure:3694: checking for linux vga library" >&5 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:3696: checking for vga_init in -lvga" >&5 ac_lib_var=`echo vga'_'vga_init | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -3652,7 +3700,7 @@ ac_save_LIBS="$LIBS" LIBS="-lvga $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3715: \"$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 @@ -3696,7 +3744,7 @@ gp_tcap="" for termlib in ncurses curses termcap terminfo termlib; do 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:3748: checking for tputs in -l${termlib}" >&5 ac_lib_var=`echo ${termlib}'_'tputs | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -3704,7 +3752,7 @@ ac_save_LIBS="$LIBS" LIBS="-l${termlib} $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3767: \"$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 @@ -3744,7 +3792,7 @@ if test "$with_readline" = gnu; then echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6 -echo "configure:3748: checking for readline in -lreadline" >&5 +echo "configure:3796: checking for readline in -lreadline" >&5 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -3752,7 +3800,7 @@ ac_save_LIBS="$LIBS" LIBS="-lreadline ${gp_tcap} $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3815: \"$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 @@ -3788,7 +3836,7 @@ gp_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6 -echo "configure:3792: checking for readline in -lreadline" >&5 +echo "configure:3840: checking for readline in -lreadline" >&5 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3804,7 +3852,7 @@ ac_save_LIBS="$LIBS" LIBS="$TERMLIBS $TERMXLIBS -lreadline ${gp_tcap} $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3867: \"$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 @@ -3879,7 +3927,7 @@ if test "$with_plot" != no; then if test "$with_plot" = yes; then echo $ac_n "checking for openpl in -lplot""... $ac_c" 1>&6 -echo "configure:3883: checking for openpl in -lplot" >&5 +echo "configure:3931: 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 echo $ac_n "(cached) $ac_c" 1>&6 @@ -3887,7 +3935,7 @@ ac_save_LIBS="$LIBS" LIBS="-lplot $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3950: \"$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 @@ -3929,7 +3977,7 @@ gp_tr_lib=HAVE_LIB`echo plot | sed -e 's/[^a-zA-Z0-9_]/_/g' \ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` echo $ac_n "checking for pl_textangle in -lplot""... $ac_c" 1>&6 -echo "configure:3933: checking for pl_textangle in -lplot" >&5 +echo "configure:3981: checking for pl_textangle in -lplot" >&5 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3945,7 +3993,7 @@ ac_save_LIBS="$LIBS" LIBS="$TERMLIBS $TERMXLIBS -lplot $TERMXLIBS $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4008: \"$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 @@ -3996,7 +4044,7 @@ gp_tr_lib=HAVE_LIB`echo plot | sed -e 's/[^a-zA-Z0-9_]/_/g' \ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` echo $ac_n "checking for textangle in -lplot""... $ac_c" 1>&6 -echo "configure:4000: checking for textangle in -lplot" >&5 +echo "configure:4048: checking for textangle in -lplot" >&5 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4012,7 +4060,7 @@ ac_save_LIBS="$LIBS" LIBS="$TERMLIBS $TERMXLIBS -lplot $TERMXLIBS $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4075: \"$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 @@ -4064,7 +4112,7 @@ gp_tr_lib=HAVE_LIB`echo plot | sed -e 's/[^a-zA-Z0-9_]/_/g' \ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` echo $ac_n "checking for rotate in -lplot""... $ac_c" 1>&6 -echo "configure:4068: checking for rotate in -lplot" >&5 +echo "configure:4116: checking for rotate in -lplot" >&5 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4080,7 +4128,7 @@ ac_save_LIBS="$LIBS" LIBS="$TERMLIBS $TERMXLIBS -lplot $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4143: \"$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 @@ -4139,7 +4187,7 @@ 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 +echo "configure:4191: checking for plotcompat.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4154,12 +4202,12 @@ 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 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:4211: \"$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* @@ -4221,7 +4269,7 @@ 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 +echo "configure:4273: 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 else @@ -4237,7 +4285,7 @@ ac_save_LIBS="$LIBS" LIBS="$TERMLIBS $TERMXLIBS -lgd $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4300: \"$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 @@ -4287,7 +4335,7 @@ ac_safe=`echo "gd.h" | sed 'y%./+-%__p_%'` 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 +echo "configure:4339: 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 @@ -4302,12 +4350,12 @@ 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 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:4311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:4359: \"$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* @@ -4357,7 +4405,7 @@ gp_tr_lib=HAVE_LIB`echo png | sed -e 's/[^a-zA-Z0-9_]/_/g' \ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` echo $ac_n "checking for png_info_init in -lpng""... $ac_c" 1>&6 -echo "configure:4361: checking for png_info_init in -lpng" >&5 +echo "configure:4409: checking for png_info_init in -lpng" >&5 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4373,7 +4421,7 @@ ac_save_LIBS="$LIBS" LIBS="$TERMLIBS $TERMXLIBS -lpng -lz $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4436: \"$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 @@ -4424,7 +4472,7 @@ ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` ac_tr_hdr=HAVE_`echo png.h | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` echo $ac_n "checking for png.h""... $ac_c" 1>&6 -echo "configure:4428: checking for png.h" >&5 +echo "configure:4476: checking for png.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4439,12 +4487,12 @@ 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 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:4496: \"$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* @@ -4485,7 +4533,7 @@ ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` ac_tr_hdr=HAVE_`echo zlib.h | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 -echo "configure:4489: checking for zlib.h" >&5 +echo "configure:4537: checking for zlib.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4500,12 +4548,12 @@ 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 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:4557: \"$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* @@ -4545,7 +4593,7 @@ if test "$ac_cv_header_png_h" != no; then cat > conftest.$ac_ext < conftest.$ac_ext </dev/null 2>&1; then rm -rf conftest* 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:4643: checking for v_opnwk in -lccgi" >&5 ac_lib_var=`echo ccgi'_'v_opnwk | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -4599,7 +4647,7 @@ ac_save_LIBS="$LIBS" LIBS="-lccgi $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4662: \"$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 @@ -4638,7 +4686,7 @@ cat > conftest.$ac_ext </dev/null 2>&1; then rm -rf conftest* 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:4701: checking for window_create in -lsuntool" >&5 ac_lib_var=`echo suntool'_'window_create | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -4657,7 +4705,7 @@ ac_save_LIBS="$LIBS" LIBS="-lsuntool -lsunwindow -lpixrect $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4720: \"$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 @@ -4685,17 +4733,17 @@ echo "$ac_t""yes" 1>&6 ac_safe=`echo "suntool/sunview.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for suntool/sunview.h""... $ac_c" 1>&6 -echo "configure:4689: checking for suntool/sunview.h" >&5 +echo "configure:4737: checking for suntool/sunview.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF 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:4747: \"$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* @@ -4737,7 +4785,7 @@ if test "$enable_iris" = yes; then echo $ac_n "checking for winopen in -lgl_s""... $ac_c" 1>&6 -echo "configure:4741: checking for winopen in -lgl_s" >&5 +echo "configure:4789: checking for winopen in -lgl_s" >&5 ac_lib_var=`echo gl_s'_'winopen | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -4745,7 +4793,7 @@ ac_save_LIBS="$LIBS" LIBS="-lgl_s $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4808: \"$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 @@ -4785,7 +4833,7 @@ if test "$enable_mgr" = yes; then echo $ac_n "checking for m_getinfo in -lmgr""... $ac_c" 1>&6 -echo "configure:4789: checking for m_getinfo in -lmgr" >&5 +echo "configure:4837: checking for m_getinfo in -lmgr" >&5 ac_lib_var=`echo mgr'_'m_getinfo | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -4793,7 +4841,7 @@ ac_save_LIBS="$LIBS" LIBS="-lmgr -lpixrect $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4856: \"$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 diff -ur gnuplot-3.7.1.orig/configure.in gnuplot-3.7.1/configure.in --- gnuplot-3.7.1.orig/configure.in Thu Nov 4 17:21:00 1999 +++ gnuplot-3.7.1/configure.in Sun Dec 5 21:15:38 1999 @@ -159,6 +159,16 @@ sys/systeminfo.h sys/utsname.h libc.h malloc.h sgtty.h termios.h values.h) test "$ac_cv_header_sys_stat_h" = yes && AC_HEADER_STAT +dnl Need this for SIGFPE handling on FreeBSD +dnl Test case: +dnl gnuplot> set auto +dnl gnuplot> plot 1+sin(x)*1e-9 +dnl Floating point exception +AC_CHECK_HEADER(floatingpoint.h, + AC_EGREP_HEADER(__fpsetreg,floatingpoint.h, + AC_DEFINE(SUPPRESS_386_SIGFPE, 1, + [ Define on FreeBSD to suppress SIGFPE on divide by zero. ]))) + dnl check if unistd actually declares anything. On NeXT 3.2 unistd is dnl conditionalized for _POSIX_SOURCE AC_MSG_CHECKING(for unistd.h) diff -ur gnuplot-3.7.1.orig/plot.c gnuplot-3.7.1/plot.c --- gnuplot-3.7.1.orig/plot.c Thu Sep 23 14:26:36 1999 +++ gnuplot-3.7.1/plot.c Fri Dec 3 20:50:41 1999 @@ -73,6 +73,11 @@ # endif #endif /* _Windows */ +/* This is really for FreeBSD */ +#ifdef SUPPRESS_386_SIGFPE +# include +#endif + extern FILE *gpoutfile; TBOOLEAN interactive = TRUE; /* FALSE if stdin not a terminal */ @@ -346,6 +351,11 @@ } #endif +#ifdef SUPPRESS_386_SIGFPE + /* allow divide by zero -- Inf */ + fpsetmask(fpgetmask() & ~(FP_X_DZ|FP_X_INV)); +#endif + /* malloc large blocks, otherwise problems with fragmented mem */ #ifdef OSK _mallocmin(102400); @@ -542,6 +552,11 @@ } term_reset(); + +#ifdef SUPPRESS_386_SIGFPE + fpresetsticky(FP_X_DZ|FP_X_INV); + fpsetmask(FP_X_DZ|FP_X_INV); +#endif #ifdef OS2 if (_osmode == OS2_MODE)