Package-Name: autoconf
Gentoo-Package: sys-devel/autoconf
Requires: m4
Homepage: http://www.gnu.org/software/autoconf/
Source: gnu:///autoconf/autoconf-(\d+.\d+(.\d+)?).tar.gz $1
Repack:
	tar xzvfp "$(SOURCE)"
Compile:
	cp -p AUTHORS COPYING ChangeLog* NEWS README TODO "$(PREFIX)/"
	# FIXME: make --infodir and --mandir default?
	$(MAKE) -f ../Makefile configure CONFIGURE_OPTS="--infodir='$(PREFIX)/info' --mandir='$(PREFIX)/man'"
	$(MAKE)
	$(MAKE) install
	rm -f "$(PREFIX)"/info/standards*
Install:
	$(MAKE) instbin BIN="autoconf autoheader autom4te autoreconf autoscan autoupdate ifnames"
	$(MAKE) instinfo INFO=autoconf
	$(MAKE) instman SECTION=1 MAN="autoconf autoheader autom4te autoreconf autoscan autoupdate config.guess config.sub ifnames"
NoPatch: <<EOT
######## begin X includes fix
--- lib/autoconf/libs.m4.old	2003-05-22 21:05:13 +0900
+++ lib/autoconf/libs.m4	2004-04-06 12:18:47 +0900
@@ -202,7 +202,7 @@
     # bogus both because they are the default anyway, and because
     # using them would break gcc on systems where it needs fixed includes.
     case $ac_im_incroot in
-	/usr/include) ;;
+	/usr/include) ac_x_includes="" ;;
 	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
     esac
     case $ac_im_usrlibdir in
######## end X includes fix
######## begin double whitespace bug fix (CFLAGS="-O2  " breaks sub-configures)
--- lib/autoconf/general.m4.old	2003-10-27 20:10:56 +0900
+++ lib/autoconf/general.m4	2005-12-30 04:13:58 +0900
@@ -1106,7 +1106,7 @@
 dnl If you change this globbing pattern, test it on an old shell --
 dnl it's sensitive.  Putting any kind of quote in it causes syntax errors.
   [  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)]
-      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
+      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g" | sed "s/\\([[ 	]]\\)/'\\\\\\\\\\\\1'/g"` ;;
     esac
     case $ac_pass in
     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
@@ -1409,7 +1409,7 @@
 dnl If you change this globbing pattern, test it on an old shell --
 dnl it's sensitive.  Putting any kind of quote in it causes syntax errors.
 [    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)]
-      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
+      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g" | sed "s/\\([[ 	]]\\)/'\\\\\\\\\\\\1'/g"` ;;
     *) ac_arg=$ac_var=$ac_new_val ;;
     esac
     case " $ac_configure_args " in
######## end double whitespace bug fix
######## begin gcc -Werror -Wmissing-prototypes fix
diff -urN ../autoconf-2.59-orig/lib/autoconf/c.m4 lib/autoconf/c.m4
--- ../autoconf-2.59-orig/lib/autoconf/c.m4	2003-09-25 16:28:51 +0900
+++ lib/autoconf/c.m4	2005-10-07 18:48:29 +0900
@@ -146,7 +146,7 @@
 m4_ifdef([_AC_LANG_PROGRAM_C_F77_HOOKS], [_AC_LANG_PROGRAM_C_F77_HOOKS])[]dnl
 m4_ifdef([_AC_LANG_PROGRAM_C_FC_HOOKS], [_AC_LANG_PROGRAM_C_FC_HOOKS])[]dnl
 int
-main ()
+main (void)
 {
 dnl Do *not* indent the following line: there may be CPP directives.
 dnl Don't move the `;' right after for the same reason.
@@ -168,7 +168,7 @@
 #endif
 /* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
-char $2 ();])], [$2 ();])])
+char $2 (void);])], [$2 ();])])
 
 
 # AC_LANG_FUNC_LINK_TRY(C)(FUNCTION)
@@ -211,14 +211,14 @@
 #endif
 /* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
-char $1 ();
+char $1 (void);
 /* The GNU C library defines this for functions which it implements
     to always fail with ENOSYS.  Some functions are actually named
     something starting with __ and the normal name is an alias.  */
 #if defined (__stub_$1) || defined (__stub___$1)
 choke me
 #else
-char (*f) () = $1;
+char (*f) (void) = $1;
 #endif
 #ifdef __cplusplus
 }
