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

« back to all changes in this revision

Viewing changes to src/appl/gssftp/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="README.gssftp"
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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA YACC LIBOBJS UTIL_LIB SETENVSRC SETENVOBJ FTPD_LIBS GEN_LIB CC_LINK RPATH_FLAG DEPLIBEXT 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA YACC LIBOBJS UTIL_LIB SETENVSRC SETENVOBJ FTPD_LIBS SHLIB_HAVE_MINOR_VERS GEN_LIB CC_LINK CXX_LINK RPATH_FLAG PROG_RPATH_FLAGS DEPLIBEXT 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
8793
9626
esac
8794
9627
 
8795
9628
 
8796
 
# Check whether to build static libraries.
8797
9629
# Check whether --enable-static or --disable-static was given.
8798
9630
if test "${enable_static+set}" = set; then
8799
9631
  enableval="$enable_static"
8800
 
 
8801
 
else
8802
 
  enable_static=$default_static
8803
 
fi;
8804
 
 
8805
 
if test "$enable_static" = yes; then
 
9632
  if test "$enableval" != no; then
8806
9633
  { { echo "$as_me:$LINENO: error: Sorry, static libraries do not work in this release." >&5
8807
9634
echo "$as_me: error: Sorry, static libraries do not work in this release." >&2;}
8808
9635
   { (exit 1); exit 1; }; }
8809
9636
fi
8810
 
 
8811
 
if test "$enable_static" = no && test "$krb5_force_static" != yes; then
8812
 
        { echo "$as_me:$LINENO: disabling static libraries" >&5
8813
 
echo "$as_me: disabling static libraries" >&6;}
8814
 
        LIBLINKS=
8815
 
        LIBLIST=
8816
 
        OBJLISTS=
8817
 
else
8818
 
        LIBLIST='lib$(LIBBASE)$(STLIBEXT)'
8819
 
        LIBLINKS='$(TOPLIBD)/lib$(LIBBASE)$(STLIBEXT)'
8820
 
        OBJLISTS=OBJS.ST
8821
 
        LIBINSTLIST=install-static
8822
 
        DEPLIBEXT=$STLIBEXT
8823
 
#       CFLAGS="$CFLAGS -D_KDB5_STATIC_LINK"
8824
 
fi
8825
 
 
8826
 
# Check whether to build shared libraries.
 
9637
fi;
8827
9638
# Check whether --enable-shared or --disable-shared was given.
8828
9639
if test "${enable_shared+set}" = set; then
8829
9640
  enableval="$enable_shared"
8830
 
 
8831
 
else
8832
 
  enable_shared=$default_shared
8833
 
fi;
8834
 
 
8835
 
if test "$enable_shared" != yes; then
 
9641
  if test "$enableval" != yes; then
8836
9642
  { { echo "$as_me:$LINENO: error: Sorry, this release builds only shared libraries, cannot disable them." >&5
8837
9643
echo "$as_me: error: Sorry, this release builds only shared libraries, cannot disable them." >&2;}
8838
9644
   { (exit 1); exit 1; }; }
8839
9645
fi
8840
 
 
8841
 
if test "$enable_shared" = yes; then
8842
 
        case "$SHLIBEXT" in
8843
 
        .so-nobuild)
8844
 
                { echo "$as_me:$LINENO: WARNING: shared libraries not supported on this architecture" >&5
8845
 
echo "$as_me: WARNING: shared libraries not supported on this architecture" >&2;}
8846
 
                RUN_ENV=
8847
 
                CC_LINK="$CC_LINK_STATIC"
8848
 
                ;;
8849
 
        *)
8850
 
                # set this now because some logic below may reset SHLIBEXT
8851
 
                DEPLIBEXT=$SHLIBEXT
8852
 
                if test "$krb5_force_static" = "yes"; then
8853
 
                        echo "$as_me:$LINENO: result: Forcing static libraries." >&5
 
9646
fi;
 
9647
# Check whether --enable-rpath or --disable-rpath was given.
 
9648
if test "${enable_rpath+set}" = set; then
 
9649
  enableval="$enable_rpath"
 
9650
  enable_rpath=$enableval
 
9651
else
 
9652
  enable_rpath=yes
 
9653
fi;
 
9654
 
 
9655
if test "x$enable_rpath" != xyes ; then
 
9656
        # Unset the rpath flag values set by shlib.conf
 
9657
        SHLIB_RPATH_FLAGS=
 
9658
        RPATH_FLAG=
 
9659
        PROG_RPATH_FLAGS=
 
9660
fi
 
9661
 
 
9662
if test "$SHLIBEXT" = ".so-nobuild"; then
 
9663
   { { echo "$as_me:$LINENO: error: Shared libraries are not yet supported on this platform." >&5
 
9664
echo "$as_me: error: Shared libraries are not yet supported on this platform." >&2;}
 
9665
   { (exit 1); exit 1; }; }
 
