This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.
Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Andreas Jaeger <aj@suse.de> writes: |> >>>>> Andreas Schwab writes: |> |> > Andreas Jaeger <aj@suse.de> writes: |> > |> Or how can we fix this? We could initialize libc_cv_sysconfdir to |> > |> sysconfdir instead of leaving it empty as it's done now - but this way |> > |> the user can't override libc_cv_sysconfdir when using --prefix=/usr |> > |> and I don't see directly how we can check if the user has used the |> > |> prefix. |> |> > If prefix = NONE then --prefix wasn't used. This is true until AC_OUTPUT |> > is called. |> |> Hi Andreas, |> |> I don't understand what you suggest. |> |> Imagine the following configure lines: |> - configure --prefix=/usr -> sysconfdir will be /etc |> - configure --sysconfdir=/etc -> no prefix, sysconfdir should be /etc |> but is indeed currently /usr/local/etc |> - configure --prefix=/test --sysconfdir=/etc -> sysconfdir gets set to |> /test/etc How about this: if test $sysconfdir = '${prefix}/etc'; then libc_cv_sysconfdir=/etc else libc_cv_sysconfdir=$sysconfdir fi Andreas. -- Andreas Schwab "And now for something SuSE Labs completely different." Andreas.Schwab@suse.de SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |