473,795 Members | 2,830 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

please help me a little with autotools

Hi folks,

I am developing a apache2 so module in c++.
At the moment, I'm trying to get it to compile with automake & friends, but
don't get it to work. I tried to modify the example in the programmer-docs.
I created a simple c++ project and deleted the src subdir and copied my
sourcecode files into the basedir.
(That's not where I want to let them in the end, but I thought it might be
easier in the beginning)
Then I copied the sample Makefile.am over the existing one and edited it to
what I thought would fit my needs, but It just didn't work. The autotools
just stopped with error code 2. No more "messages", no "problems".

Could please someone help me to make a working Makefile.am out of the sample
info of my manual makefile? - If you're familiar with the autotools, please
point me into the right direction.

I want to build mod_cms.so, dynamically linked to the apache2 and odbc++
libs.

Many thanks in advance,
yours Henri

8<-------- Sample manual makefile 8<--------8<--------8<--------8<--------

############### ############### ############### ############### #######
# configuring
############### ############### ############### ############### #######
APXS=apxs2
APACHECTL=apach e2ctl

# Get all of apxs's internal values.
APXS_CC=`$(APXS ) -q CC`
APXS_TARGET=`$( APXS) -q TARGET`
APXS_CFLAGS=`$( APXS) -q CFLAGS`
APXS_SBINDIR=`$ (APXS) -q SBINDIR`
APXS_CFLAGS_SHL IB=`$(APXS) -q CFLAGS_SHLIB`
APXS_INCLUDEDIR =`$(APXS) -q INCLUDEDIR`
APXS_LD_SHLIB=` $(APXS) -q LD_SHLIB`
APXS_LIBEXECDIR =`$(APXS) -q LIBEXECDIR`
APXS_LDFLAGS_SH LIB=`$(APXS) -q LDFLAGS_SHLIB`
APXS_SYSCONFDIR =`$(APXS) -q SYSCONFDIR`
APXS_LIBS_SHLIB =`$(APXS) -q LIBS_SHLIB`

############### ############### ############### ############### #######
# compiling
############### ############### ############### ############### #######
mod_cms.o: mod_cms.cpp
libtool g++ -W -c -fPIC -I$(APXS_INCLUDE DIR) -I/usr/include/odbc++ -I. -I-
$(APXS_CFLAGS) $(APXS_CFLAGS_S HLIB) -Wall -o $@ $<

cms_request_dat a.o: cms_request_dat a.cpp
libtool g++ -c -fPIC -I$(APXS_INCLUDE DIR) -I. -I- $(APXS_CFLAGS)
$(APXS_CFLAGS_S HLIB) -Wall -o $@ $<

epcre.o: epcre.cpp
libtool g++ -c -fPIC -I/usr/include -I$(APXS_INCLUDE DIR) -I. -I-
$(APXS_CFLAGS) $(APXS_CFLAGS_S HLIB) -Wall -o $@ `pcre-config --cflags` $<

############### ############### ############### ############### #######
# linking
############### ############### ############### ############### #######
objects = mod_cms.o cms_request_dat a.o epcre.o
mod_cms.so: $(objects)
libtool g++ -W -fPIC -shared -L/usr/lib -lodbc++ `pcre-config --libs`
`pcre-config --cflags` -o $@ $(objects)

8<-------- Sample manual makefile 8<--------8<--------8<--------8<--------

--
| Henri Schomäcker - VIRTUAL HOMES
| Datendesign für Internet und Intranet
| henri.schomaeck er_at_virtual-homes.de
| http://www.virtual-homes.de
| Public Key: /.gnupg/public_key.txt
--
Jul 19 '05
16 2532

"Alf P. Steinbach" wrote: ....

Tja, too busy or what, Alf? ;-)

regards,
alexander.
Jul 19 '05 #11
Kevin Goodsell wrote:
3) Don't attack regulars for politely >>?<< re-directing you.
4. If you don't like my question here: Which one IS the right ng for my
autotools question? - This ng is comp.lang.c++: Every open-source unix
c++ program uses these, so why should this be offtopic?

And that is what is to read in http://www.slack.net/~shiva/welcome.txt

If you can show where it's defined in the C++ standard then we'll admit
your question is topical and apologize. If the C++ standard does not
define it, it is not C++.
...
I don't know about Alf, but my problems with the group mainly consist of
off-topic posters and flame war starters.


I agree absolutely, so the first reply to my question should have been:

"This is just a newsgroup for the C++ standard language and not also for the
used tools. Please ask in comp.haven't_fo und_the_right_o ne_yet."

.... and everyone would get what he/she wants, like the sound in other ng.
I'm also not posting since yesterday.

O.K. thanks, now I got it...
yours Henri

--
| Henri Schomäcker - VIRTUAL HOMES
| Datendesign für Internet und Intranet
| henri.schomaeck er_at_virtual-homes.de
| http://www.virtual-homes.de
| Public Key: /.gnupg/public_key.txt
--
Jul 19 '05 #12
Henri Schomäcker wrote:
Kevin Goodsell wrote:
3) Don't attack regulars for politely >>?<< re-directing you.
4. If you don't like my question here: Which one IS the right ng
for my autotools question? - This ng is comp.lang.c++: Every
open-source unix c++ program uses these, so why should this be
offtopic?

And that is what is to read in http://www.slack.net/~shiva/welcome.txt


This my I-have-to-be-right-whatever-it-takes new friend:
"This is just a newsgroup for the C++ standard language and not also
for the used tools. Please ask in
comp.haven't_fo und_the_right_o ne_yet."

