LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Need help with configure.in and Makefile.am (https://www.linuxquestions.org/questions/linux-newbie-8/need-help-with-configure-in-and-makefile-am-391562/)

STEBEL 12-11-2005 12:58 PM

Need help with configure.in and Makefile.am
 
Hi

I have a tiny HelloWorld like app written in C++. Let's call it app.cc

The app will be using firing a few perl scripts and save data to paricular folder locations. Additionaly, basing on given parameters during installation, it should generate same files consisting of those params.

My files look like these:

Makefile.am
Quote:

bin_PROGRAMS = app
AM_CXXFLAGS = $(INTI_CFLAGS)
app_SOURCES = app.cc
app_LDADD = $(INTI_LIBS)
configure.in
Quote:

AC_INIT(app.cc)
PACKAGE=test
VERSION=1.0
AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
AC_SUBST(INTI_CFLAGS)
AC_SUBST(INTI_LIBS)
AC_PROG_CXX
AC_OUTPUT(Makefile Makefile)
What I need o achieve

1. Currently when giving ./configure --prefix /var/test the whole process generates additional dir app inside /var/test/bin/app - I need it to be /var/test/app

2. What commands and where should I put them to make the scripts copy/create dirs given by params to configure or make.

3. How can I make scripts automatically create files basing on passed params.

Thanks in advance for any help given :)

foo_bar_foo 12-11-2005 01:14 PM

you just have to go with the way it works or find a configure system you like better
i would imagine that one is set up to use --exec_prefix=

always do ./configure --help on your configure script to see how it works


All times are GMT -5. The time now is 10:45 AM.