Commit Graph

184 Commits

Author SHA1 Message Date
Holger Vogt 884d1b9713 allow disabling UNICODE by --disable-utf8,
which sets the pre-processor flag EXT_ASC
2020-03-15 08:51:11 +01:00
Holger Vogt ef95ff7edc generate variable oscompiled
test for variable
2020-03-15 08:51:10 +01:00
Holger Vogt cdbbc22c68 check for libxft, if successful, then define HAVE_XFT 2020-03-15 08:51:09 +01:00
Holger Vogt 50a1687ff6 add macOS to OS_COMPILED 2020-03-15 08:51:09 +01:00
Holger Vogt d2403bfb40 Add preprocessor macro OS_COMPILED 2020-03-15 08:51:09 +01:00
Holger Vogt c42b4884b4 checking for Xft library defines HAVE_LIBXFT upon success 2020-03-15 08:51:09 +01:00
h_vogt 31aca8d00c freetype includes, checking for Xft lib, fontconfig 2020-03-15 08:51:05 +01:00
Holger Vogt 2040d45b1d O1 -> O0 for debug
Patch #71 provided by Taras Rosa
2020-03-15 08:50:56 +01:00
Holger Vogt 7871f20ecb We are beyond ngspice-31 now --> ngspice-31+ 2019-11-30 11:33:36 +01:00
Holger Vogt b5c5733769 Prepare ngspice-31 2019-09-15 21:13:28 +02:00
Holger Vogt 54d4d9747a ngspice version is now 30+ 2019-08-13 22:54:01 +02:00
Holger Vogt e18598520e Prepare ngspice-30 2018-12-23 13:43:08 +01:00
Holger Vogt 035156be66 No gcc flag -fvisibility if MINGW, CYGWIN
Add flag WINCONSOLE to be used in makefile.am
2018-11-18 16:02:05 +01:00
Holger Vogt 870958c8bc Feature request #41 by Marek Szuba
Support libtinfo (split ncurses) in autoconf
2018-11-18 15:53:10 +01:00
Holger Vogt 66439eb2f7 remove xgraph from ngspice distribution.
ngspice supports gnuplot instead.
30 year old legacy code, not maintained.
Does not compile on MS Windows,
compiles on Cygwin, but xgraph.exe crahes immediately.
Lots of compiler warnings.
2018-11-18 15:46:12 +01:00
Holger Vogt a615b902f8 version 29+ 2018-11-18 15:46:04 +01:00
Holger Vogt 4738edeab5 symbol visibility=hidden only in release mode
for shared library and codemodels
2018-10-27 11:06:16 +02:00
dwarning 383f1d14f1 symbol visibility needed for codemodel loading if compiled by sun studio 2018-10-16 14:12:27 +02:00
dwarning 1838ca96ff different symbol loader switch under solaris cc 2018-10-16 14:11:58 +02:00
Holger Vogt 25a1ba05ed allow building kfreebsd on Debian
(obviously nobody has ever built a freebsd version of ngspice before)
2018-10-14 21:18:27 +02:00
Holger Vogt 0345eedf40 prepare for ngspice-29 2018-09-15 00:18:08 +02:00
dwarning 79a5a7942a automatic search for fftw3 can be disabled - default is yes 2018-09-14 20:34:40 +02:00
Holger Vogt a244d703c9 remove --enable-gc, was not implemented anyway 2018-08-07 19:58:36 +02:00
Holger Vogt a9c2077051 checkergcc removed: no longer available, replaced by valgrind 2018-08-07 19:58:31 +02:00
Holger Vogt ed3a098e7e sort the help entries: relevant option come first 2018-08-07 19:58:26 +02:00
Holger Vogt cace650c47 timestamp may be overruled by setting env var SOURCE_DATE_EPOCH
to allow Reproducible builds
See https://wiki.debian.org/ReproducibleBuilds
2018-08-07 19:58:15 +02:00
Holger Vogt fe8126865a Add CFLAGS -fvisibility=hidden also when ngspice executable
is made under LINUX: becomes effective when code models are made.
Thus there is no longer any difference between code models
made during compiling shared ngspice or standard ngspice.
2018-07-07 14:29:44 +02:00
Holger Vogt f4f389dabb internal help: it is only available when --enable-oldapps is given
ngnutmeg is only made when --enable-oldapps is given during ./configure
2018-05-21 01:09:21 +02:00
Holger Vogt eb70e40481 simplify the previous approach to make old apps only on demand 2018-05-20 11:37:15 +02:00
Holger Vogt 3145716163 new --enable-oldapps: ngsconvert ngproc2mod ngmultidec ngmakeidx are made only per user request 2018-05-19 23:49:17 +02:00
Holger Vogt 8324b0f646 prepare ngspice-28 2018-05-19 22:15:41 +02:00
Ignacio Martinez Vazquez b6c4f85602 Add pkg-config file 2018-05-19 20:54:27 +02:00
Holger Vogt 406f812db5 distribute only adms/admst, not the whole adms 2018-05-19 20:25:42 +02:00
rlar c8aac12374 regression test for device.c "alter" 2018-05-15 22:33:50 +02:00
Holger Vogt d9bc4a5b41 add src/spicelib/devices/vdmos to ngspice 2018-05-04 20:33:53 +02:00
rlar f3fd53769c configure.ac, search for BLT library
search for three variants
  -lBLT       (for debian and gentoo)
  -lBLT24     (for redhat and centos)
  -lBLT25     (might be usefull for someone else)

