Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/llvm/dist/llvm-configure Add slightly cut down ...
details: https://anonhg.NetBSD.org/src/rev/87f34dafd0d1
branches: trunk
changeset: 350418:87f34dafd0d1
user: joerg <joerg%NetBSD.org@localhost>
date: Wed Jan 11 11:19:24 2017 +0000
description:
Add slightly cut down version of the final version of autoconf from
before the removal, updated to match current cmake.
diffstat:
external/bsd/llvm/dist/llvm-configure/autoconf/AutoRegen.sh | 54 +
external/bsd/llvm/dist/llvm-configure/autoconf/ExportMap.map | 7 +
external/bsd/llvm/dist/llvm-configure/autoconf/LICENSE.TXT | 24 +
external/bsd/llvm/dist/llvm-configure/autoconf/README.TXT | 14 +
external/bsd/llvm/dist/llvm-configure/autoconf/aclocal.m4 | 265 +
external/bsd/llvm/dist/llvm-configure/autoconf/config.guess | 1529 +
external/bsd/llvm/dist/llvm-configure/autoconf/config.sub | 1770 +
external/bsd/llvm/dist/llvm-configure/autoconf/configure.ac | 1997 +
external/bsd/llvm/dist/llvm-configure/autoconf/install-sh | 322 +
external/bsd/llvm/dist/llvm-configure/autoconf/m4/build_exeext.m4 | 42 +
external/bsd/llvm/dist/llvm-configure/autoconf/m4/c_printf_a.m4 | 31 +
external/bsd/llvm/dist/llvm-configure/autoconf/m4/check_gnu_make.m4 | 26 +
external/bsd/llvm/dist/llvm-configure/autoconf/m4/config_makefile.m4 | 9 +
external/bsd/llvm/dist/llvm-configure/autoconf/m4/config_project.m4 | 14 +
external/bsd/llvm/dist/llvm-configure/autoconf/m4/cxx_flag_check.m4 | 2 +
external/bsd/llvm/dist/llvm-configure/autoconf/m4/define_subst.m4 | 5 +
external/bsd/llvm/dist/llvm-configure/autoconf/m4/find_std_program.m4 | 118 +
external/bsd/llvm/dist/llvm-configure/autoconf/m4/func_mmap_file.m4 | 26 +
external/bsd/llvm/dist/llvm-configure/autoconf/m4/header_mmap_anonymous.m4 | 21 +
external/bsd/llvm/dist/llvm-configure/autoconf/m4/huge_val.m4 | 18 +
external/bsd/llvm/dist/llvm-configure/autoconf/m4/link_options.m4 | 109 +
external/bsd/llvm/dist/llvm-configure/autoconf/m4/linux_mixed_64_32.m4 | 17 +
external/bsd/llvm/dist/llvm-configure/autoconf/m4/need_dev_zero_for_mmap.m4 | 17 +
external/bsd/llvm/dist/llvm-configure/autoconf/m4/sanity_check.m4 | 31 +
external/bsd/llvm/dist/llvm-configure/autoconf/m4/single_cxx_check.m4 | 16 +
external/bsd/llvm/dist/llvm-configure/autoconf/m4/visibility_inlines_hidden.m4 | 24 +
external/bsd/llvm/dist/llvm-configure/autoconf/missing | 353 +
external/bsd/llvm/dist/llvm-configure/autoconf/mkinstalldirs | 150 +
external/bsd/llvm/dist/llvm-configure/configure | 11652 ++++++++++
external/bsd/llvm/dist/llvm-configure/include/clang/Config/config.h.in | 53 +
external/bsd/llvm/dist/llvm-configure/include/llvm/Config/AsmParsers.def.in | 29 +
external/bsd/llvm/dist/llvm-configure/include/llvm/Config/AsmPrinters.def.in | 29 +
external/bsd/llvm/dist/llvm-configure/include/llvm/Config/Disassemblers.def.in | 29 +
external/bsd/llvm/dist/llvm-configure/include/llvm/Config/Targets.def.in | 28 +
external/bsd/llvm/dist/llvm-configure/include/llvm/Config/abi-breaking.h.in | 41 +
external/bsd/llvm/dist/llvm-configure/include/llvm/Config/config.h.in | 485 +
external/bsd/llvm/dist/llvm-configure/include/llvm/Config/llvm-config.h.in | 83 +
external/bsd/llvm/dist/llvm-configure/include/llvm/Support/DataTypes.h.in | 130 +
external/bsd/llvm/dist/llvm-configure/run-autoconf | 4 +
39 files changed, 19574 insertions(+), 0 deletions(-)
diffs (truncated from 19730 to 300 lines):
diff -r 76e0c138822c -r 87f34dafd0d1 external/bsd/llvm/dist/llvm-configure/autoconf/AutoRegen.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/llvm/dist/llvm-configure/autoconf/AutoRegen.sh Wed Jan 11 11:19:24 2017 +0000
@@ -0,0 +1,54 @@
+#!/bin/bash
+
+die() {
+ echo "$@" 1>&2
+ exit 1
+}
+
+clean() {
+ echo $1 | sed -e 's/\\//g'
+}
+
+### NOTE: ############################################################
+### These variables specify the tool versions we want to use.
+### Periods should be escaped with backslash for use by grep.
+###
+### If you update these, please also update docs/GettingStarted.rst
+want_autoconf_version='2\.69'
+want_autoheader_version=$want_autoconf_version
+want_aclocal_version='1\.13\.4'
+### END NOTE #########################################################
+
+outfile=configure
+configfile=configure.ac
+
+want_autoconf_version_clean=$(clean $want_autoconf_version)
+want_autoheader_version_clean=$(clean $want_autoheader_version)
+want_aclocal_version_clean=$(clean $want_aclocal_version)
+
+test -d autoconf && test -f autoconf/$configfile && cd autoconf
+test -f $configfile || die "Can't find 'autoconf' dir; please cd into it first"
+autoconf --version | grep $want_autoconf_version > /dev/null
+test $? -eq 0 || die "Your autoconf was not detected as being $want_autoconf_version_clean"
+aclocal --version | grep '^aclocal.*'$want_aclocal_version > /dev/null
+test $? -eq 0 || die "Your aclocal was not detected as being $want_aclocal_version_clean"
+autoheader --version | grep '^autoheader.*'$want_autoheader_version > /dev/null
+test $? -eq 0 || die "Your autoheader was not detected as being $want_autoheader_version_clean"
+echo ""
+echo "### NOTE: ############################################################"
+echo "### If you get *any* warnings from autoconf below you MUST fix the"
+echo "### scripts in the m4 directory because there are future forward"
+echo "### compatibility or platform support issues at risk. Please do NOT"
+echo "### commit any configure script that was generated with warnings"
+echo "### present. You should get just three 'Regenerating..' lines."
+echo "######################################################################"
+echo ""
+echo "Regenerating aclocal.m4 with aclocal $want_aclocal_version_clean"
+cwd=`pwd`
+aclocal --force -I $cwd/m4 || die "aclocal failed"
+echo "Regenerating configure with autoconf $want_autoconf_version_clean"
+autoconf --force --warnings=all -o ../$outfile $configfile || die "autoconf failed"
+cd ..
+echo "Regenerating config.h.in with autoheader $want_autoheader_version_clean"
+autoheader --warnings=all -I autoconf -I autoconf/m4 autoconf/$configfile || die "autoheader failed"
+exit 0
diff -r 76e0c138822c -r 87f34dafd0d1 external/bsd/llvm/dist/llvm-configure/autoconf/ExportMap.map
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/llvm/dist/llvm-configure/autoconf/ExportMap.map Wed Jan 11 11:19:24 2017 +0000
@@ -0,0 +1,7 @@
+{
+ global: main;
+ __progname;
+ environ;
+
+ local: *;
+};
diff -r 76e0c138822c -r 87f34dafd0d1 external/bsd/llvm/dist/llvm-configure/autoconf/LICENSE.TXT
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/llvm/dist/llvm-configure/autoconf/LICENSE.TXT Wed Jan 11 11:19:24 2017 +0000
@@ -0,0 +1,24 @@
+------------------------------------------------------------------------------
+Autoconf Files
+------------------------------------------------------------------------------
+All autoconf files are licensed under the LLVM license with the following
+additions:
+
+llvm/autoconf/install-sh:
+ This script is licensed under the LLVM license, with the following
+ additional copyrights and restrictions:
+
+ Copyright 1991 by the Massachusetts Institute of Technology
+
+ Permission to use, copy, modify, distribute, and sell this software and its
+ documentation for any purpose is hereby granted without fee, provided that
+ the above copyright notice appear in all copies and that both that
+ copyright notice and this permission notice appear in supporting
+ documentation, and that the name of M.I.T. not be used in advertising or
+ publicity pertaining to distribution of the software without specific,
+ written prior permission. M.I.T. makes no representations about the
+ suitability of this software for any purpose. It is provided "as is"
+ without express or implied warranty.
+
+Please see the source files for additional copyrights.
+
diff -r 76e0c138822c -r 87f34dafd0d1 external/bsd/llvm/dist/llvm-configure/autoconf/README.TXT
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/llvm/dist/llvm-configure/autoconf/README.TXT Wed Jan 11 11:19:24 2017 +0000
@@ -0,0 +1,14 @@
+Upgrading autoconf
+===============================================================================
+
+If you are in the mood to upgrade autoconf, you should:
+
+ 1. Consider not upgrading.
+ 2. No really, this is a hassle, you don't want to do it.
+ 3. Get the new version of autoconf and put it in <SRC>
+ 4. configure/build/install autoconf with --prefix=<PFX>
+ 5. Run autoupdate on all the m4 macros in llvm/autoconf/m4
+ 6. Run autoupdate on llvm/autoconf/configure.ac
+ 7. Regenerate configure script with AutoRegen.sh
+ 8. If there are any warnings from AutoRegen.sh, fix them and go to step 7.
+ 9. Test, test, test.
diff -r 76e0c138822c -r 87f34dafd0d1 external/bsd/llvm/dist/llvm-configure/autoconf/aclocal.m4
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/llvm/dist/llvm-configure/autoconf/aclocal.m4 Wed Jan 11 11:19:24 2017 +0000
@@ -0,0 +1,265 @@
+# generated automatically by aclocal 1.13.4 -*- Autoconf -*-
+
+# Copyright (C) 1996-2013 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.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
+# Check for the extension used for executables on build platform.
+# This is necessary for cross-compiling where the build platform
+# may differ from the host platform.
+AC_DEFUN([AC_BUILD_EXEEXT],
+[
+AC_MSG_CHECKING([for executable suffix on build platform])
+AC_CACHE_VAL(ac_cv_build_exeext,
+[if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
+ ac_cv_build_exeext=.exe
+else
+ ac_build_prefix=${build_alias}-
+
+ AC_CHECK_PROG(BUILD_CC, ${ac_build_prefix}gcc, ${ac_build_prefix}gcc)
+ if test -z "$BUILD_CC"; then
+ AC_CHECK_PROG(BUILD_CC, gcc, gcc)
+ if test -z "$BUILD_CC"; then
+ AC_CHECK_PROG(BUILD_CC, cc, cc, , , /usr/ucb/cc)
+ fi
+ fi
+ test -z "$BUILD_CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH])
+ ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&AS_MESSAGE_LOG_FD'
+ rm -f conftest*
+ echo 'int main () { return 0; }' > conftest.$ac_ext
+ ac_cv_build_exeext=
+ if AC_TRY_EVAL(ac_build_link); then
+ for file in conftest.*; do
+ case $file in
+ *.c | *.o | *.obj | *.dSYM) ;;
+ *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
+ esac
+ done
+ else
+ AC_MSG_ERROR([installation or configuration problem: compiler cannot create executables.])
+ fi
+ rm -f conftest*
+ test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
+fi])
+BUILD_EXEEXT=""
+test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
+AC_MSG_RESULT(${ac_cv_build_exeext})
+ac_build_exeext=$BUILD_EXEEXT
+AC_SUBST(BUILD_EXEEXT)])
+
+#
+# Check for GNU Make. This is originally from
+# http://www.gnu.org/software/ac-archive/htmldoc/check_gnu_make.html
+#
+AC_DEFUN([AC_CHECK_GNU_MAKE],
+[AC_CACHE_CHECK([for GNU make],[llvm_cv_gnu_make_command],
+dnl Search all the common names for GNU make
+[llvm_cv_gnu_make_command=''
+ for a in "$MAKE" make gmake gnumake ; do
+ if test -z "$a" ; then continue ; fi ;
+ if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
+ then
+ llvm_cv_gnu_make_command=$a ;
+ break;
+ fi
+ done])
+dnl If there was a GNU version, then set @ifGNUmake@ to the empty string,
+dnl '#' otherwise
+ if test "x$llvm_cv_gnu_make_command" != "x" ; then
+ ifGNUmake='' ;
+ else
+ ifGNUmake='#' ;
+ AC_MSG_RESULT("Not found");
+ fi
+ AC_SUBST(ifGNUmake)
+])
+
+AC_DEFUN([CXX_FLAG_CHECK],
+ [AC_SUBST($1, `$CXX -Werror patsubst($2, [^-Wno-], [-W]) -fsyntax-only -xc /dev/null 2>/dev/null && echo $2`)])
+
+# Combine AC_DEFINE and AC_SUBST
+AC_DEFUN([LLVM_DEFINE_SUBST], [
+AC_DEFINE([$1], [$2], [$3])
+AC_SUBST([$1], ['$2'])
+])
+
+#
+# This function determins if the HUGE_VAL macro is compilable with the
+# -pedantic switch or not. XCode < 2.4.1 doesn't get it right.
+#
+AC_DEFUN([AC_HUGE_VAL_CHECK],[
+ AC_CACHE_CHECK([for HUGE_VAL sanity], [ac_cv_huge_val_sanity],[
+ AC_LANG_PUSH([C++])
+ ac_save_CXXFLAGS=$CXXFLAGS
+ CXXFLAGS="$CXXFLAGS -pedantic"
+ AC_RUN_IFELSE([AC_LANG_PROGRAM([[#include <math.h>]],
+ [[double x = HUGE_VAL; return x != x;]])],
+ [ac_cv_huge_val_sanity=yes],[ac_cv_huge_val_sanity=no],
+ [ac_cv_huge_val_sanity=yes])
+ CXXFLAGS=$ac_save_CXXFLAGS
+ AC_LANG_POP([C++])
+ ])
+ AC_SUBST(HUGE_VAL_SANITY,$ac_cv_huge_val_sanity)
+])
+
+#
+# Get the linker version string.
+#
+# This macro is specific to LLVM.
+#
+AC_DEFUN([AC_LINK_GET_VERSION],
+ [AC_CACHE_CHECK([for linker version],[llvm_cv_link_version],
+ [
+ version_string="$(${LD:-ld} -v 2>&1 | head -1)"
+
+ # Check for ld64.
+ if (echo "$version_string" | grep -q "ld64"); then
+ llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
+ else
+ llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
+ fi
+ ])
+ AC_DEFINE_UNQUOTED([HOST_LINK_VERSION],"$llvm_cv_link_version",
+ [Linker version detected at compile time.])
+])
+
+#
+# Determine if the system can handle the -R option being passed to the linker.
+#
+# This macro is specific to LLVM.
+#
+AC_DEFUN([AC_LINK_USE_R],
+[AC_CACHE_CHECK([for compiler -Wl,-R<path> option],[llvm_cv_link_use_r],
+[ AC_LANG_PUSH([C])
+ oldcflags="$CFLAGS"
+ CFLAGS="$CFLAGS -Wl,-R."
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],
+ [llvm_cv_link_use_r=yes],[llvm_cv_link_use_r=no])
+ CFLAGS="$oldcflags"
+ AC_LANG_POP([C])
+])
+if test "$llvm_cv_link_use_r" = yes ; then
+ AC_DEFINE([HAVE_LINK_R],[1],[Define if you can use -Wl,-R. to pass -R. to the linker, in order to add the current directory to the dynamic linker search path.])
+ fi
+])
+
+#
+# Determine if the system can handle the -rdynamic option being passed
+# to the compiler.
+#
+# This macro is specific to LLVM.
+#
+AC_DEFUN([AC_LINK_EXPORT_DYNAMIC],
+[AC_CACHE_CHECK([for compiler -rdynamic option],
+ [llvm_cv_link_use_export_dynamic],
+[ AC_LANG_PUSH([C])
+ oldcflags="$CFLAGS"
+ CFLAGS="$CFLAGS -rdynamic"
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],
+ [llvm_cv_link_use_export_dynamic=yes],[llvm_cv_link_use_export_dynamic=no])
+ CFLAGS="$oldcflags"
+ AC_LANG_POP([C])
+])
+if test "$llvm_cv_link_use_export_dynamic" = yes ; then
+ AC_DEFINE([HAVE_LINK_EXPORT_DYNAMIC],[1],[Define if you can use -rdynamic.])
+ fi
+])
+
+#
+# Determine if the system can handle the --version-script option being
+# passed to the linker.
+#
+# This macro is specific to LLVM.
+#
Home |
Main Index |
Thread Index |
Old Index