# configure.in for the Virtual Server Administrator support library # Copyright (c) 1999 Idaya Ltd. # Contributed by Nick Burrett # This file is part of the Virtual Server Administrator (FreeVSD) # FreeVSD is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # FreeVSD is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with FreeVSD; see the file COPYING. If not, write to # the Free Software Foundation, Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA. AC_INIT(pam_vsd.c) AC_CONFIG_HEADER(config.h) dnl Global version variable PACKAGE="pam_vsd" AC_SUBST(PACKAGE) VERSION="1.0.0" AC_SUBST(VERSION) dnl Checks for programs AC_PROG_CC AC_PROG_INSTALL AC_PATH_PROG(RM, rm, rm) dnl Checks for header files AC_HEADER_STDC AC_CHECK_HEADERS(errno.h fcntl.h grp.h pwd.h stdio.h stdlib.h string.h strings.h unistd.h) dnl Checks for typedefs, structures and compiler characteristics AC_C_CONST AC_TYPE_SIZE_T dnl Checks for library functions AC_PROG_GCC_TRADITIONAL AC_CHECK_FUNCS(strerror) echo Targeting for host $host case "$host" in *-*-freebsd*) tflags="-DTARGET_FREEBSD" ;; *-*-linux) tflags="-DTARGET_LINUX" ;; *-*-linux-*) tflags="-DTARGET_LINUX" ;; esac AC_SUBST(tflags) AC_OUTPUT([Makefile])