Blame configure.ac

Packit 228f82
dnl -*- Mode: sh -*-
Packit 228f82
dnl
Packit 228f82
dnl configure.ac - top level autoconf file for Lasso
Packit 228f82
dnl (Process this file with autoconf to produce a configure script.)
Packit 228f82
dnl
Packit 228f82
dnl 
Packit 228f82
dnl See COPYING at the top of this package for the full license terms.
Packit 228f82
dnl 
Packit 228f82
dnl 
Packit 228f82
Packit 228f82
dnl Declare package and package version.
Packit 228f82
dnl (r-c).a.r
Packit 228f82
dnl - First number is the lowest supported API version number.
Packit 228f82
dnl - Second number is the number of supported API versions where API version >
Packit 228f82
dnl   first number.
Packit 228f82
dnl - Third number is the current API version implementation version number.
Packit 228f82
dnl See libtool explanations about current, age and release, later in this file.
Packit 228f82
AC_INIT([lasso], m4_esyscmd([tools/git-version-gen .tarball-version]), lasso-devel@lists.labs.libre-entreprise.org)
Packit 228f82
dnl Check if autoconf ver > 2.53
Packit 228f82
AC_PREREQ(2.53)
Packit 228f82
AC_CONFIG_MACRO_DIR([m4])
Packit 228f82
dnl Perform only subset commands and variable relevant to the host type.
Packit 228f82
AC_CANONICAL_HOST
Packit 228f82
AC_CANONICAL_SYSTEM
Packit 228f82
dnl Check existence of a relative pathed source file.
Packit 228f82
AC_CONFIG_SRCDIR(lasso/lasso.c)
Packit 228f82
dnl Copy stamp REVISIO-INFO in the configure script.
Packit 228f82
AC_REVISION($Revision$)
Packit 228f82
Packit 228f82
dnl Run many macros mostly needed by configure.ac.
Packit 228f82
AM_INIT_AUTOMAKE([foreign tar-pax])
Packit 228f82
dnl Support automake 1.11 silent mode
Packit 228f82
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
Packit 228f82
m4_ifdef([AM_SILENT_RULES],[HAVE_AM_SILENT_RULES=yes])
Packit 228f82
AM_CONDITIONAL(HAVE_AM_SILENT_RULES, test x$HAVE_AM_SILENT_RULES != x)
Packit 228f82
dnl Create rules to automaticaly regenerate the config header.
Packit 228f82
AM_CONFIG_HEADER([config.h lasso/lasso_config.h])
Packit 228f82
dnl Add --enable-maintainer-mode option to configure.
Packit 228f82
AM_MAINTAINER_MODE([enable])
Packit 228f82
Packit 228f82
dnl ==========================================================================
Packit 228f82
dnl Perform host specific configuration
Packit 228f82
dnl ==========================================================================
Packit 228f82
NULL=
Packit 228f82
Packit 228f82
### Sun Java environment needs to be told about platform...
Packit 228f82
SUN_EXTRA_INCLUDE=
Packit 228f82
case "${host}" in
Packit 228f82
    *-pc-mingw32)
Packit 228f82
        SUN_EXTRA_INCLUDE="win32" 
Packit 228f82
        ;;
Packit 228f82
    *-pc-cygwin)
Packit 228f82
        SUN_EXTRA_INCLUDE="win32" 
Packit 228f82
        ;;
Packit 228f82
    *linux*)
Packit 228f82
        SUN_EXTRA_INCLUDE="linux"
Packit 228f82
        ;;
Packit 228f82
    *solaris*)
Packit 228f82
        SUN_EXTRA_INCLUDE="solaris"
Packit 228f82
        ;;
Packit 228f82
esac
Packit 228f82
Packit 228f82
### adapting build environment for different platforms...
Packit 228f82
MINGW=0
Packit 228f82
DARWIN=0
Packit 228f82
case "${host}" in
Packit 228f82
    *aix*)
Packit 228f82
        CFLAGS="${CFLAGS} -D_ALL_SOURCE"
Packit 228f82
        ;;
Packit 228f82
    *-pc-mingw32)
Packit 228f82
        case "${build}" in
Packit 228f82
            *-pc-cygwin)
Packit 228f82
                CC="gcc -mno-cygwin"
Packit 228f82
                CFLAGS="${CFLAGS} -D_MSC_VER -DIN_LASSO -DMINGW -DWIN32 -D_WIN32 -I/usr/local/include"
Packit 228f82
                LDFLAGS="${LDFLAGS} -L/usr/local/lib"
Packit 228f82
                MINGW=1
Packit 228f82
                ;;
Packit 228f82
        esac
Packit 228f82
        ;;
Packit 228f82
    *darwin*)
Packit 228f82
        DARWIN=1
Packit 228f82
        ;;
Packit 228f82
esac
Packit 228f82
Packit 228f82
# OSX Fink
Packit 228f82
if test -d /sw/bin ; then
Packit 228f82
  PATH=$PATH:/sw/bin
Packit 228f82
fi
Packit 228f82
Packit 228f82
dnl
Packit 228f82
dnl Check for programs
Packit 228f82
dnl
Packit 228f82
AC_PROG_CC
Packit 228f82
AM_CFLAGS=""
Packit 228f82
AC_HEADER_STDC
Packit 228f82
LT_AC_PROG_RC
Packit 228f82
AC_EXEEXT
Packit 228f82
AC_PROG_CC_C_O
Packit 228f82
AM_SANITY_CHECK
Packit 228f82
AC_PROG_AWK
Packit 228f82
AC_PROG_LN_S
Packit 228f82
AC_LIBTOOL_WIN32_DLL
Packit 228f82
AM_PROG_LIBTOOL
Packit 228f82
AC_SUBST(LIBTOOL_DEPS)
Packit 228f82
AS_COMPILER_FLAGS(WARNING_FLAGS, "-Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter -Wold-style-definition -Wdeclaration-after-statement -Wmissing-declarations -Wredundant-decls -Wmissing-noreturn -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Winline -Wformat-nonliteral -Wformat-security -Wswitch-enum -Wswitch-default -Winit-self -Wmissing-include-dirs -Wundef -Waggregate-return -Wmissing-format-attribute -Wnested-externs")
Packit 228f82
Packit 228f82
dnl Find tar command for make dist
Packit 228f82
AC_CHECK_PROGS(TAR, gnutar gtar tar)
Packit 228f82
Packit 228f82
dnl Check existence of binding programs
Packit 228f82
AC_CHECK_CLASSPATH
Packit 228f82
AC_PROG_JAVAC
Packit 228f82
AC_PROG_JAVA
Packit 228f82
AC_PROG_JAVAH
Packit 228f82
AC_PROG_JAR
Packit 228f82
DPS_XTRA_CLASSPATH(CLASSPATH_JUNIT, junit.framework.Test, junit.jar)
Packit 228f82
old_cp=$CLASSPATH
Packit 228f82
export CLASSPATH=${CLASSPATH}:${CLASSPATH_JUNIT}
Packit 228f82
AC_CHECK_JUNIT
Packit 228f82
if test "x$old_cp" = "x"; then
Packit 228f82
    unset CLASSPATH
