2006-03-09 22:17:47 +01:00
|
|
|
#######################################################################
|
|
|
|
#
|
|
|
|
# Copyright (C) 2006 Novell, Inc.
|
|
|
|
#
|
|
|
|
# This program 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 of the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program 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 this program; if not, write to the Free
|
|
|
|
# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#######################################################################
|
|
|
|
|
2006-04-26 19:20:26 +02:00
|
|
|
AC_INIT(include/micasa.h)
|
2006-03-09 22:17:47 +01:00
|
|
|
AC_CANONICAL_SYSTEM
|
2006-06-06 00:33:11 +02:00
|
|
|
AM_INIT_AUTOMAKE(CASA, 1.7.678787878787878)
|
2006-03-09 22:17:47 +01:00
|
|
|
RELEASE=`date +%Y%m%d_%H%M`
|
|
|
|
AC_SUBST(RELEASE)
|
|
|
|
AM_MAINTAINER_MODE
|
|
|
|
|
|
|
|
#
|
|
|
|
# Check for a valid C# compiler
|
|
|
|
#
|
2006-05-04 22:40:09 +02:00
|
|
|
#AC_CHECK_PROG(CSC, csc, csc)
|
|
|
|
#test -z "$CSC" && AC_CHECK_PROG(CSC, mcs, mcs)
|
|
|
|
#test -z "$CSC" && AC_MSG_ERROR([no acceptable C Sharp compiler found in \$PATH])
|
|
|
|
|
|
|
|
#
|
|
|
|
# Check for valid C# compiler in linux
|
|
|
|
#
|
|
|
|
case $host_os in
|
|
|
|
cygwin*)
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
AC_CHECK_PROG(CSC, csc, csc)
|
|
|
|
test -z "$CSC" && AC_CHECK_PROG(CSC, mcs, mcs)
|
|
|
|
test -z "$CSC" && AC_MSG_ERROR([no acceptable C Sharp compiler found in \$PATH])
|
|
|
|
|
|
|
|
;;
|
|
|
|
esac
|
2006-03-09 22:17:47 +01:00
|
|
|
|
|
|
|
case $CSC in
|
|
|
|
#
|
|
|
|
# Mono-specific configuration
|
|
|
|
#
|
|
|
|
mcs)
|
|
|
|
CSC_EXEFLAG=/target:exe
|
|
|
|
CSC_LIBFLAG=/target:library
|
|
|
|
CSC_EXEFLAG=/target:exe
|
|
|
|
CSC_WINEXEFLAG=/target:winexe
|
|
|
|
CSCFLAGS='/d:MONO /warn:4 /d:TRACE -d:LINUX'
|
|
|
|
CSCFLAGS_DEBUG="/debug+ /d:DEBUG"
|
|
|
|
CSCFLAGS_OPTIMIZE="/optimize+"
|
|
|
|
MONO=mono
|
|
|
|
MONO_DEBUG='mono --debug'
|
|
|
|
MONO_PATH=
|
|
|
|
SYSTEM_XML='System.Xml.dll'
|
|
|
|
;;
|
|
|
|
#
|
|
|
|
# .NET-specific configuration
|
|
|
|
#
|
|
|
|
csc)
|
|
|
|
CSC_EXEFLAG=/target:exe
|
|
|
|
CSC_LIBFLAG=/target:library
|
|
|
|
CSC_EXEFLAG=/target:exe
|
|
|
|
CSC_WINEXEFLAG=/target:winexe
|
|
|
|
CSCFLAGS='/d:DOTNET /warn:4 /d:TRACE /nologo'
|
|
|
|
CSCFLAGS_DEBUG="/debug+ /d:DEBUG"
|
|
|
|
CSCFLAGS_OPTIMIZE="/optimize+"
|
|
|
|
MONO=
|
|
|
|
MONO_DEBUG=
|
|
|
|
MONO_PATH=
|
|
|
|
SYSTEM_XML='System.XML.dll'
|
|
|
|
;;
|
|
|
|
esac
|
2006-05-04 18:25:55 +02:00
|
|
|
|
2006-03-09 22:17:47 +01:00
|
|
|
AC_SUBST(CSC)
|
|
|
|
AC_SUBST(CSC_EXEFLAG)
|
|
|
|
AC_SUBST(CSC_LIBFLAG)
|
|
|
|
AC_SUBST(CSC_WINEXEFLAG)
|
|
|
|
AC_SUBST(CSCFLAGS)
|
|
|
|
AC_SUBST(CSCFLAGS_DEBUG)
|
|
|
|
AC_SUBST(MONO)
|
|
|
|
AC_SUBST(MONO_PATH)
|
|
|
|
AC_SUBST(SYSTEM_XML)
|
|
|
|
|
|
|
|
SRCDIR='$(top_srcdir)'
|
|
|
|
DOCDIR="$SRCDIR/doc"
|
2006-05-04 18:25:55 +02:00
|
|
|
TOOLDIR='$(top_srcdir)/tools'
|
2006-03-09 22:17:47 +01:00
|
|
|
AC_SUBST(SRCDIR)
|
|
|
|
AC_SUBST(DOCDIR)
|
2006-05-04 18:25:55 +02:00
|
|
|
AC_SUBST(TOOLDIR)
|
2006-03-09 22:17:47 +01:00
|
|
|
EMPTY=
|
|
|
|
SPACE='$(EMPTY) $(EMPTY)'
|
|
|
|
|
|
|
|
AC_SUBST(EMPTY)
|
|
|
|
AC_SUBST(SPACE)
|
|
|
|
|
|
|
|
#
|
2006-03-16 23:30:24 +01:00
|
|
|
# Check for operating system and set TARGET_OS
|
2006-03-09 22:17:47 +01:00
|
|
|
#
|
|
|
|
case $host_os in
|
|
|
|
cygwin*)
|
|
|
|
TARGET_OS='windows'
|
|
|
|
;;
|
|
|
|
*)
|
2006-03-15 21:28:09 +01:00
|
|
|
TARGET_OS='linux'
|
2006-03-09 22:17:47 +01:00
|
|
|
;;
|
|
|
|
esac
|
2006-03-15 21:28:09 +01:00
|
|
|
|
2006-03-09 22:17:47 +01:00
|
|
|
AC_SUBST(TARGET_OS)
|
|
|
|
AM_CONDITIONAL(LINUX, test "$TARGET_OS" = "linux")
|
|
|
|
AM_CONDITIONAL(WINDOWS, test "$TARGET_OS" = "windows")
|
|
|
|
|
|
|
|
#
|
2006-03-16 23:30:24 +01:00
|
|
|
# Check for architecture and set TARGET_ARCH
|
|
|
|
# ia64 needs to be treated as non64.
|
|
|
|
|
2006-03-09 22:17:47 +01:00
|
|
|
case $target_cpu in
|
2006-03-16 23:30:24 +01:00
|
|
|
x86_64|p*pc64|s390x)
|
2006-03-28 19:36:31 +02:00
|
|
|
LIB=lib64
|
2006-03-09 22:17:47 +01:00
|
|
|
;;
|
2006-03-20 19:12:58 +01:00
|
|
|
*ia64|*)
|
2006-03-28 19:36:31 +02:00
|
|
|
LIB=lib
|
2006-03-09 22:17:47 +01:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2006-03-28 19:36:31 +02:00
|
|
|
AC_SUBST(LIB)
|
|
|
|
AM_CONDITIONAL(LIB64, test "$LIB" = lib64)
|
2006-03-09 22:17:47 +01:00
|
|
|
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# Set platform-specific variables
|
|
|
|
#
|
|
|
|
case $TARGET_OS in
|
|
|
|
#
|
|
|
|
# Linux-specific configuration
|
|
|
|
#
|
|
|
|
linux)
|
|
|
|
#
|
|
|
|
# Set variables
|
|
|
|
#
|
|
|
|
COMMON_CLEAN_FILES=''
|
|
|
|
ICON_EXT='.ico'
|
|
|
|
ICON_FLAG='/resource:'
|
|
|
|
PLATFORM_SUBDIRS=$LINUX_SUBDIRS
|
|
|
|
SEP='/'
|
2006-03-28 19:36:31 +02:00
|
|
|
LINK=gcc
|
2006-03-09 22:17:47 +01:00
|
|
|
;;
|
|
|
|
#
|
|
|
|
# Windows-specific configuration
|
|
|
|
#
|
|
|
|
windows)
|
|
|
|
COMMON_CLEAN_FILES='*.suo */*.suo *.csproj.user */*.csproj.user bin obj */bin */obj *.xml */*.xml *.pdb */*.pdb'
|
|
|
|
ICON_EXT='.ico'
|
|
|
|
ICON_FLAG='/win32icon:'
|
|
|
|
PLATFORM_SUBDIRS=$WINDOWS_SUBDIRS
|
|
|
|
SEP='$(EMPTY)\\$(EMPTY)'
|
2006-05-04 18:25:55 +02:00
|
|
|
LINK=link.exe
|
2006-03-09 22:17:47 +01:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
AC_SUBST(COMMON_CLEAN_FILES)
|
|
|
|
AC_SUBST(ICON_EXT)
|
|
|
|
AC_SUBST(ICON_FLAG)
|
|
|
|
AC_SUBST(PLATFORM_SUBDIRS)
|
|
|
|
AC_SUBST(SEP)
|
|
|
|
AC_SUBST(LINK)
|
|
|
|
|
|
|
|
#
|
|
|
|
# Run standard macros
|
|
|
|
#
|
|
|
|
AM_PROG_CC_STDC
|
|
|
|
AC_PROG_INSTALL
|
|
|
|
AC_HEADER_STDC
|
|
|
|
|
2006-05-04 18:25:55 +02:00
|
|
|
#######
|
|
|
|
#
|
|
|
|
# set CFLAGS
|
|
|
|
#
|
|
|
|
case $host_os in
|
|
|
|
linux*)
|
|
|
|
CFLAGS="$CFLAGS"
|
|
|
|
;;
|
|
|
|
cygwin*)
|
|
|
|
CC=cl.exe
|
|
|
|
CFLAGS="-D WIN32 -D SSCS_WIN32_PLAT_F -D N_PLAT_CLIENT -MT -Ox"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2006-03-09 22:17:47 +01:00
|
|
|
#
|
|
|
|
# Handle --enable-debug
|
|
|
|
#
|
|
|
|
AC_ARG_ENABLE(debug, [
|
|
|
|
--enable-debug configure the Makefiles to build in DEBUG mode],
|
|
|
|
[case "${enableval}" in
|
|
|
|
yes) enable_debug=true ;;
|
|
|
|
no) enable_debug=false ;;
|
|
|
|
*) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;;
|
|
|
|
esac],[enable_debug=false])
|
|
|
|
AM_CONDITIONAL(DEBUG, test x$enable_debug = xtrue)
|
|
|
|
if test "$enable_debug" = "true"
|
|
|
|
then
|
|
|
|
# Build debug version.
|
|
|
|
# CFLAGS="$CFLAGS_DEBUG $CFLAGS -DDBG -DDEBUG"
|
|
|
|
CFLAGS="$CFLAGS_DEBUG $CFLAGS -g -DDBG -DDEBUG \
|
|
|
|
-fPIC -DPIC -DSSCS_LINUX_PLAT_F -O2 -fmessage-length=0 -Wall \
|
2006-03-20 19:12:58 +01:00
|
|
|
-D_REENTRANT -DALIGNMENT -DN_PLAT_UNIX \
|
2006-03-09 22:17:47 +01:00
|
|
|
-DUNIX -DLINUX -DIAPX38"
|
|
|
|
CSCFLAGS="$CSCFLAGS_DEBUG $CSCFLAGS"
|
|
|
|
CXXFLAGS="$CXXFLAGS_DEBUG $CXXFLAGS"
|
|
|
|
DEVENV_CONFIGURATION=Debug
|
|
|
|
MONO=$MONO_DEBUG
|
|
|
|
else
|
|
|
|
# Build optimized version.
|
|
|
|
CFLAGS="$CFLAGS_OPTIMIZE $CFLAGS -g -fPIC -DPIC \
|
|
|
|
-DSSCS_LINUX_PLAT_F -O2 -fmessage-length=0 -Wall \
|
2006-03-20 19:12:58 +01:00
|
|
|
-D_REENTRANT -DALIGNMENT -DN_PLAT_UNIX \
|
2006-03-09 22:17:47 +01:00
|
|
|
-DUNIX -DLINUX -DIAPX38"
|
|
|
|
CSCFLAGS="$CSCFLAGS_OPTIMIZE $CSCFLAGS"
|
|
|
|
CXXFLAGS="$CXXFLAGS_OPTIMIZE $CXXFLAGS"
|
|
|
|
DEVENV_CONFIGURATION=Release
|
|
|
|
fi
|
|
|
|
AC_SUBST(CSCFLAGS)
|
|
|
|
AC_SUBST(DEVENV_CONFIGURATION)
|
|
|
|
|
2006-03-29 20:41:24 +02:00
|
|
|
##comment out due to build failure
|
2006-03-09 22:17:47 +01:00
|
|
|
# Check for GCC version to add fstack-protector flag
|
|
|
|
#
|
2006-03-29 20:41:24 +02:00
|
|
|
#GCC_VER="`gcc -dumpversion`"
|
|
|
|
#case "$GCC_VER" in
|
|
|
|
# 3*)
|
|
|
|
# ;;
|
|
|
|
# 4*)
|
|
|
|
# CFLAGS="$CFLAGS -fstack-protector"
|
|
|
|
# ;;
|
|
|
|
# *)
|
|
|
|
# ;;
|
|
|
|
#esac
|
2006-03-09 22:17:47 +01:00
|
|
|
|
|
|
|
AC_SUBST(GCC_VER)
|
|
|
|
|
|
|
|
#
|
|
|
|
# Configure PKG_CONFIG
|
|
|
|
#
|
|
|
|
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
|
|
|
|
if test "x$PKG_CONFIG" = "xno"; then
|
|
|
|
AC_MSG_ERROR([You need to install pkg-config])
|
|
|
|
fi
|
|
|
|
|
|
|
|
#
|
|
|
|
# Configure files
|
|
|
|
#
|
|
|
|
AC_OUTPUT([
|
|
|
|
Makefile
|
2006-06-05 23:30:03 +02:00
|
|
|
auth_token/Makefile
|
|
|
|
auth_token/server/Makefile
|
|
|
|
auth_token/server/AuthTokenValidate/Makefile
|
|
|
|
auth_token/server/AuthTokenValidate/linux/Makefile
|
|
|
|
auth_token/server/AuthTokenValidate/idenTokenProviders/Makefile
|
|
|
|
auth_token/server/AuthTokenValidate/idenTokenProviders/casa/Makefile
|
|
|
|
auth_token/server/AuthTokenValidate/idenTokenProviders/casa/linux/Makefile
|
|
|
|
auth_token/server/PamSupport/Makefile
|
|
|
|
auth_token/server/PamSupport/linux/Makefile
|
|
|
|
auth_token/server/ApacheSupport/Makefile
|
|
|
|
auth_token/server/ApacheSupport/2.2/Makefile
|
|
|
|
auth_token/server/ApacheSupport/2.2/linux/Makefile
|
|
|
|
auth_token/server/AuthTokenSvc/Makefile
|
|
|
|
auth_token/server/JaasSupport/Makefile
|
2006-03-09 22:17:47 +01:00
|
|
|
c_micasacache/Makefile
|
|
|
|
c_micasacache/linux/Makefile
|
2006-05-04 18:25:55 +02:00
|
|
|
c_micasacache/windows/Makefile
|
2006-03-09 22:17:47 +01:00
|
|
|
c_common/Makefile
|
|
|
|
c_common/linux/Makefile
|
2006-05-04 18:25:55 +02:00
|
|
|
c_common/windows/Makefile
|
2006-03-09 22:17:47 +01:00
|
|
|
c_micasadk/Makefile
|
|
|
|
c_micasadk/linux/Makefile
|
2006-05-04 18:25:55 +02:00
|
|
|
c_micasadk/windows/Makefile
|
2006-03-09 22:17:47 +01:00
|
|
|
c_micasad/lib/Makefile
|
|
|
|
c_micasad/lib/common/Makefile
|
|
|
|
c_micasad/lib/communication/Makefile
|
2006-05-23 00:33:51 +02:00
|
|
|
c_micasad/startup/Makefile
|
2006-03-09 22:17:47 +01:00
|
|
|
c_sharp/Makefile
|
|
|
|
c_sharp/NSSCSWrapper/Makefile
|
|
|
|
c_micasad/Makefile
|
|
|
|
c_policy/Makefile
|
|
|
|
c_adlib/ad_kw/Makefile
|
|
|
|
c_adlib/ad_gk/native/Makefile
|
|
|
|
c_adlib/ad_gk/Makefile
|
|
|
|
c_adlib/ad_ff/native/Makefile
|
|
|
|
c_adlib/ad_ff/Makefile
|
|
|
|
c_adlib/Makefile
|
|
|
|
c_gui/Makefile
|
|
|
|
login_capture/Makefile
|
|
|
|
login_capture/PAM/Makefile
|
|
|
|
login_capture/PAM/linux/Makefile
|
|
|
|
c_jwrapper/Makefile
|
|
|
|
c_jwrapper/src/Makefile
|
|
|
|
c_jwrapper/jnsscs/Makefile
|
|
|
|
c_jwrapper/jnsscs/linux/Makefile
|
2006-05-04 18:25:55 +02:00
|
|
|
c_jwrapper/jnsscs/windows/Makefile
|
|
|
|
vs_solutions/Makefile
|
|
|
|
vs_solutions/CASAInstall/Makefile
|
2006-03-09 22:17:47 +01:00
|
|
|
package/Makefile
|
|
|
|
package/linux/Makefile
|
2006-05-04 18:25:55 +02:00
|
|
|
package/windows/Makefile
|
2006-03-09 22:17:47 +01:00
|
|
|
package/linux/CASA.spec
|
|
|
|
])
|
|
|
|
|