11 --without-tcp-wrappers
15 --without-security-key-internal
20 openssh=$(dirname $(realpath $0))
23 # Run autotools before we drop LOCALBASE out of PATH
24 (cd $openssh && libtoolize --copy && autoheader && autoconf)
26 # Ensure we use the correct toolchain and clean our environment
27 export CC=$(echo ".include <bsd.lib.mk>" | make -f /dev/stdin -VCC)
28 export CPP=$(echo ".include <bsd.lib.mk>" | make -f /dev/stdin -VCPP)
29 unset CFLAGS CPPFLAGS LDFLAGS LD_LIBRARY_PATH LIBS
30 export PATH=/bin:/sbin:/usr/bin:/usr/sbin
32 # Generate config.h with krb5 and stash it
33 sh configure $configure_args --with-kerberos5=/usr
34 mv config.log config.log.kerberos5
35 mv config.h config.h.kerberos5
37 # Generate config.h without krb5
38 sh configure $configure_args --without-kerberos5
40 # Extract the difference
41 echo '/* $Free''BSD$ */' > krb5_config.h
42 diff -u config.h.kerberos5 config.h |
43 sed -n '/^-#define/s/^-//p' |
44 grep -Ff /dev/stdin config.h.kerberos5 >> krb5_config.h