ADDED configure.ac Index: configure.ac ================================================================== --- /dev/null +++ configure.ac @@ -0,0 +1,64 @@ +dnl +dnl This is an example configure.ac that demonstrates how to use the buildsys. +dnl You should not just copy it, but edit it to fit your needs! +dnl +dnl To generate the configure script, call: +dnl aclocal -I m4 +dnl autoconf +dnl + +dnl Specify name, version and contact e-mail of the package. +AC_INIT(name, version, e-mail) + +dnl Specifies where your sources are. +AC_CONFIG_SRCDIR(src) + +dnl If your package uses C, you want a C compiler and a C preprocessor +AC_PROG_CC +AC_PROG_CPP + +dnl The buildsys might require ln -s to install libraries. +dnl Uncomment if you are compiling a library. +dnl AC_PROG_LN_S + +dnl If you want to build static libraries (for example build part of your +dnl project as a static library and link it to the final program later so you +dnl can easier split your program into multiple directories), you need to +dnl uncomment the following line. +dnl AC_PATH_TOOL(AR, ar) + +dnl If you want to build a shared library, you need to call BUILDSYS_LIB. +dnl It will automatically set the required LIB_* and PLUGIN_* variables. +dnl See m4/buildsys.m4 for more details. +dnl Uncomment the following line if you want to build a shared library. +dnl BUILDSYS_LIB +dnl The above line gives the user the possibility to disable shared libraries +dnl and build it as a static one. If you want to enforce shared libraries, use +dnl the line below. The flags for shared libraries will be set to the flags for +dnl static libraries then. Keep in mind that plugins don't work with static +dnl libraries! +dnl BUILDSYS_SHARED_LIB + +dnl If your program uses plugins and should run on win32 as well, you need to +dnl uncomment the following line +dnl BUILDSYS_PROG_IMPLIB + +dnl You need to call this to generate the .deps files required by the buildsys. +BUILDSYS_TOUCH_DEPS + +dnl Set the name of your package here. It will be used in the default include +dnl paths for example. (Can be changed, see buildsys.mk.in for details.) +AC_SUBST(PACKAGE, name) + +dnl If you don't need any extra variables +AC_CONFIG_FILES(buildsys.mk) +dnl If you need any extra variables, they go to extra.mk. +dnl If you use extra variables, comment the line above and uncomment the line +dnl below. +dnl AC_CONFIG_FILES([buildsys.mk extra.mk]) + +dnl Generate config.h if we did some defines. +dnl AC_CONFIG_HEADERS(config.h) + +dnl Write out configure script +AC_OUTPUT