summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@gtk.org>1998-06-10 15:48:25 +0000
committerOwen Taylor <otaylor@src.gnome.org>1998-06-10 15:48:25 +0000
commitb98a671b8bbb19a31d20cb82f89931f6795ec303 (patch)
tree6c39dfc6cac1b4ee78dba6446026fa70b7fc62e8
parent0498c6eed4c301a5e4b21355263de54392a66721 (diff)
downloadgnome-control-center-b98a671b8bbb19a31d20cb82f89931f6795ec303.tar.gz
Check for installed MICO version, and the libs it requires by using
Wed Jun 10 11:34:52 1998 Owen Taylor <otaylor@gtk.org> * configure.in acconfig.h: Check for installed MICO version, and the libs it requires by using mico-ld and mico-setup.sh. Add a HAVE_MICO_ORB_RUN macro to signal that we need to call orb->run(), as we do for mico-2.0.6 and later Wed Jun 10 11:41:11 1998 Owen Taylor <otaylor@gtk.org> * */Makefile.am: Use MICO_LIBS variable from toplevel configure.in. Wed Jun 10 11:42:16 1998 Owen Taylor <otaylor@gtk.org> * Makefile.am: Use MICO_LIBS variable from toplevel configure.in. * applet-lib.cc launcher-lib.cc mico-lib.cc. Call orb->run() at appropriate times when HAVE_MICO_ORB_RUN is defined.
-rw-r--r--ChangeLog9
-rw-r--r--acconfig.h6
-rw-r--r--configure.in44
3 files changed, 57 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 0d7fd15d8..1d0bb912f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+Wed Jun 10 11:34:52 1998 Owen Taylor <otaylor@gtk.org>
+
+ * configure.in acconfig.h: Check for installed MICO
+ version, and the libs it requires by using mico-ld
+ and mico-setup.sh.
+
+ Add a HAVE_MICO_ORB_RUN macro to signal that we need
+ to call orb->run(), as we do for mico-2.0.6 and later
+
Tue Jun 9 23:37:43 EDT 1998 Gregory McLean <gregm@comstar.net>
* .cvsignore updates.
diff --git a/acconfig.h b/acconfig.h
index 4dc16d03d..b49a2397c 100644
--- a/acconfig.h
+++ b/acconfig.h
@@ -1,13 +1,15 @@
#undef ENABLE_NLS
#undef HAVE_CATGETS
+#undef HAVE_DEVGTK
#undef HAVE_GETTEXT
#undef HAVE_LC_MESSAGES
#undef HAVE_STPCPY
#undef HAVE_LIBSM
-#undef PACKAGE
-#undef VERSION
#undef HAVE_PROGRAM_INVOCATION_SHORT_NAME
#undef HAVE_PROGRAM_INVOCATION_NAME
+#undef HAVE_MICO_ORB_RUN
+#undef PACKAGE
+#undef VERSION
/* Name of default window manager, as string. */
#undef WINDOW_MANAGER
diff --git a/configure.in b/configure.in
index 0786062e9..75700f495 100644
--- a/configure.in
+++ b/configure.in
@@ -50,6 +50,50 @@ dnl properties-keyboard
AC_CHECK_HEADERS(X11/extensions/xf86misc.h, XF86MISC_LIBS="-lXxf86misc")
AC_SUBST(XF86MISC_LIBS)
+dnl MICO - Magic to extract the relevant information from
+dnl various installed files
+
+AC_MSG_CHECKING(for MICO prefix)
+for dir in `(IFS=:; for i in $PATH; do echo $i ; done)` ; do
+ if test -f $dir/mico-ld ; then
+ mico_prefix=`echo $dir | sed 's%/bin$%%'`
+ fi
+done
+
+if test ${mico_prefix+set} = set ; then
+ AC_MSG_RESULT($mico_prefix)
+else
+ AC_MSG_RESULT(not found)
+ AC_MSG_ERROR(MICO not found)
+fi
+
+MICO_VERS=`(. $mico_prefix/lib/mico-setup.sh ; echo $MICOVERSION)`
+
+# We assume here, to keep things simple, that nobody
+# has MICO older than 2.0.5.
+
+if test $MICO_VERS = 2.0.5 ; then
+ MICO_LIBS="-lmicoaux$MICO_VERS -lmico$MICO_VERS -lXt"
+else
+ MICO_LIBS="-lmico$MICO_VERS -lmicogtk$MICO_VERS"
+ AC_DEFINE(HAVE_MICO_ORB_RUN)
+fi
+
+for flag in `grep ^eval < $mico_prefix/bin/mico-ld | sed s%\"%%` ; do
+ case $flag in
+ -L*)
+ MICO_LIBS="$flag $MICO_LIBS"
+ ;;
+ -lm|-ldl|-ldld)
+ ;;
+ -l*)
+ MICO_LIBS="$MICO_LIBS $flag"
+ ;;
+ esac
+done
+AC_SUBST(MICO_LIBS)
+AC_SUBST(MICO_VARS)
+
dnl gnome-session
dnl $GNOME_HAVE_SM comes from GNOME_X_CHECKS
AM_CONDITIONAL(SESSION, test "$GNOME_HAVE_SM" = true)