2284
2249
cat conftest.err >&5
2285
2250
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286
2251
(exit $ac_status); } &&
2287
{ ac_try='test -z "$ac_c_werror_flag"
2288
|| test ! -s conftest.err'
2289
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2292
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293
(exit $ac_status); }; } &&
2294
{ ac_try='test -s conftest.$ac_objext'
2295
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2298
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299
(exit $ac_status); }; }; then
2302
echo "$as_me: failed program was:" >&5
2303
sed 's/^/| /' conftest.$ac_ext >&5
2307
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2308
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2311
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2312
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2313
GCC=`test $ac_compiler_gnu = yes && echo yes`
2314
ac_test_CFLAGS=${CFLAGS+set}
2315
ac_save_CFLAGS=$CFLAGS
2317
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2318
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2319
if test "${ac_cv_prog_cc_g+set}" = set; then
2320
echo $ECHO_N "(cached) $ECHO_C" >&6
2322
cat >conftest.$ac_ext <<_ACEOF
2325
cat confdefs.h >>conftest.$ac_ext
2326
cat >>conftest.$ac_ext <<_ACEOF
2327
/* end confdefs.h. */
2337
rm -f conftest.$ac_objext
2338
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2339
(eval $ac_compile) 2>conftest.er1
2341
grep -v '^ *+' conftest.er1 >conftest.err
2343
cat conftest.err >&5
2344
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345
(exit $ac_status); } &&
2346
{ ac_try='test -z "$ac_c_werror_flag"
2347
|| test ! -s conftest.err'
2348
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2351
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352
(exit $ac_status); }; } &&
2353
{ ac_try='test -s conftest.$ac_objext'
2354
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2357
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358
(exit $ac_status); }; }; then
2361
echo "$as_me: failed program was:" >&5
2362
sed 's/^/| /' conftest.$ac_ext >&5
2366
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2368
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2369
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2370
if test "$ac_test_CFLAGS" = set; then
2371
CFLAGS=$ac_save_CFLAGS
2372
elif test $ac_cv_prog_cc_g = yes; then
2373
if test "$GCC" = yes; then
2379
if test "$GCC" = yes; then
2385
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2386
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2387
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2388
echo $ECHO_N "(cached) $ECHO_C" >&6
2390
ac_cv_prog_cc_stdc=no
2392
cat >conftest.$ac_ext <<_ACEOF
2395
cat confdefs.h >>conftest.$ac_ext
2396
cat >>conftest.$ac_ext <<_ACEOF
2397
/* end confdefs.h. */
2400
#include <sys/types.h>
2401
#include <sys/stat.h>
2402
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2403
struct buf { int x; };
2404
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2405
static char *e (p, i)
2411
static char *f (char * (*g) (char **, int), char **p, ...)
2416
s = g (p, va_arg (v,int));
2421
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2422
function prototypes and stuff, but not '\xHH' hex character constants.
2423
These don't provoke an error unfortunately, instead are silently treated
2424
as 'x'. The following induces an error, until -std1 is added to get
2425
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2426
array size at least. It's necessary to write '\x00'==0 to get something
2427
that's true only with -std1. */
2428
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2430
int test (int i, double x);
2431
struct s1 {int (*f) (int a);};
2432
struct s2 {int (*f) (double a);};
2433
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2439
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2444
# Don't try gcc -ansi; that turns off useful extensions and
2445
# breaks some systems' header files.
2446
# AIX -qlanglvl=ansi
2447
# Ultrix and OSF/1 -std1
2448
# HP-UX 10.20 and later -Ae
2449
# HP-UX older versions -Aa -D_HPUX_SOURCE
2450
# SVR4 -Xc -D__EXTENSIONS__
2451
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2453
CC="$ac_save_CC $ac_arg"
2454
rm -f conftest.$ac_objext
2455
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2456
(eval $ac_compile) 2>conftest.er1
2458
grep -v '^ *+' conftest.er1 >conftest.err
2460
cat conftest.err >&5
2461
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462
(exit $ac_status); } &&
2463
{ ac_try='test -z "$ac_c_werror_flag"
2464
|| test ! -s conftest.err'
2465
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2468
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469
(exit $ac_status); }; } &&
2470
{ ac_try='test -s conftest.$ac_objext'
2471
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2474
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475
(exit $ac_status); }; }; then
2476
ac_cv_prog_cc_stdc=$ac_arg
2479
echo "$as_me: failed program was:" >&5
2480
sed 's/^/| /' conftest.$ac_ext >&5
2483
rm -f conftest.err conftest.$ac_objext
2485
rm -f conftest.$ac_ext conftest.$ac_objext
2490
case "x$ac_cv_prog_cc_stdc" in
2492
echo "$as_me:$LINENO: result: none needed" >&5
2493
echo "${ECHO_T}none needed" >&6 ;;
2495
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2496
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2497
CC="$CC $ac_cv_prog_cc_stdc" ;;
2500
# Some people use a C++ compiler to compile C. Since we use `exit',
2501
# in C++ we need to declare it. In case someone uses the same compiler
2502
# for both compiling C and C++ we need to have the C++ compiler decide
2503
# the declaration of exit, since it's the most demanding environment.
2504
cat >conftest.$ac_ext <<_ACEOF
2509
rm -f conftest.$ac_objext
2510
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2511
(eval $ac_compile) 2>conftest.er1
2513
grep -v '^ *+' conftest.er1 >conftest.err
2515
cat conftest.err >&5
2516
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517
(exit $ac_status); } &&
2518
{ ac_try='test -z "$ac_c_werror_flag"
2519
|| test ! -s conftest.err'
2520
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2523
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524
(exit $ac_status); }; } &&
2525
{ ac_try='test -s conftest.$ac_objext'
2526
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2529
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530
(exit $ac_status); }; }; then
2531
for ac_declaration in \
2533
'extern "C" void std::exit (int) throw (); using std::exit;' \
2534
'extern "C" void std::exit (int); using std::exit;' \
2535
'extern "C" void exit (int) throw ();' \
2536
'extern "C" void exit (int);' \
2539
cat >conftest.$ac_ext <<_ACEOF
2542
cat confdefs.h >>conftest.$ac_ext
2543
cat >>conftest.$ac_ext <<_ACEOF
2544
/* end confdefs.h. */
2555
rm -f conftest.$ac_objext
2556
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2557
(eval $ac_compile) 2>conftest.er1
2559
grep -v '^ *+' conftest.er1 >conftest.err
2561
cat conftest.err >&5
2562
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563
(exit $ac_status); } &&
2564
{ ac_try='test -z "$ac_c_werror_flag"
2565
|| test ! -s conftest.err'
2566
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570
(exit $ac_status); }; } &&
2571
{ ac_try='test -s conftest.$ac_objext'
2572
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2575
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576
(exit $ac_status); }; }; then
2579
echo "$as_me: failed program was:" >&5
2580
sed 's/^/| /' conftest.$ac_ext >&5
2584
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2585
cat >conftest.$ac_ext <<_ACEOF
2588
cat confdefs.h >>conftest.$ac_ext
2589
cat >>conftest.$ac_ext <<_ACEOF
2590
/* end confdefs.h. */
2600
rm -f conftest.$ac_objext
2601
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2602
(eval $ac_compile) 2>conftest.er1
2604
grep -v '^ *+' conftest.er1 >conftest.err
2606
cat conftest.err >&5
2607
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608
(exit $ac_status); } &&
2609
{ ac_try='test -z "$ac_c_werror_flag"
2610
|| test ! -s conftest.err'
2252
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2253
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2256
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257
(exit $ac_status); }; } &&
2258
{ ac_try='test -s conftest.$ac_objext'
2259
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2262
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263
(exit $ac_status); }; }; then
2266
echo "$as_me: failed program was:" >&5
2267
sed 's/^/| /' conftest.$ac_ext >&5
2271
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2272
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2275
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2276
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2277
GCC=`test $ac_compiler_gnu = yes && echo yes`
2278
ac_test_CFLAGS=${CFLAGS+set}
2279
ac_save_CFLAGS=$CFLAGS
2281
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2282
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2283
if test "${ac_cv_prog_cc_g+set}" = set; then
2284
echo $ECHO_N "(cached) $ECHO_C" >&6
2286
cat >conftest.$ac_ext <<_ACEOF
2289
cat confdefs.h >>conftest.$ac_ext
2290
cat >>conftest.$ac_ext <<_ACEOF
2291
/* end confdefs.h. */
2301
rm -f conftest.$ac_objext
2302
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2303
(eval $ac_compile) 2>conftest.er1
2305
grep -v '^ *+' conftest.er1 >conftest.err
2307
cat conftest.err >&5
2308
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309
(exit $ac_status); } &&
2310
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2311
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2314
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315
(exit $ac_status); }; } &&
2316
{ ac_try='test -s conftest.$ac_objext'
2317
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2320
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321
(exit $ac_status); }; }; then
2324
echo "$as_me: failed program was:" >&5
2325
sed 's/^/| /' conftest.$ac_ext >&5
2329
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2331
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2332
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2333
if test "$ac_test_CFLAGS" = set; then
2334
CFLAGS=$ac_save_CFLAGS
2335
elif test $ac_cv_prog_cc_g = yes; then
2336
if test "$GCC" = yes; then
2342
if test "$GCC" = yes; then
2348
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2349
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2350
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2351
echo $ECHO_N "(cached) $ECHO_C" >&6
2353
ac_cv_prog_cc_stdc=no
2355
cat >conftest.$ac_ext <<_ACEOF
2358
cat confdefs.h >>conftest.$ac_ext
2359
cat >>conftest.$ac_ext <<_ACEOF
2360
/* end confdefs.h. */
2363
#include <sys/types.h>
2364
#include <sys/stat.h>
2365
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2366
struct buf { int x; };
2367
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2368
static char *e (p, i)
2374
static char *f (char * (*g) (char **, int), char **p, ...)
2379
s = g (p, va_arg (v,int));
2384
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2385
function prototypes and stuff, but not '\xHH' hex character constants.
2386
These don't provoke an error unfortunately, instead are silently treated
2387
as 'x'. The following induces an error, until -std1 is added to get
2388
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2389
array size at least. It's necessary to write '\x00'==0 to get something
2390
that's true only with -std1. */
2391
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2393
int test (int i, double x);
2394
struct s1 {int (*f) (int a);};
2395
struct s2 {int (*f) (double a);};
2396
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2402
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2407
# Don't try gcc -ansi; that turns off useful extensions and
2408
# breaks some systems' header files.
2409
# AIX -qlanglvl=ansi
2410
# Ultrix and OSF/1 -std1
2411
# HP-UX 10.20 and later -Ae
2412
# HP-UX older versions -Aa -D_HPUX_SOURCE
2413
# SVR4 -Xc -D__EXTENSIONS__
2414
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2416
CC="$ac_save_CC $ac_arg"
2417
rm -f conftest.$ac_objext
2418
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2419
(eval $ac_compile) 2>conftest.er1
2421
grep -v '^ *+' conftest.er1 >conftest.err
2423
cat conftest.err >&5
2424
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425
(exit $ac_status); } &&
2426
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2427
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2430
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431
(exit $ac_status); }; } &&
2432
{ ac_try='test -s conftest.$ac_objext'
2433
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2436
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437
(exit $ac_status); }; }; then
2438
ac_cv_prog_cc_stdc=$ac_arg
2441
echo "$as_me: failed program was:" >&5
2442
sed 's/^/| /' conftest.$ac_ext >&5
2445
rm -f conftest.err conftest.$ac_objext
2447
rm -f conftest.$ac_ext conftest.$ac_objext
2452
case "x$ac_cv_prog_cc_stdc" in
2454
echo "$as_me:$LINENO: result: none needed" >&5
2455
echo "${ECHO_T}none needed" >&6 ;;
2457
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2458
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2459
CC="$CC $ac_cv_prog_cc_stdc" ;;
2462
# Some people use a C++ compiler to compile C. Since we use `exit',
2463
# in C++ we need to declare it. In case someone uses the same compiler
2464
# for both compiling C and C++ we need to have the C++ compiler decide
2465
# the declaration of exit, since it's the most demanding environment.
2466
cat >conftest.$ac_ext <<_ACEOF
2471
rm -f conftest.$ac_objext
2472
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2473
(eval $ac_compile) 2>conftest.er1
2475
grep -v '^ *+' conftest.er1 >conftest.err
2477
cat conftest.err >&5
2478
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479
(exit $ac_status); } &&
2480
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2481
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2484
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485
(exit $ac_status); }; } &&
2486
{ ac_try='test -s conftest.$ac_objext'
2487
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2490
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491
(exit $ac_status); }; }; then
2492
for ac_declaration in \
2494
'extern "C" void std::exit (int) throw (); using std::exit;' \
2495
'extern "C" void std::exit (int); using std::exit;' \
2496
'extern "C" void exit (int) throw ();' \
2497
'extern "C" void exit (int);' \
2500
cat >conftest.$ac_ext <<_ACEOF
2503
cat confdefs.h >>conftest.$ac_ext
2504
cat >>conftest.$ac_ext <<_ACEOF
2505
/* end confdefs.h. */
2516
rm -f conftest.$ac_objext
2517
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2518
(eval $ac_compile) 2>conftest.er1
2520
grep -v '^ *+' conftest.er1 >conftest.err
2522
cat conftest.err >&5
2523
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524
(exit $ac_status); } &&
2525
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2526
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2529
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530
(exit $ac_status); }; } &&
2531
{ ac_try='test -s conftest.$ac_objext'
2532
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2535
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536
(exit $ac_status); }; }; then
2539
echo "$as_me: failed program was:" >&5
2540
sed 's/^/| /' conftest.$ac_ext >&5
2544
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2545
cat >conftest.$ac_ext <<_ACEOF
2548
cat confdefs.h >>conftest.$ac_ext
2549
cat >>conftest.$ac_ext <<_ACEOF
2550
/* end confdefs.h. */
2560
rm -f conftest.$ac_objext
2561
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2562
(eval $ac_compile) 2>conftest.er1
2564
grep -v '^ *+' conftest.er1 >conftest.err
2566
cat conftest.err >&5
2567
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568
(exit $ac_status); } &&
2569
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2570
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574
(exit $ac_status); }; } &&
2575
{ ac_try='test -s conftest.$ac_objext'
2576
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2579
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580
(exit $ac_status); }; }; then
2583
echo "$as_me: failed program was:" >&5
2584
sed 's/^/| /' conftest.$ac_ext >&5
2587
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2590
if test -n "$ac_declaration"; then
2591
echo '#ifdef __cplusplus' >>confdefs.h
2592
echo $ac_declaration >>confdefs.h
2593
echo '#endif' >>confdefs.h
2597
echo "$as_me: failed program was:" >&5
2598
sed 's/^/| /' conftest.$ac_ext >&5
2601
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2603
ac_cpp='$CPP $CPPFLAGS'
2604
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2605
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2606
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2609
# Check whether --enable-developer or --disable-developer was given.
2610
if test "${enable_developer+set}" = set; then
2611
enableval="$enable_developer"
2612
if eval "test x$enable_developer = xyes"; then
2614
CFLAGS="${CFLAGS} -gstabs -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -DDEBUG_PASSWORD -DDEVELOPER"
2615
# Add -Wdeclaration-after-statement if compiler supports it
2616
echo "$as_me:$LINENO: checking that the C compiler understands -Wdeclaration-after-statement" >&5
2617
echo $ECHO_N "checking that the C compiler understands -Wdeclaration-after-statement... $ECHO_C" >&6
2618
if test "${samba_cv_HAVE_Wdeclaration_after_statement+set}" = set; then
2619
echo $ECHO_N "(cached) $ECHO_C" >&6
2623
old_CFLAGS="$CFLAGS";
2624
CFLAGS="-Wdeclaration-after-statement";
2626
old_CPPFLAGS="$CPPFLAGS";
2627
CPPFLAGS="$CPPFLAGS";
2629
old_LDFLAGS="$LDFLAGS";
2632
if test "$cross_compiling" = yes; then
2633
samba_cv_HAVE_Wdeclaration_after_statement=cross
2635
cat >conftest.$ac_ext <<_ACEOF
2638
cat confdefs.h >>conftest.$ac_ext
2639
cat >>conftest.$ac_ext <<_ACEOF
2640
/* end confdefs.h. */
2647
rm -f conftest$ac_exeext
2648
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2649
(eval $ac_link) 2>&5
2651
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2653
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2656
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657
(exit $ac_status); }; }; then
2658
samba_cv_HAVE_Wdeclaration_after_statement=yes
2660
echo "$as_me: program exited with status $ac_status" >&5
2661
echo "$as_me: failed program was:" >&5
2662
sed 's/^/| /' conftest.$ac_ext >&5
2665
samba_cv_HAVE_Wdeclaration_after_statement=no
2667
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2669
CFLAGS="$old_CFLAGS";
2672
CPPFLAGS="$old_CPPFLAGS";
2675
LDFLAGS="$old_LDFLAGS";
2681
echo "$as_me:$LINENO: result: $samba_cv_HAVE_Wdeclaration_after_statement" >&5
2682
echo "${ECHO_T}$samba_cv_HAVE_Wdeclaration_after_statement" >&6
2683
if test x"$samba_cv_HAVE_Wdeclaration_after_statement" = x"yes"; then
2684
CFLAGS="${CFLAGS} -Wdeclaration-after-statement"
2689
# Check whether --enable-krb5developer or --disable-krb5developer was given.
2690
if test "${enable_krb5developer+set}" = set; then
2691
enableval="$enable_krb5developer"
2692
if eval "test x$enable_krb5developer = xyes"; then
2694
CFLAGS="${CFLAGS} -gstabs -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -DDEBUG_PASSWORD -DDEVELOPER"
2698
# Check whether --enable-dmalloc or --disable-dmalloc was given.
2699
if test "${enable_dmalloc+set}" = set; then
2700
enableval="$enable_dmalloc"
2704
if test "x$enable_dmalloc" = xyes
2707
cat >>confdefs.h <<\_ACEOF
2708
#define ENABLE_DMALLOC 1
2712
cat >>confdefs.h <<\_ACEOF
2713
#define DMALLOC_FUNC_CHECK 1
2716
LIBS="$LIBS -ldmalloc"
2721
## for some reason this macro resets the CFLAGS
2722
## so save and restore
2724
OLD_CFLAGS=${CFLAGS}
2726
ac_cpp='$CPP $CPPFLAGS'
2727
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2728
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2729
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2730
if test -n "$ac_tool_prefix"; then
2731
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2732
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2733
echo "$as_me:$LINENO: checking for $ac_word" >&5
2734
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2735
if test "${ac_cv_prog_CC+set}" = set; then
2736
echo $ECHO_N "(cached) $ECHO_C" >&6
2738
if test -n "$CC"; then
2739
ac_cv_prog_CC="$CC" # Let the user override the test.
2741
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745
test -z "$as_dir" && as_dir=.
2746
for ac_exec_ext in '' $ac_executable_extensions; do
2747
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2748
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2749
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2758
if test -n "$CC"; then
2759
echo "$as_me:$LINENO: result: $CC" >&5
2760
echo "${ECHO_T}$CC" >&6
2762
echo "$as_me:$LINENO: result: no" >&5
2763
echo "${ECHO_T}no" >&6
2767
if test -z "$ac_cv_prog_CC"; then
2769
# Extract the first word of "gcc", so it can be a program name with args.
2770
set dummy gcc; ac_word=$2
2771
echo "$as_me:$LINENO: checking for $ac_word" >&5
2772
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2773
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2774
echo $ECHO_N "(cached) $ECHO_C" >&6
2776
if test -n "$ac_ct_CC"; then
2777
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2779
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783
test -z "$as_dir" && as_dir=.
2784
for ac_exec_ext in '' $ac_executable_extensions; do
2785
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2786
ac_cv_prog_ac_ct_CC="gcc"
2787
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2795
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2796
if test -n "$ac_ct_CC"; then
2797
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2798
echo "${ECHO_T}$ac_ct_CC" >&6
2800
echo "$as_me:$LINENO: result: no" >&5
2801
echo "${ECHO_T}no" >&6
2809
if test -z "$CC"; then
2810
if test -n "$ac_tool_prefix"; then
2811
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2812
set dummy ${ac_tool_prefix}cc; ac_word=$2
2813
echo "$as_me:$LINENO: checking for $ac_word" >&5
2814
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2815
if test "${ac_cv_prog_CC+set}" = set; then
2816
echo $ECHO_N "(cached) $ECHO_C" >&6
2818
if test -n "$CC"; then
2819
ac_cv_prog_CC="$CC" # Let the user override the test.
2821
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825
test -z "$as_dir" && as_dir=.
2826
for ac_exec_ext in '' $ac_executable_extensions; do
2827
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2828
ac_cv_prog_CC="${ac_tool_prefix}cc"
2829
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2838
if test -n "$CC"; then
2839
echo "$as_me:$LINENO: result: $CC" >&5
2840
echo "${ECHO_T}$CC" >&6
2842
echo "$as_me:$LINENO: result: no" >&5
2843
echo "${ECHO_T}no" >&6
2847
if test -z "$ac_cv_prog_CC"; then
2849
# Extract the first word of "cc", so it can be a program name with args.
2850
set dummy cc; ac_word=$2
2851
echo "$as_me:$LINENO: checking for $ac_word" >&5
2852
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2853
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2854
echo $ECHO_N "(cached) $ECHO_C" >&6
2856
if test -n "$ac_ct_CC"; then
2857
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2859
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863
test -z "$as_dir" && as_dir=.
2864
for ac_exec_ext in '' $ac_executable_extensions; do
2865
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2866
ac_cv_prog_ac_ct_CC="cc"
2867
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2875
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2876
if test -n "$ac_ct_CC"; then
2877
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2878
echo "${ECHO_T}$ac_ct_CC" >&6
2880
echo "$as_me:$LINENO: result: no" >&5
2881
echo "${ECHO_T}no" >&6
2890
if test -z "$CC"; then
2891
# Extract the first word of "cc", so it can be a program name with args.
2892
set dummy cc; ac_word=$2
2893
echo "$as_me:$LINENO: checking for $ac_word" >&5
2894
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2895
if test "${ac_cv_prog_CC+set}" = set; then
2896
echo $ECHO_N "(cached) $ECHO_C" >&6
2898
if test -n "$CC"; then
2899
ac_cv_prog_CC="$CC" # Let the user override the test.
2902
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906
test -z "$as_dir" && as_dir=.
2907
for ac_exec_ext in '' $ac_executable_extensions; do
2908
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2909
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2910
ac_prog_rejected=yes
2914
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2920
if test $ac_prog_rejected = yes; then
2921
# We found a bogon in the path, so make sure we never use it.
2922
set dummy $ac_cv_prog_CC
2924
if test $# != 0; then
2925
# We chose a different compiler from the bogus one.
2926
# However, it has the same basename, so the bogon will be chosen
2927
# first if we set CC to just the basename; use the full file name.
2929
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2935
if test -n "$CC"; then
2936
echo "$as_me:$LINENO: result: $CC" >&5
2937
echo "${ECHO_T}$CC" >&6
2939
echo "$as_me:$LINENO: result: no" >&5
2940
echo "${ECHO_T}no" >&6
2944
if test -z "$CC"; then
2945
if test -n "$ac_tool_prefix"; then
2948
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2949
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2950
echo "$as_me:$LINENO: checking for $ac_word" >&5
2951
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2952
if test "${ac_cv_prog_CC+set}" = set; then
2953
echo $ECHO_N "(cached) $ECHO_C" >&6
2955
if test -n "$CC"; then
2956
ac_cv_prog_CC="$CC" # Let the user override the test.
2958
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962
test -z "$as_dir" && as_dir=.
2963
for ac_exec_ext in '' $ac_executable_extensions; do
2964
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2965
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2966
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2975
if test -n "$CC"; then
2976
echo "$as_me:$LINENO: result: $CC" >&5
2977
echo "${ECHO_T}$CC" >&6
2979
echo "$as_me:$LINENO: result: no" >&5
2980
echo "${ECHO_T}no" >&6
2983
test -n "$CC" && break
2986
if test -z "$CC"; then
2990
# Extract the first word of "$ac_prog", so it can be a program name with args.
2991
set dummy $ac_prog; ac_word=$2
2992
echo "$as_me:$LINENO: checking for $ac_word" >&5
2993
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2994
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2995
echo $ECHO_N "(cached) $ECHO_C" >&6
2997
if test -n "$ac_ct_CC"; then
2998
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3000
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004
test -z "$as_dir" && as_dir=.
3005
for ac_exec_ext in '' $ac_executable_extensions; do
3006
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3007
ac_cv_prog_ac_ct_CC="$ac_prog"
3008
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3016
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3017
if test -n "$ac_ct_CC"; then
3018
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3019
echo "${ECHO_T}$ac_ct_CC" >&6
3021
echo "$as_me:$LINENO: result: no" >&5
3022
echo "${ECHO_T}no" >&6
3025
test -n "$ac_ct_CC" && break
3034
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3035
See \`config.log' for more details." >&5
3036
echo "$as_me: error: no acceptable C compiler found in \$PATH
3037
See \`config.log' for more details." >&2;}
3038
{ (exit 1); exit 1; }; }
3040
# Provide some information about the compiler.
3041
echo "$as_me:$LINENO:" \
3042
"checking for C compiler version" >&5
3043
ac_compiler=`set X $ac_compile; echo $2`
3044
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3045
(eval $ac_compiler --version </dev/null >&5) 2>&5
3047
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048
(exit $ac_status); }
3049
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3050
(eval $ac_compiler -v </dev/null >&5) 2>&5
3052
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053
(exit $ac_status); }
3054
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3055
(eval $ac_compiler -V </dev/null >&5) 2>&5
3057
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058
(exit $ac_status); }
3060
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3061
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3062
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3063
echo $ECHO_N "(cached) $ECHO_C" >&6
3065
cat >conftest.$ac_ext <<_ACEOF
3068
cat confdefs.h >>conftest.$ac_ext
3069
cat >>conftest.$ac_ext <<_ACEOF
3070
/* end confdefs.h. */
3083
rm -f conftest.$ac_objext
3084
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3085
(eval $ac_compile) 2>conftest.er1
3087
grep -v '^ *+' conftest.er1 >conftest.err
3089
cat conftest.err >&5
3090
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091
(exit $ac_status); } &&
3092
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3093
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3096
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097
(exit $ac_status); }; } &&
3098
{ ac_try='test -s conftest.$ac_objext'
3099
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3102
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103
(exit $ac_status); }; }; then
3106
echo "$as_me: failed program was:" >&5
3107
sed 's/^/| /' conftest.$ac_ext >&5
3111
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3112
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3115
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3116
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3117
GCC=`test $ac_compiler_gnu = yes && echo yes`
3118
ac_test_CFLAGS=${CFLAGS+set}
3119
ac_save_CFLAGS=$CFLAGS
3121
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3122
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3123
if test "${ac_cv_prog_cc_g+set}" = set; then
3124
echo $ECHO_N "(cached) $ECHO_C" >&6
3126
cat >conftest.$ac_ext <<_ACEOF
3129
cat confdefs.h >>conftest.$ac_ext
3130
cat >>conftest.$ac_ext <<_ACEOF
3131
/* end confdefs.h. */
3141
rm -f conftest.$ac_objext
3142
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3143
(eval $ac_compile) 2>conftest.er1
3145
grep -v '^ *+' conftest.er1 >conftest.err
3147
cat conftest.err >&5
3148
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149
(exit $ac_status); } &&
3150
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3151
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3154
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155
(exit $ac_status); }; } &&
3156
{ ac_try='test -s conftest.$ac_objext'
3157
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3160
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161
(exit $ac_status); }; }; then
3164
echo "$as_me: failed program was:" >&5
3165
sed 's/^/| /' conftest.$ac_ext >&5
3169
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3171
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3172
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3173
if test "$ac_test_CFLAGS" = set; then
3174
CFLAGS=$ac_save_CFLAGS
3175
elif test $ac_cv_prog_cc_g = yes; then
3176
if test "$GCC" = yes; then
3182
if test "$GCC" = yes; then
3188
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3189
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3190
if test "${ac_cv_prog_cc_stdc+set}" = set; then
3191
echo $ECHO_N "(cached) $ECHO_C" >&6
3193
ac_cv_prog_cc_stdc=no
3195
cat >conftest.$ac_ext <<_ACEOF
3198
cat confdefs.h >>conftest.$ac_ext
3199
cat >>conftest.$ac_ext <<_ACEOF
3200
/* end confdefs.h. */
3203
#include <sys/types.h>
3204
#include <sys/stat.h>
3205
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3206
struct buf { int x; };
3207
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3208
static char *e (p, i)
3214
static char *f (char * (*g) (char **, int), char **p, ...)
3219
s = g (p, va_arg (v,int));
3224
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3225
function prototypes and stuff, but not '\xHH' hex character constants.
3226
These don't provoke an error unfortunately, instead are silently treated
3227
as 'x'. The following induces an error, until -std1 is added to get
3228
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3229
array size at least. It's necessary to write '\x00'==0 to get something
3230
that's true only with -std1. */
3231
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3233
int test (int i, double x);
3234
struct s1 {int (*f) (int a);};
3235
struct s2 {int (*f) (double a);};
3236
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3242
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3247
# Don't try gcc -ansi; that turns off useful extensions and
3248
# breaks some systems' header files.
3249
# AIX -qlanglvl=ansi
3250
# Ultrix and OSF/1 -std1
3251
# HP-UX 10.20 and later -Ae
3252
# HP-UX older versions -Aa -D_HPUX_SOURCE
3253
# SVR4 -Xc -D__EXTENSIONS__
3254
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3256
CC="$ac_save_CC $ac_arg"
3257
rm -f conftest.$ac_objext
3258
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3259
(eval $ac_compile) 2>conftest.er1
3261
grep -v '^ *+' conftest.er1 >conftest.err
3263
cat conftest.err >&5
3264
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265
(exit $ac_status); } &&
3266
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3267
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3270
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271
(exit $ac_status); }; } &&
3272
{ ac_try='test -s conftest.$ac_objext'
3273
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3276
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277
(exit $ac_status); }; }; then
3278
ac_cv_prog_cc_stdc=$ac_arg
3281
echo "$as_me: failed program was:" >&5
3282
sed 's/^/| /' conftest.$ac_ext >&5
3285
rm -f conftest.err conftest.$ac_objext
3287
rm -f conftest.$ac_ext conftest.$ac_objext
3292
case "x$ac_cv_prog_cc_stdc" in
3294
echo "$as_me:$LINENO: result: none needed" >&5
3295
echo "${ECHO_T}none needed" >&6 ;;
3297
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3298
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3299
CC="$CC $ac_cv_prog_cc_stdc" ;;
3302
# Some people use a C++ compiler to compile C. Since we use `exit',
3303
# in C++ we need to declare it. In case someone uses the same compiler
3304
# for both compiling C and C++ we need to have the C++ compiler decide
3305
# the declaration of exit, since it's the most demanding environment.
3306
cat >conftest.$ac_ext <<_ACEOF
3311
rm -f conftest.$ac_objext
3312
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3313
(eval $ac_compile) 2>conftest.er1
3315
grep -v '^ *+' conftest.er1 >conftest.err
3317
cat conftest.err >&5
3318
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319
(exit $ac_status); } &&
3320
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3321
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3324
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325
(exit $ac_status); }; } &&
3326
{ ac_try='test -s conftest.$ac_objext'
3327
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3330
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331
(exit $ac_status); }; }; then
3332
for ac_declaration in \
3334
'extern "C" void std::exit (int) throw (); using std::exit;' \
3335
'extern "C" void std::exit (int); using std::exit;' \
3336
'extern "C" void exit (int) throw ();' \
3337
'extern "C" void exit (int);' \
3340
cat >conftest.$ac_ext <<_ACEOF
3343
cat confdefs.h >>conftest.$ac_ext
3344
cat >>conftest.$ac_ext <<_ACEOF
3345
/* end confdefs.h. */
3356
rm -f conftest.$ac_objext
3357
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3358
(eval $ac_compile) 2>conftest.er1
3360
grep -v '^ *+' conftest.er1 >conftest.err
3362
cat conftest.err >&5
3363
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364
(exit $ac_status); } &&
3365
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3366
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3369
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370
(exit $ac_status); }; } &&
3371
{ ac_try='test -s conftest.$ac_objext'
3372
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3375
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376
(exit $ac_status); }; }; then
3379
echo "$as_me: failed program was:" >&5
3380
sed 's/^/| /' conftest.$ac_ext >&5
3384
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3385
cat >conftest.$ac_ext <<_ACEOF
3388
cat confdefs.h >>conftest.$ac_ext
3389
cat >>conftest.$ac_ext <<_ACEOF
3390
/* end confdefs.h. */
3400
rm -f conftest.$ac_objext
3401
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3402
(eval $ac_compile) 2>conftest.er1
3404
grep -v '^ *+' conftest.er1 >conftest.err
3406
cat conftest.err >&5
3407
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408
(exit $ac_status); } &&
3409
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2611
3410
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612
3411
(eval $ac_try) 2>&5