This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: handling of src paths to files in ports/


On Monday 16 April 2012 15:46:31 Andreas Schwab wrote:
> Mike Frysinger writes:
> > as i said in the intro, the current $dest value is relative to the top of
> > the builddir.
> 
> You are right.  It should be using $dir instead.

ah, stupid me.  i completely missed the "dir" variable in the loop logic in 
the main configure file.

how about in the main loop, having it do:
--- a/configure.in
+++ b/configure.in
@@ -2088,7 +2088,10 @@
   esac
   if test -r $dest/configure; then
     AC_MSG_RESULT(running configure fragment for $dir)
+    srcdir=$dir
+    builddir=$dir
     . $dest/configure
+    unset srcdir builddir
   fi
 done
 

this way the variables "dir" and "dest" don't become coded into the 
sysdep/configure "API"
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]