~ubuntu-branches/ubuntu/maverick/krb5/maverick

« back to all changes in this revision

Viewing changes to src/appl/telnet/configure

  • Committer: Bazaar Package Importer
  • Author(s): Sam Hartman
  • Date: 2009-05-07 16:16:34 UTC
  • mfrom: (13.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20090507161634-xqyk0s9na0le4flj
Tags: 1.7dfsg~beta1-4
When  decrypting the TGS response fails with the subkey, try with the
session key to work around Heimdal bug, Closes: #527353 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.59 for Kerberos 5 1.6.4-beta1.
 
3
# Generated by GNU Autoconf 2.59 for Kerberos 5 1.7-beta1.
4
4
#
5
5
# Report bugs to <krb5-bugs@mit.edu>.
6
6
#
7
 
# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
7
# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2009
8
8
# Massachusetts Institute of Technology.
9
9
#
10
10
#
273
273
# Identity of this package.
274
274
PACKAGE_NAME='Kerberos 5'
275
275
PACKAGE_TARNAME='krb5'
276
 
PACKAGE_VERSION='1.6.4-beta1'
277
 
PACKAGE_STRING='Kerberos 5 1.6.4-beta1'
 
276
PACKAGE_VERSION='1.7-beta1'
 
277
PACKAGE_STRING='Kerberos 5 1.7-beta1'
278
278
PACKAGE_BUGREPORT='krb5-bugs@mit.edu'
279
279
 
280
280
ac_unique_file="configure.in"
315
315
# include <unistd.h>
316
316
#endif"
317
317
 
318
 
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS EXTRA_FILES CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT HAVE_GCC CPP LD KRB4_INCLUDES KRB4_LIBPATH KRB4_LIB KRB4_DEPLIB KRB_ERR_H_DEP DES425_DEPLIB DES425_LIB compile_et COM_ERR_VERSION SS_LIB SS_VERSION DB_HEADER DB_LIB DB_VERSION DB_HEADER_VERSION KDB5_DB_LIB HESIOD_DEFS HESIOD_LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CONFIG_RELTOPDIR subdirs OPENLDAP_PLUGIN build build_cpu build_vendor build_os host host_cpu host_vendor host_os krb5_cv_host acx_pthread_config PTHREAD_CC PTHREAD_LIBS PTHREAD_CFLAGS THREAD_SUPPORT DL_LIB EGREP LIBOBJS SETENVSRC SETENVOBJ LN_S RANLIB ac_ct_RANLIB ARCHIVE ARADD INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AR PERL LIBLIST LIBLINKS MAKE_SHLIB_COMMAND SHLIB_EXPFLAGS SHLIB_EXPORT_FILE_DEP DYNOBJ_EXPDEPS DYNOBJ_EXPFLAGS INSTALL_SHLIB STLIBEXT SHLIBEXT SHLIBVEXT SHLIBSEXT DEPLIBEXT PFLIBEXT LIBINSTLIST DYNOBJEXT MAKE_DYNOBJ_COMMAND OBJLISTS STOBJEXT SHOBJEXT PFOBJEXT PICFLAGS PROFFLAGS GEN_LIB CC_LINK RPATH_FLAG TELNET_LIBS TELNETD_LIBS UTIL_LIB LTLIBOBJS'
319
 
ac_subst_files='lib_frag libobj_frag libnover_frag'
 
318
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS EXTRA_FILES CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX HAVE_GCC WARN_CFLAGS WARN_CXXFLAGS CPP LD compile_et COM_ERR_VERSION SS_LIB SS_VERSION DB_HEADER DB_LIB DB_VERSION DB_HEADER_VERSION KDB5_DB_LIB HESIOD_DEFS HESIOD_LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CONFIG_RELTOPDIR build build_cpu build_vendor build_os host host_cpu host_vendor host_os krb5_cv_host acx_pthread_config PTHREAD_CC PTHREAD_LIBS PTHREAD_CFLAGS THREAD_SUPPORT DL_LIB EGREP LIBOBJS SETENVSRC SETENVOBJ SHLIB_HAVE_MINOR_VERS LN_S RANLIB ac_ct_RANLIB ARCHIVE ARADD INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AR PERL LIBLIST LIBLINKS MAKE_SHLIB_COMMAND SHLIB_RPATH_FLAGS SHLIB_EXPFLAGS SHLIB_EXPORT_FILE_DEP DYNOBJ_EXPDEPS DYNOBJ_EXPFLAGS INSTALL_SHLIB STLIBEXT SHLIBEXT SHLIBVEXT SHLIBSEXT DEPLIBEXT PFLIBEXT LIBINSTLIST DYNOBJEXT MAKE_DYNOBJ_COMMAND OBJLISTS STOBJEXT SHOBJEXT PFOBJEXT PICFLAGS PROFFLAGS GEN_LIB CC_LINK CXX_LINK RPATH_FLAG PROG_RPATH_FLAGS TELNET_LIBS TELNETD_LIBS UTIL_LIB LTLIBOBJS'
 
319
ac_subst_files='lib_frag libobj_frag libnover_frag libpriv_frag libnodeps_frag'
320
320
 
321
321
# Initialize some variables set by options.
322
322
ac_init_help=
772
772
ac_env_CPPFLAGS_value=$CPPFLAGS
773
773
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
774
774
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
775
ac_env_CXX_set=${CXX+set}
 
776
ac_env_CXX_value=$CXX
 
777
ac_cv_env_CXX_set=${CXX+set}
 
778
ac_cv_env_CXX_value=$CXX
 
779
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
 
780
ac_env_CXXFLAGS_value=$CXXFLAGS
 
781
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
 
782
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
775
783
ac_env_CPP_set=${CPP+set}
776
784
ac_env_CPP_value=$CPP
777
785
ac_cv_env_CPP_set=${CPP+set}
800
808
  # Omit some internal or obsolete options to make the list less imposing.
801
809
  # This message is too long to be a string in the A/UX 3.1 sh.
802
810
  cat <<_ACEOF
803
 
\`configure' configures Kerberos 5 1.6.4-beta1 to adapt to many kinds of systems.
 
811
\`configure' configures Kerberos 5 1.7-beta1 to adapt to many kinds of systems.
804
812
 
805
813
Usage: $0 [OPTION]... [VAR=VALUE]...
806
814
 
866
874
 
867
875
if test -n "$ac_init_help"; then
868
876
  case $ac_init_help in
869
 
     short | recursive ) echo "Configuration of Kerberos 5 1.6.4-beta1:";;
 
877
     short | recursive ) echo "Configuration of Kerberos 5 1.7-beta1:";;
870
878
   esac
871
879
  cat <<\_ACEOF
872
880
 
882
890
  --disable-thread-support
883
891
                          don't enable thread support [enabled]
884
892
 
 
893
  --disable-rpath         suppress run path flags in link lines
885
894
 
886
895
Optional Packages:
887
896
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
888
897
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
889
 
  --without-krb4          don't include Kerberos V4 backwards compatibility
890
 
  --with-krb4             use V4 libraries included with V5 (default)
891
 
  --with-krb4=KRB4DIR     use preinstalled V4 libraries
 
898
  --with-size-optimizations enable a few optimizations to reduce code size
 
899
                          possibly at some run-time cost
892
900
  --with-system-et        use system compile_et and -lcom_err [default:
893
901
                          build and install a local version]
894
902
  --with-system-ss        use system -lss and mk_cmds [private version]
905
913
              nonstandard directory <lib dir>
906
914
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
907
915
              headers in a nonstandard directory <include dir>
 
916
  CXX         C++ compiler command
 
917
  CXXFLAGS    C++ compiler flags
908
918
  CPP         C preprocessor
909
919
  LD          linker command [CC]
910
920
  SS_LIB      system libraries for 'ss' package [-lss]
1010
1020
test -n "$ac_init_help" && exit 0
1011
1021
if $ac_init_version; then
1012
1022
  cat <<\_ACEOF
1013
 
Kerberos 5 configure 1.6.4-beta1
 
1023
Kerberos 5 configure 1.7-beta1
1014
1024
generated by GNU Autoconf 2.59
1015
1025
 
1016
1026
Copyright (C) 2003 Free Software Foundation, Inc.
1017
1027
This configure script is free software; the Free Software Foundation
1018
1028
gives unlimited permission to copy, distribute and modify it.
1019
1029
 
1020
 
Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
1030
Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2009
1021
1031
Massachusetts Institute of Technology.
1022
1032
 
1023
1033
_ACEOF
1028
1038
This file contains any messages produced by compilers while
1029
1039
running configure, to aid debugging if configure makes a mistake.
1030
1040
 
1031
 
It was created by Kerberos 5 $as_me 1.6.4-beta1, which was
 
1041
It was created by Kerberos 5 $as_me 1.7-beta1, which was
1032
1042
generated by GNU Autoconf 2.59.  Invocation command line was
1033
1043
 
1034
1044
  $ $0 $@
1409
1419
 
1410
1420
 
1411
1421
 
 
1422
 
1412
1423
krb5_ac_cflags_set=${CFLAGS+set}
 
1424
krb5_ac_cxxflags_set=${CXXFLAGS+set}
 
1425
krb5_ac_warn_cflags_set=${WARN_CFLAGS+set}
 
1426
krb5_ac_warn_cxxflags_set=${WARN_CXXFLAGS+set}
1413
1427
 
1414
1428
ac_ext=c
1415
1429
ac_cpp='$CPP $CPPFLAGS'
2341
2355
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2342
2356
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2343
2357
 
 
2358
ac_ext=cc
 
2359
ac_cpp='$CXXCPP $CPPFLAGS'
 
2360
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2361
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2362
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
2363
if test -n "$ac_tool_prefix"; then
 
2364
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
2365
  do
 
2366
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2367
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2368
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2369
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2370
if test "${ac_cv_prog_CXX+set}" = set; then
 
2371
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2372
else
 
2373
  if test -n "$CXX"; then
 
2374
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
2375
else
 
2376
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2377
for as_dir in $PATH
 
2378
do
 
2379
  IFS=$as_save_IFS
 
2380
  test -z "$as_dir" && as_dir=.
 
2381
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2382
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2383
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
2384
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2385
    break 2
 
2386
  fi
 
2387
done
 
2388
done
 
2389
 
 
2390
fi
 
2391
fi
 
2392
CXX=$ac_cv_prog_CXX
 
2393
if test -n "$CXX"; then
 
2394
  echo "$as_me:$LINENO: result: $CXX" >&5
 
2395
echo "${ECHO_T}$CXX" >&6
 
2396
else
 
2397
  echo "$as_me:$LINENO: result: no" >&5
 
2398
echo "${ECHO_T}no" >&6
 
2399
fi
 
2400
 
 
2401
    test -n "$CXX" && break
 
2402
  done
 
2403
fi
 
2404
if test -z "$CXX"; then
 
2405
  ac_ct_CXX=$CXX
 
2406
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
2407
do
 
2408
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2409
set dummy $ac_prog; ac_word=$2
 
2410
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2411
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2412
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
2413
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2414
else
 
2415
  if test -n "$ac_ct_CXX"; then
 
2416
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
2417
else
 
2418
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2419
for as_dir in $PATH
 
2420
do
 
2421
  IFS=$as_save_IFS
 
2422
  test -z "$as_dir" && as_dir=.
 
2423
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2424
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2425
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
2426
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2427
    break 2
 
2428
  fi
 
2429
done
 
2430
done
 
2431
 
 
2432
fi
 
2433
fi
 
2434
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
2435
if test -n "$ac_ct_CXX"; then
 
2436
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
2437
echo "${ECHO_T}$ac_ct_CXX" >&6
 
2438
else
 
2439
  echo "$as_me:$LINENO: result: no" >&5
 
2440
echo "${ECHO_T}no" >&6
 
2441
fi
 
2442
 
 
2443
  test -n "$ac_ct_CXX" && break
 
2444
done
 
2445
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
 
2446
 
 
2447
  CXX=$ac_ct_CXX
 
2448
fi
 
2449
 
 
2450
 
 
2451
# Provide some information about the compiler.
 
2452
echo "$as_me:$LINENO:" \
 
2453
     "checking for C++ compiler version" >&5
 
2454
ac_compiler=`set X $ac_compile; echo $2`
 
2455
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2456
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
2457
  ac_status=$?
 
2458
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2459
  (exit $ac_status); }
 
2460
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
2461
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
2462
  ac_status=$?
 
2463
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2464
  (exit $ac_status); }
 
2465
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
2466
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
2467
  ac_status=$?
 
2468
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2469
  (exit $ac_status); }
 
2470
 
 
2471
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
2472
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 
2473
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
2474
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2475
else
 
2476
  cat >conftest.$ac_ext <<_ACEOF
 
2477
/* confdefs.h.  */
 
2478
_ACEOF
 
2479
cat confdefs.h >>conftest.$ac_ext
 
2480
cat >>conftest.$ac_ext <<_ACEOF
 
2481
/* end confdefs.h.  */
 
2482
 
 
2483
int
 
2484
main ()
 
2485
{
 
2486
#ifndef __GNUC__
 
2487
       choke me
 
2488
#endif
 
2489
 
 
2490
  ;
 
2491
  return 0;
 
2492
}
 
2493
_ACEOF
 
2494
rm -f conftest.$ac_objext
 
2495
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2496
  (eval $ac_compile) 2>conftest.er1
 
2497
  ac_status=$?
 
2498
  grep -v '^ *+' conftest.er1 >conftest.err
 
2499
  rm -f conftest.er1
 
2500
  cat conftest.err >&5
 
2501
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2502
  (exit $ac_status); } &&
 
2503
         { ac_try='test -z "$ac_cxx_werror_flag"
 
2504
                         || test ! -s conftest.err'
 
2505
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2506
  (eval $ac_try) 2>&5
 
2507
  ac_status=$?
 
2508
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2509
  (exit $ac_status); }; } &&
 
2510
         { ac_try='test -s conftest.$ac_objext'
 
2511
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2512
  (eval $ac_try) 2>&5
 
2513
  ac_status=$?
 
2514
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2515
  (exit $ac_status); }; }; then
 
2516
  ac_compiler_gnu=yes
 
2517
else
 
2518
  echo "$as_me: failed program was:" >&5
 
2519
sed 's/^/| /' conftest.$ac_ext >&5
 
2520
 
 
2521
ac_compiler_gnu=no
 
2522
fi
 
2523
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2524
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
2525
 
 
2526
fi
 
2527
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
2528
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 
2529
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
2530
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
2531
ac_save_CXXFLAGS=$CXXFLAGS
 
2532
CXXFLAGS="-g"
 
2533
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
2534
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 
2535
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
2536
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2537
else
 
2538
  cat >conftest.$ac_ext <<_ACEOF
 
2539
/* confdefs.h.  */
 
2540
_ACEOF
 
2541
cat confdefs.h >>conftest.$ac_ext
 
2542
cat >>conftest.$ac_ext <<_ACEOF
 
2543
/* end confdefs.h.  */
 
2544
 
 
2545
int
 
2546
main ()
 
2547
{
 
2548
 
 
2549
  ;
 
2550
  return 0;
 
2551
}
 
2552
_ACEOF
 
2553
rm -f conftest.$ac_objext
 
2554
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2555
  (eval $ac_compile) 2>conftest.er1
 
2556
  ac_status=$?
 
2557
  grep -v '^ *+' conftest.er1 >conftest.err
 
2558
  rm -f conftest.er1
 
2559
  cat conftest.err >&5
 
2560
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2561
  (exit $ac_status); } &&
 
2562
         { ac_try='test -z "$ac_cxx_werror_flag"
 
2563
                         || test ! -s conftest.err'
 
2564
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2565
  (eval $ac_try) 2>&5
 
2566
  ac_status=$?
 
2567
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2568
  (exit $ac_status); }; } &&
 
2569
         { ac_try='test -s conftest.$ac_objext'
 
2570
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2571
  (eval $ac_try) 2>&5
 
2572
  ac_status=$?
 
2573
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2574
  (exit $ac_status); }; }; then
 
2575
  ac_cv_prog_cxx_g=yes
 
2576
else
 
2577
  echo "$as_me: failed program was:" >&5
 
2578
sed 's/^/| /' conftest.$ac_ext >&5
 
2579
 
 
2580
ac_cv_prog_cxx_g=no
 
2581
fi
 
2582
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2583
fi
 
2584
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
2585
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
 
2586
if test "$ac_test_CXXFLAGS" = set; then
 
2587
  CXXFLAGS=$ac_save_CXXFLAGS
 
2588
elif test $ac_cv_prog_cxx_g = yes; then
 
2589
  if test "$GXX" = yes; then
 
2590
    CXXFLAGS="-g -O2"
 
2591
  else
 
2592
    CXXFLAGS="-g"
 
2593
  fi
 
2594
else
 
2595
  if test "$GXX" = yes; then
 
2596
    CXXFLAGS="-O2"
 
2597
  else
 
2598
    CXXFLAGS=
 
2599
  fi
 
2600
fi
 
2601
for ac_declaration in \
 
2602
   '' \
 
2603
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2604
   'extern "C" void std::exit (int); using std::exit;' \
 
2605
   'extern "C" void exit (int) throw ();' \
 
2606
   'extern "C" void exit (int);' \
 
2607
   'void exit (int);'
 
2608
do
 
2609
  cat >conftest.$ac_ext <<_ACEOF
 
2610
/* confdefs.h.  */
 
2611
_ACEOF
 
2612
cat confdefs.h >>conftest.$ac_ext
 
2613
cat >>conftest.$ac_ext <<_ACEOF
 
2614
/* end confdefs.h.  */
 
2615
$ac_declaration
 
2616
#include <stdlib.h>
 
2617
int
 
2618
main ()
 
2619
{
 
2620
exit (42);
 
2621
  ;
 
2622
  return 0;
 
2623
}
 
2624
_ACEOF
 
2625
rm -f conftest.$ac_objext
 
2626
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2627
  (eval $ac_compile) 2>conftest.er1
 
2628
  ac_status=$?
 
2629
  grep -v '^ *+' conftest.er1 >conftest.err
 
2630
  rm -f conftest.er1
 
2631
  cat conftest.err >&5
 
2632
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2633
  (exit $ac_status); } &&
 
2634
         { ac_try='test -z "$ac_cxx_werror_flag"
 
2635
                         || test ! -s conftest.err'
 
2636
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2637
  (eval $ac_try) 2>&5
 
2638
  ac_status=$?
 
2639
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2640
  (exit $ac_status); }; } &&
 
2641
         { ac_try='test -s conftest.$ac_objext'
 
2642
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2643
  (eval $ac_try) 2>&5
 
2644
  ac_status=$?
 
2645
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2646
  (exit $ac_status); }; }; then
 
2647
  :
 
2648
else
 
2649
  echo "$as_me: failed program was:" >&5
 
2650
sed 's/^/| /' conftest.$ac_ext >&5
 
2651
 
 
2652
continue
 
2653
fi
 
2654
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2655
  cat >conftest.$ac_ext <<_ACEOF
 
2656
/* confdefs.h.  */
 
2657
_ACEOF
 
2658
cat confdefs.h >>conftest.$ac_ext
 
2659
cat >>conftest.$ac_ext <<_ACEOF
 
2660
/* end confdefs.h.  */
 
2661
$ac_declaration
 
2662
int
 
2663
main ()
 
2664
{
 
2665
exit (42);
 
2666
  ;
 
2667
  return 0;
 
2668
}
 
2669
_ACEOF
 
2670
rm -f conftest.$ac_objext
 
2671
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2672
  (eval $ac_compile) 2>conftest.er1
 
2673
  ac_status=$?
 
2674
  grep -v '^ *+' conftest.er1 >conftest.err
 
2675
  rm -f conftest.er1
 
2676
  cat conftest.err >&5
 
2677
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2678
  (exit $ac_status); } &&
 
2679
         { ac_try='test -z "$ac_cxx_werror_flag"
 
2680
                         || test ! -s conftest.err'
 
2681
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2682
  (eval $ac_try) 2>&5
 
2683
  ac_status=$?
 
2684
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2685
  (exit $ac_status); }; } &&
 
2686
         { ac_try='test -s conftest.$ac_objext'
 
2687
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2688
  (eval $ac_try) 2>&5
 
2689
  ac_status=$?
 
2690
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2691
  (exit $ac_status); }; }; then
 
2692
  break
 
2693
else
 
2694
  echo "$as_me: failed program was:" >&5
 
2695
sed 's/^/| /' conftest.$ac_ext >&5
 
2696
 
 
2697
fi
 
2698
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2699
done
 
2700
rm -f conftest*
 
2701
if test -n "$ac_declaration"; then
 
2702
  echo '#ifdef __cplusplus' >>confdefs.h
 
2703
  echo $ac_declaration      >>confdefs.h
 
2704
  echo '#endif'             >>confdefs.h
 
2705
fi
 
2706
 
 
2707
ac_ext=c
 
2708
ac_cpp='$CPP $CPPFLAGS'
 
2709
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2710
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2711
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2712
 
2344
2713
 
2345
2714
ac_ext=c
2346
2715
ac_cpp='$CPP $CPPFLAGS'
2886
3255
 
2887
3256
 EXTRA_FILES=""
2888
3257
 
2889
 
krb5_cv_prog_gcc=$ac_cv_c_compiler_gnu
2890
3258
if test $ac_cv_c_compiler_gnu = yes ; then
2891
3259
     HAVE_GCC=yes
2892
3260
     else HAVE_GCC=
2911
3279
fi
2912
3280
echo "$as_me:$LINENO: result: $krb5_cv_prog_gnu_ld" >&5
2913
3281
echo "${ECHO_T}$krb5_cv_prog_gnu_ld" >&6
2914
 
# maybe add -Waggregate-return, or can we assume that actually works by now?
2915
 
# -Wno-comment used to be used for SunOS system header <sys/stream.h>
 
3282
 
 
3283
# Check whether --with-size-optimizations or --without-size-optimizations was given.
 
3284
if test "${with_size_optimizations+set}" = set; then
 
3285
  withval="$with_size_optimizations"
 
3286
 
 
3287
else
 
3288
  withval=no
 
3289
fi;
 
3290
if test "$withval" = yes; then
 
3291
 
 
3292
cat >>confdefs.h <<\_ACEOF
 
3293
#define CONFIG_SMALL 1
 
3294
_ACEOF
 
3295
 
 
3296
fi
2916
3297
# -Wno-long-long, if needed, for k5-platform.h without inttypes.h etc.
2917
 
extra_gcc_warn_opts="-Wall -Wmissing-prototypes -Wcast-qual \
2918
 
 -Wcast-align -Wconversion -Wshadow"
 
3298
extra_gcc_warn_opts="-Wall -Wcast-qual -Wcast-align -Wshadow"
 
3299
# -Wmissing-prototypes
2919
3300
if test "$GCC" = yes ; then
2920
 
  if test "x$krb5_ac_cflags_set" = xset ; then
2921
 
    { echo "$as_me:$LINENO: not adding extra gcc warning flags because CFLAGS was set" >&5
2922
 
echo "$as_me: not adding extra gcc warning flags because CFLAGS was set" >&6;}
 
3301
  # Putting this here means we get -Os after -O2, which works.
 
3302
  if test "$with_size_optimizations" = yes && test "x$krb5_ac_cflags_set" != xset; then
 
3303
    { echo "$as_me:$LINENO: adding -Os optimization option" >&5
 
3304
echo "$as_me: adding -Os optimization option" >&6;}
 
3305
    case "$CFLAGS" in
 
3306
      "-g -O2") CFLAGS="-g -Os" ;;
 
3307
      "-O2")    CFLAGS="-Os" ;;
 
3308
      *)        CFLAGS="$CFLAGS -Os" ;;
 
3309
    esac
 
3310
  fi
 
3311
  if test "x$krb5_ac_warn_cflags_set" = xset ; then
 
3312
    { echo "$as_me:$LINENO: not adding extra gcc warning flags because WARN_CFLAGS was set" >&5
 
3313
echo "$as_me: not adding extra gcc warning flags because WARN_CFLAGS was set" >&6;}
2923
3314
  else
2924
3315
    { echo "$as_me:$LINENO: adding extra warning flags for gcc" >&5
2925
3316
echo "$as_me: adding extra warning flags for gcc" >&6;}
2926
 
    CFLAGS="$CFLAGS $extra_gcc_warn_opts"
 
3317
    WARN_CFLAGS="$WARN_CFLAGS $extra_gcc_warn_opts -Wmissing-prototypes"
2927
3318
    if test "`uname -s`" = Darwin ; then
2928
3319
      { echo "$as_me:$LINENO: skipping pedantic warnings on Darwin" >&5
2929
3320
echo "$as_me: skipping pedantic warnings on Darwin" >&6;}
2931
3322
      { echo "$as_me:$LINENO: skipping pedantic warnings on Linux" >&5
2932
3323
echo "$as_me: skipping pedantic warnings on Linux" >&6;}
2933
3324
    else
2934
 
      CFLAGS="$CFLAGS -pedantic"
2935
 
    fi
 
3325
      WARN_CFLAGS="$WARN_CFLAGS -pedantic"
 
3326
    fi
 
3327
    if test "$ac_cv_cxx_compiler_gnu" = yes; then
 
3328
      if test "x$krb5_ac_warn_cxxflags_set" = xset ; then
 
3329
        { echo "$as_me:$LINENO: not adding extra g++ warnings because WARN_CXXFLAGS was set" >&5
 
3330
echo "$as_me: not adding extra g++ warnings because WARN_CXXFLAGS was set" >&6;}
 
3331
      else
 
3332
        { echo "$as_me:$LINENO: adding extra warning flags for g++" >&5
 
3333
echo "$as_me: adding extra warning flags for g++" >&6;}
 
3334
        WARN_CXXFLAGS="$WARN_CXXFLAGS $extra_gcc_warn_opts"
 
3335
      fi
 
3336
    fi
 
3337
    # Currently, G++ does not support -Wno-format-zero-length.
 
3338
      cachevar=`echo "krb5_cv_cc_flag_-Wno-format-zero-length" | sed s/[^a-zA-Z0-9_]/_/g`
 
3339
  echo "$as_me:$LINENO: checking if C compiler supports -Wno-format-zero-length" >&5
 
3340
echo $ECHO_N "checking if C compiler supports -Wno-format-zero-length... $ECHO_C" >&6
 
3341
if eval "test \"\${$cachevar+set}\" = set"; then
 
3342
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3343
else
 
3344
  # first try without, then with
 
3345
  cat >conftest.$ac_ext <<_ACEOF
 
3346
/* confdefs.h.  */
 
3347
_ACEOF
 
3348
cat confdefs.h >>conftest.$ac_ext
 
3349
cat >>conftest.$ac_ext <<_ACEOF
 
3350
/* end confdefs.h.  */
 
3351
 
 
3352
int
 
3353
main ()
 
3354
{
 
3355
1;
 
3356
  ;
 
3357
  return 0;
 
3358
}
 
3359
_ACEOF
 
3360
rm -f conftest.$ac_objext
 
3361
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3362
  (eval $ac_compile) 2>conftest.er1
 
3363
  ac_status=$?
 
3364
  grep -v '^ *+' conftest.er1 >conftest.err
 
3365
  rm -f conftest.er1
 
3366
  cat conftest.err >&5
 
3367
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3368
  (exit $ac_status); } &&
 
3369
         { ac_try='test -z "$ac_c_werror_flag"
 
3370
                         || test ! -s conftest.err'
 
3371
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3372
  (eval $ac_try) 2>&5
 
3373
  ac_status=$?
 
3374
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3375
  (exit $ac_status); }; } &&
 
3376
         { ac_try='test -s conftest.$ac_objext'
 
3377
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3378
  (eval $ac_try) 2>&5
 
3379
  ac_status=$?
 
3380
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3381
  (exit $ac_status); }; }; then
 
3382
  old_cflags="$CFLAGS"
 
3383
     CFLAGS="$CFLAGS -Wno-format-zero-length"
 
3384
     cat >conftest.$ac_ext <<_ACEOF
 
3385
/* confdefs.h.  */
 
3386
_ACEOF
 
3387
cat confdefs.h >>conftest.$ac_ext
 
3388
cat >>conftest.$ac_ext <<_ACEOF
 
3389
/* end confdefs.h.  */
 
3390
 
 
3391
int
 
3392
main ()
 
3393
{
 
3394
1;
 
3395
  ;
 
3396
  return 0;
 
3397
}
 
3398
_ACEOF
 
3399
rm -f conftest.$ac_objext
 
3400
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3401
  (eval $ac_compile) 2>conftest.er1
 
3402
  ac_status=$?
 
3403
  grep -v '^ *+' conftest.er1 >conftest.err
 
3404
  rm -f conftest.er1
 
3405
  cat conftest.err >&5
 
3406
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3407
  (exit $ac_status); } &&
 
3408
         { ac_try='test -z "$ac_c_werror_flag"
 
3409
                         || test ! -s conftest.err'
 
3410
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3411
  (eval $ac_try) 2>&5
 
3412
  ac_status=$?
 
3413
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3414
  (exit $ac_status); }; } &&
 
3415
         { ac_try='test -s conftest.$ac_objext'
 
3416
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3417
  (eval $ac_try) 2>&5
 
3418
  ac_status=$?
 
3419
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3420
  (exit $ac_status); }; }; then
 
3421
  eval $cachevar=yes
 
3422
else
 
3423
  echo "$as_me: failed program was:" >&5
 
3424
sed 's/^/| /' conftest.$ac_ext >&5
 
3425
 
 
3426
eval $cachevar=no
 
3427
fi
 
3428
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3429
     CFLAGS="$old_cflags"
 
3430
else
 
3431
  echo "$as_me: failed program was:" >&5
 
3432
sed 's/^/| /' conftest.$ac_ext >&5
 
3433
 
 
3434
{ { echo "$as_me:$LINENO: error: compiling simple test program with $CFLAGS failed" >&5
 
3435
echo "$as_me: error: compiling simple test program with $CFLAGS failed" >&2;}
 
3436
   { (exit 1); exit 1; }; }
 
3437
fi
 
3438
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3439
fi
 
3440
echo "$as_me:$LINENO: result: `eval echo '${'$cachevar'}'`" >&5
 
3441
echo "${ECHO_T}`eval echo '${'$cachevar'}'`" >&6
 
3442
  if eval test '"${'$cachevar'}"' = yes; then
 
3443
    WARN_CFLAGS="$WARN_CFLAGS -Wno-format-zero-length"
 
3444
  fi
 
3445
  eval flag_supported='${'$cachevar'}'
 
3446
 
 
3447
    # Other flags here may not be supported on some versions of
 
3448
    # gcc that people want to use.
 
3449
    for flag in overflow strict-overflow missing-format-attribute missing-prototypes return-type missing-braces parentheses switch unused-function unused-label unused-variable unused-value unknown-pragmas sign-compare newline-eof ; do
 
3450
        cachevar=`echo "krb5_cv_cc_flag_-W$flag" | sed s/[^a-zA-Z0-9_]/_/g`
 
3451
  echo "$as_me:$LINENO: checking if C compiler supports -W$flag" >&5
 
3452
echo $ECHO_N "checking if C compiler supports -W$flag... $ECHO_C" >&6
 
3453
if eval "test \"\${$cachevar+set}\" = set"; then
 
3454
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3455
else
 
3456
  # first try without, then with
 
3457
  cat >conftest.$ac_ext <<_ACEOF
 
3458
/* confdefs.h.  */
 
3459
_ACEOF
 
3460
cat confdefs.h >>conftest.$ac_ext
 
3461
cat >>conftest.$ac_ext <<_ACEOF
 
3462
/* end confdefs.h.  */
 
3463
 
 
3464
int
 
3465
main ()
 
3466
{
 
3467
1;
 
3468
  ;
 
3469
  return 0;
 
3470
}
 
3471
_ACEOF
 
3472
rm -f conftest.$ac_objext
 
3473
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3474
  (eval $ac_compile) 2>conftest.er1
 
3475
  ac_status=$?
 
3476
  grep -v '^ *+' conftest.er1 >conftest.err
 
3477
  rm -f conftest.er1
 
3478
  cat conftest.err >&5
 
3479
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3480
  (exit $ac_status); } &&
 
3481
         { ac_try='test -z "$ac_c_werror_flag"
 
3482
                         || test ! -s conftest.err'
 
3483
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3484
  (eval $ac_try) 2>&5
 
3485
  ac_status=$?
 
3486
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3487
  (exit $ac_status); }; } &&
 
3488
         { ac_try='test -s conftest.$ac_objext'
 
3489
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3490
  (eval $ac_try) 2>&5
 
3491
  ac_status=$?
 
3492
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3493
  (exit $ac_status); }; }; then
 
3494
  old_cflags="$CFLAGS"
 
3495
     CFLAGS="$CFLAGS -W$flag"
 
3496
     cat >conftest.$ac_ext <<_ACEOF
 
3497
/* confdefs.h.  */
 
3498
_ACEOF
 
3499
cat confdefs.h >>conftest.$ac_ext
 
3500
cat >>conftest.$ac_ext <<_ACEOF
 
3501
/* end confdefs.h.  */
 
3502
 
 
3503
int
 
3504
main ()
 
3505
{
 
3506
1;
 
3507
  ;
 
3508
  return 0;
 
3509
}
 
3510
_ACEOF
 
3511
rm -f conftest.$ac_objext
 
3512
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3513
  (eval $ac_compile) 2>conftest.er1
 
3514
  ac_status=$?
 
3515
  grep -v '^ *+' conftest.er1 >conftest.err
 
3516
  rm -f conftest.er1
 
3517
  cat conftest.err >&5
 
3518
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3519
  (exit $ac_status); } &&
 
3520
         { ac_try='test -z "$ac_c_werror_flag"
 
3521
                         || test ! -s conftest.err'
 
3522
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3523
  (eval $ac_try) 2>&5
 
3524
  ac_status=$?
 
3525
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3526
  (exit $ac_status); }; } &&
 
3527
         { ac_try='test -s conftest.$ac_objext'
 
3528
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3529
  (eval $ac_try) 2>&5
 
3530
  ac_status=$?
 
3531
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3532
  (exit $ac_status); }; }; then
 
3533
  eval $cachevar=yes
 
3534
else
 
3535
  echo "$as_me: failed program was:" >&5
 
3536
sed 's/^/| /' conftest.$ac_ext >&5
 
3537
 
 
3538
eval $cachevar=no
 
3539
fi
 
3540
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3541
     CFLAGS="$old_cflags"
 
3542
else
 
3543
  echo "$as_me: failed program was:" >&5
 
3544
sed 's/^/| /' conftest.$ac_ext >&5
 
3545
 
 
3546
{ { echo "$as_me:$LINENO: error: compiling simple test program with $CFLAGS failed" >&5
 
3547
echo "$as_me: error: compiling simple test program with $CFLAGS failed" >&2;}
 
3548
   { (exit 1); exit 1; }; }
 
3549
fi
 
3550
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3551
fi
 
3552
echo "$as_me:$LINENO: result: `eval echo '${'$cachevar'}'`" >&5
 
3553
echo "${ECHO_T}`eval echo '${'$cachevar'}'`" >&6
 
3554
  if eval test '"${'$cachevar'}"' = yes; then
 
3555
    WARN_CFLAGS="$WARN_CFLAGS -W$flag"
 
3556
  fi
 
3557
  eval flag_supported='${'$cachevar'}'
 
3558
 
 
3559
    done
 
3560
    #  old-style-definition? generates many, many warnings
 
3561
    #
 
3562
    # Warnings that we'd like to turn into errors on versions of gcc
 
3563
    # that support promoting only specific warnings to errors, but
 
3564
    # we'll take as warnings on older compilers.  (If such a warning
 
3565
    # is added after the -Werror=foo feature, you can just put
 
3566
    # error=foo in the above list, and skip the test for the
 
3567
    # warning-only form.)  At least in some versions, -Werror= doesn't
 
3568
    # seem to make the conditions actual errors, but still issues
 
3569
    # warnings; I guess we'll take what we can get.
 
3570
    #
 
3571
    # We're currently targeting C89+, not C99, so disallow some
 
3572
    # constructs.
 
3573
    for flag in declaration-after-statement variadic-macros ; do
 
3574
        cachevar=`echo "krb5_cv_cc_flag_-Werror=$flag" | sed s/[^a-zA-Z0-9_]/_/g`
 
3575
  echo "$as_me:$LINENO: checking if C compiler supports -Werror=$flag" >&5
 
3576
echo $ECHO_N "checking if C compiler supports -Werror=$flag... $ECHO_C" >&6
 
3577
if eval "test \"\${$cachevar+set}\" = set"; then
 
3578
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3579
else
 
3580
  # first try without, then with
 
3581
  cat >conftest.$ac_ext <<_ACEOF
 
3582
/* confdefs.h.  */
 
3583
_ACEOF
 
3584
cat confdefs.h >>conftest.$ac_ext
 
3585
cat >>conftest.$ac_ext <<_ACEOF
 
3586
/* end confdefs.h.  */
 
3587
 
 
3588
int
 
3589
main ()
 
3590
{
 
3591
1;
 
3592
  ;
 
3593
  return 0;
 
3594
}
 
3595
_ACEOF
 
3596
rm -f conftest.$ac_objext
 
3597
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3598
  (eval $ac_compile) 2>conftest.er1
 
3599
  ac_status=$?
 
3600
  grep -v '^ *+' conftest.er1 >conftest.err
 
3601
  rm -f conftest.er1
 
3602
  cat conftest.err >&5
 
3603
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3604
  (exit $ac_status); } &&
 
3605
         { ac_try='test -z "$ac_c_werror_flag"
 
3606
                         || test ! -s conftest.err'
 
3607
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3608
  (eval $ac_try) 2>&5
 
3609
  ac_status=$?
 
3610
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3611
  (exit $ac_status); }; } &&
 
3612
         { ac_try='test -s conftest.$ac_objext'
 
3613
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3614
  (eval $ac_try) 2>&5
 
3615
  ac_status=$?
 
3616
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3617
  (exit $ac_status); }; }; then
 
3618
  old_cflags="$CFLAGS"
 
3619
     CFLAGS="$CFLAGS -Werror=$flag"
 
3620
     cat >conftest.$ac_ext <<_ACEOF
 
3621
/* confdefs.h.  */
 
3622
_ACEOF
 
3623
cat confdefs.h >>conftest.$ac_ext
 
3624
cat >>conftest.$ac_ext <<_ACEOF
 
3625
/* end confdefs.h.  */
 
3626
 
 
3627
int
 
3628
main ()
 
3629
{
 
3630
1;
 
3631
  ;
 
3632
  return 0;
 
3633
}
 
3634
_ACEOF
 
3635
rm -f conftest.$ac_objext
 
3636
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3637
  (eval $ac_compile) 2>conftest.er1
 
3638
  ac_status=$?
 
3639
  grep -v '^ *+' conftest.er1 >conftest.err
 
3640
  rm -f conftest.er1
 
3641
  cat conftest.err >&5
 
3642
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3643
  (exit $ac_status); } &&
 
3644
         { ac_try='test -z "$ac_c_werror_flag"
 
3645
                         || test ! -s conftest.err'
 
3646
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3647
  (eval $ac_try) 2>&5
 
3648
  ac_status=$?
 
3649
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3650
  (exit $ac_status); }; } &&
 
3651
         { ac_try='test -s conftest.$ac_objext'
 
3652
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3653
  (eval $ac_try) 2>&5
 
3654
  ac_status=$?
 
3655
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3656
  (exit $ac_status); }; }; then
 
3657
  eval $cachevar=yes
 
3658
else
 
3659
  echo "$as_me: failed program was:" >&5
 
3660
sed 's/^/| /' conftest.$ac_ext >&5
 
3661
 
 
3662
eval $cachevar=no
 
3663
fi
 
3664
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3665
     CFLAGS="$old_cflags"
 
3666
else
 
3667
  echo "$as_me: failed program was:" >&5
 
3668
sed 's/^/| /' conftest.$ac_ext >&5
 
3669
 
 
3670
{ { echo "$as_me:$LINENO: error: compiling simple test program with $CFLAGS failed" >&5
 
3671
echo "$as_me: error: compiling simple test program with $CFLAGS failed" >&2;}
 
3672
   { (exit 1); exit 1; }; }
 
3673
fi
 
3674
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3675
fi
 
3676
echo "$as_me:$LINENO: result: `eval echo '${'$cachevar'}'`" >&5
 
3677
echo "${ECHO_T}`eval echo '${'$cachevar'}'`" >&6
 
3678
  if eval test '"${'$cachevar'}"' = yes; then
 
3679
    WARN_CFLAGS="$WARN_CFLAGS -Werror=$flag"
 
3680
  fi
 
3681
  eval flag_supported='${'$cachevar'}'
 
3682
 
 
3683
      if test "$flag_supported" = no; then
 
3684
          cachevar=`echo "krb5_cv_cc_flag_-W$flag" | sed s/[^a-zA-Z0-9_]/_/g`
 
3685
  echo "$as_me:$LINENO: checking if C compiler supports -W$flag" >&5
 
3686
echo $ECHO_N "checking if C compiler supports -W$flag... $ECHO_C" >&6
 
3687
if eval "test \"\${$cachevar+set}\" = set"; then
 
3688
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3689
else
 
3690
  # first try without, then with
 
3691
  cat >conftest.$ac_ext <<_ACEOF
 
3692
/* confdefs.h.  */
 
3693
_ACEOF
 
3694
cat confdefs.h >>conftest.$ac_ext
 
3695
cat >>conftest.$ac_ext <<_ACEOF
 
3696
/* end confdefs.h.  */
 
3697
 
 
3698
int
 
3699
main ()
 
3700
{
 
3701
1;
 
3702
  ;
 
3703
  return 0;
 
3704
}
 
3705
_ACEOF
 
3706
rm -f conftest.$ac_objext
 
3707
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3708
  (eval $ac_compile) 2>conftest.er1
 
3709
  ac_status=$?
 
3710
  grep -v '^ *+' conftest.er1 >conftest.err
 
3711
  rm -f conftest.er1
 
3712
  cat conftest.err >&5
 
3713
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3714
  (exit $ac_status); } &&
 
3715
         { ac_try='test -z "$ac_c_werror_flag"
 
3716
                         || test ! -s conftest.err'
 
3717
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3718
  (eval $ac_try) 2>&5
 
3719
  ac_status=$?
 
3720
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3721
  (exit $ac_status); }; } &&
 
3722
         { ac_try='test -s conftest.$ac_objext'
 
3723
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3724
  (eval $ac_try) 2>&5
 
3725
  ac_status=$?
 
3726
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3727
  (exit $ac_status); }; }; then
 
3728
  old_cflags="$CFLAGS"
 
3729
     CFLAGS="$CFLAGS -W$flag"
 
3730
     cat >conftest.$ac_ext <<_ACEOF
 
3731
/* confdefs.h.  */
 
3732
_ACEOF
 
3733
cat confdefs.h >>conftest.$ac_ext
 
3734
cat >>conftest.$ac_ext <<_ACEOF
 
3735
/* end confdefs.h.  */
 
3736
 
 
3737
int
 
3738
main ()
 
3739
{
 
3740
1;
 
3741
  ;
 
3742
  return 0;
 
3743
}
 
3744
_ACEOF
 
3745
rm -f conftest.$ac_objext
 
3746
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3747
  (eval $ac_compile) 2>conftest.er1
 
3748
  ac_status=$?
 
3749
  grep -v '^ *+' conftest.er1 >conftest.err
 
3750
  rm -f conftest.er1
 
3751
  cat conftest.err >&5
 
3752
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3753
  (exit $ac_status); } &&
 
3754
         { ac_try='test -z "$ac_c_werror_flag"
 
3755
                         || test ! -s conftest.err'
 
3756
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3757
  (eval $ac_try) 2>&5
 
3758
  ac_status=$?
 
3759
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3760
  (exit $ac_status); }; } &&
 
3761
         { ac_try='test -s conftest.$ac_objext'
 
3762
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3763
  (eval $ac_try) 2>&5
 
3764
  ac_status=$?
 
3765
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3766
  (exit $ac_status); }; }; then
 
3767
  eval $cachevar=yes
 
3768
else
 
3769
  echo "$as_me: failed program was:" >&5
 
3770
sed 's/^/| /' conftest.$ac_ext >&5
 
3771
 
 
3772
eval $cachevar=no
 
3773
fi
 
3774
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3775
     CFLAGS="$old_cflags"
 
3776
else
 
3777
  echo "$as_me: failed program was:" >&5
 
3778
sed 's/^/| /' conftest.$ac_ext >&5
 
3779
 
 
3780
{ { echo "$as_me:$LINENO: error: compiling simple test program with $CFLAGS failed" >&5
 
3781
echo "$as_me: error: compiling simple test program with $CFLAGS failed" >&2;}
 
3782
   { (exit 1); exit 1; }; }
 
3783
fi
 
3784
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3785
fi
 
3786
echo "$as_me:$LINENO: result: `eval echo '${'$cachevar'}'`" >&5
 
3787
echo "${ECHO_T}`eval echo '${'$cachevar'}'`" >&6
 
3788
  if eval test '"${'$cachevar'}"' = yes; then
 
3789
    WARN_CFLAGS="$WARN_CFLAGS -W$flag"
 
3790
  fi
 
3791
  eval flag_supported='${'$cachevar'}'
 
3792
 
 
3793
      fi
 
3794
    done
 
3795
    #  missing-prototypes? maybe someday
 
3796
    #
2936
3797
  fi
2937
3798
  if test "`uname -s`" = Darwin ; then
2938
3799
    # Someday this should be a feature test.
2982
3843
        ;;
2983
3844
    esac
2984
3845
  fi
 
3846
  if test "`uname -s`" = SunOS ; then
 
3847
    # Using Solaris but not GCC, assume Sunsoft compiler.
 
3848
    # We have some error-out-on-warning options available.
 
3849
    # Sunsoft 12 compiler defaults to -xc99=all, it appears, so "inline"
 
3850
    # works, but it also means that declaration-in-code warnings won't
 
3851
    # be issued.
 
3852
    # -v -fd -errwarn=E_DECLARATION_IN_CODE ...
 
3853
    WARN_CFLAGS="-errtags=yes -errwarn=E_BAD_PTR_INT_COMBINATION -errwarn=E_BAD_PTR_INT_COMB_ARG -errwarn=E_PTR_TO_VOID_IN_ARITHMETIC"
 
3854
    WARN_CXXFLAGS="-errtags=yes +w +w2 -xport64"
 
3855
  fi
2985
3856
fi
2986
3857
 
 
3858
 
 
3859
 
2987
3860
if test -z "$LD" ; then LD=$CC; fi
2988
3861
 
2989
3862
 
2990
3863
 
2991
 
# Check whether --with-krb4 or --without-krb4 was given.
2992
 
if test "${with_krb4+set}" = set; then
2993
 
  withval="$with_krb4"
2994
 
 
2995
 
else
2996
 
  withval=yes
2997
 
 
2998
 
fi; if test $withval = no; then
2999
 
        { echo "$as_me:$LINENO: no krb4 support" >&5
3000
 
echo "$as_me: no krb4 support" >&6;}
3001
 
        KRB4_LIB=
3002
 
        KRB4_DEPLIB=
3003
 
        KRB4_INCLUDES=
3004
 
        KRB4_LIBPATH=
3005
 
        KRB_ERR_H_DEP=
3006
 
        krb5_cv_build_krb4_libs=no
3007
 
        krb5_cv_krb4_libdir=
3008
 
else
3009
 
 
3010
 
cat >>confdefs.h <<\_ACEOF
3011
 
#define KRB5_KRB4_COMPAT 1
3012
 
_ACEOF
3013
 
 
3014
 
 if test $withval = yes; then
3015
 
        { echo "$as_me:$LINENO: enabling built in krb4 support" >&5
3016
 
echo "$as_me: enabling built in krb4 support" >&6;}
3017
 
        KRB4_DEPLIB='$(TOPLIBD)/libkrb4$(DEPLIBEXT)'
3018
 
        KRB4_LIB=-lkrb4
3019
 
        KRB4_INCLUDES='-I$(SRCTOP)/include/kerberosIV -I$(BUILDTOP)/include/kerberosIV'
3020
 
        KRB4_LIBPATH=
3021
 
        KRB_ERR_H_DEP='$(BUILDTOP)/include/kerberosIV/krb_err.h'
3022
 
        krb5_cv_build_krb4_libs=yes
3023
 
        krb5_cv_krb4_libdir=
3024
 
 else
3025
 
        { echo "$as_me:$LINENO: using preinstalled krb4 in $withval" >&5
3026
 
echo "$as_me: using preinstalled krb4 in $withval" >&6;}
3027
 
        KRB4_LIB="-lkrb"
3028
 
        KRB4_INCLUDES="-I$withval/include"
3029
 
        KRB4_LIBPATH="-L$withval/lib"
3030
 
        KRB_ERR_H_DEP=
3031
 
        krb5_cv_build_krb4_libs=no
3032
 
        krb5_cv_krb4_libdir="$withval/lib"
3033
 
 fi
3034
 
fi
3035
 
 
3036
 
 
3037
 
 
3038
 
 
3039
 
 
3040
 
DES425_DEPLIB='$(TOPLIBD)/libdes425$(DEPLIBEXT)'
3041
 
DES425_LIB=-ldes425
3042
 
 
3043
 
 
3044
 
 
3045
 
 
3046
3864
# Check whether --with-system-et or --without-system-et was given.
3047
3865
if test "${with_system_et+set}" = set; then
3048
3866
  withval="$with_system_et"
4623
5441
rm conftest.sed
4624
5442
 CONFIG_RELTOPDIR=$ac_reltopdir
4625
5443
 
4626
 
 
4627
5444
lib_frag=$srcdir/$ac_config_fragdir/lib.in
4628
5445
 
4629
5446
libobj_frag=$srcdir/$ac_config_fragdir/libobj.in
4630
5447
 
4631
5448
libnover_frag=$srcdir/$ac_config_fragdir/libnover.in
4632
5449
 
 
5450
libpriv_frag=$srcdir/$ac_config_fragdir/libpriv.in
 
5451
 
 
5452
libnodeps_frag=$srcdir/$ac_config_fragdir/libnodeps.in
 
5453
 
4633
5454
echo "$as_me:$LINENO: checking whether pragma weak references are supported" >&5
4634
5455
echo $ECHO_N "checking whether pragma weak references are supported... $ECHO_C" >&6
4635
5456
if test "${krb5_cv_pragma_weak_ref+set}" = set; then
4744
5565
  : # neither enabled
4745
5566
fi
4746
5567
 
4747
 
 
4748
5568
krb5_cv_host=$host
4749
5569
 
4750
5570
. $ac_topdir/config/shlib.conf
5399
6219
      # don't exclude CFLAGS when linking.  *sigh*
5400
6220
      PTHREAD_CFLAGS="-D_REENTRANT -D_THREAD_SAFE -D_POSIX_C_SOURCE=199506L"
5401
6221
      ;;
 
6222
    solaris2.1-9)
 
6223
      # On Solaris 10 with gcc 3.4.3, the autoconf archive macro doesn't
 
6224
      # get the right result.   XXX What about Solaris 9 and earlier?
 
6225
      if test "$GCC" = yes ; then
 
6226
        PTHREAD_CFLAGS="-D_REENTRANT -pthreads"
 
6227
      fi
 
6228
      ;;
5402
6229
    solaris*)
5403
6230
      # On Solaris 10 with gcc 3.4.3, the autoconf archive macro doesn't
5404
6231
      # get the right result.
5405
6232
      if test "$GCC" = yes ; then
5406
6233
        PTHREAD_CFLAGS="-D_REENTRANT -pthreads"
5407
6234
      fi
 
6235
      # On Solaris 10, the thread support is always available in libc.
 
6236
 
 
6237
cat >>confdefs.h <<\_ACEOF
 
6238
#define NO_WEAK_PTHREADS 1
 
6239
_ACEOF
 
6240
 
5408
6241
      ;;
5409
6242
  esac
5410
6243
  THREAD_SUPPORT=1
6391
7224
int
6392
7225
main ()
6393
7226
{
 
7227
#undef setenv
6394
7228
struct k5foo {int foo; } xx;
6395
7229
extern int setenv (struct k5foo*);
6396
7230
setenv(&xx);
6548
7382
 
6549
7383
fi
6550
7384
 
6551
 
if test "$KRB4_LIB" = ''; then
6552
 
        echo "$as_me:$LINENO: result: No Kerberos 4 authentication" >&5
6553
 
echo "${ECHO_T}No Kerberos 4 authentication" >&6
6554
 
else
6555
 
        echo "$as_me:$LINENO: result: Kerberos 4 authentication enabled" >&5
6556
 
echo "${ECHO_T}Kerberos 4 authentication enabled" >&6
6557
 
 
6558
 
cat >>confdefs.h <<\_ACEOF
6559
 
#define KRB4 1
6560
 
_ACEOF
6561
 
 
6562
 
fi
6563
 
krb5_force_static=yes
6564
 
 
6565
 
# Check whether to build static libraries.
 
7385
 
6566
7386
# Check whether --enable-static or --disable-static was given.
6567
7387
if test "${enable_static+set}" = set; then
6568
7388
  enableval="$enable_static"
6569
 
 
6570
 
else
6571
 
  enable_static=$default_static
6572
 
fi;
6573
 
 
6574
 
if test "$enable_static" = yes; then
 
7389
  if test "$enableval" != no; then
6575
7390
  { { echo "$as_me:$LINENO: error: Sorry, static libraries do not work in this release." >&5
6576
7391
echo "$as_me: error: Sorry, static libraries do not work in this release." >&2;}
6577
7392
   { (exit 1); exit 1; }; }
6578
7393
fi
6579
 
 
6580
 
if test "$enable_static" = no && test "$krb5_force_static" != yes; then
6581
 
        { echo "$as_me:$LINENO: disabling static libraries" >&5
6582
 
echo "$as_me: disabling static libraries" >&6;}
6583
 
        LIBLINKS=
6584
 
        LIBLIST=
6585
 
        OBJLISTS=
6586
 
else
6587
 
        LIBLIST='lib$(LIBBASE)$(STLIBEXT)'
6588
 
        LIBLINKS='$(TOPLIBD)/lib$(LIBBASE)$(STLIBEXT)'
6589
 
        OBJLISTS=OBJS.ST
6590
 
        LIBINSTLIST=install-static
6591
 
        DEPLIBEXT=$STLIBEXT
6592
 
#       CFLAGS="$CFLAGS -D_KDB5_STATIC_LINK"
6593
 
fi
6594
 
 
6595
 
# Check whether to build shared libraries.
 
7394
fi;
6596
7395
# Check whether --enable-shared or --disable-shared was given.
6597
7396
if test "${enable_shared+set}" = set; then
6598
7397
  enableval="$enable_shared"
6599
 
 
6600
 
else
6601
 
  enable_shared=$default_shared
6602
 
fi;
6603
 
 
6604
 
if test "$enable_shared" != yes; then
 
7398
  if test "$enableval" != yes; then
6605
7399
  { { echo "$as_me:$LINENO: error: Sorry, this release builds only shared libraries, cannot disable them." >&5
6606
7400
echo "$as_me: error: Sorry, this release builds only shared libraries, cannot disable them." >&2;}
6607
7401
   { (exit 1); exit 1; }; }
6608
7402
fi
6609
 
 
6610
 
if test "$enable_shared" = yes; then
6611
 
        case "$SHLIBEXT" in
6612
 
        .so-nobuild)
6613
 
                { echo "$as_me:$LINENO: WARNING: shared libraries not supported on this architecture" >&5
6614
 
echo "$as_me: WARNING: shared libraries not supported on this architecture" >&2;}
6615
 
                RUN_ENV=
6616
 
                CC_LINK="$CC_LINK_STATIC"
6617
 
                ;;
6618
 
        *)
6619
 
                # set this now because some logic below may reset SHLIBEXT
6620
 
                DEPLIBEXT=$SHLIBEXT
6621
 
                if test "$krb5_force_static" = "yes"; then
6622
 
                        echo "$as_me:$LINENO: result: Forcing static libraries." >&5
 
7403
fi;
 
7404
# Check whether --enable-rpath or --disable-rpath was given.
 
7405
if test "${enable_rpath+set}" = set; then
 
7406
  enableval="$enable_rpath"
 
7407
  enable_rpath=$enableval
 
7408
else
 
7409
  enable_rpath=yes
 
7410
fi;
 
7411
 
 
7412
if test "x$enable_rpath" != xyes ; then
 
7413
        # Unset the rpath flag values set by shlib.conf
 
7414
        SHLIB_RPATH_FLAGS=
 
7415
        RPATH_FLAG=
 
7416
        PROG_RPATH_FLAGS=
 
7417
fi
 
7418
 
 
7419
if test "$SHLIBEXT" = ".so-nobuild"; then
 
7420
   { { echo "$as_me:$LINENO: error: Shared libraries are not yet supported on this platform." >&5
 
7421
echo "$as_me: error: Shared libraries are not yet supported on this platform." >&2;}
 
7422
   { (exit 1); exit 1; }; }
 
7423
fi
 
7424
 
 
7425
DEPLIBEXT=$SHLIBEXT
 
7426
 
 
7427
if test "$krb5_force_static" = "yes"; then
 
7428
        LIBLIST='lib$(LIBBASE)$(STLIBEXT)'
 
7429
        LIBLINKS='$(TOPLIBD)/lib$(LIBBASE)$(STLIBEXT)'
 
7430
        OBJLISTS=OBJS.ST
 
7431
        # This used to be install-static, but now we only follow this
 
7432
        # path for internal libraries we don't want installed, not for
 
7433
        # configure-time requests for installed static libraries.
 
7434
        LIBINSTLIST=
 
7435
#       CFLAGS="$CFLAGS -D_KDB5_STATIC_LINK"
 
7436
 
 
7437
        echo "$as_me:$LINENO: result: Forcing static libraries." >&5
6623
7438
echo "${ECHO_T}Forcing static libraries." >&6
6624
 
                        # avoid duplicate rules generation for AIX and such
6625
 
                        SHLIBEXT=.so-nobuild
6626
 
                        SHLIBVEXT=.so.v-nobuild
6627
 
                        SHLIBSEXT=.so.s-nobuild
6628
 
                else
6629
 
                        { echo "$as_me:$LINENO: enabling shared libraries" >&5
6630
 
echo "$as_me: enabling shared libraries" >&6;}
6631
 
                        # Clear some stuff in case of AIX, etc.
6632
 
                        if test "$STLIBEXT" = "$SHLIBEXT" ; then
6633
 
                                STLIBEXT=.a-nobuild
6634
 
                                LIBLIST=
6635
 
                                LIBLINKS=
6636
 
                                OBJLISTS=
6637
 
                                LIBINSTLIST=
6638
 
                        fi
6639
 
                        LIBLIST="$LIBLIST "'lib$(LIBBASE)$(SHLIBEXT)'
6640
 
                        LIBLINKS="$LIBLINKS "'$(TOPLIBD)/lib$(LIBBASE)$(SHLIBEXT) $(TOPLIBD)/lib$(LIBBASE)$(SHLIBVEXT)'
6641
 
                        case "$SHLIBSEXT" in
6642
 
                        .so.s-nobuild)
6643
 
                                LIBINSTLIST="$LIBINSTLIST install-shared"
6644
 
                                ;;
6645
 
                        *)
6646
 
                                LIBLIST="$LIBLIST "'lib$(LIBBASE)$(SHLIBSEXT)'
6647
 
                                LIBLINKS="$LIBLINKS "'$(TOPLIBD)/lib$(LIBBASE)$(SHLIBSEXT)'
6648
 
                                LIBINSTLIST="$LIBINSTLIST install-shlib-soname"
6649
 
                                ;;
6650
 
                        esac
6651
 
                        OBJLISTS="$OBJLISTS OBJS.SH"
6652
 
                fi
6653
 
                CC_LINK="$CC_LINK_SHARED"
6654
 
                ;;
6655
 
        esac
6656
 
else
6657
 
        RUN_ENV=
6658
 
        CC_LINK="$CC_LINK_STATIC"
 
7439
        # avoid duplicate rules generation for AIX and such
6659
7440
        SHLIBEXT=.so-nobuild
6660
7441
        SHLIBVEXT=.so.v-nobuild
6661
7442
        SHLIBSEXT=.so.s-nobuild
6662
 
fi
6663
 
 
6664
 
if test "$build_dynobj" = yes; then
6665
 
        OBJLISTS=`echo $OBJLISTS | sed -e s/OBJS.ST//g -e s/OBJS.SH//g`
6666
 
        OBJLISTS="$OBJLISTS OBJS.SH"
6667
 
fi
 
7443
else
 
7444
        { echo "$as_me:$LINENO: using shared libraries" >&5
 
7445
echo "$as_me: using shared libraries" >&6;}
 
7446
 
 
7447
        # Clear some stuff in case of AIX, etc.
 
7448
        if test "$STLIBEXT" = "$SHLIBEXT" ; then
 
7449
                STLIBEXT=.a-nobuild
 
7450
        fi
 
7451
        case "$SHLIBSEXT" in
 
7452
        .so.s-nobuild)
 