Packit 228f82
else
Packit 228f82
    $CLASSPATH=$old_cp
Packit 228f82
fi
Packit 228f82
unset old_cp
Packit 228f82
dnl AC_CHECK_PROGS(JAVA, gij java)
Packit 228f82
dnl AC_CHECK_PROGS(JAVAC, gcj javac)
Packit 228f82
dnl AC_CHECK_PROGS(JAVAH, gjavah gcjh javah)
Packit 228f82
dnl AC_CHECK_PROGS(JAR, fastjar jar)
Packit 228f82
Packit 228f82
AC_CHECK_PROGS(PERL, perl)
Packit 228f82
AC_CHECK_PROGS(PHP5, php5 php)
Packit 228f82
AC_CHECK_PROGS(PHP5_CONFIG, php-config5 php-config)
Packit 228f82
AC_CHECK_PROGS(PYTHON, python)
Packit 228f82
AC_CHECK_PROGS(SWIG, swig)
Packit 228f82
Packit 228f82
dnl Make sure we have an ANSI compiler
Packit 228f82
test "z$U" != "z" && AC_MSG_ERROR(Compiler not ANSI compliant)
Packit 228f82
Packit 228f82
dnl Check for variadic macros
Packit 228f82
AC_CACHE_CHECK([for variadic cpp macros],
Packit 228f82
    [ac_cv_cpp_variadic_macros],
Packit 228f82
    [AC_TRY_COMPILE(
Packit 228f82
         [#include <stdio.h>
Packit 228f82
          #define a(b,c...) printf(b,##c)],
Packit 228f82
         [a("foo");a("%s","bar");a("%s%s","baz","quux");],
Packit 228f82
         ac_cv_cpp_variadic_macros=yes,
Packit 228f82
         ac_cv_cpp_variadic_macros=no)])
Packit 228f82
if test "x${ac_cv_cpp_variadic_macros}" != "xno"; then
Packit 228f82
    AC_DEFINE(HAVE_VARIADIC_MACROS, 1, Support for variadic macros)
Packit 228f82
fi
Packit 228f82
Packit 228f82
Packit 228f82
dnl ==========================================================================
Packit 228f82
dnl Version Super.Size.Me.L
Packit 228f82
dnl ==========================================================================
Packit 228f82
Packit 228f82
changequote(<<, >>)dnl
Packit 228f82
VERSION_MAJOR=`echo $VERSION | $SED -e 's/^\([^\.]*\)\.\([^\.]*\)\.\(.*\)$/\1/'`
Packit 228f82
VERSION_MINOR=`echo $VERSION | $SED -e 's/^\([^\.]*\)\.\([^\.]*\)\.\(.*\)$/\2/'`
Packit 228f82
VERSION_RELEASE=`echo $VERSION | $SED -e 's/^\([^\.]*\)\.\([^\.]*\)\.\([0-9]*\).*$/\3/'`
Packit 228f82
changequote([, ])dnl
Packit 228f82
VERSION_UNDERSCORED=`echo $VERSION | $SED -e 's/\./_/g'`
Packit 228f82
AC_SUBST(VERSION_UNDERSCORED)
Packit 228f82
Packit 228f82
Packit 228f82
dnl Add versionning & package defines to lasso_.h
Packit 228f82
AC_DEFINE_UNQUOTED(LASSO_VERSION_MAJOR, $VERSION_MAJOR, [Major version number])
Packit 228f82
AC_DEFINE_UNQUOTED(LASSO_VERSION_MINOR, $VERSION_MINOR, [Minor version number])
Packit 228f82
AC_DEFINE_UNQUOTED(LASSO_VERSION_SUBMINOR, $VERSION_RELEASE, [Release version number])
Packit 228f82
Packit 228f82
dnl Dirty hack in order to have dynamic resource version numbering.
Packit 228f82
WINDOWS_VERSION=`echo $VERSION_MAJOR,$VERSION_MINOR,$VERSION_RELEASE,0`
Packit 228f82
AC_SUBST(WINDOWS_VERSION)
Packit 228f82
Packit 228f82
dnl CURRENT, REVISION, AGE
Packit 228f82
dnl - library source changed -> increment REVISION
Packit 228f82
dnl - interfaces added/removed/changed -> increment CURRENT, REVISION = 0
Packit 228f82
dnl - interfaces added -> increment AGE
Packit 228f82
dnl - interfaces removed -> AGE = 0
Packit 228f82
Packit 228f82
# syntax: CURRENT[:REVISION[:AGE]]
Packit 228f82
# So if M=major, m=minor, r=release:
Packit 228f82
# c = M + a = M + m;
Packit 228f82
# m = a
Packit 228f82
# r = r
Packit 228f82
current=`expr $VERSION_MAJOR + $VERSION_MINOR`
Packit 228f82
LASSO_VERSION_INFO="16:0:13"
Packit 228f82
AC_SUBST(LASSO_VERSION_INFO)
Packit 228f82
Packit 228f82
dnl Compute the minimal supported ABI version for Win32 scripts and resources files.
Packit 228f82
minimal_version=`echo $LASSO_VERSION_INFO | $AWK -F: '{printf("%d\n",$1-$3)};'`
Packit 228f82
UPCASED_DLL_FILENAME="LIBLASSO-$minimal_version.DLL"
Packit 228f82
DLL_FILENAME="liblasso-$minimal_version.dll"
Packit 228f82
AC_SUBST(UPCASED_DLL_FILENAME)
Packit 228f82
AC_SUBST(DLL_FILENAME)
Packit 228f82
Packit 228f82
dnl Detect available languages binding.
Packit 228f82
languages_available=
Packit 228f82
Packit 228f82
Packit 228f82
# ------------
Packit 228f82
# JAVA binding
Packit 228f82
# ------------
Packit 228f82
Packit 228f82
dnl Check if java is explicitly disabled.
Packit 228f82
AC_ARG_ENABLE(java, [  --disable-java          disable the Java binding],,
Packit 228f82
              enable_java="yes")
Packit 228f82
AC_ARG_WITH(java-home,
Packit 228f82
            [  --with-java-home=(JAVA_HOME)  set the full path to the java home directory.])
Packit 228f82
SUN=no
Packit 228f82
Packit 228f82
dnl If the java compiler seems to be a Sun JDK-like compile (Kaffe, Sun JDK...)
Packit 228f82
if test "x$JAVAC" = "xjavac"; then
Packit 228f82
    JAVAC_PATH=`which $JAVAC`
Packit 228f82
    if test "x$with_java_home" = "x"; then
Packit 228f82
	    with_java_home=`readlink -f $JAVAC_PATH | sed s#/bin/.*##`
Packit 228f82
    fi
Packit 228f82
    dnl If we have a java compiler
Packit 228f82
    dnl need to change quotes to allow square brackets
Packit 228f82
    changequote(<<, >>)dnl
Packit 228f82
    JAVA_VERSION=`$JAVA -version 2>&1 | $SED -ne 's/\(openjdk\|java\) \(full\)*version "\([^"]*\)".*/\3/p' 2>/dev/null`
Packit 228f82
    changequote([, ])dnl
Packit 228f82
    dnl If no java version found, perphas it is a kaffee environment...
Packit 228f82
    if test "x$JAVA_VERSION" = x; then
Packit 228f82
        JAVA_VERSION=`$JAVA -version 2>&1 | grep "Java Version" | $SED 's/^.*Java Version: //g'`
Packit 228f82
        dnl If the java environment is kaffe, specify the JAVA_INCLUDE directory.
Packit 228f82
    else
Packit 228f82
        dnl We assume it is a SUN environment.
Packit 228f82
        SUN=yes
Packit 228f82
    fi
Packit 228f82
    CLASSPATH_OPT="-classpath"
Packit 228f82
fi
Packit 228f82
Packit 228f82
if test "x$with_java_home" != x; then
Packit 228f82
    JAVA_INCLUDE="$with_java_home/include"
Packit 228f82
fi
Packit 228f82
Packit 228f82
if ! test -f "$JAVA_INCLUDE/jni.h"; then
Packit 228f82
    JAVA_VERSION=""
Packit 228f82
fi
Packit 228f82
Packit 228f82
dnl GNU java environment
Packit 228f82
if test "x$JAVAH" = "xgcjh" || test "x$JAVAH" = "xgjavah"  ; then
Packit 228f82
    dnl JNI compatible header files. (not used with SWIG.)
Packit 228f82
    JAVAH_FLAGS="-jni"
Packit 228f82
    JAVA_INCLUDE=""
Packit 228f82
fi
Packit 228f82
Packit 228f82
dnl If the java compiler is the GNU Java Compiler.
Packit 228f82
if echo "$JAVAC" | grep -q "gcj"; then
Packit 228f82
    changequote(<<, >>)dnl
Packit 228f82
    JAVA_VERSION=`$JAVAC --version 2>&1 | $SED -ne 's/gcj[^[:blank:]]* ([^)]*) \([^ ]*\).*/\1/p' 2>/dev/null`
Packit 228f82
    MAJOR=`echo $JAVA_VERSION | sed 's/.*[^[:digit:]]\?\([[:digit:]]\+\)\.[[:digit:]]\+\.[[:digit:]]\+/\1/'`
Packit 228f82
    MINOR=`echo $JAVA_VERSION | sed 's/.*[^[:digit:]]\?[[:digit:]]\+\.\([[:digit:]]\+\)\.[[:digit:]]\+/\1/'`
Packit 228f82
    RELEASE=`echo $JAVA_VERSION | sed 's/.*[^[:digit:]]\?[[:digit:]]\+\.[[:digit:]]\+\.\([[:digit:]]\+\).*/\1/'`
Packit 228f82
    changequote([, ])dnl
Packit 228f82
    dnl Byte-compiled .class file
Packit 228f82
    if test $MAJOR -gt 4 -o \( $MAJOR -eq 4 -a $MINOR -gt 1 \) -o \( $MAJOR -eq 4 -a $MINOR -eq 1 -a $RELEASE -ge 3 \); then
Packit 228f82
        JAVAC_FLAGS="-fsource=1.4 -ftarget=1.4"
Packit 228f82
    fi
Packit 228f82
    unset MAJOR
Packit 228f82
    unset MINOR
Packit 228f82
    unset RELEASE
Packit 228f82
    dnl Checking for jni.h if gcj is the java interpreter.
Packit 228f82
    AC_CHECK_HEADERS([jni.h], [], [JAVA_VERSION=""])
Packit 228f82
    CLASSPATH_OPT="--classpath"
Packit 228f82
fi
Packit 228f82
Packit 228f82
dnl Now transform JAVA_INCLUDE in CFLAG option if applicable.
Packit 228f82
if test "X$JAVA_INCLUDE" != "X"; then
Packit 228f82
    dnl If it is a sun environment
Packit 228f82
    if test "x$SUN" = "xyes"; then
Packit 228f82
        JAVA_INCLUDE="$JAVA_INCLUDE -I$JAVA_INCLUDE/$SUN_EXTRA_INCLUDE"
Packit 228f82
    fi
Packit 228f82
    JAVA_INCLUDE=-I$JAVA_INCLUDE
Packit 228f82
fi
Packit 228f82
Packit 228f82
dnl If we found a java version information, we have java compilation environment.
Packit 228f82
if test "X$JAVA_VERSION" != "X" && test "X$JAR" != "X" && test "x$JAVAH" != "x"; then
Packit 228f82
  languages_available="$languages_available $JAVA($JAVA_VERSION)"
Packit 228f82
else
Packit 228f82
  enable_java=no
Packit 228f82
  JAVA_VERSION=""
Packit 228f82
fi
Packit 228f82
Packit 228f82
dnl Support JNI under MacOsX
Packit 228f82
if test  "$DARWIN" == 1; then
Packit 228f82
    JNI_EXTRA_LDFLAGS="-shrext .jnilib"
Packit 228f82
fi
Packit 228f82
Packit 228f82
dnl Conditional java sub dir test.
Packit 228f82
AM_CONDITIONAL([JAVA_ENABLED],[test "x$enable_java" = "xyes"])
Packit 228f82
AM_CONDITIONAL([JUNIT_ENABLED],[test "x$JUNIT" != "x"])
Packit 228f82
AC_SUBST(JAVA_VERSION)
Packit 228f82
AC_SUBST(JAVAC_FLAGS)
Packit 228f82
AC_SUBST(JAVAH_FLAGS)
Packit 228f82
AC_SUBST(JAVA_INCLUDE)
Packit 228f82
AC_SUBST(CLASSPATH_OPT)
Packit 228f82
JDK_INCLUDE=$JAVA_INCLUDE
Packit 228f82
AC_SUBST(JDK_INCLUDE)
Packit 228f82
AC_SUBST(JNI_EXTRA_LDFLAGS)
Packit 228f82
Packit 228f82
Packit 228f82
# --------------
Packit 228f82
# Python binding
Packit 228f82
# --------------
Packit 228f82
Packit 228f82
dnl Check if python is explicitly disabled.
Packit 228f82
AC_ARG_ENABLE(python, [  --disable-python        disable the Python binding],,
Packit 228f82
              enable_python="yes")
Packit 228f82
Packit 228f82
dnl Check if user passed a specific python program.
Packit 228f82
AC_ARG_WITH(python,
Packit 228f82
            [  --with-python=(PYTHON)  set the full path to the python program to use.])
Packit 228f82
Packit 228f82
dnl specific program passed, set PYTHON to it.
Packit 228f82
if test "X$with_python" != "X"; then
Packit 228f82
    PYTHON=$with_python
Packit 228f82
fi
Packit 228f82
Packit 228f82
Packit 228f82
dnl need to change quotes to allow square brackets
Packit 228f82
changequote(<<, >>)dnl
Packit 228f82
PYTHON_VERSION=`$PYTHON -c 'from distutils import sysconfig ; print(sysconfig.get_config_var("VERSION"))'`
Packit 228f82
changequote([, ])dnl
Packit 228f82
Packit 228f82
test "x$PYTHON" != "x" || AC_MSG_ERROR(Python must be installed to compile lasso)
Packit 228f82
Packit 228f82
AC_MSG_CHECKING(for Python development files)
Packit 228f82
dnl Check if we were be able to extract a good version number.
Packit 228f82
if test "X$PYTHON_VERSION" != "X"; then
Packit 228f82
    changequote(<<, >>)dnl
Packit 228f82
    PYTHON_INC=`$PYTHON -c 'from distutils import sysconfig ; print(sysconfig.get_python_inc())'`
Packit 228f82
    PYTHON_LIB=`$PYTHON -c 'from distutils import sysconfig ; print(sysconfig.get_python_lib(1))'`
Packit 228f82
    changequote([, ])dnl
Packit 228f82
    PYTHON_H=$PYTHON_INC/Python.h
Packit 228f82
    if test -f $PYTHON_H; then
Packit 228f82
            PY_CFLAGS="-I$PYTHON_INC"
Packit 228f82
            PY_MAKEFILE=`$PYTHON -c 'from distutils import sysconfig ; print(sysconfig.get_makefile_filename())'`
Packit 228f82
            PY_OTHER_LIBS=`$SED -n -e 's/^LIBS=\(.*\)/\1/p' $PY_MAKEFILE`
Packit 228f82
            PY_EXTRA_LIBS="$PY_LOCALMODLIBS $PY_BASEMODLIBS $PY_OTHER_LIBS"
Packit 228f82
            dnl this extracts the $libdir out of python lib directory,
Packit 228f82
            dnl replacing it by our own.
Packit 228f82
            PY_SUFFIX_LIB=`echo $PYTHON_LIB | $SED -e 's/.*python/python/'`
Packit 228f82
            PY_SITE_PACKAGES="\${libdir}/$PY_SUFFIX_LIB"
Packit 228f82
            AC_SUBST(PYTHON)
Packit 228f82
            AC_SUBST(PY_LIB_LOC)
Packit 228f82
            AC_SUBST(PY_CFLAGS)
Packit 228f82
            AC_SUBST(PY_EXTRA_LIBS)
Packit 228f82
            AC_SUBST(PY_DYNLOAD)
Packit 228f82
            AC_SUBST(PY_LIB_A)
Packit 228f82
            AC_SUBST(PY_SITE_PACKAGES)
Packit 228f82
            languages_available="$languages_available python($PYTHON_VERSION)"
Packit 228f82
    else
Packit 228f82
            enable_python=no
Packit 228f82
    fi
Packit 228f82
else
Packit 228f82
	enable_python=no
Packit 228f82
fi
Packit 228f82
AM_CONDITIONAL([PYTHON_ENABLED],[test "x$enable_python" = "xyes"])
Packit 228f82
AC_MSG_RESULT($enable_python)
Packit 228f82
AC_SUBST(PYTHON_VERSION)
Packit 228f82
Packit 228f82
# -----------
Packit 228f82
# PHP 5 binding
Packit 228f82
# -----------
Packit 228f82
Packit 228f82
dnl Check if php is explicitly enabled.
Packit 228f82
AC_ARG_ENABLE(php5, [  --enable-php5          enable the PHP 5 binding],,
Packit 228f82
              enable_php5="yes")
Packit 228f82
Packit 228f82
AC_ARG_WITH(php5-config,
Packit 228f82
            [  --with-php5-config=(PHP5_CONFIG)      Specify full path to php-config5.])
Packit 228f82
Packit 228f82
AC_ARG_ENABLE(php5-force, [  --enable-php5-force     always enable of the PHP 5 binding (win32)],
Packit 228f82
              [ENABLE_PHP5_FORCE="yes"],
Packit 228f82
              [ENABLE_PHP5_FORCE="no"])
Packit 228f82
Packit 228f82
Packit 228f82
dnl Check if user passed a specific php-config program.
Packit 228f82
if test "X$with_php5_config" != "X" ; then
Packit 228f82
    PHP5_CONFIG=$with_php5_config
Packit 228f82
fi
Packit 228f82
Packit 228f82
if test "X$PHP5_CONFIG" != "X" ; then
Packit 228f82
  PHP5_INCLUDES=`$PHP5_CONFIG --includes`
Packit 228f82
  PHP5_LDFLAGS=`$PHP5_CONFIG --ldflags`
Packit 228f82
  PHP5_LIBS=`$PHP5_CONFIG --libs`
Packit 228f82
  PHP5_PREFIX=`$PHP5_CONFIG --prefix`
Packit 228f82
  PHP5_QUOTED_PREFIX=$(echo $PHP5_PREFIX | $SED 's/\//\\\//g')
Packit 228f82
  PHP5_UNPREFIXED_EXTENSION_DIR=$($PHP5_CONFIG --extension-dir | $SED "s/$PHP5_QUOTED_PREFIX//g")
Packit 228f82
else
Packit 228f82
  # We assume PHP are in /usr/local directory.
Packit 228f82
  if test $MINGW -eq 1; then 
Packit 228f82
    CFLAGS="$CFLAGS -DZTS -DZEND_WIN32 -DWIN32 -D_MBCS"
Packit 228f82
  fi
Packit 228f82
  PHP5_INCLUDES="-I/usr/local/include/php5 -I/usr/local/include/php5/main -I/usr/local/include/php5/Zend -I/usr/local/include/php5/TSRM -I/usr/local/include/php5/win32"
Packit 228f82
  PHP5_LDFLAGS=
Packit 228f82
  PHP5_LIBS="-lphp5ts -lxmlparse -lxmltok"
Packit 228f82
  PHP5_UNPREFIXED_EXTENSION_DIR=
Packit 228f82
  PHP5_PREFIX=
Packit 228f82
fi
Packit 228f82
Packit 228f82
AC_ARG_WITH(php5-include-dir,
Packit 228f82
            [  --with-php5-include-dir=(PHP5_INCLUDE_DIR)      Specify full path to php 5 include dir.],
Packit 228f82
            [PHP5_INCLUDE_DIR="$withval"],[PHP5_INCLUDE_DIR=${datadir}/php])
Packit 228f82
Packit 228f82
AC_ARG_WITH(php5-config-dir,
Packit 228f82
            [  --with-php5-config-dir=(PHP5_CONFIG_DIR)      Specify full path to php 5 config dir.],
Packit 228f82
            [PHP5_CONFIG_DIR="$withval"],[PHP5_CONFIG_DIR=${sysconfdir}/php5/conf.d/])
Packit 228f82
Packit 228f82
AC_SUBST(PHP5_INCLUDES)
Packit 228f82
AC_SUBST(PHP5_LDFLAGS)
Packit 228f82
AC_SUBST(PHP5_LIBS)
Packit 228f82
AC_SUBST(PHP5_UNPREFIXED_EXTENSION_DIR)
Packit 228f82
AC_SUBST(PHP5_EXTENSION_DIR)
Packit 228f82
AC_SUBST(PHP5_PREFIX)
Packit 228f82
AC_SUBST(PHP5_INCLUDE_DIR)
Packit 228f82
AC_SUBST(PHP5_CONFIG_DIR)
Packit 228f82
Packit 228f82
AC_MSG_CHECKING(for PHP 5 development files)
Packit 228f82
if $PHP5_CONFIG --version | grep -q "^5" || test "x$ENABLE_PHP5_FORCE" = "xyes"
Packit 228f82
then
Packit 228f82
	PHP5_VERSION=`$PHP5_CONFIG --version 2> /dev/null`
Packit 228f82
	languages_available="$languages_available php5($PHP5_VERSION)"
Packit 228f82
else
Packit 228f82
	enable_php5=no
Packit 228f82
fi
Packit 228f82
Packit 228f82
AC_MSG_RESULT($enable_php5)
Packit 228f82
AM_CONDITIONAL([PHP5_ENABLED], [test "x$enable_php5" = "xyes"])
Packit 228f82
AC_SUBST(PHP5_VERSION)
Packit 228f82
Packit 228f82
Packit 228f82
### # ----------
Packit 228f82
### # C# binding (disabled for the moment)
Packit 228f82
### # ----------
Packit 228f82
### 
Packit 228f82
### AC_ARG_ENABLE(csharp, [  --disable-csharp        disable the C Sharp binding],,
Packit 228f82
###               enable_csharp="yes")
Packit 228f82
### 
Packit 228f82
### AC_ARG_WITH(cil-interpreter, [  --with-cil-interpreter=path     set location of CIL interpreter for CSharp],[CSHARPBIN="$withval"], [CSHARPBIN=])
Packit 228f82
### AC_ARG_WITH(csharp-compiler, [  --with-csharp-compiler=path     set location of CSharp compiler],[CSHARPCOMPILERBIN="$withval"], [CSHARPCOMPILERBIN=])
Packit 228f82
### 
Packit 228f82
### if test -z "$CSHARPCOMPILERBIN" ; then
Packit 228f82
###   case $host in
Packit 228f82
###   *-*-cygwin* | *-*-mingw*)
Packit 228f82
###     AC_CHECK_PROGS(CSHARPCOMPILER, mcs.bat cscc csc);;
Packit 228f82
###   *)AC_CHECK_PROGS(CSHARPCOMPILER, mcs cscc);;
Packit 228f82
###   esac
Packit 228f82
### else
Packit 228f82
###   CSHARPCOMPILER="$CSHARPCOMPILERBIN"
Packit 228f82
### fi
Packit 228f82
### 
Packit 228f82
### CSHARPPATHSEPARATOR="/"
Packit 228f82
### CSHARPCYGPATH_W=echo
Packit 228f82
### if test -z "$CSHARPBIN" ; then
Packit 228f82
###   #languages_available="$languages_available C#($CSHARPCOMPILER)"
Packit 228f82
###   CSHARPCILINTERPRETER=""
Packit 228f82
###   if test "cscc" = "$CSHARPCOMPILER" ; then
Packit 228f82
###     AC_CHECK_PROGS(CSHARPCILINTERPRETER, ilrun)
Packit 228f82
###   else
Packit 228f82
###     if test "mcs" = "$CSHARPCOMPILER"; then
Packit 228f82
###       # Check that mcs is the C# compiler and not the Unix mcs utility by examining the output of 'mcs --version'
Packit 228f82
###       # The Mono compiler should emit: Mono C# compiler version a.b.c.d
Packit 228f82
###       csharp_version_raw=`(mcs --version) 2>/dev/null`
Packit 228f82
###       csharp_version_searched=`(mcs --version | sed -n "/C#\|Mono/p") 2>/dev/null`
Packit 228f82
###       CSHARPCOMPILER="";
Packit 228f82
###       if test -n "$csharp_version_raw" ; then
Packit 228f82
###         if test "$csharp_version_raw" = "$csharp_version_searched" ; then
Packit 228f82
###           CSHARPCOMPILER="mcs"
Packit 228f82
###         fi
Packit 228f82
###       fi
Packit 228f82
### 
Packit 228f82
###       # mono interpreter (ver 0.26 doesn't seem to work on Windows platforms)
Packit 228f82
###       case $host in
Packit 228f82
###       *-*-cygwin* | *-*-mingw*)
Packit 228f82
###         ;;
Packit 228f82
###       *)AC_CHECK_PROGS(CSHARPCILINTERPRETER, mint);;
Packit 228f82
###       esac
Packit 228f82
###     else 
Packit 228f82
###       if test "csc" = "$CSHARPCOMPILER"; then
Packit 228f82
###           CSHARPPATHSEPARATOR="\\\\"
Packit 228f82
###           CSHARPCYGPATH_W='cygpath -w'
Packit 228f82
###       fi
Packit 228f82
###     fi
Packit 228f82
###   fi
Packit 228f82
### else
Packit 228f82
###   CSHARPCILINTERPRETER="$CSHARPBIN"
Packit 228f82
### fi
Packit 228f82
Packit 228f82
# Cygwin requires the Windows standard (Pascal) calling convention as it is a Windows executable and not a Cygwin built executable
Packit 228f82
case $host in
Packit 228f82
*-*-cygwin* | *-*-mingw*)
Packit 228f82
    if test "$GCC" = yes; then