9666
fi
 
9667
 
 
9668
DEPLIBEXT=$SHLIBEXT
 
9669
 
 
9670
if test "$krb5_force_static" = "yes"; then
 
9671
        LIBLIST='lib$(LIBBASE)$(STLIBEXT)'
 
9672
        LIBLINKS='$(TOPLIBD)/lib$(LIBBASE)$(STLIBEXT)'
 
9673
        OBJLISTS=OBJS.ST
 
9674
        # This used to be install-static, but now we only follow this
 
9675
        # path for internal libraries we don't want installed, not for
 
9676
        # configure-time requests for installed static libraries.
 
9677
        LIBINSTLIST=
 
9678
#       CFLAGS="$CFLAGS -D_KDB5_STATIC_LINK"
 
9679
 
 
9680
        echo "$as_me:$LINENO: result: Forcing static libraries." >&5
8854
9681
echo "${ECHO_T}Forcing static libraries." >&6
8855
 
                        # avoid duplicate rules generation for AIX and such
8856
 
                        SHLIBEXT=.so-nobuild
8857
 
                        SHLIBVEXT=.so.v-nobuild
8858
 
                        SHLIBSEXT=.so.s-nobuild
8859
 
                else
8860
 
                        { echo "$as_me:$LINENO: enabling shared libraries" >&5
8861
 
echo "$as_me: enabling shared libraries" >&6;}
8862
 
                        # Clear some stuff in case of AIX, etc.
8863
 
                        if test "$STLIBEXT" = "$SHLIBEXT" ; then
8864
 
                                STLIBEXT=.a-nobuild
8865
 
                                LIBLIST=
8866
 
                                LIBLINKS=
8867
 
                                OBJLISTS=
8868
 
                                LIBINSTLIST=
8869
 
                        fi
8870
 
                        LIBLIST="$LIBLIST "'lib$(LIBBASE)$(SHLIBEXT)'
8871
 
                        LIBLINKS="$LIBLINKS "'$(TOPLIBD)/lib$(LIBBASE)$(SHLIBEXT) $(TOPLIBD)/lib$(LIBBASE)$(SHLIBVEXT)'
8872
 
                        case "$SHLIBSEXT" in
8873
 
                        .so.s-nobuild)
8874
 
                                LIBINSTLIST="$LIBINSTLIST install-shared"
8875
 
                                ;;
8876
 
                        *)
8877
 
                                LIBLIST="$LIBLIST "'lib$(LIBBASE)$(SHLIBSEXT)'
8878
 
                                LIBLINKS="$LIBLINKS "'$(TOPLIBD)/lib$(LIBBASE)$(SHLIBSEXT)'
8879
 
                                LIBINSTLIST="$LIBINSTLIST install-shlib-soname"
8880
 
                                ;;
8881
 
                        esac
8882
 
                        OBJLISTS="$OBJLISTS OBJS.SH"
8883
 
                fi
8884
 
                CC_LINK="$CC_LINK_SHARED"
8885
 
                ;;
8886
 
        esac
8887
 
else
8888
 
        RUN_ENV=
8889
 
        CC_LINK="$CC_LINK_STATIC"
 
9682
        # avoid duplicate rules generation for AIX and such
8890
9683
        SHLIBEXT=.so-nobuild
8891
9684
        SHLIBVEXT=.so.v-nobuild
8892
9685
        SHLIBSEXT=.so.s-nobuild
8893
 
fi
8894
 
 
8895
 
if test "$build_dynobj" = yes; then
8896
 
        OBJLISTS=`echo $OBJLISTS | sed -e s/OBJS.ST//g -e s/OBJS.SH//g`
8897
 
        OBJLISTS="$OBJLISTS OBJS.SH"
8898
 
fi
 
9686
else
 
9687
        { echo "$as_me:$LINENO: using shared libraries" >&5
 
9688
echo "$as_me: using shared libraries" >&6;}
 
9689
 
 
9690
        # Clear some stuff in case of AIX, etc.
 
9691
        if test "$STLIBEXT" = "$SHLIBEXT" ; then
 
9692
                STLIBEXT=.a-nobuild
 
9693
        fi
 
9694
        case "$SHLIBSEXT" in
 
9695
        .so.s-nobuild)
 
9696
                SHLIB_HAVE_MINOR_VERS=no
 
9697
                LIBLIST='lib$(LIBBASE)$(SHLIBEXT)'
 
9698
                LIBLINKS='$(TOPLIBD)/lib$(LIBBASE)$(SHLIBEXT) $(TOPLIBD)/lib$(LIBBASE)$(SHLIBVEXT)'
 
9699
                LIBINSTLIST="install-shared"
 
9700
                ;;
 
9701
        *)
 
