mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-11-27 19:30:27 -06:00
f96bbbc387
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@258 57a11ea4-9604-0410-9ed3-97b8803252fd
75 lines
2.0 KiB
Plaintext
75 lines
2.0 KiB
Plaintext
AC_INIT(src/main.c)
|
|
|
|
# *******************************************
|
|
# * figure out the configure options:
|
|
cflags=-O2
|
|
lflags=-O2
|
|
AC_ARG_ENABLE( debug,
|
|
[ --enable-debug compile with debugging flags set],
|
|
cflags=-g
|
|
lflags=-g
|
|
AC_DEFINE(DEBUG_MEMORY,1) AC_DEFINE(USE_DEBUG,1),
|
|
AC_DEFINE(DEBUG_MEMORY,0) AC_DEFINE(USE_DEBUG,0) )
|
|
# USE_QUICKFILL ??? for now:
|
|
AC_DEFINE(USE_QUICKFILL,1)
|
|
# USE_NO_COLOR ??? for now:
|
|
AC_DEFINE(USE_NO_COLOR,0)
|
|
|
|
AC_SUBST(cflags)
|
|
AC_SUBST(lflags)
|
|
|
|
AC_SUBST(prefix)
|
|
|
|
# *******************************************
|
|
# check for various programs, and stuff:
|
|
AC_PROG_INSTALL
|
|
AC_SUBST(INSTALL)
|
|
AC_SUBST(INSTALL_DATA)
|
|
AC_PROG_RANLIB
|
|
AC_SUBST(RANLIB)
|
|
AC_PROG_CC
|
|
AC_SUBST(CC)
|
|
AC_ISC_POSIX
|
|
AC_C_BIGENDIAN
|
|
|
|
# *******************************************
|
|
# check for UI libs:
|
|
AC_PATH_X
|
|
AC_PATH_XTRA
|
|
AC_SUBST(x_includes)
|
|
AC_SUBST(x_libraries)
|
|
|
|
|
|
# the XmHTML widget needs libz, libjpeg, libpng and libm
|
|
# it also uses #ifdef's not #if's so DONT #def to zero.
|
|
LIBS="-lm"
|
|
|
|
AC_CHECK_LIB(z, deflateEnd,
|
|
AC_DEFINE(HAVE_ZLIB,1) LIBS="-lz $LIBS")
|
|
AC_SUBST(LIBS)
|
|
|
|
AC_CHECK_LIB(jpeg, jpeg_read_scanlines,
|
|
AC_DEFINE(HAVE_JPEG,1) LIBS="-ljpeg $LIBS")
|
|
AC_SUBST(LIBS)
|
|
|
|
AC_CHECK_LIB(png, png_read_image,
|
|
AC_DEFINE(HAVE_PNG,1) LIBS="-lpng $LIBS")
|
|
AC_SUBST(LIBS)
|
|
|
|
LIBS="-lXm -lXmu -lXt -lXext $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
|
|
AC_SUBST(LIBS)
|
|
|
|
AC_CHECK_LIB(Xpm, XpmReadFileToXpmImage,
|
|
AC_DEFINE(HAVE_XPM,1) LIBS="-lXpm $LIBS",
|
|
AC_DEFINE(HAVE_XPM,0), -L $x_libraries)
|
|
AC_SUBST(LIBS)
|
|
|
|
AC_CONFIG_HEADER(config.h)
|
|
#
|
|
# elminate libhtmlw due to license restrictions
|
|
# and general broken-ness
|
|
|
|
# AC_OUTPUT(Makefile src/Makefile lib/Makefile lib/XmHTML-1.1.0/Makefile lib/XmHTML-1.1.0/src/Makefile lib/libhtmlw/Makefile lib/Xbae-4.6.2-linas/Makefile lib/Xbae-4.6.2-linas/src/Makefile lib/ComboBox-1.33/Makefile)
|
|
|
|
AC_OUTPUT(Makefile src/Makefile lib/Makefile lib/XmHTML-1.1.0/Makefile lib/XmHTML-1.1.0/src/Makefile lib/Xbae-4.6.2-linas/Makefile lib/Xbae-4.6.2-linas/src/Makefile lib/ComboBox-1.33/Makefile)
|