From d9b4ba18f62efe0f7e8c8dc904d550ff1a71f35c Mon Sep 17 00:00:00 2001 From: psychon Date: Sat, 8 Jan 2011 11:32:50 +0000 Subject: [PATCH] configure: Stop using AC_CHECK_FILE We need the file we check for only to figure out some compiler flags, so AC_CHECK_FILE's behavior of aborting cross compilation is just wrong. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2256 726aef4b-f618-498e-8847-2d620e286838 --- configure.ac | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index f0b6b928..fda8bebe 100644 --- a/configure.ac +++ b/configure.ac @@ -394,7 +394,14 @@ then for path in $TCL_DIR /usr/lib /usr/lib/tcl8.4 /usr/lib/tcl8.5 do file="${path}/tclConfig.sh" - AC_CHECK_FILE(${file}, [TCL_CONF="$file" ; break]) + AC_MSG_CHECKING([for ${file}]) + if test -r ${file} + then + TCL_CONF=${file} + AC_MSG_RESULT([yes]) + break + fi + AC_MSG_RESULT([no]) done if test x"${TCL_CONF}" = x