Packit 228f82
        CSHARPDYNAMICLINKING=" -Wl,--add-stdcall-alias"
Packit 228f82
    else
Packit 228f82
        CSHARPDYNAMICLINKING=""
Packit 228f82
    fi ;;
Packit 228f82
*)CSHARPDYNAMICLINKING="";;
Packit 228f82
esac
Packit 228f82
Packit 228f82
AC_CHECK_PROGS(GACUTIL, gacutil)
Packit 228f82
Packit 228f82
AC_SUBST(CSHARPCILINTERPRETER)
Packit 228f82
AC_SUBST(CSHARPCYGPATH_W)
Packit 228f82
AC_SUBST(CSHARPCOMPILER)
Packit 228f82
AC_SUBST(CSHARPDYNAMICLINKING)
Packit 228f82
AC_SUBST(CSHARPLIBRARYPREFIX) # Is this going to be used?
Packit 228f82
AC_SUBST(GACUTIL)
Packit 228f82
Packit 228f82
if test "X$CSHARPCOMPILER" = X; then
Packit 228f82
    enable_csharp=no 
Packit 228f82
fi
Packit 228f82
if test "X$GACUTIL" = X; then
Packit 228f82
    enable_csharp=no 
Packit 228f82
fi
Packit 228f82
AM_CONDITIONAL([CSHARP_ENABLED], [test "x$enable_csharp" = "xyes"])
Packit 228f82
Packit 228f82
Packit 228f82
# ------------
Packit 228f82
# Perl binding
Packit 228f82
# ------------
Packit 228f82
Packit 228f82
AC_ARG_ENABLE(perl, [  --disable-perl          disable the Perl binding],,
Packit 228f82
              enable_perl="yes")