7453
                SHLIB_HAVE_MINOR_VERS=no
 
7454
                LIBLIST='lib$(LIBBASE)$(SHLIBEXT)'
 
7455
                LIBLINKS='$(TOPLIBD)/lib$(LIBBASE)$(SHLIBEXT) $(TOPLIBD)/lib$(LIBBASE)$(SHLIBVEXT)'
 
7456
                LIBINSTLIST="install-shared"
 
7457
                ;;
 
7458
        *)
 
7459
                SHLIB_HAVE_MINOR_VERS=yes
 
7460
                LIBLIST='lib$(LIBBASE)$(SHLIBEXT) lib$(LIBBASE)$(SHLIBSEXT)'
 
7461
                LIBLINKS='$(TOPLIBD)/lib$(LIBBASE)$(SHLIBEXT) $(TOPLIBD)/lib$(LIBBASE)$(SHLIBVEXT) $(TOPLIBD)/lib$(LIBBASE)$(SHLIBSEXT)'
 
7462
                LIBINSTLIST="install-shlib-soname"
 
7463
                ;;
 
7464
        esac
 
7465
        OBJLISTS="OBJS.SH"
 
7466
fi
 
7467
CC_LINK="$CC_LINK_SHARED"
 
7468
CXX_LINK="$CXX_LINK_SHARED"
 
7469
 
6668
7470
 
6669
7471
if test -z "$LIBLIST"; then
6670
7472
        { { echo "$as_me:$LINENO: error: must enable one of shared or static libraries" >&5
6681
7483
echo "$as_me: error: Sorry, profiled libraries do not work in this release." >&2;}
6682
7484
   { (exit 1); exit 1; }; }
6683
7485
fi
6684
 
if false; then
6685
 
        case $PFLIBEXT in
6686
 
        .po-nobuild)
6687
 
                { echo "$as_me:$LINENO: WARNING: Profiled libraries not supported on this architecture." >&5
6688
 
echo "$as_me: WARNING: Profiled libraries not supported on this architecture." >&2;}
6689
 
                ;;
6690
 
        *)
6691
 
                { echo "$as_me:$LINENO: enabling profiled libraries" >&5
6692
 
echo "$as_me: enabling profiled libraries" >&6;}
6693
 
                LIBLIST="$LIBLIST "'lib$(LIBBASE)$(PFLIBEXT)'
6694
 
                LIBLINKS="$LIBLINKS "'$(TOPLIBD)/lib$(LIBBASE)$(PFLIBEXT)'
6695
 
                OBJLISTS="$OBJLISTS OBJS.PF"
6696
 
                LIBINSTLIST="$LIBINSTLIST install-profiled"