9702
                SHLIB_HAVE_MINOR_VERS=yes
 
9703
                LIBLIST='lib$(LIBBASE)$(SHLIBEXT) lib$(LIBBASE)$(SHLIBSEXT)'
 
9704
                LIBLINKS='$(TOPLIBD)/lib$(LIBBASE)$(SHLIBEXT) $(TOPLIBD)/lib$(LIBBASE)$(SHLIBVEXT) $(TOPLIBD)/lib$(LIBBASE)$(SHLIBSEXT)'
 
9705
                LIBINSTLIST="install-shlib-soname"
 
9706
                ;;
 
9707
        esac
 
9708
        OBJLISTS="OBJS.SH"
 
9709
fi
 
9710
CC_LINK="$CC_LINK_SHARED"
 
9711
CXX_LINK="$CXX_LINK_SHARED"
 
9712
 
8899
9713
 
8900
9714
if test -z "$LIBLIST"; then
8901
9715
        { { echo "$as_me:$LINENO: error: must enable one of shared or static libraries" >&5
8912
9726
echo "$as_me: error: Sorry, profiled libraries do not work in this release." >&2;}
8913
9727
   { (exit 1); exit 1; }; }
8914
9728
fi
8915
 
if false; then
8916
 
        case $PFLIBEXT in
8917
 
        .po-nobuild)
8918
 
                { echo "$as_me:$LINENO: WARNING: Profiled libraries not supported on this architecture." >&5
8919
 
echo "$as_me: WARNING: Profiled libraries not supported on this architecture." >&2;}
8920
 
                ;;
8921
 
        *)
8922
 
                { echo "$as_me:$LINENO: enabling profiled libraries" >&5
8923
 
echo "$as_me: enabling profiled libraries" >&6;}
8924
 
                LIBLIST="$LIBLIST "'lib$(LIBBASE)$(PFLIBEXT)'
8925
 
                LIBLINKS="$LIBLINKS "'$(TOPLIBD)/lib$(LIBBASE)$(PFLIBEXT)'
8926
 
                OBJLISTS="$OBJLISTS OBJS.PF"
8927
 
                LIBINSTLIST="$LIBINSTLIST install-profiled"
8928
 
                ;;
8929
 
        esac
8930
 
fi
8931
9729
fi;
8932
9730
 
8933
9731
echo "$as_me:$LINENO: checking for working regcomp" >&5
9169
9967
 
9170
9968
 
9171
9969
 
9172
 
           ac_config_files="$ac_config_files ./Makefile:$srcdir/../../config/pre.in:./Makefile.in:$srcdir/../../config/post.in"
9173
 
           ac_config_files="$ac_config_files ftp/Makefile:$srcdir/../../config/pre.in:ftp/Makefile.in:$srcdir/../../config/post.in"
9174
 
           ac_config_files="$ac_config_files ftpd/Makefile:$srcdir/../../config/pre.in:ftpd/Makefile.in:$srcdir/../../config/post.in"
 
9970
 
 
9971
 
 
9972
           ac_config_files="$ac_config_files ./Makefile:$srcdir/../../config/pre.in:./Makefile.in:./deps:$srcdir/../../config/post.in"
 
9973
           ac_config_files="$ac_config_files ftp/Makefile:$srcdir/../../config/pre.in:ftp/Makefile.in:ftp/deps:$srcdir/../../config/post.in"
 
9974
           ac_config_files="$ac_config_files ftpd/Makefile:$srcdir/../../config/pre.in:ftpd/Makefile.in:ftpd/deps:$srcdir/../../config/post.in"
9175
9975
 
9176
9976
cat >confcache <<\_ACEOF
9177
9977
# This file is a shell script that caches the results of configure
9566
10366
} >&5
9567
10367
cat >&5 <<_CSEOF
9568
10368
 
9569
 
This file was extended by Kerberos 5 $as_me 1.6.4-beta1, which was
 
10369
This file was extended by Kerberos 5 $as_me 1.7-beta1, which was
9570
10370
generated by GNU Autoconf 2.59.  Invocation command line was
9571
10371
 
9572
10372
  CONFIG_FILES    = $CONFIG_FILES
9621
10421
 
9622
10422
cat >>$CONFIG_STATUS <<_ACEOF
9623
10423
ac_cs_version="\\
9624
 
Kerberos 5 config.status 1.6.4-beta1
 
10424
Kerberos 5 config.status 1.7-beta1
9625
10425
configured by $0, generated by GNU Autoconf 2.59,
9626
10426
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9627
10427
 
9724
10524
do
9725
10525
  case "$ac_config_target" in
9726
10526
  # Handling of arguments.
9727
 
  "./Makefile" ) CONFIG_FILES="$CONFIG_FILES ./Makefile:$srcdir/../../config/pre.in:./Makefile.in:$srcdir/../../config/post.in" ;;
