gnome-control-center/configure.in

215 lines
5.5 KiB
Text
Raw Normal View History

1998-02-10 21:22:12 +00:00
AC_INIT(desktop-properties)
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(gnome-core, 0.30)
1998-02-10 21:22:12 +00:00
AM_MAINTAINER_MODE
1998-02-12 00:11:49 +00:00
AM_ACLOCAL_INCLUDE(macros)
dnl
dnl let applications configure for gnome
dnl
gnome_cv_use_gnome=yes
1998-02-11 01:39:34 +00:00
GNOME_INIT
1998-02-10 21:22:12 +00:00
AC_ISC_POSIX
AC_PROG_CC
AC_STDC_HEADERS
AC_ARG_PROGRAM
AM_PROG_LIBTOOL
AC_PROG_CXX
AM_PROG_LEX
AC_PROG_YACC
1998-02-10 21:22:12 +00:00
GNOME_COMPILE_WARNINGS
GNOME_X_CHECKS
GNOME_GHTTP_CHECK
dnl utility conditional
AM_CONDITIONAL(FALSE, test "x" = "y")
dnl ## all 'es_??' are only needed for format numbers different of 'es'
1998-12-06 16:23:22 +00:00
ALL_LINGUAS="ca cs da de es es_DO es_GT es_HN es_MX es_PA es_PE es_SV fi fr ga it ja ko no pt sv ru pl hu"
1998-02-10 21:22:12 +00:00
AM_GNU_GETTEXT
AC_SUBST(CFLAGS)
AC_SUBST(CPPFLAGS)
AC_SUBST(LDFLAGS)
1998-02-11 22:22:32 +00:00
AC_CHECK_HEADERS(dlfcn.h dl.h)
AC_CHECK_LIB(dl, dlopen, DL_LIB="-ldl",[
AC_CHECK_LIB(dld, shl_load, DL_LIB="-ldld",[
AC_CHECK_FUNCS(dlopen, DL_LIB="",
AC_MSG_ERROR(Dynamic linking is not available on this platform. Some
apps, like panel, will not run properly.))
])])
AC_SUBST(DL_LIB)
1998-02-10 21:22:12 +00:00
dnl properties-keyboard
AC_CHECK_HEADERS(X11/extensions/xf86misc.h, XF86MISC_LIBS="-lXxf86misc")
AC_SUBST(XF86MISC_LIBS)
for dir in `(IFS=:; for i in $PATH; do echo $i ; done)` ; do
if test -f $dir/orbit-idl ; then
orbit_prefix=`echo $dir | sed 's%/bin$%%' |sed 's%/bin/$%%'`
break
fi
done
ORB_LIBS="$ORBIT_LIBS"
ORB_CFLAGS="$ORBIT_CFLAGS"
AC_SUBST(ORB_LIBS)
AC_SUBST(ORB_CFLAGS)
dnl gnome-session
dnl $GNOME_HAVE_SM comes from GNOME_X_CHECKS
AM_CONDITIONAL(SESSION, test "$GNOME_HAVE_SM" = true)
AC_ARG_WITH(window-manager,
[ --with-window-manager=NAME
Specify default window manager],[
WINDOW_MANAGER="$with_window_manager"], [
dnl icewm is the default because it supports session management
dnl and other Gnome requirements.
WINDOW_MANAGER=icewm])
AC_SUBST(WINDOW_MANAGER)
dnl Check for libgtop
GNOME_LIBGTOP_HOOK(,applets_libgtop=yes)
if test x$applets_libgtop != xyes; then
AC_MSG_WARN([*** \`cpuload' applet will not be built ***])
AC_MSG_WARN([*** \`cpumemusage' applet will not be built ***])
AC_MSG_WARN([*** \`diskusage' applet will not be built ***])
AC_MSG_WARN([*** \`multiload' applet will not be built ***])
AC_MSG_WARN([*** \`netload' applet will not be built ***])
fi
dnl Check for ghttp library
AM_CONDITIONAL(HAVE_LIBGHTTP, test -n "$GHTTP_LIB")
AC_SUBST(GHTTP_LIB)
if test -z "$GHTTP_LIB"; then
AC_MSG_WARN([*** \`bussign' applet will not be built ***])
fi
1998-02-10 21:22:12 +00:00
dnl panel/cdplayer
AC_CANONICAL_HOST
case "$host" in
*linux*) CDROM_HOST=linux;;
*solaris*) CDROM_HOST=solaris;;
esac
AM_CONDITIONAL(APPLET_CDPLAYER, test -n "$CDROM_HOST")
1998-02-10 21:22:12 +00:00
AC_SUBST(CDROM_HOST)
if test -z "$CDROM_HOST"; then
AC_MSG_WARN([*** \`cdplayer' applet will not be built ***])
fi
1998-02-10 21:22:12 +00:00
dnl panel/mixer
P_MIXER=
AC_CHECK_HEADERS(linux/soundcard.h,[P_MIXER=mixer],[
AC_CHECK_HEADERS(machine/soundcard.h, [P_MIXER=mixer])])
AM_CONDITIONAL(APPLET_MIXER, test "$P_MIXER" = "mixer")
if test "$P_MIXER" != "mixer"; then
AC_MSG_WARN([*** \`mixer' applet will not be built ***])
fi
dnl panel/modemlights
P_MODEMLIGHTS=
AC_CHECK_HEADERS(net/ppp_defs.h,[P_MODEMLIGHTS=modemlights])
AM_CONDITIONAL(APPLET_MODEMLIGHTS, test "$P_MODEMLIGHTS" = "modemlights")
if test "$P_MODEMLIGHTS" != "modemlights"; then
AC_MSG_WARN([*** \`modemlights' applet will not be built ***])
fi
if test "$WINDOW_MANAGER" == "Xfvwm2"
then
FVWM_PAGER=yes
AM_CONDITIONAL(APPLET_FVWM_PAGER, test ! -z "$FVWM_PAGER")
fi
dnl esd-manager
have_libesd=no
AM_PATH_ESD(,have_libesd=yes,
[AC_MSG_WARN([*** \`esd-manager' will not be built ***])])
AM_CONDITIONAL(HAVE_LIBESD, test yes = $have_libesd)
dnl help-browser
dnl I found `inet_aton' in -lresolv on solaris
oLIBS="$LIBS"
RES_LIBS=
# the following two are covered by X11 too. If inet_aton is found in
# plain libc, -lsocket or -lnsl, RES_LIBS will be empty.
AC_CHECK_FUNC(connect,,[AC_CHECK_LIB(socket,connect)])
AC_CHECK_FUNC(gethostbyname,,[AC_CHECK_LIB(nsl,gethostbyname)])
AC_CHECK_FUNC(inet_aton,,[AC_CHECK_LIB(resolv,inet_aton,RES_LIBS="-lresolv")])
AC_SUBST(RES_LIBS)
LIBS="$oLIBS"
1998-05-16 01:11:49 +00:00
dnl AC_CONFIG_SUBDIRS(gemvt)
1998-02-10 21:22:12 +00:00
AC_OUTPUT([
Makefile
po/Makefile.in
macros/Makefile
1998-02-10 21:22:12 +00:00
panel/Makefile
applets/Makefile
applets/applet-dirs/Makefile
applets/asclock/Makefile
applets/gen_util/Makefile
applets/batmon/Makefile
applets/bussign/Makefile
applets/cdplayer/Makefile
applets/mixer/Makefile
applets/modemlights/Makefile
applets/multiload/Makefile
applets/cpuload/Makefile
1998-05-08 06:21:35 +00:00
applets/netload/Makefile
1998-04-22 15:29:31 +00:00
applets/cpumemusage/Makefile
applets/fish/Makefile
1998-08-21 04:26:44 +00:00
applets/gkb/Makefile
applets/diskusage/Makefile
applets/icewm-pager/Makefile
1998-10-08 21:02:40 +00:00
applets/gnome-pager/Makefile
applets/esd-manager/Makefile
applets/drivemount/Makefile
applets/clockmail/Makefile
applets/webcontrol/Makefile
1998-05-27 17:55:37 +00:00
applets/dialer/Makefile
applets/fifteen/Makefile
applets/battery/Makefile
applets/charpick/Makefile
applets/winlist/Makefile
applets/fvwm-pager/Makefile
applets/slashapp/Makefile
applets/gticker/Makefile
core-docs/Makefile
1998-02-10 21:22:12 +00:00
desktop-links/Makefile
1998-02-11 05:22:02 +00:00
desktop-properties/Makefile
gnome-terminal/Makefile
help-browser/Makefile
help-browser/gnome-man2html/Makefile
help-browser/gnome-info2html/Makefile
gmenu/Makefile
control-center/Makefile
capplets/Makefile
capplets/mouse-properties/Makefile
capplets/keyboard-properties/Makefile
capplets/desktop-links/Makefile
capplets/background-properties/Makefile
capplets/screensaver-properties/Makefile
capplets/screensaver-properties/screensaver-desktops/Makefile
1998-10-07 22:15:49 +00:00
capplets/sound-properties/Makefile
capplets/bell-properties/Makefile
1998-10-08 21:02:40 +00:00
capplets/e-conf/Makefile
capplets/theme-switcher/Makefile
capplets/ui-properties/Makefile
capplets/url-properties/Makefile
idl/Makefile
1998-02-10 21:22:12 +00:00
pixmaps/Makefile
gsm/Makefile
smproxy/Makefile
intl/Makefile])