The advertised configure incantation is now:
  configure --enable-shared=yes --with-tcl=/usr/lib/tcl8.6
In case you need a special "BLT" you can still use
  LIBS=-lBLTfoobar configure --enable-shared=yes --with-tcl=/usr/lib/tcl8.6
to override the automatic search
2017-10-19 17:55:43 +02:00
h_vogt 5df712cd24 prepare ngspice-27 2017-08-23 23:48:28 +02:00
h_vogt 07ea6466ad configure option --enable-relpath
add relative path ../lib to spinit for codemodels
and search path in ivars.c, independently from
install path which has to be an absolute path
2017-08-12 17:37:19 +02:00
rlar 1e6b809af8 introduce command "check_ifparm" to check consistency of the device IFparm sets
For developing purpose only, and bound to HAVE_TSEARCH, HAVE_TDESTROY

IFparm descriptors must obey certain contracts,
  1) aliases must be grouped together with their associated main descriptor,
       and all must have flag IF_REDUNDANT set
  2) there shall be no duplicated .id fields except for aliases.
  3) aliased entries shall have consistent .dataType fields

check_ifparm will traverse all IFparm sets and report violations
2017-04-09 14:40:51 +02:00
rlar 8c09761e6b adms, polish autogen.sh and configure.ac
Allow to override the admsXml executable when invoking
  autogen.sh and configure.ac

ADMSXML=/foo/bar/baz/admsXml ./autogen.sh --adms
ADMSXML=/foo/bar/baz/admsXml ./configure --enable-adms
alternatively (and more advertised)
./configure ADMSXML=/foo/bar/baz/admsXml --enable-adms

The generated Makefiles remember the given path.
A relative path doesn't make sense of course.
2017-03-12 19:34:37 +01:00
rlar d298d5cc2f use memset() instead of deprecated bzero() 2016-07-30 20:58:33 +02:00
rlar 141ed61ec8 use memcpy() instead of deprecated bcopy() 2016-07-30 20:58:19 +02:00
rlar 5522bfd814 tests/regression/sens, add some tests for "sensitivity" analysis 2016-07-17 18:18:35 +02:00
Francesco Lannutti ef0dcfe5f2 avoid bison dependency `version >= 2.7' 2016-07-09 20:58:17 +02:00
h_vogt 33c0dde68f configure.ac, extend `case $host_os' to support msys2 2015-12-16 20:01:57 +01:00
rlar 0f577ed371 visualc, remove unused defines GLOBAL_NODE and HAS_SHWIN 2015-11-15 15:09:27 +01:00
rlar 8a65e97c2f tests/regression/temper, several issues with `temper' in model parameters 2015-08-10 17:33:17 +02:00
rlar 0f07546db9 configure.ac, automake compatibility, we still use `serial test harness'
newer automake do have a different default setting,
  we need to be specific.
