aboutsummaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m421
1 files changed, 21 insertions, 0 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index e06366c..cfe9c0b 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -145,6 +145,10 @@ if test -z "$NM"; then
NM=`$CC -print-prog-name=nm`
fi
AC_SUBST(NM)
+if test -z "$STRIP"; then
+ STRIP=`$CC -print-prog-name=strip`
+fi
+AC_SUBST(STRIP)
])
dnl Run a static link test with -nostdlib -nostartfiles.
@@ -322,6 +326,23 @@ case "$prefix" in
;;
esac])
+dnl Test a CC compiler option or options with an input file.
+dnl LIBC_TRY_CC_COMMAND([message], [code], [options],
+dnl [CC-cache-id], [CC-action-if-true], [CC-action-if-false])
+AC_DEFUN([LIBC_TRY_CC_COMMAND],
+[
+cat > conftest.c <<EOF
+$2
+EOF
+AC_CACHE_CHECK([$1], $4, [dnl
+ if AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS $3 conftest.c -o conftest 1>&AS_MESSAGE_LOG_FD])
+ then
+ [$5]
+ else
+ [$6]
+ fi])
+rm -f conftest*])
+
dnl Run a test with TEST_CC.
dnl LIBC_CHECK_TEST_CC([commands])
AC_DEFUN([LIBC_CHECK_TEST_CC],