From 4c79eaf0668faea8261457ba1a655dc6ed104e28 Mon Sep 17 00:00:00 2001 From: Vladimir Volovich Date: Sun, 20 Apr 2008 06:29:52 +0000 Subject: configure.ac: check (also) for regex.h; fail if one of the required headers is not found git-svn-id: svn://tug.org/texlive/trunk@7540 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/utils/xindy/configure | 7 ++++++- Build/source/utils/xindy/configure.ac | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'Build/source/utils/xindy') diff --git a/Build/source/utils/xindy/configure b/Build/source/utils/xindy/configure index fbd0e2184d2..86c66d5cfd4 100755 --- a/Build/source/utils/xindy/configure +++ b/Build/source/utils/xindy/configure @@ -4632,7 +4632,8 @@ done -for ac_header in stdlib.h string.h + +for ac_header in stdlib.h string.h regex.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then @@ -4772,6 +4773,10 @@ if test `eval echo '${'$as_ac_Header'}'` = yes; then #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF +else + { { echo "$as_me:$LINENO: error: required C header file is missing" >&5 +echo "$as_me: error: required C header file is missing" >&2;} + { (exit 1); exit 1; }; } fi done diff --git a/Build/source/utils/xindy/configure.ac b/Build/source/utils/xindy/configure.ac index 530a6397448..d9b23d6a692 100644 --- a/Build/source/utils/xindy/configure.ac +++ b/Build/source/utils/xindy/configure.ac @@ -111,7 +111,7 @@ AC_SUBST(LISP_RUN) # Checks for header files. AC_HEADER_STDC -AC_CHECK_HEADERS([stdlib.h string.h]) +AC_CHECK_HEADERS([stdlib.h string.h regex.h],[],[AC_MSG_ERROR([required C header file is missing])]) dnl check system type AC_CANONICAL_HOST -- cgit v1.2.3