Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
8b7a9f96
Commit
8b7a9f96
authored
Oct 14, 1993
by
Per Cederqvist
Browse files
Fixed HPUX check.
parent
493915fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
configure.in
View file @
8b7a9f96
dnl $Id: configure.in,v 1.
7
1993/10/1
3 19:28:49
ceder Exp $
dnl $Id: configure.in,v 1.
8
1993/10/1
4 22:34:15
ceder Exp $
dnl Configuration for LysKOM
AC_REVISION($Revision: 1.
7
$)
AC_REVISION($Revision: 1.
8
$)
AC_INIT(src/server/lyskomd.h)
AC_PROG_CC
AC_SUBST(CFLAGS)
[if [ "$CC" = gcc ]
then
test -n "$verbose" && echo adding -ansi -Wall -pipe
CFLAGS="$CFLAGS -g -O -Wall -ansi -pipe"
fi]
AC_AIX
AC_ISC_POSIX
AC_MINIX
AC_DYNIX_SEQ
AC_IRIX_SUN
AC_STDC_HEADERS
AC_COMPILE_CHECK([HPUX and struct sockaddr], dnl
[#include <sys/socket.h>], dnl
[struct sockaddr foo;], dnl
[test -n "$verbose" && echo ' 'No action needed], dnl
[test -n "$verbose" && echo ' 'Checking for a fix; dnl
AC_COMPILE_CHECK([_HPUX_SOURCE to fix problems], dnl
[#define _HPUX_SOURCE
#include <sys/socket.h>], dnl
[struct sockaddr foo;], dnl
AC_DEFINE(_HPUX_SOURCE), dnl
)])dnl
[test -n "$verbose" && echo ' 'No action needed], dnl
IF FOUND
[test -n "$verbose" && echo ' 'Checking for a fix; dnl
IF NOT FOUND
AC_COMPILE_CHECK([_HPUX_SOURCE to fix problems], dnl
[#define _HPUX_SOURCE
#include <sys/socket.h>], dnl
[struct sockaddr foo;], dnl
AC_DEFINE(_HPUX_SOURCE), dnl
[test -n "$verbose" && echo ' 'Problem remains]
)])dnl
[SRCTOPDIR=`cd $srcdir;pwd`]
[BUILDTOPDIR=`pwd`]
dnl
...
...
@@ -68,17 +75,18 @@ AC_PROG_AWK
AC_LN_S
AC_PROG_YACC
AC_PROG_LEX
AC_
STDC_HEADERS
AC_
PROGRAMS_CHECK(SED, /usr/gnu/bin/sed /usr/local/gnu/bin/sed sed
)
AC_HAVE_HEADERS(st
ring.h memory.h sys/param.h sys/time
.h stdlib.h locale.h)
AC_
PROGRAMS_CHECK(SED, sed)
AC_
HAVE_HEADERS(string.h memory.h strings.h sys/param.h sys/time.h
)
AC_HAVE_HEADERS(st
darg
.h stdlib.h locale.h)
AC_TIME_WITH_SYS_TIME
dnl AC_USG is used by regex, but is obsolete.
AC_USG
AC_ALLOCA
AC_HAVE_LIBRARY(resolv)
AC_HAVE_LIBRARY(authuser)
AC_HAVE_LIBRARY(socket)
AC_HAVE_LIBRARY(nsl)
AC_HAVE_LIBRARY(resolv) dnl Host name lookup.
AC_HAVE_LIBRARY(authuser) dnl User authentication according to RFC 931.
AC_HAVE_LIBRARY(socket) dnl socket() et c on Solaris 2.
AC_HAVE_LIBRARY(nsl) dnl Low-level networking code on Solaris 2.
AC_HAVE_LIBRARY(i) dnl For setlocale() on Ultrix.
AC_HAVE_FUNCS(difftime getdtablesize sysconf getcwd vfprintf)
AC_REPLACE_FUNCS(memcpy difftime strerror remove strchr memset memchr)
[DEFS="$DEFS -DBUGGY_INET_NTOA=1 -DENCRYPT_PASSWORDS=1 -DSERVER=1"]
...
...
@@ -90,9 +98,12 @@ $INSTALL_DESCEND\\
$DEPEND_DESCEND\\
$CLEAN\\
"]
AC_SUBST(CFLAGS)
[CFLAGS="$CFLAGS -I$BUILDTOPDIR/include -I$BUILDTOPDIR/include/server -I. "]
[CFLAGS="$CFLAGS -g -O -Wall -ansi -pipe \$(DEFS)" ]
dnl Adding DEFS to CFLAGS must be the last thing done to CFLAGS,
dnl since it breaks the compile tests generated by autoconf.
dnl +++This probably violates the GNU Coding Standards as well,
dnl and should be fixed before the upcoming release.
[CFLAGS="$CFLAGS \$(DEFS)" ]
AC_SUBST(STDLYSKOM)
[STDLYSKOM="# BEGIN section from @STDLYSKOM@\\
SHELL = /bin/sh \\
...
...
@@ -128,6 +139,7 @@ GENERIC-MOSTLYCLEAN = *.o lib*.a core temp-Makefile temp-?-Makefile\\
GENERIC-DISTCLEAN = *~ TAGS dependencies Makefile\\
# END section from @STDLYSKOM@\\
"]
dnl +++Do this in the makefile instead
[mkdir $BUILDTOPDIR/include]
[mkdir $BUILDTOPDIR/lib]
AC_OUTPUT(Makefile
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment