Deleted Added
full compact
freebsd-configure.sh (294330) freebsd-configure.sh (294494)
1#!/bin/sh
2#
1#!/bin/sh
2#
3# $FreeBSD: head/crypto/openssh/freebsd-configure.sh 294330 2016-01-19 17:20:07Z des $
3# $FreeBSD: head/crypto/openssh/freebsd-configure.sh 294494 2016-01-21 10:57:45Z des $
4#
5
6configure_args="
7 --prefix=/usr
8 --sysconfdir=/etc/ssh
9 --with-pam
4#
5
6configure_args="
7 --prefix=/usr
8 --sysconfdir=/etc/ssh
9 --with-pam
10 --with-ssl-dir=/usr
10 --with-tcp-wrappers
11 --with-libedit
12 --with-ssl-engine
13 --without-xauth
14"
15
16set -e
17
18# make sure configure uses the correct compiler
19export CC=$(echo ".include <bsd.lib.mk>" | make -f /dev/stdin -VCC)
20export CPP=$(echo ".include <bsd.lib.mk>" | make -f /dev/stdin -VCPP)
11 --with-tcp-wrappers
12 --with-libedit
13 --with-ssl-engine
14 --without-xauth
15"
16
17set -e
18
19# make sure configure uses the correct compiler
20export CC=$(echo ".include <bsd.lib.mk>" | make -f /dev/stdin -VCC)
21export CPP=$(echo ".include <bsd.lib.mk>" | make -f /dev/stdin -VCPP)
22unset CFLAGS CPPFLAGS LDFLAGS LIBS
21
22# regenerate configure and config.h.in
23autoheader
24autoconf
25
23
24# regenerate configure and config.h.in
25autoheader
26autoconf
27
28# reset PATH to avoid picking up the wrong libraries
29export PATH=/bin:/sbin:/usr/bin:/usr/sbin
30unset LD_LIBRARY_PATH
31
26# generate config.h with krb5 and stash it
27sh configure $configure_args --with-kerberos5
28mv config.log config.log.orig
29mv config.h config.h.orig
30
31# generate config.h without krb5
32sh configure $configure_args --without-kerberos5
33
34# extract the difference
35echo '/* $Free''BSD$ */' > krb5_config.h
36diff -u config.h.orig config.h |
37 sed -n '/^-#define/s/^-//p' |
38 grep -Ff /dev/stdin config.h.orig >> krb5_config.h
32# generate config.h with krb5 and stash it
33sh configure $configure_args --with-kerberos5
34mv config.log config.log.orig
35mv config.h config.h.orig
36
37# generate config.h without krb5
38sh configure $configure_args --without-kerberos5
39
40# extract the difference
41echo '/* $Free''BSD$ */' > krb5_config.h
42diff -u config.h.orig config.h |
43 sed -n '/^-#define/s/^-//p' |
44 grep -Ff /dev/stdin config.h.orig >> krb5_config.h