Packit 228f82
Packit 228f82
if test "X$PERL" != "X"; then
Packit 228f82
  PERLINSTALLSITEARCH=`$PERL -MConfig -e 'print $Config{installsitearch};'`
Packit 228f82
  PERLMAN3DIR=`$PERL -MConfig -e 'print $Config{man3dir};'`
Packit 228f82
  PERL_CFLAGS=$($PERL -V::ccflags: | tr -d "'")
Packit 228f82
else
Packit 228f82
  PERLINSTALLSITEARCH=none
Packit 228f82
  PERLMAN3DIR=none
Packit 228f82
  PERL_CFLAGS=
Packit 228f82
fi
Packit 228f82
AC_SUBST(PERLINSTALLSITEARCH)
Packit 228f82
AC_SUBST(PERLMAN3DIR)
Packit 228f82
AC_SUBST(PERL_CFLAGS)
Packit 228f82
Packit 228f82
AC_MSG_CHECKING(for Perl API)
Packit 228f82
if test "X$enable_perl" != "Xno" ; then
Packit 228f82
  if test "X$enable_perl" != "Xyes"; then
Packit 228f82
    PERL=$enable_perl
Packit 228f82
  fi
Packit 228f82
  enable_perl=yes
Packit 228f82
fi
Packit 228f82
Packit 228f82
PERL_VERSION=`$PERL -MConfig -e 'print $Config{version}' 2>/dev/null`
Packit 228f82
if test "X$PERL_VERSION" != "X"; then
Packit 228f82
  languages_available="$languages_available perl($PERL_VERSION)"
