summaryrefslogtreecommitdiff
path: root/Build/source/texk/m4/kpse_unset.m4
blob: 72d05451fac47c7c995a6fd6a0eff6a3c5d6046a (plain)
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
30
31
32
# Private macros for the kpathsea library.
# Copyright (C) 1995 - 2008 Karl Berry <tex-live@tug.org>
#
# This file is free software; the copyright holder
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.

# serial 2

# AC_UNSET_CC
# -----------
# Unset CC to run configure with cross compiler.
AC_DEFUN([AC_UNSET_CC], [
ZZ=
if test "$cross_compiling" = yes &&
   (test "x$CC" = "xdos-gcc" || test "x$CC" = "xi386-mingw32-gcc" || test "x$CC" = "xgnuwin32gcc") ; then
ZZ=$CC
unset CC
cross_compiling=no
fi
])

# AC_RESET_CC
# -----------
# Restore CC that has been unset by AC_UNSET_CC
AC_DEFUN([AC_RESET_CC], [
if test "x$ZZ" = "xdos-gcc" || test "x$ZZ" = "xi386-mingw32-gcc" || test "x$ZZ" = "xgnuwin32gcc" ; then
CC=$ZZ
cross_compiling=yes
fi
])