acinclude/libtool.m4
author Ryan C. Gordon <icculus@icculus.org>
Fri, 12 Aug 2016 19:59:00 -0400
changeset 10266 c09f06c4e8c8
parent 9638 a30b6998c1d8
permissions -rw-r--r--
emscripten: send fake mouse events for touches, like other targets do. (This really should be handled at the higher level and not in the individual targets, but this fixes the immediate bug.)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3342
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
     1
##############################################################################
6442
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
     2
# Based on libtool-2.4.2
3342
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
     3
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
     4
#
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
     5
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
6442
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
     6
#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
     7
#                 Foundation, Inc.
3342
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
     8
#   Written by Gordon Matzigkeit, 1996
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
     9
#
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    10
# This file is free software; the Free Software Foundation gives
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    11
# unlimited permission to copy and/or distribute it, with or without
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    12
# modifications, as long as this notice is preserved.
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    13
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    14
m4_define([_LT_COPYING], [dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    15
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
6442
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
    16
#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
    17
#                 Foundation, Inc.
3342
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    18
#   Written by Gordon Matzigkeit, 1996
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    19
#
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    20
#   This file is part of GNU Libtool.
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    21
#
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    22
# GNU Libtool is free software; you can redistribute it and/or
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    23
# modify it under the terms of the GNU General Public License as
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    24
# published by the Free Software Foundation; either version 2 of
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    25
# the License, or (at your option) any later version.
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    26
#
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    27
# As a special exception to the GNU General Public License,
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    28
# if you distribute this file as part of a program or library that
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    29
# is built using GNU Libtool, you may include this file under the
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    30
# same distribution terms that you use for the rest of that program.
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    31
#
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    32
# GNU Libtool is distributed in the hope that it will be useful,
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    33
# but WITHOUT ANY WARRANTY; without even the implied warranty of
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    34
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    35
# GNU General Public License for more details.
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    36
#
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    37
# You should have received a copy of the GNU General Public License
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    38
# along with GNU Libtool; see the file COPYING.  If not, a copy
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    39
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    40
# obtained by writing to the Free Software Foundation, Inc.,
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    41
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    42
])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    43
6442
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
    44
# serial 57 LT_INIT
3342
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    45
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    46
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    47
# LT_PREREQ(VERSION)
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    48
# ------------------
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    49
# Complain and exit if this libtool version is less that VERSION.
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    50
m4_defun([LT_PREREQ],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    51
[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    52
       [m4_default([$3],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    53
		   [m4_fatal([Libtool version $1 or higher is required],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    54
		             63)])],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    55
       [$2])])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    56
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    57
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    58
# _LT_CHECK_BUILDDIR
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    59
# ------------------
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    60
# Complain if the absolute build directory name contains unusual characters
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    61
m4_defun([_LT_CHECK_BUILDDIR],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    62
[case `pwd` in
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    63
  *\ * | *\	*)
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    64
    AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    65
esac
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    66
])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    67
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    68
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    69
# LT_INIT([OPTIONS])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    70
# ------------------
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    71
AC_DEFUN([LT_INIT],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    72
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
6442
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
    73
AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
3342
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    74
AC_BEFORE([$0], [LT_LANG])dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    75
AC_BEFORE([$0], [LT_OUTPUT])dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    76
AC_BEFORE([$0], [LTDL_INIT])dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    77
m4_require([_LT_CHECK_BUILDDIR])dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    78
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    79
dnl Autoconf doesn't catch unexpanded LT_ macros by default:
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    80
m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    81
m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    82
dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    83
dnl unless we require an AC_DEFUNed macro:
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    84
AC_REQUIRE([LTOPTIONS_VERSION])dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    85
AC_REQUIRE([LTSUGAR_VERSION])dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    86
AC_REQUIRE([LTVERSION_VERSION])dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    87
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    88
m4_require([_LT_PROG_LTMAIN])dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    89
6442
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
    90
_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
    91
3342
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    92
dnl Parse OPTIONS
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    93
_LT_SET_OPTIONS([$0], [$1])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    94
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    95
# This can be used to rebuild libtool when needed
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    96
LIBTOOL_DEPS="$ltmain"
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    97
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    98
# Always use our own libtool.
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    99
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   100
AC_SUBST(LIBTOOL)dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   101
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   102
_LT_SETUP
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   103
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   104
# Only expand once:
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   105
m4_define([LT_INIT])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   106
])# LT_INIT
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   107
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   108
# Old names:
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   109
AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   110
AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   111
dnl aclocal-1.4 backwards compatibility:
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   112
dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   113
dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   114
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   115
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   116
# _LT_CC_BASENAME(CC)
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   117
# -------------------
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   118
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   119
m4_defun([_LT_CC_BASENAME],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   120
[for cc_temp in $1""; do
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   121
  case $cc_temp in
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   122
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   123
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   124
    \-*) ;;
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   125
    *) break;;
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   126
  esac
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   127
done
6442
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   128
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
3342
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   129
])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   130
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   131
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   132
# _LT_FILEUTILS_DEFAULTS
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   133
# ----------------------
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   134
# It is okay to use these file commands and assume they have been set
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   135
# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   136
m4_defun([_LT_FILEUTILS_DEFAULTS],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   137
[: ${CP="cp -f"}
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   138
: ${MV="mv -f"}
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   139
: ${RM="rm -f"}
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   140
])# _LT_FILEUTILS_DEFAULTS
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   141
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   142
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   143
# _LT_SETUP
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   144
# ---------
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   145
m4_defun([_LT_SETUP],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   146
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   147
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
6442
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   148
AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   149
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   150
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   151
_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   152
dnl
3342
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   153
_LT_DECL([], [host_alias], [0], [The host system])dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   154
_LT_DECL([], [host], [0])dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   155
_LT_DECL([], [host_os], [0])dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   156
dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   157
_LT_DECL([], [build_alias], [0], [The build system])dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   158
_LT_DECL([], [build], [0])dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   159
_LT_DECL([], [build_os], [0])dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   160
dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   161
AC_REQUIRE([AC_PROG_CC])dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   162
AC_REQUIRE([LT_PATH_LD])dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   163
AC_REQUIRE([LT_PATH_NM])dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   164
dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   165
AC_REQUIRE([AC_PROG_LN_S])dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   166
test -z "$LN_S" && LN_S="ln -s"
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   167
_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   168
dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   169
AC_REQUIRE([LT_CMD_MAX_LEN])dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   170
_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   171
_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   172
dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   173
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   174
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
6442
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   175
m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
3342
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   176
m4_require([_LT_CMD_RELOAD])dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   177
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
6442
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   178
m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
3342
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   179
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   180
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
6442
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   181
m4_require([_LT_WITH_SYSROOT])dnl
3342
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   182
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   183
_LT_CONFIG_LIBTOOL_INIT([
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   184
# See if we are running on zsh, and set the options which allow our
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   185
# commands through without removal of \ escapes INIT.
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   186
if test -n "\${ZSH_VERSION+set}" ; then
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   187
   setopt NO_GLOB_SUBST
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   188
fi
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   189
])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   190
if test -n "${ZSH_VERSION+set}" ; then
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   191
   setopt NO_GLOB_SUBST
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   192
fi
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   193
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   194
_LT_CHECK_OBJDIR
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   195
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   196
m4_require([_LT_TAG_COMPILER])dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   197
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   198
case $host_os in
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   199
aix3*)
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   200
  # AIX sometimes has problems with the GCC collect2 program.  For some
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   201
  # reason, if we set the COLLECT_NAMES environment variable, the problems
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   202
  # vanish in a puff of smoke.
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   203
  if test "X${COLLECT_NAMES+set}" != Xset; then
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   204
    COLLECT_NAMES=
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   205
    export COLLECT_NAMES
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   206
  fi
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   207
  ;;
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   208
esac
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   209
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   210
# Global variables:
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   211
ofile=libtool
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   212
can_build_shared=yes
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   213
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   214
# All known linkers require a `.a' archive for static linking (except MSVC,
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   215
# which needs '.lib').
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   216
libext=a
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   217
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   218
with_gnu_ld="$lt_cv_prog_gnu_ld"
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   219
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   220
old_CC="$CC"
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   221
old_CFLAGS="$CFLAGS"
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   222
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   223
# Set sane defaults for various variables
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   224
test -z "$CC" && CC=cc
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   225
test -z "$LTCC" && LTCC=$CC
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   226
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   227
test -z "$LD" && LD=ld
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   228
test -z "$ac_objext" && ac_objext=o
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   229
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   230
_LT_CC_BASENAME([$compiler])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   231
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   232
# Only perform the check for file, if the check method requires it
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   233
test -z "$MAGIC_CMD" && MAGIC_CMD=file
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   234
case $deplibs_check_method in
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   235
file_magic*)
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   236
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   237
    _LT_PATH_MAGIC
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   238
  fi
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   239
  ;;
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   240
esac
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   241
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   242
# Use C for the default configuration in the libtool script
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   243
LT_SUPPORTED_TAG([CC])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   244
_LT_LANG_C_CONFIG
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   245
_LT_LANG_DEFAULT_CONFIG
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   246
_LT_CONFIG_COMMANDS
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   247
])# _LT_SETUP
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   248
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   249
6442
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   250
# _LT_PREPARE_SED_QUOTE_VARS
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   251
# --------------------------
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   252
# Define a few sed substitution that help us do robust quoting.
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   253
m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   254
[# Backslashify metacharacters that are still active within
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   255
# double-quoted strings.
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   256
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   257
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   258
# Same as above, but do not quote variable references.
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   259
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   260
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   261
# Sed substitution to delay expansion of an escaped shell variable in a
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   262
# double_quote_subst'ed string.
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   263
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   264
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   265
# Sed substitution to delay expansion of an escaped single quote.
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   266
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   267
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   268
# Sed substitution to avoid accidental globbing in evaled expressions
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   269
no_glob_subst='s/\*/\\\*/g'
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   270
])
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   271
3342
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   272
# _LT_PROG_LTMAIN
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   273
# ---------------
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   274
# Note that this code is called both from `configure', and `config.status'
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   275
# now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   276
# `config.status' has no value for ac_aux_dir unless we are using Automake,
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   277
# so we pass a copy along to make sure it has a sensible value anyway.
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   278
m4_defun([_LT_PROG_LTMAIN],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   279
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   280
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   281
ltmain="$ac_aux_dir/ltmain.sh"
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   282
])# _LT_PROG_LTMAIN
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   283
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   284
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   285
## ------------------------------------- ##
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   286
## Accumulate code for creating libtool. ##
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   287
## ------------------------------------- ##
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   288
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   289
# So that we can recreate a full libtool script including additional
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   290
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   291
# in macros and then make a single call at the end using the `libtool'
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   292
# label.
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   293
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   294
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   295
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   296
# ----------------------------------------
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   297
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   298
m4_define([_LT_CONFIG_LIBTOOL_INIT],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   299
[m4_ifval([$1],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   300
          [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   301
                     [$1
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   302
])])])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   303
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   304
# Initialize.
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   305
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   306
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   307
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   308
# _LT_CONFIG_LIBTOOL([COMMANDS])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   309
# ------------------------------
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   310
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   311
m4_define([_LT_CONFIG_LIBTOOL],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   312
[m4_ifval([$1],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   313
          [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   314
                     [$1
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   315
])])])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   316
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   317
# Initialize.
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   318
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   319
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   320
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   321
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   322
# -----------------------------------------------------
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   323
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   324
[_LT_CONFIG_LIBTOOL([$1])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   325
_LT_CONFIG_LIBTOOL_INIT([$2])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   326
])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   327
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   328
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   329
# _LT_FORMAT_COMMENT([COMMENT])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   330
# -----------------------------
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   331
# Add leading comment marks to the start of each line, and a trailing
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   332
# full-stop to the whole comment if one is not present already.
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   333
m4_define([_LT_FORMAT_COMMENT],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   334
[m4_ifval([$1], [
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   335
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   336
              [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   337
)])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   338
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   339
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   340
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   341
## ------------------------ ##
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   342
## FIXME: Eliminate VARNAME ##
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   343
## ------------------------ ##
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   344
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   345
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   346
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   347
# -------------------------------------------------------------------
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   348
# CONFIGNAME is the name given to the value in the libtool script.
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   349
# VARNAME is the (base) name used in the configure script.
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   350
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   351
# VARNAME.  Any other value will be used directly.
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   352
m4_define([_LT_DECL],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   353
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   354
    [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   355
	[m4_ifval([$1], [$1], [$2])])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   356
    lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   357
    m4_ifval([$4],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   358
	[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   359
    lt_dict_add_subkey([lt_decl_dict], [$2],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   360
	[tagged?], [m4_ifval([$5], [yes], [no])])])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   361
])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   362
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   363
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   364
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   365
# --------------------------------------------------------
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   366
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   367
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   368
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   369
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   370
# ------------------------------------------------
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   371
m4_define([lt_decl_tag_varnames],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   372
[_lt_decl_filter([tagged?], [yes], $@)])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   373
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   374
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   375
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   376
# ---------------------------------------------------------
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   377
m4_define([_lt_decl_filter],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   378
[m4_case([$#],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   379
  [0], [m4_fatal([$0: too few arguments: $#])],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   380
  [1], [m4_fatal([$0: too few arguments: $#: $1])],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   381
  [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   382
  [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   383
  [lt_dict_filter([lt_decl_dict], $@)])[]dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   384
])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   385
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   386
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   387
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   388
# --------------------------------------------------
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   389
m4_define([lt_decl_quote_varnames],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   390
[_lt_decl_filter([value], [1], $@)])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   391
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   392
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   393
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   394
# ---------------------------------------------------
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   395
m4_define([lt_decl_dquote_varnames],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   396
[_lt_decl_filter([value], [2], $@)])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   397
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   398
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   399
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   400
# ---------------------------------------------------
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   401
m4_define([lt_decl_varnames_tagged],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   402
[m4_assert([$# <= 2])dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   403
_$0(m4_quote(m4_default([$1], [[, ]])),
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   404
    m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   405
    m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   406
m4_define([_lt_decl_varnames_tagged],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   407
[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   408
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   409
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   410
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   411
# ------------------------------------------------
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   412
m4_define([lt_decl_all_varnames],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   413
[_$0(m4_quote(m4_default([$1], [[, ]])),
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   414
     m4_if([$2], [],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   415
	   m4_quote(lt_decl_varnames),
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   416
	m4_quote(m4_shift($@))))[]dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   417
])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   418
m4_define([_lt_decl_all_varnames],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   419
[lt_join($@, lt_decl_varnames_tagged([$1],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   420
			lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   421
])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   422
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   423
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   424
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   425
# ------------------------------------
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   426
# Quote a variable value, and forward it to `config.status' so that its
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   427
# declaration there will have the same value as in `configure'.  VARNAME
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   428
# must have a single quote delimited value for this to work.
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   429
m4_define([_LT_CONFIG_STATUS_DECLARE],
6442
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   430
[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
3342
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   431
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   432
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   433
# _LT_CONFIG_STATUS_DECLARATIONS
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   434
# ------------------------------
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   435
# We delimit libtool config variables with single quotes, so when
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   436
# we write them to config.status, we have to be sure to quote all
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   437
# embedded single quotes properly.  In configure, this macro expands
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   438
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   439
#
6442
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   440
#    <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
3342
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   441
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   442
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   443
    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   444
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   445
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   446
# _LT_LIBTOOL_TAGS
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   447
# ----------------
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   448
# Output comment and list of tags supported by the script
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   449
m4_defun([_LT_LIBTOOL_TAGS],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   450
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   451
available_tags="_LT_TAGS"dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   452
])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   453
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   454
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   455
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   456
# -----------------------------------
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   457
# Extract the dictionary values for VARNAME (optionally with TAG) and
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   458
# expand to a commented shell variable setting:
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   459
#
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   460
#    # Some comment about what VAR is for.
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   461
#    visible_name=$lt_internal_name
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   462
m4_define([_LT_LIBTOOL_DECLARE],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   463
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   464
					   [description])))[]dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   465
m4_pushdef([_libtool_name],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   466
    m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   467
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   468
    [0], [_libtool_name=[$]$1],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   469
    [1], [_libtool_name=$lt_[]$1],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   470
    [2], [_libtool_name=$lt_[]$1],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   471
    [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   472
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   473
])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   474
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   475
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   476
# _LT_LIBTOOL_CONFIG_VARS
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   477
# -----------------------
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   478
# Produce commented declarations of non-tagged libtool config variables
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   479
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   480
# script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   481
# section) are produced by _LT_LIBTOOL_TAG_VARS.
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   482
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   483
[m4_foreach([_lt_var],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   484
    m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   485
    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   486
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   487
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   488
# _LT_LIBTOOL_TAG_VARS(TAG)
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   489
# -------------------------
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   490
m4_define([_LT_LIBTOOL_TAG_VARS],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   491
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   492
    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   493
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   494
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   495
# _LT_TAGVAR(VARNAME, [TAGNAME])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   496
# ------------------------------
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   497
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   498
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   499
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   500
# _LT_CONFIG_COMMANDS
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   501
# -------------------
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   502
# Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   503
# variables for single and double quote escaping we saved from calls
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   504
# to _LT_DECL, we can put quote escaped variables declarations
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   505
# into `config.status', and then the shell code to quote escape them in
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   506
# for loops in `config.status'.  Finally, any additional code accumulated
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   507
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   508
m4_defun([_LT_CONFIG_COMMANDS],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   509
[AC_PROVIDE_IFELSE([LT_OUTPUT],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   510
	dnl If the libtool generation code has been placed in $CONFIG_LT,
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   511
	dnl instead of duplicating it all over again into config.status,
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   512
	dnl then we will have config.status run $CONFIG_LT later, so it
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   513
	dnl needs to know what name is stored there:
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   514
        [AC_CONFIG_COMMANDS([libtool],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   515
            [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   516
    dnl If the libtool generation code is destined for config.status,
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   517
    dnl expand the accumulated commands and init code now:
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   518
    [AC_CONFIG_COMMANDS([libtool],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   519
        [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   520
])#_LT_CONFIG_COMMANDS
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   521
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   522
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   523
# Initialize.
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   524
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   525
[
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   526
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   527
# The HP-UX ksh and POSIX shell print the target directory to stdout
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   528
# if CDPATH is set.
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   529
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   530
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   531
sed_quote_subst='$sed_quote_subst'
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   532
double_quote_subst='$double_quote_subst'
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   533
delay_variable_subst='$delay_variable_subst'
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   534
_LT_CONFIG_STATUS_DECLARATIONS
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   535
LTCC='$LTCC'
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   536
LTCFLAGS='$LTCFLAGS'
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   537
compiler='$compiler_DEFAULT'
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   538
6442
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   539
# A function that is used when there is no print builtin or printf.
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   540
func_fallback_echo ()
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   541
{
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   542
  eval 'cat <<_LTECHO_EOF
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   543
\$[]1
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   544
_LTECHO_EOF'
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   545
}
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   546
3342
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   547
# Quote evaled strings.
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   548
for var in lt_decl_all_varnames([[ \
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   549
]], lt_decl_quote_varnames); do
6442
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   550
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
3342
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   551
    *[[\\\\\\\`\\"\\\$]]*)
6442
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   552
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
3342
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   553
      ;;
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   554
    *)
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   555
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   556
      ;;
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   557
    esac
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   558
done
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   559
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   560
# Double-quote double-evaled strings.
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   561
for var in lt_decl_all_varnames([[ \
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   562
]], lt_decl_dquote_varnames); do
6442
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   563
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
3342
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   564
    *[[\\\\\\\`\\"\\\$]]*)
6442
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   565
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
3342
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   566
      ;;
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   567
    *)
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   568
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   569
      ;;
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   570
    esac
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   571
done
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   572
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   573
_LT_OUTPUT_LIBTOOL_INIT
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   574
])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   575
6442
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   576
# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   577
# ------------------------------------
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   578
# Generate a child script FILE with all initialization necessary to
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   579
# reuse the environment learned by the parent script, and make the
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   580
# file executable.  If COMMENT is supplied, it is inserted after the
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   581
# `#!' sequence but before initialization text begins.  After this
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   582
# macro, additional text can be appended to FILE to form the body of
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   583
# the child script.  The macro ends with non-zero status if the
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   584
# file could not be fully written (such as if the disk is full).
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   585
m4_ifdef([AS_INIT_GENERATED],
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   586
[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   587
[m4_defun([_LT_GENERATED_FILE_INIT],
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   588
[m4_require([AS_PREPARE])]dnl
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   589
[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   590
[lt_write_fail=0
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   591
cat >$1 <<_ASEOF || lt_write_fail=1
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   592
#! $SHELL
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   593
# Generated by $as_me.
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   594
$2
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   595
SHELL=\${CONFIG_SHELL-$SHELL}
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   596
export SHELL
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   597
_ASEOF
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   598
cat >>$1 <<\_ASEOF || lt_write_fail=1
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   599
AS_SHELL_SANITIZE
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   600
_AS_PREPARE
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   601
exec AS_MESSAGE_FD>&1
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   602
_ASEOF
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   603
test $lt_write_fail = 0 && chmod +x $1[]dnl
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   604
m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
3342
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   605
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   606
# LT_OUTPUT
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   607
# ---------
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   608
# This macro allows early generation of the libtool script (before
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   609
# AC_OUTPUT is called), incase it is used in configure for compilation
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   610
# tests.
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   611
AC_DEFUN([LT_OUTPUT],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   612
[: ${CONFIG_LT=./config.lt}
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   613
AC_MSG_NOTICE([creating $CONFIG_LT])
6442
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   614
_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   615
[# Run this file to recreate a libtool stub with the current configuration.])
3342
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   616
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   617
cat >>"$CONFIG_LT" <<\_LTEOF
6442
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   618
lt_cl_silent=false
3342
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   619
exec AS_MESSAGE_LOG_FD>>config.log
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   620
{
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   621
  echo
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   622
  AS_BOX([Running $as_me.])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   623
} >&AS_MESSAGE_LOG_FD
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   624
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   625
lt_cl_help="\
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   626
\`$as_me' creates a local libtool stub from the current configuration,
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   627
for use in further configure time tests before the real libtool is
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   628
generated.
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   629
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   630
Usage: $[0] [[OPTIONS]]
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   631
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   632
  -h, --help      print this help, then exit
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   633
  -V, --version   print version number, then exit
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   634
  -q, --quiet     do not print progress messages
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   635
  -d, --debug     don't remove temporary files
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   636
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   637
Report bugs to <bug-libtool@gnu.org>."
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   638
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   639
lt_cl_version="\
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   640
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   641
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   642
configured by $[0], generated by m4_PACKAGE_STRING.
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   643
6442
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   644
Copyright (C) 2011 Free Software Foundation, Inc.
3342
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   645
This config.lt script is free software; the Free Software Foundation
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   646
gives unlimited permision to copy, distribute and modify it."
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   647
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   648
while test $[#] != 0
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   649
do
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   650
  case $[1] in
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   651
    --version | --v* | -V )
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   652
      echo "$lt_cl_version"; exit 0 ;;
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   653
    --help | --h* | -h )
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   654
      echo "$lt_cl_help"; exit 0 ;;
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   655
    --debug | --d* | -d )
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   656
      debug=: ;;
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   657
    --quiet | --q* | --silent | --s* | -q )
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   658
      lt_cl_silent=: ;;
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   659
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   660
    -*) AC_MSG_ERROR([unrecognized option: $[1]
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   661
Try \`$[0] --help' for more information.]) ;;
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   662
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   663
    *) AC_MSG_ERROR([unrecognized argument: $[1]
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   664
Try \`$[0] --help' for more information.]) ;;
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   665
  esac
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   666
  shift
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   667
done
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   668
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   669
if $lt_cl_silent; then
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   670
  exec AS_MESSAGE_FD>/dev/null
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   671
fi
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   672
_LTEOF
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   673
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   674
cat >>"$CONFIG_LT" <<_LTEOF
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   675
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   676
_LTEOF
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   677
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   678
cat >>"$CONFIG_LT" <<\_LTEOF
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   679
AC_MSG_NOTICE([creating $ofile])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   680
_LT_OUTPUT_LIBTOOL_COMMANDS
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   681
AS_EXIT(0)
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   682
_LTEOF
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   683
chmod +x "$CONFIG_LT"
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   684
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   685
# configure is writing to config.log, but config.lt does its own redirection,
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   686
# appending to config.log, which fails on DOS, as config.log is still kept
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   687
# open by configure.  Here we exec the FD to /dev/null, effectively closing
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   688
# config.log, so it can be properly (re)opened and appended to by config.lt.
6442
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   689
lt_cl_success=:
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   690
test "$silent" = yes &&
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   691
  lt_config_lt_args="$lt_config_lt_args --quiet"
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   692
exec AS_MESSAGE_LOG_FD>/dev/null
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   693
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   694
exec AS_MESSAGE_LOG_FD>>config.log
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   695
$lt_cl_success || AS_EXIT(1)
3342
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   696
])# LT_OUTPUT
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   697
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   698
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   699
# _LT_CONFIG(TAG)
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   700
# ---------------
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   701
# If TAG is the built-in tag, create an initial libtool script with a
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   702
# default configuration from the untagged config vars.  Otherwise add code
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   703
# to config.status for appending the configuration named by TAG from the
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   704
# matching tagged config vars.
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   705
m4_defun([_LT_CONFIG],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   706
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   707
_LT_CONFIG_SAVE_COMMANDS([
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   708
  m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   709
  m4_if(_LT_TAG, [C], [
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   710
    # See if we are running on zsh, and set the options which allow our
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   711
    # commands through without removal of \ escapes.
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   712
    if test -n "${ZSH_VERSION+set}" ; then
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   713
      setopt NO_GLOB_SUBST
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   714
    fi
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   715
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   716
    cfgfile="${ofile}T"
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   717
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   718
    $RM "$cfgfile"
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   719
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   720
    cat <<_LT_EOF >> "$cfgfile"
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   721
#! $SHELL
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   722
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   723
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   724
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   725
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   726
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   727
#
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   728
_LT_COPYING
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   729
_LT_LIBTOOL_TAGS
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   730
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   731
# ### BEGIN LIBTOOL CONFIG
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   732
_LT_LIBTOOL_CONFIG_VARS
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   733
_LT_LIBTOOL_TAG_VARS
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   734
# ### END LIBTOOL CONFIG
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   735
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   736
_LT_EOF
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   737
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   738
  case $host_os in
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   739
  aix3*)
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   740
    cat <<\_LT_EOF >> "$cfgfile"
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   741
# AIX sometimes has problems with the GCC collect2 program.  For some
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   742
# reason, if we set the COLLECT_NAMES environment variable, the problems
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   743
# vanish in a puff of smoke.
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   744
if test "X${COLLECT_NAMES+set}" != Xset; then
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   745
  COLLECT_NAMES=
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   746
  export COLLECT_NAMES
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   747
fi
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   748
_LT_EOF
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   749
    ;;
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   750
  esac
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   751
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   752
  _LT_PROG_LTMAIN
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   753
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   754
  # We use sed instead of cat because bash on DJGPP gets confused if
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   755
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   756
  # text mode, it properly converts lines to CR/LF.  This bash problem
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   757
  # is reportedly fixed, but why not run on old versions too?
6442
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   758
  sed '$q' "$ltmain" >> "$cfgfile" \
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   759
     || (rm -f "$cfgfile"; exit 1)
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   760
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   761
  _LT_PROG_REPLACE_SHELLFNS
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   762
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   763
   mv -f "$cfgfile" "$ofile" ||
3342
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   764
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   765
  chmod +x "$ofile"
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   766
],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   767
[cat <<_LT_EOF >> "$ofile"
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   768
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   769
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   770
dnl in a comment (ie after a #).
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   771
# ### BEGIN LIBTOOL TAG CONFIG: $1
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   772
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   773
# ### END LIBTOOL TAG CONFIG: $1
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   774
_LT_EOF
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   775
])dnl /m4_if
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   776
],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   777
[m4_if([$1], [], [
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   778
    PACKAGE='$PACKAGE'
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   779
    VERSION='$VERSION'
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   780
    TIMESTAMP='$TIMESTAMP'
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   781
    RM='$RM'
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   782
    ofile='$ofile'], [])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   783
])dnl /_LT_CONFIG_SAVE_COMMANDS
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   784
])# _LT_CONFIG
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   785
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   786
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   787
# LT_SUPPORTED_TAG(TAG)
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   788
# ---------------------
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   789
# Trace this macro to discover what tags are supported by the libtool
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   790
# --tag option, using:
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   791
#    autoconf --trace 'LT_SUPPORTED_TAG:$1'
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   792
AC_DEFUN([LT_SUPPORTED_TAG], [])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   793
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   794
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   795
# C support is built-in for now
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   796
m4_define([_LT_LANG_C_enabled], [])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   797
m4_define([_LT_TAGS], [])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   798
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   799
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   800
# LT_LANG(LANG)
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   801
# -------------
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   802
# Enable libtool support for the given language if not already enabled.
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   803
AC_DEFUN([LT_LANG],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   804
[AC_BEFORE([$0], [LT_OUTPUT])dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   805
m4_case([$1],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   806
  [C],			[_LT_LANG(C)],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   807
  [C++],		[_LT_LANG(CXX)],
6442
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   808
  [Go],			[_LT_LANG(GO)],
3342
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   809
  [Java],		[_LT_LANG(GCJ)],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   810
  [Fortran 77],		[_LT_LANG(F77)],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   811
  [Fortran],		[_LT_LANG(FC)],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   812
  [Windows Resource],	[_LT_LANG(RC)],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   813
  [m4_ifdef([_LT_LANG_]$1[_CONFIG],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   814
    [_LT_LANG($1)],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   815
    [m4_fatal([$0: unsupported language: "$1"])])])dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   816
])# LT_LANG
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   817
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   818
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   819
# _LT_LANG(LANGNAME)
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   820
# ------------------
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   821
m4_defun([_LT_LANG],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   822
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   823
  [LT_SUPPORTED_TAG([$1])dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   824
  m4_append([_LT_TAGS], [$1 ])dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   825
  m4_define([_LT_LANG_]$1[_enabled], [])dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   826
  _LT_LANG_$1_CONFIG($1)])dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   827
])# _LT_LANG
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   828
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   829
6442
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   830
m4_ifndef([AC_PROG_GO], [
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   831
############################################################
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   832
# NOTE: This macro has been submitted for inclusion into   #
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   833
#  GNU Autoconf as AC_PROG_GO.  When it is available in    #
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   834
#  a released version of Autoconf we should remove this    #
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   835
#  macro and use it instead.                               #
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   836
############################################################
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   837
m4_defun([AC_PROG_GO],
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   838
[AC_LANG_PUSH(Go)dnl
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   839
AC_ARG_VAR([GOC],     [Go compiler command])dnl
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   840
AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   841
_AC_ARG_VAR_LDFLAGS()dnl
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   842
AC_CHECK_TOOL(GOC, gccgo)
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   843
if test -z "$GOC"; then
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   844
  if test -n "$ac_tool_prefix"; then
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   845
    AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   846
  fi
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   847
fi
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   848
if test -z "$GOC"; then
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   849
  AC_CHECK_PROG(GOC, gccgo, gccgo, false)
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   850
fi
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   851
])#m4_defun
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   852
])#m4_ifndef
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   853
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   854
3342
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   855
# _LT_LANG_DEFAULT_CONFIG
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   856
# -----------------------
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   857
m4_defun([_LT_LANG_DEFAULT_CONFIG],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   858
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   859
  [LT_LANG(CXX)],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   860
  [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   861
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   862
AC_PROVIDE_IFELSE([AC_PROG_F77],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   863
  [LT_LANG(F77)],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   864
  [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   865
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   866
AC_PROVIDE_IFELSE([AC_PROG_FC],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   867
  [LT_LANG(FC)],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   868
  [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   869
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   870
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   871
dnl pulling things in needlessly.
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   872
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   873
  [LT_LANG(GCJ)],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   874
  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   875
    [LT_LANG(GCJ)],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   876
    [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   877
      [LT_LANG(GCJ)],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   878
      [m4_ifdef([AC_PROG_GCJ],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   879
	[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   880
       m4_ifdef([A][M_PROG_GCJ],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   881
	[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   882
       m4_ifdef([LT_PROG_GCJ],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   883
	[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   884
6442
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   885
AC_PROVIDE_IFELSE([AC_PROG_GO],
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   886
  [LT_LANG(GO)],
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   887
  [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   888
3342
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   889
AC_PROVIDE_IFELSE([LT_PROG_RC],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   890
  [LT_LANG(RC)],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   891
  [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   892
])# _LT_LANG_DEFAULT_CONFIG
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   893
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   894
# Obsolete macros:
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   895
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   896
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   897
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   898
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
6442
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   899
AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
3342
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   900
dnl aclocal-1.4 backwards compatibility:
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   901
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   902
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   903
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   904
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
6442
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   905
dnl AC_DEFUN([AC_LIBTOOL_RC], [])
3342
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   906
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   907
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   908
# _LT_TAG_COMPILER
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   909
# ----------------
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   910
m4_defun([_LT_TAG_COMPILER],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   911
[AC_REQUIRE([AC_PROG_CC])dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   912
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   913
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   914
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   915
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   916
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   917
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   918
# If no C compiler was specified, use CC.
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   919
LTCC=${LTCC-"$CC"}
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   920
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   921
# If no C compiler flags were specified, use CFLAGS.
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   922
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   923
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   924
# Allow CC to be a program name with arguments.
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   925
compiler=$CC
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   926
])# _LT_TAG_COMPILER
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   927
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   928
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   929
# _LT_COMPILER_BOILERPLATE
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   930
# ------------------------
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   931
# Check for compiler boilerplate output or warnings with
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   932
# the simple compiler test code.
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   933
m4_defun([_LT_COMPILER_BOILERPLATE],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   934
[m4_require([_LT_DECL_SED])dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   935
ac_outfile=conftest.$ac_objext
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   936
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   937
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   938
_lt_compiler_boilerplate=`cat conftest.err`
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   939
$RM conftest*
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   940
])# _LT_COMPILER_BOILERPLATE
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   941
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   942
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   943
# _LT_LINKER_BOILERPLATE
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   944
# ----------------------
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   945
# Check for linker boilerplate output or warnings with
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   946
# the simple link test code.
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   947
m4_defun([_LT_LINKER_BOILERPLATE],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   948
[m4_require([_LT_DECL_SED])dnl
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   949
ac_outfile=conftest.$ac_objext
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   950
echo "$lt_simple_link_test_code" >conftest.$ac_ext
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   951
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   952
_lt_linker_boilerplate=`cat conftest.err`
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   953
$RM -r conftest*
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   954
])# _LT_LINKER_BOILERPLATE
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   955
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   956
# _LT_REQUIRED_DARWIN_CHECKS
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   957
# -------------------------
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   958
m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   959
  case $host_os in
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   960
    rhapsody* | darwin*)
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   961
    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   962
    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   963
    AC_CHECK_TOOL([LIPO], [lipo], [:])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   964
    AC_CHECK_TOOL([OTOOL], [otool], [:])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   965
    AC_CHECK_TOOL([OTOOL64], [otool64], [:])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   966
    _LT_DECL([], [DSYMUTIL], [1],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   967
      [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   968
    _LT_DECL([], [NMEDIT], [1],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   969
      [Tool to change global to local symbols on Mac OS X])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   970
    _LT_DECL([], [LIPO], [1],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   971
      [Tool to manipulate fat objects and archives on Mac OS X])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   972
    _LT_DECL([], [OTOOL], [1],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   973
      [ldd/readelf like tool for Mach-O binaries on Mac OS X])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   974
    _LT_DECL([], [OTOOL64], [1],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   975
      [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   976
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   977
    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   978
      [lt_cv_apple_cc_single_mod=no
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   979
      if test -z "${LT_MULTI_MODULE}"; then
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   980
	# By default we will add the -single_module flag. You can override
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   981
	# by either setting the environment variable LT_MULTI_MODULE
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   982
	# non-empty at configure time, or by adding -multi_module to the
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   983
	# link flags.
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   984
	rm -rf libconftest.dylib*
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   985
	echo "int foo(void){return 1;}" > conftest.c
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   986
	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   987
-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   988
	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   989
	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   990
        _lt_result=$?
6442
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   991
	# If there is a non-empty error log, and "single_module"
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   992
	# appears in it, assume the flag caused a linker warning
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   993
        if test -s conftest.err && $GREP single_module conftest.err; then
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   994
	  cat conftest.err >&AS_MESSAGE_LOG_FD
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   995
	# Otherwise, if the output was created with a 0 exit code from
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   996
	# the compiler, it worked.
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
   997
	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
3342
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   998
	  lt_cv_apple_cc_single_mod=yes
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   999
	else
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1000
	  cat conftest.err >&AS_MESSAGE_LOG_FD
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1001
	fi
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1002
	rm -rf libconftest.dylib*
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1003
	rm -f conftest.*
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1004
      fi])
6442
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1005
3342
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1006
    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1007
      [lt_cv_ld_exported_symbols_list],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1008
      [lt_cv_ld_exported_symbols_list=no
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1009
      save_LDFLAGS=$LDFLAGS
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1010
      echo "_main" > conftest.sym
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1011
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1012
      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1013
	[lt_cv_ld_exported_symbols_list=yes],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1014
	[lt_cv_ld_exported_symbols_list=no])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1015
	LDFLAGS="$save_LDFLAGS"
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1016
    ])
6442
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1017
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1018
    AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1019
      [lt_cv_ld_force_load=no
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1020
      cat > conftest.c << _LT_EOF
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1021
int forced_loaded() { return 2;}
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1022
_LT_EOF
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1023
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1024
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1025
      echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1026
      $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1027
      echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1028
      $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1029
      cat > conftest.c << _LT_EOF
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1030
int main() { return 0;}
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1031
_LT_EOF
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1032
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1033
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1034
      _lt_result=$?
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1035
      if test -s conftest.err && $GREP force_load conftest.err; then
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1036
	cat conftest.err >&AS_MESSAGE_LOG_FD
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1037
      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1038
	lt_cv_ld_force_load=yes
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1039
      else
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1040
	cat conftest.err >&AS_MESSAGE_LOG_FD
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1041
      fi
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1042
        rm -f conftest.err libconftest.a conftest conftest.c
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1043
        rm -rf conftest.dSYM
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1044
    ])
3342
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1045
    case $host_os in
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1046
    rhapsody* | darwin1.[[012]])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1047
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1048
    darwin1.*)
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1049
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1050
    darwin*) # darwin 5.x on
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1051
      # if running on 10.5 or later, the deployment target defaults
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1052
      # to the OS version, if on x86, and 10.4, the deployment
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1053
      # target defaults to 10.4. Don't you love it?
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1054
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1055
	10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1056
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1057
	10.[[012]]*)
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1058
	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1059
	10.*)
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1060
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1061
      esac
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1062
    ;;
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1063
  esac
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1064
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1065
      _lt_dar_single_mod='$single_module'
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1066
    fi
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1067
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1068
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1069
    else
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1070
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1071
    fi
6442
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1072
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
3342
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1073
      _lt_dsymutil='~$DSYMUTIL $lib || :'
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1074
    else
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1075
      _lt_dsymutil=
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1076
    fi
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1077
    ;;
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1078
  esac
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1079
])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1080
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1081
6442
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1082
# _LT_DARWIN_LINKER_FEATURES([TAG])
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1083
# ---------------------------------
3342
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1084
# Checks for linker and compiler features on darwin
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1085
m4_defun([_LT_DARWIN_LINKER_FEATURES],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1086
[
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1087
  m4_require([_LT_REQUIRED_DARWIN_CHECKS])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1088
  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1089
  _LT_TAGVAR(hardcode_direct, $1)=no
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1090
  _LT_TAGVAR(hardcode_automatic, $1)=yes
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1091
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6442
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1092
  if test "$lt_cv_ld_force_load" = "yes"; then
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1093
    _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1094
    m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1095
                  [FC],  [_LT_TAGVAR(compiler_needs_object, $1)=yes])
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1096
  else
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1097
    _LT_TAGVAR(whole_archive_flag_spec, $1)=''
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1098
  fi
3342
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1099
  _LT_TAGVAR(link_all_deplibs, $1)=yes
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1100
  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1101
  case $cc_basename in
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1102
     ifort*) _lt_dar_can_shared=yes ;;
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1103
     *) _lt_dar_can_shared=$GCC ;;
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1104
  esac
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1105
  if test "$_lt_dar_can_shared" = "yes"; then
6442
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1106
    output_verbose_link_cmd=func_echo_all
3342
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1107
    _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1108
    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1109
    _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1110
    _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1111
    m4_if([$1], [CXX],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1112
[   if test "$lt_cv_apple_cc_single_mod" != "yes"; then
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1113
      _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1114
      _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1115
    fi
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1116
],[])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1117
  else
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1118
  _LT_TAGVAR(ld_shlibs, $1)=no
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1119
  fi
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1120
])
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1121
6442
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1122
# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1123
# ----------------------------------
3342
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1124
# Links a minimal program and checks the executable
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1125
# for the system default hardcoded library path. In most cases,
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1126
# this is /usr/lib:/lib, but when the MPI compilers are used
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1127
# the location of the communication and MPI libs are included too.
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1128
# If we don't find anything, use the default library path according
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1129
# to the aix ld manual.
6442
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1130
# Store the results from the different compilers for each TAGNAME.
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1131
# Allow to override them for all tags through lt_cv_aix_libpath.
3342
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1132
m4_defun([_LT_SYS_MODULE_PATH_AIX],
3da232c5980a Split acinclude.m4 into its constituent parts for easy upgrading
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
  1133
[m4_require([_LT_DECL_SED])dnl
6442
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1134
if test "${lt_cv_aix_libpath+set}" = set; then
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1135
  aix_libpath=$lt_cv_aix_libpath
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1136
else
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1137
  AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1138
  [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1139
  lt_aix_libpath_sed='[
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1140
      /Import File Strings/,/^$/ {
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1141
	  /^0/ {
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1142
	      s/^0  *\([^ ]*\) *$/\1/
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1143
	      p
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1144
	  }
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1145
      }]'
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1146
  _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1147
  # Check for a 64-bit object if we didn't find anything.
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1148
  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1149
    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
2d3caa191dc4 Updated to the latest versions of autotools and config.guess/config.sub
Sam Lantinga <slouken@libsdl.org>
parents: 5100
diff changeset
  1150
  fi],[])