Add preprocessor macro OS_COMPILED
This commit is contained in:
parent
74b95a3069
commit
f07d5ef5dc
26
configure.ac
26
configure.ac
|
|
@ -296,6 +296,32 @@ else
|
||||||
dprefix=$prefix
|
dprefix=$prefix
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
####
|
||||||
|
### check for operating system at compile time
|
||||||
|
case $host_os in
|
||||||
|
*mingw* | *msys* )
|
||||||
|
AC_DEFINE([OS_COMPILED], [1], [MINGW for MS Windows])
|
||||||
|
;;
|
||||||
|
*cygwin* )
|
||||||
|
AC_DEFINE([OS_COMPILED], [2], [Cygwin for MS Windows])
|
||||||
|
;;
|
||||||
|
*freebsd* )
|
||||||
|
AC_DEFINE([OS_COMPILED], [3], [FreeBSD])
|
||||||
|
;;
|
||||||
|
*openbsd* )
|
||||||
|
AC_DEFINE([OS_COMPILED], [4], [OpenBSD])
|
||||||
|
;;
|
||||||
|
*solaris* )
|
||||||
|
AC_DEFINE([OS_COMPILED], [5], [Solaris])
|
||||||
|
;;
|
||||||
|
*linux* )
|
||||||
|
AC_DEFINE([OS_COMPILED], [6], [Linux])
|
||||||
|
;;
|
||||||
|
* )
|
||||||
|
AC_DEFINE([OS_COMPILED], [7], [Other Operating System])
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
##########################################################################
|
##########################################################################
|
||||||
#
|
#
|
||||||
# ngspice as shared library (ngspice.so or ngspice.dll)
|
# ngspice as shared library (ngspice.so or ngspice.dll)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue