autoconf

Why doesn't autoconf pass the AC_CHECK_HEADER test when the .h is file clearly available?

偶尔善良 提交于 2019-12-05 18:58:30
问题 I am having a bear of a time getting autoconf to check for the presence of a particular header file. Let's call the header dependency "inky.h", and let's say that inky is a library that was installed (seperately) with the prefix set to "/usr/local". This put "inky.h" in /usr/local/inky/inky.h and libinky.so in /usr/local/lib. Now, I'm trying to verify the presence of inky.h in my applications configure.ac as follows: dnl # Setup temp LDFLAGS and look for inky library/header LDFLAGS_SAVE=$

What is the best way to set compilation flags for individual source files using GCC and autotools?

强颜欢笑 提交于 2019-12-05 17:57:22
I need to disable optimization flag for a individual file using autotools. What is the best way to do it? Do you mean an individual source file or an individual executable? To disable optimization for an executable is simple: bin_PROGRAMS = myprog myprog_SOURCES = foo.c bar.c myprog_CFLAGS = -O0 If you mean that you want to disable the optimization for a single source file temporarily , say for debugging purposes, you can just remake that file at the prompt: (example from the automake manual) rm bar.o make CFLAGS=-O0 bar.o make To do it for an individual source file permanently is not so

update autoconf to at least 2.6

岁酱吖の 提交于 2019-12-05 17:13:35
I have autoconf 2.59 on CentOS 5.5 and need to upgrade to autoconf 2.6. What is the best approach for this? I tried yum update autoconf but theres no luck I'd get it from RPMForge or ATrpms, but I don't see that they have it either. Some other CentOS 3rd party repository might. Download GNU Autoconf and build it. You can get the RPM here: http://rpm.pbone.net/index.php3/stat/4/idpl/15945938/dir/redhat_el_5/com/autoconf26x-2.63-4.ius.el5.noarch.rpm.html And install it with YUM: yum install something.i586.rpm vidur punj Go to: http://ftp.gnu.org/gnu/autoconf/ download binary and install 来源:

`./configure` options for cross compile?

…衆ロ難τιáo~ 提交于 2019-12-05 12:42:02
As far as I know, ./configure script is generated with GNU Autoconf . I don't know about Autoconf at all. How do these tools work, and how can I use this ./configure script to make source to cross-compile? This is a pretty good little article to read on how to cross-compile: http://linux.bytesex.org/cross-compiler.html . The main part in cross-compiling is setting the configure flags for the compiler to poinst to the target architecture and platform: ./configure --target=sparc-linux --with-gnu-as i486-redhat-linux This might be outdated (modified copy & paste from that article), but the same

Autoconf uses wrong AR on OS X

橙三吉。 提交于 2019-12-05 12:36:05
I'm testing on OS X. We have a configure.ac and Makefile.am . Autotools is selecting the wrong AR and ARFLAGS for the platform. It happens with (and without) AM_PROG_AR in Makefile.am : $ egrep 'AR =|ARFLAGS =' Makefile AMTAR = $${TAR-tar} AR = ar ac_ct_AR = ar Autoconf should be using Apple's libtool (not to be confused Autotools' libtool ) and libtool 's flags. Apple's libtool properly handles fat libraries and cross-compiles. It should be something like : AR = /usr/bin/libtool ARFLAGS = -static -o Apple's Porting UNIX/Linux Applications to OS X does not discuss the topic, and I can't find

AS_IF and AC_MSG_ERROR: error: possibly undefined macro

醉酒当歌 提交于 2019-12-05 08:12:34
I encounter such errors when trying to build libnice-0.1.10. For solution, I am following possibly undefined macro: AC_MSG_ERROR , but still not getting there. some program version uname: 3.5.0-23-generic m4: 1.4.16 automake: 1.14.1 autoconf: 2.69 libtoolize: 2.4.2 I also add ACLOCAL_FLAGS="-I /.../share/aclocal" in bashrc. Here is what is reported from autogen. $ ./autogen.sh configure.ac:331: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd m4/gtk-doc.m4:7: GTK_DOC_CHECK is expanded from... configure.ac:331: the top level configure.ac:331: warning: PKG_PROG_PKG_CONFIG is m4

How to install and use libtool shared library (.lo files)?

久未见 提交于 2019-12-05 02:43:24
问题 So after I ran libtool and got out a libfoo.lo and foo.o file from my library source, how do I convert the libfoo.lo file into a normal Linux shared library, like libfoo.so.1.0.0 so I can install and link to it on my target system? 回答1: From the outputs mentioned in the question, it looks like you ran libtool with --mode=compile mode. You will need to run libtool again with --mode=link to produce .a and .so libraries. libtool is just a simple wrapper for gcc, ln ar and ranlib which is needed

What is ltmain.sh, and why does automake say it is missing? What is a good auto (make/conf/etc) generator?

若如初见. 提交于 2019-12-05 01:55:51
问题 I just want to develop a C app in linux with the auto(make/conf/...) stuff automatically generated. I tried generating it with ede and anjuta, but it doesn't seem to generate Makefile.am. So, I tried running automake, and it says "ltmain.sh" isn't found. Is there some easy to generate the basic build files for linux C/C++ apps. What is the standard practice? Do most people write these files themselves? 回答1: Generating a really trivial set of autotool files is pretty easy. Here's a (really

How to get a configure script to look for a library

我的梦境 提交于 2019-12-04 18:34:33
I'm trying to write a configure.ac file such that the resulting configure script searches for a library directory containing a given static library e.g. libsomething.a. How can I do this? At the moment I have it check just one location with: AC_CHECK_FILE([/usr/local/lib/libsomething.a],[AC_SUBST(libsomething,"-L/usr/local/lib -lsomething")],[AC_SUBST(libcfitsio,'')]) But I want it to try and find it automatically. And if the library isn't in one of the default locations, I'd like configure to say that the library wasn't found and that a custom location can be specified with --use-something

How to upgrade openssl 0.9.8 to 1.0.2 with mod_ssl in Apache 2.2.9

血红的双手。 提交于 2019-12-04 17:36:56
I am asked to recompile mo_ssl with openssl 1.0.2 in SuseSE11SP3. However, I am a newbie to Suse, but know a little bit of linux. OS : Suse SE11SP3 Openssl : 0.9.8j <-which comes with original Suse linux Web Server : Apache httpd 2.2.9 Here is limitation I have. I cannot use zypper or rpm because company security policy does not allow me to do it. It is absurd, this is how it goes here. Another limitation I have is this system is used by other web servers which I don't have permission. I have to make it as locally as possible. What I want it to happen is that when I recompile apache server, I