diff options
author | Werner Koch <[email protected]> | 2012-01-19 15:05:31 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2012-01-19 15:05:31 +0000 |
commit | c96778297f5477448a676fcf0c61044bdbccc86d (patch) | |
tree | 7bb0a33c56a9915cb0cb51861e0ca8d74fa17996 | |
parent | For W32 use a build number instead of abbreviated commit id. (diff) | |
download | gpgme-c96778297f5477448a676fcf0c61044bdbccc86d.tar.gz gpgme-c96778297f5477448a676fcf0c61044bdbccc86d.zip |
Try to make configure.ac a bit smaller.
* configure.ac: Move header checks.
-rw-r--r-- | configure.ac | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac index ebe30e92..3ed9c4b7 100644 --- a/configure.ac +++ b/configure.ac @@ -218,9 +218,8 @@ AM_CONDITIONAL(HAVE_PTHREAD, test "$have_pthread" = "yes") # Checks for header files. -AC_CHECK_HEADERS([locale.h]) -AC_CHECK_HEADERS(sys/select.h) -AC_CHECK_HEADERS([sys/uio.h]) +AC_CHECK_HEADERS_ONCE([locale.h sys/select.h sys/uio.h argp.h + unistd.h sys/time.h sys/types.h sys/stat.h]) # Type checks. @@ -802,8 +801,6 @@ AC_CHECK_FUNCS(getgid getegid) # Replacement functions. AC_REPLACE_FUNCS(stpcpy) -# Check for unistd.h for setenv replacement function. -AC_CHECK_HEADERS([unistd.h sys/time.h sys/types.h sys/stat.h]) AC_REPLACE_FUNCS(setenv) # Assuan check for descriptor passing. @@ -911,7 +908,7 @@ LTLIBOBJS=`echo "$LIB@&t@OBJS" | AC_SUBST(LTLIBOBJS) # Some checks for gpgme-tool -AC_CHECK_HEADER([argp.h]) +# Done at top: AC_CHECK_HEADER([argp.h]) AC_CHECK_TYPES([error_t], [], [AC_DEFINE([error_t], [int], [Define to a type to use for `error_t' if it is not otherwise available.])], |