configure.in 29.5 KB
Newer Older
Jody Goldberg's avatar
Jody Goldberg committed
1 2
-*- mode: m4 -*-
AC_PREREQ(2.52)
3 4 5

m4_define([gnumeric_version_epoch], [1])
m4_define([gnumeric_version_major], [3])
Jody Goldberg's avatar
Jody Goldberg committed
6
m4_define([gnumeric_version_minor], [92])
7 8 9 10 11 12
m4_define([gnumeric_version_extra], [])
m4_define([gnumeric_full_version],
    [gnumeric_version_epoch.gnumeric_version_major.gnumeric_version_minor()gnumeric_version_extra])

AC_INIT([gnumeric], [gnumeric_full_version],
	[http://bugzilla.gnome.org/enter_bug.cgi?product=gnumeric])
Arturo Espinosa's avatar
Arturo Espinosa committed
13

Jody Goldberg's avatar
Jody Goldberg committed
14
AC_CONFIG_SRCDIR(src/sheet.h)
Jody Goldberg's avatar
Jody Goldberg committed
15
AM_INIT_AUTOMAKE([dist-bzip2])
16
AM_CONFIG_HEADER(gnumeric-config.h)
Jody Goldberg's avatar
Jody Goldberg committed
17

Arturo Espinosa's avatar
Arturo Espinosa committed
18 19
AM_MAINTAINER_MODE

20 21 22
# Make --disable-static the default
AC_DISABLE_STATIC

J.H.M. Dassen (Ray)'s avatar
Typo  
J.H.M. Dassen (Ray) committed
23
# We need intltool >= 0.27.2 to extract the UTF-8 chars from source code
24
AC_PROG_INTLTOOL([0.27.2])
25

Arturo Espinosa's avatar
Arturo Espinosa committed
26 27
AC_ISC_POSIX
AC_PROG_CC
Arturo Espinosa's avatar
Arturo Espinosa committed
28
AC_PROG_YACC
29
AM_PROG_LEX
Jody Goldberg's avatar
Jody Goldberg committed
30
AC_PROG_LN_S
Jody Goldberg's avatar
Jody Goldberg committed
31
AM_PROG_LIBTOOL
Arturo Tena's avatar
Arturo Tena committed
32
AC_STDC_HEADERS
Arturo Espinosa's avatar
Arturo Espinosa committed
33

34 35
AC_SUBST(ACLOCAL_FLAGS)

36
if test "$GCC" = "yes"; then
Morten Welinder's avatar
Morten Welinder committed
37
  gcc_check=`$CC -v 2>&1 | grep '^gcc version 2\.96'`
38 39 40 41 42 43 44
  if test "$gcc_check" != ""; then
    # I know a dead parrot when I see one, and I am looking at
    # one now.
    AC_MSG_ERROR([You cannot compile Gnumeric with RedHat gcc 2.96.
We have seen too many subtle compiler errors.
Please use another compiler, for example a gcc 2.95 series compiler.])
    # Mate, this parrot wouldn't "vooom!" if you put four million
Morten Welinder's avatar
Morten Welinder committed
45
    # Volts through it!
46 47 48 49 50 51 52
    #
    # Actually, the real problem here is that there are so many
    # different compilers calling themselves 2.96.  RedHat, listen
    # up!  That's a MAJOR BLUNDER!  If the user just thinks of it
    # as "gcc 2.96" then how the H*** are we going to get bug
    # reports we can use?  Chances are the newer 2.96 compilers
    # are just fine, but how can we know?
53 54 55
  fi
fi

Jody Goldberg's avatar
Jody Goldberg committed
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
dnl *****************************
# Check for zlib.
_cppflags="${CPPFLAGS}"
_ldflags="${LDFLAGS}"

AC_ARG_WITH(zlib,
	[[  --with-zlib=DIR       use libz in DIR]],
	[case x"$withval" in
	 xyes|xno) ;;
	 *)	Z_DIR=$withval
		CPPFLAGS="${CPPFLAGS} -I$withval/include"
		LDFLAGS="${LDFLAGS} -L$withval/lib"
		;;
	 esac])

if test "x$with_zlib" != xno; then
	with_zlib=no
	AC_CHECK_HEADER(zlib.h, [AC_CHECK_LIB(z, gzread, [with_zlib=yes])])
fi

if test "$with_zlib" = no; then
	AC_MSG_ERROR([*** zlib is required])
fi

if test "x${Z_DIR}" != "x"; then
	Z_CPPFLAGS="-I${Z_DIR}/include"
	case ${host} in
	*-*-solaris*)	Z_LIBS="-L${Z_DIR}/lib -R${Z_DIR}/lib -lz" ;;
	*)		Z_LIBS="-L${Z_DIR}/lib -lz" ;;
	esac
else
	Z_LIBS="-lz"
fi
AC_DEFINE([HAVE_LIBZ], [], [Have compression library])
AC_SUBST(Z_CPPFLAGS)
AC_SUBST(Z_LIBS)

CPPFLAGS=${_cppflags}
LDFLAGS=${_ldflags}

Jody Goldberg's avatar
Jody Goldberg committed
96
dnl *****************************
Jody Goldberg's avatar
Jody Goldberg committed
97
gnumeric_reqs="
Jody Goldberg's avatar
Jody Goldberg committed
98 99 100 101 102 103
	glib-2.0		>= 2.4.0
	gobject-2.0		>= 2.4.0
	gmodule-2.0		>= 2.4.0
	libgsf-1		>= 1.10.0
	libxml-2.0		>= 2.4.12
	pango			>= 1.4.0
104
	pangoft2		>= 1.4.0
Jody Goldberg's avatar
Jody Goldberg committed
105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120
"
gnumeric_gtk_reqs="
	gtk+-2.0		>= 2.4.0
	libglade-2.0		>= 2.3.6
	libgnomecanvas-2.0	>= 2.0.0
	libgnomeprint-2.2	>= 2.5.2
	libgnomeprintui-2.2	>= 2.5.2
	libart-2.0		>= 2.3.11
"
gnumeric_gnome_reqs="
	gconf-2.0
	libbonobo-2.0		>= 2.2.0
	libbonoboui-2.0		>= 2.2.0
	libgnome-2.0		>= 2.0.0
	libgnomeui-2.0		>= 2.0.0
	libgsf-gnome-1		>= 1.10.0
Jody Goldberg's avatar
Jody Goldberg committed
121
"
122

Jody Goldberg's avatar
Jody Goldberg committed
123 124 125 126 127 128 129 130 131 132
ui_msg=

dnl *******************
dnl Should we use gtk ?
dnl *******************
gnumeric_with_gtk=true
AC_ARG_WITH(gtk, [--without-gtk    Build without UI])
if test "x$with_gtk" = xno; then
	ui_msg="None (Gtk disabled by request)"
	gnumeric_with_gtk=false
