mirror of
https://github.com/openbsd/xenocara.git
synced 2025-12-13 20:59:03 +00:00
regen
This commit is contained in:
88
util/cf/aclocal.m4
vendored
88
util/cf/aclocal.m4
vendored
@@ -11,50 +11,6 @@
|
|||||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||||
# PARTICULAR PURPOSE.
|
# PARTICULAR PURPOSE.
|
||||||
|
|
||||||
dnl Copyright 2005 Red Hat, Inc
|
|
||||||
dnl
|
|
||||||
dnl Permission to use, copy, modify, distribute, and sell this software and its
|
|
||||||
dnl documentation for any purpose is hereby granted without fee, provided that
|
|
||||||
dnl the above copyright notice appear in all copies and that both that
|
|
||||||
dnl copyright notice and this permission notice appear in supporting
|
|
||||||
dnl documentation.
|
|
||||||
dnl
|
|
||||||
dnl The above copyright notice and this permission notice shall be included
|
|
||||||
dnl in all copies or substantial portions of the Software.
|
|
||||||
dnl
|
|
||||||
dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
||||||
dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
||||||
dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
||||||
dnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
||||||
dnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
||||||
dnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
||||||
dnl OTHER DEALINGS IN THE SOFTWARE.
|
|
||||||
dnl
|
|
||||||
dnl Except as contained in this notice, the name of the copyright holders shall
|
|
||||||
dnl not be used in advertising or otherwise to promote the sale, use or
|
|
||||||
dnl other dealings in this Software without prior written authorization
|
|
||||||
dnl from the copyright holders.
|
|
||||||
dnl
|
|
||||||
|
|
||||||
# XORG_RELEASE_VERSION
|
|
||||||
# --------------------
|
|
||||||
# Adds --with/without-release-string and changes the PACKAGE and
|
|
||||||
# PACKAGE_TARNAME to use "$PACKAGE{_TARNAME}-$RELEASE_VERSION". If
|
|
||||||
# no option is given, PACKAGE and PACKAGE_TARNAME are unchanged.
|
|
||||||
|
|
||||||
AC_DEFUN([XORG_RELEASE_VERSION],[
|
|
||||||
AC_ARG_WITH(release-version,
|
|
||||||
AC_HELP_STRING([--with-release-version=STRING],
|
|
||||||
[Use release version string in package name]),
|
|
||||||
[RELEASE_VERSION="$withval"],
|
|
||||||
[RELEASE_VERSION=""])
|
|
||||||
if test "x$RELEASE_VERSION" != "x"; then
|
|
||||||
PACKAGE="$PACKAGE-$RELEASE_VERSION"
|
|
||||||
PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
|
|
||||||
AC_MSG_NOTICE([Building with package name set to $PACKAGE])
|
|
||||||
fi
|
|
||||||
])
|
|
||||||
|
|
||||||
# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
|
# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
|
||||||
#
|
#
|
||||||
# This file is free software; the Free Software Foundation
|
# This file is free software; the Free Software Foundation
|
||||||
@@ -645,3 +601,47 @@ AC_SUBST([am__tar])
|
|||||||
AC_SUBST([am__untar])
|
AC_SUBST([am__untar])
|
||||||
]) # _AM_PROG_TAR
|
]) # _AM_PROG_TAR
|
||||||
|
|
||||||
|
dnl Copyright 2005 Red Hat, Inc
|
||||||
|
dnl
|
||||||
|
dnl Permission to use, copy, modify, distribute, and sell this software and its
|
||||||
|
dnl documentation for any purpose is hereby granted without fee, provided that
|
||||||
|
dnl the above copyright notice appear in all copies and that both that
|
||||||
|
dnl copyright notice and this permission notice appear in supporting
|
||||||
|
dnl documentation.
|
||||||
|
dnl
|
||||||
|
dnl The above copyright notice and this permission notice shall be included
|
||||||
|
dnl in all copies or substantial portions of the Software.
|
||||||
|
dnl
|
||||||
|
dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||||
|
dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||||
|
dnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
||||||
|
dnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||||
|
dnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||||
|
dnl OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
dnl
|
||||||
|
dnl Except as contained in this notice, the name of the copyright holders shall
|
||||||
|
dnl not be used in advertising or otherwise to promote the sale, use or
|
||||||
|
dnl other dealings in this Software without prior written authorization
|
||||||
|
dnl from the copyright holders.
|
||||||
|
dnl
|
||||||
|
|
||||||
|
# XORG_RELEASE_VERSION
|
||||||
|
# --------------------
|
||||||
|
# Adds --with/without-release-string and changes the PACKAGE and
|
||||||
|
# PACKAGE_TARNAME to use "$PACKAGE{_TARNAME}-$RELEASE_VERSION". If
|
||||||
|
# no option is given, PACKAGE and PACKAGE_TARNAME are unchanged.
|
||||||
|
|
||||||
|
AC_DEFUN([XORG_RELEASE_VERSION],[
|
||||||
|
AC_ARG_WITH(release-version,
|
||||||
|
AC_HELP_STRING([--with-release-version=STRING],
|
||||||
|
[Use release version string in package name]),
|
||||||
|
[RELEASE_VERSION="$withval"],
|
||||||
|
[RELEASE_VERSION=""])
|
||||||
|
if test "x$RELEASE_VERSION" != "x"; then
|
||||||
|
PACKAGE="$PACKAGE-$RELEASE_VERSION"
|
||||||
|
PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
|
||||||
|
AC_MSG_NOTICE([Building with package name set to $PACKAGE])
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
|
||||||
|
|||||||
783
util/gccmakedep/aclocal.m4
vendored
783
util/gccmakedep/aclocal.m4
vendored
@@ -11,323 +11,6 @@
|
|||||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||||
# PARTICULAR PURPOSE.
|
# PARTICULAR PURPOSE.
|
||||||
|
|
||||||
dnl $Id: aclocal.m4,v 1.1.1.1 2006/11/25 16:16:47 matthieu Exp $
|
|
||||||
dnl
|
|
||||||
dnl Copyright 2005 Sun Microsystems, Inc. All rights reserved.
|
|
||||||
dnl
|
|
||||||
dnl Permission to use, copy, modify, distribute, and sell this software and its
|
|
||||||
dnl documentation for any purpose is hereby granted without fee, provided that
|
|
||||||
dnl the above copyright notice appear in all copies and that both that
|
|
||||||
dnl copyright notice and this permission notice appear in supporting
|
|
||||||
dnl documentation.
|
|
||||||
dnl
|
|
||||||
dnl The above copyright notice and this permission notice shall be included
|
|
||||||
dnl in all copies or substantial portions of the Software.
|
|
||||||
dnl
|
|
||||||
dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
||||||
dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
||||||
dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
||||||
dnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
||||||
dnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
||||||
dnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
||||||
dnl OTHER DEALINGS IN THE SOFTWARE.
|
|
||||||
dnl
|
|
||||||
dnl Except as contained in this notice, the name of the copyright holders shall
|
|
||||||
dnl not be used in advertising or otherwise to promote the sale, use or
|
|
||||||
dnl other dealings in this Software without prior written authorization
|
|
||||||
dnl from the copyright holders.
|
|
||||||
dnl
|
|
||||||
|
|
||||||
# XORG_PROG_RAWCPP()
|
|
||||||
# ------------------
|
|
||||||
# Find cpp program and necessary flags for use in pre-processing text files
|
|
||||||
# such as man pages and config files
|
|
||||||
AC_DEFUN([XORG_PROG_RAWCPP],[
|
|
||||||
AC_REQUIRE([AC_PROG_CPP])
|
|
||||||
AC_PATH_PROGS(RAWCPP, [cpp], [${CPP}],
|
|
||||||
[$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib])
|
|
||||||
|
|
||||||
# Check for flag to avoid builtin definitions - assumes unix is predefined,
|
|
||||||
# which is not the best choice for supporting other OS'es, but covers most
|
|
||||||
# of the ones we need for now.
|
|
||||||
AC_MSG_CHECKING([if $RAWCPP requires -undef])
|
|
||||||
AC_LANG_CONFTEST([Does cpp redefine unix ?])
|
|
||||||
if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
|
|
||||||
AC_MSG_RESULT([no])
|
|
||||||
else
|
|
||||||
if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
|
|
||||||
RAWCPPFLAGS=-undef
|
|
||||||
AC_MSG_RESULT([yes])
|
|
||||||
else
|
|
||||||
AC_MSG_ERROR([${RAWCPP} defines unix with or without -undef. I don't know what to do.])
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
rm -f conftest.$ac_ext
|
|
||||||
|
|
||||||
AC_MSG_CHECKING([if $RAWCPP requires -traditional])
|
|
||||||
AC_LANG_CONFTEST([Does cpp preserve "whitespace"?])
|
|
||||||
if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
|
|
||||||
AC_MSG_RESULT([no])
|
|
||||||
else
|
|
||||||
if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
|
|
||||||
RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
|
|
||||||
AC_MSG_RESULT([yes])
|
|
||||||
else
|
|
||||||
AC_MSG_ERROR([${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do.])
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
rm -f conftest.$ac_ext
|
|
||||||
AC_SUBST(RAWCPPFLAGS)
|
|
||||||
]) # XORG_PROG_RAWCPP
|
|
||||||
|
|
||||||
# XORG_MANPAGE_SECTIONS()
|
|
||||||
# -----------------------
|
|
||||||
# Determine which sections man pages go in for the different man page types
|
|
||||||
# on this OS - replaces *ManSuffix settings in old Imake *.cf per-os files.
|
|
||||||
# Not sure if there's any better way than just hardcoding by OS name.
|
|
||||||
# Override default settings by setting environment variables
|
|
||||||
|
|
||||||
AC_DEFUN([XORG_MANPAGE_SECTIONS],[
|
|
||||||
AC_REQUIRE([AC_CANONICAL_HOST])
|
|
||||||
|
|
||||||
if test x$APP_MAN_SUFFIX = x ; then
|
|
||||||
case $host_os in
|
|
||||||
linux*) APP_MAN_SUFFIX=1x ;;
|
|
||||||
*) APP_MAN_SUFFIX=1 ;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
if test x$APP_MAN_DIR = x ; then
|
|
||||||
case $host_os in
|
|
||||||
linux*) APP_MAN_DIR='$(mandir)/man1' ;;
|
|
||||||
*) APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' ;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test x$LIB_MAN_SUFFIX = x ; then
|
|
||||||
case $host_os in
|
|
||||||
linux*) LIB_MAN_SUFFIX=3x ;;
|
|
||||||
*) LIB_MAN_SUFFIX=3 ;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
if test x$LIB_MAN_DIR = x ; then
|
|
||||||
case $host_os in
|
|
||||||
linux*) LIB_MAN_DIR='$(mandir)/man3' ;;
|
|
||||||
*) LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' ;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test x$FILE_MAN_SUFFIX = x ; then
|
|
||||||
case $host_os in
|
|
||||||
linux*) FILE_MAN_SUFFIX=5x ;;
|
|
||||||
solaris*) FILE_MAN_SUFFIX=4 ;;
|
|
||||||
*) FILE_MAN_SUFFIX=5 ;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
if test x$FILE_MAN_DIR = x ; then
|
|
||||||
case $host_os in
|
|
||||||
linux*) FILE_MAN_DIR='$(mandir)/man5' ;;
|
|
||||||
*) FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' ;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
|
|
||||||
# In Imake's linux.cf, the misc man suffix & dir was only changed for
|
|
||||||
# LinuxDebian, not other Linuxes, so we leave it unchanged here
|
|
||||||
if test x$MISC_MAN_SUFFIX = x ; then
|
|
||||||
case $host_os in
|
|
||||||
# linux*) MISC_MAN_SUFFIX=7x ;;
|
|
||||||
solaris*) MISC_MAN_SUFFIX=5 ;;
|
|
||||||
*) MISC_MAN_SUFFIX=7 ;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
if test x$MISC_MAN_DIR = x ; then
|
|
||||||
case $host_os in
|
|
||||||
# linux*) MISC_MAN_DIR='$(mandir)/man7' ;;
|
|
||||||
*) MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' ;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
|
|
||||||
# In Imake's linux.cf, the driver man suffix & dir was only changed for
|
|
||||||
# LinuxDebian, not other Linuxes, so we leave it unchanged here
|
|
||||||
if test x$DRIVER_MAN_SUFFIX = x ; then
|
|
||||||
case $host_os in
|
|
||||||
# linux*) DRIVER_MAN_SUFFIX=4x ;;
|
|
||||||
solaris*) DRIVER_MAN_SUFFIX=7 ;;
|
|
||||||
*) DRIVER_MAN_SUFFIX=4 ;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
if test x$DRIVER_MAN_DIR = x ; then
|
|
||||||
case $host_os in
|
|
||||||
# linux*) DRIVER_MAN_DIR='$(mandir)/man4' ;;
|
|
||||||
*) DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' ;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test x$ADMIN_MAN_SUFFIX = x ; then
|
|
||||||
case $host_os in
|
|
||||||
solaris*) ADMIN_MAN_SUFFIX=1m ;;
|
|
||||||
*) ADMIN_MAN_SUFFIX=8 ;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
if test x$ADMIN_MAN_DIR = x ; then
|
|
||||||
ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
AC_SUBST([APP_MAN_SUFFIX])
|
|
||||||
AC_SUBST([LIB_MAN_SUFFIX])
|
|
||||||
AC_SUBST([FILE_MAN_SUFFIX])
|
|
||||||
AC_SUBST([MISC_MAN_SUFFIX])
|
|
||||||
AC_SUBST([DRIVER_MAN_SUFFIX])
|
|
||||||
AC_SUBST([ADMIN_MAN_SUFFIX])
|
|
||||||
AC_SUBST([APP_MAN_DIR])
|
|
||||||
AC_SUBST([LIB_MAN_DIR])
|
|
||||||
AC_SUBST([FILE_MAN_DIR])
|
|
||||||
AC_SUBST([MISC_MAN_DIR])
|
|
||||||
AC_SUBST([DRIVER_MAN_DIR])
|
|
||||||
AC_SUBST([ADMIN_MAN_DIR])
|
|
||||||
]) # XORG_MANPAGE_SECTIONS
|
|
||||||
|
|
||||||
# XORG_CHECK_LINUXDOC
|
|
||||||
# -------------------
|
|
||||||
# Defines the variable MAKE_TEXT if the necessary tools and
|
|
||||||
# files are found. $(MAKE_TEXT) blah.sgml will then produce blah.txt.
|
|
||||||
# Whether or not the necessary tools and files are found can be checked
|
|
||||||
# with the AM_CONDITIONAL "BUILD_LINUXDOC"
|
|
||||||
AC_DEFUN([XORG_CHECK_LINUXDOC],[
|
|
||||||
AC_CHECK_FILE(
|
|
||||||
[$prefix/share/X11/sgml/defs.ent],
|
|
||||||
[DEFS_ENT_PATH=$prefix/share/X11/sgml],
|
|
||||||
[DEFS_ENT_PATH=]
|
|
||||||
)
|
|
||||||
|
|
||||||
AC_PATH_PROG(LINUXDOC, linuxdoc)
|
|
||||||
AC_PATH_PROG(PS2PDF, ps2pdf)
|
|
||||||
|
|
||||||
AC_MSG_CHECKING([Whether to build documentation])
|
|
||||||
|
|
||||||
if test x$DEFS_ENT_PATH != x && test x$LINUXDOC != x ; then
|
|
||||||
BUILDDOC=yes
|
|
||||||
else
|
|
||||||
BUILDDOC=no
|
|
||||||
fi
|
|
||||||
|
|
||||||
AM_CONDITIONAL(BUILD_LINUXDOC, [test x$BUILDDOC = xyes])
|
|
||||||
|
|
||||||
AC_MSG_RESULT([$BUILDDOC])
|
|
||||||
|
|
||||||
AC_MSG_CHECKING([Whether to build pdf documentation])
|
|
||||||
|
|
||||||
if test x$PS2PDF != x ; then
|
|
||||||
BUILDPDFDOC=yes
|
|
||||||
else
|
|
||||||
BUILDPDFDOC=no
|
|
||||||
fi
|
|
||||||
|
|
||||||
AM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes])
|
|
||||||
|
|
||||||
AC_MSG_RESULT([$BUILDPDFDOC])
|
|
||||||
|
|
||||||
MAKE_TEXT="SGML_SEARCH_PATH=$DEFS_ENT_PATH GROFF_NO_SGR=y $LINUXDOC -B txt"
|
|
||||||
MAKE_PS="SGML_SEARCH_PATH=$DEFS_ENT_PATH $LINUXDOC -B latex --papersize=letter --output=ps"
|
|
||||||
MAKE_PDF="$PS2PDF"
|
|
||||||
MAKE_HTML="SGML_SEARCH_PATH=$DEFS_ENT_PATH $LINUXDOC -B html --split=0"
|
|
||||||
|
|
||||||
AC_SUBST(MAKE_TEXT)
|
|
||||||
AC_SUBST(MAKE_PS)
|
|
||||||
AC_SUBST(MAKE_PDF)
|
|
||||||
AC_SUBST(MAKE_HTML)
|
|
||||||
]) # XORG_CHECK_LINUXDOC
|
|
||||||
|
|
||||||
# XORG_CHECK_MALLOC_ZERO
|
|
||||||
# ----------------------
|
|
||||||
# Defines {MALLOC,XMALLOC,XTMALLOC}_ZERO_CFLAGS appropriately if
|
|
||||||
# malloc(0) returns NULL. Packages should add one of these cflags to
|
|
||||||
# their AM_CFLAGS (or other appropriate *_CFLAGS) to use them.
|
|
||||||
AC_DEFUN([XORG_CHECK_MALLOC_ZERO],[
|
|
||||||
AC_ARG_ENABLE(malloc0returnsnull,
|
|
||||||
AC_HELP_STRING([--enable-malloc0returnsnull],
|
|
||||||
[malloc(0) returns NULL (default: auto)]),
|
|
||||||
[MALLOC_ZERO_RETURNS_NULL=$enableval],
|
|
||||||
[MALLOC_ZERO_RETURNS_NULL=auto])
|
|
||||||
|
|
||||||
AC_MSG_CHECKING([whether malloc(0) returns NULL])
|
|
||||||
if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
|
|
||||||
AC_RUN_IFELSE([
|
|
||||||
char *malloc();
|
|
||||||
char *realloc();
|
|
||||||
char *calloc();
|
|
||||||
main() {
|
|
||||||
char *m0, *r0, *c0, *p;
|
|
||||||
m0 = malloc(0);
|
|
||||||
p = malloc(10);
|
|
||||||
r0 = realloc(p,0);
|
|
||||||
c0 = calloc(0);
|
|
||||||
exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1);
|
|
||||||
}],
|
|
||||||
[MALLOC_ZERO_RETURNS_NULL=yes],
|
|
||||||
[MALLOC_ZERO_RETURNS_NULL=no])
|
|
||||||
fi
|
|
||||||
AC_MSG_RESULT([$MALLOC_ZERO_RETURNS_NULL])
|
|
||||||
|
|
||||||
if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
|
|
||||||
MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
|
|
||||||
XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
|
|
||||||
XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
|
|
||||||
else
|
|
||||||
MALLOC_ZERO_CFLAGS=""
|
|
||||||
XMALLOC_ZERO_CFLAGS=""
|
|
||||||
XTMALLOC_ZERO_CFLAGS=""
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_SUBST([MALLOC_ZERO_CFLAGS])
|
|
||||||
AC_SUBST([XMALLOC_ZERO_CFLAGS])
|
|
||||||
AC_SUBST([XTMALLOC_ZERO_CFLAGS])
|
|
||||||
]) # XORG_CHECK_MALLOC_ZERO
|
|
||||||
|
|
||||||
dnl Copyright 2005 Red Hat, Inc
|
|
||||||
dnl
|
|
||||||
dnl Permission to use, copy, modify, distribute, and sell this software and its
|
|
||||||
dnl documentation for any purpose is hereby granted without fee, provided that
|
|
||||||
dnl the above copyright notice appear in all copies and that both that
|
|
||||||
dnl copyright notice and this permission notice appear in supporting
|
|
||||||
dnl documentation.
|
|
||||||
dnl
|
|
||||||
dnl The above copyright notice and this permission notice shall be included
|
|
||||||
dnl in all copies or substantial portions of the Software.
|
|
||||||
dnl
|
|
||||||
dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
||||||
dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
||||||
dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
||||||
dnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
||||||
dnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
||||||
dnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
||||||
dnl OTHER DEALINGS IN THE SOFTWARE.
|
|
||||||
dnl
|
|
||||||
dnl Except as contained in this notice, the name of the copyright holders shall
|
|
||||||
dnl not be used in advertising or otherwise to promote the sale, use or
|
|
||||||
dnl other dealings in this Software without prior written authorization
|
|
||||||
dnl from the copyright holders.
|
|
||||||
dnl
|
|
||||||
|
|
||||||
# XORG_RELEASE_VERSION
|
|
||||||
# --------------------
|
|
||||||
# Adds --with/without-release-string and changes the PACKAGE and
|
|
||||||
# PACKAGE_TARNAME to use "$PACKAGE{_TARNAME}-$RELEASE_VERSION". If
|
|
||||||
# no option is given, PACKAGE and PACKAGE_TARNAME are unchanged.
|
|
||||||
|
|
||||||
AC_DEFUN([XORG_RELEASE_VERSION],[
|
|
||||||
AC_ARG_WITH(release-version,
|
|
||||||
AC_HELP_STRING([--with-release-version=STRING],
|
|
||||||
[Use release version string in package name]),
|
|
||||||
[RELEASE_VERSION="$withval"],
|
|
||||||
[RELEASE_VERSION=""])
|
|
||||||
if test "x$RELEASE_VERSION" != "x"; then
|
|
||||||
PACKAGE="$PACKAGE-$RELEASE_VERSION"
|
|
||||||
PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
|
|
||||||
AC_MSG_NOTICE([Building with package name set to $PACKAGE])
|
|
||||||
fi
|
|
||||||
])
|
|
||||||
|
|
||||||
# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
|
# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
|
||||||
#
|
#
|
||||||
# This file is free software; the Free Software Foundation
|
# This file is free software; the Free Software Foundation
|
||||||
@@ -1194,3 +877,469 @@ AC_SUBST([am__tar])
|
|||||||
AC_SUBST([am__untar])
|
AC_SUBST([am__untar])
|
||||||
]) # _AM_PROG_TAR
|
]) # _AM_PROG_TAR
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl Copyright 2005-2006 Sun Microsystems, Inc. All rights reserved.
|
||||||
|
dnl
|
||||||
|
dnl Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
|
dnl copy of this software and associated documentation files (the
|
||||||
|
dnl "Software"), to deal in the Software without restriction, including
|
||||||
|
dnl without limitation the rights to use, copy, modify, merge, publish,
|
||||||
|
dnl distribute, and/or sell copies of the Software, and to permit persons
|
||||||
|
dnl to whom the Software is furnished to do so, provided that the above
|
||||||
|
dnl copyright notice(s) and this permission notice appear in all copies of
|
||||||
|
dnl the Software and that both the above copyright notice(s) and this
|
||||||
|
dnl permission notice appear in supporting documentation.
|
||||||
|
dnl
|
||||||
|
dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||||
|
dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||||
|
dnl OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
||||||
|
dnl HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
|
||||||
|
dnl INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
|
||||||
|
dnl FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
|
||||||
|
dnl NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
|
||||||
|
dnl WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
dnl
|
||||||
|
dnl Except as contained in this notice, the name of a copyright holder
|
||||||
|
dnl shall not be used in advertising or otherwise to promote the sale, use
|
||||||
|
dnl or other dealings in this Software without prior written authorization
|
||||||
|
dnl of the copyright holder.
|
||||||
|
|
||||||
|
# XORG_MACROS_VERSION(required-version)
|
||||||
|
# -------------------------------------
|
||||||
|
# Minimum version: 1.1.0
|
||||||
|
#
|
||||||
|
# If you're using a macro added in Version 1.1 or newer, include this in
|
||||||
|
# your configure.ac with the minimum required version, such as:
|
||||||
|
# XORG_MACROS_VERSION(1.1)
|
||||||
|
#
|
||||||
|
# To force at least a version with this macro defined, also add:
|
||||||
|
# m4_ifndef([XORG_MACROS_VERSION], [AC_FATAL([must install xorg-macros 1.1 or later before running autoconf/autogen])])
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# See the "minimum version" comment for each macro you use to see what
|
||||||
|
# version you require.
|
||||||
|
AC_DEFUN([XORG_MACROS_VERSION],[
|
||||||
|
[XORG_MACROS_needed_version=$1
|
||||||
|
XORG_MACROS_needed_major=`echo $XORG_MACROS_needed_version | sed 's/\..*$//'`
|
||||||
|
XORG_MACROS_needed_minor=`echo $XORG_MACROS_needed_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`]
|
||||||
|
AC_MSG_CHECKING([if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}])
|
||||||
|
[XORG_MACROS_version=1.1.2
|
||||||
|
XORG_MACROS_major=`echo $XORG_MACROS_version | sed 's/\..*$//'`
|
||||||
|
XORG_MACROS_minor=`echo $XORG_MACROS_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`]
|
||||||
|
if test $XORG_MACROS_major -ne $XORG_MACROS_needed_major ; then
|
||||||
|
AC_MSG_ERROR([configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x])
|
||||||
|
fi
|
||||||
|
if test $XORG_MACROS_minor -lt $XORG_MACROS_needed_minor ; then
|
||||||
|
AC_MSG_ERROR([configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer])
|
||||||
|
fi
|
||||||
|
AC_MSG_RESULT([yes, $XORG_MACROS_version])
|
||||||
|
]) # XORG_MACROS_VERSION
|
||||||
|
|
||||||
|
# XORG_PROG_RAWCPP()
|
||||||
|
# ------------------
|
||||||
|
# Minimum version: 1.0.0
|
||||||
|
#
|
||||||
|
# Find cpp program and necessary flags for use in pre-processing text files
|
||||||
|
# such as man pages and config files
|
||||||
|
AC_DEFUN([XORG_PROG_RAWCPP],[
|
||||||
|
AC_REQUIRE([AC_PROG_CPP])
|
||||||
|
AC_PATH_PROGS(RAWCPP, [cpp], [${CPP}],
|
||||||
|
[$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib])
|
||||||
|
|
||||||
|
# Check for flag to avoid builtin definitions - assumes unix is predefined,
|
||||||
|
# which is not the best choice for supporting other OS'es, but covers most
|
||||||
|
# of the ones we need for now.
|
||||||
|
AC_MSG_CHECKING([if $RAWCPP requires -undef])
|
||||||
|
AC_LANG_CONFTEST([Does cpp redefine unix ?])
|
||||||
|
if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
|
||||||
|
AC_MSG_RESULT([no])
|
||||||
|
else
|
||||||
|
if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
|
||||||
|
RAWCPPFLAGS=-undef
|
||||||
|
AC_MSG_RESULT([yes])
|
||||||
|
else
|
||||||
|
AC_MSG_ERROR([${RAWCPP} defines unix with or without -undef. I don't know what to do.])
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
rm -f conftest.$ac_ext
|
||||||
|
|
||||||
|
AC_MSG_CHECKING([if $RAWCPP requires -traditional])
|
||||||
|
AC_LANG_CONFTEST([Does cpp preserve "whitespace"?])
|
||||||
|
if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
|
||||||
|
AC_MSG_RESULT([no])
|
||||||
|
else
|
||||||
|
if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
|
||||||
|
RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
|
||||||
|
AC_MSG_RESULT([yes])
|
||||||
|
else
|
||||||
|
AC_MSG_ERROR([${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do.])
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
rm -f conftest.$ac_ext
|
||||||
|
AC_SUBST(RAWCPPFLAGS)
|
||||||
|
]) # XORG_PROG_RAWCPP
|
||||||
|
|
||||||
|
# XORG_MANPAGE_SECTIONS()
|
||||||
|
# -----------------------
|
||||||
|
# Minimum version: 1.0.0
|
||||||
|
#
|
||||||
|
# Determine which sections man pages go in for the different man page types
|
||||||
|
# on this OS - replaces *ManSuffix settings in old Imake *.cf per-os files.
|
||||||
|
# Not sure if there's any better way than just hardcoding by OS name.
|
||||||
|
# Override default settings by setting environment variables
|
||||||
|
|
||||||
|
AC_DEFUN([XORG_MANPAGE_SECTIONS],[
|
||||||
|
AC_REQUIRE([AC_CANONICAL_HOST])
|
||||||
|
|
||||||
|
if test x$APP_MAN_SUFFIX = x ; then
|
||||||
|
APP_MAN_SUFFIX=1
|
||||||
|
fi
|
||||||
|
if test x$APP_MAN_DIR = x ; then
|
||||||
|
APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test x$LIB_MAN_SUFFIX = x ; then
|
||||||
|
LIB_MAN_SUFFIX=3
|
||||||
|
fi
|
||||||
|
if test x$LIB_MAN_DIR = x ; then
|
||||||
|
LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test x$FILE_MAN_SUFFIX = x ; then
|
||||||
|
case $host_os in
|
||||||
|
solaris*) FILE_MAN_SUFFIX=4 ;;
|
||||||
|
*) FILE_MAN_SUFFIX=5 ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
if test x$FILE_MAN_DIR = x ; then
|
||||||
|
FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test x$MISC_MAN_SUFFIX = x ; then
|
||||||
|
case $host_os in
|
||||||
|
solaris*) MISC_MAN_SUFFIX=5 ;;
|
||||||
|
*) MISC_MAN_SUFFIX=7 ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
if test x$MISC_MAN_DIR = x ; then
|
||||||
|
MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test x$DRIVER_MAN_SUFFIX = x ; then
|
||||||
|
case $host_os in
|
||||||
|
solaris*) DRIVER_MAN_SUFFIX=7 ;;
|
||||||
|
*) DRIVER_MAN_SUFFIX=4 ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
if test x$DRIVER_MAN_DIR = x ; then
|
||||||
|
DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test x$ADMIN_MAN_SUFFIX = x ; then
|
||||||
|
case $host_os in
|
||||||
|
solaris*) ADMIN_MAN_SUFFIX=1m ;;
|
||||||
|
*) ADMIN_MAN_SUFFIX=8 ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
if test x$ADMIN_MAN_DIR = x ; then
|
||||||
|
ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
AC_SUBST([APP_MAN_SUFFIX])
|
||||||
|
AC_SUBST([LIB_MAN_SUFFIX])
|
||||||
|
AC_SUBST([FILE_MAN_SUFFIX])
|
||||||
|
AC_SUBST([MISC_MAN_SUFFIX])
|
||||||
|
AC_SUBST([DRIVER_MAN_SUFFIX])
|
||||||
|
AC_SUBST([ADMIN_MAN_SUFFIX])
|
||||||
|
AC_SUBST([APP_MAN_DIR])
|
||||||
|
AC_SUBST([LIB_MAN_DIR])
|
||||||
|
AC_SUBST([FILE_MAN_DIR])
|
||||||
|
AC_SUBST([MISC_MAN_DIR])
|
||||||
|
AC_SUBST([DRIVER_MAN_DIR])
|
||||||
|
AC_SUBST([ADMIN_MAN_DIR])
|
||||||
|
]) # XORG_MANPAGE_SECTIONS
|
||||||
|
|
||||||
|
# XORG_CHECK_LINUXDOC
|
||||||
|
# -------------------
|
||||||
|
# Minimum version: 1.0.0
|
||||||
|
#
|
||||||
|
# Defines the variable MAKE_TEXT if the necessary tools and
|
||||||
|
# files are found. $(MAKE_TEXT) blah.sgml will then produce blah.txt.
|
||||||
|
# Whether or not the necessary tools and files are found can be checked
|
||||||
|
# with the AM_CONDITIONAL "BUILD_LINUXDOC"
|
||||||
|
AC_DEFUN([XORG_CHECK_LINUXDOC],[
|
||||||
|
XORG_SGML_PATH=$prefix/share/sgml
|
||||||
|
HAVE_DEFS_ENT=
|
||||||
|
|
||||||
|
AC_CHECK_FILE([$XORG_SGML_PATH/X11/defs.ent], [HAVE_DEFS_ENT=yes])
|
||||||
|
|
||||||
|
AC_PATH_PROG(LINUXDOC, linuxdoc)
|
||||||
|
AC_PATH_PROG(PS2PDF, ps2pdf)
|
||||||
|
|
||||||
|
AC_MSG_CHECKING([Whether to build documentation])
|
||||||
|
|
||||||
|
if test x$HAVE_DEFS_ENT != x && test x$LINUXDOC != x ; then
|
||||||
|
BUILDDOC=yes
|
||||||
|
else
|
||||||
|
BUILDDOC=no
|
||||||
|
fi
|
||||||
|
|
||||||
|
AM_CONDITIONAL(BUILD_LINUXDOC, [test x$BUILDDOC = xyes])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([$BUILDDOC])
|
||||||
|
|
||||||
|
AC_MSG_CHECKING([Whether to build pdf documentation])
|
||||||
|
|
||||||
|
if test x$PS2PDF != x && test x$BUILD_PDFDOC != xno; then
|
||||||
|
BUILDPDFDOC=yes
|
||||||
|
else
|
||||||
|
BUILDPDFDOC=no
|
||||||
|
fi
|
||||||
|
|
||||||
|
AM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([$BUILDPDFDOC])
|
||||||
|
|
||||||
|
MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH GROFF_NO_SGR=y $LINUXDOC -B txt"
|
||||||
|
MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B latex --papersize=letter --output=ps"
|
||||||
|
MAKE_PDF="$PS2PDF"
|
||||||
|
MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B html --split=0"
|
||||||
|
|
||||||
|
AC_SUBST(MAKE_TEXT)
|
||||||
|
AC_SUBST(MAKE_PS)
|
||||||
|
AC_SUBST(MAKE_PDF)
|
||||||
|
AC_SUBST(MAKE_HTML)
|
||||||
|
]) # XORG_CHECK_LINUXDOC
|
||||||
|
|
||||||
|
# XORG_CHECK_DOCBOOK
|
||||||
|
# -------------------
|
||||||
|
# Minimum version: 1.0.0
|
||||||
|
#
|
||||||
|
# Checks for the ability to build output formats from SGML DocBook source.
|
||||||
|
# For XXX in {TXT, PDF, PS, HTML}, the AM_CONDITIONAL "BUILD_XXXDOC"
|
||||||
|
# indicates whether the necessary tools and files are found and, if set,
|
||||||
|
# $(MAKE_XXX) blah.sgml will produce blah.xxx.
|
||||||
|
AC_DEFUN([XORG_CHECK_DOCBOOK],[
|
||||||
|
XORG_SGML_PATH=$prefix/share/sgml
|
||||||
|
HAVE_DEFS_ENT=
|
||||||
|
BUILDTXTDOC=no
|
||||||
|
BUILDPDFDOC=no
|
||||||
|
BUILDPSDOC=no
|
||||||
|
BUILDHTMLDOC=no
|
||||||
|
|
||||||
|
AC_CHECK_FILE([$XORG_SGML_PATH/X11/defs.ent], [HAVE_DEFS_ENT=yes])
|
||||||
|
|
||||||
|
AC_PATH_PROG(DOCBOOKPS, docbook2ps)
|
||||||
|
AC_PATH_PROG(DOCBOOKPDF, docbook2pdf)
|
||||||
|
AC_PATH_PROG(DOCBOOKHTML, docbook2html)
|
||||||
|
AC_PATH_PROG(DOCBOOKTXT, docbook2txt)
|
||||||
|
|
||||||
|
AC_MSG_CHECKING([Whether to build text documentation])
|
||||||
|
if test x$HAVE_DEFS_ENT != x && test x$DOCBOOKTXT != x &&
|
||||||
|
test x$BUILD_TXTDOC != xno; then
|
||||||
|
BUILDTXTDOC=yes
|
||||||
|
fi
|
||||||
|
AM_CONDITIONAL(BUILD_TXTDOC, [test x$BUILDTXTDOC = xyes])
|
||||||
|
AC_MSG_RESULT([$BUILDTXTDOC])
|
||||||
|
|
||||||
|
AC_MSG_CHECKING([Whether to build PDF documentation])
|
||||||
|
if test x$HAVE_DEFS_ENT != x && test x$DOCBOOKPDF != x &&
|
||||||
|
test x$BUILD_PDFDOC != xno; then
|
||||||
|
BUILDPDFDOC=yes
|
||||||
|
fi
|
||||||
|
AM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes])
|
||||||
|
AC_MSG_RESULT([$BUILDPDFDOC])
|
||||||
|
|
||||||
|
AC_MSG_CHECKING([Whether to build PostScript documentation])
|
||||||
|
if test x$HAVE_DEFS_ENT != x && test x$DOCBOOKPS != x &&
|
||||||
|
test x$BUILD_PSDOC != xno; then
|
||||||
|
BUILDPSDOC=yes
|
||||||
|
fi
|
||||||
|
AM_CONDITIONAL(BUILD_PSDOC, [test x$BUILDPSDOC = xyes])
|
||||||
|
AC_MSG_RESULT([$BUILDPSDOC])
|
||||||
|
|
||||||
|
AC_MSG_CHECKING([Whether to build HTML documentation])
|
||||||
|
if test x$HAVE_DEFS_ENT != x && test x$DOCBOOKHTML != x &&
|
||||||
|
test x$BUILD_HTMLDOC != xno; then
|
||||||
|
BUILDHTMLDOC=yes
|
||||||
|
fi
|
||||||
|
AM_CONDITIONAL(BUILD_HTMLDOC, [test x$BUILDHTMLDOC = xyes])
|
||||||
|
AC_MSG_RESULT([$BUILDHTMLDOC])
|
||||||
|
|
||||||
|
MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKTXT"
|
||||||
|
MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPS"
|
||||||
|
MAKE_PDF="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPDF"
|
||||||
|
MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKHTML"
|
||||||
|
|
||||||
|
AC_SUBST(MAKE_TEXT)
|
||||||
|
AC_SUBST(MAKE_PS)
|
||||||
|
AC_SUBST(MAKE_PDF)
|
||||||
|
AC_SUBST(MAKE_HTML)
|
||||||
|
]) # XORG_CHECK_DOCBOOK
|
||||||
|
|
||||||
|
# XORG_CHECK_MALLOC_ZERO
|
||||||
|
# ----------------------
|
||||||
|
# Minimum version: 1.0.0
|
||||||
|
#
|
||||||
|
# Defines {MALLOC,XMALLOC,XTMALLOC}_ZERO_CFLAGS appropriately if
|
||||||
|
# malloc(0) returns NULL. Packages should add one of these cflags to
|
||||||
|
# their AM_CFLAGS (or other appropriate *_CFLAGS) to use them.
|
||||||
|
AC_DEFUN([XORG_CHECK_MALLOC_ZERO],[
|
||||||
|
AC_ARG_ENABLE(malloc0returnsnull,
|
||||||
|
AC_HELP_STRING([--enable-malloc0returnsnull],
|
||||||
|
[malloc(0) returns NULL (default: auto)]),
|
||||||
|
[MALLOC_ZERO_RETURNS_NULL=$enableval],
|
||||||
|
[MALLOC_ZERO_RETURNS_NULL=auto])
|
||||||
|
|
||||||
|
AC_MSG_CHECKING([whether malloc(0) returns NULL])
|
||||||
|
if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
|
||||||
|
AC_RUN_IFELSE([
|
||||||
|
char *malloc();
|
||||||
|
char *realloc();
|
||||||
|
char *calloc();
|
||||||
|
main() {
|
||||||
|
char *m0, *r0, *c0, *p;
|
||||||
|
m0 = malloc(0);
|
||||||
|
p = malloc(10);
|
||||||
|
r0 = realloc(p,0);
|
||||||
|
c0 = calloc(0);
|
||||||
|
exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1);
|
||||||
|
}],
|
||||||
|
[MALLOC_ZERO_RETURNS_NULL=yes],
|
||||||
|
[MALLOC_ZERO_RETURNS_NULL=no])
|
||||||
|
fi
|
||||||
|
AC_MSG_RESULT([$MALLOC_ZERO_RETURNS_NULL])
|
||||||
|
|
||||||
|
if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
|
||||||
|
MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
|
||||||
|
XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
|
||||||
|
XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
|
||||||
|
else
|
||||||
|
MALLOC_ZERO_CFLAGS=""
|
||||||
|
XMALLOC_ZERO_CFLAGS=""
|
||||||
|
XTMALLOC_ZERO_CFLAGS=""
|
||||||
|
fi
|
||||||
|
|
||||||
|
AC_SUBST([MALLOC_ZERO_CFLAGS])
|
||||||
|
AC_SUBST([XMALLOC_ZERO_CFLAGS])
|
||||||
|
AC_SUBST([XTMALLOC_ZERO_CFLAGS])
|
||||||
|
]) # XORG_CHECK_MALLOC_ZERO
|
||||||
|
|
||||||
|
# XORG_WITH_LINT()
|
||||||
|
# ----------------
|
||||||
|
# Minimum version: 1.1.0
|
||||||
|
#
|
||||||
|
# Sets up flags for source checkers such as lint and sparse if --with-lint
|
||||||
|
# is specified. (Use --with-lint=sparse for sparse.)
|
||||||
|
# Sets $LINT to name of source checker passed with --with-lint (default: lint)
|
||||||
|
# Sets $LINT_FLAGS to flags to pass to source checker
|
||||||
|
# Sets LINT automake conditional if enabled (default: disabled)
|
||||||
|
#
|
||||||
|
AC_DEFUN([XORG_WITH_LINT],[
|
||||||
|
|
||||||
|
# Allow checking code with lint, sparse, etc.
|
||||||
|
AC_ARG_WITH(lint, [AC_HELP_STRING([--with-lint],
|
||||||
|
[Use a lint-style source code checker (default: disabled)])],
|
||||||
|
[use_lint=$withval], [use_lint=no])
|
||||||
|
if test "x$use_lint" = "xyes" ; then
|
||||||
|
LINT="lint"
|
||||||
|
else
|
||||||
|
LINT="$use_lint"
|
||||||
|
fi
|
||||||
|
if test "x$LINT_FLAGS" = "x" -a "x$LINT" != "xno" ; then
|
||||||
|
case $LINT in
|
||||||
|
lint|*/lint)
|
||||||
|
case $host_os in
|
||||||
|
solaris*)
|
||||||
|
LINT_FLAGS="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
AC_SUBST(LINT)
|
||||||
|
AC_SUBST(LINT_FLAGS)
|
||||||
|
AM_CONDITIONAL(LINT, [test x$LINT != xno])
|
||||||
|
|
||||||
|
]) # XORG_WITH_LINT
|
||||||
|
|
||||||
|
# XORG_LINT_LIBRARY(LIBNAME)
|
||||||
|
# --------------------------
|
||||||
|
# Minimum version: 1.1.0
|
||||||
|
#
|
||||||
|
# Sets up flags for building lint libraries for checking programs that call
|
||||||
|
# functions in the library.
|
||||||
|
# Disabled by default, enable with --enable-lint-library
|
||||||
|
# Sets:
|
||||||
|
# @LINTLIB@ - name of lint library file to make
|
||||||
|
# MAKE_LINT_LIB - automake conditional
|
||||||
|
#
|
||||||
|
|
||||||
|
AC_DEFUN([XORG_LINT_LIBRARY],[
|
||||||
|
AC_REQUIRE([XORG_WITH_LINT])
|
||||||
|
# Build lint "library" for more indepth checks of programs calling this library
|
||||||
|
AC_ARG_ENABLE(lint-library, [AC_HELP_STRING([--enable-lint-library],
|
||||||
|
[Create lint library (default: disabled)])],
|
||||||
|
[make_lint_lib=$enableval], [make_lint_lib=no])
|
||||||
|
if test "x$make_lint_lib" != "xno" ; then
|
||||||
|
if test "x$LINT" = "xno" ; then
|
||||||
|
AC_MSG_ERROR([Cannot make lint library without --with-lint])
|
||||||
|
fi
|
||||||
|
if test "x$make_lint_lib" = "xyes" ; then
|
||||||
|
LINTLIB=llib-l$1.ln
|
||||||
|
else
|
||||||
|
LINTLIB=$make_lint_lib
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
AC_SUBST(LINTLIB)
|
||||||
|
AM_CONDITIONAL(MAKE_LINT_LIB, [test x$make_lint_lib != xno])
|
||||||
|
|
||||||
|
]) # XORG_LINT_LIBRARY
|
||||||
|
|
||||||
|
dnl Copyright 2005 Red Hat, Inc
|
||||||
|
dnl
|
||||||
|
dnl Permission to use, copy, modify, distribute, and sell this software and its
|
||||||
|
dnl documentation for any purpose is hereby granted without fee, provided that
|
||||||
|
dnl the above copyright notice appear in all copies and that both that
|
||||||
|
dnl copyright notice and this permission notice appear in supporting
|
||||||
|
dnl documentation.
|
||||||
|
dnl
|
||||||
|
dnl The above copyright notice and this permission notice shall be included
|
||||||
|
dnl in all copies or substantial portions of the Software.
|
||||||
|
dnl
|
||||||
|
dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||||
|
dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||||
|
dnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
||||||
|
dnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||||
|
dnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||||
|
dnl OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
dnl
|
||||||
|
dnl Except as contained in this notice, the name of the copyright holders shall
|
||||||
|
dnl not be used in advertising or otherwise to promote the sale, use or
|
||||||
|
dnl other dealings in this Software without prior written authorization
|
||||||
|
dnl from the copyright holders.
|
||||||
|
dnl
|
||||||
|
|
||||||
|
# XORG_RELEASE_VERSION
|
||||||
|
# --------------------
|
||||||
|
# Adds --with/without-release-string and changes the PACKAGE and
|
||||||
|
# PACKAGE_TARNAME to use "$PACKAGE{_TARNAME}-$RELEASE_VERSION". If
|
||||||
|
# no option is given, PACKAGE and PACKAGE_TARNAME are unchanged.
|
||||||
|
|
||||||
|
AC_DEFUN([XORG_RELEASE_VERSION],[
|
||||||
|
AC_ARG_WITH(release-version,
|
||||||
|
AC_HELP_STRING([--with-release-version=STRING],
|
||||||
|
[Use release version string in package name]),
|
||||||
|
[RELEASE_VERSION="$withval"],
|
||||||
|
[RELEASE_VERSION=""])
|
||||||
|
if test "x$RELEASE_VERSION" != "x"; then
|
||||||
|
PACKAGE="$PACKAGE-$RELEASE_VERSION"
|
||||||
|
PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
|
||||||
|
AC_MSG_NOTICE([Building with package name set to $PACKAGE])
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
|
||||||
|
|||||||
42
util/gccmakedep/configure
vendored
42
util/gccmakedep/configure
vendored
@@ -3318,75 +3318,47 @@ host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|||||||
|
|
||||||
|
|
||||||
if test x$APP_MAN_SUFFIX = x ; then
|
if test x$APP_MAN_SUFFIX = x ; then
|
||||||
case $host_os in
|
APP_MAN_SUFFIX=1
|
||||||
linux*) APP_MAN_SUFFIX=1x ;;
|
|
||||||
*) APP_MAN_SUFFIX=1 ;;
|
|
||||||
esac
|
|
||||||
fi
|
fi
|
||||||
if test x$APP_MAN_DIR = x ; then
|
if test x$APP_MAN_DIR = x ; then
|
||||||
case $host_os in
|
APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
|
||||||
linux*) APP_MAN_DIR='$(mandir)/man1' ;;
|
|
||||||
*) APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' ;;
|
|
||||||
esac
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test x$LIB_MAN_SUFFIX = x ; then
|
if test x$LIB_MAN_SUFFIX = x ; then
|
||||||
case $host_os in
|
LIB_MAN_SUFFIX=3
|
||||||
linux*) LIB_MAN_SUFFIX=3x ;;
|
|
||||||
*) LIB_MAN_SUFFIX=3 ;;
|
|
||||||
esac
|
|
||||||
fi
|
fi
|
||||||
if test x$LIB_MAN_DIR = x ; then
|
if test x$LIB_MAN_DIR = x ; then
|
||||||
case $host_os in
|
LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
|
||||||
linux*) LIB_MAN_DIR='$(mandir)/man3' ;;
|
|
||||||
*) LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' ;;
|
|
||||||
esac
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test x$FILE_MAN_SUFFIX = x ; then
|
if test x$FILE_MAN_SUFFIX = x ; then
|
||||||
case $host_os in
|
case $host_os in
|
||||||
linux*) FILE_MAN_SUFFIX=5x ;;
|
|
||||||
solaris*) FILE_MAN_SUFFIX=4 ;;
|
solaris*) FILE_MAN_SUFFIX=4 ;;
|
||||||
*) FILE_MAN_SUFFIX=5 ;;
|
*) FILE_MAN_SUFFIX=5 ;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
if test x$FILE_MAN_DIR = x ; then
|
if test x$FILE_MAN_DIR = x ; then
|
||||||
case $host_os in
|
FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
|
||||||
linux*) FILE_MAN_DIR='$(mandir)/man5' ;;
|
|
||||||
*) FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' ;;
|
|
||||||
esac
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# In Imake's linux.cf, the misc man suffix & dir was only changed for
|
|
||||||
# LinuxDebian, not other Linuxes, so we leave it unchanged here
|
|
||||||
if test x$MISC_MAN_SUFFIX = x ; then
|
if test x$MISC_MAN_SUFFIX = x ; then
|
||||||
case $host_os in
|
case $host_os in
|
||||||
# linux*) MISC_MAN_SUFFIX=7x ;;
|
|
||||||
solaris*) MISC_MAN_SUFFIX=5 ;;
|
solaris*) MISC_MAN_SUFFIX=5 ;;
|
||||||
*) MISC_MAN_SUFFIX=7 ;;
|
*) MISC_MAN_SUFFIX=7 ;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
if test x$MISC_MAN_DIR = x ; then
|
if test x$MISC_MAN_DIR = x ; then
|
||||||
case $host_os in
|
MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
|
||||||
# linux*) MISC_MAN_DIR='$(mandir)/man7' ;;
|
|
||||||
*) MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' ;;
|
|
||||||
esac
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# In Imake's linux.cf, the driver man suffix & dir was only changed for
|
|
||||||
# LinuxDebian, not other Linuxes, so we leave it unchanged here
|
|
||||||
if test x$DRIVER_MAN_SUFFIX = x ; then
|
if test x$DRIVER_MAN_SUFFIX = x ; then
|
||||||
case $host_os in
|
case $host_os in
|
||||||
# linux*) DRIVER_MAN_SUFFIX=4x ;;
|
|
||||||
solaris*) DRIVER_MAN_SUFFIX=7 ;;
|
solaris*) DRIVER_MAN_SUFFIX=7 ;;
|
||||||
*) DRIVER_MAN_SUFFIX=4 ;;
|
*) DRIVER_MAN_SUFFIX=4 ;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
if test x$DRIVER_MAN_DIR = x ; then
|
if test x$DRIVER_MAN_DIR = x ; then
|
||||||
case $host_os in
|
DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
|
||||||
# linux*) DRIVER_MAN_DIR='$(mandir)/man4' ;;
|
|
||||||
*) DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' ;;
|
|
||||||
esac
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test x$ADMIN_MAN_SUFFIX = x ; then
|
if test x$ADMIN_MAN_SUFFIX = x ; then
|
||||||
|
|||||||
828
util/imake/aclocal.m4
vendored
828
util/imake/aclocal.m4
vendored
@@ -44,7 +44,7 @@ if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
|
|||||||
AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
|
AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
|
||||||
fi
|
fi
|
||||||
if test -n "$PKG_CONFIG"; then
|
if test -n "$PKG_CONFIG"; then
|
||||||
_pkg_min_version=m4_default([$1], [0.9.0])
|
_pkg_min_version=m4_ifval([$1], [$1], [0.9.0])
|
||||||
AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
|
AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
|
||||||
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
|
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
|
||||||
AC_MSG_RESULT([yes])
|
AC_MSG_RESULT([yes])
|
||||||
@@ -80,30 +80,14 @@ fi])
|
|||||||
# ---------------------------------------------
|
# ---------------------------------------------
|
||||||
m4_define([_PKG_CONFIG],
|
m4_define([_PKG_CONFIG],
|
||||||
[if test -n "$PKG_CONFIG"; then
|
[if test -n "$PKG_CONFIG"; then
|
||||||
if test -n "$$1"; then
|
|
||||||
pkg_cv_[]$1="$$1"
|
|
||||||
else
|
|
||||||
PKG_CHECK_EXISTS([$3],
|
PKG_CHECK_EXISTS([$3],
|
||||||
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
|
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
|
||||||
[pkg_failed=yes])
|
[pkg_failed=yes])
|
||||||
fi
|
|
||||||
else
|
else
|
||||||
pkg_failed=untried
|
pkg_failed=untried
|
||||||
fi[]dnl
|
fi[]dnl
|
||||||
])# _PKG_CONFIG
|
])# _PKG_CONFIG
|
||||||
|
|
||||||
# _PKG_SHORT_ERRORS_SUPPORTED
|
|
||||||
# -----------------------------
|
|
||||||
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
|
|
||||||
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
|
|
||||||
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
|
|
||||||
_pkg_short_errors_supported=yes
|
|
||||||
else
|
|
||||||
_pkg_short_errors_supported=no
|
|
||||||
fi[]dnl
|
|
||||||
])# _PKG_SHORT_ERRORS_SUPPORTED
|
|
||||||
|
|
||||||
|
|
||||||
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
|
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
|
||||||
# [ACTION-IF-NOT-FOUND])
|
# [ACTION-IF-NOT-FOUND])
|
||||||
#
|
#
|
||||||
@@ -125,30 +109,19 @@ AC_MSG_CHECKING([for $1])
|
|||||||
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
|
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
|
||||||
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
|
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
|
||||||
|
|
||||||
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
|
|
||||||
and $1[]_LIBS to avoid the need to call pkg-config.
|
|
||||||
See the pkg-config man page for more details.])
|
|
||||||
|
|
||||||
if test $pkg_failed = yes; then
|
if test $pkg_failed = yes; then
|
||||||
_PKG_SHORT_ERRORS_SUPPORTED
|
$1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
|
||||||
if test $_pkg_short_errors_supported = yes; then
|
|
||||||
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
|
|
||||||
else
|
|
||||||
$1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
|
|
||||||
fi
|
|
||||||
# Put the nasty error message in config.log where it belongs
|
# Put the nasty error message in config.log where it belongs
|
||||||
echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
|
echo "$$1[]_PKG_ERRORS" 1>&AS_MESSAGE_LOG_FD
|
||||||
|
|
||||||
ifelse([$4], , [AC_MSG_ERROR(dnl
|
ifelse([$4], , [AC_MSG_ERROR(dnl
|
||||||
[Package requirements ($2) were not met:
|
[Package requirements ($2) were not met.
|
||||||
|
|
||||||
$$1_PKG_ERRORS
|
|
||||||
|
|
||||||
Consider adjusting the PKG_CONFIG_PATH environment variable if you
|
Consider adjusting the PKG_CONFIG_PATH environment variable if you
|
||||||
installed software in a non-standard prefix.
|
installed software in a non-standard prefix.
|
||||||
|
|
||||||
_PKG_TEXT
|
Alternatively you may set the $1_CFLAGS and $1_LIBS environment variables
|
||||||
])],
|
to avoid the need to call pkg-config. See the pkg-config man page for
|
||||||
|
more details.])],
|
||||||
[$4])
|
[$4])
|
||||||
elif test $pkg_failed = untried; then
|
elif test $pkg_failed = untried; then
|
||||||
ifelse([$4], , [AC_MSG_FAILURE(dnl
|
ifelse([$4], , [AC_MSG_FAILURE(dnl
|
||||||
@@ -156,7 +129,9 @@ elif test $pkg_failed = untried; then
|
|||||||
is in your PATH or set the PKG_CONFIG environment variable to the full
|
is in your PATH or set the PKG_CONFIG environment variable to the full
|
||||||
path to pkg-config.
|
path to pkg-config.
|
||||||
|
|
||||||
_PKG_TEXT
|
Alternatively you may set the $1_CFLAGS and $1_LIBS environment variables
|
||||||
|
to avoid the need to call pkg-config. See the pkg-config man page for
|
||||||
|
more details.
|
||||||
|
|
||||||
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
|
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
|
||||||
[$4])
|
[$4])
|
||||||
@@ -168,323 +143,6 @@ else
|
|||||||
fi[]dnl
|
fi[]dnl
|
||||||
])# PKG_CHECK_MODULES
|
])# PKG_CHECK_MODULES
|
||||||
|
|
||||||
dnl $Id: aclocal.m4,v 1.1.1.1 2006/11/25 16:21:50 matthieu Exp $
|
|
||||||
dnl
|
|
||||||
dnl Copyright 2005 Sun Microsystems, Inc. All rights reserved.
|
|
||||||
dnl
|
|
||||||
dnl Permission to use, copy, modify, distribute, and sell this software and its
|
|
||||||
dnl documentation for any purpose is hereby granted without fee, provided that
|
|
||||||
dnl the above copyright notice appear in all copies and that both that
|
|
||||||
dnl copyright notice and this permission notice appear in supporting
|
|
||||||
dnl documentation.
|
|
||||||
dnl
|
|
||||||
dnl The above copyright notice and this permission notice shall be included
|
|
||||||
dnl in all copies or substantial portions of the Software.
|
|
||||||
dnl
|
|
||||||
dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
||||||
dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
||||||
dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
||||||
dnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
||||||
dnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
||||||
dnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
||||||
dnl OTHER DEALINGS IN THE SOFTWARE.
|
|
||||||
dnl
|
|
||||||
dnl Except as contained in this notice, the name of the copyright holders shall
|
|
||||||
dnl not be used in advertising or otherwise to promote the sale, use or
|
|
||||||
dnl other dealings in this Software without prior written authorization
|
|
||||||
dnl from the copyright holders.
|
|
||||||
dnl
|
|
||||||
|
|
||||||
# XORG_PROG_RAWCPP()
|
|
||||||
# ------------------
|
|
||||||
# Find cpp program and necessary flags for use in pre-processing text files
|
|
||||||
# such as man pages and config files
|
|
||||||
AC_DEFUN([XORG_PROG_RAWCPP],[
|
|
||||||
AC_REQUIRE([AC_PROG_CPP])
|
|
||||||
AC_PATH_PROGS(RAWCPP, [cpp], [${CPP}],
|
|
||||||
[$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib])
|
|
||||||
|
|
||||||
# Check for flag to avoid builtin definitions - assumes unix is predefined,
|
|
||||||
# which is not the best choice for supporting other OS'es, but covers most
|
|
||||||
# of the ones we need for now.
|
|
||||||
AC_MSG_CHECKING([if $RAWCPP requires -undef])
|
|
||||||
AC_LANG_CONFTEST([Does cpp redefine unix ?])
|
|
||||||
if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
|
|
||||||
AC_MSG_RESULT([no])
|
|
||||||
else
|
|
||||||
if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
|
|
||||||
RAWCPPFLAGS=-undef
|
|
||||||
AC_MSG_RESULT([yes])
|
|
||||||
else
|
|
||||||
AC_MSG_ERROR([${RAWCPP} defines unix with or without -undef. I don't know what to do.])
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
rm -f conftest.$ac_ext
|
|
||||||
|
|
||||||
AC_MSG_CHECKING([if $RAWCPP requires -traditional])
|
|
||||||
AC_LANG_CONFTEST([Does cpp preserve "whitespace"?])
|
|
||||||
if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
|
|
||||||
AC_MSG_RESULT([no])
|
|
||||||
else
|
|
||||||
if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
|
|
||||||
RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
|
|
||||||
AC_MSG_RESULT([yes])
|
|
||||||
else
|
|
||||||
AC_MSG_ERROR([${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do.])
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
rm -f conftest.$ac_ext
|
|
||||||
AC_SUBST(RAWCPPFLAGS)
|
|
||||||
]) # XORG_PROG_RAWCPP
|
|
||||||
|
|
||||||
# XORG_MANPAGE_SECTIONS()
|
|
||||||
# -----------------------
|
|
||||||
# Determine which sections man pages go in for the different man page types
|
|
||||||
# on this OS - replaces *ManSuffix settings in old Imake *.cf per-os files.
|
|
||||||
# Not sure if there's any better way than just hardcoding by OS name.
|
|
||||||
# Override default settings by setting environment variables
|
|
||||||
|
|
||||||
AC_DEFUN([XORG_MANPAGE_SECTIONS],[
|
|
||||||
AC_REQUIRE([AC_CANONICAL_HOST])
|
|
||||||
|
|
||||||
if test x$APP_MAN_SUFFIX = x ; then
|
|
||||||
case $host_os in
|
|
||||||
linux*) APP_MAN_SUFFIX=1x ;;
|
|
||||||
*) APP_MAN_SUFFIX=1 ;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
if test x$APP_MAN_DIR = x ; then
|
|
||||||
case $host_os in
|
|
||||||
linux*) APP_MAN_DIR='$(mandir)/man1' ;;
|
|
||||||
*) APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' ;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test x$LIB_MAN_SUFFIX = x ; then
|
|
||||||
case $host_os in
|
|
||||||
linux*) LIB_MAN_SUFFIX=3x ;;
|
|
||||||
*) LIB_MAN_SUFFIX=3 ;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
if test x$LIB_MAN_DIR = x ; then
|
|
||||||
case $host_os in
|
|
||||||
linux*) LIB_MAN_DIR='$(mandir)/man3' ;;
|
|
||||||
*) LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' ;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test x$FILE_MAN_SUFFIX = x ; then
|
|
||||||
case $host_os in
|
|
||||||
linux*) FILE_MAN_SUFFIX=5x ;;
|
|
||||||
solaris*) FILE_MAN_SUFFIX=4 ;;
|
|
||||||
*) FILE_MAN_SUFFIX=5 ;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
if test x$FILE_MAN_DIR = x ; then
|
|
||||||
case $host_os in
|
|
||||||
linux*) FILE_MAN_DIR='$(mandir)/man5' ;;
|
|
||||||
*) FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' ;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
|
|
||||||
# In Imake's linux.cf, the misc man suffix & dir was only changed for
|
|
||||||
# LinuxDebian, not other Linuxes, so we leave it unchanged here
|
|
||||||
if test x$MISC_MAN_SUFFIX = x ; then
|
|
||||||
case $host_os in
|
|
||||||
# linux*) MISC_MAN_SUFFIX=7x ;;
|
|
||||||
solaris*) MISC_MAN_SUFFIX=5 ;;
|
|
||||||
*) MISC_MAN_SUFFIX=7 ;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
if test x$MISC_MAN_DIR = x ; then
|
|
||||||
case $host_os in
|
|
||||||
# linux*) MISC_MAN_DIR='$(mandir)/man7' ;;
|
|
||||||
*) MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' ;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
|
|
||||||
# In Imake's linux.cf, the driver man suffix & dir was only changed for
|
|
||||||
# LinuxDebian, not other Linuxes, so we leave it unchanged here
|
|
||||||
if test x$DRIVER_MAN_SUFFIX = x ; then
|
|
||||||
case $host_os in
|
|
||||||
# linux*) DRIVER_MAN_SUFFIX=4x ;;
|
|
||||||
solaris*) DRIVER_MAN_SUFFIX=7 ;;
|
|
||||||
*) DRIVER_MAN_SUFFIX=4 ;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
if test x$DRIVER_MAN_DIR = x ; then
|
|
||||||
case $host_os in
|
|
||||||
# linux*) DRIVER_MAN_DIR='$(mandir)/man4' ;;
|
|
||||||
*) DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' ;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test x$ADMIN_MAN_SUFFIX = x ; then
|
|
||||||
case $host_os in
|
|
||||||
solaris*) ADMIN_MAN_SUFFIX=1m ;;
|
|
||||||
*) ADMIN_MAN_SUFFIX=8 ;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
if test x$ADMIN_MAN_DIR = x ; then
|
|
||||||
ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
AC_SUBST([APP_MAN_SUFFIX])
|
|
||||||
AC_SUBST([LIB_MAN_SUFFIX])
|
|
||||||
AC_SUBST([FILE_MAN_SUFFIX])
|
|
||||||
AC_SUBST([MISC_MAN_SUFFIX])
|
|
||||||
AC_SUBST([DRIVER_MAN_SUFFIX])
|
|
||||||
AC_SUBST([ADMIN_MAN_SUFFIX])
|
|
||||||
AC_SUBST([APP_MAN_DIR])
|
|
||||||
AC_SUBST([LIB_MAN_DIR])
|
|
||||||
AC_SUBST([FILE_MAN_DIR])
|
|
||||||
AC_SUBST([MISC_MAN_DIR])
|
|
||||||
AC_SUBST([DRIVER_MAN_DIR])
|
|
||||||
AC_SUBST([ADMIN_MAN_DIR])
|
|
||||||
]) # XORG_MANPAGE_SECTIONS
|
|
||||||
|
|
||||||
# XORG_CHECK_LINUXDOC
|
|
||||||
# -------------------
|
|
||||||
# Defines the variable MAKE_TEXT if the necessary tools and
|
|
||||||
# files are found. $(MAKE_TEXT) blah.sgml will then produce blah.txt.
|
|
||||||
# Whether or not the necessary tools and files are found can be checked
|
|
||||||
# with the AM_CONDITIONAL "BUILD_LINUXDOC"
|
|
||||||
AC_DEFUN([XORG_CHECK_LINUXDOC],[
|
|
||||||
AC_CHECK_FILE(
|
|
||||||
[$prefix/share/X11/sgml/defs.ent],
|
|
||||||
[DEFS_ENT_PATH=$prefix/share/X11/sgml],
|
|
||||||
[DEFS_ENT_PATH=]
|
|
||||||
)
|
|
||||||
|
|
||||||
AC_PATH_PROG(LINUXDOC, linuxdoc)
|
|
||||||
AC_PATH_PROG(PS2PDF, ps2pdf)
|
|
||||||
|
|
||||||
AC_MSG_CHECKING([Whether to build documentation])
|
|
||||||
|
|
||||||
if test x$DEFS_ENT_PATH != x && test x$LINUXDOC != x ; then
|
|
||||||
BUILDDOC=yes
|
|
||||||
else
|
|
||||||
BUILDDOC=no
|
|
||||||
fi
|
|
||||||
|
|
||||||
AM_CONDITIONAL(BUILD_LINUXDOC, [test x$BUILDDOC = xyes])
|
|
||||||
|
|
||||||
AC_MSG_RESULT([$BUILDDOC])
|
|
||||||
|
|
||||||
AC_MSG_CHECKING([Whether to build pdf documentation])
|
|
||||||
|
|
||||||
if test x$PS2PDF != x ; then
|
|
||||||
BUILDPDFDOC=yes
|
|
||||||
else
|
|
||||||
BUILDPDFDOC=no
|
|
||||||
fi
|
|
||||||
|
|
||||||
AM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes])
|
|
||||||
|
|
||||||
AC_MSG_RESULT([$BUILDPDFDOC])
|
|
||||||
|
|
||||||
MAKE_TEXT="SGML_SEARCH_PATH=$DEFS_ENT_PATH GROFF_NO_SGR=y $LINUXDOC -B txt"
|
|
||||||
MAKE_PS="SGML_SEARCH_PATH=$DEFS_ENT_PATH $LINUXDOC -B latex --papersize=letter --output=ps"
|
|
||||||
MAKE_PDF="$PS2PDF"
|
|
||||||
MAKE_HTML="SGML_SEARCH_PATH=$DEFS_ENT_PATH $LINUXDOC -B html --split=0"
|
|
||||||
|
|
||||||
AC_SUBST(MAKE_TEXT)
|
|
||||||
AC_SUBST(MAKE_PS)
|
|
||||||
AC_SUBST(MAKE_PDF)
|
|
||||||
AC_SUBST(MAKE_HTML)
|
|
||||||
]) # XORG_CHECK_LINUXDOC
|
|
||||||
|
|
||||||
# XORG_CHECK_MALLOC_ZERO
|
|
||||||
# ----------------------
|
|
||||||
# Defines {MALLOC,XMALLOC,XTMALLOC}_ZERO_CFLAGS appropriately if
|
|
||||||
# malloc(0) returns NULL. Packages should add one of these cflags to
|
|
||||||
# their AM_CFLAGS (or other appropriate *_CFLAGS) to use them.
|
|
||||||
AC_DEFUN([XORG_CHECK_MALLOC_ZERO],[
|
|
||||||
AC_ARG_ENABLE(malloc0returnsnull,
|
|
||||||
AC_HELP_STRING([--enable-malloc0returnsnull],
|
|
||||||
[malloc(0) returns NULL (default: auto)]),
|
|
||||||
[MALLOC_ZERO_RETURNS_NULL=$enableval],
|
|
||||||
[MALLOC_ZERO_RETURNS_NULL=auto])
|
|
||||||
|
|
||||||
AC_MSG_CHECKING([whether malloc(0) returns NULL])
|
|
||||||
if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
|
|
||||||
AC_RUN_IFELSE([
|
|
||||||
char *malloc();
|
|
||||||
char *realloc();
|
|
||||||
char *calloc();
|
|
||||||
main() {
|
|
||||||
char *m0, *r0, *c0, *p;
|
|
||||||
m0 = malloc(0);
|
|
||||||
p = malloc(10);
|
|
||||||
r0 = realloc(p,0);
|
|
||||||
c0 = calloc(0);
|
|
||||||
exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1);
|
|
||||||
}],
|
|
||||||
[MALLOC_ZERO_RETURNS_NULL=yes],
|
|
||||||
[MALLOC_ZERO_RETURNS_NULL=no])
|
|
||||||
fi
|
|
||||||
AC_MSG_RESULT([$MALLOC_ZERO_RETURNS_NULL])
|
|
||||||
|
|
||||||
if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
|
|
||||||
MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
|
|
||||||
XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
|
|
||||||
XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
|
|
||||||
else
|
|
||||||
MALLOC_ZERO_CFLAGS=""
|
|
||||||
XMALLOC_ZERO_CFLAGS=""
|
|
||||||
XTMALLOC_ZERO_CFLAGS=""
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_SUBST([MALLOC_ZERO_CFLAGS])
|
|
||||||
AC_SUBST([XMALLOC_ZERO_CFLAGS])
|
|
||||||
AC_SUBST([XTMALLOC_ZERO_CFLAGS])
|
|
||||||
]) # XORG_CHECK_MALLOC_ZERO
|
|
||||||
|
|
||||||
dnl Copyright 2005 Red Hat, Inc
|
|
||||||
dnl
|
|
||||||
dnl Permission to use, copy, modify, distribute, and sell this software and its
|
|
||||||
dnl documentation for any purpose is hereby granted without fee, provided that
|
|
||||||
dnl the above copyright notice appear in all copies and that both that
|
|
||||||
dnl copyright notice and this permission notice appear in supporting
|
|
||||||
dnl documentation.
|
|
||||||
dnl
|
|
||||||
dnl The above copyright notice and this permission notice shall be included
|
|
||||||
dnl in all copies or substantial portions of the Software.
|
|
||||||
dnl
|
|
||||||
dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
||||||
dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
||||||
dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
||||||
dnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
||||||
dnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
||||||
dnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
||||||
dnl OTHER DEALINGS IN THE SOFTWARE.
|
|
||||||
dnl
|
|
||||||
dnl Except as contained in this notice, the name of the copyright holders shall
|
|
||||||
dnl not be used in advertising or otherwise to promote the sale, use or
|
|
||||||
dnl other dealings in this Software without prior written authorization
|
|
||||||
dnl from the copyright holders.
|
|
||||||
dnl
|
|
||||||
|
|
||||||
# XORG_RELEASE_VERSION
|
|
||||||
# --------------------
|
|
||||||
# Adds --with/without-release-string and changes the PACKAGE and
|
|
||||||
# PACKAGE_TARNAME to use "$PACKAGE{_TARNAME}-$RELEASE_VERSION". If
|
|
||||||
# no option is given, PACKAGE and PACKAGE_TARNAME are unchanged.
|
|
||||||
|
|
||||||
AC_DEFUN([XORG_RELEASE_VERSION],[
|
|
||||||
AC_ARG_WITH(release-version,
|
|
||||||
AC_HELP_STRING([--with-release-version=STRING],
|
|
||||||
[Use release version string in package name]),
|
|
||||||
[RELEASE_VERSION="$withval"],
|
|
||||||
[RELEASE_VERSION=""])
|
|
||||||
if test "x$RELEASE_VERSION" != "x"; then
|
|
||||||
PACKAGE="$PACKAGE-$RELEASE_VERSION"
|
|
||||||
PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
|
|
||||||
AC_MSG_NOTICE([Building with package name set to $PACKAGE])
|
|
||||||
fi
|
|
||||||
])
|
|
||||||
|
|
||||||
# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
|
# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
|
||||||
#
|
#
|
||||||
# This file is free software; the Free Software Foundation
|
# This file is free software; the Free Software Foundation
|
||||||
@@ -1363,3 +1021,469 @@ AC_SUBST([am__tar])
|
|||||||
AC_SUBST([am__untar])
|
AC_SUBST([am__untar])
|
||||||
]) # _AM_PROG_TAR
|
]) # _AM_PROG_TAR
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl Copyright 2005-2006 Sun Microsystems, Inc. All rights reserved.
|
||||||
|
dnl
|
||||||
|
dnl Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
|
dnl copy of this software and associated documentation files (the
|
||||||
|
dnl "Software"), to deal in the Software without restriction, including
|
||||||
|
dnl without limitation the rights to use, copy, modify, merge, publish,
|
||||||
|
dnl distribute, and/or sell copies of the Software, and to permit persons
|
||||||
|
dnl to whom the Software is furnished to do so, provided that the above
|
||||||
|
dnl copyright notice(s) and this permission notice appear in all copies of
|
||||||
|
dnl the Software and that both the above copyright notice(s) and this
|
||||||
|
dnl permission notice appear in supporting documentation.
|
||||||
|
dnl
|
||||||
|
dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||||
|
dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||||
|
dnl OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
||||||
|
dnl HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
|
||||||
|
dnl INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
|
||||||
|
dnl FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
|
||||||
|
dnl NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
|
||||||
|
dnl WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
dnl
|
||||||
|
dnl Except as contained in this notice, the name of a copyright holder
|
||||||
|
dnl shall not be used in advertising or otherwise to promote the sale, use
|
||||||
|
dnl or other dealings in this Software without prior written authorization
|
||||||
|
dnl of the copyright holder.
|
||||||
|
|
||||||
|
# XORG_MACROS_VERSION(required-version)
|
||||||
|
# -------------------------------------
|
||||||
|
# Minimum version: 1.1.0
|
||||||
|
#
|
||||||
|
# If you're using a macro added in Version 1.1 or newer, include this in
|
||||||
|
# your configure.ac with the minimum required version, such as:
|
||||||
|
# XORG_MACROS_VERSION(1.1)
|
||||||
|
#
|
||||||
|
# To force at least a version with this macro defined, also add:
|
||||||
|
# m4_ifndef([XORG_MACROS_VERSION], [AC_FATAL([must install xorg-macros 1.1 or later before running autoconf/autogen])])
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# See the "minimum version" comment for each macro you use to see what
|
||||||
|
# version you require.
|
||||||
|
AC_DEFUN([XORG_MACROS_VERSION],[
|
||||||
|
[XORG_MACROS_needed_version=$1
|
||||||
|
XORG_MACROS_needed_major=`echo $XORG_MACROS_needed_version | sed 's/\..*$//'`
|
||||||
|
XORG_MACROS_needed_minor=`echo $XORG_MACROS_needed_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`]
|
||||||
|
AC_MSG_CHECKING([if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}])
|
||||||
|
[XORG_MACROS_version=1.1.2
|
||||||
|
XORG_MACROS_major=`echo $XORG_MACROS_version | sed 's/\..*$//'`
|
||||||
|
XORG_MACROS_minor=`echo $XORG_MACROS_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`]
|
||||||
|
if test $XORG_MACROS_major -ne $XORG_MACROS_needed_major ; then
|
||||||
|
AC_MSG_ERROR([configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x])
|
||||||
|
fi
|
||||||
|
if test $XORG_MACROS_minor -lt $XORG_MACROS_needed_minor ; then
|
||||||
|
AC_MSG_ERROR([configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer])
|
||||||
|
fi
|
||||||
|
AC_MSG_RESULT([yes, $XORG_MACROS_version])
|
||||||
|
]) # XORG_MACROS_VERSION
|
||||||
|
|
||||||
|
# XORG_PROG_RAWCPP()
|
||||||
|
# ------------------
|
||||||
|
# Minimum version: 1.0.0
|
||||||
|
#
|
||||||
|
# Find cpp program and necessary flags for use in pre-processing text files
|
||||||
|
# such as man pages and config files
|
||||||
|
AC_DEFUN([XORG_PROG_RAWCPP],[
|
||||||
|
AC_REQUIRE([AC_PROG_CPP])
|
||||||
|
AC_PATH_PROGS(RAWCPP, [cpp], [${CPP}],
|
||||||
|
[$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib])
|
||||||
|
|
||||||
|
# Check for flag to avoid builtin definitions - assumes unix is predefined,
|
||||||
|
# which is not the best choice for supporting other OS'es, but covers most
|
||||||
|
# of the ones we need for now.
|
||||||
|
AC_MSG_CHECKING([if $RAWCPP requires -undef])
|
||||||
|
AC_LANG_CONFTEST([Does cpp redefine unix ?])
|
||||||
|
if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
|
||||||
|
AC_MSG_RESULT([no])
|
||||||
|
else
|
||||||
|
if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
|
||||||
|
RAWCPPFLAGS=-undef
|
||||||
|
AC_MSG_RESULT([yes])
|
||||||
|
else
|
||||||
|
AC_MSG_ERROR([${RAWCPP} defines unix with or without -undef. I don't know what to do.])
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
rm -f conftest.$ac_ext
|
||||||
|
|
||||||
|
AC_MSG_CHECKING([if $RAWCPP requires -traditional])
|
||||||
|
AC_LANG_CONFTEST([Does cpp preserve "whitespace"?])
|
||||||
|
if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
|
||||||
|
AC_MSG_RESULT([no])
|
||||||
|
else
|
||||||
|
if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
|
||||||
|
RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
|
||||||
|
AC_MSG_RESULT([yes])
|
||||||
|
else
|
||||||
|
AC_MSG_ERROR([${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do.])
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
rm -f conftest.$ac_ext
|
||||||
|
AC_SUBST(RAWCPPFLAGS)
|
||||||
|
]) # XORG_PROG_RAWCPP
|
||||||
|
|
||||||
|
# XORG_MANPAGE_SECTIONS()
|
||||||
|
# -----------------------
|
||||||
|
# Minimum version: 1.0.0
|
||||||
|
#
|
||||||
|
# Determine which sections man pages go in for the different man page types
|
||||||
|
# on this OS - replaces *ManSuffix settings in old Imake *.cf per-os files.
|
||||||
|
# Not sure if there's any better way than just hardcoding by OS name.
|
||||||
|
# Override default settings by setting environment variables
|
||||||
|
|
||||||
|
AC_DEFUN([XORG_MANPAGE_SECTIONS],[
|
||||||
|
AC_REQUIRE([AC_CANONICAL_HOST])
|
||||||
|
|
||||||
|
if test x$APP_MAN_SUFFIX = x ; then
|
||||||
|
APP_MAN_SUFFIX=1
|
||||||
|
fi
|
||||||
|
if test x$APP_MAN_DIR = x ; then
|
||||||
|
APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test x$LIB_MAN_SUFFIX = x ; then
|
||||||
|
LIB_MAN_SUFFIX=3
|
||||||
|
fi
|
||||||
|
if test x$LIB_MAN_DIR = x ; then
|
||||||
|
LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test x$FILE_MAN_SUFFIX = x ; then
|
||||||
|
case $host_os in
|
||||||
|
solaris*) FILE_MAN_SUFFIX=4 ;;
|
||||||
|
*) FILE_MAN_SUFFIX=5 ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
if test x$FILE_MAN_DIR = x ; then
|
||||||
|
FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test x$MISC_MAN_SUFFIX = x ; then
|
||||||
|
case $host_os in
|
||||||
|
solaris*) MISC_MAN_SUFFIX=5 ;;
|
||||||
|
*) MISC_MAN_SUFFIX=7 ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
if test x$MISC_MAN_DIR = x ; then
|
||||||
|
MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test x$DRIVER_MAN_SUFFIX = x ; then
|
||||||
|
case $host_os in
|
||||||
|
solaris*) DRIVER_MAN_SUFFIX=7 ;;
|
||||||
|
*) DRIVER_MAN_SUFFIX=4 ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
if test x$DRIVER_MAN_DIR = x ; then
|
||||||
|
DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test x$ADMIN_MAN_SUFFIX = x ; then
|
||||||
|
case $host_os in
|
||||||
|
solaris*) ADMIN_MAN_SUFFIX=1m ;;
|
||||||
|
*) ADMIN_MAN_SUFFIX=8 ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
if test x$ADMIN_MAN_DIR = x ; then
|
||||||
|
ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
AC_SUBST([APP_MAN_SUFFIX])
|
||||||
|
AC_SUBST([LIB_MAN_SUFFIX])
|
||||||
|
AC_SUBST([FILE_MAN_SUFFIX])
|
||||||
|
AC_SUBST([MISC_MAN_SUFFIX])
|
||||||
|
AC_SUBST([DRIVER_MAN_SUFFIX])
|
||||||
|
AC_SUBST([ADMIN_MAN_SUFFIX])
|
||||||
|
AC_SUBST([APP_MAN_DIR])
|
||||||
|
AC_SUBST([LIB_MAN_DIR])
|
||||||
|
AC_SUBST([FILE_MAN_DIR])
|
||||||
|
AC_SUBST([MISC_MAN_DIR])
|
||||||
|
AC_SUBST([DRIVER_MAN_DIR])
|
||||||
|
AC_SUBST([ADMIN_MAN_DIR])
|
||||||
|
]) # XORG_MANPAGE_SECTIONS
|
||||||
|
|
||||||
|
# XORG_CHECK_LINUXDOC
|
||||||
|
# -------------------
|
||||||
|
# Minimum version: 1.0.0
|
||||||
|
#
|
||||||
|
# Defines the variable MAKE_TEXT if the necessary tools and
|
||||||
|
# files are found. $(MAKE_TEXT) blah.sgml will then produce blah.txt.
|
||||||
|
# Whether or not the necessary tools and files are found can be checked
|
||||||
|
# with the AM_CONDITIONAL "BUILD_LINUXDOC"
|
||||||
|
AC_DEFUN([XORG_CHECK_LINUXDOC],[
|
||||||
|
XORG_SGML_PATH=$prefix/share/sgml
|
||||||
|
HAVE_DEFS_ENT=
|
||||||
|
|
||||||
|
AC_CHECK_FILE([$XORG_SGML_PATH/X11/defs.ent], [HAVE_DEFS_ENT=yes])
|
||||||
|
|
||||||
|
AC_PATH_PROG(LINUXDOC, linuxdoc)
|
||||||
|
AC_PATH_PROG(PS2PDF, ps2pdf)
|
||||||
|
|
||||||
|
AC_MSG_CHECKING([Whether to build documentation])
|
||||||
|
|
||||||
|
if test x$HAVE_DEFS_ENT != x && test x$LINUXDOC != x ; then
|
||||||
|
BUILDDOC=yes
|
||||||
|
else
|
||||||
|
BUILDDOC=no
|
||||||
|
fi
|
||||||
|
|
||||||
|
AM_CONDITIONAL(BUILD_LINUXDOC, [test x$BUILDDOC = xyes])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([$BUILDDOC])
|
||||||
|
|
||||||
|
AC_MSG_CHECKING([Whether to build pdf documentation])
|
||||||
|
|
||||||
|
if test x$PS2PDF != x && test x$BUILD_PDFDOC != xno; then
|
||||||
|
BUILDPDFDOC=yes
|
||||||
|
else
|
||||||
|
BUILDPDFDOC=no
|
||||||
|
fi
|
||||||
|
|
||||||
|
AM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes])
|
||||||
|
|
||||||
|
AC_MSG_RESULT([$BUILDPDFDOC])
|
||||||
|
|
||||||
|
MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH GROFF_NO_SGR=y $LINUXDOC -B txt"
|
||||||
|
MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B latex --papersize=letter --output=ps"
|
||||||
|
MAKE_PDF="$PS2PDF"
|
||||||
|
MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B html --split=0"
|
||||||
|
|
||||||
|
AC_SUBST(MAKE_TEXT)
|
||||||
|
AC_SUBST(MAKE_PS)
|
||||||
|
AC_SUBST(MAKE_PDF)
|
||||||
|
AC_SUBST(MAKE_HTML)
|
||||||
|
]) # XORG_CHECK_LINUXDOC
|
||||||
|
|
||||||
|
# XORG_CHECK_DOCBOOK
|
||||||
|
# -------------------
|
||||||
|
# Minimum version: 1.0.0
|
||||||
|
#
|
||||||
|
# Checks for the ability to build output formats from SGML DocBook source.
|
||||||
|
# For XXX in {TXT, PDF, PS, HTML}, the AM_CONDITIONAL "BUILD_XXXDOC"
|
||||||
|
# indicates whether the necessary tools and files are found and, if set,
|
||||||
|
# $(MAKE_XXX) blah.sgml will produce blah.xxx.
|
||||||
|
AC_DEFUN([XORG_CHECK_DOCBOOK],[
|
||||||
|
XORG_SGML_PATH=$prefix/share/sgml
|
||||||
|
HAVE_DEFS_ENT=
|
||||||
|
BUILDTXTDOC=no
|
||||||
|
BUILDPDFDOC=no
|
||||||
|
BUILDPSDOC=no
|
||||||
|
BUILDHTMLDOC=no
|
||||||
|
|
||||||
|
AC_CHECK_FILE([$XORG_SGML_PATH/X11/defs.ent], [HAVE_DEFS_ENT=yes])
|
||||||
|
|
||||||
|
AC_PATH_PROG(DOCBOOKPS, docbook2ps)
|
||||||
|
AC_PATH_PROG(DOCBOOKPDF, docbook2pdf)
|
||||||
|
AC_PATH_PROG(DOCBOOKHTML, docbook2html)
|
||||||
|
AC_PATH_PROG(DOCBOOKTXT, docbook2txt)
|
||||||
|
|
||||||
|
AC_MSG_CHECKING([Whether to build text documentation])
|
||||||
|
if test x$HAVE_DEFS_ENT != x && test x$DOCBOOKTXT != x &&
|
||||||
|
test x$BUILD_TXTDOC != xno; then
|
||||||
|
BUILDTXTDOC=yes
|
||||||
|
fi
|
||||||
|
AM_CONDITIONAL(BUILD_TXTDOC, [test x$BUILDTXTDOC = xyes])
|
||||||
|
AC_MSG_RESULT([$BUILDTXTDOC])
|
||||||
|
|
||||||
|
AC_MSG_CHECKING([Whether to build PDF documentation])
|
||||||
|
if test x$HAVE_DEFS_ENT != x && test x$DOCBOOKPDF != x &&
|
||||||
|
test x$BUILD_PDFDOC != xno; then
|
||||||
|
BUILDPDFDOC=yes
|
||||||
|
fi
|
||||||
|
AM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes])
|
||||||
|
AC_MSG_RESULT([$BUILDPDFDOC])
|
||||||
|
|
||||||
|
AC_MSG_CHECKING([Whether to build PostScript documentation])
|
||||||
|
if test x$HAVE_DEFS_ENT != x && test x$DOCBOOKPS != x &&
|
||||||
|
test x$BUILD_PSDOC != xno; then
|
||||||
|
BUILDPSDOC=yes
|
||||||
|
fi
|
||||||
|
AM_CONDITIONAL(BUILD_PSDOC, [test x$BUILDPSDOC = xyes])
|
||||||
|
AC_MSG_RESULT([$BUILDPSDOC])
|
||||||
|
|
||||||
|
AC_MSG_CHECKING([Whether to build HTML documentation])
|
||||||
|
if test x$HAVE_DEFS_ENT != x && test x$DOCBOOKHTML != x &&
|
||||||
|
test x$BUILD_HTMLDOC != xno; then
|
||||||
|
BUILDHTMLDOC=yes
|
||||||
|
fi
|
||||||
|
AM_CONDITIONAL(BUILD_HTMLDOC, [test x$BUILDHTMLDOC = xyes])
|
||||||
|
AC_MSG_RESULT([$BUILDHTMLDOC])
|
||||||
|
|
||||||
|
MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKTXT"
|
||||||
|
MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPS"
|
||||||
|
MAKE_PDF="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPDF"
|
||||||
|
MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKHTML"
|
||||||
|
|
||||||
|
AC_SUBST(MAKE_TEXT)
|
||||||
|
AC_SUBST(MAKE_PS)
|
||||||
|
AC_SUBST(MAKE_PDF)
|
||||||
|
AC_SUBST(MAKE_HTML)
|
||||||
|
]) # XORG_CHECK_DOCBOOK
|
||||||
|
|
||||||
|
# XORG_CHECK_MALLOC_ZERO
|
||||||
|
# ----------------------
|
||||||
|
# Minimum version: 1.0.0
|
||||||
|
#
|
||||||
|
# Defines {MALLOC,XMALLOC,XTMALLOC}_ZERO_CFLAGS appropriately if
|
||||||
|
# malloc(0) returns NULL. Packages should add one of these cflags to
|
||||||
|
# their AM_CFLAGS (or other appropriate *_CFLAGS) to use them.
|
||||||
|
AC_DEFUN([XORG_CHECK_MALLOC_ZERO],[
|
||||||
|
AC_ARG_ENABLE(malloc0returnsnull,
|
||||||
|
AC_HELP_STRING([--enable-malloc0returnsnull],
|
||||||
|
[malloc(0) returns NULL (default: auto)]),
|
||||||
|
[MALLOC_ZERO_RETURNS_NULL=$enableval],
|
||||||
|
[MALLOC_ZERO_RETURNS_NULL=auto])
|
||||||
|
|
||||||
|
AC_MSG_CHECKING([whether malloc(0) returns NULL])
|
||||||
|
if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
|
||||||
|
AC_RUN_IFELSE([
|
||||||
|
char *malloc();
|
||||||
|
char *realloc();
|
||||||
|
char *calloc();
|
||||||
|
main() {
|
||||||
|
char *m0, *r0, *c0, *p;
|
||||||
|
m0 = malloc(0);
|
||||||
|
p = malloc(10);
|
||||||
|
r0 = realloc(p,0);
|
||||||
|
c0 = calloc(0);
|
||||||
|
exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1);
|
||||||
|
}],
|
||||||
|
[MALLOC_ZERO_RETURNS_NULL=yes],
|
||||||
|
[MALLOC_ZERO_RETURNS_NULL=no])
|
||||||
|
fi
|
||||||
|
AC_MSG_RESULT([$MALLOC_ZERO_RETURNS_NULL])
|
||||||
|
|
||||||
|
if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
|
||||||
|
MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
|
||||||
|
XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
|
||||||
|
XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
|
||||||
|
else
|
||||||
|
MALLOC_ZERO_CFLAGS=""
|
||||||
|
XMALLOC_ZERO_CFLAGS=""
|
||||||
|
XTMALLOC_ZERO_CFLAGS=""
|
||||||
|
fi
|
||||||
|
|
||||||
|
AC_SUBST([MALLOC_ZERO_CFLAGS])
|
||||||
|
AC_SUBST([XMALLOC_ZERO_CFLAGS])
|
||||||
|
AC_SUBST([XTMALLOC_ZERO_CFLAGS])
|
||||||
|
]) # XORG_CHECK_MALLOC_ZERO
|
||||||
|
|
||||||
|
# XORG_WITH_LINT()
|
||||||
|
# ----------------
|
||||||
|
# Minimum version: 1.1.0
|
||||||
|
#
|
||||||
|
# Sets up flags for source checkers such as lint and sparse if --with-lint
|
||||||
|
# is specified. (Use --with-lint=sparse for sparse.)
|
||||||
|
# Sets $LINT to name of source checker passed with --with-lint (default: lint)
|
||||||
|
# Sets $LINT_FLAGS to flags to pass to source checker
|
||||||
|
# Sets LINT automake conditional if enabled (default: disabled)
|
||||||
|
#
|
||||||
|
AC_DEFUN([XORG_WITH_LINT],[
|
||||||
|
|
||||||
|
# Allow checking code with lint, sparse, etc.
|
||||||
|
AC_ARG_WITH(lint, [AC_HELP_STRING([--with-lint],
|
||||||
|
[Use a lint-style source code checker (default: disabled)])],
|
||||||
|
[use_lint=$withval], [use_lint=no])
|
||||||
|
if test "x$use_lint" = "xyes" ; then
|
||||||
|
LINT="lint"
|
||||||
|
else
|
||||||
|
LINT="$use_lint"
|
||||||
|
fi
|
||||||
|
if test "x$LINT_FLAGS" = "x" -a "x$LINT" != "xno" ; then
|
||||||
|
case $LINT in
|
||||||
|
lint|*/lint)
|
||||||
|
case $host_os in
|
||||||
|
solaris*)
|
||||||
|
LINT_FLAGS="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
AC_SUBST(LINT)
|
||||||
|
AC_SUBST(LINT_FLAGS)
|
||||||
|
AM_CONDITIONAL(LINT, [test x$LINT != xno])
|
||||||
|
|
||||||
|
]) # XORG_WITH_LINT
|
||||||
|
|
||||||
|
# XORG_LINT_LIBRARY(LIBNAME)
|
||||||
|
# --------------------------
|
||||||
|
# Minimum version: 1.1.0
|
||||||
|
#
|
||||||
|
# Sets up flags for building lint libraries for checking programs that call
|
||||||
|
# functions in the library.
|
||||||
|
# Disabled by default, enable with --enable-lint-library
|
||||||
|
# Sets:
|
||||||
|
# @LINTLIB@ - name of lint library file to make
|
||||||
|
# MAKE_LINT_LIB - automake conditional
|
||||||
|
#
|
||||||
|
|
||||||
|
AC_DEFUN([XORG_LINT_LIBRARY],[
|
||||||
|
AC_REQUIRE([XORG_WITH_LINT])
|
||||||
|
# Build lint "library" for more indepth checks of programs calling this library
|
||||||
|
AC_ARG_ENABLE(lint-library, [AC_HELP_STRING([--enable-lint-library],
|
||||||
|
[Create lint library (default: disabled)])],
|
||||||
|
[make_lint_lib=$enableval], [make_lint_lib=no])
|
||||||
|
if test "x$make_lint_lib" != "xno" ; then
|
||||||
|
if test "x$LINT" = "xno" ; then
|
||||||
|
AC_MSG_ERROR([Cannot make lint library without --with-lint])
|
||||||
|
fi
|
||||||
|
if test "x$make_lint_lib" = "xyes" ; then
|
||||||
|
LINTLIB=llib-l$1.ln
|
||||||
|
else
|
||||||
|
LINTLIB=$make_lint_lib
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
AC_SUBST(LINTLIB)
|
||||||
|
AM_CONDITIONAL(MAKE_LINT_LIB, [test x$make_lint_lib != xno])
|
||||||
|
|
||||||
|
]) # XORG_LINT_LIBRARY
|
||||||
|
|
||||||
|
dnl Copyright 2005 Red Hat, Inc
|
||||||
|
dnl
|
||||||
|
dnl Permission to use, copy, modify, distribute, and sell this software and its
|
||||||
|
dnl documentation for any purpose is hereby granted without fee, provided that
|
||||||
|
dnl the above copyright notice appear in all copies and that both that
|
||||||
|
dnl copyright notice and this permission notice appear in supporting
|
||||||
|
dnl documentation.
|
||||||
|
dnl
|
||||||
|
dnl The above copyright notice and this permission notice shall be included
|
||||||
|
dnl in all copies or substantial portions of the Software.
|
||||||
|
dnl
|
||||||
|
dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||||
|
dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||||
|
dnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
||||||
|
dnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||||
|
dnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||||
|
dnl OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
dnl
|
||||||
|
dnl Except as contained in this notice, the name of the copyright holders shall
|
||||||
|
dnl not be used in advertising or otherwise to promote the sale, use or
|
||||||
|
dnl other dealings in this Software without prior written authorization
|
||||||
|
dnl from the copyright holders.
|
||||||
|
dnl
|
||||||
|
|
||||||
|
# XORG_RELEASE_VERSION
|
||||||
|
# --------------------
|
||||||
|
# Adds --with/without-release-string and changes the PACKAGE and
|
||||||
|
# PACKAGE_TARNAME to use "$PACKAGE{_TARNAME}-$RELEASE_VERSION". If
|
||||||
|
# no option is given, PACKAGE and PACKAGE_TARNAME are unchanged.
|
||||||
|
|
||||||
|
AC_DEFUN([XORG_RELEASE_VERSION],[
|
||||||
|
AC_ARG_WITH(release-version,
|
||||||
|
AC_HELP_STRING([--with-release-version=STRING],
|
||||||
|
[Use release version string in package name]),
|
||||||
|
[RELEASE_VERSION="$withval"],
|
||||||
|
[RELEASE_VERSION=""])
|
||||||
|
if test "x$RELEASE_VERSION" != "x"; then
|
||||||
|
PACKAGE="$PACKAGE-$RELEASE_VERSION"
|
||||||
|
PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
|
||||||
|
AC_MSG_NOTICE([Building with package name set to $PACKAGE])
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
|
||||||
|
|||||||
102
util/imake/configure
vendored
102
util/imake/configure
vendored
@@ -3685,9 +3685,6 @@ echo "$as_me:$LINENO: checking for XPROTO" >&5
|
|||||||
echo $ECHO_N "checking for XPROTO... $ECHO_C" >&6
|
echo $ECHO_N "checking for XPROTO... $ECHO_C" >&6
|
||||||
|
|
||||||
if test -n "$PKG_CONFIG"; then
|
if test -n "$PKG_CONFIG"; then
|
||||||
if test -n "$XPROTO_CFLAGS"; then
|
|
||||||
pkg_cv_XPROTO_CFLAGS="$XPROTO_CFLAGS"
|
|
||||||
else
|
|
||||||
if test -n "$PKG_CONFIG" && \
|
if test -n "$PKG_CONFIG" && \
|
||||||
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto\"") >&5
|
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto\"") >&5
|
||||||
($PKG_CONFIG --exists --print-errors "xproto") 2>&5
|
($PKG_CONFIG --exists --print-errors "xproto") 2>&5
|
||||||
@@ -3698,14 +3695,10 @@ if test -n "$PKG_CONFIG"; then
|
|||||||
else
|
else
|
||||||
pkg_failed=yes
|
pkg_failed=yes
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
else
|
else
|
||||||
pkg_failed=untried
|
pkg_failed=untried
|
||||||
fi
|
fi
|
||||||
if test -n "$PKG_CONFIG"; then
|
if test -n "$PKG_CONFIG"; then
|
||||||
if test -n "$XPROTO_LIBS"; then
|
|
||||||
pkg_cv_XPROTO_LIBS="$XPROTO_LIBS"
|
|
||||||
else
|
|
||||||
if test -n "$PKG_CONFIG" && \
|
if test -n "$PKG_CONFIG" && \
|
||||||
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto\"") >&5
|
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto\"") >&5
|
||||||
($PKG_CONFIG --exists --print-errors "xproto") 2>&5
|
($PKG_CONFIG --exists --print-errors "xproto") 2>&5
|
||||||
@@ -3716,59 +3709,38 @@ if test -n "$PKG_CONFIG"; then
|
|||||||
else
|
else
|
||||||
pkg_failed=yes
|
pkg_failed=yes
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
else
|
else
|
||||||
pkg_failed=untried
|
pkg_failed=untried
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if test $pkg_failed = yes; then
|
if test $pkg_failed = yes; then
|
||||||
|
XPROTO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xproto"`
|
||||||
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
|
|
||||||
_pkg_short_errors_supported=yes
|
|
||||||
else
|
|
||||||
_pkg_short_errors_supported=no
|
|
||||||
fi
|
|
||||||
if test $_pkg_short_errors_supported = yes; then
|
|
||||||
XPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xproto"`
|
|
||||||
else
|
|
||||||
XPROTO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xproto"`
|
|
||||||
fi
|
|
||||||
# Put the nasty error message in config.log where it belongs
|
# Put the nasty error message in config.log where it belongs
|
||||||
echo "$XPROTO_PKG_ERRORS" >&5
|
echo "$XPROTO_PKG_ERRORS" 1>&5
|
||||||
|
|
||||||
{ { echo "$as_me:$LINENO: error: Package requirements (xproto) were not met:
|
|
||||||
|
|
||||||
$XPROTO_PKG_ERRORS
|
|
||||||
|
|
||||||
|
{ { echo "$as_me:$LINENO: error: Package requirements (xproto) were not met.
|
||||||
Consider adjusting the PKG_CONFIG_PATH environment variable if you
|
Consider adjusting the PKG_CONFIG_PATH environment variable if you
|
||||||
installed software in a non-standard prefix.
|
installed software in a non-standard prefix.
|
||||||
|
|
||||||
Alternatively, you may set the environment variables XPROTO_CFLAGS
|
Alternatively you may set the XPROTO_CFLAGS and XPROTO_LIBS environment variables
|
||||||
and XPROTO_LIBS to avoid the need to call pkg-config.
|
to avoid the need to call pkg-config. See the pkg-config man page for
|
||||||
See the pkg-config man page for more details.
|
more details." >&5
|
||||||
" >&5
|
echo "$as_me: error: Package requirements (xproto) were not met.
|
||||||
echo "$as_me: error: Package requirements (xproto) were not met:
|
|
||||||
|
|
||||||
$XPROTO_PKG_ERRORS
|
|
||||||
|
|
||||||
Consider adjusting the PKG_CONFIG_PATH environment variable if you
|
Consider adjusting the PKG_CONFIG_PATH environment variable if you
|
||||||
installed software in a non-standard prefix.
|
installed software in a non-standard prefix.
|
||||||
|
|
||||||
Alternatively, you may set the environment variables XPROTO_CFLAGS
|
Alternatively you may set the XPROTO_CFLAGS and XPROTO_LIBS environment variables
|
||||||
and XPROTO_LIBS to avoid the need to call pkg-config.
|
to avoid the need to call pkg-config. See the pkg-config man page for
|
||||||
See the pkg-config man page for more details.
|
more details." >&2;}
|
||||||
" >&2;}
|
|
||||||
{ (exit 1); exit 1; }; }
|
{ (exit 1); exit 1; }; }
|
||||||
elif test $pkg_failed = untried; then
|
elif test $pkg_failed = untried; then
|
||||||
{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
|
{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
|
||||||
is in your PATH or set the PKG_CONFIG environment variable to the full
|
is in your PATH or set the PKG_CONFIG environment variable to the full
|
||||||
path to pkg-config.
|
path to pkg-config.
|
||||||
|
|
||||||
Alternatively, you may set the environment variables XPROTO_CFLAGS
|
Alternatively you may set the XPROTO_CFLAGS and XPROTO_LIBS environment variables
|
||||||
and XPROTO_LIBS to avoid the need to call pkg-config.
|
to avoid the need to call pkg-config. See the pkg-config man page for
|
||||||
See the pkg-config man page for more details.
|
more details.
|
||||||
|
|
||||||
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
|
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
|
||||||
See \`config.log' for more details." >&5
|
See \`config.log' for more details." >&5
|
||||||
@@ -3776,9 +3748,9 @@ echo "$as_me: error: The pkg-config script could not be found or is too old. Ma
|
|||||||
is in your PATH or set the PKG_CONFIG environment variable to the full
|
is in your PATH or set the PKG_CONFIG environment variable to the full
|
||||||
path to pkg-config.
|
path to pkg-config.
|
||||||
|
|
||||||
Alternatively, you may set the environment variables XPROTO_CFLAGS
|
Alternatively you may set the XPROTO_CFLAGS and XPROTO_LIBS environment variables
|
||||||
and XPROTO_LIBS to avoid the need to call pkg-config.
|
to avoid the need to call pkg-config. See the pkg-config man page for
|
||||||
See the pkg-config man page for more details.
|
more details.
|
||||||
|
|
||||||
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
|
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
|
||||||
See \`config.log' for more details." >&2;}
|
See \`config.log' for more details." >&2;}
|
||||||
@@ -3850,75 +3822,47 @@ host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|||||||
|
|
||||||
|
|
||||||
if test x$APP_MAN_SUFFIX = x ; then
|
if test x$APP_MAN_SUFFIX = x ; then
|
||||||
case $host_os in
|
APP_MAN_SUFFIX=1
|
||||||
linux*) APP_MAN_SUFFIX=1x ;;
|
|
||||||
*) APP_MAN_SUFFIX=1 ;;
|
|
||||||
esac
|
|
||||||
fi
|
fi
|
||||||
if test x$APP_MAN_DIR = x ; then
|
if test x$APP_MAN_DIR = x ; then
|
||||||
case $host_os in
|
APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
|
||||||
linux*) APP_MAN_DIR='$(mandir)/man1' ;;
|
|
||||||
*) APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' ;;
|
|
||||||
esac
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test x$LIB_MAN_SUFFIX = x ; then
|
if test x$LIB_MAN_SUFFIX = x ; then
|
||||||
case $host_os in
|
LIB_MAN_SUFFIX=3
|
||||||
linux*) LIB_MAN_SUFFIX=3x ;;
|
|
||||||
*) LIB_MAN_SUFFIX=3 ;;
|
|
||||||
esac
|
|
||||||
fi
|
fi
|
||||||
if test x$LIB_MAN_DIR = x ; then
|
if test x$LIB_MAN_DIR = x ; then
|
||||||
case $host_os in
|
LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
|
||||||
linux*) LIB_MAN_DIR='$(mandir)/man3' ;;
|
|
||||||
*) LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' ;;
|
|
||||||
esac
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test x$FILE_MAN_SUFFIX = x ; then
|
if test x$FILE_MAN_SUFFIX = x ; then
|
||||||
case $host_os in
|
case $host_os in
|
||||||
linux*) FILE_MAN_SUFFIX=5x ;;
|
|
||||||
solaris*) FILE_MAN_SUFFIX=4 ;;
|
solaris*) FILE_MAN_SUFFIX=4 ;;
|
||||||
*) FILE_MAN_SUFFIX=5 ;;
|
*) FILE_MAN_SUFFIX=5 ;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
if test x$FILE_MAN_DIR = x ; then
|
if test x$FILE_MAN_DIR = x ; then
|
||||||
case $host_os in
|
FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
|
||||||
linux*) FILE_MAN_DIR='$(mandir)/man5' ;;
|
|
||||||
*) FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' ;;
|
|
||||||
esac
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# In Imake's linux.cf, the misc man suffix & dir was only changed for
|
|
||||||
# LinuxDebian, not other Linuxes, so we leave it unchanged here
|
|
||||||
if test x$MISC_MAN_SUFFIX = x ; then
|
if test x$MISC_MAN_SUFFIX = x ; then
|
||||||
case $host_os in
|
case $host_os in
|
||||||
# linux*) MISC_MAN_SUFFIX=7x ;;
|
|
||||||
solaris*) MISC_MAN_SUFFIX=5 ;;
|
solaris*) MISC_MAN_SUFFIX=5 ;;
|
||||||
*) MISC_MAN_SUFFIX=7 ;;
|
*) MISC_MAN_SUFFIX=7 ;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
if test x$MISC_MAN_DIR = x ; then
|
if test x$MISC_MAN_DIR = x ; then
|
||||||
case $host_os in
|
MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
|
||||||
# linux*) MISC_MAN_DIR='$(mandir)/man7' ;;
|
|
||||||
*) MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' ;;
|
|
||||||
esac
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# In Imake's linux.cf, the driver man suffix & dir was only changed for
|
|
||||||
# LinuxDebian, not other Linuxes, so we leave it unchanged here
|
|
||||||
if test x$DRIVER_MAN_SUFFIX = x ; then
|
if test x$DRIVER_MAN_SUFFIX = x ; then
|
||||||
case $host_os in
|
case $host_os in
|
||||||
# linux*) DRIVER_MAN_SUFFIX=4x ;;
|
|
||||||
solaris*) DRIVER_MAN_SUFFIX=7 ;;
|
solaris*) DRIVER_MAN_SUFFIX=7 ;;
|
||||||
*) DRIVER_MAN_SUFFIX=4 ;;
|
*) DRIVER_MAN_SUFFIX=4 ;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
if test x$DRIVER_MAN_DIR = x ; then
|
if test x$DRIVER_MAN_DIR = x ; then
|
||||||
case $host_os in
|
DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
|
||||||
# linux*) DRIVER_MAN_DIR='$(mandir)/man4' ;;
|
|
||||||
*) DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' ;;
|
|
||||||
esac
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test x$ADMIN_MAN_SUFFIX = x ; then
|
if test x$ADMIN_MAN_SUFFIX = x ; then
|
||||||
|
|||||||
@@ -90,10 +90,6 @@ GZIP_ENV = --best
|
|||||||
distuninstallcheck_listfiles = find . -type f -print
|
distuninstallcheck_listfiles = find . -type f -print
|
||||||
distcleancheck_listfiles = find . -type f -print
|
distcleancheck_listfiles = find . -type f -print
|
||||||
ACLOCAL = @ACLOCAL@
|
ACLOCAL = @ACLOCAL@
|
||||||
AMCMDECHO = @AMCMDECHO@
|
|
||||||
AMDEPSHOWCMDSAT = @AMDEPSHOWCMDSAT@
|
|
||||||
AMPRETTYECHO = @AMPRETTYECHO@
|
|
||||||
AMSHOWCMDSAT = @AMSHOWCMDSAT@
|
|
||||||
AMTAR = @AMTAR@
|
AMTAR = @AMTAR@
|
||||||
AUTOCONF = @AUTOCONF@
|
AUTOCONF = @AUTOCONF@
|
||||||
AUTOHEADER = @AUTOHEADER@
|
AUTOHEADER = @AUTOHEADER@
|
||||||
@@ -111,7 +107,6 @@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
|||||||
LIBOBJS = @LIBOBJS@
|
LIBOBJS = @LIBOBJS@
|
||||||
LIBS = @LIBS@
|
LIBS = @LIBS@
|
||||||
LTLIBOBJS = @LTLIBOBJS@
|
LTLIBOBJS = @LTLIBOBJS@
|
||||||
LT_QUIET = @LT_QUIET@
|
|
||||||
MAKEINFO = @MAKEINFO@
|
MAKEINFO = @MAKEINFO@
|
||||||
PACKAGE = @PACKAGE@
|
PACKAGE = @PACKAGE@
|
||||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||||
@@ -124,32 +119,26 @@ SET_MAKE = @SET_MAKE@
|
|||||||
SHELL = @SHELL@
|
SHELL = @SHELL@
|
||||||
STRIP = @STRIP@
|
STRIP = @STRIP@
|
||||||
VERSION = @VERSION@
|
VERSION = @VERSION@
|
||||||
|
ac_ct_STRIP = @ac_ct_STRIP@
|
||||||
am__leading_dot = @am__leading_dot@
|
am__leading_dot = @am__leading_dot@
|
||||||
am__tar = @am__tar@
|
am__tar = @am__tar@
|
||||||
am__untar = @am__untar@
|
am__untar = @am__untar@
|
||||||
bindir = @bindir@
|
bindir = @bindir@
|
||||||
build_alias = @build_alias@
|
build_alias = @build_alias@
|
||||||
datadir = @datadir@
|
datadir = @datadir@
|
||||||
datarootdir = @datarootdir@
|
|
||||||
docdir = @docdir@
|
|
||||||
dvidir = @dvidir@
|
|
||||||
exec_prefix = @exec_prefix@
|
exec_prefix = @exec_prefix@
|
||||||
host_alias = @host_alias@
|
host_alias = @host_alias@
|
||||||
htmldir = @htmldir@
|
|
||||||
includedir = @includedir@
|
includedir = @includedir@
|
||||||
infodir = @infodir@
|
infodir = @infodir@
|
||||||
install_sh = @install_sh@
|
install_sh = @install_sh@
|
||||||
libdir = @libdir@
|
libdir = @libdir@
|
||||||
libexecdir = @libexecdir@
|
libexecdir = @libexecdir@
|
||||||
localedir = @localedir@
|
|
||||||
localstatedir = @localstatedir@
|
localstatedir = @localstatedir@
|
||||||
mandir = @mandir@
|
mandir = @mandir@
|
||||||
mkdir_p = @mkdir_p@
|
mkdir_p = @mkdir_p@
|
||||||
oldincludedir = @oldincludedir@
|
oldincludedir = @oldincludedir@
|
||||||
pdfdir = @pdfdir@
|
|
||||||
prefix = @prefix@
|
prefix = @prefix@
|
||||||
program_transform_name = @program_transform_name@
|
program_transform_name = @program_transform_name@
|
||||||
psdir = @psdir@
|
|
||||||
sbindir = @sbindir@
|
sbindir = @sbindir@
|
||||||
sharedstatedir = @sharedstatedir@
|
sharedstatedir = @sharedstatedir@
|
||||||
sysconfdir = @sysconfdir@
|
sysconfdir = @sysconfdir@
|
||||||
@@ -167,52 +156,43 @@ $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
|
|||||||
@for dep in $?; do \
|
@for dep in $?; do \
|
||||||
case '$(am__configure_deps)' in \
|
case '$(am__configure_deps)' in \
|
||||||
*$$dep*) \
|
*$$dep*) \
|
||||||
@AMPRETTYECHO@ ' [AUTOMAKE ] rebuild all'; \
|
echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \
|
||||||
@AMCMDECHO@ ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \
|
|
||||||
cd $(srcdir) && $(AUTOMAKE) --foreign \
|
cd $(srcdir) && $(AUTOMAKE) --foreign \
|
||||||
&& exit 0; \
|
&& exit 0; \
|
||||||
exit 1;; \
|
exit 1;; \
|
||||||
esac; \
|
esac; \
|
||||||
done; \
|
done; \
|
||||||
@AMPRETTYECHO@ ' [AUTOMAKE ] Makefile'; \
|
echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
|
||||||
@AMCMDECHO@ ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
|
|
||||||
cd $(top_srcdir) && \
|
cd $(top_srcdir) && \
|
||||||
$(AUTOMAKE) --foreign Makefile
|
$(AUTOMAKE) --foreign Makefile
|
||||||
.PRECIOUS: Makefile
|
.PRECIOUS: Makefile
|
||||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||||
@case '$?' in \
|
@case '$?' in \
|
||||||
*config.status*) \
|
*config.status*) \
|
||||||
@AMPRETTYECHO@ ' [SH ] config.status'; \
|
echo ' $(SHELL) ./config.status'; \
|
||||||
@AMCMDECHO@ ' $(SHELL) ./config.status'; \
|
|
||||||
$(SHELL) ./config.status;; \
|
$(SHELL) ./config.status;; \
|
||||||
*) \
|
*) \
|
||||||
@AMPRETTYECHO@ ' [SH ] config.status $@'; \
|
echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
|
||||||
@AMCMDECHO@ ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
|
|
||||||
cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
|
cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
|
||||||
esac;
|
esac;
|
||||||
|
|
||||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||||
@@AMPRETTYECHO@ ' [SH ] config.status'
|
$(SHELL) ./config.status --recheck
|
||||||
@AMSHOWCMDSAT@$(SHELL) ./config.status --recheck
|
|
||||||
|
|
||||||
$(top_srcdir)/configure: $(am__configure_deps)
|
$(top_srcdir)/configure: $(am__configure_deps)
|
||||||
@@AMPRETTYECHO@ ' [AUTOCONF ] Regenerate'
|
cd $(srcdir) && $(AUTOCONF)
|
||||||
@AMSHOWCMDSAT@cd $(srcdir) && $(AUTOCONF)
|
|
||||||
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
||||||
@@AMPRETTYECHO@ ' [ACLOCAL ] Regenerate'
|
cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
|
||||||
@AMSHOWCMDSAT@cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
|
|
||||||
xorg-macros.m4: $(top_builddir)/config.status $(srcdir)/xorg-macros.m4.in
|
xorg-macros.m4: $(top_builddir)/config.status $(srcdir)/xorg-macros.m4.in
|
||||||
cd $(top_builddir) && $(SHELL) ./config.status $@
|
cd $(top_builddir) && $(SHELL) ./config.status $@
|
||||||
uninstall-info-am:
|
uninstall-info-am:
|
||||||
install-aclocalDATA: $(aclocal_DATA)
|
install-aclocalDATA: $(aclocal_DATA)
|
||||||
@$(NORMAL_INSTALL)
|
@$(NORMAL_INSTALL)
|
||||||
@@AMPRETTYECHO@ ' [MKDIR ] $(DESTDIR)$(aclocaldir)'
|
test -z "$(aclocaldir)" || $(mkdir_p) "$(DESTDIR)$(aclocaldir)"
|
||||||
@AMSHOWCMDSAT@test -z "$(aclocaldir)" || $(mkdir_p) "$(DESTDIR)$(aclocaldir)"
|
|
||||||
@list='$(aclocal_DATA)'; for p in $$list; do \
|
@list='$(aclocal_DATA)'; for p in $$list; do \
|
||||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||||
f=$(am__strip_dir) \
|
f=$(am__strip_dir) \
|
||||||
@AMPRETTYECHO@ " [INSTALL ] '$$d$$p' -> '$(DESTDIR)$(aclocaldir)/$$f'"; \
|
echo " $(aclocalDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(aclocaldir)/$$f'"; \
|
||||||
@AMCMDECHO@ " $(aclocalDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(aclocaldir)/$$f'"; \
|
|
||||||
$(aclocalDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(aclocaldir)/$$f"; \
|
$(aclocalDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(aclocaldir)/$$f"; \
|
||||||
done
|
done
|
||||||
|
|
||||||
@@ -220,8 +200,7 @@ uninstall-aclocalDATA:
|
|||||||
@$(NORMAL_UNINSTALL)
|
@$(NORMAL_UNINSTALL)
|
||||||
@list='$(aclocal_DATA)'; for p in $$list; do \
|
@list='$(aclocal_DATA)'; for p in $$list; do \
|
||||||
f=$(am__strip_dir) \
|
f=$(am__strip_dir) \
|
||||||
@AMPRETTYECHO@ " [RM ] $(DESTDIR)$(aclocaldir)/$$f"; \
|
echo " rm -f '$(DESTDIR)$(aclocaldir)/$$f'"; \
|
||||||
@AMCMDECHO@ " rm -f '$(DESTDIR)$(aclocaldir)/$$f'"; \
|
|
||||||
rm -f "$(DESTDIR)$(aclocaldir)/$$f"; \
|
rm -f "$(DESTDIR)$(aclocaldir)/$$f"; \
|
||||||
done
|
done
|
||||||
tags: TAGS
|
tags: TAGS
|
||||||
@@ -232,11 +211,9 @@ CTAGS:
|
|||||||
|
|
||||||
|
|
||||||
distdir: $(DISTFILES)
|
distdir: $(DISTFILES)
|
||||||
@AMSHOWCMDSAT@$(am__remove_distdir)
|
$(am__remove_distdir)
|
||||||
@@AMPRETTYECHO@ ' [MKDIR ] $(distdir)'
|
mkdir $(distdir)
|
||||||
@AMSHOWCMDSAT@mkdir $(distdir)
|
$(mkdir_p) $(distdir)/.
|
||||||
@@AMPRETTYECHO@ ' [MKDIR ] $(distdir)/.'
|
|
||||||
@AMSHOWCMDSAT@$(mkdir_p) $(distdir)/.
|
|
||||||
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
|
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
|
||||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
|
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
|
||||||
list='$(DISTFILES)'; for file in $$list; do \
|
list='$(DISTFILES)'; for file in $$list; do \
|
||||||
@@ -263,71 +240,59 @@ distdir: $(DISTFILES)
|
|||||||
|| exit 1; \
|
|| exit 1; \
|
||||||
fi; \
|
fi; \
|
||||||
done
|
done
|
||||||
@AMSHOWCMDSAT@$(MAKE) $(AM_MAKEFLAGS) \
|
$(MAKE) $(AM_MAKEFLAGS) \
|
||||||
top_distdir="$(top_distdir)" distdir="$(distdir)" \
|
top_distdir="$(top_distdir)" distdir="$(distdir)" \
|
||||||
dist-hook
|
dist-hook
|
||||||
@AMSHOWCMDSAT@-find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
|
-find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
|
||||||
! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
|
! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
|
||||||
! -type d ! -perm -400 -exec chmod a+r {} \; -o \
|
! -type d ! -perm -400 -exec chmod a+r {} \; -o \
|
||||||
! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
|
! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
|
||||||
|| ( @AMPRETTYECHO@ ' [CHMOD ] a+r $(distdir)'; chmod -R a+r $(distdir) )
|
|| chmod -R a+r $(distdir)
|
||||||
dist-gzip: distdir
|
dist-gzip: distdir
|
||||||
@@AMPRETTYECHO@ ' [TAR.GZ ] $(distdir).tar.gz'
|
tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
|
||||||
@AMSHOWCMDSAT@tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
|
$(am__remove_distdir)
|
||||||
@AMSHOWCMDSAT@$(am__remove_distdir)
|
|
||||||
dist-bzip2: distdir
|
dist-bzip2: distdir
|
||||||
@@AMPRETTYECHO@ ' [TAR.BZ2 ] $(distdir).tar.bz2'
|
tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
|
||||||
@AMSHOWCMDSAT@tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
|
$(am__remove_distdir)
|
||||||
@AMSHOWCMDSAT@$(am__remove_distdir)
|
|
||||||
|
|
||||||
dist-tarZ: distdir
|
dist-tarZ: distdir
|
||||||
@@AMPRETTYECHO@ ' [TAR.Z ] $(distdir).tar.Z'
|
tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
|
||||||
@AMSHOWCMDSAT@tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
|
$(am__remove_distdir)
|
||||||
@AMSHOWCMDSAT@$(am__remove_distdir)
|
|
||||||
|
|
||||||
dist-shar: distdir
|
dist-shar: distdir
|
||||||
@@AMPRETTYECHO@ ' [SHAR.GZ ] $(distdir).shar.gz'
|
shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
|
||||||
@AMSHOWCMDSAT@shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
|
$(am__remove_distdir)
|
||||||
@AMSHOWCMDSAT@$(am__remove_distdir)
|
|
||||||
|
|
||||||
dist-zip: distdir
|
dist-zip: distdir
|
||||||
@@AMPRETTYECHO@ ' [ZIP ] $(distdir).zip'
|
-rm -f $(distdir).zip
|
||||||
@AMSHOWCMDSAT@-rm -f $(distdir).zip
|
zip -rq $(distdir).zip $(distdir)
|
||||||
@AMSHOWCMDSAT@zip -rq $(distdir).zip $(distdir)
|
$(am__remove_distdir)
|
||||||
@AMSHOWCMDSAT@$(am__remove_distdir)
|
|
||||||
|
|
||||||
dist dist-all: distdir
|
dist dist-all: distdir
|
||||||
@@AMPRETTYECHO@ ' [TAR.GZ ] $(distdir).tar.gz'
|
tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
|
||||||
@AMSHOWCMDSAT@tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
|
tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
|
||||||
@@AMPRETTYECHO@ ' [TAR.BZ2 ] $(distdir).tar.bz2'
|
$(am__remove_distdir)
|
||||||
@AMSHOWCMDSAT@tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
|
|
||||||
@AMSHOWCMDSAT@$(am__remove_distdir)
|
|
||||||
|
|
||||||
# This target untars the dist file and tries a VPATH configuration. Then
|
# This target untars the dist file and tries a VPATH configuration. Then
|
||||||
# it guarantees that the distribution is self-contained by making another
|
# it guarantees that the distribution is self-contained by making another
|
||||||
# tarfile.
|
# tarfile.
|
||||||
distcheck: dist
|
distcheck: dist
|
||||||
@AMSHOWCMDSAT@case '$(DIST_ARCHIVES)' in \
|
case '$(DIST_ARCHIVES)' in \
|
||||||
*.tar.gz*) \
|
*.tar.gz*) \
|
||||||
@AMPRETTYECHO@ ' [UNTAR.GZ ] $(distdir).tar.gz'; \
|
|
||||||
GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
|
GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
|
||||||
*.tar.bz2*) \
|
*.tar.bz2*) \
|
||||||
@AMPRETTYECHO@ ' [UNTAR.BZ2 ] $(distdir).tar.bz2'; \
|
|
||||||
bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
|
bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
|
||||||
*.tar.Z*) \
|
*.tar.Z*) \
|
||||||
@AMPRETTYECHO@ ' [UNTAR.Z ] $(distdir).tar.Z'; \
|
|
||||||
uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
|
uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
|
||||||
*.shar.gz*) \
|
*.shar.gz*) \
|
||||||
@AMPRETTYECHO@ ' [UNSHAR.GZ ] $(distdir).shar.gz'; \
|
|
||||||
GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
|
GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
|
||||||
*.zip*) \
|
*.zip*) \
|
||||||
@AMPRETTYECHO@ ' [UNZIP ] $(distdir).zip'; \
|
|
||||||
unzip $(distdir).zip ;;\
|
unzip $(distdir).zip ;;\
|
||||||
esac
|
esac
|
||||||
@AMSHOWCMDSAT@chmod -R a-w $(distdir); chmod a+w $(distdir)
|
chmod -R a-w $(distdir); chmod a+w $(distdir)
|
||||||
@AMSHOWCMDSAT@mkdir $(distdir)/_build
|
mkdir $(distdir)/_build
|
||||||
@AMSHOWCMDSAT@mkdir $(distdir)/_inst
|
mkdir $(distdir)/_inst
|
||||||
@AMSHOWCMDSAT@chmod a-w $(distdir)
|
chmod a-w $(distdir)
|
||||||
dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
|
dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
|
||||||
&& dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
|
&& dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
|
||||||
&& cd $(distdir)/_build \
|
&& cd $(distdir)/_build \
|
||||||
@@ -379,8 +344,8 @@ check-am: all-am
|
|||||||
check: check-am
|
check: check-am
|
||||||
all-am: Makefile $(DATA)
|
all-am: Makefile $(DATA)
|
||||||
installdirs:
|
installdirs:
|
||||||
@AMSHOWCMDSAT@for dir in "$(DESTDIR)$(aclocaldir)"; do \
|
for dir in "$(DESTDIR)$(aclocaldir)"; do \
|
||||||
test -z "$$dir" || ( @AMPRETTYECHO@ " [MKDIR ] $$dir"; $(mkdir_p) "$$dir" ); \
|
test -z "$$dir" || $(mkdir_p) "$$dir"; \
|
||||||
done
|
done
|
||||||
install: install-am
|
install: install-am
|
||||||
install-exec: install-exec-am
|
install-exec: install-exec-am
|
||||||
@@ -392,7 +357,7 @@ install-am: all-am
|
|||||||
|
|
||||||
installcheck: installcheck-am
|
installcheck: installcheck-am
|
||||||
install-strip:
|
install-strip:
|
||||||
@AMSHOWCMDSAT@$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||||
`test -z '$(STRIP)' || \
|
`test -z '$(STRIP)' || \
|
||||||
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
|
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
|
||||||
@@ -401,9 +366,7 @@ mostlyclean-generic:
|
|||||||
clean-generic:
|
clean-generic:
|
||||||
|
|
||||||
distclean-generic:
|
distclean-generic:
|
||||||
@@AMPRETTYECHO@ ' [RM ] $(CONFIG_CLEAN_FILES)'
|
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||||
@AMSHOWCMDSAT@-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
|
||||||
@@AMPRETTYECHO@ ' [RM ] $(DISTCLEANFILES)'
|
|
||||||
-test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
|
-test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
|
||||||
|
|
||||||
maintainer-clean-generic:
|
maintainer-clean-generic:
|
||||||
@@ -414,10 +377,8 @@ clean: clean-am
|
|||||||
clean-am: clean-generic mostlyclean-am
|
clean-am: clean-generic mostlyclean-am
|
||||||
|
|
||||||
distclean: distclean-am
|
distclean: distclean-am
|
||||||
@@AMPRETTYECHO@ ' [RM ] $(am__CONFIG_DISTCLEAN_FILES)'
|
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
|
||||||
@AMSHOWCMDSAT@-rm -f $(am__CONFIG_DISTCLEAN_FILES)
|
-rm -f Makefile
|
||||||
@@AMPRETTYECHO@ ' [RM ] Makefile'
|
|
||||||
@AMSHOWCMDSAT@-rm -f Makefile
|
|
||||||
distclean-am: clean-am distclean-generic
|
distclean-am: clean-am distclean-generic
|
||||||
|
|
||||||
dvi: dvi-am
|
dvi: dvi-am
|
||||||
@@ -441,12 +402,9 @@ install-man:
|
|||||||
installcheck-am:
|
installcheck-am:
|
||||||
|
|
||||||
maintainer-clean: maintainer-clean-am
|
maintainer-clean: maintainer-clean-am
|
||||||
@@AMPRETTYECHO@ ' [RM ] $(am__CONFIG_DISTCLEAN_FILES)'
|
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
|
||||||
@AMSHOWCMDSAT@-rm -f $(am__CONFIG_DISTCLEAN_FILES)
|
-rm -rf $(top_srcdir)/autom4te.cache
|
||||||
@@AMPRETTYECHO@ ' [RM ] autom4te.cache/'
|
-rm -f Makefile
|
||||||
@AMSHOWCMDSAT@-rm -rf $(top_srcdir)/autom4te.cache
|
|
||||||
@@AMPRETTYECHO@ ' [RM ] Makefile'
|
|
||||||
@AMSHOWCMDSAT@-rm -f Makefile
|
|
||||||
maintainer-clean-am: distclean-am maintainer-clean-generic
|
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||||
|
|
||||||
mostlyclean: mostlyclean-am
|
mostlyclean: mostlyclean-am
|
||||||
|
|||||||
37
util/macros/aclocal.m4
vendored
37
util/macros/aclocal.m4
vendored
@@ -174,7 +174,6 @@ AC_PROVIDE_IFELSE([AC_PROG_CXX],
|
|||||||
[define([AC_PROG_CXX],
|
[define([AC_PROG_CXX],
|
||||||
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
|
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
|
||||||
])
|
])
|
||||||
AC_REQUIRE([AM_PRETTY_CMDS])
|
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
@@ -364,42 +363,6 @@ AC_DEFUN([_AM_SET_OPTIONS],
|
|||||||
AC_DEFUN([_AM_IF_OPTION],
|
AC_DEFUN([_AM_IF_OPTION],
|
||||||
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
|
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
|
||||||
|
|
||||||
|
|
||||||
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
|
|
||||||
# Free Software Foundation, Inc.
|
|
||||||
#
|
|
||||||
# This file is free software; the Free Software Foundation
|
|
||||||
# gives unlimited permission to copy and/or distribute it,
|
|
||||||
# with or without modifications, as long as this notice is preserved.
|
|
||||||
|
|
||||||
# serial 8
|
|
||||||
|
|
||||||
|
|
||||||
# AM_PRETTY_CMDS
|
|
||||||
# ------------
|
|
||||||
AC_DEFUN([AM_PRETTY_CMDS],
|
|
||||||
[AC_ARG_ENABLE(pretty-cmds,
|
|
||||||
[ --disable-pretty-cmds show all commands executed
|
|
||||||
--enable-pretty-cmds do not output the entire command lines])
|
|
||||||
AMSHOWCMDSAT=''
|
|
||||||
AMDEPSHOWCMDSAT=''
|
|
||||||
AMPRETTYECHO=true
|
|
||||||
AMCMDECHO=echo
|
|
||||||
if test "x$enable_pretty_cmds" == xyes;
|
|
||||||
then
|
|
||||||
AMSHOWCMDSAT='@'
|
|
||||||
_AM_IF_OPTION([no-dependencies],,test x$enable_dependency_tracking == xno &&) AMDEPSHOWCMDSAT='@'
|
|
||||||
AMPRETTYECHO=echo
|
|
||||||
AMCMDECHO=true
|
|
||||||
LT_QUIET='--quiet'
|
|
||||||
fi
|
|
||||||
AC_SUBST([AMSHOWCMDSAT])
|
|
||||||
AC_SUBST([AMDEPSHOWCMDSAT])
|
|
||||||
AC_SUBST([AMPRETTYECHO])
|
|
||||||
AC_SUBST([AMCMDECHO])
|
|
||||||
AC_SUBST([LT_QUIET])
|
|
||||||
])
|
|
||||||
|
|
||||||
# Check to make sure that the build environment is sane. -*- Autoconf -*-
|
# Check to make sure that the build environment is sane. -*- Autoconf -*-
|
||||||
|
|
||||||
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
|
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
|
||||||
|
|||||||
2517
util/macros/configure
vendored
2517
util/macros/configure
vendored
File diff suppressed because it is too large
Load Diff
@@ -1,8 +1,8 @@
|
|||||||
# Makefile.in generated by automake 1.7.9 from Makefile.am.
|
# Makefile.in generated by automake 1.9.6 from Makefile.am.
|
||||||
# @configure_input@
|
# @configure_input@
|
||||||
|
|
||||||
# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
|
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
||||||
# Free Software Foundation, Inc.
|
# 2003, 2004, 2005 Free Software Foundation, Inc.
|
||||||
# This Makefile.in is free software; the Free Software Foundation
|
# This Makefile.in is free software; the Free Software Foundation
|
||||||
# gives unlimited permission to copy and/or distribute it,
|
# gives unlimited permission to copy and/or distribute it,
|
||||||
# with or without modifications, as long as this notice is preserved.
|
# with or without modifications, as long as this notice is preserved.
|
||||||
@@ -16,6 +16,7 @@
|
|||||||
|
|
||||||
# $XdotOrg: $
|
# $XdotOrg: $
|
||||||
|
|
||||||
|
|
||||||
srcdir = @srcdir@
|
srcdir = @srcdir@
|
||||||
top_srcdir = @top_srcdir@
|
top_srcdir = @top_srcdir@
|
||||||
VPATH = @srcdir@
|
VPATH = @srcdir@
|
||||||
@@ -23,7 +24,6 @@ pkgdatadir = $(datadir)/@PACKAGE@
|
|||||||
pkglibdir = $(libdir)/@PACKAGE@
|
pkglibdir = $(libdir)/@PACKAGE@
|
||||||
pkgincludedir = $(includedir)/@PACKAGE@
|
pkgincludedir = $(includedir)/@PACKAGE@
|
||||||
top_builddir = .
|
top_builddir = .
|
||||||
|
|
||||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||||
INSTALL = @INSTALL@
|
INSTALL = @INSTALL@
|
||||||
install_sh_DATA = $(install_sh) -c -m 644
|
install_sh_DATA = $(install_sh) -c -m 644
|
||||||
@@ -37,7 +37,63 @@ POST_INSTALL = :
|
|||||||
NORMAL_UNINSTALL = :
|
NORMAL_UNINSTALL = :
|
||||||
PRE_UNINSTALL = :
|
PRE_UNINSTALL = :
|
||||||
POST_UNINSTALL = :
|
POST_UNINSTALL = :
|
||||||
|
build_triplet = @build@
|
||||||
host_triplet = @host@
|
host_triplet = @host@
|
||||||
|
bin_PROGRAMS = makedepend$(EXEEXT)
|
||||||
|
DIST_COMMON = $(am__configure_deps) $(srcdir)/Makefile.am \
|
||||||
|
$(srcdir)/Makefile.in $(srcdir)/makedepend-config.h.in \
|
||||||
|
$(top_srcdir)/configure AUTHORS COPYING ChangeLog compile \
|
||||||
|
config.guess config.sub depcomp install-sh missing \
|
||||||
|
mkinstalldirs
|
||||||
|
subdir = .
|
||||||
|
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||||
|
am__aclocal_m4_deps = $(top_srcdir)/configure.ac
|
||||||
|
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||||
|
$(ACLOCAL_M4)
|
||||||
|
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
|
||||||
|
configure.lineno configure.status.lineno
|
||||||
|
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
||||||
|
CONFIG_HEADER = makedepend-config.h
|
||||||
|
CONFIG_CLEAN_FILES =
|
||||||
|
am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(appmandir)"
|
||||||
|
binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
|
||||||
|
PROGRAMS = $(bin_PROGRAMS)
|
||||||
|
am_makedepend_OBJECTS = makedepend-include.$(OBJEXT) \
|
||||||
|
makedepend-main.$(OBJEXT) makedepend-parse.$(OBJEXT) \
|
||||||
|
makedepend-pr.$(OBJEXT) makedepend-cppsetup.$(OBJEXT) \
|
||||||
|
makedepend-ifparser.$(OBJEXT)
|
||||||
|
makedepend_OBJECTS = $(am_makedepend_OBJECTS)
|
||||||
|
makedepend_LDADD = $(LDADD)
|
||||||
|
DEFAULT_INCLUDES = -I. -I$(srcdir) -I.
|
||||||
|
depcomp = $(SHELL) $(top_srcdir)/depcomp
|
||||||
|
am__depfiles_maybe = depfiles
|
||||||
|
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
|
||||||
|
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||||
|
CCLD = $(CC)
|
||||||
|
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
|
||||||
|
SOURCES = $(makedepend_SOURCES)
|
||||||
|
DIST_SOURCES = $(makedepend_SOURCES)
|
||||||
|
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
|
||||||
|
am__vpath_adj = case $$p in \
|
||||||
|
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
|
||||||
|
*) f=$$p;; \
|
||||||
|
esac;
|
||||||
|
am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
|
||||||
|
appmanDATA_INSTALL = $(INSTALL_DATA)
|
||||||
|
DATA = $(appman_DATA)
|
||||||
|
ETAGS = etags
|
||||||
|
CTAGS = ctags
|
||||||
|
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||||
|
distdir = $(PACKAGE)-$(VERSION)
|
||||||
|
top_distdir = $(distdir)
|
||||||
|
am__remove_distdir = \
|
||||||
|
{ test ! -d $(distdir) \
|
||||||
|
|| { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
|
||||||
|
&& rm -fr $(distdir); }; }
|
||||||
|
DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.bz2
|
||||||
|
GZIP_ENV = --best
|
||||||
|
distuninstallcheck_listfiles = find . -type f -print
|
||||||
|
distcleancheck_listfiles = find . -type f -print
|
||||||
ACLOCAL = @ACLOCAL@
|
ACLOCAL = @ACLOCAL@
|
||||||
ADMIN_MAN_DIR = @ADMIN_MAN_DIR@
|
ADMIN_MAN_DIR = @ADMIN_MAN_DIR@
|
||||||
ADMIN_MAN_SUFFIX = @ADMIN_MAN_SUFFIX@
|
ADMIN_MAN_SUFFIX = @ADMIN_MAN_SUFFIX@
|
||||||
@@ -101,6 +157,8 @@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
|
|||||||
am__include = @am__include@
|
am__include = @am__include@
|
||||||
am__leading_dot = @am__leading_dot@
|
am__leading_dot = @am__leading_dot@
|
||||||
am__quote = @am__quote@
|
am__quote = @am__quote@
|
||||||
|
am__tar = @am__tar@
|
||||||
|
am__untar = @am__untar@
|
||||||
bindir = @bindir@
|
bindir = @bindir@
|
||||||
build = @build@
|
build = @build@
|
||||||
build_alias = @build_alias@
|
build_alias = @build_alias@
|
||||||
@@ -121,6 +179,7 @@ libdir = @libdir@
|
|||||||
libexecdir = @libexecdir@
|
libexecdir = @libexecdir@
|
||||||
localstatedir = @localstatedir@
|
localstatedir = @localstatedir@
|
||||||
mandir = @mandir@
|
mandir = @mandir@
|
||||||
|
mkdir_p = @mkdir_p@
|
||||||
oldincludedir = @oldincludedir@
|
oldincludedir = @oldincludedir@
|
||||||
prefix = @prefix@
|
prefix = @prefix@
|
||||||
program_transform_name = @program_transform_name@
|
program_transform_name = @program_transform_name@
|
||||||
@@ -128,11 +187,7 @@ sbindir = @sbindir@
|
|||||||
sharedstatedir = @sharedstatedir@
|
sharedstatedir = @sharedstatedir@
|
||||||
sysconfdir = @sysconfdir@
|
sysconfdir = @sysconfdir@
|
||||||
target_alias = @target_alias@
|
target_alias = @target_alias@
|
||||||
|
|
||||||
bin_PROGRAMS = makedepend
|
|
||||||
|
|
||||||
INCLUDES = @X_CFLAGS@
|
INCLUDES = @X_CFLAGS@
|
||||||
|
|
||||||
makedepend_SOURCES = include.c \
|
makedepend_SOURCES = include.c \
|
||||||
main.c \
|
main.c \
|
||||||
parse.c \
|
parse.c \
|
||||||
@@ -143,25 +198,19 @@ makedepend_SOURCES = include.c \
|
|||||||
def.h \
|
def.h \
|
||||||
imakemdep.h
|
imakemdep.h
|
||||||
|
|
||||||
|
|
||||||
makedepend_CPPFLAGS = -DOBJSUFFIX=\".${OBJEXT}\" -DINCLUDEDIR=\"/usr/include\"
|
makedepend_CPPFLAGS = -DOBJSUFFIX=\".${OBJEXT}\" -DINCLUDEDIR=\"/usr/include\"
|
||||||
|
|
||||||
EXTRA_DIST = autogen.sh makedepend.man
|
EXTRA_DIST = autogen.sh makedepend.man
|
||||||
|
|
||||||
# Man page
|
# Man page
|
||||||
appmandir = $(APP_MAN_DIR)
|
appmandir = $(APP_MAN_DIR)
|
||||||
|
|
||||||
appman_PRE = makedepend.man
|
appman_PRE = makedepend.man
|
||||||
appman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@)
|
appman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@)
|
||||||
|
|
||||||
CLEANFILES = $(appman_DATA)
|
CLEANFILES = $(appman_DATA)
|
||||||
|
|
||||||
SED = sed
|
SED = sed
|
||||||
|
|
||||||
# Strings to replace in man pages
|
# Strings to replace in man pages
|
||||||
XORGRELSTRING = @PACKAGE_STRING@
|
XORGRELSTRING = @PACKAGE_STRING@
|
||||||
XORGMANNAME = X Version 11
|
XORGMANNAME = X Version 11
|
||||||
|
|
||||||
MAN_SUBSTS = \
|
MAN_SUBSTS = \
|
||||||
-e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
|
-e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
|
||||||
-e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
|
-e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
|
||||||
@@ -176,67 +225,44 @@ MAN_SUBSTS = \
|
|||||||
-e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g' \
|
-e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g' \
|
||||||
-e 's|__cpp__|$(RAWCPP)|g'
|
-e 's|__cpp__|$(RAWCPP)|g'
|
||||||
|
|
||||||
|
|
||||||
SUFFIXES = .$(APP_MAN_SUFFIX) .man
|
SUFFIXES = .$(APP_MAN_SUFFIX) .man
|
||||||
subdir = .
|
|
||||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
|
||||||
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
|
||||||
CONFIG_HEADER = makedepend-config.h
|
|
||||||
CONFIG_CLEAN_FILES =
|
|
||||||
bin_PROGRAMS = makedepend$(EXEEXT)
|
|
||||||
PROGRAMS = $(bin_PROGRAMS)
|
|
||||||
|
|
||||||
am_makedepend_OBJECTS = makedepend-include.$(OBJEXT) \
|
|
||||||
makedepend-main.$(OBJEXT) makedepend-parse.$(OBJEXT) \
|
|
||||||
makedepend-pr.$(OBJEXT) makedepend-cppsetup.$(OBJEXT) \
|
|
||||||
makedepend-ifparser.$(OBJEXT)
|
|
||||||
makedepend_OBJECTS = $(am_makedepend_OBJECTS)
|
|
||||||
makedepend_LDADD = $(LDADD)
|
|
||||||
makedepend_DEPENDENCIES =
|
|
||||||
makedepend_LDFLAGS =
|
|
||||||
|
|
||||||
DEFAULT_INCLUDES = -I. -I$(srcdir) -I.
|
|
||||||
depcomp = $(SHELL) $(top_srcdir)/depcomp
|
|
||||||
am__depfiles_maybe = depfiles
|
|
||||||
@AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/makedepend-cppsetup.Po \
|
|
||||||
@AMDEP_TRUE@ ./$(DEPDIR)/makedepend-ifparser.Po \
|
|
||||||
@AMDEP_TRUE@ ./$(DEPDIR)/makedepend-include.Po \
|
|
||||||
@AMDEP_TRUE@ ./$(DEPDIR)/makedepend-main.Po \
|
|
||||||
@AMDEP_TRUE@ ./$(DEPDIR)/makedepend-parse.Po \
|
|
||||||
@AMDEP_TRUE@ ./$(DEPDIR)/makedepend-pr.Po
|
|
||||||
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
|
|
||||||
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
|
||||||
CCLD = $(CC)
|
|
||||||
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
|
|
||||||
DIST_SOURCES = $(makedepend_SOURCES)
|
|
||||||
DATA = $(appman_DATA)
|
|
||||||
|
|
||||||
DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/configure AUTHORS COPYING \
|
|
||||||
ChangeLog Makefile.am aclocal.m4 compile config.guess \
|
|
||||||
config.sub configure configure.ac depcomp install-sh \
|
|
||||||
makedepend-config.h.in missing mkinstalldirs
|
|
||||||
SOURCES = $(makedepend_SOURCES)
|
|
||||||
|
|
||||||
all: makedepend-config.h
|
all: makedepend-config.h
|
||||||
$(MAKE) $(AM_MAKEFLAGS) all-am
|
$(MAKE) $(AM_MAKEFLAGS) all-am
|
||||||
|
|
||||||
.SUFFIXES:
|
.SUFFIXES:
|
||||||
.SUFFIXES: .$(APP_MAN_SUFFIX) .man .c .o .obj
|
.SUFFIXES: .$(APP_MAN_SUFFIX) .man .c .o .obj
|
||||||
|
am--refresh:
|
||||||
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
|
@:
|
||||||
configure.lineno
|
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
|
||||||
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.ac $(ACLOCAL_M4)
|
@for dep in $?; do \
|
||||||
|
case '$(am__configure_deps)' in \
|
||||||
|
*$$dep*) \
|
||||||
|
echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \
|
||||||
|
cd $(srcdir) && $(AUTOMAKE) --foreign \
|
||||||
|
&& exit 0; \
|
||||||
|
exit 1;; \
|
||||||
|
esac; \
|
||||||
|
done; \
|
||||||
|
echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
|
||||||
cd $(top_srcdir) && \
|
cd $(top_srcdir) && \
|
||||||
$(AUTOMAKE) --foreign Makefile
|
$(AUTOMAKE) --foreign Makefile
|
||||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
.PRECIOUS: Makefile
|
||||||
cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||||
|
@case '$?' in \
|
||||||
|
*config.status*) \
|
||||||
|
echo ' $(SHELL) ./config.status'; \
|
||||||
|
$(SHELL) ./config.status;; \
|
||||||
|
*) \
|
||||||
|
echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
|
||||||
|
cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
|
||||||
|
esac;
|
||||||
|
|
||||||
$(top_builddir)/config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||||
$(SHELL) ./config.status --recheck
|
$(SHELL) ./config.status --recheck
|
||||||
$(srcdir)/configure: $(srcdir)/configure.ac $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
|
|
||||||
cd $(srcdir) && $(AUTOCONF)
|
|
||||||
|
|
||||||
$(ACLOCAL_M4): configure.ac
|
$(top_srcdir)/configure: $(am__configure_deps)
|
||||||
|
cd $(srcdir) && $(AUTOCONF)
|
||||||
|
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
||||||
cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
|
cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
|
||||||
|
|
||||||
makedepend-config.h: stamp-h1
|
makedepend-config.h: stamp-h1
|
||||||
@@ -248,24 +274,23 @@ makedepend-config.h: stamp-h1
|
|||||||
stamp-h1: $(srcdir)/makedepend-config.h.in $(top_builddir)/config.status
|
stamp-h1: $(srcdir)/makedepend-config.h.in $(top_builddir)/config.status
|
||||||
@rm -f stamp-h1
|
@rm -f stamp-h1
|
||||||
cd $(top_builddir) && $(SHELL) ./config.status makedepend-config.h
|
cd $(top_builddir) && $(SHELL) ./config.status makedepend-config.h
|
||||||
|
$(srcdir)/makedepend-config.h.in: $(am__configure_deps)
|
||||||
$(srcdir)/makedepend-config.h.in: $(top_srcdir)/configure.ac $(ACLOCAL_M4)
|
|
||||||
cd $(top_srcdir) && $(AUTOHEADER)
|
cd $(top_srcdir) && $(AUTOHEADER)
|
||||||
touch $(srcdir)/makedepend-config.h.in
|
rm -f stamp-h1
|
||||||
|
touch $@
|
||||||
|
|
||||||
distclean-hdr:
|
distclean-hdr:
|
||||||
-rm -f makedepend-config.h stamp-h1
|
-rm -f makedepend-config.h stamp-h1
|
||||||
binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
|
|
||||||
install-binPROGRAMS: $(bin_PROGRAMS)
|
install-binPROGRAMS: $(bin_PROGRAMS)
|
||||||
@$(NORMAL_INSTALL)
|
@$(NORMAL_INSTALL)
|
||||||
$(mkinstalldirs) $(DESTDIR)$(bindir)
|
test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
|
||||||
@list='$(bin_PROGRAMS)'; for p in $$list; do \
|
@list='$(bin_PROGRAMS)'; for p in $$list; do \
|
||||||
p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
|
p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
|
||||||
if test -f $$p \
|
if test -f $$p \
|
||||||
; then \
|
; then \
|
||||||
f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
|
f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
|
||||||
echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f"; \
|
echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
|
||||||
$(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f || exit 1; \
|
$(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
|
||||||
else :; fi; \
|
else :; fi; \
|
||||||
done
|
done
|
||||||
|
|
||||||
@@ -273,8 +298,8 @@ uninstall-binPROGRAMS:
|
|||||||
@$(NORMAL_UNINSTALL)
|
@$(NORMAL_UNINSTALL)
|
||||||
@list='$(bin_PROGRAMS)'; for p in $$list; do \
|
@list='$(bin_PROGRAMS)'; for p in $$list; do \
|
||||||
f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
|
f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
|
||||||
echo " rm -f $(DESTDIR)$(bindir)/$$f"; \
|
echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
|
||||||
rm -f $(DESTDIR)$(bindir)/$$f; \
|
rm -f "$(DESTDIR)$(bindir)/$$f"; \
|
||||||
done
|
done
|
||||||
|
|
||||||
clean-binPROGRAMS:
|
clean-binPROGRAMS:
|
||||||
@@ -284,7 +309,7 @@ makedepend$(EXEEXT): $(makedepend_OBJECTS) $(makedepend_DEPENDENCIES)
|
|||||||
$(LINK) $(makedepend_LDFLAGS) $(makedepend_OBJECTS) $(makedepend_LDADD) $(LIBS)
|
$(LINK) $(makedepend_LDFLAGS) $(makedepend_OBJECTS) $(makedepend_LDADD) $(LIBS)
|
||||||
|
|
||||||
mostlyclean-compile:
|
mostlyclean-compile:
|
||||||
-rm -f *.$(OBJEXT) core *.core
|
-rm -f *.$(OBJEXT)
|
||||||
|
|
||||||
distclean-compile:
|
distclean-compile:
|
||||||
-rm -f *.tab.c
|
-rm -f *.tab.c
|
||||||
@@ -297,186 +322,121 @@ distclean-compile:
|
|||||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/makedepend-pr.Po@am__quote@
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/makedepend-pr.Po@am__quote@
|
||||||
|
|
||||||
.c.o:
|
.c.o:
|
||||||
@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
|
@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
|
||||||
@am__fastdepCC_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \
|
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
|
||||||
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \
|
|
||||||
@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
|
|
||||||
@am__fastdepCC_TRUE@ fi
|
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
@am__fastdepCC_FALSE@ $(COMPILE) -c $<
|
||||||
@am__fastdepCC_FALSE@ $(COMPILE) -c `test -f '$<' || echo '$(srcdir)/'`$<
|
|
||||||
|
|
||||||
.c.obj:
|
.c.obj:
|
||||||
@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
|
@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
|
||||||
@am__fastdepCC_TRUE@ -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`; \
|
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
|
||||||
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \
|
|
||||||
@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
|
|
||||||
@am__fastdepCC_TRUE@ fi
|
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
|
||||||
@am__fastdepCC_FALSE@ $(COMPILE) -c `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`
|
|
||||||
|
|
||||||
makedepend-include.o: include.c
|
makedepend-include.o: include.c
|
||||||
@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(makedepend_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT makedepend-include.o -MD -MP -MF "$(DEPDIR)/makedepend-include.Tpo" \
|
@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(makedepend_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT makedepend-include.o -MD -MP -MF "$(DEPDIR)/makedepend-include.Tpo" -c -o makedepend-include.o `test -f 'include.c' || echo '$(srcdir)/'`include.c; \
|
||||||
@am__fastdepCC_TRUE@ -c -o makedepend-include.o `test -f 'include.c' || echo '$(srcdir)/'`include.c; \
|
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/makedepend-include.Tpo" "$(DEPDIR)/makedepend-include.Po"; else rm -f "$(DEPDIR)/makedepend-include.Tpo"; exit 1; fi
|
||||||
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/makedepend-include.Tpo" "$(DEPDIR)/makedepend-include.Po"; \
|
|
||||||
@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/makedepend-include.Tpo"; exit 1; \
|
|
||||||
@am__fastdepCC_TRUE@ fi
|
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='include.c' object='makedepend-include.o' libtool=no @AMDEPBACKSLASH@
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='include.c' object='makedepend-include.o' libtool=no @AMDEPBACKSLASH@
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/makedepend-include.Po' tmpdepfile='$(DEPDIR)/makedepend-include.TPo' @AMDEPBACKSLASH@
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
|
||||||
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(makedepend_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o makedepend-include.o `test -f 'include.c' || echo '$(srcdir)/'`include.c
|
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(makedepend_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o makedepend-include.o `test -f 'include.c' || echo '$(srcdir)/'`include.c
|
||||||
|
|
||||||
makedepend-include.obj: include.c
|
makedepend-include.obj: include.c
|
||||||
@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(makedepend_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT makedepend-include.obj -MD -MP -MF "$(DEPDIR)/makedepend-include.Tpo" \
|
@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(makedepend_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT makedepend-include.obj -MD -MP -MF "$(DEPDIR)/makedepend-include.Tpo" -c -o makedepend-include.obj `if test -f 'include.c'; then $(CYGPATH_W) 'include.c'; else $(CYGPATH_W) '$(srcdir)/include.c'; fi`; \
|
||||||
@am__fastdepCC_TRUE@ -c -o makedepend-include.obj `if test -f 'include.c'; then $(CYGPATH_W) 'include.c'; else $(CYGPATH_W) '$(srcdir)/include.c'; fi`; \
|
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/makedepend-include.Tpo" "$(DEPDIR)/makedepend-include.Po"; else rm -f "$(DEPDIR)/makedepend-include.Tpo"; exit 1; fi
|
||||||
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/makedepend-include.Tpo" "$(DEPDIR)/makedepend-include.Po"; \
|
|
||||||
@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/makedepend-include.Tpo"; exit 1; \
|
|
||||||
@am__fastdepCC_TRUE@ fi
|
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='include.c' object='makedepend-include.obj' libtool=no @AMDEPBACKSLASH@
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='include.c' object='makedepend-include.obj' libtool=no @AMDEPBACKSLASH@
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/makedepend-include.Po' tmpdepfile='$(DEPDIR)/makedepend-include.TPo' @AMDEPBACKSLASH@
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
|
||||||
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(makedepend_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o makedepend-include.obj `if test -f 'include.c'; then $(CYGPATH_W) 'include.c'; else $(CYGPATH_W) '$(srcdir)/include.c'; fi`
|
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(makedepend_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o makedepend-include.obj `if test -f 'include.c'; then $(CYGPATH_W) 'include.c'; else $(CYGPATH_W) '$(srcdir)/include.c'; fi`
|
||||||
|
|
||||||
makedepend-main.o: main.c
|
makedepend-main.o: main.c
|
||||||
@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(makedepend_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT makedepend-main.o -MD -MP -MF "$(DEPDIR)/makedepend-main.Tpo" \
|
@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(makedepend_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT makedepend-main.o -MD -MP -MF "$(DEPDIR)/makedepend-main.Tpo" -c -o makedepend-main.o `test -f 'main.c' || echo '$(srcdir)/'`main.c; \
|
||||||
@am__fastdepCC_TRUE@ -c -o makedepend-main.o `test -f 'main.c' || echo '$(srcdir)/'`main.c; \
|
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/makedepend-main.Tpo" "$(DEPDIR)/makedepend-main.Po"; else rm -f "$(DEPDIR)/makedepend-main.Tpo"; exit 1; fi
|
||||||
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/makedepend-main.Tpo" "$(DEPDIR)/makedepend-main.Po"; \
|
|
||||||
@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/makedepend-main.Tpo"; exit 1; \
|
|
||||||
@am__fastdepCC_TRUE@ fi
|
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='main.c' object='makedepend-main.o' libtool=no @AMDEPBACKSLASH@
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='main.c' object='makedepend-main.o' libtool=no @AMDEPBACKSLASH@
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/makedepend-main.Po' tmpdepfile='$(DEPDIR)/makedepend-main.TPo' @AMDEPBACKSLASH@
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
|
||||||
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(makedepend_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o makedepend-main.o `test -f 'main.c' || echo '$(srcdir)/'`main.c
|
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(makedepend_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o makedepend-main.o `test -f 'main.c' || echo '$(srcdir)/'`main.c
|
||||||
|
|
||||||
makedepend-main.obj: main.c
|
makedepend-main.obj: main.c
|
||||||
@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(makedepend_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT makedepend-main.obj -MD -MP -MF "$(DEPDIR)/makedepend-main.Tpo" \
|
@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(makedepend_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT makedepend-main.obj -MD -MP -MF "$(DEPDIR)/makedepend-main.Tpo" -c -o makedepend-main.obj `if test -f 'main.c'; then $(CYGPATH_W) 'main.c'; else $(CYGPATH_W) '$(srcdir)/main.c'; fi`; \
|
||||||
@am__fastdepCC_TRUE@ -c -o makedepend-main.obj `if test -f 'main.c'; then $(CYGPATH_W) 'main.c'; else $(CYGPATH_W) '$(srcdir)/main.c'; fi`; \
|
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/makedepend-main.Tpo" "$(DEPDIR)/makedepend-main.Po"; else rm -f "$(DEPDIR)/makedepend-main.Tpo"; exit 1; fi
|
||||||
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/makedepend-main.Tpo" "$(DEPDIR)/makedepend-main.Po"; \
|
|
||||||
@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/makedepend-main.Tpo"; exit 1; \
|
|
||||||
@am__fastdepCC_TRUE@ fi
|
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='main.c' object='makedepend-main.obj' libtool=no @AMDEPBACKSLASH@
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='main.c' object='makedepend-main.obj' libtool=no @AMDEPBACKSLASH@
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/makedepend-main.Po' tmpdepfile='$(DEPDIR)/makedepend-main.TPo' @AMDEPBACKSLASH@
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
|
||||||
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(makedepend_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o makedepend-main.obj `if test -f 'main.c'; then $(CYGPATH_W) 'main.c'; else $(CYGPATH_W) '$(srcdir)/main.c'; fi`
|
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(makedepend_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o makedepend-main.obj `if test -f 'main.c'; then $(CYGPATH_W) 'main.c'; else $(CYGPATH_W) '$(srcdir)/main.c'; fi`
|
||||||
|
|
||||||
makedepend-parse.o: parse.c
|
makedepend-parse.o: parse.c
|
||||||
@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(makedepend_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT makedepend-parse.o -MD -MP -MF "$(DEPDIR)/makedepend-parse.Tpo" \
|
@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(makedepend_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT makedepend-parse.o -MD -MP -MF "$(DEPDIR)/makedepend-parse.Tpo" -c -o makedepend-parse.o `test -f 'parse.c' || echo '$(srcdir)/'`parse.c; \
|
||||||
@am__fastdepCC_TRUE@ -c -o makedepend-parse.o `test -f 'parse.c' || echo '$(srcdir)/'`parse.c; \
|
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/makedepend-parse.Tpo" "$(DEPDIR)/makedepend-parse.Po"; else rm -f "$(DEPDIR)/makedepend-parse.Tpo"; exit 1; fi
|
||||||
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/makedepend-parse.Tpo" "$(DEPDIR)/makedepend-parse.Po"; \
|
|
||||||
@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/makedepend-parse.Tpo"; exit 1; \
|
|
||||||
@am__fastdepCC_TRUE@ fi
|
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='parse.c' object='makedepend-parse.o' libtool=no @AMDEPBACKSLASH@
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='parse.c' object='makedepend-parse.o' libtool=no @AMDEPBACKSLASH@
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/makedepend-parse.Po' tmpdepfile='$(DEPDIR)/makedepend-parse.TPo' @AMDEPBACKSLASH@
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
|
||||||
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(makedepend_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o makedepend-parse.o `test -f 'parse.c' || echo '$(srcdir)/'`parse.c
|
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(makedepend_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o makedepend-parse.o `test -f 'parse.c' || echo '$(srcdir)/'`parse.c
|
||||||
|
|
||||||
makedepend-parse.obj: parse.c
|
makedepend-parse.obj: parse.c
|
||||||
@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(makedepend_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT makedepend-parse.obj -MD -MP -MF "$(DEPDIR)/makedepend-parse.Tpo" \
|
@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(makedepend_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT makedepend-parse.obj -MD -MP -MF "$(DEPDIR)/makedepend-parse.Tpo" -c -o makedepend-parse.obj `if test -f 'parse.c'; then $(CYGPATH_W) 'parse.c'; else $(CYGPATH_W) '$(srcdir)/parse.c'; fi`; \
|
||||||
@am__fastdepCC_TRUE@ -c -o makedepend-parse.obj `if test -f 'parse.c'; then $(CYGPATH_W) 'parse.c'; else $(CYGPATH_W) '$(srcdir)/parse.c'; fi`; \
|
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/makedepend-parse.Tpo" "$(DEPDIR)/makedepend-parse.Po"; else rm -f "$(DEPDIR)/makedepend-parse.Tpo"; exit 1; fi
|
||||||
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/makedepend-parse.Tpo" "$(DEPDIR)/makedepend-parse.Po"; \
|
|
||||||
@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/makedepend-parse.Tpo"; exit 1; \
|
|
||||||
@am__fastdepCC_TRUE@ fi
|
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='parse.c' object='makedepend-parse.obj' libtool=no @AMDEPBACKSLASH@
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='parse.c' object='makedepend-parse.obj' libtool=no @AMDEPBACKSLASH@
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/makedepend-parse.Po' tmpdepfile='$(DEPDIR)/makedepend-parse.TPo' @AMDEPBACKSLASH@
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
|
||||||
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(makedepend_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o makedepend-parse.obj `if test -f 'parse.c'; then $(CYGPATH_W) 'parse.c'; else $(CYGPATH_W) '$(srcdir)/parse.c'; fi`
|
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(makedepend_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o makedepend-parse.obj `if test -f 'parse.c'; then $(CYGPATH_W) 'parse.c'; else $(CYGPATH_W) '$(srcdir)/parse.c'; fi`
|
||||||
|
|
||||||
makedepend-pr.o: pr.c
|
makedepend-pr.o: pr.c
|
||||||
@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(makedepend_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT makedepend-pr.o -MD -MP -MF "$(DEPDIR)/makedepend-pr.Tpo" \
|
@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(makedepend_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT makedepend-pr.o -MD -MP -MF "$(DEPDIR)/makedepend-pr.Tpo" -c -o makedepend-pr.o `test -f 'pr.c' || echo '$(srcdir)/'`pr.c; \
|
||||||
@am__fastdepCC_TRUE@ -c -o makedepend-pr.o `test -f 'pr.c' || echo '$(srcdir)/'`pr.c; \
|
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/makedepend-pr.Tpo" "$(DEPDIR)/makedepend-pr.Po"; else rm -f "$(DEPDIR)/makedepend-pr.Tpo"; exit 1; fi
|
||||||
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/makedepend-pr.Tpo" "$(DEPDIR)/makedepend-pr.Po"; \
|
|
||||||
@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/makedepend-pr.Tpo"; exit 1; \
|
|
||||||
@am__fastdepCC_TRUE@ fi
|
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='pr.c' object='makedepend-pr.o' libtool=no @AMDEPBACKSLASH@
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='pr.c' object='makedepend-pr.o' libtool=no @AMDEPBACKSLASH@
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/makedepend-pr.Po' tmpdepfile='$(DEPDIR)/makedepend-pr.TPo' @AMDEPBACKSLASH@
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
|
||||||
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(makedepend_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o makedepend-pr.o `test -f 'pr.c' || echo '$(srcdir)/'`pr.c
|
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(makedepend_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o makedepend-pr.o `test -f 'pr.c' || echo '$(srcdir)/'`pr.c
|
||||||
|
|
||||||
makedepend-pr.obj: pr.c
|
makedepend-pr.obj: pr.c
|
||||||
@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(makedepend_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT makedepend-pr.obj -MD -MP -MF "$(DEPDIR)/makedepend-pr.Tpo" \
|
@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(makedepend_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT makedepend-pr.obj -MD -MP -MF "$(DEPDIR)/makedepend-pr.Tpo" -c -o makedepend-pr.obj `if test -f 'pr.c'; then $(CYGPATH_W) 'pr.c'; else $(CYGPATH_W) '$(srcdir)/pr.c'; fi`; \
|
||||||
@am__fastdepCC_TRUE@ -c -o makedepend-pr.obj `if test -f 'pr.c'; then $(CYGPATH_W) 'pr.c'; else $(CYGPATH_W) '$(srcdir)/pr.c'; fi`; \
|
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/makedepend-pr.Tpo" "$(DEPDIR)/makedepend-pr.Po"; else rm -f "$(DEPDIR)/makedepend-pr.Tpo"; exit 1; fi
|
||||||
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/makedepend-pr.Tpo" "$(DEPDIR)/makedepend-pr.Po"; \
|
|
||||||
@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/makedepend-pr.Tpo"; exit 1; \
|
|
||||||
@am__fastdepCC_TRUE@ fi
|
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='pr.c' object='makedepend-pr.obj' libtool=no @AMDEPBACKSLASH@
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='pr.c' object='makedepend-pr.obj' libtool=no @AMDEPBACKSLASH@
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/makedepend-pr.Po' tmpdepfile='$(DEPDIR)/makedepend-pr.TPo' @AMDEPBACKSLASH@
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
|
||||||
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(makedepend_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o makedepend-pr.obj `if test -f 'pr.c'; then $(CYGPATH_W) 'pr.c'; else $(CYGPATH_W) '$(srcdir)/pr.c'; fi`
|
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(makedepend_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o makedepend-pr.obj `if test -f 'pr.c'; then $(CYGPATH_W) 'pr.c'; else $(CYGPATH_W) '$(srcdir)/pr.c'; fi`
|
||||||
|
|
||||||
makedepend-cppsetup.o: cppsetup.c
|
makedepend-cppsetup.o: cppsetup.c
|
||||||
@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(makedepend_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT makedepend-cppsetup.o -MD -MP -MF "$(DEPDIR)/makedepend-cppsetup.Tpo" \
|
@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(makedepend_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT makedepend-cppsetup.o -MD -MP -MF "$(DEPDIR)/makedepend-cppsetup.Tpo" -c -o makedepend-cppsetup.o `test -f 'cppsetup.c' || echo '$(srcdir)/'`cppsetup.c; \
|
||||||
@am__fastdepCC_TRUE@ -c -o makedepend-cppsetup.o `test -f 'cppsetup.c' || echo '$(srcdir)/'`cppsetup.c; \
|
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/makedepend-cppsetup.Tpo" "$(DEPDIR)/makedepend-cppsetup.Po"; else rm -f "$(DEPDIR)/makedepend-cppsetup.Tpo"; exit 1; fi
|
||||||
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/makedepend-cppsetup.Tpo" "$(DEPDIR)/makedepend-cppsetup.Po"; \
|
|
||||||
@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/makedepend-cppsetup.Tpo"; exit 1; \
|
|
||||||
@am__fastdepCC_TRUE@ fi
|
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='cppsetup.c' object='makedepend-cppsetup.o' libtool=no @AMDEPBACKSLASH@
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='cppsetup.c' object='makedepend-cppsetup.o' libtool=no @AMDEPBACKSLASH@
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/makedepend-cppsetup.Po' tmpdepfile='$(DEPDIR)/makedepend-cppsetup.TPo' @AMDEPBACKSLASH@
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
|
||||||
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(makedepend_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o makedepend-cppsetup.o `test -f 'cppsetup.c' || echo '$(srcdir)/'`cppsetup.c
|
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(makedepend_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o makedepend-cppsetup.o `test -f 'cppsetup.c' || echo '$(srcdir)/'`cppsetup.c
|
||||||
|
|
||||||
makedepend-cppsetup.obj: cppsetup.c
|
makedepend-cppsetup.obj: cppsetup.c
|
||||||
@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(makedepend_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT makedepend-cppsetup.obj -MD -MP -MF "$(DEPDIR)/makedepend-cppsetup.Tpo" \
|
@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(makedepend_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT makedepend-cppsetup.obj -MD -MP -MF "$(DEPDIR)/makedepend-cppsetup.Tpo" -c -o makedepend-cppsetup.obj `if test -f 'cppsetup.c'; then $(CYGPATH_W) 'cppsetup.c'; else $(CYGPATH_W) '$(srcdir)/cppsetup.c'; fi`; \
|
||||||
@am__fastdepCC_TRUE@ -c -o makedepend-cppsetup.obj `if test -f 'cppsetup.c'; then $(CYGPATH_W) 'cppsetup.c'; else $(CYGPATH_W) '$(srcdir)/cppsetup.c'; fi`; \
|
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/makedepend-cppsetup.Tpo" "$(DEPDIR)/makedepend-cppsetup.Po"; else rm -f "$(DEPDIR)/makedepend-cppsetup.Tpo"; exit 1; fi
|
||||||
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/makedepend-cppsetup.Tpo" "$(DEPDIR)/makedepend-cppsetup.Po"; \
|
|
||||||
@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/makedepend-cppsetup.Tpo"; exit 1; \
|
|
||||||
@am__fastdepCC_TRUE@ fi
|
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='cppsetup.c' object='makedepend-cppsetup.obj' libtool=no @AMDEPBACKSLASH@
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='cppsetup.c' object='makedepend-cppsetup.obj' libtool=no @AMDEPBACKSLASH@
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/makedepend-cppsetup.Po' tmpdepfile='$(DEPDIR)/makedepend-cppsetup.TPo' @AMDEPBACKSLASH@
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
|
||||||
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(makedepend_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o makedepend-cppsetup.obj `if test -f 'cppsetup.c'; then $(CYGPATH_W) 'cppsetup.c'; else $(CYGPATH_W) '$(srcdir)/cppsetup.c'; fi`
|
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(makedepend_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o makedepend-cppsetup.obj `if test -f 'cppsetup.c'; then $(CYGPATH_W) 'cppsetup.c'; else $(CYGPATH_W) '$(srcdir)/cppsetup.c'; fi`
|
||||||
|
|
||||||
makedepend-ifparser.o: ifparser.c
|
makedepend-ifparser.o: ifparser.c
|
||||||
@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(makedepend_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT makedepend-ifparser.o -MD -MP -MF "$(DEPDIR)/makedepend-ifparser.Tpo" \
|
@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(makedepend_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT makedepend-ifparser.o -MD -MP -MF "$(DEPDIR)/makedepend-ifparser.Tpo" -c -o makedepend-ifparser.o `test -f 'ifparser.c' || echo '$(srcdir)/'`ifparser.c; \
|
||||||
@am__fastdepCC_TRUE@ -c -o makedepend-ifparser.o `test -f 'ifparser.c' || echo '$(srcdir)/'`ifparser.c; \
|
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/makedepend-ifparser.Tpo" "$(DEPDIR)/makedepend-ifparser.Po"; else rm -f "$(DEPDIR)/makedepend-ifparser.Tpo"; exit 1; fi
|
||||||
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/makedepend-ifparser.Tpo" "$(DEPDIR)/makedepend-ifparser.Po"; \
|
|
||||||
@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/makedepend-ifparser.Tpo"; exit 1; \
|
|
||||||
@am__fastdepCC_TRUE@ fi
|
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ifparser.c' object='makedepend-ifparser.o' libtool=no @AMDEPBACKSLASH@
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ifparser.c' object='makedepend-ifparser.o' libtool=no @AMDEPBACKSLASH@
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/makedepend-ifparser.Po' tmpdepfile='$(DEPDIR)/makedepend-ifparser.TPo' @AMDEPBACKSLASH@
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
|
||||||
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(makedepend_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o makedepend-ifparser.o `test -f 'ifparser.c' || echo '$(srcdir)/'`ifparser.c
|
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(makedepend_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o makedepend-ifparser.o `test -f 'ifparser.c' || echo '$(srcdir)/'`ifparser.c
|
||||||
|
|
||||||
makedepend-ifparser.obj: ifparser.c
|
makedepend-ifparser.obj: ifparser.c
|
||||||
@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(makedepend_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT makedepend-ifparser.obj -MD -MP -MF "$(DEPDIR)/makedepend-ifparser.Tpo" \
|
@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(makedepend_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT makedepend-ifparser.obj -MD -MP -MF "$(DEPDIR)/makedepend-ifparser.Tpo" -c -o makedepend-ifparser.obj `if test -f 'ifparser.c'; then $(CYGPATH_W) 'ifparser.c'; else $(CYGPATH_W) '$(srcdir)/ifparser.c'; fi`; \
|
||||||
@am__fastdepCC_TRUE@ -c -o makedepend-ifparser.obj `if test -f 'ifparser.c'; then $(CYGPATH_W) 'ifparser.c'; else $(CYGPATH_W) '$(srcdir)/ifparser.c'; fi`; \
|
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/makedepend-ifparser.Tpo" "$(DEPDIR)/makedepend-ifparser.Po"; else rm -f "$(DEPDIR)/makedepend-ifparser.Tpo"; exit 1; fi
|
||||||
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/makedepend-ifparser.Tpo" "$(DEPDIR)/makedepend-ifparser.Po"; \
|
|
||||||
@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/makedepend-ifparser.Tpo"; exit 1; \
|
|
||||||
@am__fastdepCC_TRUE@ fi
|
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ifparser.c' object='makedepend-ifparser.obj' libtool=no @AMDEPBACKSLASH@
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ifparser.c' object='makedepend-ifparser.obj' libtool=no @AMDEPBACKSLASH@
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/makedepend-ifparser.Po' tmpdepfile='$(DEPDIR)/makedepend-ifparser.TPo' @AMDEPBACKSLASH@
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
|
||||||
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(makedepend_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o makedepend-ifparser.obj `if test -f 'ifparser.c'; then $(CYGPATH_W) 'ifparser.c'; else $(CYGPATH_W) '$(srcdir)/ifparser.c'; fi`
|
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(makedepend_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o makedepend-ifparser.obj `if test -f 'ifparser.c'; then $(CYGPATH_W) 'ifparser.c'; else $(CYGPATH_W) '$(srcdir)/ifparser.c'; fi`
|
||||||
uninstall-info-am:
|
uninstall-info-am:
|
||||||
appmanDATA_INSTALL = $(INSTALL_DATA)
|
|
||||||
install-appmanDATA: $(appman_DATA)
|
install-appmanDATA: $(appman_DATA)
|
||||||
@$(NORMAL_INSTALL)
|
@$(NORMAL_INSTALL)
|
||||||
$(mkinstalldirs) $(DESTDIR)$(appmandir)
|
test -z "$(appmandir)" || $(mkdir_p) "$(DESTDIR)$(appmandir)"
|
||||||
@list='$(appman_DATA)'; for p in $$list; do \
|
@list='$(appman_DATA)'; for p in $$list; do \
|
||||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||||
f="`echo $$p | sed -e 's|^.*/||'`"; \
|
f=$(am__strip_dir) \
|
||||||
echo " $(appmanDATA_INSTALL) $$d$$p $(DESTDIR)$(appmandir)/$$f"; \
|
echo " $(appmanDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(appmandir)/$$f'"; \
|
||||||
$(appmanDATA_INSTALL) $$d$$p $(DESTDIR)$(appmandir)/$$f; \
|
$(appmanDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(appmandir)/$$f"; \
|
||||||
done
|
done
|
||||||
|
|
||||||
uninstall-appmanDATA:
|
uninstall-appmanDATA:
|
||||||
@$(NORMAL_UNINSTALL)
|
@$(NORMAL_UNINSTALL)
|
||||||
@list='$(appman_DATA)'; for p in $$list; do \
|
@list='$(appman_DATA)'; for p in $$list; do \
|
||||||
f="`echo $$p | sed -e 's|^.*/||'`"; \
|
f=$(am__strip_dir) \
|
||||||
echo " rm -f $(DESTDIR)$(appmandir)/$$f"; \
|
echo " rm -f '$(DESTDIR)$(appmandir)/$$f'"; \
|
||||||
rm -f $(DESTDIR)$(appmandir)/$$f; \
|
rm -f "$(DESTDIR)$(appmandir)/$$f"; \
|
||||||
done
|
done
|
||||||
|
|
||||||
ETAGS = etags
|
|
||||||
ETAGSFLAGS =
|
|
||||||
|
|
||||||
CTAGS = ctags
|
|
||||||
CTAGSFLAGS =
|
|
||||||
|
|
||||||
tags: TAGS
|
|
||||||
|
|
||||||
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
||||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||||
unique=`for i in $$list; do \
|
unique=`for i in $$list; do \
|
||||||
@@ -485,6 +445,7 @@ ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
|||||||
$(AWK) ' { files[$$0] = 1; } \
|
$(AWK) ' { files[$$0] = 1; } \
|
||||||
END { for (i in files) print i; }'`; \
|
END { for (i in files) print i; }'`; \
|
||||||
mkid -fID $$unique
|
mkid -fID $$unique
|
||||||
|
tags: TAGS
|
||||||
|
|
||||||
TAGS: $(HEADERS) $(SOURCES) makedepend-config.h.in $(TAGS_DEPENDENCIES) \
|
TAGS: $(HEADERS) $(SOURCES) makedepend-config.h.in $(TAGS_DEPENDENCIES) \
|
||||||
$(TAGS_FILES) $(LISP)
|
$(TAGS_FILES) $(LISP)
|
||||||
@@ -496,10 +457,11 @@ TAGS: $(HEADERS) $(SOURCES) makedepend-config.h.in $(TAGS_DEPENDENCIES) \
|
|||||||
done | \
|
done | \
|
||||||
$(AWK) ' { files[$$0] = 1; } \
|
$(AWK) ' { files[$$0] = 1; } \
|
||||||
END { for (i in files) print i; }'`; \
|
END { for (i in files) print i; }'`; \
|
||||||
test -z "$(ETAGS_ARGS)$$tags$$unique" \
|
if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
|
||||||
|| $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
test -n "$$unique" || unique=$$empty_fix; \
|
||||||
$$tags $$unique
|
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||||
|
$$tags $$unique; \
|
||||||
|
fi
|
||||||
ctags: CTAGS
|
ctags: CTAGS
|
||||||
CTAGS: $(HEADERS) $(SOURCES) makedepend-config.h.in $(TAGS_DEPENDENCIES) \
|
CTAGS: $(HEADERS) $(SOURCES) makedepend-config.h.in $(TAGS_DEPENDENCIES) \
|
||||||
$(TAGS_FILES) $(LISP)
|
$(TAGS_FILES) $(LISP)
|
||||||
@@ -522,19 +484,6 @@ GTAGS:
|
|||||||
|
|
||||||
distclean-tags:
|
distclean-tags:
|
||||||
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
|
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
|
||||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
|
||||||
|
|
||||||
top_distdir = .
|
|
||||||
distdir = $(PACKAGE)-$(VERSION)
|
|
||||||
|
|
||||||
am__remove_distdir = \
|
|
||||||
{ test ! -d $(distdir) \
|
|
||||||
|| { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
|
|
||||||
&& rm -fr $(distdir); }; }
|
|
||||||
|
|
||||||
GZIP_ENV = --best
|
|
||||||
distuninstallcheck_listfiles = find . -type f -print
|
|
||||||
distcleancheck_listfiles = find . -type f -print
|
|
||||||
|
|
||||||
distdir: $(DISTFILES)
|
distdir: $(DISTFILES)
|
||||||
$(am__remove_distdir)
|
$(am__remove_distdir)
|
||||||
@@ -550,7 +499,7 @@ distdir: $(DISTFILES)
|
|||||||
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
|
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||||
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
|
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
|
||||||
dir="/$$dir"; \
|
dir="/$$dir"; \
|
||||||
$(mkinstalldirs) "$(distdir)$$dir"; \
|
$(mkdir_p) "$(distdir)$$dir"; \
|
||||||
else \
|
else \
|
||||||
dir=''; \
|
dir=''; \
|
||||||
fi; \
|
fi; \
|
||||||
@@ -571,24 +520,46 @@ distdir: $(DISTFILES)
|
|||||||
! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
|
! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
|
||||||
|| chmod -R a+r $(distdir)
|
|| chmod -R a+r $(distdir)
|
||||||
dist-gzip: distdir
|
dist-gzip: distdir
|
||||||
$(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
|
tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
|
||||||
|
$(am__remove_distdir)
|
||||||
|
dist-bzip2: distdir
|
||||||
|
tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
|
||||||
$(am__remove_distdir)
|
$(am__remove_distdir)
|
||||||
|
|
||||||
dist-bzip2: distdir
|
dist-tarZ: distdir
|
||||||
$(AMTAR) chof - $(distdir) | bzip2 -9 -c >$(distdir).tar.bz2
|
tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
|
||||||
|
$(am__remove_distdir)
|
||||||
|
|
||||||
|
dist-shar: distdir
|
||||||
|
shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
|
||||||
|
$(am__remove_distdir)
|
||||||
|
|
||||||
|
dist-zip: distdir
|
||||||
|
-rm -f $(distdir).zip
|
||||||
|
zip -rq $(distdir).zip $(distdir)
|
||||||
$(am__remove_distdir)
|
$(am__remove_distdir)
|
||||||
|
|
||||||
dist dist-all: distdir
|
dist dist-all: distdir
|
||||||
$(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
|
tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
|
||||||
$(AMTAR) chof - $(distdir) | bzip2 -9 -c >$(distdir).tar.bz2
|
tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
|
||||||
$(am__remove_distdir)
|
$(am__remove_distdir)
|
||||||
|
|
||||||
# This target untars the dist file and tries a VPATH configuration. Then
|
# This target untars the dist file and tries a VPATH configuration. Then
|
||||||
# it guarantees that the distribution is self-contained by making another
|
# it guarantees that the distribution is self-contained by making another
|
||||||
# tarfile.
|
# tarfile.
|
||||||
distcheck: dist
|
distcheck: dist
|
||||||
$(am__remove_distdir)
|
case '$(DIST_ARCHIVES)' in \
|
||||||
GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf -
|
*.tar.gz*) \
|
||||||
|
GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
|
||||||
|
*.tar.bz2*) \
|
||||||
|
bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
|
||||||
|
*.tar.Z*) \
|
||||||
|
uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
|
||||||
|
*.shar.gz*) \
|
||||||
|
GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
|
||||||
|
*.zip*) \
|
||||||
|
unzip $(distdir).zip ;;\
|
||||||
|
esac
|
||||||
chmod -R a-w $(distdir); chmod a+w $(distdir)
|
chmod -R a-w $(distdir); chmod a+w $(distdir)
|
||||||
mkdir $(distdir)/_build
|
mkdir $(distdir)/_build
|
||||||
mkdir $(distdir)/_inst
|
mkdir $(distdir)/_inst
|
||||||
@@ -608,19 +579,20 @@ distcheck: dist
|
|||||||
distuninstallcheck \
|
distuninstallcheck \
|
||||||
&& chmod -R a-w "$$dc_install_base" \
|
&& chmod -R a-w "$$dc_install_base" \
|
||||||
&& ({ \
|
&& ({ \
|
||||||
(cd ../.. && $(mkinstalldirs) "$$dc_destdir") \
|
(cd ../.. && umask 077 && mkdir "$$dc_destdir") \
|
||||||
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
|
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
|
||||||
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
|
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
|
||||||
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
|
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
|
||||||
distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
|
distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
|
||||||
} || { rm -rf "$$dc_destdir"; exit 1; }) \
|
} || { rm -rf "$$dc_destdir"; exit 1; }) \
|
||||||
&& rm -rf "$$dc_destdir" \
|
&& rm -rf "$$dc_destdir" \
|
||||||
&& $(MAKE) $(AM_MAKEFLAGS) dist-gzip \
|
&& $(MAKE) $(AM_MAKEFLAGS) dist \
|
||||||
&& rm -f $(distdir).tar.gz \
|
&& rm -rf $(DIST_ARCHIVES) \
|
||||||
&& $(MAKE) $(AM_MAKEFLAGS) distcleancheck
|
&& $(MAKE) $(AM_MAKEFLAGS) distcleancheck
|
||||||
$(am__remove_distdir)
|
$(am__remove_distdir)
|
||||||
@echo "$(distdir).tar.gz is ready for distribution" | \
|
@(echo "$(distdir) archives ready for distribution: "; \
|
||||||
sed 'h;s/./=/g;p;x;p;x'
|
list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
|
||||||
|
sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
|
||||||
distuninstallcheck:
|
distuninstallcheck:
|
||||||
@cd $(distuninstallcheck_dir) \
|
@cd $(distuninstallcheck_dir) \
|
||||||
&& test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
|
&& test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
|
||||||
@@ -642,9 +614,10 @@ distcleancheck: distclean
|
|||||||
check-am: all-am
|
check-am: all-am
|
||||||
check: check-am
|
check: check-am
|
||||||
all-am: Makefile $(PROGRAMS) $(DATA) makedepend-config.h
|
all-am: Makefile $(PROGRAMS) $(DATA) makedepend-config.h
|
||||||
|
|
||||||
installdirs:
|
installdirs:
|
||||||
$(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(appmandir)
|
for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(appmandir)"; do \
|
||||||
|
test -z "$$dir" || $(mkdir_p) "$$dir"; \
|
||||||
|
done
|
||||||
install: install-am
|
install: install-am
|
||||||
install-exec: install-exec-am
|
install-exec: install-exec-am
|
||||||
install-data: install-data-am
|
install-data: install-data-am
|
||||||
@@ -665,7 +638,7 @@ clean-generic:
|
|||||||
-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
|
-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
|
||||||
|
|
||||||
distclean-generic:
|
distclean-generic:
|
||||||
-rm -f $(CONFIG_CLEAN_FILES)
|
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||||
|
|
||||||
maintainer-clean-generic:
|
maintainer-clean-generic:
|
||||||
@echo "This command is intended for maintainers to use"
|
@echo "This command is intended for maintainers to use"
|
||||||
@@ -678,13 +651,15 @@ distclean: distclean-am
|
|||||||
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
|
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
|
||||||
-rm -rf ./$(DEPDIR)
|
-rm -rf ./$(DEPDIR)
|
||||||
-rm -f Makefile
|
-rm -f Makefile
|
||||||
distclean-am: clean-am distclean-compile distclean-generic distclean-hdr \
|
distclean-am: clean-am distclean-compile distclean-generic \
|
||||||
distclean-tags
|
distclean-hdr distclean-tags
|
||||||
|
|
||||||
dvi: dvi-am
|
dvi: dvi-am
|
||||||
|
|
||||||
dvi-am:
|
dvi-am:
|
||||||
|
|
||||||
|
html: html-am
|
||||||
|
|
||||||
info: info-am
|
info: info-am
|
||||||
|
|
||||||
info-am:
|
info-am:
|
||||||
@@ -721,11 +696,12 @@ ps-am:
|
|||||||
uninstall-am: uninstall-appmanDATA uninstall-binPROGRAMS \
|
uninstall-am: uninstall-appmanDATA uninstall-binPROGRAMS \
|
||||||
uninstall-info-am
|
uninstall-info-am
|
||||||
|
|
||||||
.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
|
.PHONY: CTAGS GTAGS all all-am am--refresh check check-am clean \
|
||||||
clean-generic ctags dist dist-all dist-bzip2 dist-gzip \
|
clean-binPROGRAMS clean-generic ctags dist dist-all dist-bzip2 \
|
||||||
distcheck distclean distclean-compile distclean-generic \
|
dist-gzip dist-shar dist-tarZ dist-zip distcheck distclean \
|
||||||
distclean-hdr distclean-tags distcleancheck distdir \
|
distclean-compile distclean-generic distclean-hdr \
|
||||||
distuninstallcheck dvi dvi-am info info-am install install-am \
|
distclean-tags distcleancheck distdir distuninstallcheck dvi \
|
||||||
|
dvi-am html html-am info info-am install install-am \
|
||||||
install-appmanDATA install-binPROGRAMS install-data \
|
install-appmanDATA install-binPROGRAMS install-data \
|
||||||
install-data-am install-exec install-exec-am install-info \
|
install-data-am install-exec install-exec-am install-info \
|
||||||
install-info-am install-man install-strip installcheck \
|
install-info-am install-man install-strip installcheck \
|
||||||
|
|||||||
1615
util/makedepend/aclocal.m4
vendored
1615
util/makedepend/aclocal.m4
vendored
File diff suppressed because it is too large
Load Diff
@@ -1,8 +1,9 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
|
|
||||||
# Wrapper for compilers which do not understand `-c -o'.
|
# Wrapper for compilers which do not understand `-c -o'.
|
||||||
|
|
||||||
# Copyright 1999, 2000 Free Software Foundation, Inc.
|
scriptversion=2005-05-14.22
|
||||||
|
|
||||||
|
# Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
|
||||||
# Written by Tom Tromey <tromey@cygnus.com>.
|
# Written by Tom Tromey <tromey@cygnus.com>.
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
||||||
@@ -17,83 +18,125 @@
|
|||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
# As a special exception to the GNU General Public License, if you
|
# As a special exception to the GNU General Public License, if you
|
||||||
# distribute this file as part of a program that contains a
|
# distribute this file as part of a program that contains a
|
||||||
# configuration script generated by Autoconf, you may include it under
|
# configuration script generated by Autoconf, you may include it under
|
||||||
# the same distribution terms that you use for the rest of that program.
|
# the same distribution terms that you use for the rest of that program.
|
||||||
|
|
||||||
# Usage:
|
# This file is maintained in Automake, please report
|
||||||
# compile PROGRAM [ARGS]...
|
# bugs to <bug-automake@gnu.org> or send patches to
|
||||||
# `-o FOO.o' is removed from the args passed to the actual compile.
|
# <automake-patches@gnu.org>.
|
||||||
|
|
||||||
prog=$1
|
case $1 in
|
||||||
shift
|
'')
|
||||||
|
echo "$0: No command. Try \`$0 --help' for more information." 1>&2
|
||||||
|
exit 1;
|
||||||
|
;;
|
||||||
|
-h | --h*)
|
||||||
|
cat <<\EOF
|
||||||
|
Usage: compile [--help] [--version] PROGRAM [ARGS]
|
||||||
|
|
||||||
|
Wrapper for compilers which do not understand `-c -o'.
|
||||||
|
Remove `-o dest.o' from ARGS, run PROGRAM with the remaining
|
||||||
|
arguments, and rename the output as expected.
|
||||||
|
|
||||||
|
If you are trying to build a whole package this is not the
|
||||||
|
right script to run: please start by reading the file `INSTALL'.
|
||||||
|
|
||||||
|
Report bugs to <bug-automake@gnu.org>.
|
||||||
|
EOF
|
||||||
|
exit $?
|
||||||
|
;;
|
||||||
|
-v | --v*)
|
||||||
|
echo "compile $scriptversion"
|
||||||
|
exit $?
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
ofile=
|
ofile=
|
||||||
cfile=
|
cfile=
|
||||||
args=
|
eat=
|
||||||
while test $# -gt 0; do
|
|
||||||
case "$1" in
|
for arg
|
||||||
-o)
|
do
|
||||||
# configure might choose to run compile as `compile cc -o foo foo.c'.
|
if test -n "$eat"; then
|
||||||
# So we do something ugly here.
|
eat=
|
||||||
ofile=$2
|
else
|
||||||
shift
|
case $1 in
|
||||||
case "$ofile" in
|
-o)
|
||||||
*.o | *.obj)
|
# configure might choose to run compile as `compile cc -o foo foo.c'.
|
||||||
;;
|
# So we strip `-o arg' only if arg is an object.
|
||||||
*)
|
eat=1
|
||||||
args="$args -o $ofile"
|
case $2 in
|
||||||
ofile=
|
*.o | *.obj)
|
||||||
;;
|
ofile=$2
|
||||||
esac
|
;;
|
||||||
;;
|
*)
|
||||||
*.c)
|
set x "$@" -o "$2"
|
||||||
cfile=$1
|
shift
|
||||||
args="$args $1"
|
;;
|
||||||
;;
|
esac
|
||||||
*)
|
;;
|
||||||
args="$args $1"
|
*.c)
|
||||||
;;
|
cfile=$1
|
||||||
esac
|
set x "$@" "$1"
|
||||||
shift
|
shift
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
set x "$@" "$1"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
shift
|
||||||
done
|
done
|
||||||
|
|
||||||
if test -z "$ofile" || test -z "$cfile"; then
|
if test -z "$ofile" || test -z "$cfile"; then
|
||||||
# If no `-o' option was seen then we might have been invoked from a
|
# If no `-o' option was seen then we might have been invoked from a
|
||||||
# pattern rule where we don't need one. That is ok -- this is a
|
# pattern rule where we don't need one. That is ok -- this is a
|
||||||
# normal compilation that the losing compiler can handle. If no
|
# normal compilation that the losing compiler can handle. If no
|
||||||
# `.c' file was seen then we are probably linking. That is also
|
# `.c' file was seen then we are probably linking. That is also
|
||||||
# ok.
|
# ok.
|
||||||
exec "$prog" $args
|
exec "$@"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Name of file we expect compiler to create.
|
# Name of file we expect compiler to create.
|
||||||
cofile=`echo $cfile | sed -e 's|^.*/||' -e 's/\.c$/.o/'`
|
cofile=`echo "$cfile" | sed -e 's|^.*/||' -e 's/\.c$/.o/'`
|
||||||
|
|
||||||
# Create the lock directory.
|
# Create the lock directory.
|
||||||
# Note: use `[/.-]' here to ensure that we don't use the same name
|
# Note: use `[/.-]' here to ensure that we don't use the same name
|
||||||
# that we are using for the .o file. Also, base the name on the expected
|
# that we are using for the .o file. Also, base the name on the expected
|
||||||
# object file name, since that is what matters with a parallel build.
|
# object file name, since that is what matters with a parallel build.
|
||||||
lockdir=`echo $cofile | sed -e 's|[/.-]|_|g'`.d
|
lockdir=`echo "$cofile" | sed -e 's|[/.-]|_|g'`.d
|
||||||
while true; do
|
while true; do
|
||||||
if mkdir $lockdir > /dev/null 2>&1; then
|
if mkdir "$lockdir" >/dev/null 2>&1; then
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
# FIXME: race condition here if user kills between mkdir and trap.
|
# FIXME: race condition here if user kills between mkdir and trap.
|
||||||
trap "rmdir $lockdir; exit 1" 1 2 15
|
trap "rmdir '$lockdir'; exit 1" 1 2 15
|
||||||
|
|
||||||
# Run the compile.
|
# Run the compile.
|
||||||
"$prog" $args
|
"$@"
|
||||||
status=$?
|
ret=$?
|
||||||
|
|
||||||
if test -f "$cofile"; then
|
if test -f "$cofile"; then
|
||||||
mv "$cofile" "$ofile"
|
mv "$cofile" "$ofile"
|
||||||
|
elif test -f "${cofile}bj"; then
|
||||||
|
mv "${cofile}bj" "$ofile"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rmdir $lockdir
|
rmdir "$lockdir"
|
||||||
exit $status
|
exit $ret
|
||||||
|
|
||||||
|
# Local Variables:
|
||||||
|
# mode: shell-script
|
||||||
|
# sh-indentation: 2
|
||||||
|
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||||
|
# time-stamp-start: "scriptversion="
|
||||||
|
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||||
|
# time-stamp-end: "$"
|
||||||
|
# End:
|
||||||
|
|||||||
614
util/makedepend/config.guess
vendored
614
util/makedepend/config.guess
vendored
File diff suppressed because it is too large
Load Diff
189
util/makedepend/config.sub
vendored
189
util/makedepend/config.sub
vendored
@@ -1,9 +1,9 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# Configuration validation subroutine script.
|
# Configuration validation subroutine script.
|
||||||
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
|
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
|
||||||
# 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
|
# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
|
||||||
|
|
||||||
timestamp='2003-06-18'
|
timestamp='2005-07-08'
|
||||||
|
|
||||||
# This file is (in principle) common to ALL GNU software.
|
# This file is (in principle) common to ALL GNU software.
|
||||||
# The presence of a machine in this file suggests that SOME GNU software
|
# The presence of a machine in this file suggests that SOME GNU software
|
||||||
@@ -21,14 +21,15 @@ timestamp='2003-06-18'
|
|||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 59 Temple Place - Suite 330,
|
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
|
||||||
# Boston, MA 02111-1307, USA.
|
# 02110-1301, USA.
|
||||||
|
#
|
||||||
# As a special exception to the GNU General Public License, if you
|
# As a special exception to the GNU General Public License, if you
|
||||||
# distribute this file as part of a program that contains a
|
# distribute this file as part of a program that contains a
|
||||||
# configuration script generated by Autoconf, you may include it under
|
# configuration script generated by Autoconf, you may include it under
|
||||||
# the same distribution terms that you use for the rest of that program.
|
# the same distribution terms that you use for the rest of that program.
|
||||||
|
|
||||||
|
|
||||||
# Please send patches to <config-patches@gnu.org>. Submit a context
|
# Please send patches to <config-patches@gnu.org>. Submit a context
|
||||||
# diff and a properly formatted ChangeLog entry.
|
# diff and a properly formatted ChangeLog entry.
|
||||||
#
|
#
|
||||||
@@ -70,7 +71,7 @@ Report bugs and patches to <config-patches@gnu.org>."
|
|||||||
version="\
|
version="\
|
||||||
GNU config.sub ($timestamp)
|
GNU config.sub ($timestamp)
|
||||||
|
|
||||||
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
|
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
|
||||||
Free Software Foundation, Inc.
|
Free Software Foundation, Inc.
|
||||||
|
|
||||||
This is free software; see the source for copying conditions. There is NO
|
This is free software; see the source for copying conditions. There is NO
|
||||||
@@ -83,11 +84,11 @@ Try \`$me --help' for more information."
|
|||||||
while test $# -gt 0 ; do
|
while test $# -gt 0 ; do
|
||||||
case $1 in
|
case $1 in
|
||||||
--time-stamp | --time* | -t )
|
--time-stamp | --time* | -t )
|
||||||
echo "$timestamp" ; exit 0 ;;
|
echo "$timestamp" ; exit ;;
|
||||||
--version | -v )
|
--version | -v )
|
||||||
echo "$version" ; exit 0 ;;
|
echo "$version" ; exit ;;
|
||||||
--help | --h* | -h )
|
--help | --h* | -h )
|
||||||
echo "$usage"; exit 0 ;;
|
echo "$usage"; exit ;;
|
||||||
-- ) # Stop option processing
|
-- ) # Stop option processing
|
||||||
shift; break ;;
|
shift; break ;;
|
||||||
- ) # Use stdin as input.
|
- ) # Use stdin as input.
|
||||||
@@ -99,7 +100,7 @@ while test $# -gt 0 ; do
|
|||||||
*local*)
|
*local*)
|
||||||
# First pass through any local machine types.
|
# First pass through any local machine types.
|
||||||
echo $1
|
echo $1
|
||||||
exit 0;;
|
exit ;;
|
||||||
|
|
||||||
* )
|
* )
|
||||||
break ;;
|
break ;;
|
||||||
@@ -118,7 +119,8 @@ esac
|
|||||||
# Here we must recognize all the valid KERNEL-OS combinations.
|
# Here we must recognize all the valid KERNEL-OS combinations.
|
||||||
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
|
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
|
||||||
case $maybe_os in
|
case $maybe_os in
|
||||||
nto-qnx* | linux-gnu* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
|
nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \
|
||||||
|
kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
|
||||||
os=-$maybe_os
|
os=-$maybe_os
|
||||||
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
|
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
|
||||||
;;
|
;;
|
||||||
@@ -144,7 +146,7 @@ case $os in
|
|||||||
-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
|
-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
|
||||||
-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
|
-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
|
||||||
-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
|
-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
|
||||||
-apple | -axis)
|
-apple | -axis | -knuth | -cray)
|
||||||
os=
|
os=
|
||||||
basic_machine=$1
|
basic_machine=$1
|
||||||
;;
|
;;
|
||||||
@@ -228,14 +230,16 @@ case $basic_machine in
|
|||||||
| a29k \
|
| a29k \
|
||||||
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
|
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
|
||||||
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
|
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
|
||||||
|
| am33_2.0 \
|
||||||
| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
|
| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
|
||||||
|
| bfin \
|
||||||
| c4x | clipper \
|
| c4x | clipper \
|
||||||
| d10v | d30v | dlx | dsp16xx \
|
| d10v | d30v | dlx | dsp16xx \
|
||||||
| fr30 | frv \
|
| fr30 | frv \
|
||||||
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
|
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
|
||||||
| i370 | i860 | i960 | ia64 \
|
| i370 | i860 | i960 | ia64 \
|
||||||
| ip2k \
|
| ip2k | iq2000 \
|
||||||
| m32r | m68000 | m68k | m88k | mcore \
|
| m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \
|
||||||
| mips | mipsbe | mipseb | mipsel | mipsle \
|
| mips | mipsbe | mipseb | mipsel | mipsle \
|
||||||
| mips16 \
|
| mips16 \
|
||||||
| mips64 | mips64el \
|
| mips64 | mips64el \
|
||||||
@@ -244,31 +248,37 @@ case $basic_machine in
|
|||||||
| mips64vr4100 | mips64vr4100el \
|
| mips64vr4100 | mips64vr4100el \
|
||||||
| mips64vr4300 | mips64vr4300el \
|
| mips64vr4300 | mips64vr4300el \
|
||||||
| mips64vr5000 | mips64vr5000el \
|
| mips64vr5000 | mips64vr5000el \
|
||||||
|
| mips64vr5900 | mips64vr5900el \
|
||||||
| mipsisa32 | mipsisa32el \
|
| mipsisa32 | mipsisa32el \
|
||||||
| mipsisa32r2 | mipsisa32r2el \
|
| mipsisa32r2 | mipsisa32r2el \
|
||||||
| mipsisa64 | mipsisa64el \
|
| mipsisa64 | mipsisa64el \
|
||||||
|
| mipsisa64r2 | mipsisa64r2el \
|
||||||
| mipsisa64sb1 | mipsisa64sb1el \
|
| mipsisa64sb1 | mipsisa64sb1el \
|
||||||
| mipsisa64sr71k | mipsisa64sr71kel \
|
| mipsisa64sr71k | mipsisa64sr71kel \
|
||||||
| mipstx39 | mipstx39el \
|
| mipstx39 | mipstx39el \
|
||||||
| mn10200 | mn10300 \
|
| mn10200 | mn10300 \
|
||||||
|
| ms1 \
|
||||||
| msp430 \
|
| msp430 \
|
||||||
| ns16k | ns32k \
|
| ns16k | ns32k \
|
||||||
| openrisc | or32 \
|
| or32 \
|
||||||
| pdp10 | pdp11 | pj | pjl \
|
| pdp10 | pdp11 | pj | pjl \
|
||||||
| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
|
| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
|
||||||
| pyramid \
|
| pyramid \
|
||||||
| s390 | s390x \
|
| sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
|
||||||
| sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
|
|
||||||
| sh64 | sh64le \
|
| sh64 | sh64le \
|
||||||
| sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
|
| sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \
|
||||||
|
| sparcv8 | sparcv9 | sparcv9b \
|
||||||
| strongarm \
|
| strongarm \
|
||||||
| tahoe | thumb | tic4x | tic80 | tron \
|
| tahoe | thumb | tic4x | tic80 | tron \
|
||||||
| v850 | v850e \
|
| v850 | v850e \
|
||||||
| we32k \
|
| we32k \
|
||||||
| x86 | xscale | xstormy16 | xtensa \
|
| x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
|
||||||
| z8k)
|
| z8k)
|
||||||
basic_machine=$basic_machine-unknown
|
basic_machine=$basic_machine-unknown
|
||||||
;;
|
;;
|
||||||
|
m32c)
|
||||||
|
basic_machine=$basic_machine-unknown
|
||||||
|
;;
|
||||||
m6811 | m68hc11 | m6812 | m68hc12)
|
m6811 | m68hc11 | m6812 | m68hc12)
|
||||||
# Motorola 68HC11/12.
|
# Motorola 68HC11/12.
|
||||||
basic_machine=$basic_machine-unknown
|
basic_machine=$basic_machine-unknown
|
||||||
@@ -296,19 +306,19 @@ case $basic_machine in
|
|||||||
| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
|
| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
|
||||||
| arm-* | armbe-* | armle-* | armeb-* | armv*-* \
|
| arm-* | armbe-* | armle-* | armeb-* | armv*-* \
|
||||||
| avr-* \
|
| avr-* \
|
||||||
| bs2000-* \
|
| bfin-* | bs2000-* \
|
||||||
| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
|
| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
|
||||||
| clipper-* | cydra-* \
|
| clipper-* | craynv-* | cydra-* \
|
||||||
| d10v-* | d30v-* | dlx-* \
|
| d10v-* | d30v-* | dlx-* \
|
||||||
| elxsi-* \
|
| elxsi-* \
|
||||||
| f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
|
| f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
|
||||||
| h8300-* | h8500-* \
|
| h8300-* | h8500-* \
|
||||||
| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
|
| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
|
||||||
| i*86-* | i860-* | i960-* | ia64-* \
|
| i*86-* | i860-* | i960-* | ia64-* \
|
||||||
| ip2k-* \
|
| ip2k-* | iq2000-* \
|
||||||
| m32r-* \
|
| m32r-* | m32rle-* \
|
||||||
| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
|
| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
|
||||||
| m88110-* | m88k-* | mcore-* \
|
| m88110-* | m88k-* | maxq-* | mcore-* \
|
||||||
| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
|
| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
|
||||||
| mips16-* \
|
| mips16-* \
|
||||||
| mips64-* | mips64el-* \
|
| mips64-* | mips64el-* \
|
||||||
@@ -317,34 +327,40 @@ case $basic_machine in
|
|||||||
| mips64vr4100-* | mips64vr4100el-* \
|
| mips64vr4100-* | mips64vr4100el-* \
|
||||||
| mips64vr4300-* | mips64vr4300el-* \
|
| mips64vr4300-* | mips64vr4300el-* \
|
||||||
| mips64vr5000-* | mips64vr5000el-* \
|
| mips64vr5000-* | mips64vr5000el-* \
|
||||||
|
| mips64vr5900-* | mips64vr5900el-* \
|
||||||
| mipsisa32-* | mipsisa32el-* \
|
| mipsisa32-* | mipsisa32el-* \
|
||||||
| mipsisa32r2-* | mipsisa32r2el-* \
|
| mipsisa32r2-* | mipsisa32r2el-* \
|
||||||
| mipsisa64-* | mipsisa64el-* \
|
| mipsisa64-* | mipsisa64el-* \
|
||||||
|
| mipsisa64r2-* | mipsisa64r2el-* \
|
||||||
| mipsisa64sb1-* | mipsisa64sb1el-* \
|
| mipsisa64sb1-* | mipsisa64sb1el-* \
|
||||||
| mipsisa64sr71k-* | mipsisa64sr71kel-* \
|
| mipsisa64sr71k-* | mipsisa64sr71kel-* \
|
||||||
| mipstx39-* | mipstx39el-* \
|
| mipstx39-* | mipstx39el-* \
|
||||||
|
| mmix-* \
|
||||||
|
| ms1-* \
|
||||||
| msp430-* \
|
| msp430-* \
|
||||||
| none-* | np1-* | nv1-* | ns16k-* | ns32k-* \
|
| none-* | np1-* | ns16k-* | ns32k-* \
|
||||||
| orion-* \
|
| orion-* \
|
||||||
| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
|
| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
|
||||||
| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
|
| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
|
||||||
| pyramid-* \
|
| pyramid-* \
|
||||||
| romp-* | rs6000-* \
|
| romp-* | rs6000-* \
|
||||||
| s390-* | s390x-* \
|
| sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | shbe-* \
|
||||||
| sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
|
|
||||||
| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
|
| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
|
||||||
| sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
|
| sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \
|
||||||
| sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
|
| sparclite-* \
|
||||||
|
| sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
|
||||||
| tahoe-* | thumb-* \
|
| tahoe-* | thumb-* \
|
||||||
| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
|
| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
|
||||||
| tron-* \
|
| tron-* \
|
||||||
| v850-* | v850e-* | vax-* \
|
| v850-* | v850e-* | vax-* \
|
||||||
| we32k-* \
|
| we32k-* \
|
||||||
| x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
|
| x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
|
||||||
| xtensa-* \
|
| xstormy16-* | xtensa-* \
|
||||||
| ymp-* \
|
| ymp-* \
|
||||||
| z8k-*)
|
| z8k-*)
|
||||||
;;
|
;;
|
||||||
|
m32c-*)
|
||||||
|
;;
|
||||||
# Recognize the various machine names and aliases which stand
|
# Recognize the various machine names and aliases which stand
|
||||||
# for a CPU type and a company and sometimes even an OS.
|
# for a CPU type and a company and sometimes even an OS.
|
||||||
386bsd)
|
386bsd)
|
||||||
@@ -361,6 +377,9 @@ case $basic_machine in
|
|||||||
basic_machine=a29k-amd
|
basic_machine=a29k-amd
|
||||||
os=-udi
|
os=-udi
|
||||||
;;
|
;;
|
||||||
|
abacus)
|
||||||
|
basic_machine=abacus-unknown
|
||||||
|
;;
|
||||||
adobe68k)
|
adobe68k)
|
||||||
basic_machine=m68010-adobe
|
basic_machine=m68010-adobe
|
||||||
os=-scout
|
os=-scout
|
||||||
@@ -378,6 +397,9 @@ case $basic_machine in
|
|||||||
amd64)
|
amd64)
|
||||||
basic_machine=x86_64-pc
|
basic_machine=x86_64-pc
|
||||||
;;
|
;;
|
||||||
|
amd64-*)
|
||||||
|
basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
|
||||||
|
;;
|
||||||
amdahl)
|
amdahl)
|
||||||
basic_machine=580-amdahl
|
basic_machine=580-amdahl
|
||||||
os=-sysv
|
os=-sysv
|
||||||
@@ -437,12 +459,27 @@ case $basic_machine in
|
|||||||
basic_machine=j90-cray
|
basic_machine=j90-cray
|
||||||
os=-unicos
|
os=-unicos
|
||||||
;;
|
;;
|
||||||
|
craynv)
|
||||||
|
basic_machine=craynv-cray
|
||||||
|
os=-unicosmp
|
||||||
|
;;
|
||||||
|
cr16c)
|
||||||
|
basic_machine=cr16c-unknown
|
||||||
|
os=-elf
|
||||||
|
;;
|
||||||
crds | unos)
|
crds | unos)
|
||||||
basic_machine=m68k-crds
|
basic_machine=m68k-crds
|
||||||
;;
|
;;
|
||||||
|
crisv32 | crisv32-* | etraxfs*)
|
||||||
|
basic_machine=crisv32-axis
|
||||||
|
;;
|
||||||
cris | cris-* | etrax*)
|
cris | cris-* | etrax*)
|
||||||
basic_machine=cris-axis
|
basic_machine=cris-axis
|
||||||
;;
|
;;
|
||||||
|
crx)
|
||||||
|
basic_machine=crx-unknown
|
||||||
|
os=-elf
|
||||||
|
;;
|
||||||
da30 | da30-*)
|
da30 | da30-*)
|
||||||
basic_machine=m68k-da30
|
basic_machine=m68k-da30
|
||||||
;;
|
;;
|
||||||
@@ -465,6 +502,10 @@ case $basic_machine in
|
|||||||
basic_machine=m88k-motorola
|
basic_machine=m88k-motorola
|
||||||
os=-sysv3
|
os=-sysv3
|
||||||
;;
|
;;
|
||||||
|
djgpp)
|
||||||
|
basic_machine=i586-pc
|
||||||
|
os=-msdosdjgpp
|
||||||
|
;;
|
||||||
dpx20 | dpx20-*)
|
dpx20 | dpx20-*)
|
||||||
basic_machine=rs6000-bull
|
basic_machine=rs6000-bull
|
||||||
os=-bosx
|
os=-bosx
|
||||||
@@ -643,10 +684,6 @@ case $basic_machine in
|
|||||||
mips3*)
|
mips3*)
|
||||||
basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
|
basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
|
||||||
;;
|
;;
|
||||||
mmix*)
|
|
||||||
basic_machine=mmix-knuth
|
|
||||||
os=-mmixware
|
|
||||||
;;
|
|
||||||
monitor)
|
monitor)
|
||||||
basic_machine=m68k-rom68k
|
basic_machine=m68k-rom68k
|
||||||
os=-coff
|
os=-coff
|
||||||
@@ -727,10 +764,6 @@ case $basic_machine in
|
|||||||
np1)
|
np1)
|
||||||
basic_machine=np1-gould
|
basic_machine=np1-gould
|
||||||
;;
|
;;
|
||||||
nv1)
|
|
||||||
basic_machine=nv1-cray
|
|
||||||
os=-unicosmp
|
|
||||||
;;
|
|
||||||
nsr-tandem)
|
nsr-tandem)
|
||||||
basic_machine=nsr-tandem
|
basic_machine=nsr-tandem
|
||||||
;;
|
;;
|
||||||
@@ -738,9 +771,12 @@ case $basic_machine in
|
|||||||
basic_machine=hppa1.1-oki
|
basic_machine=hppa1.1-oki
|
||||||
os=-proelf
|
os=-proelf
|
||||||
;;
|
;;
|
||||||
or32 | or32-*)
|
openrisc | openrisc-*)
|
||||||
basic_machine=or32-unknown
|
basic_machine=or32-unknown
|
||||||
os=-coff
|
;;
|
||||||
|
os400)
|
||||||
|
basic_machine=powerpc-ibm
|
||||||
|
os=-os400
|
||||||
;;
|
;;
|
||||||
OSE68000 | ose68000)
|
OSE68000 | ose68000)
|
||||||
basic_machine=m68000-ericsson
|
basic_machine=m68000-ericsson
|
||||||
@@ -833,6 +869,12 @@ case $basic_machine in
|
|||||||
rtpc | rtpc-*)
|
rtpc | rtpc-*)
|
||||||
basic_machine=romp-ibm
|
basic_machine=romp-ibm
|
||||||
;;
|
;;
|
||||||
|
s390 | s390-*)
|
||||||
|
basic_machine=s390-ibm
|
||||||
|
;;
|
||||||
|
s390x | s390x-*)
|
||||||
|
basic_machine=s390x-ibm
|
||||||
|
;;
|
||||||
sa29200)
|
sa29200)
|
||||||
basic_machine=a29k-amd
|
basic_machine=a29k-amd
|
||||||
os=-udi
|
os=-udi
|
||||||
@@ -956,6 +998,10 @@ case $basic_machine in
|
|||||||
tower | tower-32)
|
tower | tower-32)
|
||||||
basic_machine=m68k-ncr
|
basic_machine=m68k-ncr
|
||||||
;;
|
;;
|
||||||
|
tpf)
|
||||||
|
basic_machine=s390x-ibm
|
||||||
|
os=-tpf
|
||||||
|
;;
|
||||||
udi29k)
|
udi29k)
|
||||||
basic_machine=a29k-amd
|
basic_machine=a29k-amd
|
||||||
os=-udi
|
os=-udi
|
||||||
@@ -999,6 +1045,10 @@ case $basic_machine in
|
|||||||
basic_machine=hppa1.1-winbond
|
basic_machine=hppa1.1-winbond
|
||||||
os=-proelf
|
os=-proelf
|
||||||
;;
|
;;
|
||||||
|
xbox)
|
||||||
|
basic_machine=i686-pc
|
||||||
|
os=-mingw32
|
||||||
|
;;
|
||||||
xps | xps100)
|
xps | xps100)
|
||||||
basic_machine=xps100-honeywell
|
basic_machine=xps100-honeywell
|
||||||
;;
|
;;
|
||||||
@@ -1029,6 +1079,9 @@ case $basic_machine in
|
|||||||
romp)
|
romp)
|
||||||
basic_machine=romp-ibm
|
basic_machine=romp-ibm
|
||||||
;;
|
;;
|
||||||
|
mmix)
|
||||||
|
basic_machine=mmix-knuth
|
||||||
|
;;
|
||||||
rs6000)
|
rs6000)
|
||||||
basic_machine=rs6000-ibm
|
basic_machine=rs6000-ibm
|
||||||
;;
|
;;
|
||||||
@@ -1045,13 +1098,10 @@ case $basic_machine in
|
|||||||
we32k)
|
we32k)
|
||||||
basic_machine=we32k-att
|
basic_machine=we32k-att
|
||||||
;;
|
;;
|
||||||
sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
|
sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
|
||||||
basic_machine=sh-unknown
|
basic_machine=sh-unknown
|
||||||
;;
|
;;
|
||||||
sh64)
|
sparc | sparcv8 | sparcv9 | sparcv9b)
|
||||||
basic_machine=sh64-unknown
|
|
||||||
;;
|
|
||||||
sparc | sparcv9 | sparcv9b)
|
|
||||||
basic_machine=sparc-sun
|
basic_machine=sparc-sun
|
||||||
;;
|
;;
|
||||||
cydra)
|
cydra)
|
||||||
@@ -1124,19 +1174,21 @@ case $os in
|
|||||||
| -aos* \
|
| -aos* \
|
||||||
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
|
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
|
||||||
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
|
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
|
||||||
| -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
|
| -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
|
||||||
| -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
|
| -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
|
||||||
|
| -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
|
||||||
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
|
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
|
||||||
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
|
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
|
||||||
| -chorusos* | -chorusrdb* \
|
| -chorusos* | -chorusrdb* \
|
||||||
| -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
|
| -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
|
||||||
| -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
|
| -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
|
||||||
| -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
|
| -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
|
||||||
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
|
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
|
||||||
| -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
|
| -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
|
||||||
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
|
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
|
||||||
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
|
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
|
||||||
| -powermax* | -dnix* | -nx6 | -nx7 | -sei*)
|
| -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
|
||||||
|
| -skyos* | -haiku*)
|
||||||
# Remember, each alternative MUST END IN *, to match a version number.
|
# Remember, each alternative MUST END IN *, to match a version number.
|
||||||
;;
|
;;
|
||||||
-qnx*)
|
-qnx*)
|
||||||
@@ -1154,12 +1206,15 @@ case $os in
|
|||||||
os=`echo $os | sed -e 's|nto|nto-qnx|'`
|
os=`echo $os | sed -e 's|nto|nto-qnx|'`
|
||||||
;;
|
;;
|
||||||
-sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
|
-sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
|
||||||
| -windows* | -osx | -abug | -netware* | -os9* | -beos* \
|
| -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
|
||||||
| -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
|
| -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
|
||||||
;;
|
;;
|
||||||
-mac*)
|
-mac*)
|
||||||
os=`echo $os | sed -e 's|mac|macos|'`
|
os=`echo $os | sed -e 's|mac|macos|'`
|
||||||
;;
|
;;
|
||||||
|
-linux-dietlibc)
|
||||||
|
os=-linux-dietlibc
|
||||||
|
;;
|
||||||
-linux*)
|
-linux*)
|
||||||
os=`echo $os | sed -e 's|linux|linux-gnu|'`
|
os=`echo $os | sed -e 's|linux|linux-gnu|'`
|
||||||
;;
|
;;
|
||||||
@@ -1172,6 +1227,9 @@ case $os in
|
|||||||
-opened*)
|
-opened*)
|
||||||
os=-openedition
|
os=-openedition
|
||||||
;;
|
;;
|
||||||
|
-os400*)
|
||||||
|
os=-os400
|
||||||
|
;;
|
||||||
-wince*)
|
-wince*)
|
||||||
os=-wince
|
os=-wince
|
||||||
;;
|
;;
|
||||||
@@ -1193,6 +1251,9 @@ case $os in
|
|||||||
-atheos*)
|
-atheos*)
|
||||||
os=-atheos
|
os=-atheos
|
||||||
;;
|
;;
|
||||||
|
-syllable*)
|
||||||
|
os=-syllable
|
||||||
|
;;
|
||||||
-386bsd)
|
-386bsd)
|
||||||
os=-bsd
|
os=-bsd
|
||||||
;;
|
;;
|
||||||
@@ -1215,6 +1276,9 @@ case $os in
|
|||||||
-sinix*)
|
-sinix*)
|
||||||
os=-sysv4
|
os=-sysv4
|
||||||
;;
|
;;
|
||||||
|
-tpf*)
|
||||||
|
os=-tpf
|
||||||
|
;;
|
||||||
-triton*)
|
-triton*)
|
||||||
os=-sysv3
|
os=-sysv3
|
||||||
;;
|
;;
|
||||||
@@ -1251,6 +1315,9 @@ case $os in
|
|||||||
-kaos*)
|
-kaos*)
|
||||||
os=-kaos
|
os=-kaos
|
||||||
;;
|
;;
|
||||||
|
-zvmoe)
|
||||||
|
os=-zvmoe
|
||||||
|
;;
|
||||||
-none)
|
-none)
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
@@ -1282,9 +1349,9 @@ case $basic_machine in
|
|||||||
arm*-semi)
|
arm*-semi)
|
||||||
os=-aout
|
os=-aout
|
||||||
;;
|
;;
|
||||||
c4x-* | tic4x-*)
|
c4x-* | tic4x-*)
|
||||||
os=-coff
|
os=-coff
|
||||||
;;
|
;;
|
||||||
# This must come before the *-dec entry.
|
# This must come before the *-dec entry.
|
||||||
pdp10-*)
|
pdp10-*)
|
||||||
os=-tops20
|
os=-tops20
|
||||||
@@ -1328,9 +1395,15 @@ case $basic_machine in
|
|||||||
*-be)
|
*-be)
|
||||||
os=-beos
|
os=-beos
|
||||||
;;
|
;;
|
||||||
|
*-haiku)
|
||||||
|
os=-haiku
|
||||||
|
;;
|
||||||
*-ibm)
|
*-ibm)
|
||||||
os=-aix
|
os=-aix
|
||||||
;;
|
;;
|
||||||
|
*-knuth)
|
||||||
|
os=-mmixware
|
||||||
|
;;
|
||||||
*-wec)
|
*-wec)
|
||||||
os=-proelf
|
os=-proelf
|
||||||
;;
|
;;
|
||||||
@@ -1463,9 +1536,15 @@ case $basic_machine in
|
|||||||
-mvs* | -opened*)
|
-mvs* | -opened*)
|
||||||
vendor=ibm
|
vendor=ibm
|
||||||
;;
|
;;
|
||||||
|
-os400*)
|
||||||
|
vendor=ibm
|
||||||
|
;;
|
||||||
-ptx*)
|
-ptx*)
|
||||||
vendor=sequent
|
vendor=sequent
|
||||||
;;
|
;;
|
||||||
|
-tpf*)
|
||||||
|
vendor=ibm
|
||||||
|
;;
|
||||||
-vxsim* | -vxworks* | -windiss*)
|
-vxsim* | -vxworks* | -windiss*)
|
||||||
vendor=wrs
|
vendor=wrs
|
||||||
;;
|
;;
|
||||||
@@ -1490,7 +1569,7 @@ case $basic_machine in
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
echo $basic_machine$os
|
echo $basic_machine$os
|
||||||
exit 0
|
exit
|
||||||
|
|
||||||
# Local variables:
|
# Local variables:
|
||||||
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||||
|
|||||||
208
util/makedepend/configure
vendored
208
util/makedepend/configure
vendored
@@ -273,7 +273,7 @@ PACKAGE_VERSION='1.0.0'
|
|||||||
PACKAGE_STRING='makedepend 1.0.0'
|
PACKAGE_STRING='makedepend 1.0.0'
|
||||||
PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
|
PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
|
||||||
|
|
||||||
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE PKG_CONFIG ac_pt_PKG_CONFIG X_CFLAGS X_LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os APP_MAN_SUFFIX LIB_MAN_SUFFIX FILE_MAN_SUFFIX MISC_MAN_SUFFIX DRIVER_MAN_SUFFIX ADMIN_MAN_SUFFIX APP_MAN_DIR LIB_MAN_DIR FILE_MAN_DIR MISC_MAN_DIR DRIVER_MAN_DIR ADMIN_MAN_DIR LIBOBJS LTLIBOBJS'
|
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE PKG_CONFIG ac_pt_PKG_CONFIG X_CFLAGS X_LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os APP_MAN_SUFFIX LIB_MAN_SUFFIX FILE_MAN_SUFFIX MISC_MAN_SUFFIX DRIVER_MAN_SUFFIX ADMIN_MAN_SUFFIX APP_MAN_DIR LIB_MAN_DIR FILE_MAN_DIR MISC_MAN_DIR DRIVER_MAN_DIR ADMIN_MAN_DIR LIBOBJS LTLIBOBJS'
|
||||||
ac_subst_files=''
|
ac_subst_files=''
|
||||||
|
|
||||||
# Initialize some variables set by options.
|
# Initialize some variables set by options.
|
||||||
@@ -823,8 +823,8 @@ if test -n "$ac_init_help"; then
|
|||||||
Optional Features:
|
Optional Features:
|
||||||
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
||||||
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
||||||
--disable-dependency-tracking Speeds up one-time builds
|
--disable-dependency-tracking speeds up one-time build
|
||||||
--enable-dependency-tracking Do not reject slow dependency extractors
|
--enable-dependency-tracking do not reject slow dependency extractors
|
||||||
--disable-largefile omit support for large files
|
--disable-largefile omit support for large files
|
||||||
|
|
||||||
Optional Packages:
|
Optional Packages:
|
||||||
@@ -1293,7 +1293,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
am__api_version="1.7"
|
am__api_version="1.9"
|
||||||
ac_aux_dir=
|
ac_aux_dir=
|
||||||
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
||||||
if test -f $ac_dir/install-sh; then
|
if test -f $ac_dir/install-sh; then
|
||||||
@@ -1456,7 +1456,6 @@ _ACEOF
|
|||||||
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
|
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
|
||||||
rm conftest.sed
|
rm conftest.sed
|
||||||
|
|
||||||
|
|
||||||
# expand $ac_aux_dir to an absolute path
|
# expand $ac_aux_dir to an absolute path
|
||||||
am_aux_dir=`cd $ac_aux_dir && pwd`
|
am_aux_dir=`cd $ac_aux_dir && pwd`
|
||||||
|
|
||||||
@@ -1470,6 +1469,39 @@ else
|
|||||||
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
|
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
|
||||||
|
# We used to keeping the `.' as first argument, in order to
|
||||||
|
# allow $(mkdir_p) to be used without argument. As in
|
||||||
|
# $(mkdir_p) $(somedir)
|
||||||
|
# where $(somedir) is conditionally defined. However this is wrong
|
||||||
|
# for two reasons:
|
||||||
|
# 1. if the package is installed by a user who cannot write `.'
|
||||||
|
# make install will fail,
|
||||||
|
# 2. the above comment should most certainly read
|
||||||
|
# $(mkdir_p) $(DESTDIR)$(somedir)
|
||||||
|
# so it does not work when $(somedir) is undefined and
|
||||||
|
# $(DESTDIR) is not.
|
||||||
|
# To support the latter case, we have to write
|
||||||
|
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
|
||||||
|
# so the `.' trick is pointless.
|
||||||
|
mkdir_p='mkdir -p --'
|
||||||
|
else
|
||||||
|
# On NextStep and OpenStep, the `mkdir' command does not
|
||||||
|
# recognize any option. It will interpret all options as
|
||||||
|
# directories to create, and then abort because `.' already
|
||||||
|
# exists.
|
||||||
|
for d in ./-p ./--version;
|
||||||
|
do
|
||||||
|
test -d $d && rmdir $d
|
||||||
|
done
|
||||||
|
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
|
||||||
|
if test -f "$ac_aux_dir/mkinstalldirs"; then
|
||||||
|
mkdir_p='$(mkinstalldirs)'
|
||||||
|
else
|
||||||
|
mkdir_p='$(install_sh) -d'
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
for ac_prog in gawk mawk nawk awk
|
for ac_prog in gawk mawk nawk awk
|
||||||
do
|
do
|
||||||
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
||||||
@@ -1548,7 +1580,7 @@ else
|
|||||||
fi
|
fi
|
||||||
rmdir .tst 2>/dev/null
|
rmdir .tst 2>/dev/null
|
||||||
|
|
||||||
# test to see if srcdir already configured
|
# test to see if srcdir already configured
|
||||||
if test "`cd $srcdir && pwd`" != "`pwd`" &&
|
if test "`cd $srcdir && pwd`" != "`pwd`" &&
|
||||||
test -f $srcdir/config.status; then
|
test -f $srcdir/config.status; then
|
||||||
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
|
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
|
||||||
@@ -1596,9 +1628,6 @@ AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
|
|||||||
|
|
||||||
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
|
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
|
||||||
|
|
||||||
|
|
||||||
AMTAR=${AMTAR-"${am_missing_run}tar"}
|
|
||||||
|
|
||||||
install_sh=${install_sh-"$am_aux_dir/install-sh"}
|
install_sh=${install_sh-"$am_aux_dir/install-sh"}
|
||||||
|
|
||||||
# Installed binaries are usually stripped using `strip' when the user
|
# Installed binaries are usually stripped using `strip' when the user
|
||||||
@@ -1691,6 +1720,13 @@ INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
|
|||||||
|
|
||||||
# We need awk for the "check" target. The system "awk" is bad on
|
# We need awk for the "check" target. The system "awk" is bad on
|
||||||
# some platforms.
|
# some platforms.
|
||||||
|
# Always define AMTAR for backward compatibility.
|
||||||
|
|
||||||
|
AMTAR=${AMTAR-"${am_missing_run}tar"}
|
||||||
|
|
||||||
|
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -2733,7 +2769,9 @@ else
|
|||||||
: > sub/conftest.c
|
: > sub/conftest.c
|
||||||
for i in 1 2 3 4 5 6; do
|
for i in 1 2 3 4 5 6; do
|
||||||
echo '#include "conftst'$i'.h"' >> sub/conftest.c
|
echo '#include "conftst'$i'.h"' >> sub/conftest.c
|
||||||
: > sub/conftst$i.h
|
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
|
||||||
|
# Solaris 8's {/usr,}/bin/sh.
|
||||||
|
touch sub/conftst$i.h
|
||||||
done
|
done
|
||||||
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
|
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
|
||||||
|
|
||||||
@@ -2761,9 +2799,14 @@ else
|
|||||||
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
|
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
|
||||||
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
||||||
# icc doesn't choke on unknown options, it will just issue warnings
|
# icc doesn't choke on unknown options, it will just issue warnings
|
||||||
# (even with -Werror). So we grep stderr for any message
|
# or remarks (even with -Werror). So we grep stderr for any message
|
||||||
# that says an option was ignored.
|
# that says an option was ignored or not supported.
|
||||||
if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
|
# When given -MP, icc 7.0 and 7.1 complain thusly:
|
||||||
|
# icc: Command line warning: ignoring option '-M'; no argument required
|
||||||
|
# The diagnosis changed in icc 8.0:
|
||||||
|
# icc: Command line remark: option '-MP' not supported
|
||||||
|
if (grep 'ignoring option' conftest.err ||
|
||||||
|
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
|
||||||
am_cv_CC_dependencies_compiler_type=$depmode
|
am_cv_CC_dependencies_compiler_type=$depmode
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
@@ -3446,9 +3489,6 @@ echo "$as_me:$LINENO: checking for X" >&5
|
|||||||
echo $ECHO_N "checking for X... $ECHO_C" >&6
|
echo $ECHO_N "checking for X... $ECHO_C" >&6
|
||||||
|
|
||||||
if test -n "$PKG_CONFIG"; then
|
if test -n "$PKG_CONFIG"; then
|
||||||
if test -n "$X_CFLAGS"; then
|
|
||||||
pkg_cv_X_CFLAGS="$X_CFLAGS"
|
|
||||||
else
|
|
||||||
if test -n "$PKG_CONFIG" && \
|
if test -n "$PKG_CONFIG" && \
|
||||||
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto\"") >&5
|
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto\"") >&5
|
||||||
($PKG_CONFIG --exists --print-errors "xproto") 2>&5
|
($PKG_CONFIG --exists --print-errors "xproto") 2>&5
|
||||||
@@ -3459,14 +3499,10 @@ if test -n "$PKG_CONFIG"; then
|
|||||||
else
|
else
|
||||||
pkg_failed=yes
|
pkg_failed=yes
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
else
|
else
|
||||||
pkg_failed=untried
|
pkg_failed=untried
|
||||||
fi
|
fi
|
||||||
if test -n "$PKG_CONFIG"; then
|
if test -n "$PKG_CONFIG"; then
|
||||||
if test -n "$X_LIBS"; then
|
|
||||||
pkg_cv_X_LIBS="$X_LIBS"
|
|
||||||
else
|
|
||||||
if test -n "$PKG_CONFIG" && \
|
if test -n "$PKG_CONFIG" && \
|
||||||
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto\"") >&5
|
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto\"") >&5
|
||||||
($PKG_CONFIG --exists --print-errors "xproto") 2>&5
|
($PKG_CONFIG --exists --print-errors "xproto") 2>&5
|
||||||
@@ -3477,59 +3513,38 @@ if test -n "$PKG_CONFIG"; then
|
|||||||
else
|
else
|
||||||
pkg_failed=yes
|
pkg_failed=yes
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
else
|
else
|
||||||
pkg_failed=untried
|
pkg_failed=untried
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if test $pkg_failed = yes; then
|
if test $pkg_failed = yes; then
|
||||||
|
X_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xproto"`
|
||||||
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
|
|
||||||
_pkg_short_errors_supported=yes
|
|
||||||
else
|
|
||||||
_pkg_short_errors_supported=no
|
|
||||||
fi
|
|
||||||
if test $_pkg_short_errors_supported = yes; then
|
|
||||||
X_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xproto"`
|
|
||||||
else
|
|
||||||
X_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xproto"`
|
|
||||||
fi
|
|
||||||
# Put the nasty error message in config.log where it belongs
|
# Put the nasty error message in config.log where it belongs
|
||||||
echo "$X_PKG_ERRORS" >&5
|
echo "$X_PKG_ERRORS" 1>&5
|
||||||
|
|
||||||
{ { echo "$as_me:$LINENO: error: Package requirements (xproto) were not met:
|
|
||||||
|
|
||||||
$X_PKG_ERRORS
|
|
||||||
|
|
||||||
|
{ { echo "$as_me:$LINENO: error: Package requirements (xproto) were not met.
|
||||||
Consider adjusting the PKG_CONFIG_PATH environment variable if you
|
Consider adjusting the PKG_CONFIG_PATH environment variable if you
|
||||||
installed software in a non-standard prefix.
|
installed software in a non-standard prefix.
|
||||||
|
|
||||||
Alternatively, you may set the environment variables X_CFLAGS
|
Alternatively you may set the X_CFLAGS and X_LIBS environment variables
|
||||||
and X_LIBS to avoid the need to call pkg-config.
|
to avoid the need to call pkg-config. See the pkg-config man page for
|
||||||
See the pkg-config man page for more details.
|
more details." >&5
|
||||||
" >&5
|
echo "$as_me: error: Package requirements (xproto) were not met.
|
||||||
echo "$as_me: error: Package requirements (xproto) were not met:
|
|
||||||
|
|
||||||
$X_PKG_ERRORS
|
|
||||||
|
|
||||||
Consider adjusting the PKG_CONFIG_PATH environment variable if you
|
Consider adjusting the PKG_CONFIG_PATH environment variable if you
|
||||||
installed software in a non-standard prefix.
|
installed software in a non-standard prefix.
|
||||||
|
|
||||||
Alternatively, you may set the environment variables X_CFLAGS
|
Alternatively you may set the X_CFLAGS and X_LIBS environment variables
|
||||||
and X_LIBS to avoid the need to call pkg-config.
|
to avoid the need to call pkg-config. See the pkg-config man page for
|
||||||
See the pkg-config man page for more details.
|
more details." >&2;}
|
||||||
" >&2;}
|
|
||||||
{ (exit 1); exit 1; }; }
|
{ (exit 1); exit 1; }; }
|
||||||
elif test $pkg_failed = untried; then
|
elif test $pkg_failed = untried; then
|
||||||
{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
|
{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
|
||||||
is in your PATH or set the PKG_CONFIG environment variable to the full
|
is in your PATH or set the PKG_CONFIG environment variable to the full
|
||||||
path to pkg-config.
|
path to pkg-config.
|
||||||
|
|
||||||
Alternatively, you may set the environment variables X_CFLAGS
|
Alternatively you may set the X_CFLAGS and X_LIBS environment variables
|
||||||
and X_LIBS to avoid the need to call pkg-config.
|
to avoid the need to call pkg-config. See the pkg-config man page for
|
||||||
See the pkg-config man page for more details.
|
more details.
|
||||||
|
|
||||||
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
|
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
|
||||||
See \`config.log' for more details." >&5
|
See \`config.log' for more details." >&5
|
||||||
@@ -3537,9 +3552,9 @@ echo "$as_me: error: The pkg-config script could not be found or is too old. Ma
|
|||||||
is in your PATH or set the PKG_CONFIG environment variable to the full
|
is in your PATH or set the PKG_CONFIG environment variable to the full
|
||||||
path to pkg-config.
|
path to pkg-config.
|
||||||
|
|
||||||
Alternatively, you may set the environment variables X_CFLAGS
|
Alternatively you may set the X_CFLAGS and X_LIBS environment variables
|
||||||
and X_LIBS to avoid the need to call pkg-config.
|
to avoid the need to call pkg-config. See the pkg-config man page for
|
||||||
See the pkg-config man page for more details.
|
more details.
|
||||||
|
|
||||||
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
|
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
|
||||||
See \`config.log' for more details." >&2;}
|
See \`config.log' for more details." >&2;}
|
||||||
@@ -3611,75 +3626,47 @@ host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|||||||
|
|
||||||
|
|
||||||
if test x$APP_MAN_SUFFIX = x ; then
|
if test x$APP_MAN_SUFFIX = x ; then
|
||||||
case $host_os in
|
APP_MAN_SUFFIX=1
|
||||||
linux*) APP_MAN_SUFFIX=1x ;;
|
|
||||||
*) APP_MAN_SUFFIX=1 ;;
|
|
||||||
esac
|
|
||||||
fi
|
fi
|
||||||
if test x$APP_MAN_DIR = x ; then
|
if test x$APP_MAN_DIR = x ; then
|
||||||
case $host_os in
|
APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
|
||||||
linux*) APP_MAN_DIR='$(mandir)/man1' ;;
|
|
||||||
*) APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' ;;
|
|
||||||
esac
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test x$LIB_MAN_SUFFIX = x ; then
|
if test x$LIB_MAN_SUFFIX = x ; then
|
||||||
case $host_os in
|
LIB_MAN_SUFFIX=3
|
||||||
linux*) LIB_MAN_SUFFIX=3x ;;
|
|
||||||
*) LIB_MAN_SUFFIX=3 ;;
|
|
||||||
esac
|
|
||||||
fi
|
fi
|
||||||
if test x$LIB_MAN_DIR = x ; then
|
if test x$LIB_MAN_DIR = x ; then
|
||||||
case $host_os in
|
LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
|
||||||
linux*) LIB_MAN_DIR='$(mandir)/man3' ;;
|
|
||||||
*) LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' ;;
|
|
||||||
esac
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test x$FILE_MAN_SUFFIX = x ; then
|
if test x$FILE_MAN_SUFFIX = x ; then
|
||||||
case $host_os in
|
case $host_os in
|
||||||
linux*) FILE_MAN_SUFFIX=5x ;;
|
|
||||||
solaris*) FILE_MAN_SUFFIX=4 ;;
|
solaris*) FILE_MAN_SUFFIX=4 ;;
|
||||||
*) FILE_MAN_SUFFIX=5 ;;
|
*) FILE_MAN_SUFFIX=5 ;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
if test x$FILE_MAN_DIR = x ; then
|
if test x$FILE_MAN_DIR = x ; then
|
||||||
case $host_os in
|
FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
|
||||||
linux*) FILE_MAN_DIR='$(mandir)/man5' ;;
|
|
||||||
*) FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' ;;
|
|
||||||
esac
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# In Imake's linux.cf, the misc man suffix & dir was only changed for
|
|
||||||
# LinuxDebian, not other Linuxes, so we leave it unchanged here
|
|
||||||
if test x$MISC_MAN_SUFFIX = x ; then
|
if test x$MISC_MAN_SUFFIX = x ; then
|
||||||
case $host_os in
|
case $host_os in
|
||||||
# linux*) MISC_MAN_SUFFIX=7x ;;
|
|
||||||
solaris*) MISC_MAN_SUFFIX=5 ;;
|
solaris*) MISC_MAN_SUFFIX=5 ;;
|
||||||
*) MISC_MAN_SUFFIX=7 ;;
|
*) MISC_MAN_SUFFIX=7 ;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
if test x$MISC_MAN_DIR = x ; then
|
if test x$MISC_MAN_DIR = x ; then
|
||||||
case $host_os in
|
MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
|
||||||
# linux*) MISC_MAN_DIR='$(mandir)/man7' ;;
|
|
||||||
*) MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' ;;
|
|
||||||
esac
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# In Imake's linux.cf, the driver man suffix & dir was only changed for
|
|
||||||
# LinuxDebian, not other Linuxes, so we leave it unchanged here
|
|
||||||
if test x$DRIVER_MAN_SUFFIX = x ; then
|
if test x$DRIVER_MAN_SUFFIX = x ; then
|
||||||
case $host_os in
|
case $host_os in
|
||||||
# linux*) DRIVER_MAN_SUFFIX=4x ;;
|
|
||||||
solaris*) DRIVER_MAN_SUFFIX=7 ;;
|
solaris*) DRIVER_MAN_SUFFIX=7 ;;
|
||||||
*) DRIVER_MAN_SUFFIX=4 ;;
|
*) DRIVER_MAN_SUFFIX=4 ;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
if test x$DRIVER_MAN_DIR = x ; then
|
if test x$DRIVER_MAN_DIR = x ; then
|
||||||
case $host_os in
|
DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
|
||||||
# linux*) DRIVER_MAN_DIR='$(mandir)/man4' ;;
|
|
||||||
*) DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' ;;
|
|
||||||
esac
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test x$ADMIN_MAN_SUFFIX = x ; then
|
if test x$ADMIN_MAN_SUFFIX = x ; then
|
||||||
@@ -4372,14 +4359,17 @@ s,@AUTOCONF@,$AUTOCONF,;t t
|
|||||||
s,@AUTOMAKE@,$AUTOMAKE,;t t
|
s,@AUTOMAKE@,$AUTOMAKE,;t t
|
||||||
s,@AUTOHEADER@,$AUTOHEADER,;t t
|
s,@AUTOHEADER@,$AUTOHEADER,;t t
|
||||||
s,@MAKEINFO@,$MAKEINFO,;t t
|
s,@MAKEINFO@,$MAKEINFO,;t t
|
||||||
s,@AMTAR@,$AMTAR,;t t
|
|
||||||
s,@install_sh@,$install_sh,;t t
|
s,@install_sh@,$install_sh,;t t
|
||||||
s,@STRIP@,$STRIP,;t t
|
s,@STRIP@,$STRIP,;t t
|
||||||
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
|
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
|
||||||
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
|
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
|
||||||
|
s,@mkdir_p@,$mkdir_p,;t t
|
||||||
s,@AWK@,$AWK,;t t
|
s,@AWK@,$AWK,;t t
|
||||||
s,@SET_MAKE@,$SET_MAKE,;t t
|
s,@SET_MAKE@,$SET_MAKE,;t t
|
||||||
s,@am__leading_dot@,$am__leading_dot,;t t
|
s,@am__leading_dot@,$am__leading_dot,;t t
|
||||||
|
s,@AMTAR@,$AMTAR,;t t
|
||||||
|
s,@am__tar@,$am__tar,;t t
|
||||||
|
s,@am__untar@,$am__untar,;t t
|
||||||
s,@CC@,$CC,;t t
|
s,@CC@,$CC,;t t
|
||||||
s,@CFLAGS@,$CFLAGS,;t t
|
s,@CFLAGS@,$CFLAGS,;t t
|
||||||
s,@LDFLAGS@,$LDFLAGS,;t t
|
s,@LDFLAGS@,$LDFLAGS,;t t
|
||||||
@@ -5044,27 +5034,21 @@ echo X"$mf" |
|
|||||||
else
|
else
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
|
# Extract the definition of DEPDIR, am__include, and am__quote
|
||||||
# Extract the definition of DEP_FILES from the Makefile without
|
# from the Makefile without running `make'.
|
||||||
# running `make'.
|
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
|
||||||
DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
|
|
||||||
test -z "$DEPDIR" && continue
|
test -z "$DEPDIR" && continue
|
||||||
|
am__include=`sed -n 's/^am__include = //p' < "$mf"`
|
||||||
|
test -z "am__include" && continue
|
||||||
|
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
|
||||||
# When using ansi2knr, U may be empty or an underscore; expand it
|
# When using ansi2knr, U may be empty or an underscore; expand it
|
||||||
U=`sed -n -e '/^U = / s///p' < "$mf"`
|
U=`sed -n 's/^U = //p' < "$mf"`
|
||||||
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
|
# Find all dependency output files, they are included files with
|
||||||
# We invoke sed twice because it is the simplest approach to
|
# $(DEPDIR) in their names. We invoke sed twice because it is the
|
||||||
# changing $(DEPDIR) to its actual value in the expansion.
|
# simplest approach to changing $(DEPDIR) to its actual value in the
|
||||||
for file in `sed -n -e '
|
# expansion.
|
||||||
/^DEP_FILES = .*\\\\$/ {
|
for file in `sed -n "
|
||||||
s/^DEP_FILES = //
|
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
|
||||||
:loop
|
|
||||||
s/\\\\$//
|
|
||||||
p
|
|
||||||
n
|
|
||||||
/\\\\$/ b loop
|
|
||||||
p
|
|
||||||
}
|
|
||||||
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
|
|
||||||
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
|
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
|
||||||
# Make sure the directory exists.
|
# Make sure the directory exists.
|
||||||
test -f "$dirpart/$file" && continue
|
test -f "$dirpart/$file" && continue
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
|
|
||||||
# depcomp - compile a program generating dependencies as side-effects
|
# depcomp - compile a program generating dependencies as side-effects
|
||||||
# Copyright 1999, 2000, 2003 Free Software Foundation, Inc.
|
|
||||||
|
scriptversion=2005-07-09.11
|
||||||
|
|
||||||
|
# Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
|
||||||
|
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
@@ -15,8 +17,8 @@
|
|||||||
|
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
# 02111-1307, USA.
|
# 02110-1301, USA.
|
||||||
|
|
||||||
# As a special exception to the GNU General Public License, if you
|
# As a special exception to the GNU General Public License, if you
|
||||||
# distribute this file as part of a program that contains a
|
# distribute this file as part of a program that contains a
|
||||||
@@ -25,22 +27,45 @@
|
|||||||
|
|
||||||
# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
|
# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
|
||||||
|
|
||||||
|
case $1 in
|
||||||
|
'')
|
||||||
|
echo "$0: No command. Try \`$0 --help' for more information." 1>&2
|
||||||
|
exit 1;
|
||||||
|
;;
|
||||||
|
-h | --h*)
|
||||||
|
cat <<\EOF
|
||||||
|
Usage: depcomp [--help] [--version] PROGRAM [ARGS]
|
||||||
|
|
||||||
|
Run PROGRAMS ARGS to compile a file, generating dependencies
|
||||||
|
as side-effects.
|
||||||
|
|
||||||
|
Environment variables:
|
||||||
|
depmode Dependency tracking mode.
|
||||||
|
source Source file read by `PROGRAMS ARGS'.
|
||||||
|
object Object file output by `PROGRAMS ARGS'.
|
||||||
|
DEPDIR directory where to store dependencies.
|
||||||
|
depfile Dependency file to output.
|
||||||
|
tmpdepfile Temporary file to use when outputing dependencies.
|
||||||
|
libtool Whether libtool is used (yes/no).
|
||||||
|
|
||||||
|
Report bugs to <bug-automake@gnu.org>.
|
||||||
|
EOF
|
||||||
|
exit $?
|
||||||
|
;;
|
||||||
|
-v | --v*)
|
||||||
|
echo "depcomp $scriptversion"
|
||||||
|
exit $?
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
if test -z "$depmode" || test -z "$source" || test -z "$object"; then
|
if test -z "$depmode" || test -z "$source" || test -z "$object"; then
|
||||||
echo "depcomp: Variables source, object and depmode must be set" 1>&2
|
echo "depcomp: Variables source, object and depmode must be set" 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
# `libtool' can also be set to `yes' or `no'.
|
|
||||||
|
|
||||||
if test -z "$depfile"; then
|
|
||||||
base=`echo "$object" | sed -e 's,^.*/,,' -e 's,\.\([^.]*\)$,.P\1,'`
|
|
||||||
dir=`echo "$object" | sed 's,/.*$,/,'`
|
|
||||||
if test "$dir" = "$object"; then
|
|
||||||
dir=
|
|
||||||
fi
|
|
||||||
# FIXME: should be _deps on DOS.
|
|
||||||
depfile="$dir.deps/$base"
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
|
||||||
|
depfile=${depfile-`echo "$object" |
|
||||||
|
sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
|
||||||
tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
|
tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
|
||||||
|
|
||||||
rm -f "$tmpdepfile"
|
rm -f "$tmpdepfile"
|
||||||
@@ -262,27 +287,43 @@ tru64)
|
|||||||
base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
|
base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
|
||||||
|
|
||||||
if test "$libtool" = yes; then
|
if test "$libtool" = yes; then
|
||||||
tmpdepfile1="$dir.libs/$base.lo.d"
|
# With Tru64 cc, shared objects can also be used to make a
|
||||||
tmpdepfile2="$dir.libs/$base.d"
|
# static library. This mecanism is used in libtool 1.4 series to
|
||||||
|
# handle both shared and static libraries in a single compilation.
|
||||||
|
# With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
|
||||||
|
#
|
||||||
|
# With libtool 1.5 this exception was removed, and libtool now
|
||||||
|
# generates 2 separate objects for the 2 libraries. These two
|
||||||
|
# compilations output dependencies in in $dir.libs/$base.o.d and
|
||||||
|
# in $dir$base.o.d. We have to check for both files, because
|
||||||
|
# one of the two compilations can be disabled. We should prefer
|
||||||
|
# $dir$base.o.d over $dir.libs/$base.o.d because the latter is
|
||||||
|
# automatically cleaned when .libs/ is deleted, while ignoring
|
||||||
|
# the former would cause a distcleancheck panic.
|
||||||
|
tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
|
||||||
|
tmpdepfile2=$dir$base.o.d # libtool 1.5
|
||||||
|
tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
|
||||||
|
tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
|
||||||
"$@" -Wc,-MD
|
"$@" -Wc,-MD
|
||||||
else
|
else
|
||||||
tmpdepfile1="$dir$base.o.d"
|
tmpdepfile1=$dir$base.o.d
|
||||||
tmpdepfile2="$dir$base.d"
|
tmpdepfile2=$dir$base.d
|
||||||
|
tmpdepfile3=$dir$base.d
|
||||||
|
tmpdepfile4=$dir$base.d
|
||||||
"$@" -MD
|
"$@" -MD
|
||||||
fi
|
fi
|
||||||
|
|
||||||
stat=$?
|
stat=$?
|
||||||
if test $stat -eq 0; then :
|
if test $stat -eq 0; then :
|
||||||
else
|
else
|
||||||
rm -f "$tmpdepfile1" "$tmpdepfile2"
|
rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
|
||||||
exit $stat
|
exit $stat
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test -f "$tmpdepfile1"; then
|
for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
|
||||||
tmpdepfile="$tmpdepfile1"
|
do
|
||||||
else
|
test -f "$tmpdepfile" && break
|
||||||
tmpdepfile="$tmpdepfile2"
|
done
|
||||||
fi
|
|
||||||
if test -f "$tmpdepfile"; then
|
if test -f "$tmpdepfile"; then
|
||||||
sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
|
sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
|
||||||
# That's a tab and a space in the [].
|
# That's a tab and a space in the [].
|
||||||
@@ -426,7 +467,8 @@ cpp)
|
|||||||
done
|
done
|
||||||
|
|
||||||
"$@" -E |
|
"$@" -E |
|
||||||
sed -n '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
|
sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
|
||||||
|
-e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
|
||||||
sed '$ s: \\$::' > "$tmpdepfile"
|
sed '$ s: \\$::' > "$tmpdepfile"
|
||||||
rm -f "$depfile"
|
rm -f "$depfile"
|
||||||
echo "$object : \\" > "$depfile"
|
echo "$object : \\" > "$depfile"
|
||||||
@@ -477,3 +519,12 @@ none)
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
# Local Variables:
|
||||||
|
# mode: shell-script
|
||||||
|
# sh-indentation: 2
|
||||||
|
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||||
|
# time-stamp-start: "scriptversion="
|
||||||
|
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||||
|
# time-stamp-end: "$"
|
||||||
|
# End:
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
|
||||||
# install - install a program, script, or datafile
|
# install - install a program, script, or datafile
|
||||||
#
|
|
||||||
|
scriptversion=2005-05-14.22
|
||||||
|
|
||||||
# This originates from X11R5 (mit/util/scripts/install.sh), which was
|
# This originates from X11R5 (mit/util/scripts/install.sh), which was
|
||||||
# later released in X11R6 (xc/config/util/install.sh) with the
|
# later released in X11R6 (xc/config/util/install.sh) with the
|
||||||
# following copyright and license.
|
# following copyright and license.
|
||||||
@@ -41,13 +42,11 @@
|
|||||||
# from scratch. It can only install one file at a time, a restriction
|
# from scratch. It can only install one file at a time, a restriction
|
||||||
# shared with many OS's install programs.
|
# shared with many OS's install programs.
|
||||||
|
|
||||||
|
|
||||||
# set DOITPROG to echo to test this script
|
# set DOITPROG to echo to test this script
|
||||||
|
|
||||||
# Don't use :- since 4.3BSD and earlier shells don't like it.
|
# Don't use :- since 4.3BSD and earlier shells don't like it.
|
||||||
doit="${DOITPROG-}"
|
doit="${DOITPROG-}"
|
||||||
|
|
||||||
|
|
||||||
# put in absolute paths if you don't have them in your path; or use env. vars.
|
# put in absolute paths if you don't have them in your path; or use env. vars.
|
||||||
|
|
||||||
mvprog="${MVPROG-mv}"
|
mvprog="${MVPROG-mv}"
|
||||||
@@ -59,236 +58,266 @@ stripprog="${STRIPPROG-strip}"
|
|||||||
rmprog="${RMPROG-rm}"
|
rmprog="${RMPROG-rm}"
|
||||||
mkdirprog="${MKDIRPROG-mkdir}"
|
mkdirprog="${MKDIRPROG-mkdir}"
|
||||||
|
|
||||||
transformbasename=""
|
|
||||||
transform_arg=""
|
|
||||||
instcmd="$mvprog"
|
|
||||||
chmodcmd="$chmodprog 0755"
|
chmodcmd="$chmodprog 0755"
|
||||||
chowncmd=""
|
chowncmd=
|
||||||
chgrpcmd=""
|
chgrpcmd=
|
||||||
stripcmd=""
|
stripcmd=
|
||||||
rmcmd="$rmprog -f"
|
rmcmd="$rmprog -f"
|
||||||
mvcmd="$mvprog"
|
mvcmd="$mvprog"
|
||||||
src=""
|
src=
|
||||||
dst=""
|
dst=
|
||||||
dir_arg=""
|
dir_arg=
|
||||||
|
dstarg=
|
||||||
|
no_target_directory=
|
||||||
|
|
||||||
while [ x"$1" != x ]; do
|
usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
|
||||||
case $1 in
|
or: $0 [OPTION]... SRCFILES... DIRECTORY
|
||||||
-c) instcmd=$cpprog
|
or: $0 [OPTION]... -t DIRECTORY SRCFILES...
|
||||||
shift
|
or: $0 [OPTION]... -d DIRECTORIES...
|
||||||
continue;;
|
|
||||||
|
|
||||||
-d) dir_arg=true
|
In the 1st form, copy SRCFILE to DSTFILE.
|
||||||
shift
|
In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
|
||||||
continue;;
|
In the 4th, create DIRECTORIES.
|
||||||
|
|
||||||
-m) chmodcmd="$chmodprog $2"
|
Options:
|
||||||
shift
|
-c (ignored)
|
||||||
shift
|
-d create directories instead of installing files.
|
||||||
continue;;
|
-g GROUP $chgrpprog installed files to GROUP.
|
||||||
|
-m MODE $chmodprog installed files to MODE.
|
||||||
|
-o USER $chownprog installed files to USER.
|
||||||
|
-s $stripprog installed files.
|
||||||
|
-t DIRECTORY install into DIRECTORY.
|
||||||
|
-T report an error if DSTFILE is a directory.
|
||||||
|
--help display this help and exit.
|
||||||
|
--version display version info and exit.
|
||||||
|
|
||||||
-o) chowncmd="$chownprog $2"
|
Environment variables override the default commands:
|
||||||
shift
|
CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG
|
||||||
shift
|
"
|
||||||
continue;;
|
|
||||||
|
|
||||||
-g) chgrpcmd="$chgrpprog $2"
|
while test -n "$1"; do
|
||||||
shift
|
case $1 in
|
||||||
shift
|
-c) shift
|
||||||
continue;;
|
continue;;
|
||||||
|
|
||||||
-s) stripcmd=$stripprog
|
-d) dir_arg=true
|
||||||
shift
|
shift
|
||||||
continue;;
|
continue;;
|
||||||
|
|
||||||
-t=*) transformarg=`echo $1 | sed 's/-t=//'`
|
-g) chgrpcmd="$chgrpprog $2"
|
||||||
shift
|
shift
|
||||||
continue;;
|
shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
-b=*) transformbasename=`echo $1 | sed 's/-b=//'`
|
--help) echo "$usage"; exit $?;;
|
||||||
shift
|
|
||||||
continue;;
|
|
||||||
|
|
||||||
*) if [ x"$src" = x ]
|
-m) chmodcmd="$chmodprog $2"
|
||||||
then
|
shift
|
||||||
src=$1
|
shift
|
||||||
else
|
continue;;
|
||||||
# this colon is to work around a 386BSD /bin/sh bug
|
|
||||||
:
|
|
||||||
dst=$1
|
|
||||||
fi
|
|
||||||
shift
|
|
||||||
continue;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ x"$src" = x ]
|
-o) chowncmd="$chownprog $2"
|
||||||
then
|
shift
|
||||||
echo "$0: no input file specified" >&2
|
shift
|
||||||
exit 1
|
continue;;
|
||||||
else
|
|
||||||
:
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ x"$dir_arg" != x ]; then
|
-s) stripcmd=$stripprog
|
||||||
dst=$src
|
shift
|
||||||
src=""
|
continue;;
|
||||||
|
|
||||||
if [ -d "$dst" ]; then
|
-t) dstarg=$2
|
||||||
instcmd=:
|
|
||||||
chmodcmd=""
|
|
||||||
else
|
|
||||||
instcmd=$mkdirprog
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
|
|
||||||
# Waiting for this to be detected by the "$instcmd $src $dsttmp" command
|
|
||||||
# might cause directories to be created, which would be especially bad
|
|
||||||
# if $src (and thus $dsttmp) contains '*'.
|
|
||||||
|
|
||||||
if [ -f "$src" ] || [ -d "$src" ]
|
|
||||||
then
|
|
||||||
:
|
|
||||||
else
|
|
||||||
echo "$0: $src does not exist" >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ x"$dst" = x ]
|
|
||||||
then
|
|
||||||
echo "$0: no destination specified" >&2
|
|
||||||
exit 1
|
|
||||||
else
|
|
||||||
:
|
|
||||||
fi
|
|
||||||
|
|
||||||
# If destination is a directory, append the input filename; if your system
|
|
||||||
# does not like double slashes in filenames, you may need to add some logic
|
|
||||||
|
|
||||||
if [ -d "$dst" ]
|
|
||||||
then
|
|
||||||
dst=$dst/`basename "$src"`
|
|
||||||
else
|
|
||||||
:
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
## this sed command emulates the dirname command
|
|
||||||
dstdir=`echo "$dst" | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
|
|
||||||
|
|
||||||
# Make sure that the destination directory exists.
|
|
||||||
# this part is taken from Noah Friedman's mkinstalldirs script
|
|
||||||
|
|
||||||
# Skip lots of stat calls in the usual case.
|
|
||||||
if [ ! -d "$dstdir" ]; then
|
|
||||||
defaultIFS='
|
|
||||||
'
|
|
||||||
IFS="${IFS-$defaultIFS}"
|
|
||||||
|
|
||||||
oIFS=$IFS
|
|
||||||
# Some sh's can't handle IFS=/ for some reason.
|
|
||||||
IFS='%'
|
|
||||||
set - `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'`
|
|
||||||
IFS=$oIFS
|
|
||||||
|
|
||||||
pathcomp=''
|
|
||||||
|
|
||||||
while [ $# -ne 0 ] ; do
|
|
||||||
pathcomp=$pathcomp$1
|
|
||||||
shift
|
shift
|
||||||
|
shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
if [ ! -d "$pathcomp" ] ;
|
-T) no_target_directory=true
|
||||||
then
|
shift
|
||||||
$mkdirprog "$pathcomp"
|
continue;;
|
||||||
else
|
|
||||||
:
|
|
||||||
fi
|
|
||||||
|
|
||||||
pathcomp=$pathcomp/
|
--version) echo "$0 $scriptversion"; exit $?;;
|
||||||
|
|
||||||
|
*) # When -d is used, all remaining arguments are directories to create.
|
||||||
|
# When -t is used, the destination is already specified.
|
||||||
|
test -n "$dir_arg$dstarg" && break
|
||||||
|
# Otherwise, the last argument is the destination. Remove it from $@.
|
||||||
|
for arg
|
||||||
|
do
|
||||||
|
if test -n "$dstarg"; then
|
||||||
|
# $@ is not empty: it contains at least $arg.
|
||||||
|
set fnord "$@" "$dstarg"
|
||||||
|
shift # fnord
|
||||||
|
fi
|
||||||
|
shift # arg
|
||||||
|
dstarg=$arg
|
||||||
|
done
|
||||||
|
break;;
|
||||||
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if test -z "$1"; then
|
||||||
|
if test -z "$dir_arg"; then
|
||||||
|
echo "$0: no input file specified." >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
# It's OK to call `install-sh -d' without argument.
|
||||||
|
# This can happen when creating conditional directories.
|
||||||
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ x"$dir_arg" != x ]
|
for src
|
||||||
then
|
do
|
||||||
$doit $instcmd "$dst" &&
|
# Protect names starting with `-'.
|
||||||
|
case $src in
|
||||||
|
-*) src=./$src ;;
|
||||||
|
esac
|
||||||
|
|
||||||
if [ x"$chowncmd" != x ]; then $doit $chowncmd "$dst"; else : ; fi &&
|
if test -n "$dir_arg"; then
|
||||||
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd "$dst"; else : ; fi &&
|
dst=$src
|
||||||
if [ x"$stripcmd" != x ]; then $doit $stripcmd "$dst"; else : ; fi &&
|
src=
|
||||||
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd "$dst"; else : ; fi
|
|
||||||
else
|
|
||||||
|
|
||||||
# If we're going to rename the final executable, determine the name now.
|
if test -d "$dst"; then
|
||||||
|
mkdircmd=:
|
||||||
|
chmodcmd=
|
||||||
|
else
|
||||||
|
mkdircmd=$mkdirprog
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
# Waiting for this to be detected by the "$cpprog $src $dsttmp" command
|
||||||
|
# might cause directories to be created, which would be especially bad
|
||||||
|
# if $src (and thus $dsttmp) contains '*'.
|
||||||
|
if test ! -f "$src" && test ! -d "$src"; then
|
||||||
|
echo "$0: $src does not exist." >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
if [ x"$transformarg" = x ]
|
if test -z "$dstarg"; then
|
||||||
then
|
echo "$0: no destination specified." >&2
|
||||||
dstfile=`basename "$dst"`
|
exit 1
|
||||||
else
|
fi
|
||||||
dstfile=`basename "$dst" $transformbasename |
|
|
||||||
sed $transformarg`$transformbasename
|
|
||||||
fi
|
|
||||||
|
|
||||||
# don't allow the sed command to completely eliminate the filename
|
dst=$dstarg
|
||||||
|
# Protect names starting with `-'.
|
||||||
|
case $dst in
|
||||||
|
-*) dst=./$dst ;;
|
||||||
|
esac
|
||||||
|
|
||||||
if [ x"$dstfile" = x ]
|
# If destination is a directory, append the input filename; won't work
|
||||||
then
|
# if double slashes aren't ignored.
|
||||||
dstfile=`basename "$dst"`
|
if test -d "$dst"; then
|
||||||
else
|
if test -n "$no_target_directory"; then
|
||||||
:
|
echo "$0: $dstarg: Is a directory" >&2
|
||||||
fi
|
exit 1
|
||||||
|
fi
|
||||||
|
dst=$dst/`basename "$src"`
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# Make a couple of temp file names in the proper directory.
|
# This sed command emulates the dirname command.
|
||||||
|
dstdir=`echo "$dst" | sed -e 's,/*$,,;s,[^/]*$,,;s,/*$,,;s,^$,.,'`
|
||||||
|
|
||||||
dsttmp=$dstdir/_inst.$$_
|
# Make sure that the destination directory exists.
|
||||||
rmtmp=$dstdir/_rm.$$_
|
|
||||||
|
|
||||||
# Trap to clean up temp files at exit.
|
# Skip lots of stat calls in the usual case.
|
||||||
|
if test ! -d "$dstdir"; then
|
||||||
|
defaultIFS='
|
||||||
|
'
|
||||||
|
IFS="${IFS-$defaultIFS}"
|
||||||
|
|
||||||
trap 'status=$?; rm -f "$dsttmp" "$rmtmp" && exit $status' 0
|
oIFS=$IFS
|
||||||
trap '(exit $?); exit' 1 2 13 15
|
# Some sh's can't handle IFS=/ for some reason.
|
||||||
|
IFS='%'
|
||||||
|
set x `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'`
|
||||||
|
shift
|
||||||
|
IFS=$oIFS
|
||||||
|
|
||||||
# Move or copy the file name to the temp name
|
pathcomp=
|
||||||
|
|
||||||
$doit $instcmd "$src" "$dsttmp" &&
|
while test $# -ne 0 ; do
|
||||||
|
pathcomp=$pathcomp$1
|
||||||
|
shift
|
||||||
|
if test ! -d "$pathcomp"; then
|
||||||
|
$mkdirprog "$pathcomp"
|
||||||
|
# mkdir can fail with a `File exist' error in case several
|
||||||
|
# install-sh are creating the directory concurrently. This
|
||||||
|
# is OK.
|
||||||
|
test -d "$pathcomp" || exit
|
||||||
|
fi
|
||||||
|
pathcomp=$pathcomp/
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
# and set any options; do chmod last to preserve setuid bits
|
if test -n "$dir_arg"; then
|
||||||
|
$doit $mkdircmd "$dst" \
|
||||||
|
&& { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \
|
||||||
|
&& { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \
|
||||||
|
&& { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \
|
||||||
|
&& { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; }
|
||||||
|
|
||||||
# If any of these fail, we abort the whole thing. If we want to
|
else
|
||||||
# ignore errors from any of these, just make sure not to ignore
|
dstfile=`basename "$dst"`
|
||||||
# errors from the above "$doit $instcmd $src $dsttmp" command.
|
|
||||||
|
|
||||||
if [ x"$chowncmd" != x ]; then $doit $chowncmd "$dsttmp"; else :;fi &&
|
# Make a couple of temp file names in the proper directory.
|
||||||
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd "$dsttmp"; else :;fi &&
|
dsttmp=$dstdir/_inst.$$_
|
||||||
if [ x"$stripcmd" != x ]; then $doit $stripcmd "$dsttmp"; else :;fi &&
|
rmtmp=$dstdir/_rm.$$_
|
||||||
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd "$dsttmp"; else :;fi &&
|
|
||||||
|
|
||||||
# Now remove or move aside any old file at destination location. We try this
|
# Trap to clean up those temp files at exit.
|
||||||
# two ways since rm can't unlink itself on some systems and the destination
|
trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
|
||||||
# file might be busy for other reasons. In this case, the final cleanup
|
trap '(exit $?); exit' 1 2 13 15
|
||||||
# might fail but the new file should still install successfully.
|
|
||||||
|
|
||||||
{
|
# Copy the file name to the temp name.
|
||||||
if [ -f "$dstdir/$dstfile" ]
|
$doit $cpprog "$src" "$dsttmp" &&
|
||||||
then
|
|
||||||
$doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null ||
|
|
||||||
$doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null ||
|
|
||||||
{
|
|
||||||
echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2
|
|
||||||
(exit 1); exit
|
|
||||||
}
|
|
||||||
else
|
|
||||||
:
|
|
||||||
fi
|
|
||||||
} &&
|
|
||||||
|
|
||||||
# Now rename the file to the real destination.
|
# and set any options; do chmod last to preserve setuid bits.
|
||||||
|
#
|
||||||
|
# If any of these fail, we abort the whole thing. If we want to
|
||||||
|
# ignore errors from any of these, just make sure not to ignore
|
||||||
|
# errors from the above "$doit $cpprog $src $dsttmp" command.
|
||||||
|
#
|
||||||
|
{ test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \
|
||||||
|
&& { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \
|
||||||
|
&& { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \
|
||||||
|
&& { test -z "$chmodcmd" || $doit $chmodcmd "$dsttmp"; } &&
|
||||||
|
|
||||||
$doit $mvcmd "$dsttmp" "$dstdir/$dstfile"
|
# Now rename the file to the real destination.
|
||||||
|
{ $doit $mvcmd -f "$dsttmp" "$dstdir/$dstfile" 2>/dev/null \
|
||||||
|
|| {
|
||||||
|
# The rename failed, perhaps because mv can't rename something else
|
||||||
|
# to itself, or perhaps because mv is so ancient that it does not
|
||||||
|
# support -f.
|
||||||
|
|
||||||
fi &&
|
# Now remove or move aside any old file at destination location.
|
||||||
|
# We try this two ways since rm can't unlink itself on some
|
||||||
|
# systems and the destination file might be busy for other
|
||||||
|
# reasons. In this case, the final cleanup might fail but the new
|
||||||
|
# file should still install successfully.
|
||||||
|
{
|
||||||
|
if test -f "$dstdir/$dstfile"; then
|
||||||
|
$doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \
|
||||||
|
|| $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \
|
||||||
|
|| {
|
||||||
|
echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2
|
||||||
|
(exit 1); exit 1
|
||||||
|
}
|
||||||
|
else
|
||||||
|
:
|
||||||
|
fi
|
||||||
|
} &&
|
||||||
|
|
||||||
|
# Now rename the file to the real destination.
|
||||||
|
$doit $mvcmd "$dsttmp" "$dstdir/$dstfile"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
fi || { (exit 1); exit 1; }
|
||||||
|
done
|
||||||
|
|
||||||
# The final little trick to "correctly" pass the exit status to the exit trap.
|
# The final little trick to "correctly" pass the exit status to the exit trap.
|
||||||
|
|
||||||
{
|
{
|
||||||
(exit 0); exit
|
(exit 0); exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Local variables:
|
||||||
|
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||||
|
# time-stamp-start: "scriptversion="
|
||||||
|
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||||
|
# time-stamp-end: "$"
|
||||||
|
# End:
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# Common stub for a few missing GNU programs while installing.
|
# Common stub for a few missing GNU programs while installing.
|
||||||
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003 Free Software Foundation, Inc.
|
|
||||||
|
scriptversion=2005-06-08.21
|
||||||
|
|
||||||
|
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005
|
||||||
|
# Free Software Foundation, Inc.
|
||||||
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
|
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
|
||||||
|
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
||||||
@@ -15,8 +19,8 @@
|
|||||||
|
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
# 02111-1307, USA.
|
# 02110-1301, USA.
|
||||||
|
|
||||||
# As a special exception to the GNU General Public License, if you
|
# As a special exception to the GNU General Public License, if you
|
||||||
# distribute this file as part of a program that contains a
|
# distribute this file as part of a program that contains a
|
||||||
@@ -38,18 +42,24 @@ else
|
|||||||
configure_ac=configure.in
|
configure_ac=configure.in
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
msg="missing on your system"
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
--run)
|
--run)
|
||||||
# Try to run requested program, and just exit if it succeeds.
|
# Try to run requested program, and just exit if it succeeds.
|
||||||
run=
|
run=
|
||||||
shift
|
shift
|
||||||
"$@" && exit 0
|
"$@" && exit 0
|
||||||
|
# Exit code 63 means version mismatch. This often happens
|
||||||
|
# when the user try to use an ancient version of a tool on
|
||||||
|
# a file that requires a minimum version. In this case we
|
||||||
|
# we should proceed has if the program had been absent, or
|
||||||
|
# if --run hadn't been passed.
|
||||||
|
if test $? = 63; then
|
||||||
|
run=:
|
||||||
|
msg="probably too old"
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
|
||||||
|
|
||||||
# If it does not exist, or fails to run (possibly an outdated version),
|
|
||||||
# try to emulate it.
|
|
||||||
case "$1" in
|
|
||||||
|
|
||||||
-h|--h|--he|--hel|--help)
|
-h|--h|--he|--hel|--help)
|
||||||
echo "\
|
echo "\
|
||||||
@@ -74,11 +84,15 @@ Supported PROGRAM values:
|
|||||||
lex create \`lex.yy.c', if possible, from existing .c
|
lex create \`lex.yy.c', if possible, from existing .c
|
||||||
makeinfo touch the output file
|
makeinfo touch the output file
|
||||||
tar try tar, gnutar, gtar, then tar without non-portable flags
|
tar try tar, gnutar, gtar, then tar without non-portable flags
|
||||||
yacc create \`y.tab.[ch]', if possible, from existing .[ch]"
|
yacc create \`y.tab.[ch]', if possible, from existing .[ch]
|
||||||
|
|
||||||
|
Send bug reports to <bug-automake@gnu.org>."
|
||||||
|
exit $?
|
||||||
;;
|
;;
|
||||||
|
|
||||||
-v|--v|--ve|--ver|--vers|--versi|--versio|--version)
|
-v|--v|--ve|--ver|--vers|--versi|--versio|--version)
|
||||||
echo "missing 0.4 - GNU automake"
|
echo "missing $scriptversion (GNU Automake)"
|
||||||
|
exit $?
|
||||||
;;
|
;;
|
||||||
|
|
||||||
-*)
|
-*)
|
||||||
@@ -87,14 +101,44 @@ Supported PROGRAM values:
|
|||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
|
|
||||||
aclocal*)
|
esac
|
||||||
|
|
||||||
|
# Now exit if we have it, but it failed. Also exit now if we
|
||||||
|
# don't have it and --version was passed (most likely to detect
|
||||||
|
# the program).
|
||||||
|
case "$1" in
|
||||||
|
lex|yacc)
|
||||||
|
# Not GNU programs, they don't have --version.
|
||||||
|
;;
|
||||||
|
|
||||||
|
tar)
|
||||||
|
if test -n "$run"; then
|
||||||
|
echo 1>&2 "ERROR: \`tar' requires --run"
|
||||||
|
exit 1
|
||||||
|
elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
|
if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
|
||||||
# We have it, but it failed.
|
# We have it, but it failed.
|
||||||
exit 1
|
exit 1
|
||||||
|
elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
|
||||||
|
# Could not run --version or --help. This is probably someone
|
||||||
|
# running `$TOOL --version' or `$TOOL --help' to check whether
|
||||||
|
# $TOOL exists and not knowing $TOOL uses missing.
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# If it does not exist, or fails to run (possibly an outdated version),
|
||||||
|
# try to emulate it.
|
||||||
|
case "$1" in
|
||||||
|
aclocal*)
|
||||||
echo 1>&2 "\
|
echo 1>&2 "\
|
||||||
WARNING: \`$1' is missing on your system. You should only need it if
|
WARNING: \`$1' is $msg. You should only need it if
|
||||||
you modified \`acinclude.m4' or \`${configure_ac}'. You might want
|
you modified \`acinclude.m4' or \`${configure_ac}'. You might want
|
||||||
to install the \`Automake' and \`Perl' packages. Grab them from
|
to install the \`Automake' and \`Perl' packages. Grab them from
|
||||||
any GNU archive site."
|
any GNU archive site."
|
||||||
@@ -102,13 +146,8 @@ WARNING: \`$1' is missing on your system. You should only need it if
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
autoconf)
|
autoconf)
|
||||||
if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
|
|
||||||
# We have it, but it failed.
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo 1>&2 "\
|
echo 1>&2 "\
|
||||||
WARNING: \`$1' is missing on your system. You should only need it if
|
WARNING: \`$1' is $msg. You should only need it if
|
||||||
you modified \`${configure_ac}'. You might want to install the
|
you modified \`${configure_ac}'. You might want to install the
|
||||||
\`Autoconf' and \`GNU m4' packages. Grab them from any GNU
|
\`Autoconf' and \`GNU m4' packages. Grab them from any GNU
|
||||||
archive site."
|
archive site."
|
||||||
@@ -116,13 +155,8 @@ WARNING: \`$1' is missing on your system. You should only need it if
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
autoheader)
|
autoheader)
|
||||||
if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
|
|
||||||
# We have it, but it failed.
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo 1>&2 "\
|
echo 1>&2 "\
|
||||||
WARNING: \`$1' is missing on your system. You should only need it if
|
WARNING: \`$1' is $msg. You should only need it if
|
||||||
you modified \`acconfig.h' or \`${configure_ac}'. You might want
|
you modified \`acconfig.h' or \`${configure_ac}'. You might want
|
||||||
to install the \`Autoconf' and \`GNU m4' packages. Grab them
|
to install the \`Autoconf' and \`GNU m4' packages. Grab them
|
||||||
from any GNU archive site."
|
from any GNU archive site."
|
||||||
@@ -140,13 +174,8 @@ WARNING: \`$1' is missing on your system. You should only need it if
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
automake*)
|
automake*)
|
||||||
if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
|
|
||||||
# We have it, but it failed.
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo 1>&2 "\
|
echo 1>&2 "\
|
||||||
WARNING: \`$1' is missing on your system. You should only need it if
|
WARNING: \`$1' is $msg. You should only need it if
|
||||||
you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
|
you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
|
||||||
You might want to install the \`Automake' and \`Perl' packages.
|
You might want to install the \`Automake' and \`Perl' packages.
|
||||||
Grab them from any GNU archive site."
|
Grab them from any GNU archive site."
|
||||||
@@ -156,14 +185,9 @@ WARNING: \`$1' is missing on your system. You should only need it if
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
autom4te)
|
autom4te)
|
||||||
if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
|
|
||||||
# We have it, but it failed.
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo 1>&2 "\
|
echo 1>&2 "\
|
||||||
WARNING: \`$1' is needed, and you do not seem to have it handy on your
|
WARNING: \`$1' is needed, but is $msg.
|
||||||
system. You might have modified some files without having the
|
You might have modified some files without having the
|
||||||
proper tools for further handling them.
|
proper tools for further handling them.
|
||||||
You can get \`$1' as part of \`Autoconf' from any GNU
|
You can get \`$1' as part of \`Autoconf' from any GNU
|
||||||
archive site."
|
archive site."
|
||||||
@@ -185,7 +209,7 @@ WARNING: \`$1' is needed, and you do not seem to have it handy on your
|
|||||||
|
|
||||||
bison|yacc)
|
bison|yacc)
|
||||||
echo 1>&2 "\
|
echo 1>&2 "\
|
||||||
WARNING: \`$1' is missing on your system. You should only need it if
|
WARNING: \`$1' $msg. You should only need it if
|
||||||
you modified a \`.y' file. You may need the \`Bison' package
|
you modified a \`.y' file. You may need the \`Bison' package
|
||||||
in order for those modifications to take effect. You can get
|
in order for those modifications to take effect. You can get
|
||||||
\`Bison' from any GNU archive site."
|
\`Bison' from any GNU archive site."
|
||||||
@@ -215,7 +239,7 @@ WARNING: \`$1' is missing on your system. You should only need it if
|
|||||||
|
|
||||||
lex|flex)
|
lex|flex)
|
||||||
echo 1>&2 "\
|
echo 1>&2 "\
|
||||||
WARNING: \`$1' is missing on your system. You should only need it if
|
WARNING: \`$1' is $msg. You should only need it if
|
||||||
you modified a \`.l' file. You may need the \`Flex' package
|
you modified a \`.l' file. You may need the \`Flex' package
|
||||||
in order for those modifications to take effect. You can get
|
in order for those modifications to take effect. You can get
|
||||||
\`Flex' from any GNU archive site."
|
\`Flex' from any GNU archive site."
|
||||||
@@ -237,13 +261,8 @@ WARNING: \`$1' is missing on your system. You should only need it if
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
help2man)
|
help2man)
|
||||||
if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
|
|
||||||
# We have it, but it failed.
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo 1>&2 "\
|
echo 1>&2 "\
|
||||||
WARNING: \`$1' is missing on your system. You should only need it if
|
WARNING: \`$1' is $msg. You should only need it if
|
||||||
you modified a dependency of a manual page. You may need the
|
you modified a dependency of a manual page. You may need the
|
||||||
\`Help2man' package in order for those modifications to take
|
\`Help2man' package in order for those modifications to take
|
||||||
effect. You can get \`Help2man' from any GNU archive site."
|
effect. You can get \`Help2man' from any GNU archive site."
|
||||||
@@ -262,32 +281,30 @@ WARNING: \`$1' is missing on your system. You should only need it if
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
makeinfo)
|
makeinfo)
|
||||||
if test -z "$run" && (makeinfo --version) > /dev/null 2>&1; then
|
|
||||||
# We have makeinfo, but it failed.
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo 1>&2 "\
|
echo 1>&2 "\
|
||||||
WARNING: \`$1' is missing on your system. You should only need it if
|
WARNING: \`$1' is $msg. You should only need it if
|
||||||
you modified a \`.texi' or \`.texinfo' file, or any other file
|
you modified a \`.texi' or \`.texinfo' file, or any other file
|
||||||
indirectly affecting the aspect of the manual. The spurious
|
indirectly affecting the aspect of the manual. The spurious
|
||||||
call might also be the consequence of using a buggy \`make' (AIX,
|
call might also be the consequence of using a buggy \`make' (AIX,
|
||||||
DU, IRIX). You might want to install the \`Texinfo' package or
|
DU, IRIX). You might want to install the \`Texinfo' package or
|
||||||
the \`GNU make' package. Grab either from any GNU archive site."
|
the \`GNU make' package. Grab either from any GNU archive site."
|
||||||
|
# The file to touch is that specified with -o ...
|
||||||
file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
|
file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
|
||||||
if test -z "$file"; then
|
if test -z "$file"; then
|
||||||
file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
|
# ... or it is the one specified with @setfilename ...
|
||||||
file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file`
|
infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
|
||||||
|
file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $infile`
|
||||||
|
# ... or it is derived from the source name (dir/f.texi becomes f.info)
|
||||||
|
test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
|
||||||
fi
|
fi
|
||||||
|
# If the file does not exist, the user really needs makeinfo;
|
||||||
|
# let's fail without touching anything.
|
||||||
|
test -f $file || exit 1
|
||||||
touch $file
|
touch $file
|
||||||
;;
|
;;
|
||||||
|
|
||||||
tar)
|
tar)
|
||||||
shift
|
shift
|
||||||
if test -n "$run"; then
|
|
||||||
echo 1>&2 "ERROR: \`tar' requires --run"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# We have already tried tar in the generic part.
|
# We have already tried tar in the generic part.
|
||||||
# Look for gnutar/gtar before invocation to avoid ugly error
|
# Look for gnutar/gtar before invocation to avoid ugly error
|
||||||
@@ -323,8 +340,8 @@ WARNING: I can't seem to be able to run \`tar' with the given arguments.
|
|||||||
|
|
||||||
*)
|
*)
|
||||||
echo 1>&2 "\
|
echo 1>&2 "\
|
||||||
WARNING: \`$1' is needed, and you do not seem to have it handy on your
|
WARNING: \`$1' is needed, and is $msg.
|
||||||
system. You might have modified some files without having the
|
You might have modified some files without having the
|
||||||
proper tools for further handling them. Check the \`README' file,
|
proper tools for further handling them. Check the \`README' file,
|
||||||
it often tells you about the needed prerequisites for installing
|
it often tells you about the needed prerequisites for installing
|
||||||
this package. You may also peek at any GNU archive site, in case
|
this package. You may also peek at any GNU archive site, in case
|
||||||
@@ -334,3 +351,10 @@ WARNING: \`$1' is needed, and you do not seem to have it handy on your
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
# Local variables:
|
||||||
|
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||||
|
# time-stamp-start: "scriptversion="
|
||||||
|
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||||
|
# time-stamp-end: "$"
|
||||||
|
# End:
|
||||||
|
|||||||
@@ -1,21 +1,33 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# mkinstalldirs --- make directory hierarchy
|
# mkinstalldirs --- make directory hierarchy
|
||||||
# Author: Noah Friedman <friedman@prep.ai.mit.edu>
|
|
||||||
|
scriptversion=2005-06-29.22
|
||||||
|
|
||||||
|
# Original author: Noah Friedman <friedman@prep.ai.mit.edu>
|
||||||
# Created: 1993-05-16
|
# Created: 1993-05-16
|
||||||
# Public domain
|
# Public domain.
|
||||||
|
#
|
||||||
|
# This file is maintained in Automake, please report
|
||||||
|
# bugs to <bug-automake@gnu.org> or send patches to
|
||||||
|
# <automake-patches@gnu.org>.
|
||||||
|
|
||||||
errstatus=0
|
errstatus=0
|
||||||
dirmode=""
|
dirmode=
|
||||||
|
|
||||||
usage="\
|
usage="\
|
||||||
Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..."
|
Usage: mkinstalldirs [-h] [--help] [--version] [-m MODE] DIR ...
|
||||||
|
|
||||||
|
Create each directory DIR (with mode MODE, if specified), including all
|
||||||
|
leading file name components.
|
||||||
|
|
||||||
|
Report bugs to <bug-automake@gnu.org>."
|
||||||
|
|
||||||
# process command line arguments
|
# process command line arguments
|
||||||
while test $# -gt 0 ; do
|
while test $# -gt 0 ; do
|
||||||
case $1 in
|
case $1 in
|
||||||
-h | --help | --h*) # -h for help
|
-h | --help | --h*) # -h for help
|
||||||
echo "$usage" 1>&2
|
echo "$usage"
|
||||||
exit 0
|
exit $?
|
||||||
;;
|
;;
|
||||||
-m) # -m PERM arg
|
-m) # -m PERM arg
|
||||||
shift
|
shift
|
||||||
@@ -23,6 +35,10 @@ while test $# -gt 0 ; do
|
|||||||
dirmode=$1
|
dirmode=$1
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
--version)
|
||||||
|
echo "$0 $scriptversion"
|
||||||
|
exit $?
|
||||||
|
;;
|
||||||
--) # stop option processing
|
--) # stop option processing
|
||||||
shift
|
shift
|
||||||
break
|
break
|
||||||
@@ -50,30 +66,58 @@ case $# in
|
|||||||
0) exit 0 ;;
|
0) exit 0 ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# Solaris 8's mkdir -p isn't thread-safe. If you mkdir -p a/b and
|
||||||
|
# mkdir -p a/c at the same time, both will detect that a is missing,
|
||||||
|
# one will create a, then the other will try to create a and die with
|
||||||
|
# a "File exists" error. This is a problem when calling mkinstalldirs
|
||||||
|
# from a parallel make. We use --version in the probe to restrict
|
||||||
|
# ourselves to GNU mkdir, which is thread-safe.
|
||||||
case $dirmode in
|
case $dirmode in
|
||||||
'')
|
'')
|
||||||
if mkdir -p -- . 2>/dev/null; then
|
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
|
||||||
echo "mkdir -p -- $*"
|
echo "mkdir -p -- $*"
|
||||||
exec mkdir -p -- "$@"
|
exec mkdir -p -- "$@"
|
||||||
|
else
|
||||||
|
# On NextStep and OpenStep, the `mkdir' command does not
|
||||||
|
# recognize any option. It will interpret all options as
|
||||||
|
# directories to create, and then abort because `.' already
|
||||||
|
# exists.
|
||||||
|
test -d ./-p && rmdir ./-p
|
||||||
|
test -d ./--version && rmdir ./--version
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
if mkdir -m "$dirmode" -p -- . 2>/dev/null; then
|
if mkdir -m "$dirmode" -p --version . >/dev/null 2>&1 &&
|
||||||
|
test ! -d ./--version; then
|
||||||
echo "mkdir -m $dirmode -p -- $*"
|
echo "mkdir -m $dirmode -p -- $*"
|
||||||
exec mkdir -m "$dirmode" -p -- "$@"
|
exec mkdir -m "$dirmode" -p -- "$@"
|
||||||
|
else
|
||||||
|
# Clean up after NextStep and OpenStep mkdir.
|
||||||
|
for d in ./-m ./-p ./--version "./$dirmode";
|
||||||
|
do
|
||||||
|
test -d $d && rmdir $d
|
||||||
|
done
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
for file
|
for file
|
||||||
do
|
do
|
||||||
set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
|
case $file in
|
||||||
|
/*) pathcomp=/ ;;
|
||||||
|
*) pathcomp= ;;
|
||||||
|
esac
|
||||||
|
oIFS=$IFS
|
||||||
|
IFS=/
|
||||||
|
set fnord $file
|
||||||
shift
|
shift
|
||||||
|
IFS=$oIFS
|
||||||
|
|
||||||
pathcomp=
|
|
||||||
for d
|
for d
|
||||||
do
|
do
|
||||||
pathcomp="$pathcomp$d"
|
test "x$d" = x && continue
|
||||||
|
|
||||||
|
pathcomp=$pathcomp$d
|
||||||
case $pathcomp in
|
case $pathcomp in
|
||||||
-*) pathcomp=./$pathcomp ;;
|
-*) pathcomp=./$pathcomp ;;
|
||||||
esac
|
esac
|
||||||
@@ -84,21 +128,21 @@ do
|
|||||||
mkdir "$pathcomp" || lasterr=$?
|
mkdir "$pathcomp" || lasterr=$?
|
||||||
|
|
||||||
if test ! -d "$pathcomp"; then
|
if test ! -d "$pathcomp"; then
|
||||||
errstatus=$lasterr
|
errstatus=$lasterr
|
||||||
else
|
else
|
||||||
if test ! -z "$dirmode"; then
|
if test ! -z "$dirmode"; then
|
||||||
echo "chmod $dirmode $pathcomp"
|
echo "chmod $dirmode $pathcomp"
|
||||||
lasterr=""
|
lasterr=
|
||||||
chmod "$dirmode" "$pathcomp" || lasterr=$?
|
chmod "$dirmode" "$pathcomp" || lasterr=$?
|
||||||
|
|
||||||
if test ! -z "$lasterr"; then
|
if test ! -z "$lasterr"; then
|
||||||
errstatus=$lasterr
|
errstatus=$lasterr
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pathcomp="$pathcomp/"
|
pathcomp=$pathcomp/
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
@@ -107,5 +151,8 @@ exit $errstatus
|
|||||||
# Local Variables:
|
# Local Variables:
|
||||||
# mode: shell-script
|
# mode: shell-script
|
||||||
# sh-indentation: 2
|
# sh-indentation: 2
|
||||||
|
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||||
|
# time-stamp-start: "scriptversion="
|
||||||
|
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||||
|
# time-stamp-end: "$"
|
||||||
# End:
|
# End:
|
||||||
# mkinstalldirs ends here
|
|
||||||
|
|||||||
Reference in New Issue
Block a user