configure (zutils-1.8.tar.lz) | : | configure (zutils-1.9.tar.lz) | ||
---|---|---|---|---|
#! /bin/sh | #! /bin/sh | |||
# configure script for Zutils - Utilities dealing with compressed files | # configure script for Zutils - Utilities dealing with compressed files | |||
# Copyright (C) 2009-2019 Antonio Diaz Diaz. | # Copyright (C) 2009-2020 Antonio Diaz Diaz. | |||
# | # | |||
# This configure script is free software: you have unlimited permission | # This configure script is free software: you have unlimited permission | |||
# to copy, distribute and modify it. | # to copy, distribute, and modify it. | |||
pkgname=zutils | pkgname=zutils | |||
pkgversion=1.8 | pkgversion=1.9 | |||
srctrigger=doc/${pkgname}.texi | srctrigger=doc/${pkgname}.texi | |||
# clear some things potentially inherited from environment. | # clear some things potentially inherited from environment. | |||
LC_ALL=C | LC_ALL=C | |||
export LC_ALL | export LC_ALL | |||
srcdir= | srcdir= | |||
prefix=/usr/local | prefix=/usr/local | |||
exec_prefix='$(prefix)' | exec_prefix='$(prefix)' | |||
bindir='$(exec_prefix)/bin' | bindir='$(exec_prefix)/bin' | |||
datarootdir='$(prefix)/share' | datarootdir='$(prefix)/share' | |||
skipping to change at line 31 | skipping to change at line 31 | |||
mandir='$(datarootdir)/man' | mandir='$(datarootdir)/man' | |||
sysconfdir='$(prefix)/etc' | sysconfdir='$(prefix)/etc' | |||
CXX=g++ | CXX=g++ | |||
CPPFLAGS= | CPPFLAGS= | |||
CXXFLAGS='-Wall -W -O2' | CXXFLAGS='-Wall -W -O2' | |||
LDFLAGS= | LDFLAGS= | |||
DIFF=diff | DIFF=diff | |||
GREP=grep | GREP=grep | |||
# checking whether we are using GNU C++. | # checking whether we are using GNU C++. | |||
/bin/sh -c "${CXX} --version" > /dev/null 2>&1 || | /bin/sh -c "${CXX} --version" > /dev/null 2>&1 || { CXX=c++ ; CXXFLAGS=-O2 ; } | |||
{ | ||||
CXX=c++ | ||||
CXXFLAGS=-O2 | ||||
} | ||||
# Loop over all args | # Loop over all args | |||
args= | args= | |||
no_create= | no_create= | |||
while [ $# != 0 ] ; do | while [ $# != 0 ] ; do | |||
# Get the first arg, and shuffle | # Get the first arg, and shuffle | |||
option=$1 ; arg2=no | option=$1 ; arg2=no | |||
shift | shift | |||
# Add the argument quoted to args | # Add the argument quoted to args | |||
args="${args} \"${option}\"" | if [ -z "${args}" ] ; then args="\"${option}\"" | |||
else args="${args} \"${option}\"" ; fi | ||||
# Split out the argument for options that take them | # Split out the argument for options that take them | |||
case ${option} in | case ${option} in | |||
*=*) optarg=`echo ${option} | sed -e 's,^[^=]*=,,;s,/$,,'` ;; | *=*) optarg=`echo "${option}" | sed -e 's,^[^=]*=,,;s,/$,,'` ;; | |||
esac | esac | |||
# Process the options | # Process the options | |||
case ${option} in | case ${option} in | |||
--help | -h) | --help | -h) | |||
echo "Usage: $0 [OPTION]... [VAR=VALUE]..." | echo "Usage: $0 [OPTION]... [VAR=VALUE]..." | |||
echo | echo | |||
echo "To assign makefile variables (e.g., CXX, CXXFLAGS...), spec ify them as" | echo "To assign makefile variables (e.g., CXX, CXXFLAGS...), spec ify them as" | |||
echo "arguments to configure in the form VAR=VALUE." | echo "arguments to configure in the form VAR=VALUE." | |||
echo | echo | |||
skipping to change at line 137 | skipping to change at line 134 | |||
fi | fi | |||
done | done | |||
# Find the source files, if location was not specified. | # Find the source files, if location was not specified. | |||
srcdirtext= | srcdirtext= | |||
if [ -z "${srcdir}" ] ; then | if [ -z "${srcdir}" ] ; then | |||
srcdirtext="or . or .." ; srcdir=. | srcdirtext="or . or .." ; srcdir=. | |||
if [ ! -r "${srcdir}/${srctrigger}" ] ; then srcdir=.. ; fi | if [ ! -r "${srcdir}/${srctrigger}" ] ; then srcdir=.. ; fi | |||
if [ ! -r "${srcdir}/${srctrigger}" ] ; then | if [ ! -r "${srcdir}/${srctrigger}" ] ; then | |||
## the sed command below emulates the dirname command | ## the sed command below emulates the dirname command | |||
srcdir=`echo $0 | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'` | srcdir=`echo "$0" | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'` | |||
fi | fi | |||
fi | fi | |||
if [ ! -r "${srcdir}/${srctrigger}" ] ; then | if [ ! -r "${srcdir}/${srctrigger}" ] ; then | |||
echo "configure: Can't find sources in ${srcdir} ${srcdirtext}" 1>&2 | echo "configure: Can't find sources in ${srcdir} ${srcdirtext}" 1>&2 | |||
echo "configure: (At least ${srctrigger} is missing)." 1>&2 | echo "configure: (At least ${srctrigger} is missing)." 1>&2 | |||
exit 1 | exit 1 | |||
fi | fi | |||
# Set srcdir to . if that's what it is. | # Set srcdir to . if that's what it is. | |||
skipping to change at line 160 | skipping to change at line 157 | |||
echo | echo | |||
if [ -z "${no_create}" ] ; then | if [ -z "${no_create}" ] ; then | |||
echo "creating config.status" | echo "creating config.status" | |||
rm -f config.status | rm -f config.status | |||
cat > config.status << EOF | cat > config.status << EOF | |||
#! /bin/sh | #! /bin/sh | |||
# This file was generated automatically by configure. Don't edit. | # This file was generated automatically by configure. Don't edit. | |||
# Run this file to recreate the current configuration. | # Run this file to recreate the current configuration. | |||
# | # | |||
# This script is free software: you have unlimited permission | # This script is free software: you have unlimited permission | |||
# to copy, distribute and modify it. | # to copy, distribute, and modify it. | |||
exec /bin/sh $0 ${args} --no-create | exec /bin/sh $0 ${args} --no-create | |||
EOF | EOF | |||
chmod +x config.status | chmod +x config.status | |||
fi | fi | |||
echo "creating Makefile" | echo "creating Makefile" | |||
echo "VPATH = ${srcdir}" | echo "VPATH = ${srcdir}" | |||
echo "prefix = ${prefix}" | echo "prefix = ${prefix}" | |||
echo "exec_prefix = ${exec_prefix}" | echo "exec_prefix = ${exec_prefix}" | |||
skipping to change at line 185 | skipping to change at line 182 | |||
echo "sysconfdir = ${sysconfdir}" | echo "sysconfdir = ${sysconfdir}" | |||
echo "CXX = ${CXX}" | echo "CXX = ${CXX}" | |||
echo "CPPFLAGS = ${CPPFLAGS}" | echo "CPPFLAGS = ${CPPFLAGS}" | |||
echo "CXXFLAGS = ${CXXFLAGS}" | echo "CXXFLAGS = ${CXXFLAGS}" | |||
echo "LDFLAGS = ${LDFLAGS}" | echo "LDFLAGS = ${LDFLAGS}" | |||
echo "DIFF = ${DIFF}" | echo "DIFF = ${DIFF}" | |||
echo "GREP = ${GREP}" | echo "GREP = ${GREP}" | |||
rm -f Makefile | rm -f Makefile | |||
cat > Makefile << EOF | cat > Makefile << EOF | |||
# Makefile for Zutils - Utilities dealing with compressed files | # Makefile for Zutils - Utilities dealing with compressed files | |||
# Copyright (C) 2009-2019 Antonio Diaz Diaz. | # Copyright (C) 2009-2020 Antonio Diaz Diaz. | |||
# This file was generated automatically by configure. Don't edit. | # This file was generated automatically by configure. Don't edit. | |||
# | # | |||
# This Makefile is free software: you have unlimited permission | # This Makefile is free software: you have unlimited permission | |||
# to copy, distribute and modify it. | # to copy, distribute, and modify it. | |||
pkgname = ${pkgname} | pkgname = ${pkgname} | |||
pkgversion = ${pkgversion} | pkgversion = ${pkgversion} | |||
VPATH = ${srcdir} | VPATH = ${srcdir} | |||
prefix = ${prefix} | prefix = ${prefix} | |||
exec_prefix = ${exec_prefix} | exec_prefix = ${exec_prefix} | |||
bindir = ${bindir} | bindir = ${bindir} | |||
datarootdir = ${datarootdir} | datarootdir = ${datarootdir} | |||
infodir = ${infodir} | infodir = ${infodir} | |||
mandir = ${mandir} | mandir = ${mandir} | |||
End of changes. 10 change blocks. | ||||
14 lines changed or deleted | 11 lines changed or added |