Jody Goldberg's avatar
Jody Goldberg committed
133
fi
Jody Goldberg's avatar
Jody Goldberg committed
134

Jody Goldberg's avatar
Jody Goldberg committed
135 136 137 138 139 140
if test "x$gnumeric_with_gtk" = "xtrue" ; then
	PKG_CHECK_MODULES(GTK, [$gnumeric_gtk_reqs],
		[ui_msg="Gtk"],
		[ui_msg="None (missing gtk dependencies)" ; gnumeric_with_gtk=false ])
fi 

Jon Kåre Hellan's avatar
Jon Kåre Hellan committed
141
gnumeric_with_gnome=$gnumeric_with_gtk
Jody Goldberg's avatar
Jody Goldberg committed
142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167
if test "x$gnumeric_with_gtk" = "xtrue" ; then
	AC_DEFINE(WITH_GTK, 1, [Define if UI is built])
	gnumeric_reqs="$gnumeric_reqs $gnumeric_gtk_reqs"

	dnl ************************************
	dnl Are the GNOME extensions available ?
	dnl ************************************

	gnumeric_with_gnome=true
	AC_ARG_WITH(gnome,
		[--{with,without}-gnome    Use GNOME extensions],
		if test "x$withval" = xno; then
			gnumeric_with_gnome=false
			ui_msg="Gtk+ (Gnome disabled by request)"
		fi
	)
	if test "x$gnumeric_with_gnome" = "xtrue"; then
		PKG_CHECK_MODULES(GNOME, [$gnumeric_gnome_reqs],
			[ui_msg="Gnome"],
			[ui_msg="Gtk (missing gnome dependencies)" ; gnumeric_with_gnome=false])
	fi

	if test "x$gnumeric_with_gnome" = "xtrue"; then
		AC_DEFINE(WITH_GNOME, 1, [Define if GNOME extensions are available])
		gnumeric_reqs="$gnumeric_reqs $gnumeric_gnome_reqs"
	fi
Jody Goldberg's avatar
Jody Goldberg committed
168
fi
Jody Goldberg's avatar
Jody Goldberg committed
169
AM_CONDITIONAL(WITH_GTK,   $gnumeric_with_gtk)
170 171
AM_CONDITIONAL(WITH_GNOME, $gnumeric_with_gnome)

Jody Goldberg's avatar
Jody Goldberg committed
172 173 174 175 176 177
dnl ****************************
dnl now that we have selected out libraries the whole collection in one
dnl shot so that we can have a nice neat compile/link line
dnl ****************************

PKG_CHECK_MODULES(GNUMERIC, $gnumeric_reqs)
178
GNUMERIC_CFLAGS="$GNUMERIC_CFLAGS -I\$(top_srcdir)/src/cut-n-paste-code"
Jody Goldberg's avatar
Jody Goldberg committed
179 180 181
AC_SUBST(GNUMERIC_LIBS)
AC_SUBST(GNUMERIC_CFLAGS)

182 183 184 185 186
dnl a hook for the win32 build to tweak
GNUMERIC_PLUGIN_LDFLAGS="-avoid-version"
AC_SUBST(GNUMERIC_PLUGIN_LDFLAGS)

dnl disable for in stable release, re-enable for development series
187 188
CFLAGS="$CFLAGS -DG_DISABLE_DEPRECATED"
CFLAGS="$CFLAGS -DPANGO_DISABLE_DEPRECATED"
Jody Goldberg's avatar
Jody Goldberg committed
189 190 191 192 193 194 195 196
if test "x$gnumeric_with_gtk" = "xtrue"; then
	CFLAGS="$CFLAGS -DGDK_PIXBUF_DISABLE_DEPRECATED"
	CFLAGS="$CFLAGS -DGDK_DISABLE_DEPRECATED"
	CFLAGS="$CFLAGS -DGDK_MULTIHEAD_SAFE"
	CFLAGS="$CFLAGS -DGTK_DISABLE_DEPRECATED"
	CFLAGS="$CFLAGS -DLIBGLADE_DISABLE_DEPRECATED"
fi
if test "x$gnumeric_with_gnome" = "xtrue"; then
197 198 199 200 201
	CFLAGS="$CFLAGS -DGNOME_DISABLE_DEPRECATED"
	CFLAGS="$CFLAGS -DBONOBO_DISABLE_DEPRECATED"
	CFLAGS="$CFLAGS -DBONOBO_UI_DISABLE_DEPRECATED"
fi

202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223
dnl ==============================================
dnl GNOME Specific extensions
with_corba=false
if test "x${gnumeric_with_gnome}" = "xtrue"; then

	dnl ==============================================
	dnl Special GConf section  (stolen from libgnome)
	dnl ==============================================

	AC_PATH_PROG(GCONFTOOL, gconftool-2, no)

	if test x"$GCONFTOOL" = xno; then
		AC_MSG_ERROR([gconftool-2 executable not found in your path - should be installed with GConf])
	fi
	AM_GCONF_SOURCE_2

	dnl *************
	dnl Corba support
	dnl *************
	PKG_CHECK_MODULES(CORBA_LIBS,  [ORBit-2.0 >= 2.4.2
					libbonobo-2.0 >= 2.0.0
					bonobo-activation-2.0 >= 1.0.2
224
					],[with_corba=true], [with_corba=false])
225 226 227 228 229 230 231 232
	if test "x$with_corba" = "xtrue" ; then
		ORBIT="`$PKG_CONFIG --variable=orbit_idl ORBit-2.0`"
		BONOBO_IDL_DIR="`$PKG_CONFIG --variable=idldir libbonobo-2.0`"
		BONOBO_ACTIVATION_IDL_DIR="`$PKG_CONFIG --variable=idldir bonobo-activation-2.0`"
		ORBIT_IDL="${ORBIT} -I${BONOBO_IDL_DIR} -I${BONOBO_ACTIVATION_IDL_DIR}"
		AC_SUBST(ORBIT_IDL)
	fi
fi
233
AM_CONDITIONAL(GCONF_SCHEMAS_INSTALL, $gnumeric_with_gnome)
234 235
AM_CONDITIONAL(WITH_CORBA, $with_corba)

Jody Goldberg's avatar
Jody Goldberg committed
236 237 238 239
dnl ****************************
dnl prep the pixmap generator
dnl ****************************

Jody Goldberg's avatar
Jody Goldberg committed
240 241
AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
AC_PATH_PROG(GDK_PIXBUF_CSOURCE, gdk-pixbuf-csource)
242

