Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Sep 1998 15:48:48 -0600 (MDT)
From:      Brett Taylor <brett@peloton.physics.montana.edu>
To:        freebsd-ports@FreeBSD.ORG
Subject:   configure script question
Message-ID:  <Pine.BSF.4.02A.9809111540490.8167-100000@peloton.physics.montana.edu>

next in thread | raw e-mail | index | archive | help
Hi all,

I'm trying to get the beta version of AfterStep-1.5 running so that it'll
be easier for me to update the port when the real version comes out and to
check for any gotcha's.  I found one....  :-)

They are using a configure script to find -ljpeg and it's not finding it
on FreeBSD...   I'm sure it's due to the way we name the shared libs, but
I have no clue on how to fix the configure script so it finds it.  Below
is the bit of the configure script that does the -ljpeg test.  If someone
can help me to figure out how to get this straightened out I'd really
appreciate it!

Thanks a lot!

Brett
-------------------------------------------------------------------------
echo "configure:2613: checking for jpeg_destroy_compress in -ljpeg" >&5
ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-ljpeg  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2621 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char jpeg_destroy_compress();

int main() {
jpeg_destroy_compress()
; return 0; }
EOF
if { (eval echo configure:2632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5;
} && test -s conftest; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  JPEG_LIB="-ljpeg" HAVEJPEG="JPEG"
else
  echo "$ac_t""no" 1>&6
fi


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message



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