Imported Debian patch 0.66.1-1
[hcoop/debian/courier-authlib.git] / libs / rfc822 / configure.ac
similarity index 95%
rename from rfc822/configure.in
rename to libs/rfc822/configure.ac
index 5a88c19..3dc3659 100644 (file)
@@ -1,5 +1,4 @@
 dnl Process this file with autoconf to produce a configure script.
-dnl $Id: configure.in,v 1.21 2009/11/08 18:14:47 mrsam Exp $
 dnl
 dnl Copyright 1998 - 2009 Double Precision, Inc.  See COPYING for
 dnl distribution information.
@@ -9,6 +8,7 @@ AC_INIT(rfc822lib, 0.13, [courier-users@lists.sourceforge.net])
 >confdefs.h  # Kill PACKAGE_ macros
 
 AC_CONFIG_SRCDIR(rfc822.c)
+AC_CONFIG_AUX_DIR(../..)
 AM_INIT_AUTOMAKE([foreign no-define])
 AM_CONFIG_HEADER(config.h)
 
@@ -22,6 +22,8 @@ if test "$GCC" = yes ; then
         CFLAGS="$CFLAGS -Wall"
 fi
 
+CFLAGS="$CFLAGS -I.. -I$srcdir/.."
+
 dnl Checks for libraries.
 
 dnl Checks for header files.
@@ -32,6 +34,7 @@ dnl Checks for typedefs, structures, and compiler characteristics.
 AC_C_CONST
 AC_TYPE_SIZE_T
 AC_STRUCT_TM
+AC_SYS_LARGEFILE
 
 dnl Checks for library functions.
 
@@ -118,4 +121,5 @@ esac
 
 AM_CONDITIONAL(HAVE_SGML, test -d ${srcdir}/../docbook)
 
+echo "libidn=$libidn" >rfc822.config
 AC_OUTPUT(Makefile)