many changes

This commit is contained in:
Andreas Volz 2008-07-22 22:34:47 +02:00
parent af6e9da658
commit 7841877d64
49 changed files with 208 additions and 221 deletions

View file

@ -1,63 +0,0 @@
dnl AX_CONFIG_PRIVATE_HEADER
dnl
dnl Parameter 1: Output file for private config header (Default: config-private.h)
dnl Parameter 2: Library name
dnl Parameter 3: define for header include (Default: HAVE_capitalize(Library name)_CONFIG_H
dnl needs to be redefined if library name containes a char that isn't allowed in #define
dnl
AC_DEFUN([AX_CONFIG_PRIVATE_HEADER],
[
if test x$# = x0; then
dnl define a fallback output if nothing given
CONFIG_HEADER="config-private.h"
else
CONFIG_HEADER=$1
fi
CF_NAME=`basename $1`
DATE=`date`
dnl Create new file or empty it
echo "/* File: $CF_NAME generated on $DATE */" > $CONFIG_HEADER
if test x$# = x2; then
echo "" >> $CONFIG_HEADER
echo "/* Build configuration for $2 */" >> $CONFIG_HEADER
fi
echo "" >> $CONFIG_HEADER
if test x$# = x3; then
PRIVATE_CFLAGS="-D$3"
else
PRIVATE_CFLAGS="-DHAVE_$2_CONFIG_H"
fi
AC_SUBST(PRIVATE_CFLAGS)
])dnl
dnl AX_DEFINE_PRIVATE
dnl
dnl
dnl
dnl
dnl
AC_DEFUN([AX_DEFINE_PRIVATE],
[
if test x$# = x1; then
echo "#define $1" >> $CONFIG_HEADER
echo "" >> $CONFIG_HEADER
elif test x$# = x2; then
echo "#define $1 $2" >> $CONFIG_HEADER
echo "" >> $CONFIG_HEADER
elif test x$# = x3; then
echo "/* $3 */" >> $CONFIG_HEADER
echo "#define $1 $2" >> $CONFIG_HEADER
echo "" >> $CONFIG_HEADER
fi
])dnl