Project

General

Profile

Bug #1334 » 0003-use-AS_HELP_STRING.patch

rbrown (Richard Brown), 03/31/2009 06:56 AM

View differences:

configure.in
dnl environment section {
AC_ARG_WITH(baseruby,
[ --with-baseruby=RUBY use RUBY as baseruby; RUBY is the pathname of ruby],
AS_HELP_STRING([--with-baseruby=RUBY], [ use RUBY as baseruby; RUBY is the pathname of ruby]),
[
case "$withval" in
when(*ruby*)
......
AC_DEFINE(CANONICALIZATION_FOR_MATHN)
fi
dnl checks for alternative programs
AC_ARG_WITH(gcc, [ --without-gcc never use gcc], [
AC_ARG_WITH(gcc,
AS_HELP_STRING([--without-gcc], [never use gcc]),
[
case $withval in
when(no)
: ${CC=cc}
......
done
$1="[$]{rb_opts}[$]$1"; }])
AC_ARG_WITH(arch, [dnl
--with-arch=ARCHS build an Apple/NeXT Multi Architecture Binary (MAB);
AC_ARG_WITH(arch,
AS_HELP_STRING([--with-arch=ARCHS],
[build an Apple/NeXT Multi Architecture Binary (MAB);
ARCHS is a comma-delimited list of architectures for
which to build; if this option is disabled or omitted
entirely, then the package will be built only for the
target platform],
target platform]),
[target_archs="$withval"], [unset target_archs])
test ${CFLAGS+set} && CFLAGS=`echo "$CFLAGS" | sed 's/ *-arch *[^ ]*//g'`
test ${LDFLAGS+set} && LDFLAGS=`echo "$LDFLAGS" | sed 's/ *-arch *[^ ]*//g'`
......
when(*) frame_address=no;;
esac
AC_ARG_ENABLE(frame-address,
[ --enable-frame-address use GCC __builtin_frame_address(). ],
AS_HELP_STRING([--enable-frame-address], [use GCC __builtin_frame_address()]),
[frame_address=$enableval])
if test $frame_address = yes; then
AC_DEFINE(USE_BUILTIN_FRAME_ADDRESS)
fi
AC_ARG_ENABLE(load-relative,
[ --enable-load-relative resolve load paths at run time. ],
AS_HELP_STRING([--enable-load-relative], [resolve load paths at run time]),
[load_relative=$enableval])
AC_ARG_PROGRAM
......
AC_CHECK_DECLS([sys_nerr], [], [], [$ac_includes_default
#include <errno.h>])
AC_ARG_ENABLE(win95, [ --enable-win95 enable Windows 95 series support]
AC_ARG_ENABLE(win95,
AS_HELP_STRING([--enable-win95], [enable Windows 95 series support]),
[case "$enableval" in
when(yes|no) enable_win95=$enableval;;
when(*) unset enable_win95;;
......
esac
AC_ARG_ENABLE(pthread,
[ --enable-pthread use pthread library.],
AS_HELP_STRING([--enable-pthread], [use pthread library]),
[enable_pthread=$enableval], [enable_pthread=$enable_pthread_default])
dnl Checks for libraries.
......
AC_MSG_CHECKING(for setjmp type)
AC_ARG_WITH(setjmp-type,
[ --with-setjmp-type select setjmp type], [
AS_HELP_STRING([--with-setjmp-type],[select setjmp type]),
[
case $withval in
when(__builtin_setjmp) setjmp_prefix=__builtin_;;
when(_setjmp) setjmp_prefix=_;;
......
AC_DEFINE_UNQUOTED(RUBY_JMP_BUF, ${setjmp_sigmask+${setjmp_prefix}}jmp_buf)
AC_ARG_ENABLE(setreuid,
[ --enable-setreuid use setreuid()/setregid() according to need even if obsolete.],
AS_HELP_STRING([--enable-setreuid], [use setreuid()/setregid() according to need even if obsolete]),
[use_setreuid=$enableval])
if test "$use_setreuid" = yes; then
AC_DEFINE(USE_SETREUID)
......
AC_CHECK_FUNCS(backtrace)
AC_ARG_WITH(valgrind,
[ --with-valgrind enable valgrind memcheck support.],
AS_HELP_STRING([--with-valgrind],[enable valgrind memcheck support]),
[AC_CHECK_HEADERS(valgrind/memcheck.h)])
dnl }
......
dnl wheather use dln_a_out or not
AC_ARG_WITH(dln-a-out,
[ --with-dln-a-out use dln_a_out if possible], [
AS_HELP_STRING([--with-dln-a-out], [use dln_a_out if possible]),
[
case $withval in
when(yes)
if test "$enable_shared" = yes; then
......
AC_ARG_ENABLE(rpath,
[ --disable-rpath embed run path into extension libraries.],
AS_HELP_STRING([--disable-rpath], [embed run path into extension libraries]),
[enable_rpath=$enableval], [enable_rpath="$rb_cv_binary_elf"])
if test "$enable_rpath" = yes; then
RPATHFLAG=" ${linker_flag}-R%1\$-s"
......
EXTSTATIC=
AC_SUBST(EXTSTATIC)dnl
AC_ARG_WITH(static-linked-ext,
[ --with-static-linked-ext link external modules statically],
AS_HELP_STRING([--with-static-linked-ext], [link external modules statically]),
[case $withval in
when(yes)
STATIC=
......
ENABLE_SHARED=no
AC_ARG_ENABLE(shared,
[ --enable-shared build a shared library for Ruby. ],
AS_HELP_STRING([--enable-shared], [build a shared library for Ruby]),
[enable_shared=$enableval])
LIBRUBYARG_SHARED='-l$(RUBY_SO_NAME)'
if test "$enable_shared" = 'yes'; then
......
dnl build rdoc index if requested
RDOCTARGET=""
AC_ARG_ENABLE(install-doc,
[ --disable-install-doc do not install rdoc indexes during install ],
AS_HELP_STRING([--disable-install-doc], [do not install rdoc indexes during install]),
[install_doc=$enableval], [install_doc=yes])
if test "$install_doc" != no; then
RDOCTARGET="install-doc"
......
AC_SUBST(rubylibprefix)
AC_ARG_WITH(ruby-version,
[ --with-ruby-version=STR ruby version string for version specific directories [[full]] (full|minor|STR)],
AS_HELP_STRING([--with-ruby-version=STR], [ruby version string for version specific directories [[full]] (full|minor|STR)]),
[ruby_version=$withval],
[ruby_version=full])
unset RUBY_LIB_VERSION
......
fi
AC_ARG_WITH(sitedir,
[ --with-sitedir=DIR site libraries in DIR [[RUBY_LIB_PREFIX/site_ruby]]],
AS_HELP_STRING([--with-sitedir=DIR], [site libraries in DIR [[RUBY_LIB_PREFIX/site_ruby]]]),
[sitedir=$withval],
[sitedir='${rubylibprefix}/site_ruby'])
SITE_DIR=`eval echo \\"${sitedir}\\"`
AC_ARG_WITH(vendordir,
[ --with-vendordir=DIR vendor libraries in DIR [[RUBY_LIB_PREFIX/vendor_ruby]]],
AS_HELP_STRING([--with-vendordir=DIR], [vendor libraries in DIR [[RUBY_LIB_PREFIX/vendor_ruby]]]),
[vendordir=$withval],
[vendordir='${rubylibprefix}/vendor_ruby'])
VENDOR_DIR=`eval echo \\"${vendordir}\\"`
......
AC_DEFINE_UNQUOTED(RUBY_VENDOR_ARCHLIB, RUBY_VENDOR_LIB2"/"RUBY_SITEARCH)
AC_ARG_WITH(search-path,
[ --with-search-path=DIR specify the additional search path],
AS_HELP_STRING([--with-search-path=DIR], [specify the additional search path]),
[search_path=$withval])
if test "$search_path" != ""; then
AC_DEFINE_UNQUOTED(RUBY_SEARCH_PATH,"$search_path")
fi
AC_ARG_WITH(rubyhdrdir,
[ --with-rubyhdrdir=DIR core headers in DIR [INCLUDEDIR/RUBY_INSTALL_NAME/RUBY_VERSION]],
AS_HELP_STRING([--with-rubyhdrdir=DIR], [core headers in DIR [[INCLUDEDIR/RUBY_INSTALL_NAME/RUBY_VERSION]]]),
[rubyhdrdir=$withval],
[rubyhdrdir='${includedir}/${RUBY_INSTALL_NAME}-${ruby_version}'])
AC_ARG_WITH(sitehdrdir,
[ --with-sitehdrdir=DIR core site headers in DIR [RUBYHDRDIR/site_ruby]],
AS_HELP_STRING([--with-sitehdrdir=DIR], [core site headers in DIR [RUBYHDRDIR/site_ruby]]),
[sitehdrdir=$withval],
[sitehdrdir='${rubyhdrdir}/site_ruby'])
AC_ARG_WITH(vendorhdrdir,
[ --with-vendorhdrdir=DIR core vendor headers in DIR [RUBYHDRDIR/vendor_ruby]],
AS_HELP_STRING([--with-vendorhdrdir=DIR], [ core vendor headers in DIR [RUBYHDRDIR/vendor_ruby]]),
[vendorhdrdir=$withval],
[vendorhdrdir='${rubyhdrdir}/vendor_ruby'])
......
AC_SUBST(vendorhdrdir)dnl
AC_ARG_WITH(mantype,
[ --with-mantype=TYPE specify man page type; TYPE is one of man and doc],
AS_HELP_STRING([--with-mantype=TYPE], [specify man page type; TYPE is one of man and doc]),
[
case "$withval" in
when(man|doc)
(3-3/3)