6697
 
                ;;
6698
 
        esac
6699
 
fi
6700
7486
fi;
6701
7487
echo "$as_me:$LINENO: checking whether ln -s works" >&5
6702
7488
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7035
7821
 
7036
7822
 
7037
7823
 
7038
 
# null out SHLIB_EXPFLAGS because we lack any dependencies
7039
 
SHLIB_EXPFLAGS=
7040
 
# If we're only building static libraries, they're for build-time use only,
7041
 
# so don't install.
7042
 
LIBINSTLIST=
 
7824
 
7043
7825
 
7044
7826
 
7045
7827
 
7825
8607
 
7826
8608
case $krb5_cv_host in
7827
8609
*-*-solaris*)
7828
 
        if test "$krb5_cv_prog_gcc" = yes; then
 
8610
        if test "$ac_cv_c_compiler_gnu" = yes; then
7829
8611
                # Solaris 8 at least has curses.h that is noisy under gcc
7830
8612
                ac_cv_header_curses_h=yes
7831
8613
        fi
8314
9096
 
8315
9097
 
8316
9098
 
8317
 
echo "$as_me:$LINENO: checking for type struct sockaddr_storage" >&5
8318
 
echo $ECHO_N "checking for type struct sockaddr_storage... $ECHO_C" >&6
8319
 
