[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
autoconf-2.52 error?
From: |
Stefan Illner |
Subject: |
autoconf-2.52 error? |
Date: |
Mon, 24 Sep 2001 16:44:45 +0200 |
Hi,
i have some problems using autoconf 2.52 and can't find out why.
Maybe anyone has an idea where i've made an error.
autoconf-version: 2.52d (doesn't work with 2.52 either)
perl-version: 5.6.1
m4-version: 1.4
proj.c:
#include <stdio.h>
#include "config.h"
int
main(int argc, char** argv)
{
printf("Hallo Welt\n");
exit (0);
}
config.h.in:
#undef PACKAGE
#undef VERSION
Makefile.in:
CC = @CC@
proj: proj.c
$(CC) -o $@ $<
configure.ac:
AC_INIT(proj, 0.1)
AC_CONFIG_SRCDIR(proj.c)
AC_CONFIG_HEADERS(config.h)
AC_PROG_CC
AC_CONFIG_FILES(Makefile)
AC_OUTPUT
Running "autoconf" results in:
configure.ac:6: /usr/bin/m4: Warning: Too few arguments to built-in
`m4_patsubst'
configure.ac:6: /usr/bin/m4: Warning: Too few arguments to built-in `m4_if'
configure.ac:6: /usr/bin/m4: Warning: Too few arguments to built-in `m4_if'
configure.ac:6: /usr/bin/m4: Warning: Too few arguments to built-in
`m4_patsubst'
configure.ac:6: /usr/bin/m4: Warning: Too few arguments to built-in `m4_if'
configure.ac:6: /usr/bin/m4: Warning: Too few arguments to built-in `m4_if'
but "configure" is built. Running it with --version or --help works, but
a simple "./configure" produces the following output:
.... correct recognition of gcc
../config.status: line 202: syntax error near unexpected token `"'
../config.status: line 202: `] " CONFIG_HEADERS="$CONFIG_HEADERS config.h]" ;;'
The corresponding part in config.status is as follows:
for ac_config_target in $ac_config_targets
do
case "$ac_config_target" in
# Handling of arguments.
" CONFIG_FILES="$CONFIG_FILES Makefile]" ;;
] " CONFIG_HEADERS="$CONFIG_HEADERS config.h]" ;;
] *) { { echo "$as_me:1996: error: invalid argument: $ac_config_target" >&5
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
{ (exit 1); exit 1; }; };;
esac
done
Can anyone reproduce this behaviour, or, even better, tell me
why this occurs?
TIA,
stillner
- autoconf-2.52 error?,
Stefan Illner <=