/[classpath]/inetlib/aclocal.m4
ViewVC logotype

Diff of /inetlib/aclocal.m4

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.16 by dog, Mon Feb 14 20:22:08 2005 UTC revision 1.17 by dog, Sat Apr 23 15:09:55 2005 UTC
# Line 1  Line 1 
1  # aclocal.m4 generated automatically by aclocal 1.6.3 -*- Autoconf -*-  # generated automatically by aclocal 1.9.5 -*- Autoconf -*-
2    
3  # Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002  # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4  # Free Software Foundation, Inc.  # 2005  Free Software Foundation, Inc.
5  # This file is free software; the Free Software Foundation  # This file is free software; the Free Software Foundation
6  # gives unlimited permission to copy and/or distribute it,  # gives unlimited permission to copy and/or distribute it,
7  # with or without modifications, as long as this notice is preserved.  # with or without modifications, as long as this notice is preserved.
# Line 11  Line 11 
11  # even the implied warranty of MERCHANTABILITY or FITNESS FOR A  # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12  # PARTICULAR PURPOSE.  # PARTICULAR PURPOSE.
13    
14  dnl  # Copyright (C) 2002, 2003, 2005  Free Software Foundation, Inc.
15  dnl @synopsis AC_CHECK_CLASS  #
16  dnl  # This file is free software; the Free Software Foundation
17  dnl AC_CHECK_CLASS tests the existence of a given Java class, either in  # gives unlimited permission to copy and/or distribute it,
18  dnl a jar or in a '.class' file.  # with or without modifications, as long as this notice is preserved.
 dnl  
 dnl *Warning*: its success or failure can depend on a proper setting of the  
 dnl CLASSPATH env. variable.  
 dnl  
 dnl Note: This is part of the set of autoconf M4 macros for Java programs.  
 dnl It is VERY IMPORTANT that you download the whole set, some  
 dnl macros depend on other. Unfortunately, the autoconf archive does not  
 dnl support the concept of set of macros, so I had to break it for  
 dnl submission.  
 dnl The general documentation, as well as the sample configure.in, is  
 dnl included in the AC_PROG_JAVA macro.  
 dnl  
 dnl @author Stephane Bortzmeyer <bortzmeyer@pasteur.fr>  
 dnl @version $Id$  
 dnl  
 AC_DEFUN(AC_CHECK_CLASS,[  
 AC_REQUIRE([AC_PROG_JAVA])  
 ac_var_name=`echo $1 | sed 's/\./_/g'`  
 dnl Normaly I'd use a AC_CACHE_CHECK here but since the variable name is  
 dnl dynamic I need an extra level of extraction  
 AC_MSG_CHECKING([for class $1])  
 AC_CACHE_VAL(ac_cv_class_$ac_var_name, [  
 if test x$ac_cv_prog_uudecode_base64 = xyes; then  
 dnl /**  
 dnl  * Test.java: used to test dynamicaly if a class exists.  
 dnl  */  
 dnl public class Test  
 dnl {  
 dnl  
 dnl public static void  
 dnl main( String[] argv )  
 dnl {  
 dnl     Class lib;  
 dnl     if (argv.length < 1)  
 dnl      {  
 dnl             System.err.println ("Missing argument");  
 dnl             System.exit (77);  
 dnl      }  
 dnl     try  
 dnl      {  
 dnl             lib = Class.forName (argv[0]);  
 dnl      }  
 dnl     catch (ClassNotFoundException e)  
 dnl      {  
 dnl             System.exit (1);  
 dnl      }  
 dnl     lib = null;  
 dnl     System.exit (0);  
 dnl }  
 dnl  
 dnl }  
 cat << \EOF > Test.uue  
 begin-base64 644 Test.class  
 yv66vgADAC0AKQcAAgEABFRlc3QHAAQBABBqYXZhL2xhbmcvT2JqZWN0AQAE  
 bWFpbgEAFihbTGphdmEvbGFuZy9TdHJpbmc7KVYBAARDb2RlAQAPTGluZU51  
 bWJlclRhYmxlDAAKAAsBAANlcnIBABVMamF2YS9pby9QcmludFN0cmVhbTsJ  
 AA0ACQcADgEAEGphdmEvbGFuZy9TeXN0ZW0IABABABBNaXNzaW5nIGFyZ3Vt  
 ZW50DAASABMBAAdwcmludGxuAQAVKExqYXZhL2xhbmcvU3RyaW5nOylWCgAV  
 ABEHABYBABNqYXZhL2lvL1ByaW50U3RyZWFtDAAYABkBAARleGl0AQAEKEkp  
 VgoADQAXDAAcAB0BAAdmb3JOYW1lAQAlKExqYXZhL2xhbmcvU3RyaW5nOylM  
 amF2YS9sYW5nL0NsYXNzOwoAHwAbBwAgAQAPamF2YS9sYW5nL0NsYXNzBwAi  
 AQAgamF2YS9sYW5nL0NsYXNzTm90Rm91bmRFeGNlcHRpb24BAAY8aW5pdD4B  
 AAMoKVYMACMAJAoAAwAlAQAKU291cmNlRmlsZQEACVRlc3QuamF2YQAhAAEA  
 AwAAAAAAAgAJAAUABgABAAcAAABtAAMAAwAAACkqvgSiABCyAAwSD7YAFBBN  
 uAAaKgMyuAAeTKcACE0EuAAaAUwDuAAasQABABMAGgAdACEAAQAIAAAAKgAK  
 AAAACgAAAAsABgANAA4ADgATABAAEwASAB4AFgAiABgAJAAZACgAGgABACMA  
 JAABAAcAAAAhAAEAAQAAAAUqtwAmsQAAAAEACAAAAAoAAgAAAAQABAAEAAEA  
 JwAAAAIAKA==  
 ====  
 EOF  
                 if uudecode$EXEEXT Test.uue; then  
                         :  
                 else  
                         echo "configure: __oline__: uudecode had trouble decoding base 64 file 'Test.uue'" >&AC_FD_CC  
                         echo "configure: failed file was:" >&AC_FD_CC  
                         cat Test.uue >&AC_FD_CC  
                         ac_cv_prog_uudecode_base64=no  
                 fi  
         rm -f Test.uue  
         if AC_TRY_COMMAND($JAVA -classpath ".:$CLASSPATH" $JAVAFLAGS Test $1) >/dev/null 2>&1; then  
                 eval "ac_cv_class_$ac_var_name=yes"  
         else  
                 eval "ac_cv_class_$ac_var_name=no"  
         fi  
         rm -f Test.class  
 else  
         AC_TRY_COMPILE_JAVA([$1], , [eval "ac_cv_class_$ac_var_name=yes"],  
                 [eval "ac_cv_class_$ac_var_name=no"])  
 fi  
 eval "ac_var_val=$`eval echo ac_cv_class_$ac_var_name`"  
 eval "HAVE_$ac_var_name=$`echo ac_cv_class_$ac_var_val`"  
 HAVE_LAST_CLASS=$ac_var_val  
 if test x$ac_var_val = xyes; then  
         ifelse([$2], , :, [$2])  
 else  
         ifelse([$3], , :, [$3])  
 fi  
 ])  
 dnl for some reason the above statment didn't fall though here?  
 dnl do scripts have variable scoping?  
 eval "ac_var_val=$`eval echo ac_cv_class_$ac_var_name`"  
 AC_MSG_RESULT($ac_var_val)  
 ])  
 dnl @synopsis AC_CHECK_CLASSPATH  
 dnl  
 dnl AC_CHECK_CLASSPATH just displays the CLASSPATH, for the edification  
 dnl of the user.  
 dnl  
 dnl Note: This is part of the set of autoconf M4 macros for Java programs.  
 dnl It is VERY IMPORTANT that you download the whole set, some  
 dnl macros depend on other. Unfortunately, the autoconf archive does not  
 dnl support the concept of set of macros, so I had to break it for  
 dnl submission.  
 dnl The general documentation, as well as the sample configure.in, is  
 dnl included in the AC_PROG_JAVA macro.  
 dnl  
 dnl @author Stephane Bortzmeyer <bortzmeyer@pasteur.fr>  
 dnl @version $Id$  
 dnl  
 AC_DEFUN(AC_CHECK_CLASSPATH,[  
 if test "x$CLASSPATH" = x; then  
         echo "You have no CLASSPATH, I hope it is good"  
 else  
         echo "You have CLASSPATH $CLASSPATH, hope it is correct"  
 fi  
 ])  
   