Arturo Espinosa's avatar
Arturo Espinosa committed
243
## this should come after `AC_PROG_CC'
244 245 246 247
ifdef([GNOME_COMPILE_WARNINGS],
	[GNOME_COMPILE_WARNINGS] CFLAGS="$CFLAGS $WARN_CFLAGS",
	[]
)
248
set_more_warnings=yes
249
if test "$GCC" = "yes" -a "x$set_more_warnings" != "xno"; then
250
	for option in -Wsign-compare -Wpointer-arith -Wnested-externs -Wchar-subscripts -Wwrite-strings; do
Morten Welinder's avatar
Morten Welinder committed
251 252 253 254 255 256 257 258 259 260 261 262 263 264 265
		SAVE_CFLAGS="$CFLAGS"
		CFLAGS="$CFLAGS $option"
		AC_MSG_CHECKING([whether gcc understands $option])
		AC_TRY_COMPILE([], [],
			has_option=yes,
			has_option=no,)
		if test $has_option = no; then
		  CFLAGS="$SAVE_CFLAGS"
		fi
		AC_MSG_RESULT($has_option)
		unset has_option
		unset SAVE_CFLAGS
	done
	unset option
fi
266
AC_SUBST(WARN_CFLAGS)
Morten Welinder's avatar
Morten Welinder committed
267

268 269 270 271
AC_ARG_ENABLE(ssconvert, [--disable-ssconvert		Do not build ssconvert to speed the compile link cycle during development],
	[ ], [enable_ssconvert=yes])
AM_CONDITIONAL(ENABLE_SSCONVERT, test x"$enable_ssconvert" = "xyes")

272 273 274 275 276
dnl ****************************
dnl GDA Plugin
dnl ****************************
try_gda=true
gda_msg=yes
Rodrigo Moya's avatar
Rodrigo Moya committed
277
gnomedb_msg=no
278 279
AC_ARG_WITH(gda,
	[--{with,without}-gda      Compile the Gnome Database Access plugin],
Jon Kåre Hellan's avatar
Jon Kåre Hellan committed
280 281
	if test "x$withval" != xyes; then
		try_gda=false
282 283 284 285
		gda_msg="Disabled by request"
	fi
)
if test "$try_gda" = "true"; then
286
	PKG_CHECK_MODULES(GDA, [libgda >= 1.0.1 ],
287
		[gda_msg=yes],
Jody Goldberg's avatar
Jody Goldberg committed
288
		[gda_msg="NO.  libgda problem"])
Rodrigo Moya's avatar
Rodrigo Moya committed
289
	if test "$gda_msg" = "yes"; then
290
		PKG_CHECK_MODULES(GNOMEDB, [libgnomedb >= 1.0.1 ],
Rodrigo Moya's avatar
Rodrigo Moya committed
291 292 293 294 295 296
			[gnomedb_msg="yes"],
			[gnomedb_msg="NO. libgnomedb problem"])
		if test "$gnomedb_msg" = "yes"; then
			AC_DEFINE(HAVE_LIBGNOMEDB, 1, [ Define if libgnomedb support is compiled in])
		fi
	fi
297 298 299 300 301
fi
AM_CONDITIONAL(WITH_GDA, test x"$gda_msg" = "xyes")
AC_SUBST(GDA_CFLAGS)
AC_SUBST(GDA_LIBS)

Rodrigo Moya's avatar
Rodrigo Moya committed
302 303 304 305
AM_CONDITIONAL(WITH_GNOMEDB, test x"$gnomedb_msg" = "xyes")
AC_SUBST(GNOMEDB_CFLAGS)
AC_SUBST(GNOMEDB_LIBS)

306 307 308 309 310
dnl ****************************
dnl GB Plugin
dnl ****************************
#try_gda=true
#gb_msg=yes
Jody Goldberg's avatar
typos  
Jody Goldberg committed
311
try_gb=no
312
gb_msg="disabled due to lack of gb maintenance"
313
AC_ARG_WITH(gb,
314
	[--{with,without}-gb       Compile the Gnome Basic plugin],
315
	if test "x$withval" = xyes; then
Jody Goldberg's avatar
typos  
Jody Goldberg committed
316
		#try_gb=true
317
		gb_msg="We are not joking.  There is no upstream maintainer for GB"
318 319 320 321 322 323 324 325 326 327 328 329 330
		#gb_msg="Disabled by request"
	fi
)
if test "$try_gb" = "true"; then
	PKG_CHECK_MODULES(GB, [libgb == 1.17 ],
		[gb_msg=yes],
		[gb_msg="NO.  gb problem"])
fi
AM_CONDITIONAL(WITH_GB, test x"$gb_msg" = "xyes")
AC_SUBST(GB_CFLAGS)
AC_SUBST(GB_LIBS)

dnl ****************************
Morten Welinder's avatar
Morten Welinder committed
331

332 333 334 335
AC_CHECK_DECL(fdopen, fdopen_works=yes, fdopen_works=no)

if test $fdopen_works = no ; then
	unset ac_cv_have_decl_fdopen
336
	CFLAGS="$CFLAGS -D_POSIX_SOURCE"
337 338 339 340 341 342
	AC_MSG_NOTICE([adding -D_POSIX_SOURCE to CFLAGS])
	AC_CHECK_DECL(fdopen, fdopen_works=yes, fdopen_works=no)
	if test $fdopen_works = no ; then
		AC_MSG_ERROR([fdopen is not available])
	fi
fi
343

