AC_HEADER_MAJOR: port to glibc 2.25
[autoconf/ericb.git] / m4 / make-case.m4
blob3f0596e6c1b5fc97fa6bf8264fae088f393c5410
1 # make-case.m4 serial 1
3 # Copyright (C) 2008-2016 Free Software Foundation, Inc.
5 # Copying and distribution of this file, with or without modification,
6 # are permitted in any medium without royalty provided the notice and
7 # this notice are preserved.  This file is offered as-is, without
8 # warranty of any kind.
10 # AC_PROG_MAKE_CASE_SENSITIVE
11 # ---------------------------
12 # Checks whether make is configured to be case insensitive; if yes,
13 # sets AM_CONDITIONAL MAKE_CASE_SENSITIVE.
15 AC_DEFUN([AC_PROG_MAKE_CASE_SENSITIVE],
16 [AC_REQUIRE([AC_PROG_MAKE_SET])dnl
17 AC_CACHE_CHECK([whether ${MAKE-make} is case sensitive],
18 [ac_cv_prog_make_${ac_make}_case],
19 [echo all: >conftest.make
20 if ${MAKE-make} -f conftest.make ALL >/dev/null 2>&1; then
21   ac_res=no
22 else
23   ac_res=yes
25 eval ac_cv_prog_make_${ac_make}_case=$ac_res
26 rm -f conftest.make])
27 AM_CONDITIONAL([MAKE_CASE_SENSITIVE],
28   [eval test \$ac_cv_prog_make_${ac_make}_case = yes])