19    
20    # AM_AUTOMAKE_VERSION(VERSION)
21    # ----------------------------
22    # Automake X.Y traces this macro to ensure aclocal.m4 has been
23    # generated from the m4 files accompanying Automake X.Y.
24    AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
25    
26  dnl @synopsis AC_CHECK_JUNIT  # AM_SET_CURRENT_AUTOMAKE_VERSION
27  dnl  # -------------------------------
28  dnl AC_CHECK_JUNIT tests the availability of the Junit testing  # Call AM_AUTOMAKE_VERSION so it can be traced.
29  dnl framework, and set some variables for conditional compilation  # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
30  dnl of the test suite by automake.  AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
31  dnl           [AM_AUTOMAKE_VERSION([1.9.5])])
 dnl If available, JUNIT is set to a command launching the text  
 dnl based user interface of Junit, @JAVA_JUNIT@ is set to $JAVA_JUNIT  
 dnl and @TESTS_JUNIT@ is set to $TESTS_JUNIT, otherwise they are set  
 dnl to empty values.  
 dnl  
 dnl You can use these variables in your Makefile.am file like this :  
 dnl  
 dnl  # Some of the following classes are built only if junit is available  
 dnl  JAVA_JUNIT  = Class1Test.java Class2Test.java AllJunitTests.java  
 dnl  
 dnl  noinst_JAVA = Example1.java Example2.java @JAVA_JUNIT@  
 dnl  
 dnl  EXTRA_JAVA  = $(JAVA_JUNIT)  
 dnl  
 dnl  TESTS_JUNIT = AllJunitTests  
 dnl  
 dnl  TESTS       = StandaloneTest1 StandaloneTest2 @TESTS_JUNIT@  
 dnl  
 dnl  EXTRA_TESTS = $(TESTS_JUNIT)  
 dnl  
 dnl  AllJunitTests :  
 dnl     echo "#! /bin/sh" > $@  
 dnl     echo "exec @JUNIT@ my.package.name.AllJunitTests" >> $@  
 dnl     chmod +x $@  
 dnl  
 dnl @author Luc Maisonobe  
 dnl @version $Id$  
 dnl  
 AC_DEFUN([AC_CHECK_JUNIT],[  
 AC_CACHE_VAL(ac_cv_prog_JUNIT,[  
 AC_CHECK_CLASS(junit.textui.TestRunner)  
 if test x"`eval 'echo $ac_cv_class_junit_textui_TestRunner'`" != xno ; then  
   ac_cv_prog_JUNIT='$(CLASSPATH_ENV) $(JAVA) $(JAVAFLAGS) junit.textui.TestRunner'  
 fi])  
 AC_MSG_CHECKING([for junit])  
 if test x"`eval 'echo $ac_cv_prog_JUNIT'`" != x ; then  
   JUNIT="$ac_cv_prog_JUNIT"  
   JAVA_JUNIT='$(JAVA_JUNIT)'  
   TESTS_JUNIT='$(TESTS_JUNIT)'  
 else  
   JUNIT=  
   JAVA_JUNIT=  
   TESTS_JUNIT=  
 fi  
 AC_MSG_RESULT($JAVA_JUNIT)  
 AC_SUBST(JUNIT)  
 AC_SUBST(JAVA_JUNIT)  
 AC_SUBST(TESTS_JUNIT)])  
 dnl @synopsis AC_CHECK_RQRD_CLASS  
 dnl  
 dnl AC_CHECK_RQRD_CLASS tests the existence of a given Java class, either in  
 dnl a jar or in a '.class' file and fails if it doesn't exist.  
 dnl Its success or failure can depend on a proper setting of the  
 dnl CLASSPATH env. variable.  
 dnl  
 dnl Note: This is part of the set of autoconf M4 macros for Java programs.  
 dnl It is VERY IMPORTANT that you download the whole set, some  
 dnl macros depend on other. Unfortunately, the autoconf archive does not  
 dnl support the concept of set of macros, so I had to break it for  
 dnl submission.  
 dnl The general documentation, as well as the sample configure.in, is  
 dnl included in the AC_PROG_JAVA macro.  
 dnl  
 dnl @author Stephane Bortzmeyer <bortzmeyer@pasteur.fr>  
 dnl @version $Id$  
 dnl  
   
 AC_DEFUN(AC_CHECK_RQRD_CLASS,[  
 CLASS=`echo $1|sed 's/\./_/g'`  
 AC_CHECK_CLASS($1)  
 if test "$HAVE_LAST_CLASS" = "no"; then  
         AC_MSG_ERROR([Required class $1 missing, exiting.])  
 fi  
 ])  
 dnl @synopsis AC_JAVA_OPTIONS  
 dnl  
 dnl AC_JAVA_OPTIONS adds configure command line options used for Java m4  
 dnl macros. This Macro is optional.  
 dnl  
 dnl Note: This is part of the set of autoconf M4 macros for Java programs.  
 dnl It is VERY IMPORTANT that you download the whole set, some  
 dnl macros depend on other. Unfortunately, the autoconf archive does not  
 dnl support the concept of set of macros, so I had to break it for  
 dnl submission.  
 dnl The general documentation, as well as the sample configure.in, is  
 dnl included in the AC_PROG_JAVA macro.  
 dnl  
 dnl @author Devin Weaver <ktohg@tritarget.com>  
 dnl @version $Id$  
 dnl  
 AC_DEFUN(AC_JAVA_OPTIONS,[  
 AC_ARG_WITH(java-prefix,  
                         [  --with-java-prefix=PREFIX  prefix where Java runtime is installed (optional)],  
                         JAVAPREFIX="$withval")  
 AC_ARG_WITH(javac-flags,  
                         [  --with-javac-flags=FLAGS flags to pass to the Java compiler (optional)],  
                         JAVACFLAGS="$withval")  
 AC_ARG_WITH(java-flags,  
                         [  --with-java-flags=FLAGS flags to pass to the Java VM (optional)],  
                         JAVAFLAGS="$withval")  
 AC_ARG_WITH(javac,  
                         [  --with-javac=Java compiler to use (optional)],  
                         JAVAC="$withval")  
 AC_SUBST(JAVAPREFIX)dnl  
 AC_SUBST(JAVACFLAGS)dnl  
 AC_SUBST(JAVAFLAGS)dnl  
 AC_SUBST(JAVA)dnl  
 AC_SUBST(JAVAC)dnl  
 ])  
 dnl @synopsis AC_PROG_JAR  
 dnl  
 dnl AC_PROG_JAR tests for an existing jar program. It uses the environment  
 dnl variable JAR then tests in sequence various common jar programs.  
 dnl  
 dnl If you want to force a specific compiler:  
 dnl  
 dnl - at the configure.in level, set JAR=yourcompiler before calling  
 dnl AC_PROG_JAR  
 dnl  
 dnl - at the configure level, setenv JAR  
 dnl  
 dnl You can use the JAR variable in your Makefile.in, with @JAR@.  
 dnl  
 dnl Note: This macro depends on the autoconf M4 macros for Java programs.  
 dnl It is VERY IMPORTANT that you download that whole set, some  
 dnl macros depend on other. Unfortunately, the autoconf archive does not  
 dnl support the concept of set of macros, so I had to break it for  
 dnl submission.  
 dnl  
 dnl The general documentation of those macros, as well as the sample  
 dnl configure.in, is included in the AC_PROG_JAVA macro.  
 dnl  
 dnl @author Egon Willighagen <egonw@sci.kun.nl>  
 dnl @version $Id$  
 dnl  
 AC_DEFUN([AC_PROG_JAR],[  
 AC_REQUIRE([AC_EXEEXT])dnl  
 if test "x$JAVAPREFIX" = x; then  
         test "x$JAR" = x && AC_CHECK_PROGS(JAR, jar$EXEEXT)  
 else  
         test "x$JAR" = x && AC_CHECK_PROGS(JAR, jar, $JAVAPREFIX)  
 fi  
 test "x$JAR" = x && AC_MSG_ERROR([no acceptable jar program found in \$PATH])  
 AC_PROVIDE([$0])dnl  
 ])  
 dnl @synopsis AC_PROG_JAVA  
 dnl  
 dnl Here is a summary of the main macros:  
 dnl  
 dnl AC_PROG_JAVAC: finds a Java compiler.  
 dnl  
 dnl AC_PROG_JAVA: finds a Java virtual machine.  
 dnl  
 dnl AC_CHECK_CLASS: finds if we have the given class (beware of CLASSPATH!).  
 dnl  
 dnl AC_CHECK_RQRD_CLASS: finds if we have the given class and stops otherwise.  
 dnl  
 dnl AC_TRY_COMPILE_JAVA: attempt to compile user given source.  
 dnl  
 dnl AC_TRY_RUN_JAVA: attempt to compile and run user given source.  
 dnl  
 dnl AC_JAVA_OPTIONS: adds Java configure options.  
 dnl  
 dnl AC_PROG_JAVA tests an existing Java virtual machine. It uses the  
 dnl environment variable JAVA then tests in sequence various common Java  
 dnl virtual machines. For political reasons, it starts with the free ones.  
 dnl You *must* call [AC_PROG_JAVAC] before.  
 dnl  
 dnl If you want to force a specific VM:  
 dnl  
 dnl - at the configure.in level, set JAVA=yourvm before calling AC_PROG_JAVA  
 dnl   (but after AC_INIT)  
 dnl  
 dnl - at the configure level, setenv JAVA  
 dnl  
 dnl You can use the JAVA variable in your Makefile.in, with @JAVA@.  
 dnl  
 dnl *Warning*: its success or failure can depend on a proper setting of the  
 dnl CLASSPATH env. variable.  
 dnl  
 dnl TODO: allow to exclude virtual machines (rationale: most Java programs  
 dnl cannot run with some VM like kaffe).  
 dnl  
 dnl Note: This is part of the set of autoconf M4 macros for Java programs.  
 dnl It is VERY IMPORTANT that you download the whole set, some  
 dnl macros depend on other. Unfortunately, the autoconf archive does not  
 dnl support the concept of set of macros, so I had to break it for  
 dnl submission.  
 dnl  
 dnl A Web page, with a link to the latest CVS snapshot is at  
 dnl <http://www.internatif.org/bortzmeyer/autoconf-Java/>.  
 dnl  
 dnl This is a sample configure.in  
 dnl Process this file with autoconf to produce a configure script.  
 dnl  
 dnl    AC_INIT(UnTag.java)  
 dnl  
 dnl    dnl Checks for programs.  
 dnl    AC_CHECK_CLASSPATH  
 dnl    AC_PROG_JAVAC  
 dnl    AC_PROG_JAVA  
 dnl  
 dnl    dnl Checks for classes  
 dnl    AC_CHECK_RQRD_CLASS(org.xml.sax.Parser)  
 dnl    AC_CHECK_RQRD_CLASS(com.jclark.xml.sax.Driver)  
 dnl  
 dnl    AC_OUTPUT(Makefile)  
 dnl  
 dnl @author Stephane Bortzmeyer <bortzmeyer@pasteur.fr>  
 dnl @version $Id$  
 dnl  
 AC_DEFUN(AC_PROG_JAVA,[  
 AC_REQUIRE([AC_EXEEXT])dnl  
 if test x$JAVAPREFIX = x; then  
         test x$JAVA = x && AC_CHECK_PROGS(JAVA, java$EXEEXT kaffe$EXEEXT)  
 else  
         test x$JAVA = x && AC_CHECK_PROGS(JAVA, java$EXEEXT kaffe$EXEEXT, $JAVAPREFIX)  
 fi  
 test x$JAVA = x && AC_MSG_ERROR([no acceptable Java virtual machine found in \$PATH])  
 AC_PROG_JAVA_WORKS  
 AC_PROVIDE([$0])dnl  
 ])  
 dnl @synopsis AC_PROG_JAVA_WORKS  
 dnl  
 dnl Internal use ONLY.  
 dnl  
 dnl Note: This is part of the set of autoconf M4 macros for Java programs.  
 dnl It is VERY IMPORTANT that you download the whole set, some  
 dnl macros depend on other. Unfortunately, the autoconf archive does not  
 dnl support the concept of set of macros, so I had to break it for  
 dnl submission.  
 dnl The general documentation, as well as the sample configure.in, is  
 dnl included in the AC_PROG_JAVA macro.  
 dnl  
 dnl @author Stephane Bortzmeyer <bortzmeyer@pasteur.fr>  
 dnl @version $Id$  
 dnl  
 AC_DEFUN(AC_PROG_JAVA_WORKS, [  
 AC_CHECK_PROG(uudecode, uudecode$EXEEXT, yes)  
 if test x$uudecode = xyes; then  
 AC_CACHE_CHECK([if uudecode can decode base 64 file], ac_cv_prog_uudecode_base64, [  
 dnl /**  
 dnl  * Test.java: used to test if java compiler works.  
 dnl  */  
 dnl public class Test  
 dnl {  
 dnl  
 dnl public static void  
 dnl main( String[] argv )  
 dnl {  
 dnl     System.exit (0);  
 dnl }  
 dnl  
 dnl }  
 cat << \EOF > Test.uue  
 begin-base64 644 Test.class  
 yv66vgADAC0AFQcAAgEABFRlc3QHAAQBABBqYXZhL2xhbmcvT2JqZWN0AQAE  
 bWFpbgEAFihbTGphdmEvbGFuZy9TdHJpbmc7KVYBAARDb2RlAQAPTGluZU51  
 bWJlclRhYmxlDAAKAAsBAARleGl0AQAEKEkpVgoADQAJBwAOAQAQamF2YS9s  
 YW5nL1N5c3RlbQEABjxpbml0PgEAAygpVgwADwAQCgADABEBAApTb3VyY2VG  
 aWxlAQAJVGVzdC5qYXZhACEAAQADAAAAAAACAAkABQAGAAEABwAAACEAAQAB  
 AAAABQO4AAyxAAAAAQAIAAAACgACAAAACgAEAAsAAQAPABAAAQAHAAAAIQAB  
 AAEAAAAFKrcAErEAAAABAAgAAAAKAAIAAAAEAAQABAABABMAAAACABQ=  
 ====  
 EOF  
 if uudecode$EXEEXT Test.uue; then  
         ac_cv_prog_uudecode_base64=yes  
 else  
         echo "configure: __oline__: uudecode had trouble decoding base 64 file 'Test.uue'" >&AC_FD_CC  
         echo "configure: failed file was:" >&AC_FD_CC  
         cat Test.uue >&AC_FD_CC  
         ac_cv_prog_uudecode_base64=no  
 fi  
 rm -f Test.uue])  
 fi  
 if test x$ac_cv_prog_uudecode_base64 != xyes; then  
         rm -f Test.class  
         AC_MSG_WARN([I have to compile Test.class from scratch])  
         if test x$ac_cv_prog_javac_works = xno; then  
                 AC_MSG_ERROR([Cannot compile java source. $JAVAC does not work properly])  
         fi  
         if test x$ac_cv_prog_javac_works = x; then  
                 AC_PROG_JAVAC  
         fi  
 fi  
 AC_CACHE_CHECK(if $JAVA works, ac_cv_prog_java_works, [  
 JAVA_TEST=Test.java  
 CLASS_TEST=Test.class  
 TEST=Test  
 changequote(, )dnl  
 cat << \EOF > $JAVA_TEST  
 /* [#]line __oline__ "configure" */  
 public class Test {  
 public static void main (String args[]) {  
         System.exit (0);  
 } }  
 EOF  
 changequote([, ])dnl  
 if test x$ac_cv_prog_uudecode_base64 != xyes; then  
         if AC_TRY_COMMAND($JAVAC $JAVACFLAGS $JAVA_TEST) && test -s $CLASS_TEST; then  
                 :  
         else  
           echo "configure: failed program was:" >&AC_FD_CC  
           cat $JAVA_TEST >&AC_FD_CC  
           AC_MSG_ERROR(The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?))  
         fi  
 fi  
 if AC_TRY_COMMAND($JAVA $JAVAFLAGS -classpath ".:$CLASSPATH" $TEST) >/dev/null 2>&1; then  
   ac_cv_prog_java_works=yes  
 else  
   echo "configure: failed program was:" >&AC_FD_CC  
   cat $JAVA_TEST >&AC_FD_CC  
   AC_MSG_ERROR(The Java VM $JAVA failed (see config.log, check the CLASSPATH?))  
 fi  
 rm -fr $JAVA_TEST $CLASS_TEST Test.uue  
 ])  
 AC_PROVIDE([$0])dnl  
 ]  
 )  
 dnl @synopsis AC_PROG_JAVAC  
 dnl  
 dnl AC_PROG_JAVAC tests an existing Java compiler. It uses the environment  
 dnl variable JAVAC then tests in sequence various common Java compilers. For  
 dnl political reasons, it starts with the free ones.  
 dnl  
 dnl If you want to force a specific compiler:  
 dnl  
 dnl - at the configure.in level, set JAVAC=yourcompiler before calling  
 dnl AC_PROG_JAVAC  
 dnl  
 dnl - at the configure level, setenv JAVAC  
 dnl  
 dnl You can use the JAVAC variable in your Makefile.in, with @JAVAC@.  
 dnl  
 dnl *Warning*: its success or failure can depend on a proper setting of the  
 dnl CLASSPATH env. variable.  
 dnl  
 dnl TODO: allow to exclude compilers (rationale: most Java programs cannot compile  
 dnl with some compilers like guavac).  
 dnl  
 dnl Note: This is part of the set of autoconf M4 macros for Java programs.  
 dnl It is VERY IMPORTANT that you download the whole set, some  
 dnl macros depend on other. Unfortunately, the autoconf archive does not  
 dnl support the concept of set of macros, so I had to break it for  
 dnl submission.  
 dnl The general documentation, as well as the sample configure.in, is  
 dnl included in the AC_PROG_JAVA macro.  
 dnl  
 dnl @author Stephane Bortzmeyer <bortzmeyer@pasteur.fr>  
 dnl @version $Id$  
 dnl  
 AC_DEFUN(AC_PROG_JAVAC,[  
 AC_REQUIRE([AC_EXEEXT])dnl  
 if test "x$JAVAPREFIX" = x; then  
         test "x$JAVAC" = x && AC_CHECK_PROGS(JAVAC, "gcj$EXEEXT -C" guavac$EXEEXT jikes$EXEEXT javac$EXEEXT)  
 else  
         test "x$JAVAC" = x && AC_CHECK_PROGS(JAVAC, "gcj$EXEEXT -C" guavac$EXEEXT jikes$EXEEXT javac$EXEEXT, $JAVAPREFIX)  
 fi  
 test "x$JAVAC" = x && AC_MSG_ERROR([no acceptable Java compiler found in \$PATH])  
 AC_PROG_JAVAC_WORKS  
 AC_PROVIDE([$0])dnl  
 ])  
 dnl @synopsis AC_PROG_JAVAC_WORKS  
 dnl  
 dnl Internal use ONLY.  
 dnl  
 dnl Note: This is part of the set of autoconf M4 macros for Java programs.  
 dnl It is VERY IMPORTANT that you download the whole set, some  
 dnl macros depend on other. Unfortunately, the autoconf archive does not  
 dnl support the concept of set of macros, so I had to break it for  
 dnl submission.  
 dnl The general documentation, as well as the sample configure.in, is  
 dnl included in the AC_PROG_JAVA macro.  
 dnl  
 dnl @author Stephane Bortzmeyer <bortzmeyer@pasteur.fr>  
 dnl @version $Id$  
 dnl  
 AC_DEFUN(AC_PROG_JAVAC_WORKS,[  
 AC_CACHE_CHECK([if $JAVAC works], ac_cv_prog_javac_works, [  
 JAVA_TEST=Test.java  
 CLASS_TEST=Test.class  
 cat << \EOF > $JAVA_TEST  
 /* [#]line __oline__ "configure" */  
 public class Test {  
 }  
 EOF  
 if AC_TRY_COMMAND($JAVAC $JAVACFLAGS $JAVA_TEST) >/dev/null 2>&1; then  
   ac_cv_prog_javac_works=yes  
 else  
   AC_MSG_ERROR([The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)])  
   echo "configure: failed program was:" >&AC_FD_CC  
   cat $JAVA_TEST >&AC_FD_CC  
 fi  
 rm -f $JAVA_TEST $CLASS_TEST  
 ])  
 AC_PROVIDE([$0])dnl  
 ])  
 dnl @synopsis AC_PROG_JAVADOC  
 dnl  
 dnl AC_PROG_JAVADOC tests for an existing javadoc generator. It uses the environment  
 dnl variable JAVADOC then tests in sequence various common javadoc generator.  
 dnl  
 dnl If you want to force a specific compiler:  
 dnl  
 dnl - at the configure.in level, set JAVADOC=yourgenerator before calling  
 dnl AC_PROG_JAVADOC  
 dnl  
 dnl - at the configure level, setenv JAVADOC  
 dnl  
 dnl You can use the JAVADOC variable in your Makefile.in, with @JAVADOC@.  
 dnl  
 dnl Note: This macro depends on the autoconf M4 macros for Java programs.  
 dnl It is VERY IMPORTANT that you download that whole set, some  
 dnl macros depend on other. Unfortunately, the autoconf archive does not  
 dnl support the concept of set of macros, so I had to break it for  
 dnl submission.  
 dnl  
 dnl The general documentation of those macros, as well as the sample  
 dnl configure.in, is included in the AC_PROG_JAVA macro.  
 dnl  
 dnl @author Egon Willighagen <egonw@sci.kun.nl>  
 dnl @version $Id$  
 dnl  
 AC_DEFUN([AC_PROG_JAVADOC],[  
 AC_REQUIRE([AC_EXEEXT])dnl  
 if test "x$JAVAPREFIX" = x; then  
         test "x$JAVADOC" = x && AC_CHECK_PROGS(JAVADOC, javadoc$EXEEXT)  
 else  
         test "x$JAVADOC" = x && AC_CHECK_PROGS(JAVADOC, javadoc, $JAVAPREFIX)  
 fi  
 test "x$JAVADOC" = x && AC_MSG_ERROR([no acceptable javadoc generator found in \$PATH])  
 AC_PROVIDE([$0])dnl  
 ])  
