Next: , Previous: , Up: The Macros  





Creates a generic PACKAGE-config file that has all the things that you want, hmm, well, at least it has –cflags, –version, –libs. Ahhm, did you see ax_path_generic in the autoconf-archive? ;-)

this macros saves you all the typing for a script, you don’t even need to distribute one along. Place this macro in your, et voila, you got one that you want to install.

oh, btw, if the first arg looks like "mylib -lwhat’ then it will go to be added to the –libs, and mylib is extracted.

the defaults: $1 = $PACKAGE $LIBS $2 = $VERSION there is also an AC_SUBST(GENERIC_CONFIG) that will be set to the name of the file that we did output in this macro. Use as:

 install-exec-local:    install-generic-config
    $(mkinstalldirs) $(DESTDIR)$(bindir)

Source Code

Download the latest version of ax_create_generic_config.m4 or browse the macro’s revision history.


Copyright © 2008 Guido U. Draheim

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. This file is offered as-is, without any warranty.