X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=configure.ac;h=5b2f6409b145bc7a2418bcb5009b9b5f808e64a6;hp=efae9fccb1c04fce9210aaf300765ee87a671ba8;hb=768b5edd9623b7238e12ec8dfc409b82a1ed9e2d;hpb=ecd6d6a20cb7a1507e3a20d6c4cb3a1cf14c6bbf diff --git a/configure.ac b/configure.ac index efae9fc..5b2f640 100644 --- a/configure.ac +++ b/configure.ac @@ -4,6 +4,7 @@ dnl dnl Move this up a bit AC_PREREQ(2.61) +dnl (I was able to configure with autoconf-2.59 --meillo 2012-03-22) AC_INIT(mmh, m4_normalize(m4_include([VERSION]))) AC_CONFIG_SRCDIR(h/nmh.h) @@ -339,11 +340,9 @@ AC_HEADER_TIME AC_HEADER_SYS_WAIT AC_HEADER_STAT AC_HEADER_TIOCGWINSZ -AC_CHECK_HEADERS(string.h memory.h stdlib.h unistd.h errno.h fcntl.h \ - limits.h crypt.h termcap.h termio.h termios.h locale.h \ - langinfo.h wchar.h wctype.h iconv.h netdb.h \ - sys/param.h sys/time.h sys/utsname.h sys/stream.h \ - arpa/inet.h arpa/ftp.h) +AC_CHECK_HEADERS(fcntl.h crypt.h termcap.h termio.h termios.h \ + langinfo.h wchar.h wctype.h iconv.h \ + sys/param.h sys/time.h sys/stream.h ) dnl dnl Checks for _IO_write_ptr. A Linuxism used by nmh on linux. We @@ -364,10 +363,9 @@ AC_CHECK_HEADER([sys/ptem.h], AC_DEFINE(WINSIZE_IN_PTEM,1, dnl --------------- dnl CHECK FUNCTIONS dnl --------------- -AC_FUNC_VFORK AC_CHECK_LIB(mkstemp,mkstemp) -AC_CHECK_FUNCS(waitpid wait3 sigaction sigprocmask sigblock sigsetmask \ - sighold sigrelse lstat uname tzset killpg mkstemp \ +AC_CHECK_FUNCS(waitpid sigaction sigprocmask sigblock sigsetmask \ + sighold sigrelse lstat tzset mkstemp \ getutent nl_langinfo mbtowc wcwidth) dnl sigsetjmp may be a macro @@ -391,16 +389,6 @@ AC_EGREP_HEADER(initgroups, grp.h, AC_DEFINE(INITGROUPS_HEADER, ), AC_EGREP_HEADER(initgroups, unistd.h, AC_DEFINE(INITGROUPS_HEADER, ))) -dnl On AIX 4.1, snprintf() is defined in libc.a but there's no prototype in -dnl or elsewhere. Apparently it's not officially supported (though it -dnl seems to work perfectly and IBM apparently uses it in internal code). -dnl Anyhow, if we omit our own snprintf() and vsnprintf() prototypes when we -dnl HAVE_SNPRINTF, we get a billion warnings at compile time. Use the C -dnl preprocessor to preprocess stdio.h and make sure that there's actually a -dnl prototype. -AC_EGREP_HEADER(snprintf, stdio.h, AC_DEFINE(HAVE_SNPRINTF_PROTOTYPE,1, - [Define to 1 if has a prototype for snprintf().])) - dnl Check for multibyte character set support if test "x$ac_cv_header_wchar_h" = "xyes" -a "x$ac_cv_header_wctype_h" = "xyes" \ -a "x$ac_cv_func_wcwidth" = "xyes" -a "x$ac_cv_func_mbtowc" = "xyes"; then