2 # $Id: krb5-config.in,v 1.9 2002/09/09 22:29:06 joda Exp $
11 if test $# -eq 0; then
23 echo "@PACKAGE@ @VERSION@"
24 echo '$Id: krb5-config.in,v 1.9 2002/09/09 22:29:06 joda Exp $'
28 prefix=`echo $i | sed 's/^--prefix=//'`
34 exec_prefix=`echo $i | sed 's/^--exec-prefix=//'`
58 echo "unknown option: $i"
64 if test "$do_usage" = "yes"; then
65 echo "usage: $0 [options] [libraries]"
66 echo "options: [--prefix[=dir]] [--exec-prefix[=dir]] [--libs] [--cflags]"
67 echo "libraries: krb5 gssapi kadm-client kadm-server"
71 if test "$prefix" = ""; then
74 if test "$exec_prefix" = ""; then
75 exec_prefix=@exec_prefix@
79 includedir=@includedir@
81 if test "$print_prefix" = "yes"; then
85 if test "$print_exec_prefix" = "yes"; then
89 if test "$do_libs" = "yes"; then
90 lib_flags="-L${libdir}"
93 lib_flags="$lib_flags -lgssapi"
96 lib_flags="$lib_flags -lkadm5clnt"
99 lib_flags="$lib_flags -lkadm5srv"
102 lib_flags="$lib_flags -lkrb5 -lasn1 @LIB_des_appl@ -lroken"
103 lib_flags="$lib_flags @LIB_crypt@ @LIB_dbopen@ @LIBS@"
106 if test "$do_cflags" = "yes"; then
107 echo "-I${includedir} @INCLUDE_des@"