1# =========================================================================== 2# http://www.gnu.org/software/autoconf-archive/ax_configure_args.html 3# =========================================================================== 4# 5# SYNOPSIS 6# 7# AX_CONFIGURE_ARGS 8# 9# DESCRIPTION 10# 11# Helper macro for AX_ENABLE_BUILDDIR. 12# 13# The traditional way of starting a subdir-configure is running the script 14# with ${1+"$@"} but since autoconf 2.60 this is broken. Instead we have 15# to rely on eval'ing $ac_configure_args however some old autoconf 16# versions do not provide that. To ensure maximum portability of autoconf 17# extension macros this helper can be AC_REQUIRE'd so that 18# $ac_configure_args will alsways be present. 19# 20# Sadly, the traditional "exec $SHELL" of the enable_builddir macros is 21# spoiled now and must be replaced by "eval + exit $?". 22# 23# Example: 24# 25# AC_DEFUN([AX_ENABLE_SUBDIR],[dnl 26# AC_REQUIRE([AX_CONFIGURE_ARGS])dnl 27# eval $SHELL $ac_configure_args || exit $? 28# ...]) 29# 30# LICENSE 31# 32# Copyright (c) 2008 Guido U. Draheim <guidod@gmx.de> 33# 34# This program is free software; you can redistribute it and/or modify it 35# under the terms of the GNU General Public License as published by the 36# Free Software Foundation; either version 3 of the License, or (at your 37# option) any later version. 38# 39# This program is distributed in the hope that it will be useful, but 40# WITHOUT ANY WARRANTY; without even the implied warranty of 41# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 42# Public License for more details. 43# 44# You should have received a copy of the GNU General Public License along 45# with this program. If not, see <http://www.gnu.org/licenses/>. 46# 47# As a special exception, the respective Autoconf Macro's copyright owner 48# gives unlimited permission to copy, distribute and modify the configure 49# scripts that are the output of Autoconf when processing the Macro. You 50# need not follow the terms of the GNU General Public License when using 51# or distributing such scripts, even though portions of the text of the 52# Macro appear in them. The GNU General Public License (GPL) does govern 53# all other use of the material that constitutes the Autoconf Macro. 54# 55# This special exception to the GPL applies to versions of the Autoconf 56# Macro released by the Autoconf Archive. When you make and distribute a 57# modified version of the Autoconf Macro, you may extend this special 58# exception to the GPL to apply to your modified version as well. 59 60#serial 9 61 62AC_DEFUN([AX_CONFIGURE_ARGS],[ 63 # [$]@ is unsable in 2.60+ but earlier autoconf had no ac_configure_args 64 if test "${ac_configure_args+set}" != "set" ; then 65 ac_configure_args= 66 for ac_arg in ${1+"[$]@"}; do 67 ac_configure_args="$ac_configure_args '$ac_arg'" 68 done 69 fi 70]) 71