Packit 228f82
  if test $enable_perl = yes; then
Packit 228f82
    languages="$languages perl"
Packit 228f82
  fi
Packit 228f82
fi
Packit 228f82
AM_CONDITIONAL([PERL_ENABLED],[test "x$enable_perl" = "xyes"])
Packit 228f82
AC_MSG_RESULT($enable_perl)
Packit 228f82
AC_SUBST(PERL_VERSION)
Packit 228f82
Packit 228f82
Packit 228f82
dnl Checks for zlib library (code adapted from libxml2 configure.in)
Packit 228f82
_cppflags="${CPPFLAGS}" 
Packit 228f82
_ldflags="${LDFLAGS}"
Packit 228f82
Packit 228f82
AC_ARG_WITH(zlib,
Packit 228f82
[  --with-zlib[[=DIR]]       use libz in DIR],[
Packit 228f82
  if test "$withval" != "no" -a "$withval" != "yes"; then
Packit 228f82
    Z_DIR=$withval
Packit 228f82
    CPPFLAGS="${CPPFLAGS} -I$withval/include"
Packit 228f82
    LDFLAGS="${LDFLAGS} -L$withval/lib"
Packit 228f82
  fi
Packit 228f82
]) 
Packit 228f82
saved_LIB=$LIBS
Packit 228f82
LIBS=
Packit 228f82
AC_CHECK_HEADERS(zlib.h,
Packit 228f82
    AC_SEARCH_LIBS(gzread, [z zlib1],[
Packit 228f82
        AC_DEFINE([HAVE_LIBZ], [], [Have compression library])
Packit 228f82
        if test "x${Z_DIR}" != "x"; then
Packit 228f82
            Z_CFLAGS="-I${Z_DIR}/include"
Packit 228f82
            Z_LIBS="-L${Z_DIR}/lib $LIBS"
Packit 228f82
            [case ${host} in
Packit 228f82
                *-*-solaris*)
Packit 228f82
                    Z_LIBS="-L${Z_DIR}/lib -R${Z_DIR}/lib $LIBS"
Packit 228f82
                    ;;
Packit 228f82
            esac]
Packit 228f82
        else
Packit 228f82
            Z_LIBS="$LIBS"
Packit 228f82
        fi]))
