|
我的系统是fc4
在写程序时有如下的configure.ac文件内容:
dnl Process this file with autoconf to produce a configure script.
AC_INIT(Changelog)
AM_INIT_AUTOMAKE("xxxxxxx", "0.01")
AM_CONFIG_HEADER(config.h)
AC_DEFINE(SOMEDEFINE, 1)
AC_PROG_CC
AM_PROG_LEX
AC_PROG_YACC
AC_PROG_INSTALL
AC_C_CONST
AC_CHECK_HEADERS([locale.h stddef.h stdlib.h string.h unistd.h])
AC_TYPE_SIZE_T
AC_CHECK_TYPE(ptrdiff_t, size_t)
AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_CHECK_FUNCS([memset setlocale strcasecmp strdup])
AC_CHECK_LIB(termcap, tgetent, [], [AC_MSG_ERROR([library 'termcap' is required for xxxxx])])
AC_CHECK_LIB(readline, readline, [], [AC_MSG_ERROR([library 'readline' is required for xxxx])])
AC_CHECK_LIB(ldap, ldap_init, [], [AC_MSG_ERROR([ldap c api library is required for xxxx])])
AC_OUTPUT(Makefile src/Makefile)
在aclocal后,使用autoheader时:
[gnap@osiris xxxxx]$ autoheader
autoheader: warning: missing template: SOMEDEFINE
autoheader: Use AC_DEFINE([SOMEDEFINE], [], [Description])
[gnap@osiris xxxxx]$
我自己没有头绪不知道该如何解决,请大家帮忙指点!~ |
|