2007-12-30 16:41:49 +00:00
|
|
|
dnl ---- configure.ac for main programs
|
|
|
|
|
2009-08-04 19:14:17 +00:00
|
|
|
AC_INIT
|
|
|
|
AC_CONFIG_SRCDIR([configure.ac])
|
2009-08-16 22:07:48 +00:00
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
2007-12-30 16:41:49 +00:00
|
|
|
GB_INIT(main)
|
2010-08-31 08:54:51 +00:00
|
|
|
GB_MATH_FUNC
|
2009-08-16 22:07:48 +00:00
|
|
|
LT_INIT
|
2007-12-30 16:41:49 +00:00
|
|
|
AM_PROG_CC_C_O
|
|
|
|
|
|
|
|
dnl ---- Check for internationalization library
|
|
|
|
|
|
|
|
GB_COMPONENT(
|
2012-05-18 01:19:15 +00:00
|
|
|
intl, INTL, libintl, [],
|
2009-07-07 11:53:20 +00:00
|
|
|
[GB_FIND(libintl.h, /opt/local /usr/local /usr, include)],
|
|
|
|
[GB_FIND(libintl.$SHLIBEXT, /opt/local /usr/local /usr /, lib)],
|
2007-12-30 16:41:49 +00:00
|
|
|
[-lintl],
|
|
|
|
[],
|
2010-07-14 01:50:18 +00:00
|
|
|
[This library may be located inside the system C library, so you can ignore that warning...])
|
2007-12-30 16:41:49 +00:00
|
|
|
|
2012-06-09 14:03:58 +00:00
|
|
|
dnl ---- Remove DISABLED file that could have been generated before
|
|
|
|
|
|
|
|
rm -f DISABLED DISABLED.*
|
|
|
|
|
2007-12-30 16:41:49 +00:00
|
|
|
dnl ---- Check for charset conversion library
|
|
|
|
|
|
|
|
GB_COMPONENT(
|
2012-05-18 01:19:15 +00:00
|
|
|
conv, CONV, libiconv, [],
|
2009-07-07 11:53:20 +00:00
|
|
|
[GB_FIND(iconv.h, /opt/local /usr/local /usr, include)],
|
|
|
|
[GB_FIND(libiconv.$SHLIBEXT, /opt/local /usr/local /usr, lib)],
|
2007-12-30 16:41:49 +00:00
|
|
|
[-liconv],
|
|
|
|
[],
|
2010-07-14 01:50:18 +00:00
|
|
|
[This library may be located inside the system C library, so you can ignore that warning...])
|
2007-12-30 16:41:49 +00:00
|
|
|
|
2012-06-09 14:03:58 +00:00
|
|
|
dnl ---- Remove DISABLED file that could have been generated before
|
|
|
|
|
|
|
|
rm -f DISABLED DISABLED.*
|
|
|
|
|
2007-12-30 16:41:49 +00:00
|
|
|
dnl ---- Check for gettext library
|
|
|
|
|
2008-04-11 22:36:53 +00:00
|
|
|
if test "x$GETTEXT_LIB" != x; then
|
|
|
|
|
2007-12-30 16:41:49 +00:00
|
|
|
GB_COMPONENT(
|
2012-05-18 01:19:15 +00:00
|
|
|
gettext, GETTEXT, libgettextlib, [],
|
2007-12-30 16:41:49 +00:00
|
|
|
[],
|
2009-07-07 11:53:20 +00:00
|
|
|
[GB_FIND(libgettextlib.$SHLIBEXT, /opt/local /usr/local /usr, lib)],
|
2008-01-18 13:43:10 +00:00
|
|
|
[-lgettextlib],
|
2007-12-30 16:41:49 +00:00
|
|
|
[],
|
2010-07-14 01:50:18 +00:00
|
|
|
[This library may be located inside the system C library, so you can ignore that warning...])
|
2008-04-11 22:36:53 +00:00
|
|
|
|
|
|
|
fi
|
2007-12-30 16:41:49 +00:00
|
|
|
|
2012-06-09 14:03:58 +00:00
|
|
|
dnl ---- Remove DISABLED file that could have been generated before
|
|
|
|
|
|
|
|
rm -f DISABLED DISABLED.*
|
|
|
|
|
2008-01-17 21:39:26 +00:00
|
|
|
dnl ---- Check for ffi library
|
|
|
|
|
2009-06-28 22:19:42 +00:00
|
|
|
GB_COMPONENT_SEARCH(
|
2012-05-18 01:19:15 +00:00
|
|
|
ffi, FFI, libffi, [],
|
2008-02-26 08:23:51 +00:00
|
|
|
libffi,
|
2009-06-28 22:19:42 +00:00
|
|
|
[GB_FIND(ffi.h, /usr/local /usr/local/lib /usr /usr/lib /usr/lib/gcc/*/*, include ffi/include)],
|
2010-03-05 00:54:14 +00:00
|
|
|
[GB_FIND(libffi.$SHLIBEXT, /usr/local /usr /usr/lib/gcc/*/*, lib .)],
|
2009-06-28 22:19:42 +00:00
|
|
|
[-lffi])
|
2008-01-17 21:39:26 +00:00
|
|
|
|
2009-07-07 11:53:20 +00:00
|
|
|
if test -z "$FFI_LIB"; then
|
|
|
|
GB_COMPONENT(
|
2012-05-18 01:19:15 +00:00
|
|
|
ffi, FFI, libffi, [],
|
2009-07-07 11:53:20 +00:00
|
|
|
[GB_FIND(ffi.h, /opt/local /usr/local /usr/local/lib /usr /usr/lib /usr/lib/gcc/*/*, include ffi/include)],
|
|
|
|
[GB_FIND(libffi.$SHLIBEXT, /usr/local /usr, lib)],
|
|
|
|
[-lffi])
|
|
|
|
fi
|
|
|
|
|
2008-02-26 08:23:51 +00:00
|
|
|
dnl ---- Remove DISABLED file that could have been generated before
|
|
|
|
|
2012-05-18 01:19:15 +00:00
|
|
|
rm -f DISABLED DISABLED.*
|
2008-02-26 08:23:51 +00:00
|
|
|
|
2013-12-30 11:29:15 +00:00
|
|
|
dnl ---- Check for the Linux inotify headers
|
|
|
|
|
|
|
|
GB_COMPONENT(
|
|
|
|
inotify, INOTIFY, gb.inotify, [inotify],
|
|
|
|
[GB_FIND(sys/inotify.h, /usr/local/lib /usr/local /usr/lib /usr, include)],
|
|
|
|
[GB_FIND(, /usr/local /usr, lib)],
|
|
|
|
[$C_LIB])
|
|
|
|
|
2009-08-16 22:07:48 +00:00
|
|
|
dnl ---- We do not use libtool to load shared libraries anymore!
|
2007-12-30 16:41:49 +00:00
|
|
|
|
2009-08-16 22:07:48 +00:00
|
|
|
AC_DEFINE(DONT_USE_LTDL, 1, [Do not use libtool to load shared libraries])
|
|
|
|
if test "$SYSTEM" != "OPENBSD" && test "$SYSTEM" != "FREEBSD"; then
|
|
|
|
DL_LIB="-ldl"
|
2007-12-30 16:41:49 +00:00
|
|
|
else
|
2009-08-16 22:07:48 +00:00
|
|
|
DL_LIB=""
|
2007-12-30 16:41:49 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
AC_SUBST(DL_LIB)
|
|
|
|
|
|
|
|
dnl ---- Check for Portland scripts
|
|
|
|
|
|
|
|
AC_CHECK_PROGS(XDG_UTILS, [xdg-mime xdg-icon-resource], [])
|
|
|
|
|
|
|
|
dnl ---- Create makefiles
|
|
|
|
|
2009-08-04 19:14:17 +00:00
|
|
|
AC_CONFIG_FILES([\
|
2007-12-30 16:41:49 +00:00
|
|
|
Makefile \
|
|
|
|
share/Makefile \
|
|
|
|
gbc/Makefile \
|
|
|
|
gbx/Makefile \
|
|
|
|
lib/Makefile \
|
|
|
|
lib/debug/Makefile \
|
|
|
|
lib/eval/Makefile \
|
|
|
|
lib/db/Makefile \
|
|
|
|
lib/vb/Makefile \
|
|
|
|
lib/compress/Makefile \
|
|
|
|
lib/option/Makefile \
|
2013-05-04 17:23:17 +00:00
|
|
|
lib/geom/Makefile \
|
2007-12-30 16:41:49 +00:00
|
|
|
lib/draw/Makefile \
|
|
|
|
lib/gui/Makefile \
|
2012-05-06 21:09:42 +00:00
|
|
|
lib/gui.opengl/Makefile \
|
2009-01-13 00:42:55 +00:00
|
|
|
lib/image/Makefile \
|
2009-09-01 01:14:13 +00:00
|
|
|
lib/image.effect/Makefile \
|
2010-07-12 23:09:57 +00:00
|
|
|
lib/signal/Makefile \
|
2012-07-09 15:37:42 +00:00
|
|
|
lib/complex/Makefile \
|
2012-09-09 20:20:47 +00:00
|
|
|
lib/data/Makefile \
|
2013-08-12 01:50:46 +00:00
|
|
|
lib/clipper/Makefile \
|
2013-12-30 11:29:15 +00:00
|
|
|
lib/inotify/Makefile \
|
2009-08-04 19:14:17 +00:00
|
|
|
])
|
|
|
|
AC_OUTPUT
|
2009-08-16 22:07:48 +00:00
|
|
|
|
2010-07-14 01:50:18 +00:00
|
|
|
GB_PRINT_MESSAGES
|