Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Mar 1997 16:46:22 -0800 (PST)
From:      Scott Overholser <scotto@remuda.com>
To:        freebsd-hackers@freebsd.org
Subject:   2.2.0-R and HylaFAX configure script
Message-ID:  <Pine.NEB.3.93.970328161718.12121A-100000@popeye.remuda.com>

next in thread | raw e-mail | index | archive | help
I've been experiencing problems installing HylaFAX 4.0pl1 on a FreeBSD
2.2.0-R system.  The configure /bin/sh script generates makefiles based on
information it gathers about the system on which it is run.

The problem is that configure does not work properly on 2.2.0-R.  Fer
instance, there are two functions defined called CheckForLibrary() and
CheckForIncludeFile() that attempt to compile small bits of code.  These
functions are called to determine whether or not the system supports 
SGI RGB images (among other things).  

configure generates a log file which clearly shows the compiles failing.
Somehow, configure thinks it succeeds.  

I've done some sanity checking on 2.1.7-R.  Everything is just peachy.
I've searched the HylaFAX archives as well as the FreeBSD archives.  It
doesn't appear that this issue is being discussed.  I've reproduced it on
two different 2.2.0-R systems.

I'm not a shell script guru but this one looks okay to me.  Is /bin/sh
behaving strangely?  Or, perhaps make?  I've included snippets of the
configure shell script and corresponding logfile below.

Ideas?  Suggestions?  btw:  the tiff library required for HylaFAX has a
similar configure shell script that behaves the same way.

thanks,
-scotto


---------->%snip>%----------
CheckForLibrary()
{
    f=$1; shift
    libs="$@";
    cat>t.c<<EOF
int t() { $f(); return 0; }
int main(){ t(); return 0; }
EOF
    runMake t "t:; ${CCOMPILER} ${ENVOPTS} t.c $libs"
}

#
# Look for an include file.
#
CheckForIncludeFile()
{
    (for i do
        echo "#include \"$i\""
     done)>t.c
    runMake t "t:; ${CCOMPILER} ${ENVOPTS} -E t.c"
}

if [ "$LIBIMAGE" = auto ]; then
    if CheckForLibrary iopen -limage && CheckForIncludeFile gl/image.h;
then
        Note "Looks like there is support for SGI RGB images."
        LIBIMAGE=yes
    else
        LIBIMAGE=no
    fi
---------->%snip>%----------

---------->%snip>%----------
+ eval set -x; make -f confMakefile t
+ set -x
+ make -f confMakefile t
/usr/bin/gcc  t.c -limage
ld: -limage: no match
*** Error code 1

Stop.
+ eval set -x; make -f confMakefile t
+ set -x
+ make -f confMakefile t
/usr/bin/gcc  -E t.c
t.c:1: gl/image.h: No such file or directory
# 1 "t.c"

*** Error code 1

Stop.
---------->%snip>%----------




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.93.970328161718.12121A-100000>