Skip to content
Snippets Groups Projects
Select Git revision
  • 6145b016c2a4d90cf89f5ed218f2de7900b4331c
  • master default protected
  • v0.10.0
  • v0.10.0-rc2
  • v0.10.0-rc1
  • v0.9.0
  • v0.9.0-rc1
  • v0.8.0
  • v0.8.0-rc2
  • v0.8.0-rc1
  • v0.7.0
  • v0.7.0-rc2
  • v0.7.0-rc1
  • v0.6.1
  • v0.6.0
  • v0.6.0-rc2
  • v0.6.0-rc1
  • v0.5.0
  • v0.5.0-rc2
  • v0.5.0-rc1
  • v0.4.0
  • v0.4.0-rc2
22 results

config_subdir.m4

Blame
  • user avatar
    Spencer Oliver authored
    When passing CFLAGS for example through to the jimtcl subconfigure the
    quotes were not being preserved.
    
    Signed-off-by: default avatarSpencer Oliver <ntfreak@users.sourceforge.net>
    fcee511f
    History
    config_subdir.m4 812 B
    dnl
    dnl If needed, define the m4_ifblank and m4_ifnblank macros from autoconf 2.64
    dnl This allows us to run with earlier Autoconfs as well.
    ifdef([m4_ifblank],[],[
    m4_define([m4_ifblank],
    [m4_if(m4_translit([[$1]],  [ ][	][
    ]), [], [$2], [$3])])])
    dnl
    ifdef([m4_ifnblank],[],[
    m4_define([m4_ifnblank],
    [m4_if(m4_translit([[$1]],  [ ][	][
    ]), [], [$3], [$2])])])
    dnl
    
    dnl AC_CONFIG_SUBDIRS does not allow configure options to be passed
    dnl to subdirs, this function allows that by creating a configure.gnu
    dnl script that prepends configure options and then calls the real
    dnl configure script
    AC_DEFUN([AX_CONFIG_SUBDIR_OPTION],
    [
    AC_CONFIG_SUBDIRS([$1])
    
    m4_ifblank([$2], [rm -f $srcdir/$1/configure.gnu],
    [printf "#!/bin/sh
    "\$"SHELL "../$srcdir/$1/configure" $2 \""\$"@"\" > "$srcdir/$1/configure.gnu"
    ])
    ])