Rename templates to match names in makefiles/Makefile.* and include/port.

Read templates after compiler is detected. Convert all templates to real
shell scripts. Rename bsd->openbsd, alpha->osf.
This commit is contained in:
Peter Eisentraut 2000-07-15 15:54:52 +00:00
parent 739a0566a6
commit 3eec6ee145
55 changed files with 1063 additions and 1247 deletions

1318
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -27,208 +27,136 @@ AC_DEFINE_UNQUOTED(PG_VERSION, "$VERSION")
AC_CANONICAL_HOST
tas_file=dummy.s
case "$host_os" in
template=
AC_MSG_CHECKING([which template to use])
# check if --with-template was given
if test x"${with_template+set}" = xset ; then
case $with_template in
yes|no) AC_MSG_ERROR([You must supply an argument to the --with-template option.]);;
list) echo; ls "$srcdir/src/template"; exit;;
*) if test -f "$srcdir/src/template/$with_template" ; then
template=$with_template
else
AC_MSG_ERROR([\`$with_template' is not a valid template name. Use \`list' for a list.])
fi;;
esac
else # --with-template not given
case $host_os in
aix*) template=aix ;;
bsdi*) template=bsdi ;;
cygwin*) template=win ;;
dgux*) template=dgux ;;
freebsd*) template=freebsd ;;
hpux*) template=hpux ;;
irix*) template=irix5 ;;
linux*) template=linux ;;
netbsd*) template=netbsd ;;
nextstep*) template=nextstep ;;
openbsd*) template=openbsd ;;
osf*) template=osf ;;
qnx*) template=qnx4 ;;
sco*) template=sco ;;
solaris*)
case "$host_cpu" in
sparc) os=solaris_sparc need_tas=yes tas_file=solaris_sparc.s ;;
i386) os=solaris_i386 need_tas=yes tas_file=solaris_i386.s ;;
case $host_cpu in
sparc) template=solaris_sparc ;;
i?86) template=solaris_i386 ;;
esac ;;
sunos*) os=sunos4 need_tas=no ;;
beos) os=beos need_tas=no ;;
aux*) os=aux need_tas=no ;;
linux*) os=linux need_tas=no ;;
bsdi*) os=bsdi need_tas=no ;;
freebsd1*|freebsd2*) os=freebsd need_tas=no ;;
freebsd*) os=freebsd need_tas=no elf=yes ;;
netbsd*) os=netbsd need_tas=no ;;
openbsd*) os=bsd need_tas=no ;;
dgux*) os=dgux need_tas=no ;;
aix*) os=aix need_tas=no ;;
nextstep*) os=nextstep need_tas=no ;;
ultrix*) os=ultrix4 need_tas=no ;;
irix*) os=irix5 need_tas=no ;;
hpux*) os=hpux need_tas=yes tas_file=hpux.s ;;
osf*) os=alpha need_tas=no ;;
sco*) os=sco need_tas=no ;;
machten*) os=machten need_tas=no ;;
cygwin*) os=win need_tas=no ;;
sunos*) template=sunos4 ;;
sysv4.2*)
case "$host_vendor" in
univel) os=univel need_tas=no ;;
*) os=unknown need_tas=no ;;
esac ;;
sysv4*) os=svr4 need_tas=no ;;
sysv5uw*) os=unixware need_tas=no ;;
unixware*) os=unixware need_tas=no ;;
qnx*) os=qnx4 need_tas=no ;;
*) echo ""
echo "*************************************************************"
echo "configure does not currently recognize your operating system,"
echo "therefore you must do a manual configuration of:"
echo "$host_os"
echo "Please contact scrappy@hub.org to see about rectifying this, "
echo "including the above 'checking host system type...' line "
echo "*************************************************************"
echo ""
exit;;
case $host_vendor in
univel) template=univel ;;
esac ;;
sysv4*) template=svr4 ;;
sysv5uw*) template=unixware ;;
ultrix*) template=ultrix4 ;;
esac
PORTNAME=${os}
CPU=${host_cpu}
AC_LINK_FILES(src/backend/port/dynloader/${os}.c, src/backend/port/dynloader.c)
AC_LINK_FILES(src/backend/port/dynloader/${os}.h, src/include/dynloader.h)
AC_LINK_FILES(src/include/port/${os}.h, src/include/os.h)
AC_LINK_FILES(src/makefiles/Makefile.${os}, src/Makefile.port)
if test x"$template" = x"" ; then
AC_MSG_ERROR([
*******************************************************************
PostgreSQL has apparently not been ported to your platform yet.
To try a manual configuration, look info the src/template directory
for a similar platform and use the \`--with-template=' option.
if test "X$need_tas" = "Xyes"
then
AC_LINK_FILES(src/backend/port/tas/${tas_file}, src/backend/port/tas.s)
TAS=tas.o
AC_SUBST(TAS)
fi
dnl this part selects the template from the ones in the template directory.
AC_MSG_CHECKING(setting template to)
AC_ARG_WITH(template,
[ --with-template=TEMPLATE
use operating system template file
see template directory],
[ TEMPLATE=$withval ],
[
# lowercase $host
host="`echo $host | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`"
# First, try for a template exactly matching $host
if test -f "src/template/$host"
then TEMPLATE="$host"
else
# Scan template/.similar for a rule that tells us which template to use.
# The format of each line of the file is
# hostnamepattern=templatefilename
# where the hostnamepattern is evaluated per the rules of expr(1) ---
# namely, it is a standard regular expression with an implicit ^ at the
# start. If multiple lines match, we will end up using the last match.
#
# The tempfile hackery is needed because some shells will run the loop
# inside a subshell, whereupon shell variables set therein aren't seen
# outside the loop :-(
TMPFILE="guesses.$$"
cat /dev/null > $TMPFILE
while read LINE
do
SIMHOST=`expr "$LINE" : '\(.*\)='`
MATCH=`expr "$host" : "$SIMHOST"`
if test "$MATCH" != 0
then
echo "$LINE" | sed 's/^.*=//' > $TMPFILE
fi
done <src/template/.similar
GUESS=`cat $TMPFILE`
rm -f $TMPFILE
if test "$GUESS"
then TEMPLATE="$GUESS"
else
# Last chance ... maybe uname -s will match an entry.
TEMPLATE=`uname -s | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
fi
fi
])
AC_MSG_RESULT($TEMPLATE)
export TEMPLATE
if test ! -f "src/template/$TEMPLATE"; then
echo ""
echo "$TEMPLATE does not exist"
echo ""
echo "Available Templates (select one using --with-template):"
echo ""
ls src/template
echo ""
exit
fi
dnl Read the selected template file.
dnl For reasons of backwards compatibility, lines of the form
dnl IDENTIFIER: something
dnl should be treated as variable assignments. However, we also want to
dnl allow other shell commands in the template file (in case the file
dnl needs to make conditional tests, etc). So, generate a temp file with
dnl the IDENTIFIER: lines translated, then source it.
[
rm -f conftest.sh
sed 's/^\([A-Za-z_]*\):\(.*\)$/\1="\2"/' "src/template/$TEMPLATE" >conftest.sh
. ./conftest.sh
rm -f conftest.sh
]
dnl
dnl Add non-standard directories to the include path
dnl
AC_ARG_WITH(includes, [ --with-includes=DIRS add non-standard include paths],
[if test x"$withval" = x"yes" || test x"$withval" = x"no" ; then
AC_MSG_ERROR([You must supply an argument to the --with-includes option.])
fi])
# SRCH_INC comes from the template file
ac_save_IFS=$IFS
IFS=':'
for dir in $with_includes $SRCH_INC; do
if test -d "$dir"; then
INCLUDES="$INCLUDES -I$dir"
else
AC_MSG_WARN([*** Include directory $dir does not exist.])
Please also contact <pgsql-ports@postgresql.org> to see about
rectifying this. Include the above \`checking host system type...'
line.
*******************************************************************
])
fi
done
IFS=$ac_save_IFS
AC_SUBST(INCLUDES)
fi # --with-template not given
dnl
dnl Add non-standard directories to the library search path
dnl
AC_ARG_WITH(libraries,
[ --with-libraries=DIRS look for additional libraries in DIRS],
[
case "$withval" in
"" | y | ye | yes | n | no)
AC_MSG_ERROR([*** You must supply an argument to the --with-libraries option.])
;;
esac
LIBRARY_DIRS="$withval"
])
AC_MSG_RESULT([$template])
AC_ARG_WITH(libs,
[ --with-libs=DIRS alternate spelling of --with-libraries],
[
case "$withval" in
"" | y | ye | yes | n | no)
AC_MSG_ERROR([*** You must supply an argument to the --with-libs option.])
;;
esac
LIBRARY_DIRS="$withval"
])
PORTNAME=$template
CPU=$host_cpu
AC_SUBST(PORTNAME)
AC_SUBST(CPU)
dnl LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
dnl Each can name one or more directories.
if test "$LIBRARY_DIRS" -o "$SRCH_LIB"; then
for dir in $LIBRARY_DIRS $SRCH_LIB; do
if test -d "$dir"; then
PGSQL_LDFLAGS="$PGSQL_LDFLAGS -L$dir"
else
AC_MSG_WARN([*** Library directory $dir does not exist.])
fi
done
AC_LINK_FILES([src/backend/port/dynloader/${template}.c], [src/backend/port/dynloader.c])
AC_LINK_FILES([src/backend/port/dynloader/${template}.h], [src/include/dynloader.h])
AC_LINK_FILES([src/include/port/${template}.h], [src/include/os.h])
AC_LINK_FILES([src/makefiles/Makefile.${template}], [src/Makefile.port])
# Pick right test-and-set (TAS) code. Most platforms have inline
# assembler code in their port include file, so we just use a dummy
# file here.
tas_file=dummy.s
need_tas=no
case $template in
hpux) need_tas=yes; tas_file=hpux.s ;;
solaris_sparc) need_tas=yes; tas_file=solaris_sparc.s ;;
solaris_i386) need_tas=yes; tas_file=solaris_i386.s ;;
esac
if test "$need_tas" = yes ; then
AC_LINK_FILES([src/backend/port/tas/${tas_file}], [src/backend/port/tas.s])
TAS=tas.o
fi
AC_SUBST(TAS)
##
## Command line options
##
#
# Add non-standard directories to the include path
#
AC_ARG_WITH(includes, [ --with-includes=DIRS look for additional header files in DIRS],
[
case $withval in
yes | no) AC_MSG_ERROR([You must supply an argument to the --with-includes option.]);;
esac
])
#
# Add non-standard directories to the library search path
#
AC_ARG_WITH(libraries, [ --with-libraries=DIRS look for additional libraries in DIRS],
[
case $withval in
yes | no) AC_MSG_ERROR([You must supply an argument to the --with-libraries option.]);;
esac
LIBRARY_DIRS=$withval
])
AC_ARG_WITH(libs, [ --with-libs=DIRS alternative spelling of --with-libraries],
[
case $withval in
yes | no) AC_MSG_ERROR([You must supply an argument to the --with-libs option.]);;
esac
LIBRARY_DIRS=$withval
])
#
# Locale (--enable-locale)
#
@ -236,7 +164,7 @@ AC_MSG_CHECKING([whether to build with locale support])
AC_ARG_ENABLE(locale, [ --enable-locale enable locale support],
[if test x"$enable_locale" != x"no" ; then
enable_locale=yes
AC_DEFINE(USE_LOCALE, [], [Set to 1 if you want LOCALE support (--enable-locale)])
AC_DEFINE(USE_LOCALE, 1, [Set to 1 if you want LOCALE support (--enable-locale)])
fi],
[enable_locale=no])
AC_MSG_RESULT([$enable_locale])
@ -249,7 +177,7 @@ AC_MSG_CHECKING([whether to build with Cyrillic recode support])
AC_ARG_ENABLE(recode, [ --enable-recode enable cyrillic recode support],
[if test x"$enable_recode" != x"no" ; then
enable_recode=yes
AC_DEFINE(CYR_RECODE, [], [Set to 1 if you want cyrillic recode support (--enable-recode)])
AC_DEFINE(CYR_RECODE, 1, [Set to 1 if you want cyrillic recode support (--enable-recode)])
fi],
[enable_recode=no])
AC_MSG_RESULT([$enable_recode])
@ -281,7 +209,7 @@ Or do not specify an argument to the option to use the default.]) ;;
AC_SUBST(MULTIBYTE)
if test "$enable_multibyte" = yes ; then
AC_DEFINE(MULTIBYTE, [], [Set to 1 if you want to use multibyte characters (--enable-multibyte)])
AC_DEFINE(MULTIBYTE, 1, [Set to 1 if you want to use multibyte characters (--enable-multibyte)])
AC_MSG_RESULT([yes, default $MULTIBYTE])
else
AC_MSG_RESULT(no)
@ -319,10 +247,12 @@ AC_DEFINE_UNQUOTED(DEF_MAXBACKENDS, [$with_maxbackends], [The default soft limit
#
# C compiler
#
# For historical reasons you can also use --with-CC to specify the C compiler
# to use, although the standard way to do this is to set the CC environment
# variable.
#
if test "${with_CC+set}" = set; then
case $with_CC in
yes | no) AC_MSG_ERROR([You must supply an argument to the --with-CC option.]);;
@ -330,18 +260,25 @@ if test "${with_CC+set}" = set; then
esac
fi
# On AIX, default compiler to xlc.
if test "$template" = aix && test -z "$CC" ; then CC=xlc; fi
#
# C compiler
#
AC_PROG_CC
# Read the template
. "$srcdir/src/template/$template" || exit
echo "using CFLAGS=$CFLAGS"
# Check if the compiler still works with the template settings
AC_PROG_CC_WORKS
AC_PROG_CPP
AC_PROG_GCC_TRADITIONAL
AC_SUBST(GCC)
#
AC_SUBST(GCC)
AC_SUBST(AROPT)
AC_SUBST(SHARED_LIB)
AC_SUBST(DLSUFFIX)
AC_SUBST(DL_LIB)
# Create compiler version string
#
if test x"$GCC" = x"yes" ; then
cc_string="GCC `${CC} --version`"
else
@ -350,6 +287,56 @@ fi
AC_DEFINE_UNQUOTED(PG_VERSION_STR, ["PostgreSQL $VERSION on $host, compiled by $cc_string"], [A canonical string containing the version number, platform, and C compiler])
# --enable-debug adds -g to compiler flags
# --disable-debug will forcefully remove it
AC_MSG_CHECKING(setting debug compiler flag)
AC_ARG_ENABLE(debug, [ --enable-debug build with debugging symbols (-g)],
[
case $enableval in
yes) CFLAGS="$CFLAGS -g"
AC_MSG_RESULT(yes)
;;
*) CFLAGS=`echo "$CFLAGS" | sed -e 's/ -g/ /g' -e 's/^-g//'`
AC_MSG_RESULT(no)
;;
esac
],
[AC_MSG_RESULT(using default)])
#
# Include directories
#
ac_save_IFS=$IFS
IFS=':'
# SRCH_INC comes from the template file
for dir in $with_includes $SRCH_INC; do
if test -d "$dir"; then
INCLUDES="$INCLUDES -I$dir"
else
AC_MSG_WARN([*** Include directory $dir does not exist.])
fi
done
IFS=$ac_save_IFS
AC_SUBST(INCLUDES)
#
# Library directories
#
ac_save_IFS=$IFS
IFS=':'
# LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
for dir in $LIBRARY_DIRS $SRCH_LIB; do
if test -d "$dir"; then
PGSQL_LDFLAGS="$PGSQL_LDFLAGS -L$dir"
else
AC_MSG_WARN([*** Library directory $dir does not exist.])
fi
done
IFS=$ac_save_IFS
dnl We exclude tcl support unless user says --with-tcl
AC_MSG_CHECKING(setting USE_TCL)
@ -364,9 +351,9 @@ AC_ARG_WITH(
],
[ USE_TCL=; USE_TK=; AC_MSG_RESULT(disabled) ]
)
AC_SUBST(USE_TCL)
AC_SUBST(USE_TK)
export USE_TCL
export USE_TK
dnl We see if the path to the TCL/TK configuration scripts is specified.
dnl This will override the use of tclsh to find the paths to search.
@ -632,62 +619,26 @@ AC_ARG_ENABLE(
AC_MSG_RESULT(disabled)
)
CPPFLAGS="$CPPFLAGS $INCLUDES"
echo "- setting CPPFLAGS=$CPPFLAGS"
LDFLAGS="$LDFLAGS $PGSQL_LDFLAGS"
echo "- setting LDFLAGS=$LDFLAGS"
dnl --enable-debug adds -g to compiler flags
dnl --disable-debug will forcefully remove it
AC_MSG_CHECKING(setting debug compiler flag)
AC_ARG_ENABLE(
debug,
[ --enable-debug build with debugging symbols (-g) ],
[
case "$enableval" in
y | ye | yes)
CFLAGS="$CFLAGS -g"
AC_MSG_RESULT(enabled)
;;
*)
CFLAGS=`echo "$CFLAGS" | sed -e 's/ -g/ /g' | sed -e 's/^-g//'`
AC_MSG_RESULT(disabled)
;;
esac
],
AC_MSG_RESULT(using default)
)
# Assume system is ELF if it predefines __ELF__ as 1,
# otherwise believe "elf" setting from check of host_os above.
# otherwise believe host_os based default.
case $host_os in
freebsd1*|freebsd2*) elf=yes;;
esac
AC_EGREP_CPP(yes,
[#if __ELF__
yes
#endif
],
ELF_SYS=true,
[if test "X$elf" = "Xyes"
then
ELF_SYS=true
[ELF_SYS=true],
[if test "X$elf" = "Xyes" ; then
ELF_SYS=true
else
ELF_SYS=
fi
])
ELF_SYS=
fi])
AC_SUBST(ELF_SYS)
AC_SUBST(PORTNAME)
AC_SUBST(CPU)
AC_SUBST(SRCDIR)
AC_SUBST(LDFLAGS)
AC_SUBST(AROPT)
AC_SUBST(SHARED_LIB)
AC_SUBST(CFLAGS)
AC_SUBST(DLSUFFIX)
AC_SUBST(DL_LIB)
AC_SUBST(USE_TCL)
AC_SUBST(USE_TK)
AC_SUBST(WISH)
dnl
@ -711,6 +662,13 @@ fi],
AC_SUBST(with_CXX)
CPPFLAGS="$CPPFLAGS $INCLUDES"
LDFLAGS="$LDFLAGS $PGSQL_LDFLAGS"
echo "using CPPFLAGS=$CPPFLAGS"
echo "using LDFLAGS=$LDFLAGS"
# Figure out how to invoke "install" and what install options to use.
AC_PROG_INSTALL
@ -858,19 +816,22 @@ PGAC_VAR_INT_TIMEZONE
AC_FUNC_ACCEPT_ARGTYPES
PGAC_FUNC_GETTIMEOFDAY_1ARG
AC_MSG_CHECKING(for fcntl(F_SETLK))
if test "$os" != linux ; then
AC_TRY_LINK([#include <stdio.h>
#include <fcntl.h>],
[struct flock lck;
lck.l_whence = SEEK_SET; lck.l_start = lck.l_len = 0;
lck.l_type = F_WRLCK;
fcntl(0, F_SETLK, &lck);],
[AC_DEFINE(HAVE_FCNTL_SETLK) AC_MSG_RESULT(yes)],
AC_MSG_RESULT(no))
else
AC_MSG_RESULT([broken on Linux])
fi
AC_MSG_CHECKING([for fcntl(F_SETLK)])
case $host_os in
linux*) AC_MSG_RESULT([broken on Linux]) ;;
*)
AC_TRY_LINK(
[#include <stdio.h>
#include <fcntl.h>
],
[struct flock lck;
lck.l_whence = SEEK_SET; lck.l_start = lck.l_len = 0;
lck.l_type = F_WRLCK;
fcntl(0, F_SETLK, &lck);],
[AC_DEFINE(HAVE_FCNTL_SETLK) AC_MSG_RESULT(yes)],
[AC_MSG_RESULT(no)])
;;
esac
AC_CHECK_FUNCS([fcvt getopt_long memmove pstat setproctitle setsid sigprocmask sysconf waitpid])
@ -976,7 +937,7 @@ AC_CHECK_FUNC(cbrt,
# On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
# this hackery with HPUXMATHLIB allows us to cope.
HPUXMATHLIB=""
case "$host_cpu" in
case $host_cpu in
hppa1.1)
if [[ -r /lib/pa1.1/libm.a ]] ; then
HPUXMATHLIB="-L /lib/pa1.1 -lm"
@ -1244,6 +1205,7 @@ then
AC_PATH_PROG(WISH, wish)
fi
fi
AC_SUBST(WISH)
USE_X=$USE_TK

View File

@ -1,34 +0,0 @@
# Format of this file is expr-style-regular-expression=templatefilename
alpha[a-z0-9]*-unknown-linux-gnu=linux_alpha
alpha[a-z0-9]*-dec-osf=alpha_cc
arm-unknown-linux-gnu=linux_arm
hppa[0-9.]*-hp-hpux=hpux_cc
hppa1.1-stratus-sysv4=svr4
i.86-next-nextstep3=nextstep
i.86-pc-bsdi2.0=bsdi_2.0
i.86-pc-bsdi2.1=bsdi_2.1
i.86-pc-bsdi3=bsdi_2.1
i.86-pc-bsdi4=bsdi_4.0
i.86-pc-cygwin=cygwin32
i.86-pc-linux-gnu=linux_i386
i.86-pc-sco3.2v=sco
i.86-pc-solaris=solaris_i386_gcc
i.86-pc-sunos5=solaris_i386_gcc
i.86-unknown-freebsd=freebsd
i.86-unknown-netbsd=netbsd
m68k-unknown-linux=linux_m68k
mips-pc-linux-gnu=linux_mips
mips-sgi-irix=irix5
mipsel-unknown-linux-gnu=linux_mips
powerpc-ibm-aix3.2.5=aix_325
powerpc-ibm-aix4.1=aix_41
powerpc-ibm-aix4.2=aix_42
powerpc-ibm-aix4.3=aix_42
powerpc-unknown-linux-gnu=linux_ppc
rs6000-ibm-aix4.2=aix_42
rs6000-ibm-aix4.3=aix_42
sparc-sun-solaris=solaris_sparc_gcc
sparc-sun-sunos4=sunos4_gcc
sparc-sun-sunos5=solaris_sparc_gcc
sparc-unknown-bsdi4=bsdi_4.0_sparc
sparc-unknown-linux-gnu=linux_sparc

23
src/template/aix Normal file
View File

@ -0,0 +1,23 @@
AROPT=crs
DLSUFFIX=.so
if test "$GCC" = yes ; then
CFLAGS=-pipe
CXXFLAGS=-pipe
SHARED_LIB=-lc
else # not GCC
case $host_os in
aix3.2.5)
CFLAGS='-qchars=signed -qmaxmem=8192 -qhalt=w -qsrcmsg'
SHARED_LIB='-e _nostart -lc'
;;
aix4.1)
CFLAGS='-qchars=signed -qmaxmem=8192 -qhalt=w -qsrcmsg -qcheck=divzero'
SHARED_LIB='-bnoentry -lc'
;;
aix4.2 | aix4.3)
CFLAGS='-qmaxmem=16384 -qhalt=w -qsrcmsg -qlanglvl=extended -qlonglong'
SHARED_LIB='-lc'
;;
esac
fi # not GCC

View File

@ -1,8 +0,0 @@
AROPT:crs
CFLAGS:-qchars=signed -qmaxmem=8192 -qhalt=w -qsrcmsg
SHARED_LIB:-e _nostart -lc
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
CC:xlc

View File

@ -1,8 +0,0 @@
AROPT:crs
CFLAGS:-qchars=signed -qmaxmem=8192 -qhalt=w -qsrcmsg -qcheck=divzero
SHARED_LIB:-bnoentry -lc
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
CC:xlc

View File

@ -1,8 +0,0 @@
AROPT:crs
CFLAGS:-qmaxmem=16384 -qhalt=w -qsrcmsg -qlanglvl=extended -qlonglong
SHARED_LIB:-lc
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
CC:xlc

View File

@ -1,9 +0,0 @@
AROPT:crs
CFLAGS:-pipe
CXXFLAGS:-pipe
SHARED_LIB:-lc
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
CC:gcc

View File

@ -1,14 +0,0 @@
AROPT:crs
# NOFIXADE disallows unaligned access.
# on Ultrix and OSF/1 it invokes an explicit syscall.
# on HP-UX it turns off certain compiler options.
# This is defined here because a bunch of clients include tmp/c.h,
# which is where the work is done on HP-UX. It only affects the
# backend on Ultrix and OSF/1.
CC:gcc
CFLAGS:-D__alpha__ -DNOFIXADE
SHARED_LIB:
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so

22
src/template/bsdi Normal file
View File

@ -0,0 +1,22 @@
AROPT=cq
CFLAGS='-O2 -pipe'
case $host_cpu in
i?86) CFLAGS="$CFLAGS -m486";;
esac
case $host_os in
bsdi2.0) CFLAGS="$CFLAGS -DPRE_BSDI_2_1";;
esac
case $host_os in
bsdi2.0 | bsdi2.1 | bsdi3)
SHARED_LIB=
DLSUFFIX=.o
CC=gcc2
;;
bsdi4)
SHARED_LIB=-fpic
DLSUFFIX=.so
;;
esac

View File

@ -1,8 +0,0 @@
AROPT:cq
CFLAGS:-O2 -m486 -pipe -DPRE_BSDI_2_1
SHARED_LIB:
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.o
CC:gcc2

View File

@ -1,8 +0,0 @@
AROPT:cq
CFLAGS:-O2 -m486 -pipe
SHARED_LIB:
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.o
CC:gcc2

View File

@ -1,8 +0,0 @@
AROPT:cq
CFLAGS:-O2 -m486 -pipe
SHARED_LIB:-fpic
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
CC:gcc

View File

@ -1,8 +0,0 @@
AROPT:cq
CFLAGS:-O2 -pipe
SHARED_LIB:-fpic
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
CC:gcc

View File

@ -1,8 +0,0 @@
AROPT:crs
CFLAGS:-O2
SHARED_LIB:
ALL:
SRCH_INC:/usr/local/include
SRCH_LIB:/usr/local/lib
DLSUFFIX:.dll
LIBS:-lcygipc

View File

@ -1,8 +1,4 @@
AROPT:crs
CFLAGS:
LIBS:-lsocket -lnsl
SHARED_LIB:-fpic
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
AROPT=crs
CFLAGS=
SHARED_LIB=-fpic
DLSUFFIX=.so

View File

@ -1,6 +1,4 @@
AROPT:cq
SHARED_LIB:-fpic -DPIC
CFLAGS:-O2 -m486 -pipe
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
AROPT=cq
SHARED_LIB='-fpic -DPIC'
CFLAGS='-O2 -m486 -pipe'
DLSUFFIX=.so

View File

@ -1,7 +0,0 @@
AROPT:crs
CFLAGS:
SHARED_LIB:
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so

14
src/template/hpux Normal file
View File

@ -0,0 +1,14 @@
AROPT=crs
DLSUFFIX=.sl
if test "$GCC" = yes ; then
CFLAGS=-O2
SHARED_LIB=-fPIC
DL_LIB=/usr/lib/libdld.sl
CCC=g++
else
CFLAGS='-Wl,-E -Ae'
SHARED_LIB=+z
CPP='cc -E -Ae'
CCC=aCC
fi

View File

@ -1,11 +0,0 @@
AROPT:crs
CFLAGS:-Wl,-E -Ae
SHARED_LIB:+z
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.sl
CC:cc
CPP:cc -E -Ae
# Make aCC be first C++ compiler name tried...
CCC:aCC

View File

@ -1,10 +0,0 @@
AROPT:crs
CFLAGS:-O2
SHARED_LIB:-fPIC
ALL:
SRCH_INC:
SRCH_LIB:
DL_LIB:/usr/lib/libdld.sl
DLSUFFIX:.sl
CC:gcc
CCC:g++

View File

@ -1,7 +1,4 @@
AROPT:crs
CFLAGS:
SHARED_LIB:
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
AROPT=crs
CFLAGS=
SHARED_LIB=
DLSUFFIX=.so

9
src/template/linux Normal file
View File

@ -0,0 +1,9 @@
AROPT=crs
CFLAGS=-O2
SHARED_LIB=-fpic
DLSUFFIX=.so
case $host_cpu in
mips*) CFLAGS="$CFLAGS -mips2";;
alpha*) CPU=alpha;;
esac

View File

@ -1,9 +0,0 @@
AROPT:crs
CFLAGS:-O2
SHARED_LIB:-fpic
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
CPU:alpha

View File

@ -1,7 +0,0 @@
AROPT:crs
CFLAGS:-O2
SHARED_LIB:-fpic
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so

View File

@ -1,7 +0,0 @@
AROPT:crs
CFLAGS:-O2
SHARED_LIB:-fpic
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so

View File

@ -1,7 +0,0 @@
AROPT:crs
CFLAGS:-O2
SHARED_LIB:-fpic
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so

View File

@ -1,7 +0,0 @@
AROPT:crs
CFLAGS:-O2 -mips2
SHARED_LIB:-fpic
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so

View File

@ -1,7 +0,0 @@
AROPT:crs
CFLAGS:-O2
SHARED_LIB:-fpic
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so

View File

@ -1,7 +0,0 @@
AROPT:crs
CFLAGS:-O2
SHARED_LIB:-fpic
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so

View File

@ -1,6 +1,4 @@
AROPT:cq
SHARED_LIB:-fpic -DPIC
CFLAGS:-O2 -pipe
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
AROPT=cq
SHARED_LIB='-fpic -DPIC'
CFLAGS='-O2 -pipe'
DLSUFFIX=.so

View File

@ -1,7 +1,4 @@
AROPT:rc
CFLAGS:
SHARED_LIB:
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.o
AROPT=rc
CFLAGS=
SHARED_LIB=
DLSUFFIX=.o

View File

@ -1,6 +1,4 @@
AROPT:cq
SHARED_LIB:-fpic -DPIC
CFLAGS:-O2 -pipe
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
AROPT=cq
SHARED_LIB='-fpic -DPIC'
CFLAGS='-O2 -pipe'
DLSUFFIX=.so

View File

@ -1,17 +1,21 @@
AROPT:crs
AROPT=crs
# NOFIXADE disallows unaligned access.
# on Ultrix and OSF/1 it invokes an explicit syscall.
# on HP-UX it turns off certain compiler options.
# This is defined here because a bunch of clients include tmp/c.h,
# which is where the work is done on HP-UX. It only affects the
# backend on Ultrix and OSF/1.
CC:cc
CFLAGS:-D__alpha__ -DNOFIXADE -std -O4 -Olimit 2000
LDFLAGS='-rpath $(LIBDIR)'
SHARED_LIB:
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
CCC:cxx
CXXFLAGS:-D__alpha__ -DNOFIXADE -O4 -Olimit 2000
if test "$GCC" = yes ; then
CFLAGS='-D__alpha__ -DNOFIXADE'
CCC=g++
else
CFLAGS='-D__alpha__ -DNOFIXADE -std -O4 -Olimit 2000'
LDFLAGS='-rpath $(libdir)'
CCC=cxx
CXXFLAGS='-D__alpha__ -DNOFIXADE -O4 -Olimit 2000'
fi
DLSUFFIX=.so
SHARED_LIB=

View File

@ -1,9 +0,0 @@
AROPT:cr
CFLAGS:
LIBS:-lunix
SHARED_LIB:
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
CXXFLAGS:-I/usr/local/lib/gcc-lib/i386-pc-qnx4/egcs-2.91.60/include/g++

6
src/template/qnx4 Normal file
View File

@ -0,0 +1,6 @@
AROPT=cr
CFLAGS=
LIBS=-lunix
SHARED_LIB=
DLSUFFIX=.so
CXXFLAGS=-I/usr/local/lib/gcc-lib/i386-pc-qnx4/egcs-2.91.60/include/g++

View File

@ -1,8 +1,5 @@
AROPT:cq
CFLAGS:
SHARED_LIB:-K PIC
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
CC:cc -b elf
AROPT=cq
CFLAGS=
SHARED_LIB='-K PIC'
DLSUFFIX=.so
CC="$CC -b elf"

11
src/template/solaris_i386 Normal file
View File

@ -0,0 +1,11 @@
DLSUFFIX=.so
if test "$GCC" = yes ; then
AROPT=crs
CFLAGS=
SHARED_LIB=-fPIC
else
AROPT=cq
CFLAGS=
SHARED_LIB=-KPIC
fi

View File

@ -1,8 +0,0 @@
AROPT:cq
CFLAGS:
SHARED_LIB:-KPIC
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
CC:cc

View File

@ -1,7 +0,0 @@
AROPT:crs
CFLAGS:
SHARED_LIB:-fPIC
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so

View File

@ -0,0 +1,10 @@
AROPT=crs
DLSUFFIX=.so
if test "$GCC" = yes ; then
CFLAGS=
SHARED_LIB=-fPIC
else
CFLAGS='-Xa -v -D__sparc__ -D__sun__'
SHARED_LIB=-KPIC
fi

View File

@ -1,8 +0,0 @@
AROPT:crs
CFLAGS:-Xa -v -D__sparc__ -D__sun__
SHARED_LIB:-KPIC
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
CC:cc

View File

@ -1,7 +0,0 @@
AROPT:crs
CFLAGS:
SHARED_LIB:-fPIC
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so

10
src/template/sunos4 Normal file
View File

@ -0,0 +1,10 @@
AROPT=cr
DLSUFFIX=.so
if test "$GCC" = yes ; then
CFLAGS=
SHARED_LIB=-fPIC
else
CFLAGS=
SHARED_LIB=-PIC
fi

View File

@ -1,8 +0,0 @@
AROPT:cr
CFLAGS:
SHARED_LIB:-PIC
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
CC:cc

View File

@ -1,7 +0,0 @@
AROPT:cr
CFLAGS:
SHARED_LIB:-fPIC
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so

View File

@ -1,7 +1,4 @@
AROPT:crs
CFLAGS:
SHARED_LIB:
ALL:+W0
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
AROPT=crs
CFLAGS=
SHARED_LIB=
DLSUFFIX=.so

View File

@ -1,7 +1,4 @@
AROPT:crs
CFLAGS:-DNOFIXADE
SHARED_LIB:-G 0
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
AROPT=crs
CFLAGS=-DNOFIXADE
SHARED_LIB='-G 0'
DLSUFFIX=.so

View File

@ -1,8 +1,5 @@
AROPT:crs
CFLAGS:-v -O -K i486,host,inline,loop_unroll -Dsvr4
SHARED_LIB:-K PIC
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
CC:cc
LIBS:-lc89
AROPT=crs
CFLAGS='-v -O -K i486,host,inline,loop_unroll -Dsvr4'
SHARED_LIB='-K PIC'
DLSUFFIX=.so
LIBS=-lc89

View File

@ -1,7 +1,6 @@
AROPT:crs
CFLAGS:-O -K i486,host,inline,loop_unroll,alloca -Dsvr4
SHARED_LIB:-K PIC
SRCH_INC:/opt/include
SRCH_LIB:/opt/lib
DLSUFFIX:.so
CC:cc
AROPT=crs
CFLAGS='-O -K i486,host,inline,loop_unroll,alloca -Dsvr4'
SHARED_LIB='-K PIC'
SRCH_INC='/opt/include'
SRCH_LIB='/opt/lib'
DLSUFFIX=.so

6
src/template/win Normal file
View File

@ -0,0 +1,6 @@
AROPT=crs
CFLAGS=-O2
SRCH_INC=/usr/local/include
SRCH_LIB=/usr/local/lib
DLSUFFIX=.dll
LIBS=-lcygipc