32    
33  dnl @synopsis AC_PROG_JAVAH  # AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
 dnl  
 dnl AC_PROG_JAVAH tests the availability of the javah header generator  
 dnl and looks for the jni.h header file. If available, JAVAH is set to  
 dnl the full path of javah and CPPFLAGS is updated accordingly.  
 dnl  
 dnl @author Luc Maisonobe  
 dnl @version $Id$  
 dnl  
 AC_DEFUN([AC_PROG_JAVAH],[  
 AC_REQUIRE([AC_CANONICAL_SYSTEM])dnl  
 AC_REQUIRE([AC_PROG_CPP])dnl  
 AC_PATH_PROG(JAVAH,javah)  
 if test x"`eval 'echo $ac_cv_path_JAVAH'`" != x ; then  
   AC_TRY_CPP([#include <jni.h>],,[  
     ac_save_CPPFLAGS="$CPPFLAGS"  
 changequote(, )dnl  
     ac_dir=`echo $ac_cv_path_JAVAH | sed 's,\(.*\)/[^/]*/[^/]*$,\1/include,'`  
     ac_machdep=`echo $build_os | sed 's,[-0-9].*,,'`  
 changequote([, ])dnl  
     CPPFLAGS="$ac_save_CPPFLAGS -I$ac_dir -I$ac_dir/$ac_machdep"  
     AC_TRY_CPP([#include <jni.h>],  
                ac_save_CPPFLAGS="$CPPFLAGS",  
                AC_MSG_WARN([unable to include <jni.h>]))  
     CPPFLAGS="$ac_save_CPPFLAGS"])  
 fi])  
 dnl @synopsis AC_TRY_COMPILE_JAVA  
 dnl  
 dnl AC_TRY_COMPILE_JAVA attempt to compile user given source.  
 dnl  
 dnl *Warning*: its success or failure can depend on a proper setting of the  
 dnl CLASSPATH env. variable.  
 dnl  
 dnl Note: This is part of the set of autoconf M4 macros for Java programs.  
 dnl It is VERY IMPORTANT that you download the whole set, some  
 dnl macros depend on other. Unfortunately, the autoconf archive does not  
 dnl support the concept of set of macros, so I had to break it for  
 dnl submission.  
 dnl The general documentation, as well as the sample configure.in, is  
 dnl included in the AC_PROG_JAVA macro.  
 dnl  
 dnl @author Devin Weaver <ktohg@tritarget.com>  
 dnl @version $Id$  
 dnl  
 AC_DEFUN(AC_TRY_COMPILE_JAVA,[  
 AC_REQUIRE([AC_PROG_JAVAC])dnl  
 cat << \EOF > Test.java  
 /* [#]line __oline__ "configure" */  
 ifelse([$1], , , [import $1;])  
 public class Test {  
 [$2]  
 }  
 EOF  
 if AC_TRY_COMMAND($JAVAC $JAVACFLAGS Test.java) && test -s Test.class  
 then  
 dnl Don't remove the temporary files here, so they can be examined.  
   ifelse([$3], , :, [$3])  
 else  
   echo "configure: failed program was:" >&AC_FD_CC  
   cat Test.java >&AC_FD_CC  
 ifelse([$4], , , [  rm -fr Test*  
   $4  
 ])dnl  
 fi  
 rm -fr Test*])  
 dnl @synopsis AC_TRY_RUN_JAVA  
 dnl  
 dnl AC_TRY_RUN_JAVA attempt to compile and run user given source.  
 dnl  
 dnl *Warning*: its success or failure can depend on a proper setting of the  
 dnl CLASSPATH env. variable.  
 dnl  
 dnl Note: This is part of the set of autoconf M4 macros for Java programs.  
 dnl It is VERY IMPORTANT that you download the whole set, some  
 dnl macros depend on other. Unfortunately, the autoconf archive does not  
 dnl support the concept of set of macros, so I had to break it for  
 dnl submission.  
 dnl The general documentation, as well as the sample configure.in, is  
 dnl included in the AC_PROG_JAVA macro.  
 dnl  
 dnl @author Devin Weaver <ktohg@tritarget.com>  
 dnl @version $Id$  
 dnl  
 AC_DEFUN(AC_TRY_RUN_JAVA,[  
 AC_REQUIRE([AC_PROG_JAVAC])dnl  
 AC_REQUIRE([AC_PROG_JAVA])dnl  
 cat << \EOF > Test.java  
 /* [#]line __oline__ "configure" */  
 ifelse([$1], , , [include $1;])  
 public class Test {  
 [$2]  
 }  
 EOF  
 if AC_TRY_COMMAND($JAVAC $JAVACFLAGS Test.java) && test -s Test.class && ($JAVA $JAVAFLAGS -classpath ".:$CLASSPATH" Test; exit) 2>/dev/null  
 then  
 dnl Don't remove the temporary files here, so they can be examined.  
   ifelse([$3], , :, [$3])  
 else  
   echo "configure: failed program was:" >&AC_FD_CC  
   cat Test.java >&AC_FD_CC  
 ifelse([$4], , , [  rm -fr Test*  
   $4  
 ])dnl  
 fi  
 rm -fr Test*])  
 dnl @synopsis AC_TRY_RUN_JAVA  
 dnl  
 dnl AC_TRY_RUN_JAVA attempt to compile and run user given source.  
 dnl  
 dnl *Warning*: its success or failure can depend on a proper setting of the  
 dnl CLASSPATH env. variable.  
 dnl  
 dnl Note: This is part of the set of autoconf M4 macros for Java programs.  
 dnl It is VERY IMPORTANT that you download the whole set, some  
 dnl macros depend on other. Unfortunately, the autoconf archive does not  
 dnl support the concept of set of macros, so I had to break it for  
 dnl submission.  
 dnl The general documentation, as well as the sample configure.in, is  
 dnl included in the AC_PROG_JAVA macro.  
 dnl  
 dnl @author Devin Weaver <ktohg@tritarget.com>  
 dnl @version $Id$  
 dnl  
 AC_DEFUN([AC_TRY_RUN_JAVA],[  
 AC_REQUIRE([AC_PROG_JAVAC])dnl  
 AC_REQUIRE([AC_PROG_JAVA])dnl  
 cat << \EOF > Test.java  
 /* [#]line __oline__ "configure" */  
 ifelse([$1], , , [include $1;])  
 public class Test {  
 [$2]  
 }  
 EOF  
 if AC_TRY_COMMAND($JAVAC $JAVACFLAGS Test.java) && test -s Test.class && ($JAVA $JAVAFLAGS -classpath ".:$CLASSPATH" Test; exit) 2>/dev/null  
 then  
 dnl Don't remove the temporary files here, so they can be examined.  
   ifelse([$3], , :, [$3])  
 else  
   echo "configure: failed program was:" >&AC_FD_CC  
   cat Test.java >&AC_FD_CC  
 ifelse([$4], , , [  rm -fr Test*  
   $4  
 ])dnl  
 fi  
 rm -fr Test*])  
 dnl @synopsis INETLIB_WITH_JSSE  
 dnl  
 AC_DEFUN([INETLIB_WITH_JSSE],[  
 AC_REQUIRE([AC_PROG_JAVAC])dnl  
 AC_REQUIRE([AC_PROG_JAVA])dnl  
 AC_MSG_CHECKING([for JSSE])  
 JSSE_JAR=""  
 JSSE_CLASSPATH=.  
 if test "x" != "x$CLASSPATH" ; then  
         JSSE_CLASSPATH="$JSSE_CLASSPATH:$CLASSPATH"  
 fi  
 AC_ARG_WITH([jsse],  
         AC_HELP_STRING([--with-jsse=FILE], [path to external JSSE library]),  
         [  
         if test -r "${withval}" ; then  
                 JSSE_JAR="${withval}"  
                 JSSE_CLASSPATH="$JSSE_CLASSPATH:$JSSE_JAR"  
         fi  
         ])  
 changequote(, )dnl  
 cat << \EOF > Test.java  
 /* [#]line __oline__ "configure" */  
 public class Test {  
   public static void main(String[] args) {  
     try { Class.forName("javax.net.ssl.SSLSocket"); }  
     catch (Throwable e) { System.exit(1); }  
   }  
 }  
 EOF  
 changequote([, ])dnl  
 if AC_TRY_COMMAND($JAVAC $JAVACFLAGS Test.java) && test -s Test.class && ($JAVA $JAVAFLAGS -classpath "$JSSE_CLASSPATH" Test; exit) 2>/dev/null  
 then  
         AC_MSG_RESULT(yes)  
 else  
         AC_MSG_ERROR([can't find JSSE classes; use --with-jsse])  
 fi  
 rm Test.java Test.class  
 AC_SUBST(JSSE_JAR)  
 ])  
 dnl @synopsis INETLIB_WITH_SASL  
 dnl  
 AC_DEFUN([INETLIB_WITH_SASL],[  
 AC_REQUIRE([AC_PROG_JAVAC])dnl  
 AC_REQUIRE([AC_PROG_JAVA])dnl  
 AC_MSG_CHECKING([for SASL])  
 SASL_JAR=""  
 SASL_CLASSPATH=.  
 if test "x" != "x$CLASSPATH" ; then  
         SASL_CLASSPATH="$SASL_CLASSPATH:$CLASSPATH"  
 fi  
 AC_ARG_WITH([sasl],  
         AC_HELP_STRING([--with-sasl=FILE], [path to external SASL library]),  
         [  
         if test -r "${withval}" ; then  
                         SASL_JAR="${withval}"  
                         SASL_CLASSPATH="$SASL_CLASSPATH:$SASL_JAR"  
         fi  
         ])  
 changequote(, )dnl  
 cat << \EOF > Test.java  
 /* [#]line __oline__ "configure" */  
 public class Test {  
   public static void main(String[] args) {  
     try { Class.forName("javax.security.sasl.SaslClient"); }  
     catch (Throwable e) { System.exit(1); }  
   }  
 }  
 EOF  
 changequote([, ])dnl  
 if AC_TRY_COMMAND($JAVAC $JAVACFLAGS Test.java) && test -s Test.class && ($JAVA $JAVAFLAGS -classpath "$SASL_CLASSPATH" Test) 2>/dev/null  
 then  
         AC_MSG_RESULT(yes)  
 else  
         AC_MSG_ERROR([can't find SASL classes; use --with-sasl])  
 fi  
 rm Test.java Test.class  
 AC_SUBST(SASL_JAR)  
 ])  
 dnl @synopsis INETLIB_WITH_AUTH_CALLBACK  
 dnl  
 AC_DEFUN([INETLIB_WITH_AUTH_CALLBACK],[  
 AC_REQUIRE([AC_PROG_JAVAC])dnl  
 AC_REQUIRE([AC_PROG_JAVA])dnl  
 AC_MSG_CHECKING([for javax.security.auth.callback])  
 AUTH_CALLBACK_JAR=""  
 AUTH_CALLBACK_CLASSPATH=.  
 if test "x" != "x$CLASSPATH" ; then  
         AUTH_CALLBACK_CLASSPATH="$AUTH_CALLBACK_CLASSPATH:$CLASSPATH"  
 fi  
 AC_ARG_WITH([auth_callback],  
         AC_HELP_STRING([--with-auth-callback=FILE],  
                 [path to external javax.security.auth.callback library]),  
         [  
         if test -r "${withval}" ; then  
                         AUTH_CALLBACK_JAR="${withval}"  
                         AUTH_CALLBACK_CLASSPATH="$AUTH_CALLBACK_CLASSPATH:$AUTH_CALLBACK_JAR"  
         fi  
         ])  
 changequote(, )dnl  
 cat << \EOF > Test.java  
 /* [#]line __oline__ "configure" */  
 public class Test {  
   public static void main(String[] args) {  
     try { Class.forName("javax.security.auth.callback.Callback"); }  
     catch (Throwable e) { System.exit(1); }  
   }  
 }  
 EOF  
 changequote([, ])dnl  
 if AC_TRY_COMMAND($JAVAC $JAVACFLAGS Test.java) && test -s Test.class && ($JAVA $JAVAFLAGS -classpath "$AUTH_CALLBACK_CLASSPATH" Test) 2>/dev/null  
 then  
         AC_MSG_RESULT(yes)  
 else  
         AC_MSG_ERROR([can't find javax.security.auth.callback classes; use --with-auth-callback])  
 fi  
 rm Test.java Test.class  
 AC_SUBST(AUTH_CALLBACK_JAR)  
 ])  
34    
35  # Do all the work for Automake.                            -*- Autoconf -*-  # Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
36    #
37    # This file is free software; the Free Software Foundation
38    # gives unlimited permission to copy and/or distribute it,
39    # with or without modifications, as long as this notice is preserved.
40    
41  # This macro actually does too much some checks are only needed if  # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
42  # your package does certain things.  But this isn't really a big deal.  # $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
43    # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
44    #
45    # Of course, Automake must honor this variable whenever it calls a
46    # tool from the auxiliary directory.  The problem is that $srcdir (and
47    # therefore $ac_aux_dir as well) can be either absolute or relative,
48    # depending on how configure is run.  This is pretty annoying, since
49    # it makes $ac_aux_dir quite unusable in subdirectories: in the top
50    # source directory, any form will work fine, but in subdirectories a
51    # relative path needs to be adjusted first.
52    #
53    # $ac_aux_dir/missing
54    #    fails when called from a subdirectory if $ac_aux_dir is relative
55    # $top_srcdir/$ac_aux_dir/missing
56    #    fails if $ac_aux_dir is absolute,
57    #    fails when called from a subdirectory in a VPATH build with
58    #          a relative $ac_aux_dir
59    #
60    # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
61    # are both prefixed by $srcdir.  In an in-source build this is usually
62    # harmless because $srcdir is `.', but things will broke when you
63    # start a VPATH build or use an absolute $srcdir.
64    #
65    # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
66    # iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
67    #   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
68    # and then we would define $MISSING as
69    #   MISSING="\${SHELL} $am_aux_dir/missing"
70    # This will work as long as MISSING is not called from configure, because
71    # unfortunately $(top_srcdir) has no meaning in configure.
72    # However there are other variables, like CC, which are often used in
73    # configure, and could therefore not use this "fixed" $ac_aux_dir.
74    #
75    # Another solution, used here, is to always expand $ac_aux_dir to an
76    # absolute PATH.  The drawback is that using absolute paths prevent a
77    # configured tree to be moved without reconfiguration.
78    
79  # Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002  AC_DEFUN([AM_AUX_DIR_EXPAND],
80  # Free Software Foundation, Inc.  [dnl Rely on autoconf to set up CDPATH properly.
81    AC_PREREQ([2.50])dnl
82    # expand $ac_aux_dir to an absolute path
83    am_aux_dir=`cd $ac_aux_dir && pwd`
84    ])
85    
86  # This program is free software; you can redistribute it and/or modify  # AM_CONDITIONAL                                            -*- Autoconf -*-
 # 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.  
87    
88  # This program is distributed in the hope that it will be useful,  # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
89  # but WITHOUT ANY WARRANTY; without even the implied warranty of  # Free Software Foundation, Inc.
90  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  #
91  # GNU General Public License for more details.  # This file is free software; the Free Software Foundation
92    # gives unlimited permission to copy and/or distribute it,
93    # with or without modifications, as long as this notice is preserved.
94    
95  # You should have received a copy of the GNU General Public License  # serial 7
 # along with this program; if not, write to the Free Software  
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  
 # 02111-1307, USA.  
96    
97  # serial 8  # AM_CONDITIONAL(NAME, SHELL-CONDITION)
98    # -------------------------------------
99    # Define a conditional.
100    AC_DEFUN([AM_CONDITIONAL],
101    [AC_PREREQ(2.52)dnl
102     ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
103            [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
104    AC_SUBST([$1_TRUE])
105    AC_SUBST([$1_FALSE])
106    if $2; then
107      $1_TRUE=
108      $1_FALSE='#'
109    else
110      $1_TRUE='#'
111      $1_FALSE=
112    fi
113    AC_CONFIG_COMMANDS_PRE(
114    [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
115      AC_MSG_ERROR([[conditional "$1" was never defined.
116    Usually this means the macro was only invoked conditionally.]])
117    fi])])
118    
119  # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be  # Do all the work for Automake.                             -*- Autoconf -*-
 # written in clear, in which case automake, when reading aclocal.m4,  
 # will think it sees a *use*, and therefore will trigger all it's  
 # C support machinery.  Also note that it means that autoscan, seeing  
 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...  
120    
121    # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
122    # Free Software Foundation, Inc.
123    #
124    # This file is free software; the Free Software Foundation
125    # gives unlimited permission to copy and/or distribute it,
126    # with or without modifications, as long as this notice is preserved.
127    
128  AC_PREREQ([2.52])  # serial 12
129    
130  # Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow  # This macro actually does too much.  Some checks are only needed if
131  # the ones we care about.  # your package does certain things.  But this isn't really a big deal.
 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl  
132    
133  # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])  # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
134  # AM_INIT_AUTOMAKE([OPTIONS])  # AM_INIT_AUTOMAKE([OPTIONS])
# Line 899  m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl Line 142  m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
142  # arguments mandatory, and then we can depend on a new Autoconf  # arguments mandatory, and then we can depend on a new Autoconf
143  # release and drop the old call support.  # release and drop the old call support.
144  AC_DEFUN([AM_INIT_AUTOMAKE],  AC_DEFUN([AM_INIT_AUTOMAKE],
145  [AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl  [AC_PREREQ([2.58])dnl
146   AC_REQUIRE([AC_PROG_INSTALL])dnl  dnl Autoconf wants to disallow AM_ names.  We explicitly allow
147    dnl the ones we care about.
148    m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
149    AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
150    AC_REQUIRE([AC_PROG_INSTALL])dnl
151  # test to see if srcdir already configured  # test to see if srcdir already configured
152  if test "`cd $srcdir && pwd`" != "`pwd`" &&  if test "`cd $srcdir && pwd`" != "`pwd`" &&
153     test -f $srcdir/config.status; then     test -f $srcdir/config.status; then
154    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
155  fi  fi
156    
157    # test whether we have cygpath
158    if test -z "$CYGPATH_W"; then
159      if (cygpath --version) >/dev/null 2>/dev/null; then
160        CYGPATH_W='cygpath -w'
161      else
162        CYGPATH_W=echo
163      fi
164    fi
165    AC_SUBST([CYGPATH_W])
166    
167  # Define the identity of the package.  # Define the identity of the package.
168  dnl Distinguish between old-style and new-style calls.  dnl Distinguish between old-style and new-style calls.
169  m4_ifval([$2],  m4_ifval([$2],
# Line 914  m4_ifval([$2], Line 171  m4_ifval([$2],
171   AC_SUBST([PACKAGE], [$1])dnl   AC_SUBST([PACKAGE], [$1])dnl
172   AC_SUBST([VERSION], [$2])],   AC_SUBST([VERSION], [$2])],
173  [_AM_SET_OPTIONS([$1])dnl  [_AM_SET_OPTIONS([$1])dnl
174   AC_SUBST([PACKAGE], [AC_PACKAGE_TARNAME])dnl   AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
175   AC_SUBST([VERSION], [AC_PACKAGE_VERSION])])dnl   AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
176    
177  _AM_IF_OPTION([no-define],,  _AM_IF_OPTION([no-define],,
178  [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])  [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
# Line 929  AM_MISSING_PROG(AUTOCONF, autoconf) Line 186  AM_MISSING_PROG(AUTOCONF, autoconf)
186  AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})  AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
187  AM_MISSING_PROG(AUTOHEADER, autoheader)  AM_MISSING_PROG(AUTOHEADER, autoheader)
188  AM_MISSING_PROG(MAKEINFO, makeinfo)  AM_MISSING_PROG(MAKEINFO, makeinfo)
 AM_MISSING_PROG(AMTAR, tar)  
189  AM_PROG_INSTALL_SH  AM_PROG_INSTALL_SH
190  AM_PROG_INSTALL_STRIP  AM_PROG_INSTALL_STRIP
191    AC_REQUIRE([AM_PROG_MKDIR_P])dnl
192  # We need awk for the "check" target.  The system "awk" is bad on  # We need awk for the "check" target.  The system "awk" is bad on
193  # some platforms.  # some platforms.
194  AC_REQUIRE([AC_PROG_AWK])dnl  AC_REQUIRE([AC_PROG_AWK])dnl
195  AC_REQUIRE([AC_PROG_MAKE_SET])dnl  AC_REQUIRE([AC_PROG_MAKE_SET])dnl
196    AC_REQUIRE([AM_SET_LEADING_DOT])dnl
197    _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
198                  [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
199                                 [_AM_PROG_TAR([v7])])])
200  _AM_IF_OPTION([no-dependencies],,  _AM_IF_OPTION([no-dependencies],,
201  [AC_PROVIDE_IFELSE([AC_PROG_][CC],  [AC_PROVIDE_IFELSE([AC_PROG_CC],
202                    [_AM_DEPENDENCIES(CC)],                    [_AM_DEPENDENCIES(CC)],
203                    [define([AC_PROG_][CC],                    [define([AC_PROG_CC],
204                            defn([AC_PROG_][CC])[_AM_DEPENDENCIES(CC)])])dnl                            defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
205  AC_PROVIDE_IFELSE([AC_PROG_][CXX],  AC_PROVIDE_IFELSE([AC_PROG_CXX],
206                    [_AM_DEPENDENCIES(CXX)],                    [_AM_DEPENDENCIES(CXX)],
207                    [define([AC_PROG_][CXX],                    [define([AC_PROG_CXX],
208                            defn([AC_PROG_][CXX])[_AM_DEPENDENCIES(CXX)])])dnl                            defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
209  ])  ])
210  ])  ])
211    
 # Copyright 2002  Free Software Foundation, Inc.  
212    
213  # This program is free software; you can redistribute it and/or modify  # When config.status generates a header, we must update the stamp-h file.
214  # it under the terms of the GNU General Public License as published by  # This file resides in the same directory as the config header
215  # the Free Software Foundation; either version 2, or (at your option)  # that is generated.  The stamp files are numbered to have different names.
216  # any later version.  
217    # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
218    # loop where config.status creates the headers, so we can generate
219    # our stamp files there.
220    AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
221    [# Compute $1's index in $config_headers.
222    _am_stamp_count=1
223    for _am_header in $config_headers :; do
224      case $_am_header in
225        $1 | $1:* )
226          break ;;
227        * )
228          _am_stamp_count=`expr $_am_stamp_count + 1` ;;
229      esac
230    done
231    echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
232    
233    # Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
234    #
235    # This file is free software; the Free Software Foundation
236    # gives unlimited permission to copy and/or distribute it,
237    # with or without modifications, as long as this notice is preserved.
238    
239  # This program is distributed in the hope that it will be useful,  # AM_PROG_INSTALL_SH
240  # but WITHOUT ANY WARRANTY; without even the implied warranty of  # ------------------
241  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  # Define $install_sh.
242  # GNU General Public License for more details.  AC_DEFUN([AM_PROG_INSTALL_SH],
243    [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
244  # You should have received a copy of the GNU General Public License  install_sh=${install_sh-"$am_aux_dir/install-sh"}
245  # along with this program; if not, write to the Free Software  AC_SUBST(install_sh)])
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  
246    
247  # AM_AUTOMAKE_VERSION(VERSION)  # Copyright (C) 2003, 2005  Free Software Foundation, Inc.
248  # ----------------------------  #
249  # Automake X.Y traces this macro to ensure aclocal.m4 has been  # This file is free software; the Free Software Foundation
250  # generated from the m4 files accompanying Automake X.Y.  # gives unlimited permission to copy and/or distribute it,
251  AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.6"])  # with or without modifications, as long as this notice is preserved.
252    
253  # AM_SET_CURRENT_AUTOMAKE_VERSION  # serial 2
 # -------------------------------  
 # Call AM_AUTOMAKE_VERSION so it can be traced.  
 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.  
 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],  
          [AM_AUTOMAKE_VERSION([1.6.3])])  
254    
255  # Helper functions for option handling.                    -*- Autoconf -*-  # Check whether the underlying file-system supports filenames
256    # with a leading dot.  For instance MS-DOS doesn't.
257    AC_DEFUN([AM_SET_LEADING_DOT],
258    [rm -rf .tst 2>/dev/null
259    mkdir .tst 2>/dev/null
260    if test -d .tst; then
261      am__leading_dot=.
262    else
263      am__leading_dot=_
264    fi
265    rmdir .tst 2>/dev/null
266    AC_SUBST([am__leading_dot])])
267    
268  # Copyright 2001, 2002  Free Software Foundation, Inc.  # Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
269    
270  # This program is free software; you can redistribute it and/or modify  # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
271  # it under the terms of the GNU General Public License as published by  # Free Software Foundation, Inc.
272  # the Free Software Foundation; either version 2, or (at your option)  #
273  # any later version.  # This file is free software; the Free Software Foundation
274    # gives unlimited permission to copy and/or distribute it,
275    # with or without modifications, as long as this notice is preserved.
276    
277  # This program is distributed in the hope that it will be useful,  # serial 4
 # 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., 59 Temple Place - Suite 330, Boston, MA  
 # 02111-1307, USA.  
278    
279  # serial 2  # AM_MISSING_PROG(NAME, PROGRAM)
280    # ------------------------------
281    AC_DEFUN([AM_MISSING_PROG],
282    [AC_REQUIRE([AM_MISSING_HAS_RUN])
283    $1=${$1-"${am_missing_run}$2"}
284    AC_SUBST($1)])
285    
286    
287    # AM_MISSING_HAS_RUN
288    # ------------------
289    # Define MISSING if not defined so far and test if it supports --run.
290    # If it does, set am_missing_run to use it, otherwise, to nothing.
291    AC_DEFUN([AM_MISSING_HAS_RUN],
292    [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
293    test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
294    # Use eval to expand $SHELL
295    if eval "$MISSING --run true"; then
296      am_missing_run="$MISSING --run "
297    else
298      am_missing_run=
299      AC_MSG_WARN([`missing' script is too old or missing])
300    fi
301    ])
302    
303    # Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
304    #
305    # This file is free software; the Free Software Foundation
306    # gives unlimited permission to copy and/or distribute it,
307    # with or without modifications, as long as this notice is preserved.
308    
309    # AM_PROG_MKDIR_P
310    # ---------------
311    # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
312    #
313    # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
314    # created by `make install' are always world readable, even if the
315    # installer happens to have an overly restrictive umask (e.g. 077).
316    # This was a mistake.  There are at least two reasons why we must not
317    # use `-m 0755':
318    #   - it causes special bits like SGID to be ignored,
319    #   - it may be too restrictive (some setups expect 775 directories).
320    #
321    # Do not use -m 0755 and let people choose whatever they expect by
322    # setting umask.
323    #
324    # We cannot accept any implementation of `mkdir' that recognizes `-p'.
325    # Some implementations (such as Solaris 8's) are not thread-safe: if a
326    # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
327    # concurrently, both version can detect that a/ is missing, but only
328    # one can create it and the other will error out.  Consequently we
329    # restrict ourselves to GNU make (using the --version option ensures
330    # this.)
331    AC_DEFUN([AM_PROG_MKDIR_P],
332    [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
333      # We used to keeping the `.' as first argument, in order to
334      # allow $(mkdir_p) to be used without argument.  As in
335      #   $(mkdir_p) $(somedir)
336      # where $(somedir) is conditionally defined.  However this is wrong
337      # for two reasons:
338      #  1. if the package is installed by a user who cannot write `.'
339      #     make install will fail,
340      #  2. the above comment should most certainly read
341      #     $(mkdir_p) $(DESTDIR)$(somedir)
342      #     so it does not work when $(somedir) is undefined and
343      #     $(DESTDIR) is not.
344      #  To support the latter case, we have to write
345      #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
346      #  so the `.' trick is pointless.
347      mkdir_p='mkdir -p --'
348    else
349      # On NextStep and OpenStep, the `mkdir' command does not
350      # recognize any option.  It will interpret all options as
351      # directories to create, and then abort because `.' already
352      # exists.
353      for d in ./-p ./--version;
354      do
355        test -d $d && rmdir $d
356      done
357      # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
358      if test -f "$ac_aux_dir/mkinstalldirs"; then
359        mkdir_p='$(mkinstalldirs)'
360      else
361        mkdir_p='$(install_sh) -d'
362      fi
363    fi
364    AC_SUBST([mkdir_p])])
365    
366    # Helper functions for option handling.                     -*- Autoconf -*-
367    
368    # Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
369    #
370    # This file is free software; the Free Software Foundation
371    # gives unlimited permission to copy and/or distribute it,
372    # with or without modifications, as long as this notice is preserved.
373    
374    # serial 3
375    
376  # _AM_MANGLE_OPTION(NAME)  # _AM_MANGLE_OPTION(NAME)
377  # -----------------------  # -----------------------
# Line 1022  AC_DEFUN([_AM_SET_OPTIONS], Line 396  AC_DEFUN([_AM_SET_OPTIONS],
396  AC_DEFUN([_AM_IF_OPTION],  AC_DEFUN([_AM_IF_OPTION],
397  [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])  [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
398    
399  #  # Check to make sure that the build environment is sane.    -*- Autoconf -*-
 # Check to make sure that the build environment is sane.  
 #  
   
 # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.  
400    
401  # This program is free software; you can redistribute it and/or modify  # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
402  # it under the terms of the GNU General Public License as published by  # Free Software Foundation, Inc.
403  # the Free Software Foundation; either version 2, or (at your option)  #
404  # any later version.  # This file is free software; the Free Software Foundation
405    # gives unlimited permission to copy and/or distribute it,
406  # This program is distributed in the hope that it will be useful,  # with or without modifications, as long as this notice is preserved.
 # 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., 59 Temple Place - Suite 330, Boston, MA  
 # 02111-1307, USA.  
407    
408  # serial 3  # serial 4
409    
410  # AM_SANITY_CHECK  # AM_SANITY_CHECK
411  # ---------------  # ---------------
# Line 1086  Check your system clock]) Line 448  Check your system clock])
448  fi  fi
449  AC_MSG_RESULT(yes)])  AC_MSG_RESULT(yes)])
450    
451  #  -*- Autoconf -*-  # Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
   
   
 # Copyright 1997, 1999, 2000, 2001 Free Software Foundation, 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, 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., 59 Temple Place - Suite 330, Boston, MA  
 # 02111-1307, USA.  
   
 # serial 3  
   
 # AM_MISSING_PROG(NAME, PROGRAM)  
 # ------------------------------  
 AC_DEFUN([AM_MISSING_PROG],  
 [AC_REQUIRE([AM_MISSING_HAS_RUN])  
 $1=${$1-"${am_missing_run}$2"}  
 AC_SUBST($1)])  
   
   
 # AM_MISSING_HAS_RUN  
 # ------------------  
 # Define MISSING if not defined so far and test if it supports --run.  
 # If it does, set am_missing_run to use it, otherwise, to nothing.  
 AC_DEFUN([AM_MISSING_HAS_RUN],  
 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl  
 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"  
 # Use eval to expand $SHELL  
 if eval "$MISSING --run true"; then  
   am_missing_run="$MISSING --run "  
 else  
   am_missing_run=  
   AC_MSG_WARN([`missing' script is too old or missing])  
 fi  
 ])  
   
 # AM_AUX_DIR_EXPAND  
   
 # Copyright 2001 Free Software Foundation, 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, 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., 59 Temple Place - Suite 330, Boston, MA  
 # 02111-1307, USA.  
   
 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets  
 # $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to  
 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.  
 #  
 # Of course, Automake must honor this variable whenever it calls a  
 # tool from the auxiliary directory.  The problem is that $srcdir (and  
 # therefore $ac_aux_dir as well) can be either absolute or relative,  
 # depending on how configure is run.  This is pretty annoying, since  
 # it makes $ac_aux_dir quite unusable in subdirectories: in the top  
 # source directory, any form will work fine, but in subdirectories a  
 # relative path needs to be adjusted first.  
 #  
 # $ac_aux_dir/missing  
 #    fails when called from a subdirectory if $ac_aux_dir is relative  
 # $top_srcdir/$ac_aux_dir/missing  
 #    fails if $ac_aux_dir is absolute,  
 #    fails when called from a subdirectory in a VPATH build with  
 #          a relative $ac_aux_dir  
 #  
 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir  
 # are both prefixed by $srcdir.  In an in-source build this is usually  
 # harmless because $srcdir is `.', but things will broke when you  
 # start a VPATH build or use an absolute $srcdir.  
 #  
 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,  
 # iff we strip the leading $srcdir from $ac_aux_dir.  That would be:  
 #   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`  
 # and then we would define $MISSING as  
 #   MISSING="\${SHELL} $am_aux_dir/missing"  
 # This will work as long as MISSING is not called from configure, because  
 # unfortunately $(top_srcdir) has no meaning in configure.  
 # However there are other variables, like CC, which are often used in  
 # configure, and could therefore not use this "fixed" $ac_aux_dir.  
452  #  #
453  # Another solution, used here, is to always expand $ac_aux_dir to an  # This file is free software; the Free Software Foundation
454  # absolute PATH.  The drawback is that using absolute paths prevent a  # gives unlimited permission to copy and/or distribute it,
455  # configured tree to be moved without reconfiguration.  # with or without modifications, as long as this notice is preserved.
   
 # Rely on autoconf to set up CDPATH properly.  
 AC_PREREQ([2.50])  
   
 AC_DEFUN([AM_AUX_DIR_EXPAND], [  
 # expand $ac_aux_dir to an absolute path  
 am_aux_dir=`cd $ac_aux_dir && pwd`  
 ])  
   
 # AM_PROG_INSTALL_SH  
 # ------------------  
 # Define $install_sh.  
   
 # Copyright 2001 Free Software Foundation, 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, 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., 59 Temple Place - Suite 330, Boston, MA  
 # 02111-1307, USA.  
   
 AC_DEFUN([AM_PROG_INSTALL_SH],  
 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl  
 install_sh=${install_sh-"$am_aux_dir/install-sh"}  
 AC_SUBST(install_sh)])  
456    
457  # AM_PROG_INSTALL_STRIP  # AM_PROG_INSTALL_STRIP
458    # ---------------------
 # Copyright 2001 Free Software Foundation, 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, 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., 59 Temple Place - Suite 330, Boston, MA  
 # 02111-1307, USA.  
   
459  # One issue with vendor `install' (even GNU) is that you can't  # One issue with vendor `install' (even GNU) is that you can't
460  # specify the program used to strip binaries.  This is especially  # specify the program used to strip binaries.  This is especially
461  # annoying in cross-compiling environments, where the build's strip  # annoying in cross-compiling environments, where the build's strip
# Line 1262  fi Line 476  fi
476  INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"  INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
477  AC_SUBST([INSTALL_STRIP_PROGRAM])])  AC_SUBST([INSTALL_STRIP_PROGRAM])])
478    
479  # serial 4                                              -*- Autoconf -*-  # Check how to create a tarball.                            -*- Autoconf -*-
   
 # Copyright 1999, 2000, 2001 Free Software Foundation, 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, or (at your option)  
 # any later version.  
480    
481  # This program is distributed in the hope that it will be useful,  # Copyright (C) 2004, 2005  Free Software Foundation, Inc.
482  # but WITHOUT ANY WARRANTY; without even the implied warranty of  #
483  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  # This file is free software; the Free Software Foundation
484  # GNU General Public License for more details.  # gives unlimited permission to copy and/or distribute it,
485    # with or without modifications, as long as this notice is preserved.
 # 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., 59 Temple Place - Suite 330, Boston, MA  
 # 02111-1307, USA.  
   
   
 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be  
 # written in clear, in which case automake, when reading aclocal.m4,  
 # will think it sees a *use*, and therefore will trigger all it's  
 # C support machinery.  Also note that it means that autoscan, seeing  
 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...  
486    
487    # serial 2
488    
489    # _AM_PROG_TAR(FORMAT)
490    # --------------------
491    # Check how to create a tarball in format FORMAT.
492    # FORMAT should be one of `v7', `ustar', or `pax'.
493    #
494    # Substitute a variable $(am__tar) that is a command
495    # writing to stdout a FORMAT-tarball containing the directory
496    # $tardir.
497    #     tardir=directory && $(am__tar) > result.tar
498    #
499    # Substitute a variable $(am__untar) that extract such
500    # a tarball read from stdin.
501    #     $(am__untar) < result.tar
502    AC_DEFUN([_AM_PROG_TAR],
503    [# Always define AMTAR for backward compatibility.
504    AM_MISSING_PROG([AMTAR], [tar])
505    m4_if([$1], [v7],
506         [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
507         [m4_case([$1], [ustar],, [pax],,
508                  [m4_fatal([Unknown tar format])])
509    AC_MSG_CHECKING([how to create a $1 tar archive])
510    # Loop over all known methods to create a tar archive until one works.
511    _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
512    _am_tools=${am_cv_prog_tar_$1-$_am_tools}
513    # Do not fold the above two line into one, because Tru64 sh and
514    # Solaris sh will not grok spaces in the rhs of `-'.
515    for _am_tool in $_am_tools
516    do
517      case $_am_tool in
518      gnutar)
519        for _am_tar in tar gnutar gtar;
520        do
521          AM_RUN_LOG([$_am_tar --version]) && break
522        done
523        am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
524        am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
525        am__untar="$_am_tar -xf -"
526        ;;
527      plaintar)
528        # Must skip GNU tar: if it does not support --format= it doesn't create
529        # ustar tarball either.
530        (tar --version) >/dev/null 2>&1 && continue
531        am__tar='tar chf - "$$tardir"'
532        am__tar_='tar chf - "$tardir"'
533        am__untar='tar xf -'
534        ;;
535      pax)
536        am__tar='pax -L -x $1 -w "$$tardir"'
537        am__tar_='pax -L -x $1 -w "$tardir"'
538        am__untar='pax -r'
539        ;;
540      cpio)
541        am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
542        am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
543        am__untar='cpio -i -H $1 -d'
544        ;;
545      none)
546        am__tar=false
547        am__tar_=false
548        am__untar=false
549        ;;
550      esac
551    
552      # If the value was cached, stop now.  We just wanted to have am__tar
553      # and am__untar set.
554      test -n "${am_cv_prog_tar_$1}" && break
555    
556  # _AM_DEPENDENCIES(NAME)    # tar/untar a dummy directory, and stop if the command works
557  # ----------------------    rm -rf conftest.dir
 # See how the compiler implements dependency checking.  
 # NAME is "CC", "CXX", "GCJ", or "OBJC".  
 # We try a few techniques and use that to set a single cache variable.  
 #  
 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was  
 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular  
 # dependency, and given that the user is not expected to run this macro,  
 # just rely on AC_PROG_CC.  
 AC_DEFUN([_AM_DEPENDENCIES],  
 [AC_REQUIRE([AM_SET_DEPDIR])dnl  
 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl  
 AC_REQUIRE([AM_MAKE_INCLUDE])dnl  
 AC_REQUIRE([AM_DEP_TRACK])dnl  
   
 ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],  
        [$1], CXX,  [depcc="$CXX"  am_compiler_list=],  
        [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],  
        [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],  
                    [depcc="$$1"   am_compiler_list=])  
   
 AC_CACHE_CHECK([dependency style of $depcc],  
                [am_cv_$1_dependencies_compiler_type],  
 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then  
   # We make a subdir and do the tests there.  Otherwise we can end up  
   # making bogus files that we don't know about and never remove.  For  
   # instance it was reported that on HP-UX the gcc test will end up  
   # making a dummy file named `D' -- because `-MD' means `put the output  
   # in D'.  
558    mkdir conftest.dir    mkdir conftest.dir
559    # Copy depcomp to subdir because otherwise we won't find it if we're    echo GrepMe > conftest.dir/file
560    # using a relative directory.    AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
   cp "$am_depcomp" conftest.dir  
   cd conftest.dir  
   
   am_cv_$1_dependencies_compiler_type=none  
   if test "$am_compiler_list" = ""; then  
      am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`  
   fi  
   for depmode in $am_compiler_list; do  
     # We need to recreate these files for each test, as the compiler may  
     # overwrite some of them when testing with obscure command lines.  
     # This happens at least with the AIX C compiler.  
     echo '#include "conftest.h"' > conftest.c  
     echo 'int i;' > conftest.h  
     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf  
   
     case $depmode in  
     nosideeffect)  
       # after this tag, mechanisms are not by side-effect, so they'll  
       # only be used when explicitly requested  
       if test "x$enable_dependency_tracking" = xyes; then  
         continue  
       else  
         break  
       fi  
       ;;  
     none) break ;;  
     esac  
     # We check with `-c' and `-o' for the sake of the "dashmstdout"  
     # mode.  It turns out that the SunPro C++ compiler does not properly  
     # handle `-M -o', and we need to detect this.  
     if depmode=$depmode \  
        source=conftest.c object=conftest.o \  
        depfile=conftest.Po tmpdepfile=conftest.TPo \  
        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&  
        grep conftest.h conftest.Po > /dev/null 2>&1 &&  
        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then  
       am_cv_$1_dependencies_compiler_type=$depmode  
       break  
     fi  
   done  
   
   cd ..  
561    rm -rf conftest.dir    rm -rf conftest.dir
562  else    if test -s conftest.tar; then
563    am_cv_$1_dependencies_compiler_type=none      AM_RUN_LOG([$am__untar <conftest.tar])
564  fi      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 ])  
 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])  
 ])  
   
   
 # AM_SET_DEPDIR  
 # -------------  
 # Choose a directory name for dependency files.  
 # This macro is AC_REQUIREd in _AM_DEPENDENCIES  
 AC_DEFUN([AM_SET_DEPDIR],  
 [rm -f .deps 2>/dev/null  
 mkdir .deps 2>/dev/null  
 if test -d .deps; then  
   DEPDIR=.deps  
 else  
   # MS-DOS does not allow filenames that begin with a dot.  
   DEPDIR=_deps  
 fi  
 rmdir .deps 2>/dev/null  
 AC_SUBST([DEPDIR])  
 ])  
   
   
 # AM_DEP_TRACK  
 # ------------  
 AC_DEFUN([AM_DEP_TRACK],  
 [AC_ARG_ENABLE(dependency-tracking,  
 [  --disable-dependency-tracking Speeds up one-time builds  
   --enable-dependency-tracking  Do not reject slow dependency extractors])  
 if test "x$enable_dependency_tracking" != xno; then  
   am_depcomp="$ac_aux_dir/depcomp"  
   AMDEPBACKSLASH='\'  
 fi  
 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])  
 AC_SUBST([AMDEPBACKSLASH])  
 ])  
   
 # Generate code to set up dependency tracking.   -*- Autoconf -*-  
   
 # Copyright 1999, 2000, 2001, 2002 Free Software Foundation, 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, 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., 59 Temple Place - Suite 330, Boston, MA  
 # 02111-1307, USA.  
   
 #serial 2  
   
 # _AM_OUTPUT_DEPENDENCY_COMMANDS  
 # ------------------------------  
 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],  
 [for mf in $CONFIG_FILES; do  
   # Strip MF so we end up with the name of the file.  
   mf=`echo "$mf" | sed -e 's/:.*$//'`  
   # Check whether this is an Automake generated Makefile or not.  
   # We used to match only the files named `Makefile.in', but  
   # some people rename them; so instead we look at the file content.  
   # Grep'ing the first line is not enough: some people post-process  
   # each Makefile.in and add a new line on top of each file to say so.  
   # So let's grep whole file.  
   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then  
     dirpart=`AS_DIRNAME("$mf")`  
   else  
     continue  
565    fi    fi
   grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue  
   # Extract the definition of DEP_FILES from the Makefile without  
   # running `make'.  
   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`  
   test -z "$DEPDIR" && continue  
   # When using ansi2knr, U may be empty or an underscore; expand it  
   U=`sed -n -e '/^U = / s///p' < "$mf"`  
   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"  
   # We invoke sed twice because it is the simplest approach to  
   # changing $(DEPDIR) to its actual value in the expansion.  
   for file in `sed -n -e '  
     /^DEP_FILES = .*\\\\$/ {  
       s/^DEP_FILES = //  
       :loop  
         s/\\\\$//  
         p  
         n  
         /\\\\$/ b loop  
       p  
     }  
     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \  
        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do  
     # Make sure the directory exists.  
     test -f "$dirpart/$file" && continue  
     fdir=`AS_DIRNAME(["$file"])`  
     AS_MKDIR_P([$dirpart/$fdir])  
     # echo "creating $dirpart/$file"  
     echo '# dummy' > "$dirpart/$file"  
   done  
566  done  done
567  ])# _AM_OUTPUT_DEPENDENCY_COMMANDS  rm -rf conftest.dir
   
   
 # AM_OUTPUT_DEPENDENCY_COMMANDS  
 # -----------------------------  
 # This macro should only be invoked once -- use via AC_REQUIRE.  
 #  
 # This code is only required when automatic dependency tracking  
 # is enabled.  FIXME.  This creates each `.P' file that we will  
 # need in order to bootstrap the dependency handling code.  
 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],  
 [AC_CONFIG_COMMANDS([depfiles],  
      [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],  
      [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])  
 ])  
   
 # Copyright 2001 Free Software Foundation, Inc.             -*- Autoconf -*-  
   
 # 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, or (at your option)  
 # any later version.  