9728
 
  "ftp/Makefile" ) CONFIG_FILES="$CONFIG_FILES ftp/Makefile:$srcdir/../../config/pre.in:ftp/Makefile.in:$srcdir/../../config/post.in" ;;
9729
 
  "ftpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ftpd/Makefile:$srcdir/../../config/pre.in:ftpd/Makefile.in:$srcdir/../../config/post.in" ;;
 
10527
  "./Makefile" ) CONFIG_FILES="$CONFIG_FILES ./Makefile:$srcdir/../../config/pre.in:./Makefile.in:./deps:$srcdir/../../config/post.in" ;;
 
10528
  "ftp/Makefile" ) CONFIG_FILES="$CONFIG_FILES ftp/Makefile:$srcdir/../../config/pre.in:ftp/Makefile.in:ftp/deps:$srcdir/../../config/post.in" ;;
 
10529
  "ftpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ftpd/Makefile:$srcdir/../../config/pre.in:ftpd/Makefile.in:ftpd/deps:$srcdir/../../config/post.in" ;;
9730
10530
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9731
10531
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9732
10532
   { (exit 1); exit 1; }; };;
9818
10618
s,@ac_ct_CC@,$ac_ct_CC,;t t
9819
10619
s,@EXEEXT@,$EXEEXT,;t t
9820
10620
s,@OBJEXT@,$OBJEXT,;t t
 
10621
s,@CXX@,$CXX,;t t
 
10622
s,@CXXFLAGS@,$CXXFLAGS,;t t
 
10623
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
9821
10624
s,@HAVE_GCC@,$HAVE_GCC,;t t
 
10625
s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
 
10626
s,@WARN_CXXFLAGS@,$WARN_CXXFLAGS,;t t
9822
10627
s,@CPP@,$CPP,;t t
9823
10628
s,@LD@,$LD,;t t
9824
 
s,@KRB4_INCLUDES@,$KRB4_INCLUDES,;t t
9825
 
s,@KRB4_LIBPATH@,$KRB4_LIBPATH,;t t
9826
 
s,@KRB4_LIB@,$KRB4_LIB,;t t
9827
 
s,@KRB4_DEPLIB@,$KRB4_DEPLIB,;t t
9828
 
s,@KRB_ERR_H_DEP@,$KRB_ERR_H_DEP,;t t
9829
 
s,@DES425_DEPLIB@,$DES425_DEPLIB,;t t
9830
 
s,@DES425_LIB@,$DES425_LIB,;t t
9831
10629
s,@compile_et@,$compile_et,;t t
9832
10630
s,@COM_ERR_VERSION@,$COM_ERR_VERSION,;t t
9833
10631
s,@SS_LIB@,$SS_LIB,;t t
9843
10641
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
9844
10642
s,@MAINT@,$MAINT,;t t
9845
10643
s,@CONFIG_RELTOPDIR@,$CONFIG_RELTOPDIR,;t t
9846
 
s,@subdirs@,$subdirs,;t t
9847
 
s,@OPENLDAP_PLUGIN@,$OPENLDAP_PLUGIN,;t t
9848
10644
s,@build@,$build,;t t
9849
10645
s,@build_cpu@,$build_cpu,;t t
9850
10646
s,@build_vendor@,$build_vendor,;t t
9870
10666
s,@SETENVSRC@,$SETENVSRC,;t t
9871
10667
s,@SETENVOBJ@,$SETENVOBJ,;t t
9872
10668
s,@FTPD_LIBS@,$FTPD_LIBS,;t t
 
10669
s,@SHLIB_HAVE_MINOR_VERS@,$SHLIB_HAVE_MINOR_VERS,;t t
9873
10670
s,@GEN_LIB@,$GEN_LIB,;t t
9874
10671
s,@CC_LINK@,$CC_LINK,;t t
 
10672
s,@CXX_LINK@,$CXX_LINK,;t t
9875
10673
s,@RPATH_FLAG@,$RPATH_FLAG,;t t
 
10674
s,@PROG_RPATH_FLAGS@,$PROG_RPATH_FLAGS,;t t
9876
10675
s,@DEPLIBEXT@,$DEPLIBEXT,;t t
9877
10676
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9878
10677
/@lib_frag@/r $lib_frag
9881
10680
s,@libobj_frag@,,;t t
9882
10681
/@libnover_frag@/r $libnover_frag
9883
10682
s,@libnover_frag@,,;t t
 
10683
/@libpriv_frag@/r $libpriv_frag
 
10684
s,@libpriv_frag@,,;t t
 
10685
/@libnodeps_frag@/r $libnodeps_frag
 
10686
s,@libnodeps_frag@,,;t t
9884
10687
CEOF
9885
10688
 
9886
10689
_ACEOF