]> git.lyx.org Git - lyx.git/blob - config/gnome--.m4
fix typo that put too many include paths for most people
[lyx.git] / config / gnome--.m4
1 # Configure paths for GNOME--
2 # Modified from GTK--.m4
3
4 dnl Test for GNOMEMM, and define GNOMEMM_INCLUDEDIR, GNOMEMM_LIBDIR, GNOMEMM_LIBS
5 dnl   to be used as follows:
6 dnl AM_PATH_GNOMEMM([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
7 dnl
8 AC_DEFUN(AM_PATH_GNOMEMM,
9 [
10 dnl 
11 dnl Get the cflags and libraries from the gtkmm-config script
12 dnl
13 AC_ARG_WITH(gnomemm-config-path,[  --with-gnomemm-config-path=PREFIX
14                           Path to GNOME-- configuration file gnomemmConf.sh (optional)],
15             gnomemm_config_prefix="$withval", gnome_config_prefix="")
16
17   AC_MSG_CHECKING(for GNOME-- gnomemmConf.sh)
18
19   if test x$gnomemm_config_prefix != x; then
20     if test -r $gnomemm_config_prefix; then
21         source $gnomemm_config_prefix
22     else 
23         no_gnomemm=yes
24     fi
25   else
26     if test -r /usr/lib/gnomemmConf.sh ; then
27         source /usr/lib/gnomemmConf.sh
28     elif test -r /opt/gnome/lib/gnomemmConf.sh ; then
29         source /opt/gnome/lib/gnomemmConf.sh
30     elif test -r /usr/local/lib/gnomemmConf.sh ; then
31         source /usr/local/lib/gnomemmConf.sh
32     else 
33         no_gnomemm=yes
34     fi
35   fi
36
37   if test "x$no_gnomemm" = x ; then
38      AC_MSG_RESULT(yes)
39      ifelse([$2], , :, [$2])     
40   else
41      AC_MSG_RESULT(no)
42      AC_MSG_ERROR(Cannot find GNOME-- configuration file gnomemmConf.sh)
43   fi
44
45   AC_SUBST(GNOMEMM_INCLUDEDIR)
46   AC_SUBST(GNOMEMM_LIBDIR)
47   AC_SUBST(GNOMEMM_LIBS)
48 ])
49