1 #! /bin/sh 2 # Remove the files created by this script before running it. 3 #rm -f config.cache config.status config.log 4 rm -f src/Makefile include/autoconf.h 5 6 if test ! -f configure 7 then 8 autoconf 9 fi 10 11 OUT=td-conf.out 12 cat >>$OUT <<EOF/ 13 ** `date` 14 ** node: `uname -a` 15 ** from: `pwd` 16 ** user: `id` 17 ** conf: $* 18 EOF/ 19 OPTS="$*" 20 21 CC="${CC-cc}" 22 23 # set 24 # --with-domain-name=doma.in 25 # and 26 # --with-nntp-default-server=news.doma.in 27 # to your local needs 28 # if your like to use pgp and you have more then method installed on your 29 # system _disable_ two of the three offered pgp/pgp supports, i.e. use: 30 # -without-pgpk --without-gpg 31 # for pgp-2 support 32 33 if test -z "$SHELL"; then 34 case `./config.guess` in 35 *solaris2.10) 36 SHELL=/usr/xpg4/bin/sh 37 ;; 38 *) 39 SHELL=/bin/sh 40 ;; 41 esac 42 else 43 case "$SHELL" in 44 *[cz]sh) 45 SHELL=/bin/sh 46 ;; 47 esac 48 fi 49 50 echo "Making with $CC $CFLAGS" 51 CFLAGS="$CFLAGS" \ 52 CC="$CC" \ 53 $SHELL ./configure --verbose \ 54 --disable-echo \ 55 --enable-prototypes \ 56 --enable-nntp-only \ 57 --with-nntps \ 58 --with-pcre2-config \ 59 --with-domain-name=/etc/NNTP_INEWS_DOMAIN \ 60 --with-coffee \ 61 $OPTS $* 2>&1 |tee -a $OUT