1 # make-case.m4 serial 0
2 dnl Copyright (C) 2008 Free Software Foundation, Inc.
3 dnl This file is free software; the Free Software Foundation
4 dnl gives unlimited permission to copy and/or distribute it,
5 dnl with or without modifications, as long as this notice is preserved.
7 # AC_PROG_MAKE_CASE_SENSITIVE
8 # ---------------------------
9 # Checks whether make is configured to be case insensitive; if yes,
10 # sets AM_CONDITIONAL MAKE_CASE_SENSITIVE.
12 AC_DEFUN([AC_PROG_MAKE_CASE_SENSITIVE],
13 [AC_REQUIRE([AC_PROG_MAKE_SET])dnl
14 AC_CACHE_CHECK([whether ${MAKE-make} is case sensitive],
15 [ac_cv_prog_make_${ac_make}_case],
16 [echo all: >conftest.make
17 if ${MAKE-make} -f conftest.make ALL >/dev/null 2>&1; then
22 eval ac_cv_prog_make_${ac_make}_case=$ac_res
24 AM_CONDITIONAL([MAKE_CASE_SENSITIVE],
25 [eval test \$ac_cv_prog_make_${ac_make}_case = yes])