Packit 228f82
LIBS=$saved_LIB
Packit 228f82
test "z$Z_LIBS" != "z" || AC_MSG_ERROR(missing zlib)
Packit 228f82
Packit 228f82
AC_SUBST(Z_CFLAGS)
Packit 228f82
AC_SUBST(Z_LIBS)
Packit 228f82
Packit 228f82
CPPFLAGS=${_cppflags}
Packit 228f82
LDFLAGS=${_ldflags}
Packit 228f82
Packit 228f82
dnl Final step, add missing programs.
Packit 228f82
AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
Packit 228f82
AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
Packit 228f82
AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
Packit 228f82
AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
Packit 228f82
Packit 228f82
dnl Check if wsf is explicitly disabled.
Packit 228f82
AC_ARG_ENABLE(wsf, [  --enable-wsf            enable experimental ID-WSF],
Packit 228f82
		enable_wsf="yes", enable_wsf="no")
Packit 228f82
Packit 228f82
AM_CONDITIONAL([WSF_ENABLED],[test "x$enable_wsf" = "xyes"])
Packit 228f82
LASSO_WSF_SUPPORT=0
Packit 228f82
if test "x$enable_wsf" = "xyes"; then
Packit 228f82
	AC_DEFINE(LASSO_WSF_ENABLED, [], [Define if ID-WSF support is enabled])
Packit 228f82
	LASSO_WSF_SUPPORT=1
Packit 228f82
fi
Packit 228f82
AC_SUBST(LASSO_WSF_SUPPORT)
Packit 228f82
Packit 228f82
Packit 228f82
dnl API Reference documentation support
Packit 228f82
# gtkdocize greps for ^GTK_DOC_CHECK and parses it, so you need to have
Packit 228f82
# it on it's own line.
Packit 228f82
m4_ifdef([GTK_DOC_CHECK], [
Packit 228f82
GTK_DOC_CHECK(1.9)
Packit 228f82
],[
Packit 228f82
AM_CONDITIONAL([ENABLE_GTK_DOC],[false])
Packit 228f82
])
Packit 228f82
Packit 228f82
if test "z$with_html_dir" != "z" ; then
Packit 228f82
    LASSO_DOCDIR=$with_html_dir
Packit 228f82
else
Packit 228f82
    LASSO_DOCDIR='$(datadir)/doc/lasso'
