It is perhaps the same bug as #93838 (?)

Sorry, but i am not autoconf/autotools guru (!)

Our project try to elaborate a very restrictive C Ansi library.
( http://www.thelibcommonproject.org/ ).
This is why we are trying to make maximum efforts to suppress all
warnings in our lib at compile time.

I confirm that my configure.ac file is ok on Lenny (autoconf 2.65)

In attached file, please find our configure.ac file

Thanks for your help


Le 08/02/2011 20:18, Ben Pfaff a écrit :
Ralf Wildenhues<ralf.wildenh...@gmx.de>  writes:
checking CFLAGS for gcc -std=c99... ../../configure: line 13260:
ac_cv_cflags_gcc_option__std_c99=no, unknown: command not found
../../configure: line 13283: ac_cv_cflags_gcc_option__std_c99=-std=c99:
command not found

Please find out where this code comes from.  It is not from the Autoconf
package itself, but either from your configure.ac or a third-party macro
that you are using.  Please redirect this bug report to that third party
package.

By the way, I suspect that this bug is either a duplicate of
Bug#593838 or the same underlying issue:
         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=593838

The configure error message reported there was similar:
     checking CFLAGS for gcc -std=c99... ./configure: line 2493: 
ax_cv_cflags_gcc_option__std_c99=no, unknown: command not found



--
--------------------------------------
 -- Jean-Marc LACROIX                 --
  -- mailto : jeanmarc.lacr...@free.fr --
    ---------------------------------------
##
##
## configure.ac libcommon project
##
## Login   <philippe.thie...@reseau-libre.net>
##
## Started on  Wed Apr 22 16:50:48 2009 t0090690
## Last update Sat Oct  9 10:56:15 2010 Philippe THIERRY
##



############################################################################
# basic init                                                               #
############################################################################
AC_INIT([libcommon], [0.98.9-jml-rc3], [jeanmarc.lacr...@free.fr], [libcommon])
AC_PREREQ(2.61)
AM_INIT_AUTOMAKE([1.9.5 foreign dist-bzip2 no-dist-gzip foreign])
AC_CONFIG_SRCDIR([src/cm_libcommon.h])
AC_CONFIG_MACRO_DIR([build-aux])
AC_CONFIG_HEADERS([config.h])
AM_MAINTAINER_MODE
AC_LANG([C])

#############################################################################
# C specific standard verifications                                         #
#############################################################################
AC_SEARCH_LIBS([strerror],[cposix])
AC_PROG_CC
AC_PROG_CC_STDC
AC_HEADER_STDC
# check if the compiler support "inline", or replace each occurence by blank
AC_C_CONST
AC_C_INLINE
AC_C_VOLATILE
AC_HEADER_STDC

AC_PROG_LIBTOOL

#############################################################################
# Checking some basic headers and funcs                                     #
#############################################################################
AC_CHECK_HEADER([sys/types.h],,AC_MSG_ERROR([Cannot find sys/types.h ! Check 
your installation !]))
AC_CHECK_HEADER([ctype.h],,AC_MSG_ERROR([Cannot find ctype.h ! Check your 
installation !]))
AC_CHECK_HEADER([inttypes.h],,AC_MSG_ERROR([Cannot find inttypes.h ! Check your 
installation !]))
AC_CHECK_HEADER([errno.h],,AC_MSG_ERROR([Cannot find errno.h ! Check your 
installation !]))
AC_CHECK_HEADER([string.h],,AC_MSG_ERROR([Cannot find string.h ! Check your 
installation !]))
AC_CHECK_HEADER([sys/stat.h],,AC_MSG_ERROR([Cannot find sys/stat.h ! Check your 
installation !]))

AC_CHECK_FUNCS([strndup strncpy strdup strcat strcpy dup dup2 sigaction \
sigprocmask htons htonl snprintf sprintf fcntl])

# checking sizeofs... forbidden by requirements

#############################################################################
# Checking libraries presence                                               #
#############################################################################
AC_CHECK_LIB(m, powf, [], AC_MSG_ERROR([Cannot find libm match library ! Check 
your installation !]), [])

#############################################################################
# Support for compiler capacity to manage warning flags                     #
#############################################################################
AC_CONFIG_FILES([build-aux/Makefile])

# please consider potential pb on Bug#612389 for -std=c99 with autoconf 2.67

AX_CFLAGS_GCC_OPTION(-Wall)
AX_CFLAGS_GCC_OPTION(-W)
AX_CFLAGS_GCC_OPTION(-Werror)
AX_CFLAGS_GCC_OPTION(-Wundef)
AX_CFLAGS_GCC_OPTION(-Wno-multichar)
AX_CFLAGS_GCC_OPTION(-Wextra)
AX_CFLAGS_GCC_OPTION(-Wtrigraphs)
AX_CFLAGS_GCC_OPTION(-Wundef)
AX_CFLAGS_GCC_OPTION(-Wswitch)
AX_CFLAGS_GCC_OPTION(-Wunused)
AX_CFLAGS_GCC_OPTION(-Wmissing-prototypes)
AX_CFLAGS_GCC_OPTION(-Wpacked)
AX_CFLAGS_GCC_OPTION(-Waggregate-return)
AX_CFLAGS_GCC_OPTION(-Wimplicit)
AX_CFLAGS_GCC_OPTION(-Wcast-qual)
AX_CFLAGS_GCC_OPTION(-Wcast-align)
AX_CFLAGS_GCC_OPTION(-Wwrite-strings)
AX_CFLAGS_GCC_OPTION(-Wuninitialized)
AX_CFLAGS_GCC_OPTION(-Winit-self)
AX_CFLAGS_GCC_OPTION(-fno-common)
AX_CFLAGS_GCC_OPTION(-pedantic)
AX_CFLAGS_GCC_OPTION(-Wshadow)
AX_CFLAGS_GCC_OPTION(-Wunsafe-loop-optimizations)
AX_CFLAGS_GCC_OPTION(-std=c99)
AX_CFLAGS_GCC_OPTION(-Wreturn-type)
AX_CFLAGS_GCC_OPTION(-Wimplicit-int)
AX_CFLAGS_GCC_OPTION(-Wmain)
AX_CFLAGS_GCC_OPTION(-Wcomment)
AX_CFLAGS_GCC_OPTION(-Wformat)
AX_CFLAGS_GCC_OPTION(-Wchar-subscripts)
AX_CFLAGS_GCC_OPTION(-Wimplicit-function-declaration)
AX_CFLAGS_GCC_OPTION(-Wparentheses)
AX_CFLAGS_GCC_OPTION(-Wmissing-declarations)
AX_CFLAGS_GCC_OPTION(-Wredundant-decls)
AX_CFLAGS_GCC_OPTION(-Wstrict-prototypes)
AX_CFLAGS_GCC_OPTION(-Wnested-externs)
AX_CFLAGS_GCC_OPTION(-Wfloat-equal)
AX_CFLAGS_GCC_OPTION(-Wpointer-arith)
AX_CFLAGS_GCC_OPTION(-Wbad-function-cast)
AX_CFLAGS_GCC_OPTION(-Wsequence-point)
AX_CFLAGS_GCC_OPTION(-Wpadded)

#############################################################################
# Support for static lib creation                                           #
#############################################################################
: ${enable_shared=no}
LT_INIT
LT_INIT

############################################################################
# Checking needed softwares presence                                        #
#############################################################################
AC_PROG_INSTALL

AC_CHECK_PROG([DOXYGEN], [doxygen], [yes], [no])
if test X$DOXYGEN = "X:"; then
  AC_MSG_WARN([Unable to detect doxygen in your path. You will not be able \
  to generate libcommon developpement documentation.], 2)
  doxygen="no";
else
  doxygen="yes";
fi

AC_CHECK_PROG([DOT], [dot], [yes], [no])
if test X$DOT = "X:"; then
  AC_MSG_WARN([Unable to detect dot in your path. You will not be able \
  to generate libcommon developpement documentation.], 2)
  dot="no";
else
  dot="yes";
fi



AC_CHECK_PROG([PYTHON], [python], [yes], [no])
if test X$PYTHON = "X:"; then
  AC_MSG_WARN([Unable to detect python in your path. You will not be able \
  to generate libcommon test framework results for profiling.], 2)
  python="no";
else
  python="yes";
fi


AC_CHECK_PROG([SLOCCOUNT], [sloccount], [yes], [no])
if test X$SOCCOUNT = "X:"; then
  AC_MSG_WARN([Unable to detect sloccount in your path. You will not be able \
  to generate the SLOC counts.], 2)
  sloccount="no";
else
  sloccount="yes";
fi

AC_CHECK_PROG([GPROF], [gprof], [yes], [no])
if test X$GPROF = "X:"; then
  AC_MSG_WARN([Unable to detect gprof in your path. You will not be able \
  to generate libcommon function calls profile.], 2)
  gprof="no";
else
  gprof="yes";
fi

AC_CHECK_PROG([GCOV], [gcov], [yes], [no])
if test X$GCOV = "X:"; then
  AC_MSG_WARN([Unable to detect gcov in your path. You will not be able \
  to generate libcommon tests coverage.], 2)
  gcov="no";
else
  gcov="yes";
fi

AC_CHECK_PROG([VALGRIND], [valgrind], [yes], [no])
if test X$VALGRIND = "X:"; then
  AC_MSG_WARN([Unable to detect valgrind in your path. You will not be able \
  to generate dynamic memory usage in libcommon tests.], 2)
  valgrind="no";
else
  valgrind="yes";
fi

AC_CHECK_PROG([LATEX], [latex], [yes], [no])
if test X$LATEX = "X:"; then
  AC_MSG_WARN([Unable to detect latex in your path. You will not be able \
  to generate libcommon architecture documentation.], 2)
  latex="no";
else
  latex="yes";
fi

AC_CHECK_PROG([HTLATEX], [htlatex], [yes], [no])
if test X$HTLATEX = "X:"; then
  AC_MSG_WARN([Unable to detect htlatex in your path. You will not be able \
  to generate web part of libcommon architecture documentation.], 2)
  htlatex="no";
else
  htlatex="yes";
fi

#############################################################################
# Checking specific arguments presence                                      #
#############################################################################
#Libefence
AC_ARG_WITH(efence, [  --with-efence           Link with electric fence ])
if test "$with_efence" = "yes"
then
        AC_CHECK_LIB(efence, EF_ALIGNMENT, LIBS="${LIBS} -lefence", 
AC_MSG_ERROR(libefence not found))
        efence="yes";
        EFENCE=1;
else
        efence="no";
fi

# debug chars
AC_ARG_WITH(debug, [  --with-debug            Activate -g option of gcc and 
delete -DNDEBUG macro])
if test "$with_debug" = "yes"
then
        debug="yes";
        cppdebug=1;
        DEBUG="-g";
else
        debug="no";
        cppdebug=0;
        DEBUG="";
fi       
AC_DEFINE_UNQUOTED([HAVE_DEBUG], ${cppdebug}, [specify if the software has been 
configured in debug mode])

#############################################################################
# Generating CFLAGS...                                                      #
#############################################################################

CFLAGS="$CFLAGS -O2 $DEBUG  -D_XOPEN_SOURCE=600 $WARNING_CFLAGS"

#############################################################################
# Finishing. Specify new conditionnals and Makfiles                         #
#############################################################################
AM_CONDITIONAL(HTLATEX, test x$htlatex = xyes)


AC_CONFIG_FILES([
Makefile
  doc/Makefile
  src/Makefile
    src/posix/Makefile
    src/posix/test/Makefile
    src/socket/Makefile
    src/socket/test/Makefile
    src/types/Makefile
    src/debug/Makefile
    src/debug/test/Makefile
    src/debug/man/Makefile
    src/list/Makefile
    src/list/test/Makefile
    src/string/Makefile
    src/string/test/Makefile
    src/utils/Makefile
    src/utils/test/Makefile
    src/getopt/Makefile
    src/getopt/test/Makefile
    src/getopt/man/Makefile
    src/match/Makefile
    src/match/test/Makefile
    src/version/Makefile
    src/version/test/Makefile
    src/unitary_test/Makefile
    src/unitary_test/test/Makefile
    src/cycles/Makefile
    src/cycles/test/Makefile
    src/cycles/man/Makefile
    src/memory/Makefile
    src/memory/test/Makefile
    src/container/Makefile
    src/container/fifo/Makefile
    src/container/fifo/test/Makefile
    src/container/fifo/man/Makefile
    src/container/stack/Makefile
    src/container/stack/test/Makefile
    src/container/stack/man/Makefile
  test/Makefile
])

AC_OUTPUT

echo;
echo Configuration completed;
echo;
echo System detected................... `uname -s`;
echo;
echo -- compilation needs are all OK;
echo;
echo -- documentation needs :;
echo latex found....................... $latex;
echo htlatex found..................... $htlatex;
echo Doxygen found..................... $doxygen;
echo Dot found......................... $dot;
echo;
echo -- test framework needs :;
echo Python found...................... $python;
echo Sloccount found................... $sloccount;
echo Gprof found....................... $gprof;
echo Gcov found........................ $gcov;
echo valgrind found.................... $valgrind;
echo Debug activated................... $debug;
echo Libefence activated............... $efence;
echo;
echo Type make to compile;
echo;

Reply via email to