344 345 346 347 348 349 350 351 352 353 354 355
# Unfortunately, -D_POSIX_SOURCE turns off struct timeval on Solaris
AC_MSG_CHECKING([whether struct timeval is available])
AC_TRY_COMPILE([#include <sys/time.h>], [struct timeval tv;], struct_timeval_works=yes, struct_timeval_works=no)
AC_MSG_RESULT($struct_timeval_works)

if test $struct_timeval_works = no ; then
	CFLAGS="$CFLAGS -D__EXTENSIONS__"
	AC_MSG_CHECKING([whether struct timeval is available with -D__EXTENSIONS__])
	AC_TRY_COMPILE([#include <sys/time.h>], [struct timeval tv;], struct_timeval_works=yes, struct_timeval_works=no)
	AC_MSG_RESULT($struct_timeval_works)
	if test $struct_timeval_works = no ; then
		AC_MSG_ERROR([struct timeval is not available])
356 357 358
	fi
fi

Andreas J. Guelzow's avatar
Andreas J. Guelzow committed
359
dnl src/functions/fn-math.c uses M_PI
360 361 362 363 364 365

AC_MSG_CHECKING([whether M_PI is available])
AC_TRY_COMPILE([#include <math.h>], [double f = M_PI], works_without_bsd_source=yes, works_without_bsd_source=no)
AC_MSG_RESULT($works_without_bsd_source)

if test $works_without_bsd_source = no ; then
Andreas J. Guelzow's avatar
Andreas J. Guelzow committed
366
	CFLAGS="$CFLAGS -D_BSD_SOURCE"
367 368 369 370 371 372
	AC_MSG_CHECKING([whether M_PI is available with -D_BSD_SOURCE])
	AC_TRY_COMPILE([#include <math.h>], [double f = M_PI], m_pi_works=yes, m_pi_works=no)
	AC_MSG_RESULT($m_pi_works)
	if test $m_pi_works = no ; then
		AC_MSG_ERROR([M_PI is not available])
	fi
Andreas J. Guelzow's avatar
Andreas J. Guelzow committed
373 374
fi

Arturo Espinosa's avatar
Arturo Espinosa committed
375 376
AC_SUBST(GUILE_LIBS)
AC_SUBST(GUILE_INCS)
377 378

#check for guile 1.5
379
try_guile=false
380
guile_msg="disabled pending some guile developer interest"
381
enable_guile=false
382
AC_ARG_WITH(guile,
383
	[--{with,without}-guile    Compile with Guile support or without it],
384
	if test "x$withval" = xyes; then
385
		try_guile=true
386 387 388
	fi
)

389 390 391 392 393 394 395 396 397
dnl if $try_guile; then
dnl 	AC_MSG_CHECKING(for guile >= 1.5)
dnl 	if test "`guile -c '(display (string>=? (version) "1.4.1"))'`" != "#t"; then
dnl   		AC_MSG_RESULT([Your Guile is too old.  You need Guile 1.5 or later.])
dnl 	else
dnl 	        AC_MSG_RESULT(found)
dnl 		guile_msg="yes"
dnl 		enable_guile=true
dnl 	fi
398
dnl
399 400 401 402 403
dnl fi
dnl if $enable_guile; then
dnl 	GNOME_CHECK_GUILE
dnl fi
AM_CONDITIONAL(WITH_GUILE, $enable_guile)
Arturo Espinosa's avatar
Arturo Espinosa committed
404

Jody Goldberg's avatar
Jody Goldberg committed
405 406 407
dnl **************************************************
dnl * psiconv support
dnl **************************************************
Jon Kåre Hellan's avatar
Jon Kåre Hellan committed
408
try_psiconv=true
409
enable_psiconv=false
Jon Kåre Hellan's avatar
Jon Kåre Hellan committed
410 411
psiconv_msg=no
AC_ARG_WITH(psiconv,
412
	[--{with,without}-psiconv  Compile with Psiconv support or without it],
Jon Kåre Hellan's avatar
Jon Kåre Hellan committed
413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443
	if test "x$withval" = xno; then
		try_psiconv=false
	fi
)
if $try_psiconv; then
    psiconv_msg="missing dependencies"
    AC_PATH_PROG(PSICONV_CONFIG,psiconv-config,no)
    if test "$PSICONV_CONFIG" = no; then
        have_psiconv=false
    else
	AC_MSG_CHECKING(for psiconv >= 0.9.3)
        verstxt=`$PSICONV_CONFIG --version`
        vers=`echo "$verstxt" | \
	    awk -F. '{ printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
        if test "$vers" -ge 9003; then
	    PSICONV_CFLAGS=`$PSICONV_CONFIG --cflags`
            PSICONV_LIBS=`$PSICONV_CONFIG --libs`
	    psiconv_msg=yes
        else
	    psiconv_msg=no
        fi
	AC_MSG_RESULT($psiconv_msg)
    fi
fi

if test "x$psiconv_msg" = "xyes"; then
	enable_psiconv=true
fi
AM_CONDITIONAL(WITH_PSICONV, $enable_psiconv)
AC_SUBST(PSICONV_LIBS)
AC_SUBST(PSICONV_CFLAGS)
Jody Goldberg's avatar
Jody Goldberg committed
444

445 446 447
try_paradox=true
enable_paradox=false
AC_ARG_WITH(paradox,
448
	[--{with,without}-paradox  Compile with Paradox support or without it],
449 450 451 452 453 454 455
	if test "x$withval" = xno; then
		try_paradox=false
	fi
)

if $try_paradox; then
	PKG_CHECK_MODULES(PARADOX, [
Jody Goldberg's avatar
new.  
Jody Goldberg committed
456
		pxlib >= 0.3.0
457
		],
458 459 460 461 462 463 464 465 466 467 468
		[paradox_msg="yes"],
		[paradox_msg="missing dependencies"])
fi

if test "x$paradox_msg" = "xyes"; then
	enable_paradox=true
fi
AM_CONDITIONAL(WITH_PARADOX, $enable_paradox)
AC_SUBST(PARADOX_LIBS)
AC_SUBST(PARADOX_CFLAGS)

Jody Goldberg's avatar
Jody Goldberg committed
469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487
AC_ARG_ENABLE(solver, [--disable-solver  Don't compile the solver])
if test "x$enable_solver" = xno; then
	enable_solver=false
else
	enable_solver=true
	AC_DEFINE(ENABLE_SOLVER, 1, [Define if SOLVER is compiled])
fi
AM_CONDITIONAL(ENABLE_SOLVER, $enable_solver)

plugin_list_given=false
PLUGIN_LIST=""
AC_ARG_ENABLE(plugins,
	[--enable-plugins="text html"  Compile only the listed plugins],
	plugin_list_given=true
	PLUGIN_LIST=$enableval
)
AM_CONDITIONAL(PLUGIN_LIST_GIVEN, $plugin_list_given)
AC_SUBST(PLUGIN_LIST)

Jody Goldberg's avatar
Jody Goldberg committed
488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503
dnl **************************************************
dnl stolen from gtk+
AC_MSG_CHECKING(whether make is GNU Make)
STRIP_BEGIN=
STRIP_END=
if $ac_make --version 2>/dev/null | grep '^GNU Make ' >/dev/null ; then
	STRIP_BEGIN='$(strip $(STRIP_DUMMY)'
	STRIP_END=')'
	AC_MSG_RESULT(yes)
else
	AC_MSG_RESULT(no)
fi
STRIP_DUMMY=
AC_SUBST(STRIP_DUMMY)
AC_SUBST(STRIP_BEGIN)
AC_SUBST(STRIP_END)
Jody Goldberg's avatar
Jody Goldberg committed
504

505 506 507 508
dnl **************************************************
dnl * internationalization support
dnl **************************************************
dnl
509
dnl Check doc/developer/translating.sgml for a description of how to translate
510 511
dnl and why we have so many translations.
dnl
Kjartan Maraas's avatar
Kjartan Maraas committed
512
ALL_LINGUAS="am az bg ca cs da de el en_CA en_GB es et fi fr ga gl he hr hu it ja ko lv ml mr ms nb nl nn no pl pt pt_BR ro ru sk sr sr@Latn sv tr uk vi zh_CN zh_TW"
513 514
AC_SUBST(ALL_LINGUAS)

Jody Goldberg's avatar
Jody Goldberg committed
515 516
GETTEXT_PACKAGE=gnumeric
AC_SUBST(GETTEXT_PACKAGE)
517 518 519
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE",
	[The package name, for gettext]
)
Jody Goldberg's avatar
Jody Goldberg committed
520 521
AM_GLIB_GNU_GETTEXT

522 523 524 525 526 527 528
#AC_PATH_PROG(TPUT_CMD,tput,no)
TPUT_CMD=no
marker_ok="<yes >"
marker_fail="<FAIL>"
marker_no="<NO  >"
if test "$TPUT_CMD" '!=' no  -a  -t 1  -a  -t 2; then
  # We have tput and output goes to a terminal.
529 530 531 532
  marker_ok="<`$TPUT_CMD bold`yes`$TPUT_CMD sgr0` >"
  marker_fail="<`$TPUT_CMD bold`fail`$TPUT_CMD sgr0`>"
  marker_no="<`$TPUT_CMD bold`no`$TPUT_CMD sgr0`  >"
fi
533

534 535 536
dnl We do not want to force libgnomeprint 2.8 just yet.
SAVE_LIBS="$LIBS"
LIBS="$LIBS $GNUMERIC_LIBS"
Jody Goldberg's avatar
Jody Goldberg committed
537
AC_CHECK_FUNCS(gnome_print_pango_create_layout mkfifo)
538 539 540
LIBS="$SAVE_LIBS"
unset SAVE_LIBS

541 542 543
dnl We do not want to force pango 1.6 just yet.
SAVE_LIBS="$LIBS"
LIBS="$LIBS $GNUMERIC_LIBS"
544
AC_CHECK_FUNCS(pango_layout_set_ellipsize pango_context_set_matrix pango_context_get_font_map)
545 546 547
LIBS="$SAVE_LIBS"
unset SAVE_LIBS

548 549
dnl
dnl On Solaris finite() needs ieeefp.h
550
dnl Either of these seem to signal IEEE754 math, see mathfunc.c
551
dnl
552
AC_CHECK_HEADERS(ieeefp.h ieee754.h)
553

Morten Welinder's avatar
Morten Welinder committed
554
dnl Check for some functions
555
AC_CHECK_FUNCS(random drand48 finite memmove mkdtemp uname times sysconf)
556

Morten Welinder's avatar
Morten Welinder committed
557 558 559
dnl FIXME: Does this really belong here?
AC_CHECK_FUNC(bind_textdomain_codeset,,[AC_CHECK_LIB(intl,bind_textdomain_codeset)])

560
dnl isfinite is a macro on HPUX
561 562 563 564 565
AC_TRY_COMPILE([#include <math.h>], [int a = isfinite(0.0)],
	[AC_DEFINE(HAVE_ISFINITE, 1,
		[Define if the isfinite() macro is available]
	 )
	], [])
Morten Welinder's avatar
Morten Welinder committed
566

Morten Welinder's avatar
Morten Welinder committed
567 568 569 570 571
dnl
dnl On BSD, we seem to need -lm for finite
dnl
if test $ac_cv_func_finite = no; then
  AC_CHECK_LIB(m, finite,
572
        [AC_DEFINE(HAVE_FINITE, 1,
Morten Welinder's avatar
Morten Welinder committed
573
		[Define if the finite function is available]
574
	 )
Morten Welinder's avatar
Morten Welinder committed
575 576 577
         LIBS="$LIBS -lm"])
fi

578 579
dnl check for complete locale implementation
AC_CHECK_HEADERS(langinfo.h)
Jon Kåre Hellan's avatar
Jon Kåre Hellan committed
580

Morten Welinder's avatar
Morten Welinder committed
581
dnl We supply our own lgamma_r (using lgamma) when missing.
582
dnl We supply our own expm1 (using log1p) when missing.
Morten Welinder's avatar
Morten Welinder committed
583 584 585 586 587 588 589 590
AC_CHECK_FUNCS(lgamma)
if test $ac_cv_func_lgamma = no; then
  AC_CHECK_LIB(m, lgamma,
        [AC_DEFINE(HAVE_LGAMMA, 1,
		[Define if the lgamma function is available]
	 )
         LIBS="$LIBS -lm"])
fi
591
AC_CHECK_FUNCS(lgamma_r expm1 log1p asinh acosh atanh)
Jody Goldberg's avatar
Jody Goldberg committed
592

593
AC_C_LONG_DOUBLE
594 595 596 597 598 599 600 601 602 603 604
float_msg=double
have_ld=no
AC_ARG_WITH(long_double,
	[--{with,without}-long-double		Use long double for floating point],
	[if test "x$withval" = xyes; then
		if test "x$ac_cv_c_long_double" != "xyes"; then
			AC_MSG_ERROR([Long double type is not available.])
		fi

		need_sunmath=no
		for ldfunc in fabsl sqrtl expl expm1l logl log10l log1pl ceill floorl powl hypotl \
Morten Welinder's avatar
Morten Welinder committed
605
				sinl cosl tanl asinl acosl atanl atan2l fmodl lgammal lgammal_r \
606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645
				sinhl coshl tanhl asinhl acoshl atanhl \
				isnanl finitel; do
			AC_CHECK_FUNC($ldfunc,
			      ,
			      AC_CHECK_LIB(m,
				  $ldfunc,
				  ,
				  AC_CHECK_LIB(sunmath,
				      $ldfunc,
				      [ if test "x$need_sunmath" = "xno"; then
					    # FIXME: better idea?
					    LDFLAGS="$LDFLAGS -L/opt/SUNWspro/lib -R/opt/SUNWspro/lib -lsunmath"
					    sunmathinclude=`ls -d /opt/SUNWspro/*/include/cc | tail -1`
					    CPPFLAGS="$CPPFLAGS -I$sunmathinclude"
				        fi
					need_sunmath=yes ],
				      AC_MSG_ERROR([Long doubles require the $ldfunc function.]),
				      -L/opt/SUNWspro/lib $GNUMERIC_LIBS)))
		done
		if test "x$need_sunmath" = "xyes"; then
			AC_CHECK_HEADERS([sunmath.h floatingpoint.h],
					 ,
					 AC_MSG_ERROR([Long doubles require the sunmath.h header.]))
		fi

		AC_CHECK_FUNCS(modfl frexpl ldexpl strtold string_to_decimal decimal_to_quadruple)
		if test "x$ac_cv_func_strtold" = "xyes"; then
			AC_MSG_CHECKING([if we must prototype strtold ourselves])
			AC_TRY_RUN([
				#include <stdlib.h>
				int main ()
				{
					const char *s = "+3.1415e+0";
					char *theend;
					long double res = strtold (s, &theend);
					return !(*theend == 0 && finitel (res) &&
						 res >= 3.14 && res <= 3.15);
				}],
				AC_MSG_RESULT(no),
				[AC_MSG_RESULT(yes)
646
				 AC_DEFINE(MUST_PROTOTYPE_STRTOLD, 1,
647
					[Define if we need to provide a prototype for strtold()]
648
				 )],
649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699
				AC_MSG_RESULT(assuming not));
			true
		elif test "x$ac_cv_func_string_to_decimal" = "xyes" -a \
			  "x$ac_cv_func_decimal_to_quadruple" = "xyes" -a \
			  "x$ac_cv_header_floatingpoint_h" = "xyes"; then
			true
		else
			AC_MSG_WARN([You lack the strtold function -- precision will be impaired])
		fi

		    if test "x$ac_cv_func_modfl" != "xyes"; then
			AC_MSG_WARN([You lack the modfl function -- precision will be impaired])
		fi

		AC_MSG_CHECKING([checking for working ynl])
		AC_TRY_RUN([
			#include <math.h>
			#ifdef HAVE_SUNMATH_H
			#include <sunmath.h>
			#endif
			int main ()
			{
				long double l = ynl (2, 4.0L);
				return !(l >= 0.21 && l <= 0.22);
			}],
			[AC_DEFINE(HAVE_YNL)
			AC_MSG_RESULT(yes)],
			AC_MSG_RESULT(no),
			[AC_CHECK_FUNCS(ynl)])

		AC_MSG_CHECKING([checking for working erfl and erfcl])
		AC_TRY_RUN([
			#include <math.h>
			#ifdef HAVE_SUNMATH_H
			#include <sunmath.h>
			#endif
			int main ()
			{
				long double l1 = erfl (1.2L);
				long double l2 = erfcl (1.2L);
				return !(l1 >= 0.91 && l1 <= 0.92 &&
					 l2 >= 0.08 && l2 <= 0.09);
			}],
			[AC_DEFINE(HAVE_ERFL)
			 AC_DEFINE(HAVE_ERFCL)
			AC_MSG_RESULT(yes)],
			AC_MSG_RESULT(no),
			[AC_CHECK_FUNCS(erfl erfcl)])

		float_msg="long double (EXPERIMENTAL)"
		AC_MSG_WARN([Long double support is experimental -- expect problems])
700 701 702
		AC_DEFINE(WITH_LONG_DOUBLE, 1,
			[Define if the long double type is to be used]
		)
703 704 705
	fi]
)

706 707 708
dnl **************************************************
dnl * Check for Perl
dnl **************************************************
709 710 711
dnl
AC_CHECK_PROG(perl_val, perl, true, false)
if $perl_val; then
712
  AC_MSG_CHECKING(for perl ExtUtils::Embed module				)
713 714
  perl -e 'eval { require ExtUtils::Embed }; if ($@) { exit(1); } else { exit(0); }'
  if test "x$?" = "x0"; then
715
    AC_MSG_RESULT($marker_ok)
716 717

    dnl Use ExtUtils::Embed to figure out the other options.
718 719
    PERL_CCCDLFLAGS=`perl -MConfig -e 'print $Config{cccdlflags},"\n";'`
    PERL_LDDLFLAGS=`perl -MConfig -e 'print $Config{lddlflags},"\n";'`
720
    PERL_CC=`perl -MConfig -e 'print $Config{cc},"\n";'`
721
    PERL_LD=`perl -MConfig -e 'print $Config{ld},"\n";'`
722 723
    PERL_CCOPTS=`perl -MExtUtils::Embed -e ccopts`
    PERL_LDOPTS=`perl -MExtUtils::Embed -e ldopts`
724 725
    AC_SUBST(PERL_CCCDLFLAGS)
    AC_SUBST(PERL_LDDLFLAGS)
726
    AC_SUBST(PERL_CC)
727
    AC_SUBST(PERL_LD)
728 729 730
    AC_SUBST(PERL_CCOPTS)
    AC_SUBST(PERL_LDOPTS)
  else
731
    AC_MSG_RESULT($marker_no)
732 733 734
    perl_val=false
  fi
fi
Jody Goldberg's avatar
Jody Goldberg committed
735 736

dnl Disable perl until we have an active maintainer
Morten Welinder's avatar
Morten Welinder committed
737
AM_CONDITIONAL(WITH_PERL, false)
738

739 740 741
dnl **************************************************
dnl * Check for mono
dnl **************************************************
Jody Goldberg's avatar
Jody Goldberg committed
742
with_mono=no
743 744
mono_msg="disabled, still experimental"

Jody Goldberg's avatar
Jody Goldberg committed
745 746 747 748 749 750 751 752 753 754 755 756 757 758 759
dnl A tricky way to comment out in m4:
ifelse([
AC_ARG_WITH(mono, [--{with,without}-mono     Compile the mono scripting engine])
case x$with_mono in
xno)	mono_msg="Disabled by request";;
*)
    PKG_CHECK_MODULES(MONO, mono,
	[with_mono=yes
	 AC_DEFINE(WITH_MONO, 1, [Define if mono .NET engine is available])],
	[with_mono=no])
    mono_msg=$with_mono
    ;;
esac
])

760 761 762 763
AM_CONDITIONAL(WITH_MONO, test "x$with_mono" = "xyes")
AC_SUBST(MONO_CFLAGS)
AC_SUBST(MONO_LIBS)

764 765 766
dnl **************************************************
dnl * Check for Python
dnl **************************************************
767
try_python=true
Jon Kåre Hellan's avatar
Jon Kåre Hellan committed
768
try_pygtk=false
769
python_msg=no
770
AC_ARG_WITH(python,
771
	[--{with,without}-python   Compile the Python plugin loader],
Jody Goldberg's avatar
Jody Goldberg committed
772
	if test "x$withval" = xno; then
773
		python_msg="Disabled by request"
774
		try_python=false
Jody Goldberg's avatar
Jody Goldberg committed
775
	else
Jody Goldberg's avatar
Jody Goldberg committed
776
		python_prog="$withval"
777 778 779 780
	fi
)

if $try_python; then
Jody Goldberg's avatar
Jody Goldberg committed
781 782 783 784
	if test "x$python_prog" = xyes -o "x$python_prog" = x ; then
	    python_prog=python
	fi

785
	python_val=
786
	python_msg="unable to find python"
Jody Goldberg's avatar
Jody Goldberg committed
787
	AC_CHECK_PROG(python_val, "$python_prog", true, false)
788
	if $python_val; then
789
		  AC_MSG_CHECKING(for python >= 2.0)
790
		  PY_PREFIX=`$python_prog -c 'import sys ; print sys.prefix'`
Jon Kåre Hellan's avatar
Jon Kåre Hellan committed
791
		  PY_EXEC_PREFIX=`$python_prog -c 'import sys ; print sys.exec_prefix'`
792
		  changequote(<<, >>)dnl
793
		  PY_VERSION=`$python_prog -c 'import sys ; print sys.version[0:3]'`
794 795 796 797 798 799
		  broken_py_initialize=`$python_prog -c \
'import sys
if int(sys.version[0]) < 2:
    print "yes"
else:
    print "no"'`
800
		  changequote([, ])dnl
801 802 803 804
	  	  if test "x$broken_py_initialize" = "xyes"; then
			  AC_MSG_RESULT(no)
			  python_val=false
			  python_msg="NO.  Python version is too old."
805
		  else
806 807 808 809
			  AC_MSG_RESULT(yes)
		  fi
	fi
	if $python_val; then
810
		  AC_MSG_CHECKING(Look for $PY_PREFIX/include/python$PY_VERSION/Python.h)
811
		  if test -f $PY_PREFIX/include/python$PY_VERSION/Python.h; then
812
			  AC_MSG_RESULT(yes)
813 814 815 816 817 818 819 820 821 822 823 824 825
			  PY_LIBS="python$PY_VERSION"
			  PY_LIB_LOC="-L$PY_EXEC_PREFIX/lib/python$PY_VERSION/config"
			  PY_CFLAGS="-I$PY_PREFIX/include/python$PY_VERSION"
			  PY_MAKEFILE="$PY_EXEC_PREFIX/lib/python$PY_VERSION/config/Makefile"
			  PY_LOCALMODLIBS=`sed -n -e 's/^LOCALMODLIBS=\(.*\)/\1/p' $PY_MAKEFILE`
			  PY_BASEMODLIBS=`sed -n -e 's/^BASEMODLIBS=\(.*\)/\1/p' $PY_MAKEFILE`
			  PY_OTHER_LIBS=`sed -n -e 's/^LIBS=\(.*\)/\1/p' $PY_MAKEFILE`
			  PY_EXTRA_LIBS="$PY_LOCALMODLIBS $PY_BASEMODLIBS $PY_OTHER_LIBS"
			  AC_SUBST(PY_LIBS)
			  AC_SUBST(PY_LIB_LOC)
			  AC_SUBST(PY_CFLAGS)
			  AC_SUBST(PY_EXTRA_LIBS)
		  else
826
			  AC_MSG_RESULT(no)
827 828 829
			  python_val=false
		  fi
	fi
830 831 832 833 834 835 836 837 838 839 840 841
	if $python_val; then
		AC_MSG_CHECKING(if we can build a shared library depending on libpython)
		rm -rf testpython
		mkdir testpython
		cd testpython
		cat > testpython.c <<EOF
#include <Python.h>
int testpython (void)
{
Py_Exit (0);
}
EOF
842 843 844
		if /bin/sh ../libtool --mode=compile ${CC} $PY_CFLAGS -c testpython.c >/dev/null 2>&1 && \
		   /bin/sh ../libtool --mode=link ${CC} -o testpython.la -rpath `pwd` -module -avoid-version $PY_LIB_LOC testpython.lo -l$PY_LIBS $PY_EXTRA_LIBS >/dev/null 2>&1 && \
		   grep 'dlname.*testpython' testpython.la >/dev/null 2>&1; then
845
			AC_MSG_RESULT(yes)
846
			python_msg="yes"
847 848 849
		else
			AC_MSG_RESULT(no)
			python_val=false
850
			python_msg="unable to link to python"
851 852 853 854
		fi
		cd ..
		rm -rf testpython
	fi
855 856 857 858 859 860 861 862 863
	if $python_val; then
		PKG_CHECK_MODULES(PYGTK, pygtk-2.0 >= 1.99.10,
				  [python_msg="yes"],
		        	  [python_msg="NO.  pygtk problem"])
		AC_SUBST(PYGTK_CFLAGS)
		if test "x$python_msg" != "xyes"; then
			python_val=false
		fi
	fi
864 865 866
	AM_CONDITIONAL(WITH_PYTHON, $python_val)
else
	AM_CONDITIONAL(WITH_PYTHON, false)
867
fi
868

869 870 871
dnl **************************************************
dnl * Config defaults (Must be after bonobo)
dnl **************************************************
872
gnumeric_version="${VERSION}"
873 874 875 876 877 878 879 880 881
gnumeric_prefix='${prefix}'
gnumeric_exec_prefix='${exec_prefix}'
gnumeric_sysconfdir='${sysconfdir}'
gnumeric_datadir='${datadir}/gnumeric/${gnumeric_version}'
gnumeric_libdir='${libdir}/gnumeric/${gnumeric_version}'
gnumeric_plugindir='${gnumeric_libdir}/plugins'
gnumeric_gladedir='${gnumeric_datadir}/glade'
gnumeric_icondir='${datadir}/pixmaps/gnumeric'
gnumeric_localedir='${prefix}/${DATADIRNAME}/locale'
Jody Goldberg's avatar
Jody Goldberg committed
882

883
gnumeric_autoformatdir='${gnumeric_datadir}/autoformat-templates'
884

Jody Goldberg's avatar
Jody Goldberg committed
885
dnl Export to gnumeric-config.h
886 887
AC_DEFINE_UNQUOTED(GNUMERIC_VERSION, "gnumeric_full_version",
	[The version number of this release, possibly suffixed for bonobo]
888
)
889 890 891 892 893 894 895 896 897 898 899 900 901
AC_DEFINE_UNQUOTED(GNM_VERSION_EPOCH, gnumeric_version_epoch,
	[The Epoch of this release]
)
AC_DEFINE_UNQUOTED(GNM_VERSION_MAJOR, gnumeric_version_major,
	[The Major version number of this release]
)
AC_DEFINE_UNQUOTED(GNM_VERSION_MINOR, gnumeric_version_minor,
	[The Minor version number of this release]
)
AC_DEFINE_UNQUOTED(GNM_VERSION_EXTRA, "gnumeric_version_extra",
	[Extra, possibly empty tag for this release]
)
AC_SUBST(gnumeric_version)
902 903
AC_SUBST(gnumeric_prefix)
AC_SUBST(gnumeric_exec_prefix)
904
AC_SUBST(gnumeric_sysconfdir)
905 906 907 908
AC_SUBST(gnumeric_datadir)
AC_SUBST(gnumeric_libdir)
AC_SUBST(gnumeric_plugindir)
AC_SUBST(gnumeric_gladedir)
Jody Goldberg's avatar
Jody Goldberg committed
909
AC_SUBST(gnumeric_icondir)
910
AC_SUBST(gnumeric_localedir)
911
AC_SUBST(gnumeric_autoformatdir)
912
AC_SUBST(gnumeric_with_gnome)
913

914 915 916 917 918 919 920 921 922 923 924 925 926 927 928
dnl ====================================
dnl = Test whether jw is installed
dnl ====================================
AC_PATH_PROG(JW,jw,no)
if test x$JW = xno; then
  HAVE_JW="no"
else
  HAVE_JW="yes"
fi
AM_CONDITIONAL(HAVE_JW, test "x$HAVE_JW" = "xyes")
AC_SUBST(HAVE_JW)
dnl ====================================
dnl = End tests for jw
dnl ====================================

929
AC_OUTPUT([
930
gnumeric.spec
Arturo Espinosa's avatar
Arturo Espinosa committed
931
Makefile
932
icons/Makefile
933
src/Makefile
934
src/dialogs/Makefile
935
src/gnumeric-paths.sh
Jody Goldberg's avatar
Jody Goldberg committed
936 937
src/pixmaps/Makefile
src/widgets/Makefile
938 939
src/tools/Makefile
src/tools/solver/Makefile
940 941
src/tools/solver/glpk/Makefile
src/tools/solver/glpk/source/Makefile
Jody Goldberg's avatar
Jody Goldberg committed
942
src/tools/solver/glpk/include/Makefile
943
src/tools/solver/lp_solve/Makefile
944
src/cut-n-paste-code/Makefile
Morten Welinder's avatar
Morten Welinder committed
945 946
src/cut-n-paste-code/foocanvas/Makefile
src/cut-n-paste-code/foocanvas/libfoocanvas/Makefile
947
src/cut-n-paste-code/goffice/Makefile
948
src/cut-n-paste-code/goffice/app/Makefile
949
src/cut-n-paste-code/goffice/pixmaps/Makefile
950
src/cut-n-paste-code/goffice/utils/Makefile
951
src/cut-n-paste-code/goffice/gui-utils/Makefile
952 953 954
src/cut-n-paste-code/goffice/graph/Makefile
src/cut-n-paste-code/goffice/graph/plugins/Makefile
src/cut-n-paste-code/goffice/graph/plugins/plot_barcol/Makefile
955
src/cut-n-paste-code/goffice/graph/plugins/plot_pie/Makefile
956
src/cut-n-paste-code/goffice/graph/plugins/plot_radar/Makefile
957
src/cut-n-paste-code/goffice/graph/plugins/plot_xy/Makefile
958 959
src/cut-n-paste-code/goffice/drawing/Makefile
src/cut-n-paste-code/goffice/ms-compat/Makefile
960 961
src/cut-n-paste-code/goffice/libpresent/Makefile
src/cut-n-paste-code/goffice/test/Makefile
962 963
src/cut-n-paste-code/goffice/cut-n-paste/Makefile
src/cut-n-paste-code/goffice/cut-n-paste/pcre/Makefile
964
src/cut-n-paste-code/goffice/cut-n-paste/egg-recent-files/Makefile
965
doc/Makefile
966
doc/C/Makefile
967
doc/C/figures/Makefile
968
doc/developer/Makefile
Arturo Espinosa's avatar
Arturo Espinosa committed
969
plugins/Makefile
Morten Welinder's avatar
Morten Welinder committed
970
plugins/numtheory/Makefile
jpekka's avatar
jpekka committed
971
plugins/fn-complex/Makefile
972
plugins/fn-database/Makefile
Morten Welinder's avatar
Morten Welinder committed
973
plugins/fn-date/Makefile
974
plugins/fn-eng/Makefile
975
plugins/fn-financial/Makefile
Morten Welinder's avatar
Morten Welinder committed
976
plugins/fn-info/Makefile
Morten Welinder's avatar
Morten Welinder committed
977
plugins/fn-logical/Makefile
978
plugins/fn-lookup/Makefile
Morten Welinder's avatar
Morten Welinder committed
979
plugins/fn-math/Makefile
980
plugins/fn-stat/Makefile
Morten Welinder's avatar
Morten Welinder committed
981
plugins/fn-string/Makefile
jpekka's avatar
jpekka committed
982
plugins/fn-random/Makefile
Morten Welinder's avatar
Morten Welinder committed
983
plugins/derivatives/Makefile
984
plugins/sc/Makefile
985
plugins/sylk/Makefile
986
plugins/excel/Makefile
Jody Goldberg's avatar
typos  
Jody Goldberg committed
987
plugins/gda/Makefile
988
plugins/gnome-db/Makefile
989
plugins/lotus-123/Makefile
990
plugins/oleo/Makefile
991 992 993
plugins/python-loader/Makefile
plugins/gnome-glossary/Makefile
plugins/py-func/Makefile
994
plugins/corba/Makefile
995
plugins/perl/Makefile
996
plugins/perl/ext/Makefile.PL
Mark Probst's avatar
Mark Probst committed
997
plugins/guile/Makefile
Michael Meeks's avatar
Michael Meeks committed
998
plugins/xbase/Makefile
999
plugins/html/Makefile
1000
plugins/dif/Makefile
1001
plugins/qpro/Makefile
1002
plugins/plan-perfect/Makefile
Jody Goldberg's avatar
Jody Goldberg committed
1003
plugins/xml_sax/Makefile
Jody Goldberg's avatar
Jody Goldberg committed
1004
plugins/applix/Makefile
1005
plugins/openoffice/Makefile
Jody Goldberg's avatar
Jody Goldberg committed
1006
plugins/psiconv/Makefile
Jukka-Pekka Iivonen's avatar
Jukka-Pekka Iivonen committed
1007
plugins/mps/Makefile
Jody Goldberg's avatar
Jody Goldberg committed
1008
plugins/sample_datasource/Makefile
1009
plugins/paradox/Makefile
Arturo Espinosa's avatar
Arturo Espinosa committed
1010
po/Makefile.in
Jody Goldberg's avatar
Jody Goldberg committed
1011
schemas/Makefile
Jody Goldberg's avatar
Jody Goldberg committed
1012 1013
templates/Makefile
templates/english/Makefile
1014
templates/autoformat/Makefile
1015
stamp.h
Fatih Demir's avatar
Fatih Demir committed
1016
])
1017

1018 1019 1020 1021 1022
echo "

Configuration:

	Source code location:	${srcdir}
Morten Welinder's avatar
Morten Welinder committed
1023
	Compiler:		${CC}
Morten Welinder's avatar
Morten Welinder committed
1024
	Compiler flags:		${CFLAGS}
Morten Welinder's avatar
Morten Welinder committed
1025
	Floating point type:	${float_msg}
1026

Jody Goldberg's avatar
Jody Goldberg committed
1027 1028
	UI :			${ui_msg}

1029
	Python Support:		${python_msg}
1030
	Guile Support:		${guile_msg}
1031
	GDA support:		${gda_msg}
Rodrigo Moya's avatar
Rodrigo Moya committed
1032
	GNOME-DB support:	${gnomedb_msg}
Jon Kåre Hellan's avatar
Jon Kåre Hellan committed
1033
	Psiconv support:        ${psiconv_msg}
1034
"
Jody Goldberg's avatar
Jody Goldberg committed
1035
#	Mono support:		${mono_msg}