Packit 228f82
fi
Packit 228f82
AC_SUBST(LASSO_DOCDIR)
Packit 228f82
Packit 228f82
AC_ARG_WITH(html-dir, [  --with-html-dir=PATH path to installed docs ])
Packit 228f82
Packit 228f82
if test "x$with_html_dir" = "x" ; then
Packit 228f82
  HTML_DIR='${datadir}/gtk-doc/html'
Packit 228f82
else
Packit 228f82
  HTML_DIR=$with_html_dir
Packit 228f82
fi
Packit 228f82
AC_SUBST(HTML_DIR)
Packit 228f82
Packit 228f82
Packit 228f82
dnl pkg-config path
Packit 228f82
AC_ARG_WITH(pkg-config, [  --with-pkg-config=PATH set pkg-config metadata search path.],
Packit 228f82
            PKG_CONFIG_PATH="${withval}", PKG_CONFIG_PATH="")
Packit 228f82
if test "z$PKG_CONFIG_PATH" != "z"; then
Packit 228f82
    export PKG_CONFIG_PATH
Packit 228f82
fi
Packit 228f82
Packit 228f82
PKG_CHECK_MODULES(LASSO, glib-2.0 >= 2.17.0 gobject-2.0 >= 2.17.0 libxml-2.0 xmlsec1 >= 1.2.6 xmlsec1-openssl >= 1.2.6 openssl)
Packit 228f82
Packit 228f82
dnl ==========================================================================
Packit 228f82
dnl Test suite (requires check)
Packit 228f82
dnl ==========================================================================
Packit 228f82
dnl Check if user disabled the tests.
Packit 228f82
AC_ARG_ENABLE(tests, [  --disable-tests         disable the test suite],,
Packit 228f82
              enable_tests="yes")
Packit 228f82
if test "x$enable_tests" = xyes ; then
Packit 228f82
  PKG_CHECK_MODULES(CHECK, check, [], [
Packit 228f82
AC_CHECK_LIB(check, srunner_set_log, enable_tests="yes", enable_tests="no")
Packit 228f82
CHECK_CFLAGS=""
Packit 228f82
CHECK_LIBS="-lcheck"
Packit 228f82
])
Packit 228f82
  AC_SUBST(CHECK_CFLAGS)
Packit 228f82
  AC_SUBST(CHECK_LIBS)
Packit 228f82
  AC_CHECK_LIB(check, srunner_set_xml, [AC_DEFINE(CHECK_IS_XML, [], [Define if check available with XML support])])
Packit 228f82
fi
Packit 228f82
Packit 228f82
AM_CONDITIONAL(WITH_TESTS, [test "x$enable_tests" = "xyes"])
Packit 228f82
Packit 228f82
AC_ARG_WITH(sasl2, [  --with-sasl2[=PFX]         Use Cyrus SASL library version 2 for WSF-Auth])
Packit 228f82
if test "x$enable_wsf" = "xyes"; then
Packit 228f82
	if test "$with_sasl2" != "no" && test "$with_sasl2" != "yes"
Packit 228f82
	then
Packit 228f82
		CPPFLAGS="$CPPFLAGS -I$with_sasl2/include"
Packit 228f82
		LDFLAGS="$LDFLAGS -L$with_sasl2/lib"
Packit 228f82
	fi
Packit 228f82
		
Packit 228f82
	saved_LIBS="$LIBS"
Packit 228f82
	AC_CHECK_LIB(sasl2, sasl_server_init,,
Packit 228f82
		AC_MSG_ERROR([libsasl must be installed for WSF support]),)
Packit 228f82
	LIBS="$saved_LIBS"
Packit 228f82
	LASSO_LIBS="$LASSO_LIBS -lsasl2"
Packit 228f82
fi
Packit 228f82
Packit 228f82
AC_CHECK_PROGS(REST2HTML, rest2html rst2html)
Packit 228f82
AM_CONDITIONAL(HAVE_REST2HTML, test -n "$ac_cv_prog_REST2HTML")
Packit 228f82
Packit 228f82
AC_CHECK_PROGS(XSLTPROC, xsltproc)
Packit 228f82
AM_CONDITIONAL(HAVE_XSLTPROC, test -n "$ac_cv_prog_XSLTPROC")
Packit 228f82
Packit 228f82
AC_CHECK_PROGS(INKSCAPE, inkscape)
Packit 228f82
AM_CONDITIONAL(HAVE_INKSCAPE, test -n "$ac_cv_prog_INKSCAPE")
Packit 228f82
Packit 228f82
Packit 228f82
dnl Debug 
Packit 228f82
AC_MSG_CHECKING(for debugging) 
Packit 228f82
AC_ARG_ENABLE(debugging,   [  --enable-debugging      enable debuging optimization flags (no)])
Packit 228f82
if test "z$enable_debugging" = "zyes" ; then
Packit 228f82
    enable_debugging=yes
Packit 228f82
    LASSO_DEFINES="$LASSO_DEFINES -DLASSO_DEBUG"
Packit 228f82
    CFLAGS="$CFLAGS -O0 -g -Wall -Wextra -Werror"
Packit 228f82
else
Packit 228f82
    enable_debugging=no
Packit 228f82
fi    
Packit 228f82
AM_CONDITIONAL([DEBUGGING],[test "x$enable_debugging" = "xyes"])
Packit 228f82
AC_MSG_RESULT($enable_debugging)
Packit 228f82
AC_SUBST(DEBUGGING)
Packit 228f82
AC_SUBST(AM_CFLAGS)
Packit 228f82
Packit 228f82
dnl Profiling 
Packit 228f82
AC_MSG_CHECKING(for profiling) 
Packit 228f82
AC_ARG_ENABLE(profiling,   [  --enable-profiling      enable profiling compilation flags (no)])
Packit 228f82
if test "z$enable_profiling" = "zyes" ; then
Packit 228f82
    AM_CFLAGS="$AM_CFLAGS -pg"
Packit 228f82
    AC_MSG_RESULT(yes)
Packit 228f82
else
Packit 228f82
    AC_MSG_RESULT(no)
Packit 228f82
fi 
Packit 228f82
Packit 228f82
dnl ==========================================================================
Packit 228f82
dnl Pedantic compilation
Packit 228f82
dnl ==========================================================================
Packit 228f82
AC_MSG_CHECKING(for pedantic) 
Packit 228f82
AC_ARG_ENABLE(pedantic,   [  --enable-pedantic       enable pedantic compilation flags (no)])
Packit 228f82
if test "z$enable_pedantic" = "zyes" ; then
Packit 228f82
    CFLAGS="$CFLAGS -O -pedantic -Wall -ansi -fno-inline -W -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls"
Packit 228f82
    AC_MSG_RESULT(yes)
Packit 228f82
else
Packit 228f82
    AC_MSG_RESULT(no)
