Please check the GNU Autoconf Macro Archive for Updates
AC-Archive
Autoconf Macro Archive

ac-archive.sf.net: - Project CVS - Download
Macro Index
- AM Support
- C++ Support
- C Support
- Fortran Support
- Java Support
- Cross Compilation
- Installed Packages
- Miscellaneous
- LaTeX Support
- Uncategorized
- archive macros
- adl's macros
- bkorb's macros
- guidod's macros
- latex's macros
- other's macros
- rleigh's macros
- obsoleted macros
- released macros
- search index

Documentation
- Contribute!
- History
- acincludedir m4
- acinclude (tool)
- macro howto
- ax tricks
- maintainers
- License
- Topics

generated...
2007-08-05

(C) 2007 guidod
Download the M4 Source.

smr_with_build_path

Back to the Main Page.

Synopsis
smr_WITH_BUILD_PATH
, 
Version

2001-07-29

Author

Steve M. Robbins <smr@debian.org>

License

AllPermissive
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. Users of this software should generally follow the principles of the MIT License includings its disclaimer.

Category

cryp.to ac-archive's Installed Packages (released)

Documentation

This macro adds a "--with-build-path" option to the configure script. This configure option provides a convenient way to add "-I" options to CPPFLAGS and "-L" options to LDFLAGS, at configure time.

Invoking "./configure --with-build-path=DIR" results in "-I DIR/include" being added to CPPFLAGS if DIR/include exists, and "-L DIR/lib" being added to LDFLAGS if DIR/lib exists.

Separate multiple directories using colons; e.g. "--with-build-path=DIR1:DIR2:DIR3".

M4 Source Code
AC_DEFUN([smr_WITH_BUILD_PATH],
[
    AC_ARG_WITH([build-path],
    [  --with-build-path=DIR   build using DIR/include and DIR/lib],
    [
        for d in `echo $withval | tr : ' '`; do
            test -d $d/include &amp;&amp; CPPFLAGS="$CPPFLAGS -I$d/include"
            test -d $d/lib &amp;&amp; LDFLAGS="$LDFLAGS -L$d/lib"
        done
    ])
])