# Copyright (c) 1998-2001 Proofpoint, Inc. and its suppliers.
# All rights reserved.
#
# By using this file, you agree to the terms and conditions set
# forth in the LICENSE file which can be found at the top level of
# the sendmail distribution.
#
#
# $Id: configure.sh,v 8.48 2013-12-02 22:11:07 gshapiro Exp $
#
# Special script to autoconfigure for M4 generation of Makefile
#
os=""
resolver=""
sflag=""
if [ ! -d $bin_dir ]
then
bin_dir="."
fi
while [ ! -z "$1" ]
do
case $1
-s) # skip auto-configure
sflag=1
shift
;;
*) # OS definition
os=$1
shift
;;
esac
done
do
if [ "x$p" = "x" ]
then
p="."
fi
then
then
break;
fi
fi
then
then
break;
fi
fi
done
then
else
fi
then
else
fi
if [ -z "$SOEXT" ]
then
SOEXT=".so"
fi
echo "PUSHDIVERT(0)"
echo "####################################################################"
echo "##### This file is automatically generated -- edit at your own risk"
if [ ! -z "$SITECONFIG" ]
then
fi
echo "####################################################################"
echo ""
echo "POPDIVERT"
echo "define(\`__HOST__', \`$host')dnl"
echo "ifdef(\`confMAPDEF',, \`define(\`confMAPDEF', \`')')dnl"
echo "ifdef(\`confLIBS',, \`define(\`confLIBS', \`')')dnl"
libs=""
mapdef=""
do
do
if [ "x$p" = "x" ]
then
p = "."
fi
then
case $l
db)
;;
if [ -n "$resolver" ]
then
continue
else
resolver=$l
fi
;;
44bsd)
if [ "x$resolver" != "xresolv" ]
then
continue
fi
;;
esac
break
fi
done
done
do
if [ "x$p" = "x" ]
then
p="."
fi
then
echo "ifdef(\`confDEPEND_TYPE',, \`define(\`confDEPEND_TYPE', \`BSD')')dnl"
fi
done
if [ -z "$sflag" ]
then
echo "define(\`confMAPDEF', \`$mapdef' confMAPDEF)dnl"
echo "define(\`confLIBS', \`$libs' confLIBS)dnl"
fi
then
echo "define(\`confRANLIB', \`ranlib')dnl"
fi
roff_progs="groff nroff"
do
then
break;
fi
done
case $found_roff
echo "ifdef(\`confNROFF',,\`define(\`confNROFF', \`$found_roff -Tascii')')dnl"
;;
echo "ifdef(\`confNROFF',,\`define(\`confNROFF', \`$found_roff')')dnl"
;;
*)
echo "ifdef(\`confNROFF',,\`define(\`confNO_MAN_BUILD')')dnl"
;;
esac