From 03bad0db8fa4775ed2bd187f5126e7b3b076f90a Mon Sep 17 00:00:00 2001 From: Frank Warmerdam Date: Fri, 24 Nov 2000 06:28:10 +0000 Subject: [PATCH] Removed all reference to ALPHAFILE, and DIST_TYPE. Now extracts DIST_POINT from VERSION file. Use DIST_POINT in assigning DSOSUB_VERSION value. --- configure | 38 ++++++++++++-------------------------- 1 file changed, 12 insertions(+), 26 deletions(-) diff --git a/configure b/configure index a6b7a904..a92f5c3d 100755 --- a/configure +++ b/configure @@ -1,5 +1,5 @@ #!/bin/sh -# $Header: /cvs/maptools/cvsroot/libtiff/configure,v 1.8 2000-11-22 14:41:35 warmerda Exp $ +# $Header: /cvs/maptools/cvsroot/libtiff/configure,v 1.9 2000-11-24 06:28:10 warmerda Exp $ # # Tag Image File Format (TIFF) Software # @@ -152,7 +152,7 @@ do -target|--target) ac_prev=TARGET;; -target=*|--target=*) TARGET="$ac_optarg" ;; -version|--version) - echo "This is TIFF configure $Revision: 1.8 $" + echo "This is TIFF configure $Revision: 1.9 $" exit 0 ;; -help|--help) usage; exit 0;; @@ -255,21 +255,11 @@ wrong thing, you can use the information captured here to aid in debugging. EOF -if [ -r $SRCDIR/tiff.alpha ] ; then - VERSIONFILE=$SRCDIR/VERSION - ALPHAFILE=$SRCDIR/tiff.alpha -else - VERSIONFILE=$SRCDIR/VERSION - ALPHAFILE=$SRCDIR/dist/tiff.alpha -fi +VERSIONFILE=$SRCDIR/VERSION DATE=`date` -eval `cat $VERSIONFILE | sed 's/\([0-9][0-9]*\)\.\([0-9][0-9]*\)\(.*\)/DIST_MAJOR=\1; DIST_MINOR=\2; DIST_TYPE=\3/'` -DIST_ALPHA=`awk '{print $3}' $ALPHAFILE` -VERSION="v${DIST_MAJOR}.${DIST_MINOR}${DIST_TYPE}" -if [ $DIST_TYPE = beta ]; then - VERSION="${VERSION}${DIST_ALPHA}" -fi +eval `cat $VERSIONFILE | sed 's/\([0-9][0-9]*\)\.\([0-9][0-9]*\)\.\(.*\)/DIST_MAJOR=\1; DIST_MINOR=\2; DIST_POINT=\3/'` +VERSION="v${DIST_MAJOR}.${DIST_MINOR}.${DIST_POINT}" Note() { @@ -1161,19 +1151,17 @@ if [ "$DSO" = auto ]; then ;; *-freebsd*) DSOSUF=so.${DIST_MAJOR} - DSOSUF_VERSION=${DSOSUF}.${DIST_MINOR}.${DIST_ALPHA} + DSOSUF_VERSION=${DSOSUF}.${DIST_MINOR}.${DIST_POINT} LIBCOPTS='-fPIC' DSOOPTS='-shared' DSO=GNULD ;; *-linux*) - if [ -r /lib/libc.so.6 ] || [ -r /lib/libc.so.5 ]; then - DSOSUF=so.${DIST_MAJOR} - DSOSUF_VERSION=${DSOSUF}.${DIST_MINOR}.${DIST_ALPHA} - LIBCOPTS='-fPIC' - DSOOPTS='-shared' - DSO=GNULD - fi + DSOSUF=so.${DIST_MAJOR} + DSOSUF_VERSION=${DSOSUF}.${DIST_MINOR}.${DIST_POINT} + LIBCOPTS='-fPIC' + DSOOPTS='-shared' + DSO=GNULD ;; *-osf3*|*-osf4*) DSOSUF=so @@ -1712,7 +1700,6 @@ fi # NB: these should be sorted alphabetically cat>>confsed<