... and everyone would get what he/she wants, like the sound in other
ng. I'm also not posting since yesterday.
Yes. And if morons would first read the FAQ to see what this newsgroup is
for, we would not need to post any redirections, wouldn't we?
O.K. thanks, now I got it...


Does not seem so, but let's leave it at that.

--
WW aka Attila
Jul 19 '05 #13
Alexander Terekhov wrote:
Henri Schomäcker wrote:
[...]
btw: no realname?


Oh NO! Don't get Wolf started on this. And you don't have
"Hungarian to Asshole dictionary" anyway. I guess. ;-) ;-)


Making friends again? ;-)

--
WW aka Attila
Jul 19 '05 #14
Henri Schomäcker wrote:
[SNIP]
Your name gets directly into my blacklist with this reply !!!
You're just destructive and will just be ignored in the future !!!

[SNIP]

Ohh, I have missed that one. How cute. *PLONK*

--
WW aka Attila
Jul 19 '05 #15
Henri Schomäcker wrote:
1. Didn't want to start a flamewar: You do.
2. I read the files!
3. Don't want to and shouldn't have to ask google for a realname of anyone
posting.
4. If you don't like my question here: Which one IS the right ng for my
autotools question? - This ng is comp.lang.c++: Every open-source unix c++
program uses these, so why should this be offtopic? - No, it's not
restrited to unixes: It's also available and used for win32. - I'll use it
for this.

So, what the hell is your problem?

:-| Henri


The issue is that autotools are not available on _every_ platform
and thus are not standard. There were no autotools on my:
tapedrive, postal meter, laser printer, medical ventilator and
vending machine embedded systems that I have worked on. Yes, these
are valid platforms. Just remember that Windows and Unix are not
the only platforms out there.

The easy way to remember what's on topic: If it is in the C++
specification, it's on topic. Other stuff _may_ be on topic,
but be prepared to get flamed.

--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.l earn.c-c++ faq:
http://www.raos.demon.uk/acllc-c++/faq.html
Other sites:
http://www.josuttis.com -- C++ STL Library book
http://www.sgi.com/tech/stl -- Standard Template Library

Jul 19 '05 #16
Thomas Matthews wrote:
Henri Schomäcker wrote:
1. Didn't want to start a flamewar: You do.
[SNIP]
The issue is that autotools are not available on _every_ platform
and thus are not standard. There were no autotools on my:
tapedrive, postal meter, laser printer, medical ventilator and
vending machine embedded systems that I have worked on. Yes, these
are valid platforms. Just remember that Windows and Unix are not
the only platforms out there.

The easy way to remember what's on topic: If it is in the C++
specification, it's on topic. Other stuff _may_ be on topic,
but be prepared to get flamed.


He did not get flamed. He flamed. He has been redirected. He has been
given explanation. Then he started to flame.

--
Attila aka WW
Jul 19 '05 #17

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2611
by: Az Tech | last post by:
Hi people, (Sorry for the somewhat long post). I request some of the people on this group who have good experience using object-orientation in the field, to please give some good ideas for topics to include in a course on object-orientation that I'm going to conduct. (I will later summarize all the replies and discussion, for the
0
1146
by: wcsnyder | last post by:
For those who didn't catch this announcement on the moderated group, I am pleased to announce the initial release of RPSL (Rapid Prototyping Shared Library). RPSL is a set of bash scripts and utility files that coordinate the GNU autotools (automake, autoconf, libtool) and pkg-config for C/C++ build automation. The scripts and procedures define a system for building and linking libraries that supports individual or small group development...
2
1784
by: Lowell Kirsh | last post by:
I don't know much about autotools or Berkeley db (bdb) but they are being used by a program I'm trying to compile and it's causing me problems. The line which is the culprit is in a configure.ac file and it's: AC_CHECK_LIB(db, db_create, ,AC_MSG_ERROR()) This is what ends up causing the configure script to fail. The thing is, I am pretty sure I have the newest bdb installed on my system. I am able to compile the following bdb-dependent...
0
1546
by: NJ | last post by:
MAKE MONEY FAST AND EASY HURRY!!!! Make Money Fast A little while back, I was browsing these newsgroups, just like you are now, and came across an article similar to this that said you could make thousands of dollars within weeks with only an initial investment of $6.00! So I thought," Yeah, right, this must be a scam", but like most of us, but I was curious, so I kept reading. Anyway, it said that you send $1.00 to each of the 6 names and...
21
1990
by: salad | last post by:
Thanks for reading this post and wasting your time. I was thinking about writing about the PCDatasheet vs The Pussyfarts war. The pussyfarts, as near as I can tell, have little to offer this group but pussyfart noise. But I realize if you are going waste your time...the most precious commodity you have, you really shouldn't be reading pussyfart messages. You might want to read a book. There's a good kid book but actually it is a...
1
9657
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej and I was wondering if anyone here would be able to give me some tips for young players such as myself, for learning the language. Is this the best Newsgroup for support with JAVA?
1
1983
by: Jonh Wendell | last post by:
Hi all! I need help with autotools stuff.. My directory structure: project_name src main.py others.py data ui.glade
6
2196
by: shapper | last post by:
Hello, I am creating a form that includes a few JQuery scripts and TinyMCE Editor: http://www.27lamps.com/Beta/Form/Form.html I am having a few problems with my CSS: 1. Restyling the Select
0
9673
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9522
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10216
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10165
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10002
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6783
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5437
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3728
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.