1 dnl Process this file with autoconf to produce a configure script.
5 AC_INIT(pspp, 0.4.1,bug-gnu-pspp@gnu.org)
6 AC_CONFIG_HEADERS([config.h])
9 dnl Checks for programs.
16 PSPP_ENABLE_WARNING(-Wdeclaration-after-statement)
18 AM_CONDITIONAL(cc_is_gcc, test x"$GCC" = x"yes" )
23 dnl Internationalization macros.
25 AM_GNU_GETTEXT_VERSION([0.14.5])
27 dnl Checks for libraries.
32 AM_CONDITIONAL(WITHCHARTS, test x"$with_libplot" != x"no")
35 AC_ARG_WITH(gui, [ --without-gui don't build the PSPPIRE gui])
37 if test x"$with_gui" != x"no" ; then
38 PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.6.0)
39 PKG_CHECK_MODULES(GLADE, libglade-2.0)
41 AM_CONDITIONAL(WITHGUI, test x"$with_gui" != x"no")
45 AC_CHECK_LIB(gslcblas,main,,AC_MSG_ERROR([You must install libgslcblas development libraries]))
46 AC_CHECK_LIB(gsl, gsl_cdf_chisq_Q,,
47 AC_MSG_ERROR([You must install development libraries for libgsl version 1.4 or later]))
49 AC_CHECK_LIB(ncurses, tgetent)
50 AC_CHECK_HEADERS(termcap.h)
54 dnl Checks for header files.
55 AC_CHECK_HEADERS([limits.h memory.h sys/stat.h sys/time.h sys/types.h \
56 fpu_control.h sys/mman.h sys/wait.h ieeefp.h fenv.h] )
64 dnl Dont use AC_TYPE_OFF_T --- it doesnt generate the HAVE_TYPE macro
66 AC_CHECK_SIZEOF(short, 2)
67 AC_CHECK_SIZEOF(int, 4)
68 AC_CHECK_SIZEOF(long, 4)
69 AC_CHECK_SIZEOF(long long, 0)
70 AC_CHECK_SIZEOF(float, 0)
71 AC_CHECK_SIZEOF(double, 8)
72 AC_CHECK_SIZEOF(long double, 0)
74 AC_DEFINE(FPREP_IEEE754, 1,
75 [Define for machines that have IEEE 754 floating point arithmetic,
76 the most common format today.])
81 AC_CHECK_FUNCS([strchr strrchr __setfpucw isinf isnan finite getpid feholdexcept])
86 AM_CONDITIONAL(unix, test x"$host_os" != x"msdos" )
87 AM_CONDITIONAL(msdos, test x"$host_os" = x"msdos" )
89 dnl This is needed otherwise --with-included-gettext fails
90 AH_BOTTOM([#include <locale.h>])
92 AC_ARG_ENABLE(debug, [ --enable-debug Turn on diagnostic features in the program])
93 if test x"$enable_debug" = x"yes" ; then
94 AC_DEFINE(DEBUGGING, 1, [Define to 1 if debugging is enabled.])
97 AC_CONFIG_FILES([Makefile gl/Makefile intl/Makefile po/Makefile.in])
101 dnl configure.ac ends here