From eeb794cba2bfcfcd7515aced372dd5f42b583506 Mon Sep 17 00:00:00 2001 From: Mark Hessling Date: Fri, 2 Mar 2001 13:27:04 +0000 Subject: [PATCH] Allow --with-dist Support for AIX --- configure.in | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 3586f8db..8a626225 100755 --- a/configure.in +++ b/configure.in @@ -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