Packit 228f82
fi    
Packit 228f82
Packit 228f82
dnl ==========================================================================
Packit 228f82
dnl Static linking
Packit 228f82
dnl ==========================================================================
Packit 228f82
LASSO_STATIC_BINARIES=""
Packit 228f82
AC_MSG_CHECKING(for static linking) 
Packit 228f82
AC_ARG_ENABLE(static_linking,   [  --enable-static-linking enable static linking (no)])
Packit 228f82
if test "z$enable_static_linking" = "zyes" ; then
Packit 228f82
    LASSO_STATIC_BINARIES="-static"
Packit 228f82
    AC_MSG_RESULT(yes)
Packit 228f82
else
Packit 228f82
    AC_MSG_RESULT(no)
Packit 228f82
fi    
Packit 228f82
AC_SUBST(LASSO_STATIC_BINARIES)
Packit 228f82
Packit 228f82
dnl ==========================================================================
Packit 228f82
dnl Final steps: lasso config
Packit 228f82
dnl ==========================================================================
Packit 228f82
LASSO_PUB_CFLAGS="$LASSO_DEFINES"
Packit 228f82
LASSO_CORE_CFLAGS="$LASSO_CFLAGS $LASSO_DEFINES $Z_CFLAGS -DLASSO_INTERNALS" 
Packit 228f82
if test $MINGW -eq 1; then 
Packit 228f82
  LASSO_CORE_LIBS="-llasso-0"
Packit 228f82
else
Packit 228f82
  LASSO_CORE_LIBS="-llasso "
Packit 228f82
fi
Packit 228f82
AC_SUBST(LASSO_CORE_CFLAGS)
Packit 228f82
AC_SUBST(LASSO_CORE_LIBS)
Packit 228f82
Packit 228f82
LASSO_CFLAGS="$LASSO_CFLAGS"
Packit 228f82
LASSO_LIBS="-L${libdir} $Z_LIBS $LASSO_LIBS"
Packit 228f82
AC_SUBST(LASSO_CFLAGS)
Packit 228f82
AC_SUBST(LASSO_LIBS)
Packit 228f82
Packit 228f82
AC_SUBST(LASSO_PUB_CFLAGS)
Packit 228f82
AC_SUBST(LASSO_DEFINES)
Packit 228f82
AC_SUBST(LASSO_APP_DEFINES)
Packit 228f82
AC_SUBST(CFLAGS)
Packit 228f82
AC_SUBST(CPPFLAGS)
Packit 228f82
AC_SUBST(LDFLAGS)
Packit 228f82
AC_SUBST(CLASSPATH_JUNIT)
Packit 228f82
AC_SUBST(SWIG_VERSION)
Packit 228f82
Packit 228f82
dnl Dirty system often means dirty hacks...
Packit 228f82
AM_CONDITIONAL(MINGW, test $MINGW -eq 1)
Packit 228f82
AM_CONDITIONAL(DARWIN, test $DARWIN -eq 1)
Packit 228f82
Packit 228f82
dnl bindings
Packit 228f82
Packit 228f82
Packit 228f82
dnl ==========================================================================
Packit 228f82
dnl Writing result files
Packit 228f82
dnl ==========================================================================
Packit 228f82
AC_CONFIG_FILES([lasso-src-config], [chmod +x lasso-src-config])
Packit 228f82
AC_OUTPUT(
Packit 228f82
[Makefile
Packit 228f82
docs/Makefile
Packit 228f82
docs/lasso-book/Makefile
Packit 228f82
docs/lasso-book/figures/Makefile
Packit 228f82
docs/reference/Makefile
Packit 228f82
docs/reference/lasso/version.xml
Packit 228f82
docs/reference/lasso/Makefile
Packit 228f82
lasso/Makefile
Packit 228f82
lasso/id-ff/Makefile
Packit 228f82
lasso/id-wsf/Makefile
Packit 228f82
lasso/saml-2.0/Makefile
Packit 228f82
lasso/id-wsf-2.0/Makefile
Packit 228f82
lasso/xml/Makefile
Packit 228f82
lasso/xml/ecp/Makefile
Packit 228f82
lasso/xml/saml-2.0/Makefile
Packit 228f82
lasso/xml/soap-1.1/Makefile
Packit 228f82
lasso/xml/id-wsf-2.0/Makefile
Packit 228f82
lasso/xml/ws/Makefile
Packit 228f82
lasso/xml/dsig/Makefile
Packit 228f82
tests/Makefile
Packit 228f82
tests/data/Makefile
Packit 228f82
lasso.pc
Packit 228f82
win32/Makefile
Packit 228f82
win32/lasso.rc
Packit 228f82
win32/msvc/Makefile
Packit 228f82
win32/msvc/lasso.dsp
Packit 228f82
win32/msvc/lasso_config.h
Packit 228f82
win32/msvc/java/Makefile
Packit 228f82
win32/msvc/php/Makefile
Packit 228f82
win32/msvc/python/Makefile
Packit 228f82
win32/nsis/Makefile
Packit 228f82
win32/nsis/jlasso-lite.nsi
Packit 228f82
win32/nsis/lasso-deps.nsi
Packit 228f82
win32/nsis/lasso-full.nsi
Packit 228f82
win32/nsis/lasso-lite.nsi
Packit 228f82
win32/nsis/python.nsi
Packit 228f82
bindings/Makefile
Packit 228f82
bindings/java/Makefile
Packit 228f82
bindings/python/Makefile
Packit 228f82
bindings/python/tests/Makefile
Packit 228f82
bindings/php5/Makefile
Packit 228f82
bindings/php5/examples/Makefile
Packit 228f82
bindings/php5/tests/Makefile
Packit 228f82
bindings/perl/Makefile
Packit 228f82
])
Packit 228f82
Packit 228f82
languages_available=`echo $languages_available | sed -e "s/^ //" `
Packit 228f82
AC_MSG_RESULT(
Packit 228f82
Packit 228f82
=============
Packit 228f82
Configuration
Packit 228f82
=============
Packit 228f82
Packit 228f82
Main
Packit 228f82
----
Packit 228f82
Packit 228f82
Compiler:                ${CC} 
Packit 228f82
CFLAGS:                  ${AM_CFLAGS} ${CFLAGS}
Packit 228f82
Install prefix:          ${prefix}
Packit 228f82
Debugging:               $enable_debugging
Packit 228f82
Experimental ID-WSF:     $enable_wsf
Packit 228f82
Packit 228f82
Optionals builds
Packit 228f82
----------------
Packit 228f82
  
Packit 228f82
Available languages:    ${languages_available}
Packit 228f82
Packit 228f82
Java binding:           ${enable_java}
Packit 228f82
Perl binding:           ${enable_perl}
Packit 228f82
PHP 5 binding:          ${enable_php5}
Packit 228f82
Python binding:         ${enable_python}
Packit 228f82
Packit 228f82
C API references:       ${enable_gtk_doc}
Packit 228f82
Tests suite:            ${enable_tests}
Packit 228f82
)