File: make-case.m4

package info (click to toggle)
autoconf 2.72-4
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 7,808 kB
  • sloc: sh: 5,553; perl: 3,932; makefile: 123; lisp: 104
file content (29 lines) | stat: -rw-r--r-- 947 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# make-case.m4 serial 1

# Copyright (C) 2008-2017, 2020-2023 Free Software Foundation, Inc.

# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the notice and
# this notice are preserved.  This file is offered as-is, without
# warranty of any kind.

# AC_PROG_MAKE_CASE_SENSITIVE
# ---------------------------
# Checks whether make is configured to be case insensitive; if yes,
# sets AM_CONDITIONAL MAKE_CASE_SENSITIVE.
#
AC_DEFUN([AC_PROG_MAKE_CASE_SENSITIVE],
[AC_REQUIRE([AC_PROG_MAKE_SET])dnl
AC_CACHE_CHECK([whether ${MAKE-make} is case sensitive],
[ac_cv_prog_make_${ac_make}_case],
[echo all: >conftest.make
if ${MAKE-make} -f conftest.make ALL >/dev/null 2>&1; then
  ac_res=no
else
  ac_res=yes
fi
eval ac_cv_prog_make_${ac_make}_case=$ac_res
rm -f conftest.make])
AM_CONDITIONAL([MAKE_CASE_SENSITIVE],
  [eval test \$ac_cv_prog_make_${ac_make}_case = yes])
])