@@ -242,8 +242,8 @@
 # But we include them only after the EXPRESSION has been evaluated.
 m4_define([AC_LANG_INT_SAVE(C)],
 [AC_LANG_PROGRAM([$1
-long longval () { return $2; }
-unsigned long ulongval () { return $2; }
+long longval (void) { return $2; }
+unsigned long ulongval (void) { return $2; }
 @%:@include <stdio.h>
 @%:@include <stdlib.h>],
 [
@@ -961,7 +961,7 @@
 [# It does not; compile a test program.
 AC_RUN_IFELSE(
 [AC_LANG_SOURCE([[int
-main ()
+main (void)
 {
   /* Are we little or big endian?  From Harbison&Steele.  */
   union
@@ -979,10 +979,10 @@
   AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
 [[short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
-void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
+void _ascii (void) { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
-void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }]],
+void _ebcdic (void) { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }]],
 [[ _ascii (); _ebcdic (); ]])],
 [if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
   ac_cv_c_bigendian=yes
@@ -1028,8 +1028,8 @@
   AC_COMPILE_IFELSE([AC_LANG_SOURCE(
 [#ifndef __cplusplus
 typedef int foo_t;
-static $ac_kw foo_t static_foo () {return 0; }
-$ac_kw foo_t foo () {return 0; }
+static $ac_kw foo_t static_foo (void) {return 0; }
+$ac_kw foo_t foo (void) {return 0; }
 #endif
 ])],
 		    [ac_cv_c_inline=$ac_kw; break])
diff -urN ../autoconf-2.59-orig/lib/autoconf/functions.m4 lib/autoconf/functions.m4
--- ../autoconf-2.59-orig/lib/autoconf/functions.m4	2003-10-27 20:13:42 +0900
+++ lib/autoconf/functions.m4	2005-10-07 18:48:04 +0900
@@ -280,7 +280,7 @@
 	       [ac_cv_c_stack_direction],
 [AC_RUN_IFELSE([AC_LANG_SOURCE(
 [int
-find_stack_direction ()
+find_stack_direction (void)
 {
   static char *addr = 0;
   auto char dummy;
@@ -294,7 +294,7 @@
 }
 
 int
-main ()
+main (void)
 {
   exit (find_stack_direction () < 0);
 }])],
@@ -421,7 +421,7 @@
 [AC_RUN_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT
 #include <$ac_header_dirent>
 #ifndef __cplusplus
-int closedir ();
+int closedir (int);
 #endif
 ],
 				[[exit (closedir (opendir (".")) != 0);]])],
@@ -850,7 +850,7 @@
 [[#if STDC_HEADERS || HAVE_STDLIB_H
 # include <stdlib.h>
 #else
-char *malloc ();
+char *malloc (int);
 #endif
 ]],
 		 [exit (malloc (0) ? 0 : 1);])],
@@ -984,7 +984,7 @@
 /* Fail if mktime fails to convert a date in the spring-forward gap.
    Based on a problem report from Andreas Jaeger.  */
 static void
-spring_forward_gap ()
+spring_forward_gap (void)
 {
   /* glibc (up to about 1998-10-07) failed this test. */
   struct tm tm;
@@ -1025,7 +1025,7 @@
 }
 
 static void
-irix_6_4_bug ()
+irix_6_4_bug (void)
 {
   /* Based on code from Ariel Faigon.  */
   struct tm tm;
@@ -1068,7 +1068,7 @@
 }
 
 int
-main ()
+main (void)
 {
   time_t t, delta;
   int i, j;
@@ -1155,7 +1155,7 @@
 #include <sys/mman.h>
 
 #if !STDC_HEADERS && !HAVE_STDLIB_H
-char *malloc ();
+char *malloc (int);
 #endif
 
 /* This mess was copied from the GNU getpagesize.h.  */
@@ -1196,7 +1196,7 @@
 #endif /* no HAVE_GETPAGESIZE */
 
 int
-main ()
+main (void)
 {
   char *data, *data2, *data3;
   int i, pagesize;
@@ -1306,7 +1306,7 @@
 [[#if STDC_HEADERS || HAVE_STDLIB_H
 # include <stdlib.h>
 #else
-char *realloc ();
+char *realloc (char *, int);
 #endif
 ]],
 		 [exit (realloc (0, 0) ? 0 : 1);])],
@@ -1462,9 +1462,9 @@
 [AC_SUBST(POW_LIB)dnl
 AC_CACHE_CHECK(for working strtod, ac_cv_func_strtod,
 [AC_RUN_IFELSE([AC_LANG_SOURCE([[
-double strtod ();
+double strtod (char *, char **);
 int
-main()
+main(void)
 {
   {
     /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
@@ -1528,7 +1528,7 @@
       # has a strerror_r that returns `int'.
       # This test should segfault on the DEC system.
       AC_RUN_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT
-	extern char *strerror_r ();],
+	extern char *strerror_r (int, char *, int);],
 	[[char buf[100];
 	  char x = *strerror_r (0, buf, sizeof buf);
 	  exit (!isalpha (x));]])],
@@ -1748,7 +1748,7 @@
       # include <unistd.h>
       #endif
       /* Some systems only have a dummy stub for fork() */
-      int main ()
+      int main (void)
       {
 	if (fork() < 0)
 	  exit (1);
@@ -1805,7 +1805,7 @@
 }
 
 int
-main ()
+main (void)
 {
   pid_t parent = getpid ();
   pid_t child;
@@ -1915,7 +1915,7 @@
 #include <stdio.h>
 /* HP-UX has wait3 but does not fill in rusage at all.  */
 int
-main ()
+main (void)
 {
   struct rusage r;
   int i;
diff -urN ../autoconf-2.59-orig/lib/autoconf/headers.m4 lib/autoconf/headers.m4
--- ../autoconf-2.59-orig/lib/autoconf/headers.m4	2003-09-25 16:28:51 +0900
+++ lib/autoconf/headers.m4	2005-10-07 18:39:23 +0900
@@ -603,7 +603,7 @@
 
 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 int
-main ()
+main (void)
 {
   int i;
   for (i = 0; i < 256; i++)
diff -urN ../autoconf-2.59-orig/lib/autoconf/specific.m4 lib/autoconf/specific.m4
--- ../autoconf-2.59-orig/lib/autoconf/specific.m4	2003-09-09 17:38:11 +0900
+++ lib/autoconf/specific.m4	2005-10-07 18:39:19 +0900
@@ -282,7 +282,7 @@
 #endif
 
 int
-main ()
+main (void)
 {
   int i = fork (), status;
 
diff -urN ../autoconf-2.59-orig/lib/autoconf/types.m4 lib/autoconf/types.m4
--- ../autoconf-2.59-orig/lib/autoconf/types.m4	2003-05-22 21:05:14 +0900
+++ lib/autoconf/types.m4	2005-10-07 18:51:33 +0900
@@ -259,7 +259,7 @@
 #define MAX(x, y) ((x) > (y) ? (x) : (y))
 
 int
-main ()
+main (void)
 {
   gid_t gidset[NGID];
   int i, n;
@@ -360,7 +360,7 @@
 #ifdef __cplusplus
 extern "C" void (*signal (int, void (*)(int)))(int);
 #else
-void (*signal ()) ();
+void (*signal (int, void (*)(int))) (int);
 #endif
 ],
 		 [int i;])],
######## end gcc -Werror -Wmissing-prototypes fix
EOT

/pkg/autoconf/
/usr/bin/autoconf
/usr/bin/autoheader
/usr/bin/autom4te
/usr/bin/autoreconf
/usr/bin/autoscan
/usr/bin/autoupdate
/usr/bin/ifnames
/usr/info/autoconf.info*
/usr/man/man1/autoconf.1.gz
/usr/man/man1/autoheader.1.gz
/usr/man/man1/autom4te.1.gz
/usr/man/man1/autoreconf.1.gz
/usr/man/man1/autoscan.1.gz
/usr/man/man1/autoupdate.1.gz
/usr/man/man1/config.guess.1.gz
/usr/man/man1/config.sub.1.gz
/usr/man/man1/ifnames.1.gz
