From 9c5ccc9d3e56a97c7ee4b8109c77b49472f0ef6d Mon Sep 17 00:00:00 2001 From: Olivier Sirol Date: Fri, 22 Sep 2000 10:19:17 +0000 Subject: [PATCH] OpenMotif --- alliance/share/etc/configure.in | 52 ++++++++++++++++++++++++++------- 1 file changed, 41 insertions(+), 11 deletions(-) diff --git a/alliance/share/etc/configure.in b/alliance/share/etc/configure.in index a7db4825..7c51778e 100644 --- a/alliance/share/etc/configure.in +++ b/alliance/share/etc/configure.in @@ -1,15 +1,19 @@ # ,,, # (o o) ####=====oOO--(_)--OOO=========================================#### +# +# Filename: configure.in +# Copyright (C) 1997, 2000 Czo +# License: GPL (http://www.gnu.org/copyleft/gpl.html) +# Started: Feb 1997 +# Last Change: Friday 22 September 2000, 12:11 +# Edit Time: 0:21:57 +# Description: Alliance CAD system configure.in # -# Alliance CAD system configure.in -# (C) 1997 Czo -- -# $Id: configure.in,v 1.16 2000/09/13 15:07:05 czo Exp $ +# $Id: configure.in,v 1.17 2000/09/22 10:19:17 czo Exp $ # - - -AC_REVISION($Revision: 1.16 $)dnl +AC_REVISION($Revision: 1.17 $)dnl AC_INIT(configure.in) @@ -323,14 +327,14 @@ AC_MSG_RESULT(ERROR: BAD X11 environment) LIBS=$OLD_LIBS CFLAGS=$OLD_CFLAGS -# Check if the motif lib needs libXintl to link ok +# Check if the motif lib needs other libs to link ok OLD_LIBS=$LIBS OLD_CFLAGS=$CFLAGS LIBS="$OLD_LIBS -L$GUI_LIB_LOC -lXm $X_LIBS $X_EXTRA_LIBS $X_PRE_LIBS -lXt -lX11" CFLAGS="$OLD_CFLAGS $X_CFLAGS -I$GUI_INC_LOC" -AC_MSG_CHECKING(if you can link Motif/LessTif app) +AC_MSG_CHECKING([if you can link Motif/LessTif app]) AC_TRY_LINK([# include # include # include @@ -346,8 +350,12 @@ AC_TRY_LINK([# include XmStringFree(xm_string); XtAppMainLoop( app );], AC_MSG_RESULT(yes), +AC_MSG_RESULT([no: try with Xintl]) +) -LIBS="$OLD_LIBS -L$GUI_LIB_LOC -lXm $X_LIBS $X_EXTRA_LIBS $X_PRE_LIBS -lXt -lX11" +# try with Xintl +AC_MSG_CHECKING([if you can link Motif/LessTif app with Xintl]) +LIBS="$OLD_LIBS -L$GUI_LIB_LOC -lXm $X_LIBS $X_EXTRA_LIBS $X_PRE_LIBS -lXintl -lXt -lX11" CFLAGS="$OLD_CFLAGS $X_CFLAGS -I$GUI_INC_LOC" AC_TRY_LINK([# include @@ -364,9 +372,31 @@ AC_TRY_LINK([# include XtSetArg(args[0], XmNmessageString, xm_string); XmStringFree(xm_string); XtAppMainLoop( app );], -AC_MSG_RESULT(yes, Xintl needed); X_PRE_LIBS="$X_PRE_LIBS -lXintl", -AC_MSG_RESULT(ERROR: BAD Motif/LessTif environment) +AC_MSG_RESULT([yes: Xintl needed]); X_PRE_LIBS="$X_PRE_LIBS -lXintl", +AC_MSG_RESULT([no: try with Xext and Xp]) ) + +# try with Xp +AC_MSG_CHECKING([if you can link Motif/LessTif app with Xext and Xp]) +LIBS="$OLD_LIBS -L$GUI_LIB_LOC -lXm $X_LIBS $X_EXTRA_LIBS $X_PRE_LIBS -lXext -lXp -lXt -lX11" +CFLAGS="$OLD_CFLAGS $X_CFLAGS -I$GUI_INC_LOC" + +AC_TRY_LINK([# include +# include +# include +# include +# include ], +[ XtAppContext app; + Widget toplevel; + XmString xm_string; + Arg args[1]; + toplevel = XtVaAppInitialize(&app, "Demos", 0, 0, 0, 0, 0, 0); + xm_string = XmStringCreateSimple("Vive Alliance"); + XtSetArg(args[0], XmNmessageString, xm_string); + XmStringFree(xm_string); + XtAppMainLoop( app );], +AC_MSG_RESULT([yes: Xext and Xp needed]); X_PRE_LIBS="$X_PRE_LIBS -lXext -lXp", +AC_MSG_RESULT([ERROR: BAD Motif/LessTif environment]) ) LIBS=$OLD_LIBS