Hi! Can you create for me the configure.in and Makefile.am
files I need to build this simple program? I'm not a complete
idiot, but I am finding it frusterating to figure out things
like "how do I specify which libraries need to be linked" and
"How do I specify -I include paths in configure.in".
Requirements:
1. The library libInputOutput.a placed in ./libs/
2. Specify whether or not the preprocessor directive NEWLINE
is activated for InputOutput by passing "--with-newline"
to the configure script.
3. After adding COPYING, INSTALL, etc, I am able to
successfully execute these commands:
aclocal
autoconf
automake
./configure
gmake
./wherever/a.out
I am using RedHat 7.3 which includes:
aclocal versions 1.4-p5 & 1.5
automake versions 1.4-p5 & 1.5
autoconf versions 2.13 & 2.5
Yesterday I learned that one version of automake likes
makefiles in AC_CONFIG_FILES() while another likes
AC_OUTPUT(). If you were not aware of this fact, please do
not provide an answer for me (the idea being I want someone
who knows more about this than I do).
I expect you to provide me with at least these files:
./configure.in
./Makefile.am
./InputOutput/Makefile.am
./Application/Makefile.am
Thanks for your help! Oh, and I won't take "RTFM" as an
answer... if I wanted that, I'd go to Usenet! :)
Attachments:
//--------------------------------------
// ./InputOutput/InputOutput.h
//--------------------------------------
void Print(const char* s);
//--------------------------------------
// ./InputOutput/InputOutput.cpp
//--------------------------------------
#include "InputOutput.h"
#include <stdio.h>
void Print(const char* s)
{
#ifdef NEWLINE
printf("%s", s);
#else
printf("%s\n", s);
#endif
}
//--------------------------------------
// ./Application/Application.cpp
//--------------------------------------
#include <InputOutput/InputOutput.h>
int main()
{
Print("Hello World!");
} |