Bill Allombert on Thu, 5 Sep 2002 17:21:07 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: problem configuring under FreeBSD-4.6


On Tue, Aug 13, 2002 at 07:04:22PM -0400, Igor Schein wrote:
> Hi,
> 
> using latest CVS,
> 
> % sed -n 600,611p Configure
> # Which C PreProcessor ?
> #
> case "$osname" in
>   nextstep) cppfl="-traditional-cpp" ;;
>   freebsd)
>     if test $PORTOBJFORMAT = "elf"; then
>       cppfl="-DUSE_ELF"
>       FREEBSD_ELF=1
>     else
>       FREEBSD_ELF=0
>     fi ;;
> esac
> 
> $PORTOBJFORMAT is nowhere defined, so test gives an error.  I'm not
> sure what was the original intention of this piece of code, and I've
> never used FreeBSD before.

It is probably a remnant of a a.out/ELF transition.
Nowadays, it is probably obsolete. Try this patch:

diff -u -r1.85 Configure
--- Configure   2002/07/01 20:53:59     1.85
+++ Configure   2002/09/05 15:20:08
@@ -602,7 +602,7 @@
 case "$osname" in
   nextstep) cppfl="-traditional-cpp" ;;
   freebsd)
-    if test $PORTOBJFORMAT = "elf"; then
+    if test "$PORTOBJFORMAT" = "elf"; then
       cppfl="-DUSE_ELF"
       FREEBSD_ELF=1
     else

Cheers,

Bill.