varname=`echo struct sockaddr_storage | sed 's,[ -],_,g'`
8320
 
if eval "test \"\${krb5_cv_$varname+set}\" = set"; then
8321
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8322
 
else
8323
 
 
8324
 
cat >conftest.$ac_ext <<_ACEOF
8325
 
/* confdefs.h.  */
8326
 
_ACEOF
8327
 
cat confdefs.h >>conftest.$ac_ext
8328
 
cat >>conftest.$ac_ext <<_ACEOF
8329
 
/* end confdefs.h.  */
8330
 
 
8331
 
#ifdef HAVE_SYS_TYPES_H
8332
 
#include <sys/types.h>
8333
 
#endif
8334
 
#include <sys/socket.h>
8335
 
#include <netinet/in.h>
8336
 
 
8337
 
int
8338
 
main ()
8339
 
{
8340
 
 struct sockaddr_storage foo;
8341
 
  ;
8342
 
  return 0;
8343
 
}
8344
 
_ACEOF
8345
 
rm -f conftest.$ac_objext
8346
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8347
 
  (eval $ac_compile) 2>conftest.er1
8348
 
  ac_status=$?
8349
 
  grep -v '^ *+' conftest.er1 >conftest.err
8350
 
  rm -f conftest.er1
8351
 
  cat conftest.err >&5
8352
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353
 
  (exit $ac_status); } &&
8354
 
         { ac_try='test -z "$ac_c_werror_flag"
8355
 
                         || test ! -s conftest.err'
8356
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8357
 
  (eval $ac_try) 2>&5
8358
 
  ac_status=$?
8359
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360
 
  (exit $ac_status); }; } &&
8361
 
         { ac_try='test -s conftest.$ac_objext'
8362
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8363
 
  (eval $ac_try) 2>&5
8364
 
  ac_status=$?
8365
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366
 
  (exit $ac_status); }; }; then
8367
 
  eval krb5_cv_$varname=yes
8368
 
else
8369
 
  echo "$as_me: failed program was:" >&5
8370
 
sed 's/^/| /' conftest.$ac_ext >&5
8371
 
 
8372
 
eval krb5_cv_$varname=no
8373
 
fi
8374
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8375
 
fi
8376
 
 
8377
 
eval x="\$krb5_cv_$varname"
8378
 
echo "$as_me:$LINENO: result: $x" >&5
8379
 
echo "${ECHO_T}$x" >&6
8380
 
if eval test "$x" = yes ; then
8381
 
  cat >>confdefs.h <<_ACEOF
8382
 
#define HAVE_`echo $varname | tr '[a-z]' '[A-Z]'` 1
8383
 
_ACEOF
8384
 
 
8385
 
fi
8386
 
 
8387
 
 
8388
9099
 
8389
9100
 
8390
9101
 
8713
9424
  enableval="$enable_ipv6"
8714
9425
  { echo "$as_me:$LINENO: WARNING: enable/disable-ipv6 option is deprecated" >&5
8715
9426
echo "$as_me: WARNING: enable/disable-ipv6 option is deprecated" >&2;}
8716
 
fi;
8717
 
echo "$as_me:$LINENO: checking for IPv6 compile-time support" >&5
 
9427
fi; echo "$as_me:$LINENO: checking for IPv6 compile-time support" >&5
8718
9428
echo $ECHO_N "checking for IPv6 compile-time support... $ECHO_C" >&6
8719
9429
if test "${krb5_cv_inet6+set}" = set; then
8720
9430
  echo $ECHO_N "(cached) $ECHO_C" >&6
8871
9581
fi
8872
9582
 
8873
9583
 
8874
 
 
8875
9584
for ac_func in setupterm
8876
9585
do
8877
9586
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9351
10060
int
9352
10061
main ()
9353
10062
{
 
10063
#undef parsetos
9354
10064
struct k5foo {int foo; } xx;
9355
10065
extern int parsetos (struct k5foo*);
9356
10066
parsetos(&xx);
9421
10131
int
9422
10132
main ()
9423
10133
{
 
10134
#undef herror
9424
10135
struct k5foo {int foo; } xx;
9425
10136
extern int herror (struct k5foo*);
9426
10137
herror(&xx);
9627
10338
 
9628
10339
fi
9629
10340
 
9630
 
if test "$KRB4_LIB" = ''; then
9631
 
        echo "$as_me:$LINENO: result: No Kerberos 4 authentication" >&5
9632
 
echo "${ECHO_T}No Kerberos 4 authentication" >&6
9633
 
else
9634
 
        echo "$as_me:$LINENO: result: Kerberos 4 authentication enabled" >&5
9635
 
echo "${ECHO_T}Kerberos 4 authentication enabled" >&6
9636
 
        cat >>confdefs.h <<\_ACEOF
9637
 
#define KRB4 1
9638
 
_ACEOF
9639
 
 
9640
 
fi
9641
10341
 
9642
10342
echo "$as_me:$LINENO: checking for working regcomp" >&5
9643
10343
echo $ECHO_N "checking for working regcomp... $ECHO_C" >&6
9877
10577
 
9878
10578
 
9879
10579
 
 
10580
 
 
10581
 
9880
10582
TELNET_LIBS="$LIBS"
9881
10583
 
9882
10584
LIBS="$old_LIBS"
10421
11123
int
10422
11124
main ()
10423
11125
{
 
11126
#undef unsetenv
10424
11127
struct k5foo {int foo; } xx;
10425
11128
extern int unsetenv (struct k5foo*);
10426
11129
unsetenv(&xx);
10543
11246
 
10544
11247
 
10545
11248
 
10546
 
           ac_config_files="$ac_config_files ./Makefile:$srcdir/../../config/pre.in:./Makefile.in:$srcdir/../../config/post.in"
10547
 
           ac_config_files="$ac_config_files libtelnet/Makefile:$srcdir/../../config/pre.in:libtelnet/Makefile.in:$srcdir/../../config/post.in"
10548
 
           ac_config_files="$ac_config_files telnet/Makefile:$srcdir/../../config/pre.in:telnet/Makefile.in:$srcdir/../../config/post.in"
10549
 
           ac_config_files="$ac_config_files telnetd/Makefile:$srcdir/../../config/pre.in:telnetd/Makefile.in:$srcdir/../../config/post.in"
 
11249
           ac_config_files="$ac_config_files ./Makefile:$srcdir/../../config/pre.in:./Makefile.in:./deps:$srcdir/../../config/post.in"
 
11250
           ac_config_files="$ac_config_files libtelnet/Makefile:$srcdir/../../config/pre.in:libtelnet/Makefile.in:libtelnet/deps:$srcdir/../../config/post.in"
 
11251
           ac_config_files="$ac_config_files telnet/Makefile:$srcdir/../../config/pre.in:telnet/Makefile.in:telnet/deps:$srcdir/../../config/post.in"
 
11252
           ac_config_files="$ac_config_files telnetd/Makefile:$srcdir/../../config/pre.in:telnetd/Makefile.in:telnetd/deps:$srcdir/../../config/post.in"
10550
11253
 
10551
11254
cat >confcache <<\_ACEOF
10552
11255
# This file is a shell script that caches the results of configure
10941
11644
} >&5
10942
11645
cat >&5 <<_CSEOF
10943
11646
 
10944
 
This file was extended by Kerberos 5 $as_me 1.6.4-beta1, which was
 
11647
This file was extended by Kerberos 5 $as_me 1.7-beta1, which was
10945
11648
generated by GNU Autoconf 2.59.  Invocation command line was
10946
11649
 
10947
11650
  CONFIG_FILES    = $CONFIG_FILES
10996
11699
 
10997
11700
cat >>$CONFIG_STATUS <<_ACEOF
10998
11701
ac_cs_version="\\
10999
 
Kerberos 5 config.status 1.6.4-beta1
 
11702
Kerberos 5 config.status 1.7-beta1
11000
11703
configured by $0, generated by GNU Autoconf 2.59,
11001
11704
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11002
11705
 
11099
11802
do
11100
11803
  case "$ac_config_target" in
11101
11804
  # Handling of arguments.
11102
 
  "./Makefile" ) CONFIG_FILES="$CONFIG_FILES ./Makefile:$srcdir/../../config/pre.in:./Makefile.in:$srcdir/../../config/post.in" ;;
11103
 
  "libtelnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES libtelnet/Makefile:$srcdir/../../config/pre.in:libtelnet/Makefile.in:$srcdir/../../config/post.in" ;;
11104
 
  "telnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES telnet/Makefile:$srcdir/../../config/pre.in:telnet/Makefile.in:$srcdir/../../config/post.in" ;;
11105
 
  "telnetd/Makefile" ) CONFIG_FILES="$CONFIG_FILES telnetd/Makefile:$srcdir/../../config/pre.in:telnetd/Makefile.in:$srcdir/../../config/post.in" ;;
 
