curl-users
RE: 7.9.5-pre4
Date: Wed, 27 Feb 2002 16:08:42 +0100 (MET)
On Wed, 27 Feb 2002, Roth, Kevin P. wrote:
> At least on cygwin, I can no longer build in a sub-directory. I usually
> make a 'bld' directory just underneath the curl source root, and build in
> there (e.g. ../configure). This has always worked in the past, but now I
> get a problem from lib/setup.h complaining that it can't find
> "../../lib/config.h".
>
> Can you try building in a subdirectory like this, and see whether there
> might be an easy fix?
Thanks for the report!
If you have automake installed, there is an easy fix, yes. With the patch
below I could again build outside the sourcedir. Apply patch, run 'automake'
in the sourcedir, run './config.status' in the buildddir. Then rerun 'make'.
Without automake, lean back and await the next release for this to work. :-)
Index: lib/Makefile.am
===================================================================
RCS file: /cvsroot/curl/curl/lib/Makefile.am,v
retrieving revision 1.34
diff -u -r1.34 Makefile.am
--- lib/Makefile.am 25 Feb 2002 14:08:18 -0000 1.34
+++ lib/Makefile.am 27 Feb 2002 15:07:19 -0000
@@ -12,7 +12,9 @@
lib_LTLIBRARIES = libcurl.la
-INCLUDES = -I$(top_srcdir)/include
+# we use srcdir/include for the static global include files
+# we use builddir/lib for the generated lib/config.h file to get found
+INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/lib
libcurl_la_LDFLAGS = -no-undefined -version-info 2:2:0
# This flag accepts an argument of the form current[:revision[:age]]. So,
Index: src/Makefile.am
===================================================================
RCS file: /cvsroot/curl/curl/src/Makefile.am,v
retrieving revision 1.18
diff -u -r1.18 Makefile.am
--- src/Makefile.am 25 Feb 2002 14:08:19 -0000 1.18
+++ src/Makefile.am 27 Feb 2002 15:07:19 -0000
@@ -4,7 +4,9 @@
AUTOMAKE_OPTIONS = foreign nostdinc
-INCLUDES = -I$(top_srcdir)/include
+# we use srcdir/include for the static global include files
+# we use builddir/src for the generated src/config.h file to get found
+INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/src
bin_PROGRAMS = curl #memtest
-- Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/Received on 2002-02-27