allow lib64 in spinit
This commit is contained in:
parent
97085752a4
commit
a77275133a
|
|
@ -1,3 +1,7 @@
|
|||
2010-09-19 Holger Vogt
|
||||
* src/spinit.in, configure.ac: allow lib64 in spinit (bug no. 3054424)
|
||||
if libdir contains lib64
|
||||
|
||||
2010-09-18 Holger Vogt
|
||||
* src/XSPICE/icm/makedefs.in: external LDFLAGS enabled for MINGW
|
||||
|
||||
|
|
|
|||
36
configure.ac
36
configure.ac
|
|
@ -286,7 +286,18 @@ fi
|
|||
dnl Check system we're on , and tune accordingly
|
||||
AC_CANONICAL_HOST
|
||||
|
||||
|
||||
dnl Expand the prefix variable
|
||||
if eval "test x$prefix = xNONE"; then
|
||||
dnl with the MS WINDOWS executable we suggest C:/Spice/bin as *.exe-path
|
||||
if test "$with_windows" = "yes"; then
|
||||
dprefix="C:/Spice"
|
||||
prefix=$dprefix
|
||||
else
|
||||
dprefix=$ac_default_prefix
|
||||
fi
|
||||
else
|
||||
dprefix=$prefix
|
||||
fi
|
||||
|
||||
##########################################################################
|
||||
#
|
||||
|
|
@ -700,18 +711,6 @@ if test "$getopt_long" = "true"; then
|
|||
AC_DEFINE(HAVE_GETOPT_LONG,1,[Have fcn getopt_long()])
|
||||
fi
|
||||
|
||||
# Expand the prefix variable (this is really annoying!)
|
||||
if eval "test x$prefix = xNONE"; then
|
||||
dnl with the MS WINDOWS executable we suggest C:/Spice/bin as *.exe-path
|
||||
if test "$with_windows" = "yes"; then
|
||||
dprefix="C:/Spice"
|
||||
prefix=$dprefix
|
||||
else
|
||||
dprefix=$ac_default_prefix
|
||||
fi
|
||||
else
|
||||
dprefix=$prefix
|
||||
fi
|
||||
AC_DEFINE_UNQUOTED(NGSPICEBINDIR,"`echo $dprefix/bin`",[Define the directory for executables])
|
||||
AC_DEFINE_UNQUOTED(NGSPICEDATADIR,"`echo $dprefix/share/ngspice`",[Define the directory for architecture independent data files])
|
||||
AC_DEFINE_UNQUOTED(NGSPICEBUILDDATE,"`date`",[Define the build date])
|
||||
|
|
@ -818,7 +817,9 @@ AC_SUBST(NOTXGRAPH)
|
|||
|
||||
AC_CHECK_PROGS(YACC, 'bison -y' byacc yacc)
|
||||
|
||||
################# XSPICE ##################################################
|
||||
dnl Add new code models to the build by pointing to them here.
|
||||
libname="lib"
|
||||
if test "$enable_xspice" = "yes"; then
|
||||
if test -z "${YACC}" ; then
|
||||
AC_MSG_ERROR([XSPICE build requires bison, byacc or yacc parser generator])
|
||||
|
|
@ -859,6 +860,14 @@ dnl Define variables for LEX
|
|||
XSPICETESTS=""
|
||||
AC_CHECK_FUNCS([modf])
|
||||
AC_CHECK_HEADERS([libintl.h malloc.h])
|
||||
dnl Find the library directory (lib or lib64) for XSPICE libs
|
||||
if test -n $libdir ; then
|
||||
libtest=`expr $libdir : '.*\/lib64$'`
|
||||
if test $libtest -gt 5 ; then
|
||||
libname="lib64"
|
||||
fi
|
||||
echo XSPICE libraries in directory $libname
|
||||
fi
|
||||
else
|
||||
XSPCIEDIR=""
|
||||
XSPICELIB1=""
|
||||
|
|
@ -875,6 +884,7 @@ AC_SUBST(XSPICELIB1)
|
|||
AC_SUBST(XSPICELIB2)
|
||||
AC_SUBST(XSPICETESTS)
|
||||
AC_SUBST(XSPICEINIT)
|
||||
AC_SUBST(libname)
|
||||
|
||||
dnl Add CIDER enhancements to ngspice.
|
||||
if test "$enable_cider" = "yes"; then
|
||||
|
|
|
|||
|
|
@ -20,13 +20,14 @@ if $__flag = 0
|
|||
|
||||
* For SPICE2 POLYs, edit the below line to point to the location
|
||||
* of your codemodel.
|
||||
@XSPICEINIT@ codemodel @prefix@/lib/spice/spice2poly.cm
|
||||
|
||||
@XSPICEINIT@ codemodel @prefix@/@libname@/spice/spice2poly.cm
|
||||
|
||||
* The other codemodels
|
||||
@XSPICEINIT@ codemodel @prefix@/lib/spice/analog.cm
|
||||
@XSPICEINIT@ codemodel @prefix@/lib/spice/digital.cm
|
||||
@XSPICEINIT@ codemodel @prefix@/lib/spice/xtradev.cm
|
||||
@XSPICEINIT@ codemodel @prefix@/lib/spice/xtraevt.cm
|
||||
@XSPICEINIT@ codemodel @prefix@/@libname@/spice/analog.cm
|
||||
@XSPICEINIT@ codemodel @prefix@/@libname@/spice/digital.cm
|
||||
@XSPICEINIT@ codemodel @prefix@/@libname@/spice/xtradev.cm
|
||||
@XSPICEINIT@ codemodel @prefix@/@libname@/spice/xtraevt.cm
|
||||
|
||||
end
|
||||
unset __flag
|
||||
|
|
|
|||
Loading…
Reference in New Issue