diff --git a/configure b/configure index 5a62b626..ea7feb97 100755 --- a/configure +++ b/configure @@ -1,5 +1,5 @@ #!/bin/sh -# $Header: /cvs/maptools/cvsroot/libtiff/configure,v 1.1 1999-07-27 21:50:26 mike Exp $ +# $Header: /cvs/maptools/cvsroot/libtiff/configure,v 1.2 1999-09-08 12:32:18 warmerda Exp $ # # Tag Image File Format (TIFF) Software # @@ -147,7 +147,7 @@ do -target|--target) ac_prev=TARGET;; -target=*|--target=*) TARGET="$ac_optarg" ;; -version|--version) - echo "This is TIFF configure $Revision: 1.1 $" + echo "This is TIFF configure $Revision: 1.2 $" exit 0 ;; -help|--help) usage; exit 0;; @@ -1100,7 +1100,13 @@ if [ "$DSO" = auto ]; then if (findApp rld /lib:/usr/lib:$PATH) >/dev/null 2>&1; then DSOSUF=so DSOLD="${CCOMPILER} ${ENVOPTS}" - DSOOPTS='-shared -rdata_shared -check_registry ${SRCDIR}/port/irix/so_locations -quickstart_info' + if [ $ISGCC = yes ]; then + LIBCOPTS="-fpic" + DSOOPTS='-shared -rdata_shared' + else + LIBCOPTS="-KPIC" + DSOOPTS='-shared -rdata_shared -check_registry ${SRCDIR}/port/irix/so_locations -quickstart_info' + fi DSO=IRIX TIFFLIBREF='-L${DEPTH}/libtiff -rpath '${DIR_LIB}' -ltiff' fi @@ -1158,7 +1164,7 @@ if [ "$DSO" = auto ]; then DSO=LINUX fi ;; - *-osf3*) + *-osf3*|*-osf4*) DSOSUF=so DSOOPTS='-shared' DSO=OSF