]> granicus.if.org Git - flex/commitdiff
re-organize according to suggested layout in autoconf manual
authorWill Estes <wlestes@users.sourceforge.net>
Fri, 27 Sep 2002 13:20:11 +0000 (13:20 +0000)
committerWill Estes <wlestes@users.sourceforge.net>
Fri, 27 Sep 2002 13:20:11 +0000 (13:20 +0000)
configure.in

index a85388c0bf7595b268d56493cead22f83090f04b..ce355cd15d413059a299e3e3aaf508655dc523c4 100644 (file)
@@ -21,20 +21,19 @@ dnl IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
 dnl WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 dnl PURPOSE.
 
+dnl autoconf requirements and initialization
+
 AC_PREREQ(2.54)
 AC_INIT(flex,2.5.21,help-flex@gnu.org)
 AC_CONFIG_SRCDIR(scan.l)
 AM_INIT_AUTOMAKE
 AM_CONFIG_HEADER(config.h:conf.in)
+
+dnl checks for programs
+
 AM_GNU_GETTEXT
 AM_GNU_GETTEXT_VERSION(0.11.5)
 
-AC_TYPE_SIZE_T
-AC_HEADER_STDC
-AC_CHECK_HEADERS(string.h malloc.h sys/types.h unistd.h stdbool.h)
-AC_CHECK_HEADERS(cunistd netinet/in.h)
-AC_CHECK_DECLS(__func__)
-
 AC_PROG_YACC
 AM_PROG_LEX
 AC_PROG_CC
@@ -57,6 +56,22 @@ else
    AC_MSG_WARN(no indent program found: make indent target will not function)
 fi
 
+dnl checks for libraries
+
+dnl checks for header files
+
+AC_HEADER_STDC
+AC_CHECK_HEADERS(string.h malloc.h sys/types.h unistd.h stdbool.h)
+AC_CHECK_HEADERS(cunistd netinet/in.h)
+
+dnl checks for types
+
+AC_TYPE_SIZE_T
+
+dnl checks for functions
+
+AC_CHECK_DECLS(__func__)
+
 AC_CONFIG_FILES(
 Makefile
 examples/Makefile