11805
  "./Makefile" ) CONFIG_FILES="$CONFIG_FILES ./Makefile:$srcdir/../../config/pre.in:./Makefile.in:./deps:$srcdir/../../config/post.in" ;;
 
11806
  "libtelnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES libtelnet/Makefile:$srcdir/../../config/pre.in:libtelnet/Makefile.in:libtelnet/deps:$srcdir/../../config/post.in" ;;
 
11807
  "telnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES telnet/Makefile:$srcdir/../../config/pre.in:telnet/Makefile.in:telnet/deps:$srcdir/../../config/post.in" ;;
 
11808
  "telnetd/Makefile" ) CONFIG_FILES="$CONFIG_FILES telnetd/Makefile:$srcdir/../../config/pre.in:telnetd/Makefile.in:telnetd/deps:$srcdir/../../config/post.in" ;;
11106
11809
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11107
11810
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11108
11811
   { (exit 1); exit 1; }; };;
11194
11897
s,@ac_ct_CC@,$ac_ct_CC,;t t
11195
11898
s,@EXEEXT@,$EXEEXT,;t t
11196
11899
s,@OBJEXT@,$OBJEXT,;t t
 
11900
s,@CXX@,$CXX,;t t
 
11901
s,@CXXFLAGS@,$CXXFLAGS,;t t
 
11902
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
11197
11903
s,@HAVE_GCC@,$HAVE_GCC,;t t
 
11904
s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
 
11905
s,@WARN_CXXFLAGS@,$WARN_CXXFLAGS,;t t
11198
11906
s,@CPP@,$CPP,;t t
11199
11907
s,@LD@,$LD,;t t
11200
 
s,@KRB4_INCLUDES@,$KRB4_INCLUDES,;t t
11201
 
s,@KRB4_LIBPATH@,$KRB4_LIBPATH,;t t
11202
 
s,@KRB4_LIB@,$KRB4_LIB,;t t
11203
 
s,@KRB4_DEPLIB@,$KRB4_DEPLIB,;t t
11204
 
s,@KRB_ERR_H_DEP@,$KRB_ERR_H_DEP,;t t
11205
 
s,@DES425_DEPLIB@,$DES425_DEPLIB,;t t
11206
 
s,@DES425_LIB@,$DES425_LIB,;t t
11207
11908
s,@compile_et@,$compile_et,;t t
11208
11909
s,@COM_ERR_VERSION@,$COM_ERR_VERSION,;t t
11209
11910
s,@SS_LIB@,$SS_LIB,;t t
11219
11920
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11220
11921
s,@MAINT@,$MAINT,;t t
11221
11922
s,@CONFIG_RELTOPDIR@,$CONFIG_RELTOPDIR,;t t
11222
 
s,@subdirs@,$subdirs,;t t
11223
 
s,@OPENLDAP_PLUGIN@,$OPENLDAP_PLUGIN,;t t
11224
11923
s,@build@,$build,;t t
11225
11924
s,@build_cpu@,$build_cpu,;t t
11226
11925
s,@build_vendor@,$build_vendor,;t t
11240
11939
s,@LIBOBJS@,$LIBOBJS,;t t
11241
11940
s,@SETENVSRC@,$SETENVSRC,;t t
11242
11941
s,@SETENVOBJ@,$SETENVOBJ,;t t
 
11942
s,@SHLIB_HAVE_MINOR_VERS@,$SHLIB_HAVE_MINOR_VERS,;t t
11243
11943
s,@LN_S@,$LN_S,;t t
11244
11944
s,@RANLIB@,$RANLIB,;t t
11245
11945
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11253
11953
s,@LIBLIST@,$LIBLIST,;t t
11254
11954
s,@LIBLINKS@,$LIBLINKS,;t t
11255
11955
s,@MAKE_SHLIB_COMMAND@,$MAKE_SHLIB_COMMAND,;t t
 
11956
s,@SHLIB_RPATH_FLAGS@,$SHLIB_RPATH_FLAGS,;t t
11256
11957
s,@SHLIB_EXPFLAGS@,$SHLIB_EXPFLAGS,;t t
11257
11958
s,@SHLIB_EXPORT_FILE_DEP@,$SHLIB_EXPORT_FILE_DEP,;t t
11258
11959
s,@DYNOBJ_EXPDEPS@,$DYNOBJ_EXPDEPS,;t t
11275
11976
s,@PROFFLAGS@,$PROFFLAGS,;t t
11276
11977
s,@GEN_LIB@,$GEN_LIB,;t t
11277
11978
s,@CC_LINK@,$CC_LINK,;t t
 
11979
s,@CXX_LINK@,$CXX_LINK,;t t
11278
11980
s,@RPATH_FLAG@,$RPATH_FLAG,;t t
 
11981
s,@PROG_RPATH_FLAGS@,$PROG_RPATH_FLAGS,;t t
11279
11982
s,@TELNET_LIBS@,$TELNET_LIBS,;t t
11280
11983
s,@TELNETD_LIBS@,$TELNETD_LIBS,;t t
11281
11984
s,@UTIL_LIB@,$UTIL_LIB,;t t
11286
11989
s,@libobj_frag@,,;t t
11287
11990
/@libnover_frag@/r $libnover_frag
11288
11991
s,@libnover_frag@,,;t t
 
11992
/@libpriv_frag@/r $libpriv_frag
 
11993
s,@libpriv_frag@,,;t t
 
11994
/@libnodeps_frag@/r $libnodeps_frag
 
11995
s,@libnodeps_frag@,,;t t
11289
11996
CEOF
11290
11997
 
11291
11998
_ACEOF