version 1.1.1.1, 2000/01/09 17:00:49 |
version 1.1.1.2, 2000/01/22 14:15:50 |
|
|
dnl Process this file with autoconf to produce a configure script. |
dnl Process this file with autoconf to produce a configure script. |
dnl configure.in for gnuplot 3.7 on Unix. |
dnl configure.in for gnuplot 3.7 on Unix. |
dnl |
dnl |
dnl Where possible, please adopt a convention that the absense of |
|
dnl a macro is the usual case : this saves having to update |
|
dnl countless makefiles when new tests are added. By usual case |
|
dnl I guess ansi compiler on posix system or something like that |
|
dnl |
|
dnl [Lars: this is no longer necessary. I have cut this stuff out |
|
dnl of configure.in and added the necessery definitions to syscfg.h. |
|
dnl This reduced the size of configure by 30k! |
|
dnl |
|
dnl $Id$ |
dnl $Id$ |
dnl |
dnl |
|
AC_INIT(graphics.c) |
AC_PREREQ(2.13) |
AC_PREREQ(2.13) |
AC_REVISION($Revision$) |
AC_REVISION($Revision$) |
AC_INIT(graphics.c) |
|
VERSION=`sed -n 's/.*version.*"\(.*\)".*/\1/p' $srcdir/version.c|tr -d ' '` |
VERSION=`sed -n 's/.*version.*"\(.*\)".*/\1/p' $srcdir/version.c|tr -d ' '` |
AM_INIT_AUTOMAKE(gnuplot, $VERSION) |
PL=`sed -n 's/.*patchlevel.*"\(.*\)".*/\1/p' $srcdir/version.c|tr -d ' '` |
|
AM_INIT_AUTOMAKE(gnuplot, $VERSION.$PL) |
AC_CONFIG_HEADER(config.h:config.hin) |
AC_CONFIG_HEADER(config.h:config.hin) |
|
|
dnl Optional features. |
dnl Optional features. |
|
|
dnl Do not use the included readline function |
dnl Use builtin readline or GNU readline |
AC_ARG_WITH(readline,dnl |
AC_ARG_WITH(readline,dnl |
[ --with-readline use the included minimal readline function (default) |
[ --with-readline use the builtin minimal readline function (default) |
--without-readline do not use the included readline function],, |
--without-readline do not use the builtin readline function |
|
--with-readline=gnu use the GNU readline library |
|
--with-readline=PATH Specify the location of GNU readline],, |
test -z "$with_readline" && with_readline=yes |
test -z "$with_readline" && with_readline=yes |
)dnl |
)dnl |
|
|
dnl The GNU readline library |
|
AC_ARG_WITH(gnu-readline,dnl |
|
[ --with-gnu-readline use the GNU readline library |
|
--with-gnu-readline=PATH Specify the location of GNU readline],, |
|
test -z "$with_gnu_readline" && with_gnu_readline=no |
|
)dnl |
|
|
|
dnl If no PATH argument given, use the Unix plot library |
dnl If no PATH argument given, use the Unix plot library |
dnl Else use either GNU libplot from plotutils, |
dnl Else use either GNU libplot from plotutils, |
dnl or ancient GNU graphics libplot |
dnl or ancient GNU graphics libplot |
Line 63 test -z "$with_png" && with_png=yes |
|
Line 50 test -z "$with_png" && with_png=yes |
|
dnl Use .gnuplot file in current directory |
dnl Use .gnuplot file in current directory |
AC_ARG_WITH(cwdrc,dnl |
AC_ARG_WITH(cwdrc,dnl |
[ --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],, |
test "$withval" = no && AC_DEFINE(NOCWDRC), AC_DEFINE(NOCWDRC) |
test -z "$with_cwdrc" && with_cwdrc=no |
)dnl |
)dnl |
|
|
dnl Install the lasergnu printer script |
dnl Install the lasergnu printer script |
Line 76 else LASERGNU=lasergnu_noinstall; fi, LASERGNU=lasergn |
|
Line 63 else LASERGNU=lasergnu_noinstall; fi, LASERGNU=lasergn |
|
|
|
dnl The Linux console driver |
dnl The Linux console driver |
AC_ARG_WITH(linux-vga,dnl |
AC_ARG_WITH(linux-vga,dnl |
[ --without-linux-vga do not use the Linux console driver |
[ --with-linux-vga use the Linux SVGA console driver |
(requires Linux SVGAlib /usr/lib/libvga)],, |
(requires /usr/lib/libvga)],, |
test -z "$with_linux_vga" && with_linux_vga=yes |
test -z "$with_linux_vga" && with_linux_vga=no |
)dnl |
)dnl |
|
|
dnl Apollo Graphics Primitive Resource |
|
AC_ARG_ENABLE(apollo,dnl |
|
[ --enable-apollo Apollo Graphics Primitive Resource],, |
|
test -z "$enable_apollo" && enable_apollo=no |
|
)dnl |
|
|
|
dnl Apollo Graphics Primitive Resource (fixed-size window) |
|
AC_ARG_ENABLE(gpr,dnl |
|
[ --enable-gpr Apollo Graphics Primitive Resource (fixed-size window)],, |
|
test -z "$enable_gpr" && enable_gpr=no |
|
)dnl |
|
|
|
dnl On SCO only: cgi terminal |
|
AC_ARG_ENABLE(cgi,dnl |
|
[ --enable-cgi enable CGI terminal (SCO only)],, |
|
test -z "$enable_cgi" && enable_cgi=no |
|
)dnl |
|
|
|
dnl IRIS terminal on IRIS4D series computer |
dnl IRIS terminal on IRIS4D series computer |
AC_ARG_ENABLE(iris,dnl |
AC_ARG_ENABLE(iris,dnl |
[ --enable-iris enable IRIS terminal (IRIS4D only)],, |
[ --enable-iris enable IRIS terminal (IRIS4D only)],, |
Line 117 AC_ARG_ENABLE(rgip,dnl |
|
Line 86 AC_ARG_ENABLE(rgip,dnl |
|
test -z "$enable_rgip" && enable_rgip=no |
test -z "$enable_rgip" && enable_rgip=no |
)dnl |
)dnl |
|
|
dnl SUNview driver |
|
AC_ARG_ENABLE(sun,dnl |
|
[ --enable-sun enable sunview terminal (Sun only)],, |
|
test -z "$enable_sun" && enable_sun=no |
|
)dnl |
|
|
|
dnl ATT 3b1 or ATT 7300 unixpc |
|
AC_ARG_ENABLE(unixpc,dnl |
|
[ --enable-unixpc enable unixpc terminal (ATT 3b1 or ATT 7300)],, |
|
test -z "$enable_unixpc" && enable_unixpc=no |
|
)dnl |
|
|
|
dnl enable system time routines |
|
AC_ARG_ENABLE(system-time,dnl |
|
[ --enable-system-time use the system time routines in time.c],, |
|
test -z "$enable_system_time" && enable_system_time=no |
|
)dnl |
|
|
|
dnl configure.in body |
dnl configure.in body |
|
|
dnl Compiler characteristics |
dnl Compiler characteristics |
Line 162 dnl X Window System files. |
|
Line 113 dnl X Window System files. |
|
AC_SUBST(X_LIBRARIES) |
AC_SUBST(X_LIBRARIES) |
AC_SUBST(GNUPLOT_X11) |
AC_SUBST(GNUPLOT_X11) |
AC_PATH_XTRA |
AC_PATH_XTRA |
|
|
|
dnl Needed for LynxOS until AC_PATH_XTRA is fixed |
|
if test "$ac_cv_lib_nsl_gethostbyname" = no; then |
|
AC_CHECK_LIB(bsd, gethostbyname, X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd") |
|
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" |
X_LIBRARIES="$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS" |
GNUPLOT_X11=gnuplot_x11 |
GNUPLOT_X11=gnuplot_x11 |
AC_DEFINE(X11) |
AC_DEFINE(X11, 1, |
|
[ Define if you are using the X11 window system. ]) |
fi |
fi |
|
|
|
|
Line 174 dnl Operating systems. |
|
Line 132 dnl Operating systems. |
|
dnl FIXME AC_DEFINE(ISC22) |
dnl FIXME AC_DEFINE(ISC22) |
dnl FIXME AC_DEFINE(KSR) |
dnl FIXME AC_DEFINE(KSR) |
dnl Check for MSDOS and djgpp, NeXT |
dnl Check for MSDOS and djgpp, NeXT |
gp_MSDOS |
GP_MSDOS |
gp_NEXT |
GP_NEXT |
|
|
|
dnl Apparently, -lNeXT_s is needed on NeXT |
|
dnl _instead_ of -lm ... |
|
AC_CHECK_FUNC(sin) |
|
if test "$ac_cv_func_sin" = no ; then |
|
AC_CHECK_LIB(m,sin) |
|
fi |
dnl this has to be after -lsys_s on NeXT |
dnl this has to be after -lsys_s on NeXT |
LIBS="$LIBS -lm" |
dnlLIBS="$LIBS -lm" |
|
|
|
|
dnl Header files. ANSI first |
dnl Header files. ANSI first |
|
|
#ifdef HAVE_ERRNO_H |
#ifdef HAVE_ERRNO_H |
#include <errno.h> |
#include <errno.h> |
#endif], |
#endif], |
errno=0,AC_MSG_RESULT(yes),AC_DEFINE(EXTERN_ERRNO) AC_MSG_RESULT(no)) |
errno=0,AC_MSG_RESULT(yes),dnl |
|
AC_DEFINE(EXTERN_ERRNO, 1, |
|
[ Define if <errno.h> declares errno. ]) |
|
AC_MSG_RESULT(no) |
|
)dnl |
|
|
|
|
dnl Types. |
dnl Types. |
Line 231 dnl math lib is already available, see operating syste |
|
Line 199 dnl math lib is already available, see operating syste |
|
AC_CHECK_FUNCS(erf erfc gamma lgamma getcwd pclose popen sleep snprintf \ |
AC_CHECK_FUNCS(erf erfc gamma lgamma getcwd pclose popen sleep snprintf \ |
strncasecmp strnicmp sysinfo tcgetattr) |
strncasecmp strnicmp sysinfo tcgetattr) |
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 |
AC_DEFINE(PIPES) |
AC_DEFINE(PIPES, 1, |
|
[ Define if you do have the popen and pclose functions. ]) |
fi |
fi |
|
|
dnl arg types for select |
dnl Argument types of select() |
AC_FUNC_SELECT_ARGTYPES |
AC_FUNC_SELECT |
|
|
dnl On SVR3. |
dnl On SVR3. |
dnl FIXME AC_DEFINE(CRIPPLED_SELECT) |
dnl FIXME AC_DEFINE(CRIPPLED_SELECT) |
Line 244 dnl check for installed linux vgalib |
|
Line 213 dnl check for installed linux vgalib |
|
if test "$with_linux_vga" = yes; then |
if test "$with_linux_vga" = yes; then |
AC_MSG_CHECKING(for linux vga library) |
AC_MSG_CHECKING(for linux vga library) |
AC_CHECK_LIB(vga, vga_init, |
AC_CHECK_LIB(vga, vga_init, |
[AC_DEFINE(LINUXVGA) |
[AC_DEFINE(LINUXVGA, 1, |
|
[ Define if this is a Linux system with SuperVGA library. ]) |
LINUXSUID='chown root $(bindir)/gnuplot; chmod u+s $(bindir)/gnuplot' |
LINUXSUID='chown root $(bindir)/gnuplot; chmod u+s $(bindir)/gnuplot' |
TERMLIBS="$TERMLIBS -lvga"],dnl |
TERMLIBS="$TERMLIBS -lvga"],dnl |
with_linux_vga=no) |
with_linux_vga=no) |
fi |
fi |
|
|
dnl GNU readline and the required terminal library |
dnl GNU readline and the required terminal library |
if test "$with_gnu_readline" != no; then |
if test "$with_readline" != no; then |
dnl check for terminal library |
if test "$with_readline" != yes; then |
dnl this is a very cool solution from octave's configure.in |
dnl check for terminal library |
gp_tcap="" |
dnl this is a very cool solution from octave's configure.in |
for termlib in ncurses curses termcap terminfo termlib; do |
gp_tcap="" |
AC_CHECK_LIB(${termlib}, tputs, [gp_tcap="${gp_tcap} -l${termlib}"]) |
for termlib in ncurses curses termcap terminfo termlib; do |
case "${gp_tcap}" in |
AC_CHECK_LIB(${termlib}, tputs, [gp_tcap="$gp_tcap -l$termlib"]) |
*-l${termlib}*) |
case "$gp_tcap" in |
AC_MSG_RESULT([using ${gp_tcap} with readline]) |
*-l${termlib}*) |
break |
break |
;; |
;; |
esac |
esac |
done |
done |
|
|
if test "$with_gnu_readline" = yes; then |
if test "$with_readline" = gnu; then |
AC_CHECK_LIB(readline, readline,dnl |
AC_CHECK_LIB(readline, readline,dnl |
LIBS="$LIBS -lreadline $gp_tcap" |
TERMLIBS="$TERMLIBS -lreadline $gp_tcap",, ${gp_tcap}) |
AC_DEFINE(GNU_READLINE) |
|
with_readline=no,dnl |
|
AC_MSG_ERROR([Can't find -lreadline in a standard path -- specify its location using --with-gnu-readline=/path/to/libreadline.a]),dnl |
|
${gp_tcap})dnl readline |
|
else |
|
if test ! -f $with_gnu_readline ; then |
|
if test ! -f ${with_gnu_readline}/lib/libreadline.a ; then |
|
if test ! -f ${with_gnu_readline}/libreadline.a ; then |
|
AC_MSG_ERROR([GNU readline library not found]) |
|
else |
|
AC_MSG_RESULT([using ${with_gnu_readline}/libreadline.a]) |
|
LIBS="$LIBS ${with_gnu_readline}/libreadline.a $gp_tcap" |
|
fi |
|
else |
|
AC_MSG_RESULT([using ${with_gnu_readline}/lib/libreadline.a]) |
|
LIBS="$LIBS ${with_gnu_readline}/lib/libreadline.a $gp_tcap" |
|
fi |
|
else |
else |
AC_MSG_RESULT([using ${with_gnu_readline}]) |
GP_PATH_LIB(readline,readline,[$with_readline],[${gp_tcap}]) |
LIBS="$LIBS $with_gnu_readline $gp_tcap" |
if test "$ac_cv_lib_readline_readline" != no; then |
|
TERMLIBS="$TERMLIBS $gp_tcap" |
|
fi |
fi |
fi |
|
|
AC_DEFINE(GNU_READLINE) |
if test "$ac_cv_lib_readline_readline" = no; then |
with_readline=no |
AC_MSG_WARN([GNU readline not found - falling back to builtin readline]) |
|
with_readline=yes |
|
else |
|
AC_DEFINE(HAVE_LIBREADLINE, 1, |
|
[ Define if you are using the GNU readline library. ]) |
|
fi # ! ac_cv_lib_readline_readline = no |
|
|
|
fi # ! with_readline != yes |
|
|
|
if test "$with_readline" = yes; then |
|
AC_DEFINE(READLINE, 1, |
|
[ Define if you want to use the included readline function. ]) |
fi |
fi |
fi |
|
|
|
test "$with_readline" = yes && AC_DEFINE(READLINE) |
fi |
dnl end readline |
dnl end readline |
|
|
dnl libplot |
dnl libplot |
Line 303 if test "$with_plot" != no; then |
|
Line 268 if test "$with_plot" != no; then |
|
if test "$with_plot" = yes; then |
if test "$with_plot" = yes; then |
dnl Unix plot library |
dnl Unix plot library |
AC_CHECK_LIB(plot,openpl,dnl |
AC_CHECK_LIB(plot,openpl,dnl |
AC_DEFINE(UNIXPLOT) |
AC_DEFINE(UNIXPLOT, 1, |
|
[ Define if you want to use the standard Unix plot library. ]) |
TERMLIBS="$TERMLIBS -lplot",dnl |
TERMLIBS="$TERMLIBS -lplot",dnl |
with_plot=no) |
with_plot=no) |
else |
else |
dnl GNU plot library - test for new version first |
dnl GNU plot library - test for new version first |
TERMXLIBS="$X_LIBS -lXaw -lXmu -lXt -lXext -lX11" |
TERMXLIBS="$X_LIBS -lXaw -lXmu -lXt -lXext -lX11" |
gp_SEARCH_LIBDIRS(plot,textangle,[$TERMXLIBS]) |
GP_PATH_LIB(plot,pl_textangle,[$with_plot],[$TERMXLIBS]) |
if test "$ac_cv_lib_plot_textangle" = no; then |
if test "$ac_cv_lib_plot_pl_textangle" = no; then |
TERMXLIBS= |
GP_PATH_LIB(plot,textangle,[$with_plot],[$TERMXLIBS]) |
gp_SEARCH_LIBDIRS(plot,rotate) |
if test "$ac_cv_lib_plot_textangle" = no; then |
if test "$ac_cv_lib_plot_rotate" = no; then |
TERMXLIBS= |
AC_MSG_WARN([can't find GNU libplot -- disabling gnugraph terminal]) |
GP_PATH_LIB(plot,rotate,[$with_plot]) |
with_plot=no |
if test "$ac_cv_lib_plot_rotate" = no; then |
|
AC_MSG_WARN([can't find GNU libplot -- disabling gnugraph terminal]) |
|
with_plot=no |
|
else |
|
AC_MSG_RESULT([ - using obsolete GNU graphics library]) |
|
fi # old GNU plotlib |
else |
else |
AC_MSG_RESULT([ - using obsolete GNU graphics library]) |
AC_MSG_RESULT([ - using GNU plotutils library]) |
AC_DEFINE(GNUGRAPH) |
fi # GNU plotlib pre-2.2 |
fi # old GNU plotlib |
|
else |
else |
AC_MSG_RESULT([ - using GNU plotutils library]) |
GP_PATH_HEADER(plotcompat.h,[$with_plot],dnl |
AC_DEFINE(GNUGRAPH) |
AC_DEFINE(HAVE_PLOTCOMPAT_H, 1, |
AC_DEFINE(GNU_PLOTUTILS) |
[ Define if you have the <plotcompat.h> header file. ]), |
|
AC_MSG_WARN([found GNU plotutils 2.2+ library but not plotcompat.h]) |
|
AC_MSG_WARN([please add path to plotcompat.h to CPPFLAGS in Makefile]) |
|
) # plotcompat.h |
fi # new GNU plotlib |
fi # new GNU plotlib |
fi # Unix plotlib |
|
|
if test "$with_plot" != no; then |
|
AC_DEFINE(GNUGRAPH, 1, |
|
[ Define if you want to use the GNU version of the Unix plot library. ]) |
|
AC_DEFINE(GNU_PLOTUTILS, 1, |
|
[ Define if your libplot.a is from GNU plotutils. ]) |
|
fi |
|
|
|
fi # ! Unix plotlib |
fi |
fi |
dnl end plot |
dnl end libplot |
|
|
dnl check for Tom Boutell's gd library |
dnl check for Tom Boutell's gd library |
if test "$with_gd" != no; then |
if test "$with_gd" != no; then |
gp_SEARCH_LIBDIRS(gd,gdImageCreate) |
GP_PATH_LIB(gd,gdImageCreate,[$with_gd]) |
if test "$ac_cv_lib_gd_gdImageCreate" = yes; then |
if test "$ac_cv_lib_gd_gdImageCreate" != no; then |
gp_SEARCH_HEADERDIRS(gd.h,, |
GP_PATH_HEADER(gd.h,[$with_gd],dnl |
AC_MSG_WARN([found gd library but not gd.h]) |
dnl ACTION-IF-FOUND |
AC_MSG_WARN([please add path to gd.h to CPPFLAGS in Makefile]) |
AC_DEFINE(HAVE_LIBGD, 1, |
)dnl gp_SEARCH_HEADERDIRS |
[ Define if you have Thomas Boutell's gd library. ]),dnl |
AC_DEFINE(HAVE_LIBGD) |
dnl ACTION-IF-NOT-FOUND |
|
AC_MSG_WARN([found gd library but not gd.h]) |
|
AC_MSG_WARN([please add path to gd.h to CPPFLAGS in Makefile])) |
else |
else |
AC_MSG_RESULT([- see term/gif.trm for download details]) |
AC_MSG_RESULT([- see term/gif.trm for download details]) |
fi |
fi |
|
|
|
|
dnl check for png and z library |
dnl check for png and z library |
if test "$with_png" != no; then |
if test "$with_png" != no; then |
gp_SEARCH_LIBDIRS(png,png_info_init,[-lz]) |
GP_PATH_LIB(png,png_info_init,[$with_png],[-lz]) |
if test "$ac_cv_lib_png_png_info_init" = yes; then |
if test "$ac_cv_lib_png_png_info_init" != no; then |
TERMLIBS="$TERMLIBS -lz" |
TERMLIBS="$TERMLIBS -lz" |
gp_SEARCH_HEADERDIRS(png.h,, |
GP_PATH_HEADER(png.h,[$with_png],,dnl |
AC_MSG_WARN([found png library but not png.h]) |
AC_MSG_WARN([found png library but not png.h]) |
AC_MSG_WARN([please add path to png.h to CPPFLAGS in Makefile]) |
AC_MSG_WARN([please add path to png.h to CPPFLAGS in Makefile]) |
)dnl gp_SEARCH_HEADERIRS |
) |
gp_SEARCH_HEADERDIRS(zlib.h,, |
GP_PATH_HEADER(zlib.h,[$with_png],,dnl |
AC_MSG_WARN([found z library but not zlib.h]) |
AC_MSG_WARN([found z library but not zlib.h]) |
AC_MSG_WARN([please add path to zlib.h to CPPFLAGS in Makefile]) |
AC_MSG_WARN([please add path to zlib.h to CPPFLAGS in Makefile]) |
)dnl gp_SEARCH_HEADERDIRS |
) |
if test "$ac_cv_header_png_h" = yes; then |
if test "$ac_cv_header_png_h" != no; then |
AC_EGREP_CPP([You lose], [#include "png.h" |
AC_EGREP_CPP([You lose], [#include "png.h" |
#if PNG_LIBPNG_VER < 89 |
#if PNG_LIBPNG_VER < 89 |
You lose. |
You lose. |
#endif |
#endif |
],dnl |
],dnl |
AC_MSG_WARN([- libpng too old - not including png driver]),dnl |
AC_MSG_WARN([- libpng too old - not including png driver]) |
AC_DEFINE(HAVE_LIBPNG)) |
with_png=no) |
else |
else |
AC_MSG_WARN([- cannot check png version - compilation may fail]) |
AC_MSG_WARN([- cannot check png version - compilation may fail]) |
AC_DEFINE(HAVE_LIBPNG) |
|
fi |
fi |
|
|
|
if test "$with_png" != no; then |
|
AC_DEFINE(HAVE_LIBPNG, 1, |
|
[ Define if you have the png library. ]) |
|
fi |
|
|
else |
else |
AC_MSG_RESULT([- see term/png.trm for download details]) |
AC_MSG_RESULT([- see term/png.trm for download details]) |
fi |
fi |
fi |
fi |
dnl end png and z |
dnl end png and z |
|
|
dnl create list of terminals |
|
AC_MSG_CHECKING([terminal driver sources]) |
|
( cd $srcdir/term && for i in *.trm ; do echo '${srcdir}'/../term/$i ; done )\ |
|
|(tr '\012' @; echo) |sed 's/@$/%/;s/@/ \\@/g' |tr @% '\012\012' >termlist |
|
TERM_LIST=termlist |
|
AC_SUBST_FILE(TERM_LIST) |
|
AC_MSG_RESULT([list created]) |
|
|
|
dnl How do we detect the Ultrix X libraries? |
dnl How do we detect the Ultrix X libraries? |
dnl Or is it really a server (run-time) problem? |
dnl Or is it really a server (run-time) problem? |
dnl FIXME AC_DEFINE(ULTRIX_KLUDGE) |
dnl FIXME AC_DEFINE(ULTRIX_KLUDGE) |
|
|
dnl Process enable options |
dnl Removed enable options for these |
|
dnl Just autodetect |
|
|
if test "$enable_apollo" = yes; then |
dnl SCO cgi |
AC_EGREP_CPP(yes, |
AC_EGREP_CPP(yes, |
[#ifdef apollo |
[#ifdef SCO |
yes |
yes |
#endif |
#endif |
],AC_DEFINE(APOLLO),dnl |
],AC_CHECK_LIB(ccgi, v_opnwk,dnl |
enable_apollo=no) |
AC_DEFINE(CGI, 1, |
fi |
[ Define if you want to use the CGI terminal under SCO. ])dnl |
|
TERMLIBS="$TERMLIBS -lccgi")) |
|
|
if test "$enable_gpr" = yes; then |
dnl Sun sunview |
AC_EGREP_CPP(yes, |
AC_EGREP_CPP(yes, |
[#ifdef apollo |
[#ifdef sun |
yes |
yes |
#endif |
#endif |
],AC_DEFINE(APOLLO) AC_DEFINE(GPR),dnl |
], AC_CHECK_LIB(suntool, window_create,dnl |
enable_gpr=no) |
AC_CHECK_HEADER(suntool/sunview.h,dnl |
fi |
AC_DEFINE(SUN, 1, |
|
[ Define if you want to use the sunview terminal (sun). ])dnl |
|
TERMLIBS="$TERMLIBS -lsuntool -lsunwindow -lpixrect"),,dnl |
|
[-lsunwindow -lpixrect])) |
|
|
if test "$enable_cgi" = yes; then |
dnl Process with and enable options |
AC_EGREP_CPP(yes, |
|
[#ifdef SCO |
if test "$with_cdwrc" = no; then |
yes |
AC_DEFINE(NOCWDRC, 1, |
#endif |
[ Define if you do not want to read .gnuplot in the current directory. ]) |
],AC_CHECK_LIB(ccgi,v_opnwk,dnl |
|
AC_DEFINE(CGI) |
|
TERMLIBS="$TERMLIBS -lccgi"),dnl |
|
enable_cgi=no) |
|
fi |
fi |
|
|
if test "$enable_iris" = yes; then |
if test "$enable_iris" = yes; then |
AC_CHECK_LIB(gl_s,winopen,dnl |
AC_CHECK_LIB(gl_s,winopen,dnl |
AC_DEFINE(IRIS) |
AC_DEFINE(IRIS, 1, |
|
[ Define if you want to use the IRIS terminal on IRIS4D series computers. ]) |
TERMLIBS="$TERMLIBS -lgl_s",dnl |
TERMLIBS="$TERMLIBS -lgl_s",dnl |
enable_iris=no) |
enable_iris=no) |
fi |
fi |
|
|
if test "$enable_mgr" = yes; then |
if test "$enable_mgr" = yes; then |
AC_CHECK_LIB(mgr,m_getinfo,dnl |
AC_CHECK_LIB(mgr,m_getinfo,dnl |
AC_DEFINE(MGR)dnl |
AC_DEFINE(MGR, 1, |
|
[ Define if you want to use the MGR Window system. ]) |
TERMLIBS="$TERMLIBS -lmgr -lpixrect",dnl |
TERMLIBS="$TERMLIBS -lmgr -lpixrect",dnl |
enable_mgr=no,[-lpixrect]) |
enable_mgr=no,[-lpixrect]) |
fi |
fi |
|
|
if test "$enable_rgip" = yes; then |
if test "$enable_rgip" = yes; then |
AC_DEFINE(RGIP) |
AC_DEFINE(RGIP, 1, |
|
[ Define if you want to use the Redwood Graphics Interface Protocol. ]) |
fi |
fi |
|
|
if test "$enable_sun" = yes; then |
|
AC_CHECK_LIB(suntool,window_create,dnl |
|
AC_DEFINE(SUN)dnl |
|
TERMLIBS="$TERMLIBS -lsuntool -lsunwindow -lpixrect",dnl |
|
enable_sun=no,[-lsunwindow -lpixrect]) |
|
fi |
|
|
|
if test "$enable_unixpc" = yes; then |
|
AC_EGREP_CPP(yes, |
|
[/* Not sure about this; definitely |
|
* true for gcc */ |
|
#ifdef unixpc |
|
yes |
|
#endif |
|
],AC_DEFINE(UNIXPC),dnl |
|
enable_unixpc=no) |
|
fi |
|
|
|
if test "$enable_system_time" = yes; then |
|
AC_DEFINE(USE_SYSTEM_TIME) |
|
fi |
|
|
|
dnl Substitute variables |
dnl Substitute variables |
AC_SUBST(PACKAGE) |
AC_SUBST(PACKAGE) |
AC_SUBST(VERSION) |
AC_SUBST(VERSION) |
AC_SUBST(LASERGNU) |
AC_SUBST(LASERGNU) |
AC_SUBST(LINUXSUID) |
AC_SUBST(LINUXSUID) |
AC_SUBST(NEXTOBJS) |
|
AC_SUBST(TERMLIBS) |
AC_SUBST(TERMLIBS) |
AC_SUBST(TERMXLIBS) |
AC_SUBST(TERMXLIBS) |
|
|
|
|
Where is the help file? $gp_datadir/gnuplot.gih |
Where is the help file? $gp_datadir/gnuplot.gih |
]) |
]) |
test "$ac_cv_header_gd_h" = yes && \ |
test "$ac_cv_header_gd_h" = yes && \ |
AC_MSG_RESULT([ Enable generation of GIF files.]) |
AC_MSG_RESULT([ Enable generation of GIF files]) |
|
|
test "$ac_cv_header_zlib_h" = yes && \ |
test "$ac_cv_header_zlib_h" = yes && \ |
AC_MSG_RESULT([ Enable generation of PNG files.]) |
AC_MSG_RESULT([ Enable generation of PNG files]) |
|
|
test "$with_cwdrc" = yes && \ |
test "$with_cwdrc" = yes && \ |
AC_MSG_RESULT([ Check current directory for .gnuplot file.]) |
AC_MSG_RESULT([ Check current directory for .gnuplot file]) |
|
|
if test "$with_gnu_readline" != no; then |
if test "$with_readline" != no; then |
AC_MSG_RESULT([ Use GNU readline library.]) |
if test "$with_readline" != yes; then |
else |
AC_MSG_RESULT([ Use GNU readline library]) |
test "$with_readline" != no && \ |
test -n "$gp_tcap" && AC_MSG_RESULT([ with ${gp_tcap}]) |
AC_MSG_RESULT([ Use included readline.]) |
else |
|
AC_MSG_RESULT([ Use builtin minimal readline]) |
|
fi |
fi |
fi |
|
|
if test "$with_plot" = yes; then |
if test "$with_plot" = yes; then |
AC_MSG_RESULT([ Use the Unix plot library.]) |
AC_MSG_RESULT([ Use the Unix plot library]) |
elif test "$with_plot" != no; then |
elif test "$with_plot" != no; then |
AC_MSG_RESULT([ Use the GNU plot library.]) |
AC_MSG_RESULT([ Use the GNU plot library,]) |
|
if test x"$ac_cv_header_plotcompat_h" != x && \ |
|
test "$ac_cv_header_plotcompat_h" != no ; then |
|
AC_MSG_RESULT([ version 2.2 or newer]) |
|
else |
|
AC_MSG_RESULT([ version 2.1 or older]) |
|
fi |
fi |
fi |
|
|
test "$with_lasergnu" = yes && \ |
test "$with_lasergnu" = yes && \ |
AC_MSG_RESULT([ Install lasergnu printer script.]) |
AC_MSG_RESULT([ Install lasergnu printer script]) |
|
|
test "$with_linux_vga" = yes && \ |
if test "$with_linux_vga" = yes; then |
AC_MSG_RESULT([ Use the Linux console driver.]) |
AC_MSG_RESULT([ Use the Linux SVGA console driver]) |
|
AC_MSG_RESULT([ SECURITY NOTICE: SVGAlib requires that]) |
|
AC_MSG_RESULT([ gnuplot is installed suid root!]) |
|
fi |
|
|
test "$enable_apollo" = yes && \ |
|
AC_MSG_RESULT([ Enable Apollo terminal (resizeable window).]) |
|
|
|
test "$enable_cgi" = yes && \ |
|
AC_MSG_RESULT([ Enable cgi terminal (SCO).]) |
|
|
|
test "$enable_gpr" = yes && \ |
|
AC_MSG_RESULT([ Enable Apollo terminal (fixed-size window).]) |
|
|
|
test "$enable_iris" = yes && \ |
test "$enable_iris" = yes && \ |
AC_MSG_RESULT([ Enable IRIS terminal.]) |
AC_MSG_RESULT([ Enable IRIS terminal]) |
|
|
test "$enable_mgr" = yes && \ |
test "$enable_mgr" = yes && \ |
AC_MSG_RESULT([ Enable MGR terminal.]) |
AC_MSG_RESULT([ Enable MGR terminal]) |
|
|
test "$enable_rgip" = yes && \ |
test "$enable_rgip" = yes && \ |
AC_MSG_RESULT([ Enable RGIP terminal.]) |
AC_MSG_RESULT([ Enable RGIP terminal]) |
|
|
test "$enable_sun" = yes && \ |
|
AC_MSG_RESULT([ Enable sunview terminal.]) |
|
|
|
test "$enable_unixpc" = yes && \ |
|
AC_MSG_RESULT([ Enable unixpc terminal (ATT 3b1 or ATT 7300).]) |
|
|
|
test "$enable_system_time" = yes && \ |
|
AC_MSG_RESULT([ Use system time routines in time.c.]) |
|
|
|
test "$no_x" != yes && \ |
test "$no_x" != yes && \ |
AC_MSG_RESULT([ Use the X Window System. |
AC_MSG_RESULT([ Use the X Window System |
]) |
]) |
dnl end config report |
dnl end config report |
|
|
dnl Write Makefiles and configuration header |
dnl Write Makefiles and configuration header |
AC_OUTPUT([Makefile docs/Makefile docs/latextut/Makefile], \ |
AC_OUTPUT([Makefile docs/Makefile docs/latextut/Makefile], \ |
[test -z "$CONFIG_HEADERS" || echo timestamp >stamp-h ; rm -f termlist]) |
[test -z "$CONFIG_HEADERS" || echo timestamp >stamp-h]) |
|
|
dnl end configure.in |
dnl end configure.in |