trinidad_init_services 1.2.3 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.travis.yml +12 -0
- data/CHANGELOG.md +123 -0
- data/Gemfile +7 -1
- data/LICENSE +1 -1
- data/README.md +45 -34
- data/Rakefile +1 -6
- data/bin/trinidad_init_service +15 -11
- data/init.d/trinidad.erb +120 -51
- data/jsvc-unix-src/configure +733 -58
- data/jsvc-unix-src/native/arguments.c +3 -2
- data/jsvc-unix-src/native/jsvc-unix.c +11 -1
- data/jsvc-unix-src/native/location.c +3 -1
- data/jsvc-unix-src/native/version.h +2 -2
- data/jsvc-unix-src/support/apsupport.m4 +94 -32
- data/jsvc-unix-src/support/config.guess +770 -610
- data/jsvc-unix-src/support/config.sub +84 -59
- data/lib/trinidad/daemon.rb +11 -4
- data/lib/trinidad_init_services/configuration.rb +461 -138
- data/lib/trinidad_init_services/version.rb +1 -1
- data/spec/trinidad_init_services/configuration_spec.rb +221 -96
- data/spec/trinidad_init_services/init_service_config.yml +11 -0
- data/trinidad-libs/commons-daemon.jar +0 -0
- data/trinidad-libs/windows/amd64/prunsrv.exe +0 -0
- data/trinidad-libs/windows/ia64/prunsrv.exe +0 -0
- data/trinidad-libs/windows/prunsrv.exe +0 -0
- data/trinidad_init_services.gemspec +7 -7
- metadata +151 -147
- data/History.txt +0 -74
data/jsvc-unix-src/configure
CHANGED
@@ -272,7 +272,44 @@ PACKAGE_STRING=
|
|
272
272
|
PACKAGE_BUGREPORT=
|
273
273
|
|
274
274
|
ac_unique_file="configure.in"
|
275
|
-
|
275
|
+
# Factoring default headers for most tests.
|
276
|
+
ac_includes_default="\
|
277
|
+
#include <stdio.h>
|
278
|
+
#if HAVE_SYS_TYPES_H
|
279
|
+
# include <sys/types.h>
|
280
|
+
#endif
|
281
|
+
#if HAVE_SYS_STAT_H
|
282
|
+
# include <sys/stat.h>
|
283
|
+
#endif
|
284
|
+
#if STDC_HEADERS
|
285
|
+
# include <stdlib.h>
|
286
|
+
# include <stddef.h>
|
287
|
+
#else
|
288
|
+
# if HAVE_STDLIB_H
|
289
|
+
# include <stdlib.h>
|
290
|
+
# endif
|
291
|
+
#endif
|
292
|
+
#if HAVE_STRING_H
|
293
|
+
# if !STDC_HEADERS && HAVE_MEMORY_H
|
294
|
+
# include <memory.h>
|
295
|
+
# endif
|
296
|
+
# include <string.h>
|
297
|
+
#endif
|
298
|
+
#if HAVE_STRINGS_H
|
299
|
+
# include <strings.h>
|
300
|
+
#endif
|
301
|
+
#if HAVE_INTTYPES_H
|
302
|
+
# include <inttypes.h>
|
303
|
+
#else
|
304
|
+
# if HAVE_STDINT_H
|
305
|
+
# include <stdint.h>
|
306
|
+
# endif
|
307
|
+
#endif
|
308
|
+
#if HAVE_UNISTD_H
|
309
|
+
# include <unistd.h>
|
310
|
+
#endif"
|
311
|
+
|
312
|
+
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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP JAVA_HOME LDCMD CPP EGREP INCLUDES LIBOBJS LTLIBOBJS'
|
276
313
|
ac_subst_files=''
|
277
314
|
|
278
315
|
# Initialize some variables set by options.
|
@@ -729,6 +766,10 @@ ac_env_CPPFLAGS_set=${CPPFLAGS+set}
|
|
729
766
|
ac_env_CPPFLAGS_value=$CPPFLAGS
|
730
767
|
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
|
731
768
|
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
|
769
|
+
ac_env_CPP_set=${CPP+set}
|
770
|
+
ac_env_CPP_value=$CPP
|
771
|
+
ac_cv_env_CPP_set=${CPP+set}
|
772
|
+
ac_cv_env_CPP_value=$CPP
|
732
773
|
|
733
774
|
#
|
734
775
|
# Report the --help message.
|
@@ -813,6 +854,7 @@ Some influential environment variables:
|
|
813
854
|
nonstandard directory <lib dir>
|
814
855
|
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
|
815
856
|
headers in a nonstandard directory <include dir>
|
857
|
+
CPP C preprocessor
|
816
858
|
|
817
859
|
Use these variables to override the choices made by `configure' or to help
|
818
860
|
it to find libraries and programs with nonstandard names/locations.
|
@@ -2531,11 +2573,13 @@ echo $ECHO_N "checking C flags dependant on host system type... $ECHO_C" >&6
|
|
2531
2573
|
sysv)
|
2532
2574
|
CFLAGS="$CFLAGS -DOS_SYSV -DDSO_DLFCN"
|
2533
2575
|
LIBS="$LIBS -ldl"
|
2576
|
+
supported_os="sysv"
|
2534
2577
|
;;
|
2535
2578
|
sysv4)
|
2536
2579
|
CFLAGS="$CFLAGS -DOS_SYSV -DDSO_DLFCN -Kthread"
|
2537
2580
|
LDFLAGS="-Kthread $LDFLAGS"
|
2538
2581
|
LIBS="$LIBS -ldl"
|
2582
|
+
supported_os="sysv4"
|
2539
2583
|
;;
|
2540
2584
|
freebsd*)
|
2541
2585
|
CFLAGS="$CFLAGS -DOS_FREEBSD -DDSO_DLFCN -D_THREAD_SAFE -pthread"
|
@@ -2545,16 +2589,17 @@ echo $ECHO_N "checking C flags dependant on host system type... $ECHO_C" >&6
|
|
2545
2589
|
osf5*)
|
2546
2590
|
CFLAGS="$CFLAGS -pthread -DOS_TRU64 -DDSO_DLFCN -D_XOPEN_SOURCE_EXTENDED"
|
2547
2591
|
LDFLAGS="$LDFLAGS -pthread"
|
2592
|
+
supported_os="osf5"
|
2548
2593
|
;;
|
2549
2594
|
hpux*)
|
2550
|
-
CFLAGS="$CFLAGS -
|
2551
|
-
LDFLAGS="$LDFLAGS -pthread"
|
2552
|
-
LIBS="$LIBS -lpthread"
|
2595
|
+
CFLAGS="$CFLAGS -DOS_HPUX -DDSO_DLFCN"
|
2553
2596
|
supported_os="hp-ux"
|
2597
|
+
host_os="hpux"
|
2554
2598
|
;;
|
2555
2599
|
aix5*)
|
2556
2600
|
CFLAGS="$CFLAGS -DOS_AIX -DDSO_DLFCN"
|
2557
2601
|
LDFLAGS="$LDFLAGS -ldl"
|
2602
|
+
supported_os="aix5"
|
2558
2603
|
;;
|
2559
2604
|
*)
|
2560
2605
|
echo "$as_me:$LINENO: result: failed" >&5
|
@@ -2567,59 +2612,76 @@ echo "$as_me: error: Unsupported operating system \"$host_os\"" >&2;}
|
|
2567
2612
|
case $host_cpu in
|
2568
2613
|
powerpc)
|
2569
2614
|
CFLAGS="$CFLAGS -DCPU=\\\"$host_cpu\\\""
|
2570
|
-
HOST_CPU=$host_cpu
|
2615
|
+
HOST_CPU=$host_cpu
|
2616
|
+
;;
|
2571
2617
|
sparc*)
|
2572
2618
|
CFLAGS="$CFLAGS -DCPU=\\\"$host_cpu\\\""
|
2573
|
-
HOST_CPU=$host_cpu
|
2619
|
+
HOST_CPU=$host_cpu
|
2620
|
+
;;
|
2574
2621
|
i?86|x86)
|
2575
2622
|
CFLAGS="$CFLAGS -DCPU=\\\"i386\\\""
|
2576
|
-
HOST_CPU=i386
|
2623
|
+
HOST_CPU=i386
|
2624
|
+
;;
|
2577
2625
|
x86_64 | amd64)
|
2578
2626
|
CFLAGS="$CFLAGS -DCPU=\\\"amd64\\\""
|
2579
|
-
HOST_CPU=amd64
|
2627
|
+
HOST_CPU=amd64
|
2628
|
+
;;
|
2580
2629
|
bs2000)
|
2581
2630
|
CFLAGS="$CFLAGS -DCPU=\\\"osd\\\" -DCHARSET_EBCDIC -DOSD_POSIX"
|
2582
2631
|
supported_os="osd"
|
2583
2632
|
LDFLAGS="-Kno_link_stdlibs -B llm4"
|
2584
2633
|
LIBS="$LIBS -lBLSLIB"
|
2585
2634
|
LDCMD="/opt/C/bin/cc"
|
2586
|
-
HOST_CPU=osd
|
2635
|
+
HOST_CPU=osd
|
2636
|
+
;;
|
2587
2637
|
mips)
|
2588
2638
|
CFLAGS="$CFLAGS -DCPU=\\\"mips\\\""
|
2589
2639
|
supported_os="mips"
|
2590
|
-
HOST_CPU=mips
|
2640
|
+
HOST_CPU=mips
|
2641
|
+
;;
|
2591
2642
|
alpha*)
|
2592
2643
|
CFLAGS="$CFLAGS -DCPU=\\\"alpha\\\""
|
2593
2644
|
supported_os="alpha"
|
2594
|
-
HOST_CPU=alpha
|
2645
|
+
HOST_CPU=alpha
|
2646
|
+
;;
|
2595
2647
|
hppa2.0w|hppa64)
|
2596
2648
|
CFLAGS="$CFLAGS -DCPU=\\\"PA_RISC2.0W\\\" -DSO_EXT=\\\"sl\\\""
|
2597
|
-
|
2598
|
-
|
2649
|
+
host_cpu=hppa2.0w
|
2650
|
+
HOST_CPU=PA_RISC2.0W
|
2651
|
+
;;
|
2652
|
+
hppa2.0n|hppa32)
|
2599
2653
|
CFLAGS="$CFLAGS -DCPU=\\\"PA_RISC2.0N\\\" -DSO_EXT=\\\"sl\\\""
|
2600
|
-
HOST_CPU=PA_RISC2.0N
|
2654
|
+
HOST_CPU=PA_RISC2.0N
|
2655
|
+
;;
|
2601
2656
|
hppa2.0)
|
2602
|
-
|
2603
|
-
|
2657
|
+
if test "$host_os" = "hpux"
|
2658
|
+
then
|
2659
|
+
host_cpu=hppa2.0w
|
2660
|
+
HOST_CPU=PA_RISC2.0W
|
2661
|
+
else
|
2662
|
+
HOST_CPU=PA_RISC2.0
|
2663
|
+
fi
|
2664
|
+
CFLAGS="$CFLAGS -DCPU=\\\"$HOST_CPU\\\" -DSO_EXT=\\\"sl\\\""
|
2665
|
+
;;
|
2604
2666
|
mipsel)
|
2605
2667
|
CFLAGS="$CFLAGS -DCPU=\\\"mipsel\\\""
|
2606
2668
|
supported_os="mipsel"
|
2607
|
-
HOST_CPU=mipsel
|
2669
|
+
HOST_CPU=mipsel
|
2670
|
+
;;
|
2608
2671
|
ia64w)
|
2609
|
-
|
2610
|
-
|
2611
|
-
|
2612
|
-
|
2613
|
-
|
2614
|
-
|
2615
|
-
|
2616
|
-
|
2617
|
-
|
2618
|
-
if test "$supported_os" = "hp-ux"
|
2672
|
+
CFLAGS="$CFLAGS -DCPU=\\\"IA64W\\\" -DSO_EXT=\\\"so\\\""
|
2673
|
+
HOST_CPU=IA64W
|
2674
|
+
;;
|
2675
|
+
ia64n)
|
2676
|
+
CFLAGS="$CFLAGS -DCPU=\\\"IA64N\\\" -DSO_EXT=\\\"so\\\""
|
2677
|
+
HOST_CPU=IA64N
|
2678
|
+
;;
|
2679
|
+
ia64)
|
2680
|
+
if test "$host_os" = "hpux"
|
2619
2681
|
then
|
2620
|
-
CFLAGS="$CFLAGS -
|
2621
|
-
|
2622
|
-
HOST_CPU=
|
2682
|
+
CFLAGS="$CFLAGS -DCPU=\\\"IA64W\\\" -DSO_EXT=\\\"so\\\""
|
2683
|
+
host_cpu=ia64w
|
2684
|
+
HOST_CPU=IA64W
|
2623
2685
|
else
|
2624
2686
|
CFLAGS="$CFLAGS -DCPU=\\\"ia64\\\""
|
2625
2687
|
HOST_CPU=ia64
|
@@ -2628,11 +2690,13 @@ echo "$as_me: error: Unsupported operating system \"$host_os\"" >&2;}
|
|
2628
2690
|
s390)
|
2629
2691
|
CFLAGS="$CFLAGS -DCPU=\\\"s390\\\""
|
2630
2692
|
supported_os="s390"
|
2631
|
-
HOST_CPU=s390
|
2693
|
+
HOST_CPU=s390
|
2694
|
+
;;
|
2632
2695
|
arm*)
|
2633
2696
|
CFLAGS="$CFLAGS -DCPU=\\\"arm\\\""
|
2634
2697
|
supported_os="arm"
|
2635
|
-
HOST_CPU=arm
|
2698
|
+
HOST_CPU=arm
|
2699
|
+
;;
|
2636
2700
|
*)
|
2637
2701
|
echo "$as_me:$LINENO: result: failed" >&5
|
2638
2702
|
echo "${ECHO_T}failed" >&6
|
@@ -2641,6 +2705,46 @@ echo "$as_me: error: Unsupported CPU architecture \"$host_cpu\"" >&2;}
|
|
2641
2705
|
{ (exit 1); exit 1; }; };;
|
2642
2706
|
esac
|
2643
2707
|
|
2708
|
+
if test "x$GCC" = "xyes"
|
2709
|
+
then
|
2710
|
+
case $host_os-$host_cpu in
|
2711
|
+
hpux-ia64n)
|
2712
|
+
CFLAGS="-milp32 -pthread $CFLAGS"
|
2713
|
+
LDFLAGS="-milp32 -pthread $LDFLAGS"
|
2714
|
+
LIBS="$LIBS -lpthread"
|
2715
|
+
;;
|
2716
|
+
hpux-ia64w)
|
2717
|
+
CFLAGS="-mlp64 -pthread $CFLAGS"
|
2718
|
+
LDFLAGS="-mlp64 -pthread $LDFLAGS"
|
2719
|
+
LIBS="$LIBS -lpthread"
|
2720
|
+
;;
|
2721
|
+
hpux-*)
|
2722
|
+
CFLAGS="-pthread $CFLAGS"
|
2723
|
+
LDFLAGS="-pthread $LDFLAGS"
|
2724
|
+
LIBS="$LIBS -lpthread"
|
2725
|
+
;;
|
2726
|
+
*)
|
2727
|
+
;;
|
2728
|
+
esac
|
2729
|
+
else
|
2730
|
+
case $host_os-$host_cpu in
|
2731
|
+
hpux-ia64n|hpux-hppa2.0n)
|
2732
|
+
CFLAGS="+DD32 -mt $CFLAGS"
|
2733
|
+
LDFLAGS="+DD32 -mt $LDFLAGS"
|
2734
|
+
;;
|
2735
|
+
hpux-ia64w|hpux-hppa2.0w)
|
2736
|
+
CFLAGS="+DD64 -mt $CFLAGS"
|
2737
|
+
LDFLAGS="+DD64 -mt $LDFLAGS"
|
2738
|
+
;;
|
2739
|
+
hpux-*)
|
2740
|
+
CFLAGS="-mt $CFLAGS"
|
2741
|
+
LDFLAGS="-mt $LDFLAGS"
|
2742
|
+
;;
|
2743
|
+
*)
|
2744
|
+
;;
|
2745
|
+
esac
|
2746
|
+
fi
|
2747
|
+
|
2644
2748
|
echo "$as_me:$LINENO: result: ok" >&5
|
2645
2749
|
echo "${ECHO_T}ok" >&6
|
2646
2750
|
|
@@ -2648,8 +2752,12 @@ echo "${ECHO_T}ok" >&6
|
|
2648
2752
|
|
2649
2753
|
if test "$supported_os" = "darwin"
|
2650
2754
|
then
|
2755
|
+
if test -z "$JAVA_HOME" -a -x /usr/libexec/java_home
|
2756
|
+
then
|
2757
|
+
JAVA_HOME="`/usr/libexec/java_home 2>dev/null`"
|
2758
|
+
fi
|
2651
2759
|
if test -z "$JAVA_HOME" -a -d /System/Library/Frameworks/JavaVM.framework/Home; then
|
2652
|
-
|
2760
|
+
JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home
|
2653
2761
|
fi
|
2654
2762
|
|
2655
2763
|
_prevdir=`/bin/pwd`
|
@@ -2793,38 +2901,518 @@ fi
|
|
2793
2901
|
if test "$supported_os" = "linux"
|
2794
2902
|
then
|
2795
2903
|
|
2796
|
-
|
2797
|
-
|
2798
|
-
|
2904
|
+
ac_ext=c
|
2905
|
+
ac_cpp='$CPP $CPPFLAGS'
|
2906
|
+
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
2907
|
+
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
2908
|
+
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
2909
|
+
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
|
2910
|
+
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
|
2911
|
+
# On Suns, sometimes $CPP names a directory.
|
2912
|
+
if test -n "$CPP" && test -d "$CPP"; then
|
2913
|
+
CPP=
|
2914
|
+
fi
|
2915
|
+
if test -z "$CPP"; then
|
2916
|
+
if test "${ac_cv_prog_CPP+set}" = set; then
|
2799
2917
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
2800
2918
|
else
|
2801
|
-
|
2802
|
-
|
2803
|
-
|
2919
|
+
# Double quotes because CPP needs to be expanded
|
2920
|
+
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
2921
|
+
do
|
2922
|
+
ac_preproc_ok=false
|
2923
|
+
for ac_c_preproc_warn_flag in '' yes
|
2924
|
+
do
|
2925
|
+
# Use a header file that comes with gcc, so configuring glibc
|
2926
|
+
# with a fresh cross-compiler works.
|
2927
|
+
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
2928
|
+
# <limits.h> exists even on freestanding compilers.
|
2929
|
+
# On the NeXT, cc -E runs the code through the compiler's parser,
|
2930
|
+
# not just through cpp. "Syntax error" is here to catch this case.
|
2931
|
+
cat >conftest.$ac_ext <<_ACEOF
|
2804
2932
|
/* confdefs.h. */
|
2805
2933
|
_ACEOF
|
2806
2934
|
cat confdefs.h >>conftest.$ac_ext
|
2807
2935
|
cat >>conftest.$ac_ext <<_ACEOF
|
2808
2936
|
/* end confdefs.h. */
|
2937
|
+
#ifdef __STDC__
|
2938
|
+
# include <limits.h>
|
2939
|
+
#else
|
2940
|
+
# include <assert.h>
|
2941
|
+
#endif
|
2942
|
+
Syntax error
|
2943
|
+
_ACEOF
|
2944
|
+
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
2945
|
+
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
2946
|
+
ac_status=$?
|
2947
|
+
grep -v '^ *+' conftest.er1 >conftest.err
|
2948
|
+
rm -f conftest.er1
|
2949
|
+
cat conftest.err >&5
|
2950
|
+
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2951
|
+
(exit $ac_status); } >/dev/null; then
|
2952
|
+
if test -s conftest.err; then
|
2953
|
+
ac_cpp_err=$ac_c_preproc_warn_flag
|
2954
|
+
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
2955
|
+
else
|
2956
|
+
ac_cpp_err=
|
2957
|
+
fi
|
2958
|
+
else
|
2959
|
+
ac_cpp_err=yes
|
2960
|
+
fi
|
2961
|
+
if test -z "$ac_cpp_err"; then
|
2962
|
+
:
|
2963
|
+
else
|
2964
|
+
echo "$as_me: failed program was:" >&5
|
2965
|
+
sed 's/^/| /' conftest.$ac_ext >&5
|
2966
|
+
|
2967
|
+
# Broken: fails on valid input.
|
2968
|
+
continue
|
2969
|
+
fi
|
2970
|
+
rm -f conftest.err conftest.$ac_ext
|
2971
|
+
|
2972
|
+
# OK, works on sane cases. Now check whether non-existent headers
|
2973
|
+
# can be detected and how.
|
2974
|
+
cat >conftest.$ac_ext <<_ACEOF
|
2975
|
+
/* confdefs.h. */
|
2976
|
+
_ACEOF
|
2977
|
+
cat confdefs.h >>conftest.$ac_ext
|
2978
|
+
cat >>conftest.$ac_ext <<_ACEOF
|
2979
|
+
/* end confdefs.h. */
|
2980
|
+
#include <ac_nonexistent.h>
|
2981
|
+
_ACEOF
|
2982
|
+
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
2983
|
+
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
2984
|
+
ac_status=$?
|
2985
|
+
grep -v '^ *+' conftest.er1 >conftest.err
|
2986
|
+
rm -f conftest.er1
|
2987
|
+
cat conftest.err >&5
|
2988
|
+
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2989
|
+
(exit $ac_status); } >/dev/null; then
|
2990
|
+
if test -s conftest.err; then
|
2991
|
+
ac_cpp_err=$ac_c_preproc_warn_flag
|
2992
|
+
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
2993
|
+
else
|
2994
|
+
ac_cpp_err=
|
2995
|
+
fi
|
2996
|
+
else
|
2997
|
+
ac_cpp_err=yes
|
2998
|
+
fi
|
2999
|
+
if test -z "$ac_cpp_err"; then
|
3000
|
+
# Broken: success on invalid input.
|
3001
|
+
continue
|
3002
|
+
else
|
3003
|
+
echo "$as_me: failed program was:" >&5
|
3004
|
+
sed 's/^/| /' conftest.$ac_ext >&5
|
2809
3005
|
|
2810
|
-
|
2811
|
-
|
2812
|
-
|
3006
|
+
# Passes both tests.
|
3007
|
+
ac_preproc_ok=:
|
3008
|
+
break
|
3009
|
+
fi
|
3010
|
+
rm -f conftest.err conftest.$ac_ext
|
3011
|
+
|
3012
|
+
done
|
3013
|
+
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
3014
|
+
rm -f conftest.err conftest.$ac_ext
|
3015
|
+
if $ac_preproc_ok; then
|
3016
|
+
break
|
3017
|
+
fi
|
3018
|
+
|
3019
|
+
done
|
3020
|
+
ac_cv_prog_CPP=$CPP
|
3021
|
+
|
3022
|
+
fi
|
3023
|
+
CPP=$ac_cv_prog_CPP
|
3024
|
+
else
|
3025
|
+
ac_cv_prog_CPP=$CPP
|
3026
|
+
fi
|
3027
|
+
echo "$as_me:$LINENO: result: $CPP" >&5
|
3028
|
+
echo "${ECHO_T}$CPP" >&6
|
3029
|
+
ac_preproc_ok=false
|
3030
|
+
for ac_c_preproc_warn_flag in '' yes
|
3031
|
+
do
|
3032
|
+
# Use a header file that comes with gcc, so configuring glibc
|
3033
|
+
# with a fresh cross-compiler works.
|
3034
|
+
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
3035
|
+
# <limits.h> exists even on freestanding compilers.
|
3036
|
+
# On the NeXT, cc -E runs the code through the compiler's parser,
|
3037
|
+
# not just through cpp. "Syntax error" is here to catch this case.
|
3038
|
+
cat >conftest.$ac_ext <<_ACEOF
|
3039
|
+
/* confdefs.h. */
|
3040
|
+
_ACEOF
|
3041
|
+
cat confdefs.h >>conftest.$ac_ext
|
3042
|
+
cat >>conftest.$ac_ext <<_ACEOF
|
3043
|
+
/* end confdefs.h. */
|
3044
|
+
#ifdef __STDC__
|
3045
|
+
# include <limits.h>
|
3046
|
+
#else
|
3047
|
+
# include <assert.h>
|
2813
3048
|
#endif
|
2814
|
-
|
2815
|
-
|
2816
|
-
|
3049
|
+
Syntax error
|
3050
|
+
_ACEOF
|
3051
|
+
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
3052
|
+
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
3053
|
+
ac_status=$?
|
3054
|
+
grep -v '^ *+' conftest.er1 >conftest.err
|
3055
|
+
rm -f conftest.er1
|
3056
|
+
cat conftest.err >&5
|
3057
|
+
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
3058
|
+
(exit $ac_status); } >/dev/null; then
|
3059
|
+
if test -s conftest.err; then
|
3060
|
+
ac_cpp_err=$ac_c_preproc_warn_flag
|
3061
|
+
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
3062
|
+
else
|
3063
|
+
ac_cpp_err=
|
3064
|
+
fi
|
3065
|
+
else
|
3066
|
+
ac_cpp_err=yes
|
3067
|
+
fi
|
3068
|
+
if test -z "$ac_cpp_err"; then
|
3069
|
+
:
|
3070
|
+
else
|
3071
|
+
echo "$as_me: failed program was:" >&5
|
3072
|
+
sed 's/^/| /' conftest.$ac_ext >&5
|
3073
|
+
|
3074
|
+
# Broken: fails on valid input.
|
3075
|
+
continue
|
3076
|
+
fi
|
3077
|
+
rm -f conftest.err conftest.$ac_ext
|
3078
|
+
|
3079
|
+
# OK, works on sane cases. Now check whether non-existent headers
|
3080
|
+
# can be detected and how.
|
3081
|
+
cat >conftest.$ac_ext <<_ACEOF
|
3082
|
+
/* confdefs.h. */
|
3083
|
+
_ACEOF
|
3084
|
+
cat confdefs.h >>conftest.$ac_ext
|
3085
|
+
cat >>conftest.$ac_ext <<_ACEOF
|
3086
|
+
/* end confdefs.h. */
|
3087
|
+
#include <ac_nonexistent.h>
|
3088
|
+
_ACEOF
|
3089
|
+
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
3090
|
+
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
3091
|
+
ac_status=$?
|
3092
|
+
grep -v '^ *+' conftest.er1 >conftest.err
|
3093
|
+
rm -f conftest.er1
|
3094
|
+
cat conftest.err >&5
|
3095
|
+
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
3096
|
+
(exit $ac_status); } >/dev/null; then
|
3097
|
+
if test -s conftest.err; then
|
3098
|
+
ac_cpp_err=$ac_c_preproc_warn_flag
|
3099
|
+
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
3100
|
+
else
|
3101
|
+
ac_cpp_err=
|
3102
|
+
fi
|
3103
|
+
else
|
3104
|
+
ac_cpp_err=yes
|
3105
|
+
fi
|
3106
|
+
if test -z "$ac_cpp_err"; then
|
3107
|
+
# Broken: success on invalid input.
|
3108
|
+
continue
|
3109
|
+
else
|
3110
|
+
echo "$as_me: failed program was:" >&5
|
3111
|
+
sed 's/^/| /' conftest.$ac_ext >&5
|
3112
|
+
|
3113
|
+
# Passes both tests.
|
3114
|
+
ac_preproc_ok=:
|
3115
|
+
break
|
3116
|
+
fi
|
3117
|
+
rm -f conftest.err conftest.$ac_ext
|
3118
|
+
|
3119
|
+
done
|
3120
|
+
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
3121
|
+
rm -f conftest.err conftest.$ac_ext
|
3122
|
+
if $ac_preproc_ok; then
|
3123
|
+
:
|
3124
|
+
else
|
3125
|
+
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
|
3126
|
+
See \`config.log' for more details." >&5
|
3127
|
+
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
|
3128
|
+
See \`config.log' for more details." >&2;}
|
3129
|
+
{ (exit 1); exit 1; }; }
|
3130
|
+
fi
|
3131
|
+
|
3132
|
+
ac_ext=c
|
3133
|
+
ac_cpp='$CPP $CPPFLAGS'
|
3134
|
+
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
3135
|
+
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
3136
|
+
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
3137
|
+
|
3138
|
+
|
3139
|
+
echo "$as_me:$LINENO: checking for egrep" >&5
|
3140
|
+
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
|
3141
|
+
if test "${ac_cv_prog_egrep+set}" = set; then
|
3142
|
+
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3143
|
+
else
|
3144
|
+
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
|
3145
|
+
then ac_cv_prog_egrep='grep -E'
|
3146
|
+
else ac_cv_prog_egrep='egrep'
|
3147
|
+
fi
|
3148
|
+
fi
|
3149
|
+
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
|
3150
|
+
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
|
3151
|
+
EGREP=$ac_cv_prog_egrep
|
3152
|
+
|
3153
|
+
|
3154
|
+
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
3155
|
+
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
3156
|
+
if test "${ac_cv_header_stdc+set}" = set; then
|
3157
|
+
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3158
|
+
else
|
3159
|
+
cat >conftest.$ac_ext <<_ACEOF
|
3160
|
+
/* confdefs.h. */
|
3161
|
+
_ACEOF
|
3162
|
+
cat confdefs.h >>conftest.$ac_ext
|
3163
|
+
cat >>conftest.$ac_ext <<_ACEOF
|
3164
|
+
/* end confdefs.h. */
|
3165
|
+
#include <stdlib.h>
|
3166
|
+
#include <stdarg.h>
|
3167
|
+
#include <string.h>
|
3168
|
+
#include <float.h>
|
3169
|
+
|
2817
3170
|
int
|
2818
3171
|
main ()
|
2819
3172
|
{
|
2820
|
-
|
3173
|
+
|
2821
3174
|
;
|
2822
3175
|
return 0;
|
2823
3176
|
}
|
2824
3177
|
_ACEOF
|
2825
|
-
rm -f conftest.$ac_objext
|
3178
|
+
rm -f conftest.$ac_objext
|
3179
|
+
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
3180
|
+
(eval $ac_compile) 2>conftest.er1
|
3181
|
+
ac_status=$?
|
3182
|
+
grep -v '^ *+' conftest.er1 >conftest.err
|
3183
|
+
rm -f conftest.er1
|
3184
|
+
cat conftest.err >&5
|
3185
|
+
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
3186
|
+
(exit $ac_status); } &&
|
3187
|
+
{ ac_try='test -z "$ac_c_werror_flag"
|
3188
|
+
|| test ! -s conftest.err'
|
3189
|
+
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
3190
|
+
(eval $ac_try) 2>&5
|
3191
|
+
ac_status=$?
|
3192
|
+
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
3193
|
+
(exit $ac_status); }; } &&
|
3194
|
+
{ ac_try='test -s conftest.$ac_objext'
|
3195
|
+
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
3196
|
+
(eval $ac_try) 2>&5
|
3197
|
+
ac_status=$?
|
3198
|
+
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
3199
|
+
(exit $ac_status); }; }; then
|
3200
|
+
ac_cv_header_stdc=yes
|
3201
|
+
else
|
3202
|
+
echo "$as_me: failed program was:" >&5
|
3203
|
+
sed 's/^/| /' conftest.$ac_ext >&5
|
3204
|
+
|
3205
|
+
ac_cv_header_stdc=no
|
3206
|
+
fi
|
3207
|
+
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
3208
|
+
|
3209
|
+
if test $ac_cv_header_stdc = yes; then
|
3210
|
+
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
3211
|
+
cat >conftest.$ac_ext <<_ACEOF
|
3212
|
+
/* confdefs.h. */
|
3213
|
+
_ACEOF
|
3214
|
+
cat confdefs.h >>conftest.$ac_ext
|
3215
|
+
cat >>conftest.$ac_ext <<_ACEOF
|
3216
|
+
/* end confdefs.h. */
|
3217
|
+
#include <string.h>
|
3218
|
+
|
3219
|
+
_ACEOF
|
3220
|
+
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
3221
|
+
$EGREP "memchr" >/dev/null 2>&1; then
|
3222
|
+
:
|
3223
|
+
else
|
3224
|
+
ac_cv_header_stdc=no
|
3225
|
+
fi
|
3226
|
+
rm -f conftest*
|
3227
|
+
|
3228
|
+
fi
|
3229
|
+
|
3230
|
+
if test $ac_cv_header_stdc = yes; then
|
3231
|
+
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
3232
|
+
cat >conftest.$ac_ext <<_ACEOF
|
3233
|
+
/* confdefs.h. */
|
3234
|
+
_ACEOF
|
3235
|
+
cat confdefs.h >>conftest.$ac_ext
|
3236
|
+
cat >>conftest.$ac_ext <<_ACEOF
|
3237
|
+
/* end confdefs.h. */
|
3238
|
+
#include <stdlib.h>
|
3239
|
+
|
3240
|
+
_ACEOF
|
3241
|
+
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
3242
|
+
$EGREP "free" >/dev/null 2>&1; then
|
3243
|
+
:
|
3244
|
+
else
|
3245
|
+
ac_cv_header_stdc=no
|
3246
|
+
fi
|
3247
|
+
rm -f conftest*
|
3248
|
+
|
3249
|
+
fi
|
3250
|
+
|
3251
|
+
if test $ac_cv_header_stdc = yes; then
|
3252
|
+
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
3253
|
+
if test "$cross_compiling" = yes; then
|
3254
|
+
:
|
3255
|
+
else
|
3256
|
+
cat >conftest.$ac_ext <<_ACEOF
|
3257
|
+
/* confdefs.h. */
|
3258
|
+
_ACEOF
|
3259
|
+
cat confdefs.h >>conftest.$ac_ext
|
3260
|
+
cat >>conftest.$ac_ext <<_ACEOF
|
3261
|
+
/* end confdefs.h. */
|
3262
|
+
#include <ctype.h>
|
3263
|
+
#if ((' ' & 0x0FF) == 0x020)
|
3264
|
+
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
3265
|
+
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
3266
|
+
#else
|
3267
|
+
# define ISLOWER(c) \
|
3268
|
+
(('a' <= (c) && (c) <= 'i') \
|
3269
|
+
|| ('j' <= (c) && (c) <= 'r') \
|
3270
|
+
|| ('s' <= (c) && (c) <= 'z'))
|
3271
|
+
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
3272
|
+
#endif
|
3273
|
+
|
3274
|
+
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
3275
|
+
int
|
3276
|
+
main ()
|
3277
|
+
{
|
3278
|
+
int i;
|
3279
|
+
for (i = 0; i < 256; i++)
|
3280
|
+
if (XOR (islower (i), ISLOWER (i))
|
3281
|
+
|| toupper (i) != TOUPPER (i))
|
3282
|
+
exit(2);
|
3283
|
+
exit (0);
|
3284
|
+
}
|
3285
|
+
_ACEOF
|
3286
|
+
rm -f conftest$ac_exeext
|
2826
3287
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
2827
|
-
(eval $ac_link) 2
|
3288
|
+
(eval $ac_link) 2>&5
|
3289
|
+
ac_status=$?
|
3290
|
+
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
3291
|
+
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
3292
|
+
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
3293
|
+
(eval $ac_try) 2>&5
|
3294
|
+
ac_status=$?
|
3295
|
+
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
3296
|
+
(exit $ac_status); }; }; then
|
3297
|
+
:
|
3298
|
+
else
|
3299
|
+
echo "$as_me: program exited with status $ac_status" >&5
|
3300
|
+
echo "$as_me: failed program was:" >&5
|
3301
|
+
sed 's/^/| /' conftest.$ac_ext >&5
|
3302
|
+
|
3303
|
+
( exit $ac_status )
|
3304
|
+
ac_cv_header_stdc=no
|
3305
|
+
fi
|
3306
|
+
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
3307
|
+
fi
|
3308
|
+
fi
|
3309
|
+
fi
|
3310
|
+
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
3311
|
+
echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
3312
|
+
if test $ac_cv_header_stdc = yes; then
|
3313
|
+
|
3314
|
+
cat >>confdefs.h <<\_ACEOF
|
3315
|
+
#define STDC_HEADERS 1
|
3316
|
+
_ACEOF
|
3317
|
+
|
3318
|
+
fi
|
3319
|
+
|
3320
|
+
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
3321
|
+
|
3322
|
+
|
3323
|
+
|
3324
|
+
|
3325
|
+
|
3326
|
+
|
3327
|
+
|
3328
|
+
|
3329
|
+
|
3330
|
+
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
3331
|
+
inttypes.h stdint.h unistd.h
|
3332
|
+
do
|
3333
|
+
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
3334
|
+
echo "$as_me:$LINENO: checking for $ac_header" >&5
|
3335
|
+
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
3336
|
+
if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
3337
|
+
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3338
|
+
else
|
3339
|
+
cat >conftest.$ac_ext <<_ACEOF
|
3340
|
+
/* confdefs.h. */
|
3341
|
+
_ACEOF
|
3342
|
+
cat confdefs.h >>conftest.$ac_ext
|
3343
|
+
cat >>conftest.$ac_ext <<_ACEOF
|
3344
|
+
/* end confdefs.h. */
|
3345
|
+
$ac_includes_default
|
3346
|
+
|
3347
|
+
#include <$ac_header>
|
3348
|
+
_ACEOF
|
3349
|
+
rm -f conftest.$ac_objext
|
3350
|
+
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
3351
|
+
(eval $ac_compile) 2>conftest.er1
|
3352
|
+
ac_status=$?
|
3353
|
+
grep -v '^ *+' conftest.er1 >conftest.err
|
3354
|
+
rm -f conftest.er1
|
3355
|
+
cat conftest.err >&5
|
3356
|
+
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
3357
|
+
(exit $ac_status); } &&
|
3358
|
+
{ ac_try='test -z "$ac_c_werror_flag"
|
3359
|
+
|| test ! -s conftest.err'
|
3360
|
+
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
3361
|
+
(eval $ac_try) 2>&5
|
3362
|
+
ac_status=$?
|
3363
|
+
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
3364
|
+
(exit $ac_status); }; } &&
|
3365
|
+
{ ac_try='test -s conftest.$ac_objext'
|
3366
|
+
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
3367
|
+
(eval $ac_try) 2>&5
|
3368
|
+
ac_status=$?
|
3369
|
+
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
3370
|
+
(exit $ac_status); }; }; then
|
3371
|
+
eval "$as_ac_Header=yes"
|
3372
|
+
else
|
3373
|
+
echo "$as_me: failed program was:" >&5
|
3374
|
+
sed 's/^/| /' conftest.$ac_ext >&5
|
3375
|
+
|
3376
|
+
eval "$as_ac_Header=no"
|
3377
|
+
fi
|
3378
|
+
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
3379
|
+
fi
|
3380
|
+
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
3381
|
+
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
3382
|
+
if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
3383
|
+
cat >>confdefs.h <<_ACEOF
|
3384
|
+
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
3385
|
+
_ACEOF
|
3386
|
+
|
3387
|
+
fi
|
3388
|
+
|
3389
|
+
done
|
3390
|
+
|
3391
|
+
|
3392
|
+
if test "${ac_cv_header_sys_capability_h+set}" = set; then
|
3393
|
+
echo "$as_me:$LINENO: checking for sys/capability.h" >&5
|
3394
|
+
echo $ECHO_N "checking for sys/capability.h... $ECHO_C" >&6
|
3395
|
+
if test "${ac_cv_header_sys_capability_h+set}" = set; then
|
3396
|
+
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3397
|
+
fi
|
3398
|
+
echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
|
3399
|
+
echo "${ECHO_T}$ac_cv_header_sys_capability_h" >&6
|
3400
|
+
else
|
3401
|
+
# Is the header compilable?
|
3402
|
+
echo "$as_me:$LINENO: checking sys/capability.h usability" >&5
|
3403
|
+
echo $ECHO_N "checking sys/capability.h usability... $ECHO_C" >&6
|
3404
|
+
cat >conftest.$ac_ext <<_ACEOF
|
3405
|
+
/* confdefs.h. */
|
3406
|
+
_ACEOF
|
3407
|
+
cat confdefs.h >>conftest.$ac_ext
|
3408
|
+
cat >>conftest.$ac_ext <<_ACEOF
|
3409
|
+
/* end confdefs.h. */
|
3410
|
+
$ac_includes_default
|
3411
|
+
#include <sys/capability.h>
|
3412
|
+
_ACEOF
|
3413
|
+
rm -f conftest.$ac_objext
|
3414
|
+
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
3415
|
+
(eval $ac_compile) 2>conftest.er1
|
2828
3416
|
ac_status=$?
|
2829
3417
|
grep -v '^ *+' conftest.er1 >conftest.err
|
2830
3418
|
rm -f conftest.er1
|
@@ -2838,28 +3426,113 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
|
2838
3426
|
ac_status=$?
|
2839
3427
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2840
3428
|
(exit $ac_status); }; } &&
|
2841
|
-
{ ac_try='test -s conftest
|
3429
|
+
{ ac_try='test -s conftest.$ac_objext'
|
2842
3430
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
2843
3431
|
(eval $ac_try) 2>&5
|
2844
3432
|
ac_status=$?
|
2845
3433
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2846
3434
|
(exit $ac_status); }; }; then
|
2847
|
-
|
3435
|
+
ac_header_compiler=yes
|
2848
3436
|
else
|
2849
3437
|
echo "$as_me: failed program was:" >&5
|
2850
3438
|
sed 's/^/| /' conftest.$ac_ext >&5
|
2851
3439
|
|
2852
|
-
|
3440
|
+
ac_header_compiler=no
|
2853
3441
|
fi
|
2854
|
-
rm -f conftest.err conftest.$ac_objext
|
2855
|
-
|
2856
|
-
|
3442
|
+
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
3443
|
+
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
3444
|
+
echo "${ECHO_T}$ac_header_compiler" >&6
|
3445
|
+
|
3446
|
+
# Is the header present?
|
3447
|
+
echo "$as_me:$LINENO: checking sys/capability.h presence" >&5
|
3448
|
+
echo $ECHO_N "checking sys/capability.h presence... $ECHO_C" >&6
|
3449
|
+
cat >conftest.$ac_ext <<_ACEOF
|
3450
|
+
/* confdefs.h. */
|
3451
|
+
_ACEOF
|
3452
|
+
cat confdefs.h >>conftest.$ac_ext
|
3453
|
+
cat >>conftest.$ac_ext <<_ACEOF
|
3454
|
+
/* end confdefs.h. */
|
3455
|
+
#include <sys/capability.h>
|
3456
|
+
_ACEOF
|
3457
|
+
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
3458
|
+
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
3459
|
+
ac_status=$?
|
3460
|
+
grep -v '^ *+' conftest.er1 >conftest.err
|
3461
|
+
rm -f conftest.er1
|
3462
|
+
cat conftest.err >&5
|
3463
|
+
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
3464
|
+
(exit $ac_status); } >/dev/null; then
|
3465
|
+
if test -s conftest.err; then
|
3466
|
+
ac_cpp_err=$ac_c_preproc_warn_flag
|
3467
|
+
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
3468
|
+
else
|
3469
|
+
ac_cpp_err=
|
3470
|
+
fi
|
3471
|
+
else
|
3472
|
+
ac_cpp_err=yes
|
3473
|
+
fi
|
3474
|
+
if test -z "$ac_cpp_err"; then
|
3475
|
+
ac_header_preproc=yes
|
3476
|
+
else
|
3477
|
+
echo "$as_me: failed program was:" >&5
|
3478
|
+
sed 's/^/| /' conftest.$ac_ext >&5
|
3479
|
+
|
3480
|
+
ac_header_preproc=no
|
2857
3481
|
fi
|
2858
|
-
|
2859
|
-
echo "$
|
2860
|
-
|
2861
|
-
|
3482
|
+
rm -f conftest.err conftest.$ac_ext
|
3483
|
+
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
3484
|
+
echo "${ECHO_T}$ac_header_preproc" >&6
|
3485
|
+
|
3486
|
+
# So? What about this header?
|
3487
|
+
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
3488
|
+
yes:no: )
|
3489
|
+
{ echo "$as_me:$LINENO: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
3490
|
+
echo "$as_me: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
3491
|
+
{ echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the compiler's result" >&5
|
3492
|
+
echo "$as_me: WARNING: sys/capability.h: proceeding with the compiler's result" >&2;}
|
3493
|
+
ac_header_preproc=yes
|
3494
|
+
;;
|
3495
|
+
no:yes:* )
|
3496
|
+
{ echo "$as_me:$LINENO: WARNING: sys/capability.h: present but cannot be compiled" >&5
|
3497
|
+
echo "$as_me: WARNING: sys/capability.h: present but cannot be compiled" >&2;}
|
3498
|
+
{ echo "$as_me:$LINENO: WARNING: sys/capability.h: check for missing prerequisite headers?" >&5
|
3499
|
+
echo "$as_me: WARNING: sys/capability.h: check for missing prerequisite headers?" >&2;}
|
3500
|
+
{ echo "$as_me:$LINENO: WARNING: sys/capability.h: see the Autoconf documentation" >&5
|
3501
|
+
echo "$as_me: WARNING: sys/capability.h: see the Autoconf documentation" >&2;}
|
3502
|
+
{ echo "$as_me:$LINENO: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&5
|
3503
|
+
echo "$as_me: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
3504
|
+
{ echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&5
|
3505
|
+
echo "$as_me: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&2;}
|
3506
|
+
{ echo "$as_me:$LINENO: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&5
|
3507
|
+
echo "$as_me: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&2;}
|
3508
|
+
(
|
3509
|
+
cat <<\_ASBOX
|
3510
|
+
## ------------------------------------------ ##
|
3511
|
+
## Report this to the AC_PACKAGE_NAME lists. ##
|
3512
|
+
## ------------------------------------------ ##
|
3513
|
+
_ASBOX
|
3514
|
+
) |
|
3515
|
+
sed "s/^/$as_me: WARNING: /" >&2
|
3516
|
+
;;
|
3517
|
+
esac
|
3518
|
+
echo "$as_me:$LINENO: checking for sys/capability.h" >&5
|
3519
|
+
echo $ECHO_N "checking for sys/capability.h... $ECHO_C" >&6
|
3520
|
+
if test "${ac_cv_header_sys_capability_h+set}" = set; then
|
3521
|
+
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3522
|
+
else
|
3523
|
+
ac_cv_header_sys_capability_h=$ac_header_preproc
|
3524
|
+
fi
|
3525
|
+
echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
|
3526
|
+
echo "${ECHO_T}$ac_cv_header_sys_capability_h" >&6
|
3527
|
+
|
2862
3528
|
fi
|
3529
|
+
if test $ac_cv_header_sys_capability_h = yes; then
|
3530
|
+
CFLAGS="$CFLAGS -DHAVE_LIBCAP"
|
3531
|
+
else
|
3532
|
+
{ echo "$as_me:$LINENO: WARNING: cannot find headers for libcap" >&5
|
3533
|
+
echo "$as_me: WARNING: cannot find headers for libcap" >&2;}
|
3534
|
+
fi
|
3535
|
+
|
2863
3536
|
|
2864
3537
|
fi
|
2865
3538
|
|
@@ -3533,6 +4206,8 @@ s,@STRIP@,$STRIP,;t t
|
|
3533
4206
|
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
|
3534
4207
|
s,@JAVA_HOME@,$JAVA_HOME,;t t
|
3535
4208
|
s,@LDCMD@,$LDCMD,;t t
|
4209
|
+
s,@CPP@,$CPP,;t t
|
4210
|
+
s,@EGREP@,$EGREP,;t t
|
3536
4211
|
s,@INCLUDES@,$INCLUDES,;t t
|
3537
4212
|
s,@LIBOBJS@,$LIBOBJS,;t t
|
3538
4213
|
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
|