FAQ Database Discussion Community


AC_SUBST does not expand variable

autotools,autoconf,automake,m4
Ok, so I am trying to make a project with Autotools, and I am trying to generate parts of my .conf file. The program needs to read from $(pkgdatadir), but I know that it is initialized in Makefile.in, so I instead substitued datadir and PACKAGE. configure.ac: AC_PREREQ([2.69]) AC_INIT([foo], [1.0.0], [[email protected]])...

Can you override the default configure help message generated as part of running autoconf?

configure,autoconf
I would like to modify a configure.ac script so that when I generate it's configure script via autoconf, it will have a custom help message. E.g: $autoconf $./configure --help yields "Hello World" Instead of the default which talks about fine tuning installation directories and modifying build flags. Is this possible?...

How to adapt configure.ac to add a library target in final Makefile?

c,makefile,configure,autoconf,dropbear
I'm trying to get the dropbear ssh C code to build a library instead of a binary. Dropbear is built from generating a configure from configure.ac using autoconf. The configure is then used to generate a Makefile that builds executables. I would like to create a target for the generated...

Laravel 4: mcrypt and autoconf not linked

laravel-4,autoconf,mcrypt
I'm having big problems with mcrypt installation. I followed many tutorials, but it's hopeless. After installing mcrypt, I got the "Mcrypt extension required" error. So I tried to reinstall it using the following command brew install autoconf mcrypt which ended in Warning: autoconf-2.69 already installed, it's just not linked Warning:...

What type of symbols does AC_CHECK_LIB check for?

c,elf,autoconf
I'd like to know what type of symbols does AC_CHECK_LIB check for. If I use readelf -a libsomelib.so it prints me a huge bunch of symbols of different categories, including the one I want to check for in AC_CHECK_LIB. Nevertheless, my AC_CHECK_LIB tells that this library cannot be found. Does...

Missing 'strcasestr.cpp' file when compiling Tesseract 3.03 training tools

make,ocr,tesseract,autoconf
I have managed to build the Tesseract 3.03 rc1 from source. But when I try to build the training tools, which is the very feature I want form 3.03, I got the following error. It seems there should be a strcasestr.cpp file at the vs2010 folder. But the downloaded source...

How to specify different feedback for different platforms if AC_CHECK_HEADER fails in autoconf/configure.ac?

linux,autotools,autoconf,m4
I have a check for a header file in configure.ac in the source root AC_CHECK_HEADER(log4c.h, [], [AC_MSG_ERROR([Couldn't find or include log4c.h])]) and I'd like to give different feedback on different platform to reflect different most straight forward ways of providing the header: on Debian it should error with the message...

Building only a small subset of project using autotools

make,autotools,autoconf
I have a large project using autotools that contains some code that builds into a utility library. The project has quite a few dependencies and I would like to compile a specific subset of that utility library for mobile environments (Android/iOS). I expect a lot of dependencies to be unnecessary...

Where do I get the configure script for PHP source?

php,build,autoconf,buildconfig
I am currently trying to build an extension for PHP via PECL. /Applications/MAMP/bin/php/php5.4.39/bin/pecl install memcached I am using OS X and MAMP, so I got this error. /Applications/MAMP/bin/php/php5.4.39/include/php/Zend/zend.h:51:11: fatal error: 'zend_config.h' file not found Since MAMP is shipping without any header files for PHP, I had to get them manually....

Understanding a bashism in a configure.ac file

bash,autoconf,m4
I am trying to understand a common pattern in a project's configure.ac file. I am fairly sure this is a bashism that I am having a hard time parsing. Here is an example: LDFLAGS="${LDFLAGS:+$LDFLAGS }$OTHERFLAG" The intention seems to be to extend the current value of LDFLAGS by the contents...

Can I extract libtool configuration from automake/autoconf for seperate use?

c++,autoconf,automake,libtool
I have a simple C++ library which uses a short autoconf, automake and libtool to build a shared library object. Now I want to be able to dynamically compile new code at run-time in my program, by: Output code to a temporary file (say /tmp/code.cc) Compile to a library Dynamically...