Blame m4/make-case.m4

Packit Service 9646c7
# make-case.m4 serial 1
Packit Service 9646c7
Packit Service 9646c7
# Copyright (C) 2008-2012 Free Software Foundation, Inc.
Packit Service 9646c7
Packit Service 9646c7
# Copying and distribution of this file, with or without modification,
Packit Service 9646c7
# are permitted in any medium without royalty provided the notice and
Packit Service 9646c7
# this notice are preserved.  This file is offered as-is, without
Packit Service 9646c7
# warranty of any kind.
Packit Service 9646c7
Packit Service 9646c7
# AC_PROG_MAKE_CASE_SENSITIVE
Packit Service 9646c7
# ---------------------------
Packit Service 9646c7
# Checks whether make is configured to be case insensitive; if yes,
Packit Service 9646c7
# sets AM_CONDITIONAL MAKE_CASE_SENSITIVE.
Packit Service 9646c7
#
Packit Service 9646c7
AC_DEFUN([AC_PROG_MAKE_CASE_SENSITIVE],
Packit Service 9646c7
[AC_REQUIRE([AC_PROG_MAKE_SET])dnl
Packit Service 9646c7
AC_CACHE_CHECK([whether ${MAKE-make} is case sensitive],
Packit Service 9646c7
[ac_cv_prog_make_${ac_make}_case],
Packit Service 9646c7
[echo all: >conftest.make
Packit Service 9646c7
if ${MAKE-make} -f conftest.make ALL >/dev/null 2>&1; then
Packit Service 9646c7
  ac_res=no
Packit Service 9646c7
else
Packit Service 9646c7
  ac_res=yes
Packit Service 9646c7
fi
Packit Service 9646c7
eval ac_cv_prog_make_${ac_make}_case=$ac_res
Packit Service 9646c7
rm -f conftest.make])
Packit Service 9646c7
AM_CONDITIONAL([MAKE_CASE_SENSITIVE],
Packit Service 9646c7
  [eval test \$ac_cv_prog_make_${ac_make}_case = yes])
Packit Service 9646c7
])