Allow --with-dist

Support for AIX
This commit is contained in:
Mark Hessling
2001-03-02 13:27:04 +00:00
parent be034fb1bc
commit eeb794cba2

View File

@@ -1,6 +1,20 @@
dnl Process this file with autoconf to produce a configure script.
AC_INIT(curspriv.h)
dnl allow --with-dist to build a distribution only
AC_ARG_WITH(dist,
[ --with-dist specify this just to build a distribution],
[with_dist=$withval],
[with_dist=no],
)
if test "$with_dist" != no; then
SET_MAKE=""
AC_SUBST(SET_MAKE)
AC_OUTPUT(Makefile)
exit
fi
dnl ---------------------- check for C compiler -----------------
dnl Checks for one of the C compilers below - change if yours not there.
CC_LIST="gcc acc cc c89"
@@ -11,6 +25,7 @@ AC_CONFIG_HEADER(config.h)
dnl Checks for system first
AC_CANONICAL_SYSTEM
mymakefile="Makefile"
on_qnx=no
case "$target" in
*hp-hpux*)
@@ -18,6 +33,7 @@ case "$target" in
;;
*ibm-aix*)
SYS_DEFS="-D_ALL_SOURCE"
mymakefile="Makefile.aix"
;;
*dec-osf*)
SYS_DEFS="-D_XOPEN_SOURCE_EXTENDED"
@@ -194,4 +210,13 @@ fi
dnl --------------- Check how to make shared libraries -------------------
MH_SHARED_LIBRARY(XCurses)
AC_OUTPUT(Makefile pdcurses/Makefile demos/Makefile panel/Makefile tools/Makefile saa/Makefile)
AC_OUTPUT(Makefile pdcurses/$mymakefile demos/Makefile panel/Makefile tools/Makefile saa/Makefile)
case "$target" in
*ibm-aix*)
mv pdcurses/Makefile.aix pdcurses/Makefile
AC_MSG_RESULT(renaming pdcurses/Makefile.aix to pdcurses/Makefile)
;;
*)
;;
esac