2015-08-10 17:26:51 +02:00
rlar 0c0bc4079f configure.ac, allow cross-compilation, especially for MinGW-w64
notably on debian gnu/linux with package `mingw-w64'
cross-compile a mingw 32bit windows executable with this incantation:

(compile "
  ./autogen.sh
  rm -rf tmp-build tmp-output
  mkdir -p tmp-build tmp-output
  ( cd tmp-build && ../configure \
      --build=$(../config.guess) \
      --host=i686-w64-mingw32 \
      --prefix='c:/spice' \
      --exec-prefix='c:/spice'\
      --with-windows --enable-xspice --enable-cider --disable-debug )
  LC_ALL=C make -C tmp-build -k -j6
  LC_ALL=C make -C tmp-build -k -j6 DESTDIR=$(pwd)/tmp-output/ install
  (cd 'tmp-output/c:/' && zip -r - .) > tmp-output.zip
")

compilation to Win64 works the same way, with
      --host=x86_64-w64-mingw32

The tmp-output.zip directory structure resembles the
  structure of our original sourceforge ngspice-26_140112.zip windows package
ready to be unzip'ed in c:/

Though the testfiles, examples and documentation is missing.
2015-07-06 21:08:05 +02:00
rlar 9ee4db0b5b configure.ac, AC_PROG_YACC, AC_PROG_LEX, enable maintainer-mode by default
explicitly use
  configure --disable-maintainer-mode
only if you don't have bison and flex.

we still have the bison/flex generated output files in the repository,
  causing quite complex make dependencies.
2015-07-05 19:32:27 +02:00
rlar b9abea4f88 tests/regression/pz/ac-resistance.cir, check ac resistance (op, ac and pz) 2015-05-10 21:47:18 +02:00
dwarning 886bc336bf extend qa test to hisimhv version 2 2015-03-30 12:48:44 +02:00
dwarning 9ed2da9ad9 new hisimhv model version 2.2.0 in a separate directory 2015-03-25 15:17:16 +01:00
rlar 8dc0d0ce5c configure.ac, add -Wno-unused-but-set-variable to our default gcc CFLAGS 2015-01-04 20:53:35 +01:00
rlar ba85aaf88f tests/regression/misc/bugs-1.cir, regression test for bug #294 2014-11-06 18:29:51 +01:00
rlar f1e67cccae tests/regression/model/binning-1.cir, check model binning 2014-08-09 18:17:57 +02:00
rlar 7f7453a227 inp_do_macro_param_replace(), fix several bugs concerning .func processing 2014-07-08 18:19:26 +02:00
dwarning 010174ec2a devices/bsim4v7, add to build infrastructure 2014-06-26 19:48:15 +02:00
dwarning cba69c4850 devices/bsim4v4, remove ancient bsim4 model version 4.4 2014-06-26 19:43:54 +02:00
Francesco Lannutti 3b953e50c3 configure.ac, improve help string for --disable-debug 2014-05-11 21:23:06 +02:00
rlar 9a827a68b9 configure.ac, support external CFLAGS specification
allow to overide CFLAGS like this:
  CFLAGS=something ./configure
  ./configure CFLAGS=something

empty CFLAGS are allowed too, like this
  CFLAGS="" ./configure
  ./configure CFLAGS=""

otherwise use our longish builtin default CFLAGS
  ./configure
2014-05-08 22:19:24 +02:00
dwarning f7770e985e introduce the more reliable cmc quality check for bsim3 model 2014-05-04 11:49:23 +02:00
rlar cc56c90b9d drop asprintf() 2014-04-12 21:02:31 +02:00
h_vogt 411418e1ca ngspice-26: substitute 25 --> 26 2014-01-11 16:24:42 +01:00
dwarning 51c7f17186 cmath4.c, use FFTW3 for cx_fft() and cx_ifft() 2014-01-02 09:53:47 +01:00
rlar a088a6e0e6 subckt.c, fix .model processing (scope) 2014-01-02 09:33:18 +01:00
rlar cccc02e844 tests/regression/parser
check xpressn.c parser capability to parse {2--3}
check .control parser capability to parse 2--3
check B parser capability to parse 2--3

check echo commands capability to print "--"
check echo commands capability to print upper and lower case

check xpressn.c parser capabilities

check precision of some transcendental functions
2014-01-02 09:25:53 +01:00
Francesco Lannutti 799791dc5b configure.ac, cleanup `WARNING: PSS analysis enabled' 2013-12-31 16:09:01 +01:00
Francesco Lannutti 581e0a6d11 fix sense2, which is unsupported code 2013-12-31 16:07:12 +01:00
h_vogt 46aeb74ec9 configure.ac: shared module added 2013-12-31 16:06:51 +01:00
h_vogt 30a44d1be5 --with-windows --> --with-wingui 2013-12-31 12:56:59 +01:00
h_vogt d7e291c53a HAS_WINDOWS --> HAS_WINGUI
allow compilation on MS Windows without GUI
2013-12-31 12:56:57 +01:00
rlar cee318c68b check the .lib processing 2013-12-31 12:53:40 +01:00
Francesco Lannutti 2d1d0e71df Changed --enable-debug to --disable-debug in configure.ac to have it correctly displayed in the automatic completion 2013-01-11 18:48:32 +01:00
Stefano Perticaroli 79bffc78a1 next version of PSS2
which was reviewed and rewritten on branch `PSS-2-try-to-rebase+4'
by Stefano Perticaroli and Francesco Lannutti
2012-12-28 18:15:37 +01:00
rlar 0be61b3e5a remove PSS2 2012-12-28 18:10:05 +01:00
h_vogt fa2ea96eb8 configure.ac: prepare ngspice-25 2012-12-23 12:11:39 +01:00
rlar 2d7d77e9a6 configure.ac, defensive use of `AC_OPENMP' 2012-12-22 22:36:21 +01:00
dwarning c1705e32ae change model name from hisimhv to hisimhv1 2012-11-25 17:59:50 +01:00
Francesco Lannutti b6c6a35161 configure.ac, defensive use of `AM_SILENT_RULES' 2012-11-05 21:22:51 +01:00
Francesco Lannutti d8b2ac56a3 rename "bsim3soi" device to "bsimsoi" 2012-10-26 17:56:59 +02:00
rlar ba131a5077 remove adms3 #1/2, code
due to license issues, and with the aim to approach the next
  ngspice release 25
we have to move this over to a development branch
2012-10-25 18:54:09 +02:00
rlar 8dec768c7f automake 1.12 might need AM_PROG_AR, which is not available in 1.11 2012-09-22 21:09:02 +02:00
Francesco Lannutti b74cf44e4f configure.ac, silent compilation (enabled by default) using AM_SILENT_RULES([yes]) 2012-09-14 21:41:25 -07:00
rlar 84b58ebd3b don't mess with libtools --enable-static / --enable-shared
tie libspice to -shared
    ngspice et al to -static

and use $(STATIC) elsewhere
  which is governed by configure.ac
2012-07-07 14:51:43 +02:00
rlar 25efde6d8a configure.ac, unify `x' escape of `test' expressions 2012-06-22 21:46:45 +02:00
rlar 0b35770b0c configure.ac, robustness
unify and honor some hints from
  (info "(autoconf) Limitations of Builtins")

use shell || and && instead of test -o and test -a

! test a = b    -->   test a != b

dont use ()

drop eval

missing quotes
2012-06-22 21:33:08 +02:00
rlar aea1dbb09c configure.ac, use AS_HELP_STRING 2012-06-21 21:55:03 +02:00
rlar cc1a011c98 configure.ac, cleanup 2012-06-21 21:32:40 +02:00
rlar e01db38416 configure.ac, comment style, (dnl -> #) 2012-06-21 21:17:52 +02:00
rlar 714b9d064f configure.ac, whitespace cleanup 2012-06-21 20:59:27 +02:00
dwarning 72afda41ad mv ext_CFLAGS on the end for overwriting existing CFLAGS 2012-06-15 19:57:08 +02:00
rlar 5b616b93f4 configure.ac, rewrite M4 Quotation (non zero diff)
small differences in the autogen.sh generated files
2012-06-13 19:15:18 +02:00
rlar f571932438 configure.ac, rewrite M4 Quotation
verified for zero diff of the autogen.sh generated files
2012-06-13 19:15:17 +02:00
rlar 1a9e658f91 configure.ac, use AC_OPENMP 2012-06-13 19:15:16 +02:00
rlar e889c821d1 configure.ac, fix `NO_X' and `has_no_help'
drop configure options `--enable-x' and `--disable-x'
use `--with-x' and `--without-x' provided by AC_PATH_X

bug tracker item:
  [ngspice-Bugs-3515015] Startup error message without x11
  https://sourceforge.net/tracker/index.php?func=detail&aid=3515015&group_id=38962&atid=423915
2012-04-06 16:19:49 +02:00
h_vogt df97e2b44a prepare for release 24 2012-01-28 09:15:13 +00:00
rlar 598238f46a conditionally compile PSS analysis 2012-01-02 12:31:22 +00:00
rlar 1fdee871b1 remove @libname@ 2011-12-29 14:32:47 +00:00
rlar 69031273fb generate spinit and tclspinit at `make' time 2011-12-29 14:29:44 +00:00