568    
569  # This program is distributed in the hope that it will be useful,  AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
570  # but WITHOUT ANY WARRANTY; without even the implied warranty of  AC_MSG_RESULT([$am_cv_prog_tar_$1])])
571  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  AC_SUBST([am__tar])
572  # GNU General Public License for more details.  AC_SUBST([am__untar])
573    ]) # _AM_PROG_TAR
 # 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., 59 Temple Place - Suite 330, Boston, MA  
 # 02111-1307, USA.  
   
 # serial 2  
   
 # AM_MAKE_INCLUDE()  
 # -----------------  
 # Check to see how make treats includes.  
 AC_DEFUN([AM_MAKE_INCLUDE],  
 [am_make=${MAKE-make}  
 cat > confinc << 'END'  
 doit:  
         @echo done  
 END  
 # If we don't find an include directive, just comment out the code.  
 AC_MSG_CHECKING([for style of include used by $am_make])  
 am__include="#"  
 am__quote=  
 _am_result=none  
 # First try GNU make style include.  
 echo "include confinc" > confmf  
 # We grep out `Entering directory' and `Leaving directory'  
 # messages which can occur if `w' ends up in MAKEFLAGS.  
 # In particular we don't look at `^make:' because GNU make might  
 # be invoked under some other name (usually "gmake"), in which  
 # case it prints its new name instead of `make'.  
 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then  
    am__include=include  
    am__quote=  
    _am_result=GNU  
 fi  
 # Now try BSD make style include.  
 if test "$am__include" = "#"; then  
    echo '.include "confinc"' > confmf  
    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then  
       am__include=.include  
       am__quote="\""  
       _am_result=BSD  
    fi  
 fi  
 AC_SUBST(am__include)  
 AC_SUBST(am__quote)  
 AC_MSG_RESULT($_am_result)  
 rm -f confinc confmf  
 ])  
   
 # AM_CONDITIONAL                                              -*- Autoconf -*-  
   
 # Copyright 1997, 2000, 2001 Free Software Foundation, 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, 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., 59 Temple Place - Suite 330, Boston, MA  
 # 02111-1307, USA.  
   
 # serial 5  
   
 AC_PREREQ(2.52)  
   
 # AM_CONDITIONAL(NAME, SHELL-CONDITION)  
 # -------------------------------------  
 # Define a conditional.  
 AC_DEFUN([AM_CONDITIONAL],  
 [ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],  
         [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl  
 AC_SUBST([$1_TRUE])  
 AC_SUBST([$1_FALSE])  
 if $2; then  
   $1_TRUE=  
   $1_FALSE='#'  
 else  
   $1_TRUE='#'  
   $1_FALSE=  
 fi  
 AC_CONFIG_COMMANDS_PRE(  
 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then  
   AC_MSG_ERROR([conditional \"$1\" was never defined.  
 Usually this means the macro was only invoked conditionally.])  
 fi])])  
574    
575    m4_include([acinclude.m4])

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26