]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - crypto/openssh/freebsd-configure.sh
Now that we have local modifications in configure.ac and configure, run
[FreeBSD/FreeBSD.git] / crypto / openssh / freebsd-configure.sh
1 #!/bin/sh
2 #
3 # $FreeBSD$
4 #
5
6 configure_args="
7     --prefix=/usr
8     --sysconfdir=/etc/ssh
9     --with-pam
10     --with-tcp-wrappers
11     --with-libedit
12     --with-ssl-engine
13     --without-xauth
14
15
16 set -e
17
18 # make sure configure uses the correct compiler
19 export CC=$(echo ".include <bsd.lib.mk>" | make -f /dev/stdin -VCC)
20 export CPP=$(echo ".include <bsd.lib.mk>" | make -f /dev/stdin -VCPP)
21
22 # regenerate configure and config.h.in
23 autoheader
24 autoconf
25
26 # generate config.h with krb5 and stash it
27 sh configure $configure_args --with-kerberos5
28 mv config.log config.log.orig
29 mv config.h config.h.orig
30
31 # generate config.h without krb5
32 sh configure $configure_args --without-kerberos5
33
34 # extract the difference
35 echo '/* $Free''BSD$ */' > krb5_config.h
36 diff -u config.h.orig config.h |
37         sed -n '/^-#define/s/^-//p' |
38         grep -Ff /dev/stdin config.h.orig >> krb5_config.h