AutoConfig avec motif
This commit is contained in:
parent
396cca2bb9
commit
aa729508a3
|
@ -6,7 +6,7 @@
|
|||
# Alliance CAD system environnement
|
||||
# Usage (in C-shell) : > source alc_env.csh
|
||||
# (C) 1997 Czo -- <Olivier.Sirol@lip6.fr>
|
||||
# $Id: alc_env.csh.in,v 1.2 1999/08/26 18:47:42 czo Exp $
|
||||
# $Id: alc_env.csh.in,v 1.3 1999/08/27 15:17:01 czo Exp $
|
||||
# Generated from alc_env.csh.in on @DATE@
|
||||
|
||||
# $MACHINE and $TOP are the only variables you will
|
||||
|
@ -14,16 +14,23 @@
|
|||
|
||||
# Which platform for Alliance CAD
|
||||
|
||||
# WARNING : if changing this remember to do it on the 3 config files :
|
||||
# configure.in alc_env.sh.in and alc_env.csh.in
|
||||
|
||||
switch (`uname`)
|
||||
case Linux:
|
||||
case Linux*:
|
||||
if ( `uname -r` =~ 1.* ) then
|
||||
setenv MACHINE Linux_aout
|
||||
else
|
||||
if ( `uname -r` =~ 2.0* ) then
|
||||
setenv MACHINE Linux_elf
|
||||
else
|
||||
setenv MACHINE Linux
|
||||
endif
|
||||
endif
|
||||
breaksw
|
||||
|
||||
case SunOS:
|
||||
case SunOS*:
|
||||
if ( `uname -r` =~ 5* ) then
|
||||
setenv MACHINE Solaris
|
||||
else
|
||||
|
@ -31,12 +38,33 @@ switch (`uname`)
|
|||
endif
|
||||
breaksw
|
||||
|
||||
default:
|
||||
case FreeBSD*:
|
||||
setenv MACHINE FreeBSD
|
||||
breaksw
|
||||
|
||||
case NetBSD*:
|
||||
setenv MACHINE NetBSD
|
||||
breaksw
|
||||
|
||||
case HP-UX*:
|
||||
setenv MACHINE HPUX
|
||||
breaksw
|
||||
|
||||
case OSF1*:
|
||||
setenv MACHINE OSF
|
||||
breaksw
|
||||
|
||||
case CYGWIN*:
|
||||
setenv MACHINE CYGWIN
|
||||
breaksw
|
||||
|
||||
default:
|
||||
setenv MACHINE Unknown
|
||||
breaksw
|
||||
endsw
|
||||
|
||||
setenv ALLIANCE_OS $MACHINE
|
||||
#echo $MACHINE
|
||||
|
||||
# Where the Alliance CAD is installed
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
# Alliance CAD system environnement
|
||||
# Usage (in Bourne-shell) : > . alc_env.sh
|
||||
# (C) 1997 Czo -- <Olivier.Sirol@lip6.fr>
|
||||
# $Id: alc_env.sh.in,v 1.2 1999/08/26 18:47:42 czo Exp $
|
||||
# $Id: alc_env.sh.in,v 1.3 1999/08/27 15:17:01 czo Exp $
|
||||
# Generated from alc_env.sh.in on @DATE@
|
||||
|
||||
# $MACHINE and $TOP are the only variables you will
|
||||
|
@ -34,14 +34,20 @@ case `uname` in
|
|||
|
||||
FreeBSD*) MACHINE=FreeBSD ;;
|
||||
|
||||
NetBSD*) MACHINE=NetBSD ;;
|
||||
|
||||
HP-UX*) MACHINE=HPUX ;;
|
||||
|
||||
OSF1*) MACHINE=OSF ;;
|
||||
|
||||
CYGWIN*) MACHINE=CYGWIN ;;
|
||||
|
||||
*) MACHINE=Unknown ;;
|
||||
|
||||
esac
|
||||
|
||||
export MACHINE
|
||||
#echo $MACHINE
|
||||
|
||||
# Where the Alliance CAD is installed
|
||||
|
||||
|
|
|
@ -16,7 +16,6 @@ GNU_INCLUDE = @GNU_INC_LOC@
|
|||
X11_LIB = . @X_LIBS@ @X_EXTRA_LIBS@ @X_PRE_LIBS@
|
||||
X11_INCLUDE = . @X_CFLAGS@
|
||||
|
||||
#You may need -lXintl
|
||||
MOTIF_LIB = @GUI_LIB_LOC@
|
||||
MOTIF_INCLUDE = @GUI_INC_LOC@
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -4,10 +4,10 @@
|
|||
#
|
||||
# Alliance CAD system configure.in
|
||||
# (C) 1997 Czo -- <Olivier.Sirol@lip6.fr>
|
||||
# $Id: configure.in,v 1.2 1999/08/26 18:47:42 czo Exp $
|
||||
# $Id: configure.in,v 1.3 1999/08/27 15:17:02 czo Exp $
|
||||
#
|
||||
|
||||
AC_REVISION($Revision: 1.2 $)dnl
|
||||
AC_REVISION($Revision: 1.3 $)dnl
|
||||
|
||||
AC_INIT(configure.in)
|
||||
|
||||
|
@ -24,9 +24,10 @@ AC_MSG_CHECKING(for platform)
|
|||
|
||||
# WARNING : if changing this remember to do it on the 3 config files :
|
||||
# configure.in alc_env.sh.in and alc_env.csh.in
|
||||
|
||||
MACHINE=Unknown
|
||||
|
||||
case `uname` in
|
||||
case `uname` in
|
||||
|
||||
Linux*) case `uname -r` in
|
||||
1.*) MACHINE=Linux_aout ;;
|
||||
|
@ -41,14 +42,20 @@ MACHINE=Unknown
|
|||
|
||||
FreeBSD*) MACHINE=FreeBSD ;;
|
||||
|
||||
NetBSD*) MACHINE=NetBSD ;;
|
||||
|
||||
HP-UX*) MACHINE=HPUX ;;
|
||||
|
||||
OSF1*) MACHINE=OSF ;;
|
||||
|
||||
CYGWIN*) MACHINE=CYGWIN ;;
|
||||
|
||||
*) MACHINE=Unknown ;;
|
||||
|
||||
esac
|
||||
export MACHINE
|
||||
esac
|
||||
|
||||
export MACHINE
|
||||
# echo $MACHINE
|
||||
|
||||
AC_MSG_RESULT(Configuring Alliance VLSI CAD System on platform : $MACHINE)
|
||||
AC_SUBST(MACHINE)
|
||||
|
@ -263,7 +270,33 @@ fi
|
|||
AC_SUBST(GUI_INC_LOC)
|
||||
AC_SUBST(GUI_LIB_LOC)
|
||||
|
||||
# Check if the motif lib needs libXintl to link ok
|
||||
|
||||
OLD_LIBS=$LIBS
|
||||
OLD_CFLAGS=$CFLAGS
|
||||
LIBS="$LIBS -L$GUI_LIB_LOC -lXm $X_LIBS $X_EXTRA_LIBS $X_PRE_LIBS -lXt -lX11"
|
||||
CFLAGS="$CFLAGS $X_CFLAGS -I$GUI_INC_LOC"
|
||||
|
||||
AC_MSG_CHECKING(if motif requires lXintl)
|
||||
AC_TRY_LINK([# include <Xm/Xm.h>
|
||||
# include <Xm/FileSB.h>
|
||||
# include <Xm/MessageB.h>
|
||||
# include <Xm/SelectioB.h>
|
||||
# include <Xm/SeparatoG.h>],
|
||||
[ XtAppContext app;
|
||||
Widget toplevel;
|
||||
XmString xm_string;
|
||||
Arg args[1];
|
||||
toplevel = XtVaAppInitialize(&app, "Demos", NULL, 0, NULL, NULL, NULL, NULL);
|
||||
xm_string = XmStringCreateSimple("Vive Alliance");
|
||||
XtSetArg(args[0], XmNmessageString, xm_string);
|
||||
XmStringFree(xm_string);
|
||||
XtAppMainLoop( app );],
|
||||
AC_MSG_RESULT(no OK),
|
||||
AC_MSG_RESULT(yes Xintl needed); X_PRE_LIBS="$X_PRE_LIBS -lXintl")
|
||||
|
||||
LIBS=$OLD_LIBS
|
||||
CFLAGS=$OLD_CFLAGS
|
||||
|
||||
# Check where usefull GNU libs are installed (readline)
|
||||
#AC_CHECK_LIB(readline, main, $TRUE,
|
||||
|
@ -331,7 +364,6 @@ AC_STDC_HEADERS
|
|||
AC_MSG_CHECKING(where the Alliance package was installed)
|
||||
TOP=`pwd | sed 's,share/etc$,archi,'`
|
||||
export TOP
|
||||
AC_MSG_RESULT(Alliance TOP is "$TOP"/"$MACHINE")
|
||||
AC_SUBST(TOP)
|
||||
|
||||
DATE=`date`
|
||||
|
@ -351,7 +383,12 @@ rm -f config.cache
|
|||
|
||||
#cat config.status | grep '^s%' | sed -e 's/^s%@//' -e 's/@%/ /' -e 's/%g$//' | sort | gawk '{printf("%-30s",$1) ; for (i=2 ; i<=NF ; i++) printf("%s ", $i); printf ("\n");}'
|
||||
|
||||
echo Done...
|
||||
|
||||
# EOF
|
||||
cat << EOF
|
||||
Done...
|
||||
Alliance is installed on $TOP/$MACHINE
|
||||
OS definitions are in $MACHINE.mk
|
||||
You'll need to 'source alc_env.csh'
|
||||
or '. alc_env.sh' whether you use csh or sh"
|
||||
EOF
|
||||
|
||||
# end of configure
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
# The variables $TOP and $MACHINE are set by
|
||||
# alc_env.[c]sh script
|
||||
|
||||
ALLIANCE_VERSION = '"3.5.003"'
|
||||
ALLIANCE_VERSION = '"3.5.7"'
|
||||
ALLIANCE_BIN = $(TOP)/bin
|
||||
ALLIANCE_LIB = $(TOP)/lib
|
||||
ALLIANCE_INCLUDE = $(TOP)/include
|
||||
|
|
Loading…
Reference in New Issue