automake

How to point autoconf/automake to non-standard packages

匆匆过客 提交于 2019-12-03 13:13:18
问题 I'm trying to build ZooKeeper on a RedHat Linux box. (Exactly what ZooKeeper is is probably not important :-) When I follow the package instructions, I get: $ autoreconf -if aclocal:configure.ac:33: warning: macro `AM_PATH_CPPUNIT' not found in library aclocal:configure.ac:33: warning: macro `AM_PATH_CPPUNIT' not found in library configure.ac:33: error: possibly undefined macro: AM_PATH_CPPUNIT If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf

How to write multiple conditions in Makefile.am with “else if”

寵の児 提交于 2019-12-03 08:04:28
问题 I want to compile my project with autoconf/automake. There are 2 conditions defined in my configure.ac AM_CONDITIONAL(HAVE_CLIENT, test $enable-client -eq 1) AM_CONDITIONAL(HAVE_SERVER, test $enable-server -eq 1) I want to separate _LIBS from these 2 conditions in Makefile.am if HAVE_CLIENT libtest_LIBS = \ $(top_builddir)/libclient.la else if HAVE_SERVER libtest_LIBS = \ $(top_builddir)/libserver.la else libtest_LIBS = endif but else if HAVE_SERVER does NOT work. How to write 'else if' in

Can't turn off gcc optimizer, Makefile from automake

我是研究僧i 提交于 2019-12-03 07:25:18
I am trying to get ZBar in a debug session. I am able to do so, but I can't get the optimizer to turn off, so my debug session jumps around unexpectedly and many variables are labeled as optimized-out in Eclipse Indigo. I am running in Ubuntu. I have tried adding -O0 as far right in any gcc call in the Makefiles as possible, since the last -O is the acting one. I used -Q --help=optimizers to find what to be looking for, but its output is a bit odd: libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -O0 -O0 -Q --help=optimizers -Wall -Wno-parentheses -O0 -g -O0 -Q --help

Any difference between configure.ac and configure.in, and Makefile.am and Makefile.in?

不羁的心 提交于 2019-12-03 04:14:24
问题 I have seen both in different things I have configured. What I the difference? Is it notable to use only one? Or does it not matter which one to use? 回答1: configure.ac and configure.in are two possible names for the master Autoconf source file, which is processed by autoconf to generate the configure shell script. configure.ac is preferred for new packages, configure.in is an older name which still works. (The .in suffix is now recommended to be used only for files which will be processed by

How to point autoconf/automake to non-standard packages

一个人想着一个人 提交于 2019-12-03 03:20:46
I'm trying to build ZooKeeper on a RedHat Linux box. (Exactly what ZooKeeper is is probably not important :-) When I follow the package instructions, I get: $ autoreconf -if aclocal:configure.ac:33: warning: macro `AM_PATH_CPPUNIT' not found in library aclocal:configure.ac:33: warning: macro `AM_PATH_CPPUNIT' not found in library configure.ac:33: error: possibly undefined macro: AM_PATH_CPPUNIT If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. autoreconf: /usr/bin/autoconf failed with exit status: 1 I can't install CPPPUNIT in the standard

Automake error './ltmain.sh' not found

蓝咒 提交于 2019-12-03 03:13:46
问题 I've installed mingw and msys by using mingw-get-setup.exe . I've also installed Autotools(autoconf, automake,m4,libtool) into C:\/opt/autotools . When I run automake, the following error always occurs: configure.ac:11: error: required file './ltmain.sh' not found If I copy ltmain.sh from libtool’s installed tree, execution will finish normally. How can I configuure automake to find ltmain.sh without copying? 回答1: In an autoconf / automake / libtool project you have to invoke: libtoolize :

Error while building Linphone for windows

匿名 (未验证) 提交于 2019-12-03 02:56:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to build linphone for windows by following the instructions in Readme.mingw using MinGw/Msys. There is no issues till the download of belle-sip package. When I run ./autogen.sh I am getting the below error. Generating buildipts in belle-sip... + libtoolize --copy --force libtoolize: $pkgltdldir is not a directory: `/mingw/share/libtool' + aclocal -I /share/aclocal Can't locate Automake/Config.pm in @INC (@INC contains: /mingw/share/automake-1. 11 /usr/lib/perl5/5.8/msys /usr/lib/perl5/5.8 /usr/lib/perl5/site_perl/5.8/msys /usr

How do I specify in a Makefile.am script that I only want to compile object .o files?

我怕爱的太早我们不能终老 提交于 2019-12-03 02:35:01
I have a Makefile.am which will be responsible for building a final application binary: project/src/Makefile.am Also in the src directory is a sub-directory called ctrnn which contains an additional Makefile.am : project/src/ctrnn/Makefile.am Now, ctrnn/Makefile.am should only generate object .o files with the idea being that the top-level Makefile.am should use the object files generated in subdirectory ctrnn to build the binary. This is the ctrnn/Makefile.am : SOURCES = network.cpp\ neuron.cpp AM_CPPFLAGS= @CXXFLAGS@ Based on this Makefile.am file, I want to end up with network.o and neuron

What is the difference between LDADD and LIBADD?

只愿长相守 提交于 2019-12-03 02:21:53
问题 I'm trying to setup an automake project that uses a mix of libtool libraries and exectuables, and I'm having a hard time grokking the automake documentation, esp. as relates to telling the compiler to link against. So can someone explain the differences between LDADD and LIBADD ? Things like: when is one used over the other, which one takes -lname_of_library style values vs. direct filenames, etc. Whenever I try to read the relevant documentation, it seems like it assumes that I know things

autoconf/automake: conditional compilation based on presence of library?

假如想象 提交于 2019-12-03 00:44:29
I need to conditionally compile some code based on the presence of a library. Seems like this should be easy with autoconf/automake but I can't figure it out. For example, if there is a PNG library present, I want to include code to use it. My configure.ac has: AC_CHECK_LIB([png], [png_create_write_struct_2]) and my Makefile.am has: if USE_LIBPNG libdev_la_SOURCES += png.c endif (which adds png.c to the list of sources for libdev so it gets compiled). An automake conditional like USE_LIBPNG requires the conditional be defined in configure.ac, so i need: AM_CONDITIONAL([USE_LIBPNG], [test