3699
ac_cpp='$CPP $CPPFLAGS'
3700
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3701
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3702
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3703
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3704
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3705
# On Suns, sometimes $CPP names a directory.
3706
if test -n "$CPP" && test -d "$CPP"; then
3709
if test -z "$CPP"; then
3710
if test "${ac_cv_prog_CPP+set}" = set; then
3711
$as_echo_n "(cached) " >&6
3713
# Double quotes because CPP needs to be expanded
3714
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3717
for ac_c_preproc_warn_flag in '' yes
3719
# Use a header file that comes with gcc, so configuring glibc
3720
# with a fresh cross-compiler works.
3721
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3722
# <limits.h> exists even on freestanding compilers.
3723
# On the NeXT, cc -E runs the code through the compiler's parser,
3724
# not just through cpp. "Syntax error" is here to catch this case.
3725
cat >conftest.$ac_ext <<_ACEOF
3728
cat confdefs.h >>conftest.$ac_ext
3729
cat >>conftest.$ac_ext <<_ACEOF
3730
/* end confdefs.h. */
3732
# include <limits.h>
3734
# include <assert.h>
3738
if { (ac_try="$ac_cpp conftest.$ac_ext"
3740
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3741
*) ac_try_echo=$ac_try;;
3743
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3744
$as_echo "$ac_try_echo") >&5
3745
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3747
grep -v '^ *+' conftest.er1 >conftest.err
3749
cat conftest.err >&5
3750
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751
(exit $ac_status); } >/dev/null && {
3752
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3753
test ! -s conftest.err
3757
$as_echo "$as_me: failed program was:" >&5
3758
sed 's/^/| /' conftest.$ac_ext >&5
3760
# Broken: fails on valid input.
3764
rm -f conftest.err conftest.$ac_ext
3766
# OK, works on sane cases. Now check whether nonexistent headers
3767
# can be detected and how.
3768
cat >conftest.$ac_ext <<_ACEOF
3771
cat confdefs.h >>conftest.$ac_ext
3772
cat >>conftest.$ac_ext <<_ACEOF
3773
/* end confdefs.h. */
3774
#include <ac_nonexistent.h>
3776
if { (ac_try="$ac_cpp conftest.$ac_ext"
3778
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3779
*) ac_try_echo=$ac_try;;
3781
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3782
$as_echo "$ac_try_echo") >&5
3783
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3785
grep -v '^ *+' conftest.er1 >conftest.err
3787
cat conftest.err >&5
3788
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789
(exit $ac_status); } >/dev/null && {
3790
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3791
test ! -s conftest.err
3793
# Broken: success on invalid input.
3796
$as_echo "$as_me: failed program was:" >&5
3797
sed 's/^/| /' conftest.$ac_ext >&5
3799
# Passes both tests.
3804
rm -f conftest.err conftest.$ac_ext
3807
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3808
rm -f conftest.err conftest.$ac_ext
3809
if $ac_preproc_ok; then
3821
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3822
$as_echo "$CPP" >&6; }
3824
for ac_c_preproc_warn_flag in '' yes
3826
# Use a header file that comes with gcc, so configuring glibc
3827
# with a fresh cross-compiler works.
3828
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3829
# <limits.h> exists even on freestanding compilers.
3830
# On the NeXT, cc -E runs the code through the compiler's parser,
3831
# not just through cpp. "Syntax error" is here to catch this case.
3832
cat >conftest.$ac_ext <<_ACEOF
3835
cat confdefs.h >>conftest.$ac_ext
3836
cat >>conftest.$ac_ext <<_ACEOF
3837
/* end confdefs.h. */
3839
# include <limits.h>
3841
# include <assert.h>
3845
if { (ac_try="$ac_cpp conftest.$ac_ext"
3847
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848
*) ac_try_echo=$ac_try;;
3850
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3851
$as_echo "$ac_try_echo") >&5
3852
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3854
grep -v '^ *+' conftest.er1 >conftest.err
3856
cat conftest.err >&5
3857
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858
(exit $ac_status); } >/dev/null && {
3859
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3860
test ! -s conftest.err
3864
$as_echo "$as_me: failed program was:" >&5
3865
sed 's/^/| /' conftest.$ac_ext >&5
3867
# Broken: fails on valid input.
3871
rm -f conftest.err conftest.$ac_ext
3873
# OK, works on sane cases. Now check whether nonexistent headers
3874
# can be detected and how.
3875
cat >conftest.$ac_ext <<_ACEOF
3878
cat confdefs.h >>conftest.$ac_ext
3879
cat >>conftest.$ac_ext <<_ACEOF
3880
/* end confdefs.h. */
3881
#include <ac_nonexistent.h>
3883
if { (ac_try="$ac_cpp conftest.$ac_ext"
3885
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3886
*) ac_try_echo=$ac_try;;
3888
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3889
$as_echo "$ac_try_echo") >&5
3890
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3892
grep -v '^ *+' conftest.er1 >conftest.err
3894
cat conftest.err >&5
3895
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896
(exit $ac_status); } >/dev/null && {
3897
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3898
test ! -s conftest.err
3900
# Broken: success on invalid input.
3903
$as_echo "$as_me: failed program was:" >&5
3904
sed 's/^/| /' conftest.$ac_ext >&5
3906
# Passes both tests.
3911
rm -f conftest.err conftest.$ac_ext
3914
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3915
rm -f conftest.err conftest.$ac_ext
3916
if $ac_preproc_ok; then
3919
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3920
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3921
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3922
See \`config.log' for more details." >&5
3923
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3924
See \`config.log' for more details." >&2;}
3925
{ (exit 1); exit 1; }; }; }
3929
ac_cpp='$CPP $CPPFLAGS'
3930
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3931
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3932
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3935
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3936
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3937
if test "${ac_cv_path_GREP+set}" = set; then
3938
$as_echo_n "(cached) " >&6
3940
if test -z "$GREP"; then
3941
ac_path_GREP_found=false
3942
# Loop through the user's path and test for each of PROGNAME-LIST
3943
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3944
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3947
test -z "$as_dir" && as_dir=.
3948
for ac_prog in grep ggrep; do
3949
for ac_exec_ext in '' $ac_executable_extensions; do
3950
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3951
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3952
# Check for GNU ac_path_GREP and select it if it is found.
3953
# Check for GNU $ac_path_GREP
3954
case `"$ac_path_GREP" --version 2>&1` in
3956
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3959
$as_echo_n 0123456789 >"conftest.in"
3962
cat "conftest.in" "conftest.in" >"conftest.tmp"
3963
mv "conftest.tmp" "conftest.in"
3964
cp "conftest.in" "conftest.nl"
3965
$as_echo 'GREP' >> "conftest.nl"
3966
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3967
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3968
ac_count=`expr $ac_count + 1`
3969
if test $ac_count -gt ${ac_path_GREP_max-0}; then
3970
# Best one so far, save it but keep looking for a better one
3971
ac_cv_path_GREP="$ac_path_GREP"
3972
ac_path_GREP_max=$ac_count
3974
# 10*(2^10) chars as input seems more than enough
3975
test $ac_count -gt 10 && break
3977
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3980
$ac_path_GREP_found && break 3
3985
if test -z "$ac_cv_path_GREP"; then
3986
{ { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3987
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3988
{ (exit 1); exit 1; }; }
3991
ac_cv_path_GREP=$GREP
3995
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3996
$as_echo "$ac_cv_path_GREP" >&6; }
3997
GREP="$ac_cv_path_GREP"
4000
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4001
$as_echo_n "checking for egrep... " >&6; }
4002
if test "${ac_cv_path_EGREP+set}" = set; then
4003
$as_echo_n "(cached) " >&6
4005
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4006
then ac_cv_path_EGREP="$GREP -E"
4008
if test -z "$EGREP"; then
4009
ac_path_EGREP_found=false
4010
# Loop through the user's path and test for each of PROGNAME-LIST
4011
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4012
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4015
test -z "$as_dir" && as_dir=.
4016
for ac_prog in egrep; do
4017
for ac_exec_ext in '' $ac_executable_extensions; do
4018
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4019
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4020
# Check for GNU ac_path_EGREP and select it if it is found.
4021
# Check for GNU $ac_path_EGREP
4022
case `"$ac_path_EGREP" --version 2>&1` in
4024
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4027
$as_echo_n 0123456789 >"conftest.in"
4030
cat "conftest.in" "conftest.in" >"conftest.tmp"
4031
mv "conftest.tmp" "conftest.in"
4032
cp "conftest.in" "conftest.nl"
4033
$as_echo 'EGREP' >> "conftest.nl"
4034
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4035
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4036
ac_count=`expr $ac_count + 1`
4037
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4038
# Best one so far, save it but keep looking for a better one
4039
ac_cv_path_EGREP="$ac_path_EGREP"
4040
ac_path_EGREP_max=$ac_count
4042
# 10*(2^10) chars as input seems more than enough
4043
test $ac_count -gt 10 && break
4045
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4048
$ac_path_EGREP_found && break 3
4053
if test -z "$ac_cv_path_EGREP"; then
4054
{ { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4055
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4056
{ (exit 1); exit 1; }; }
4059
ac_cv_path_EGREP=$EGREP
4064
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4065
$as_echo "$ac_cv_path_EGREP" >&6; }
4066
EGREP="$ac_cv_path_EGREP"
4069
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4070
$as_echo_n "checking for ANSI C header files... " >&6; }
4071
if test "${ac_cv_header_stdc+set}" = set; then
4072
$as_echo_n "(cached) " >&6
4074
cat >conftest.$ac_ext <<_ACEOF
4077
cat confdefs.h >>conftest.$ac_ext
4078
cat >>conftest.$ac_ext <<_ACEOF
4079
/* end confdefs.h. */
4093
rm -f conftest.$ac_objext
4094
if { (ac_try="$ac_compile"
4096
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4097
*) ac_try_echo=$ac_try;;
4099
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4100
$as_echo "$ac_try_echo") >&5
4101
(eval "$ac_compile") 2>conftest.er1
4103
grep -v '^ *+' conftest.er1 >conftest.err
4105
cat conftest.err >&5
4106
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107
(exit $ac_status); } && {
4108
test -z "$ac_c_werror_flag" ||
4109
test ! -s conftest.err
4110
} && test -s conftest.$ac_objext; then
4111
ac_cv_header_stdc=yes
4113
$as_echo "$as_me: failed program was:" >&5
4114
sed 's/^/| /' conftest.$ac_ext >&5
4116
ac_cv_header_stdc=no
4119
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4121
if test $ac_cv_header_stdc = yes; then
4122
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4123
cat >conftest.$ac_ext <<_ACEOF
4126
cat confdefs.h >>conftest.$ac_ext
4127
cat >>conftest.$ac_ext <<_ACEOF
4128
/* end confdefs.h. */
4132
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4133
$EGREP "memchr" >/dev/null 2>&1; then
4136
ac_cv_header_stdc=no
4142
if test $ac_cv_header_stdc = yes; then
4143
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4144
cat >conftest.$ac_ext <<_ACEOF
4147
cat confdefs.h >>conftest.$ac_ext
4148
cat >>conftest.$ac_ext <<_ACEOF
4149
/* end confdefs.h. */
4153
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4154
$EGREP "free" >/dev/null 2>&1; then
4157
ac_cv_header_stdc=no
4163
if test $ac_cv_header_stdc = yes; then
4164
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4165
if test "$cross_compiling" = yes; then
4168
cat >conftest.$ac_ext <<_ACEOF
4171
cat confdefs.h >>conftest.$ac_ext
4172
cat >>conftest.$ac_ext <<_ACEOF
4173
/* end confdefs.h. */
4176
#if ((' ' & 0x0FF) == 0x020)
4177
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4178
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4180
# define ISLOWER(c) \
4181
(('a' <= (c) && (c) <= 'i') \
4182
|| ('j' <= (c) && (c) <= 'r') \
4183
|| ('s' <= (c) && (c) <= 'z'))
4184
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4187
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4192
for (i = 0; i < 256; i++)
4193
if (XOR (islower (i), ISLOWER (i))
4194
|| toupper (i) != TOUPPER (i))
4199
rm -f conftest$ac_exeext
4200
if { (ac_try="$ac_link"
4202
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4203
*) ac_try_echo=$ac_try;;
4205
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4206
$as_echo "$ac_try_echo") >&5
4207
(eval "$ac_link") 2>&5
4209
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4211
{ (case "(($ac_try" in
4212
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4213
*) ac_try_echo=$ac_try;;
4215
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4216
$as_echo "$ac_try_echo") >&5
4217
(eval "$ac_try") 2>&5
4219
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220
(exit $ac_status); }; }; then
4223
$as_echo "$as_me: program exited with status $ac_status" >&5
4224
$as_echo "$as_me: failed program was:" >&5
4225
sed 's/^/| /' conftest.$ac_ext >&5
4228
ac_cv_header_stdc=no
4230
rm -rf conftest.dSYM
4231
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4237
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4238
$as_echo "$ac_cv_header_stdc" >&6; }
4239
if test $ac_cv_header_stdc = yes; then
4241
cat >>confdefs.h <<\_ACEOF
4242
#define STDC_HEADERS 1
4247
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4257
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4258
inttypes.h stdint.h unistd.h
4260
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4261
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4262
$as_echo_n "checking for $ac_header... " >&6; }
4263
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4264
$as_echo_n "(cached) " >&6
4266
cat >conftest.$ac_ext <<_ACEOF
4269
cat confdefs.h >>conftest.$ac_ext
4270
cat >>conftest.$ac_ext <<_ACEOF
4271
/* end confdefs.h. */
4272
$ac_includes_default
4274
#include <$ac_header>
4276
rm -f conftest.$ac_objext
4277
if { (ac_try="$ac_compile"
4279
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4280
*) ac_try_echo=$ac_try;;
4282
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4283
$as_echo "$ac_try_echo") >&5
4284
(eval "$ac_compile") 2>conftest.er1
4286
grep -v '^ *+' conftest.er1 >conftest.err
4288
cat conftest.err >&5
4289
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290
(exit $ac_status); } && {
4291
test -z "$ac_c_werror_flag" ||
4292
test ! -s conftest.err
4293
} && test -s conftest.$ac_objext; then
4294
eval "$as_ac_Header=yes"
4296
$as_echo "$as_me: failed program was:" >&5
4297
sed 's/^/| /' conftest.$ac_ext >&5
4299
eval "$as_ac_Header=no"
4302
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4304
ac_res=`eval 'as_val=${'$as_ac_Header'}
4305
$as_echo "$as_val"'`
4306
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4307
$as_echo "$ac_res" >&6; }
4308
as_val=`eval 'as_val=${'$as_ac_Header'}
4309
$as_echo "$as_val"'`
4310
if test "x$as_val" = x""yes; then
4311
cat >>confdefs.h <<_ACEOF
4312
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4320
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
4321
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4322
if test "${ac_cv_prog_cc_c99+set}" = set; then
4323
$as_echo_n "(cached) " >&6
4325
ac_cv_prog_cc_c99=no
4327
cat >conftest.$ac_ext <<_ACEOF
4330
cat confdefs.h >>conftest.$ac_ext
4331
cat >>conftest.$ac_ext <<_ACEOF
4332
/* end confdefs.h. */
4334
#include <stdbool.h>
4339
// Check varargs macros. These examples are taken from C99 6.10.3.5.
4340
#define debug(...) fprintf (stderr, __VA_ARGS__)
4341
#define showlist(...) puts (#__VA_ARGS__)
4342
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4344
test_varargs_macros (void)
4349
debug ("X = %d\n", x);
4350
showlist (The first, second, and third items.);
4351
report (x>y, "x is %d but y is %d", x, y);
4354
// Check long long types.
4355
#define BIG64 18446744073709551615ull
4356
#define BIG32 4294967295ul
4357
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4359
your preprocessor is broken;
4363
your preprocessor is broken;
4365
static long long int bignum = -9223372036854775807LL;
4366
static unsigned long long int ubignum = BIG64;
4368
struct incomplete_array
4376
const wchar_t *name;
4380
typedef const char *ccp;
4383
test_restrict (ccp restrict text)
4385
// See if C++-style comments work.
4386
// Iterate through items via the restricted pointer.
4387
// Also check for declarations in for loops.
4388
for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4393
// Check varargs and va_copy.
4395
test_varargs (const char *format, ...)
4398
va_start (args, format);
4400
va_copy (args_copy, args);
4411
str = va_arg (args_copy, const char *);
4414
number = va_arg (args_copy, int);
4417
fnumber = va_arg (args_copy, double);
4432
_Bool success = false;
4435
if (test_restrict ("String literal") == 0)
4437
char *restrict newvar = "Another string";
4440
test_varargs ("s, d' f .", "string", 65, 34.234);
4441
test_varargs_macros ();
4443
// Check flexible array members.
4444
struct incomplete_array *ia =
4445
malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4447
for (int i = 0; i < ia->datasize; ++i)
4448
ia->data[i] = i * 1.234;
4450
// Check named initializers.
4451
struct named_init ni = {
4453
.name = L"Test wide string",
4454
.average = 543.34343,
4459
int dynamic_array[ni.number];
4460
dynamic_array[ni.number - 1] = 543;
4462
// work around unused variable warnings
4463
return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4464
|| dynamic_array[ni.number - 1] != 543);
4470
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4472
CC="$ac_save_CC $ac_arg"
4473
rm -f conftest.$ac_objext
4474
if { (ac_try="$ac_compile"
4476
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4477
*) ac_try_echo=$ac_try;;
4479
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4480
$as_echo "$ac_try_echo") >&5
4481
(eval "$ac_compile") 2>conftest.er1
4483
grep -v '^ *+' conftest.er1 >conftest.err
4485
cat conftest.err >&5
4486
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487
(exit $ac_status); } && {
4488
test -z "$ac_c_werror_flag" ||
4489
test ! -s conftest.err
4490
} && test -s conftest.$ac_objext; then
4491
ac_cv_prog_cc_c99=$ac_arg
4493
$as_echo "$as_me: failed program was:" >&5
4494
sed 's/^/| /' conftest.$ac_ext >&5
4499
rm -f core conftest.err conftest.$ac_objext
4500
test "x$ac_cv_prog_cc_c99" != "xno" && break
4502
rm -f conftest.$ac_ext
4507
case "x$ac_cv_prog_cc_c99" in
4509
{ $as_echo "$as_me:$LINENO: result: none needed" >&5
4510
$as_echo "none needed" >&6; } ;;
4512
{ $as_echo "$as_me:$LINENO: result: unsupported" >&5
4513
$as_echo "unsupported" >&6; } ;;
4515
CC="$CC $ac_cv_prog_cc_c99"
4516
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
4517
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4522
# Make sure we can run config.sub.
4523
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4524
{ { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4525
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4526
{ (exit 1); exit 1; }; }
4528
{ $as_echo "$as_me:$LINENO: checking build system type" >&5
4529
$as_echo_n "checking build system type... " >&6; }
4530
if test "${ac_cv_build+set}" = set; then
4531
$as_echo_n "(cached) " >&6
4533
ac_build_alias=$build_alias
4534
test "x$ac_build_alias" = x &&
4535
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4536
test "x$ac_build_alias" = x &&
4537
{ { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4538
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4539
{ (exit 1); exit 1; }; }
4540
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4541
{ { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4542
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4543
{ (exit 1); exit 1; }; }
4546
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4547
$as_echo "$ac_cv_build" >&6; }
4548
case $ac_cv_build in
4550
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4551
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
4552
{ (exit 1); exit 1; }; };;
4555
ac_save_IFS=$IFS; IFS='-'
4561
# Remember, the first character of IFS is used to create $*,
4562
# except with old shells:
4565
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4568
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
4569
$as_echo_n "checking host system type... " >&6; }
4570
if test "${ac_cv_host+set}" = set; then
4571
$as_echo_n "(cached) " >&6
4573
if test "x$host_alias" = x; then
4574
ac_cv_host=$ac_cv_build
4576
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4577
{ { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4578
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4579
{ (exit 1); exit 1; }; }
4583
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4584
$as_echo "$ac_cv_host" >&6; }
4587
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4588
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
4589
{ (exit 1); exit 1; }; };;
4592
ac_save_IFS=$IFS; IFS='-'
4598
# Remember, the first character of IFS is used to create $*,
4599
# except with old shells:
4602
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4608
if test "x$GCC" = xyes ; then
4609
CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4610
-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4611
-Wbad-function-cast"
4612
case `$CC -dumpversion` in
4614
CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4618
{ $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
4619
$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
4620
if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
4621
$as_echo_n "(cached) " >&6
4623
cat >conftest.$ac_ext <<_ACEOF
4626
cat confdefs.h >>conftest.$ac_ext
4627
cat >>conftest.$ac_ext <<_ACEOF
4628
/* end confdefs.h. */
4629
$ac_includes_default
4641
rm -f conftest.$ac_objext
4642
if { (ac_try="$ac_compile"
4644
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4645
*) ac_try_echo=$ac_try;;
4647
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4648
$as_echo "$ac_try_echo") >&5
4649
(eval "$ac_compile") 2>conftest.er1
4651
grep -v '^ *+' conftest.er1 >conftest.err
4653
cat conftest.err >&5
4654
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655
(exit $ac_status); } && {
4656
test -z "$ac_c_werror_flag" ||
4657
test ! -s conftest.err
4658
} && test -s conftest.$ac_objext; then
4659
ac_cv_have_decl___SUNPRO_C=yes
4661
$as_echo "$as_me: failed program was:" >&5
4662
sed 's/^/| /' conftest.$ac_ext >&5
4664
ac_cv_have_decl___SUNPRO_C=no
4667
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4669
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
4670
$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
4671
if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
4677
if test "x$SUNCC" = "xyes"; then
4682
# Check whether --enable-silent-rules was given.
4683
if test "${enable_silent_rules+set}" = set; then
4684
enableval=$enable_silent_rules;
4687
case $enable_silent_rules in
4688
yes) AM_DEFAULT_VERBOSITY=0;;
4689
no) AM_DEFAULT_VERBOSITY=1;;
4690
*) AM_DEFAULT_VERBOSITY=0;;
4700
# Check whether --enable-strict-compilation was given.
4701
if test "${enable_strict_compilation+set}" = set; then
4702
enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4707
if test "x$STRICT_COMPILE" = "xyes"; then
4708
{ $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
4709
$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
4710
if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
4711
$as_echo_n "(cached) " >&6
4713
cat >conftest.$ac_ext <<_ACEOF
4716
cat confdefs.h >>conftest.$ac_ext
4717
cat >>conftest.$ac_ext <<_ACEOF
4718
/* end confdefs.h. */
4719
$ac_includes_default
4731
rm -f conftest.$ac_objext
4732
if { (ac_try="$ac_compile"
4734
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4735
*) ac_try_echo=$ac_try;;
4737
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4738
$as_echo "$ac_try_echo") >&5
4739
(eval "$ac_compile") 2>conftest.er1
4741
grep -v '^ *+' conftest.er1 >conftest.err
4743
cat conftest.err >&5
4744
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745
(exit $ac_status); } && {
4746
test -z "$ac_c_werror_flag" ||
4747
test ! -s conftest.err
4748
} && test -s conftest.$ac_objext; then
4749
ac_cv_have_decl___SUNPRO_C=yes
4751
$as_echo "$as_me: failed program was:" >&5
4752
sed 's/^/| /' conftest.$ac_ext >&5
4754
ac_cv_have_decl___SUNPRO_C=no
4757
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4759
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
4760
$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
4761
if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
4767
{ $as_echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5
4768
$as_echo_n "checking whether __INTEL_COMPILER is declared... " >&6; }
4769
if test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then
4770
$as_echo_n "(cached) " >&6
4772
cat >conftest.$ac_ext <<_ACEOF
4775
cat confdefs.h >>conftest.$ac_ext
4776
cat >>conftest.$ac_ext <<_ACEOF
4777
/* end confdefs.h. */
4778
$ac_includes_default
4782
#ifndef __INTEL_COMPILER
4783
(void) __INTEL_COMPILER;
4790
rm -f conftest.$ac_objext
4791
if { (ac_try="$ac_compile"
4793
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4794
*) ac_try_echo=$ac_try;;
4796
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4797
$as_echo "$ac_try_echo") >&5
4798
(eval "$ac_compile") 2>conftest.er1
4800
grep -v '^ *+' conftest.er1 >conftest.err
4802
cat conftest.err >&5
4803
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804
(exit $ac_status); } && {
4805
test -z "$ac_c_werror_flag" ||
4806
test ! -s conftest.err
4807
} && test -s conftest.$ac_objext; then
4808
ac_cv_have_decl___INTEL_COMPILER=yes
4810
$as_echo "$as_me: failed program was:" >&5
4811
sed 's/^/| /' conftest.$ac_ext >&5
4813
ac_cv_have_decl___INTEL_COMPILER=no
4816
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4818
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5
4819
$as_echo "$ac_cv_have_decl___INTEL_COMPILER" >&6; }
4820
if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then
4826
if test "x$GCC" = xyes ; then
4827
STRICT_CFLAGS="-pedantic -Werror"
4828
elif test "x$SUNCC" = "xyes"; then
4829
STRICT_CFLAGS="-errwarn"
4830
elif test "x$INTELCC" = "xyes"; then
4831
STRICT_CFLAGS="-Werror"
4834
CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4839
# Check whether --with-release-version was given.
4840
if test "${with_release_version+set}" = set; then
4841
withval=$with_release_version; RELEASE_VERSION="$withval"
4846
if test "x$RELEASE_VERSION" != "x"; then
4847
PACKAGE="$PACKAGE-$RELEASE_VERSION"
4848
PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
4849
{ $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
4850
$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
4853
cat >>confdefs.h <<_ACEOF
4854
#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4857
PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4858
if test "x$PVM" = "x"; then
4862
cat >>confdefs.h <<_ACEOF
4863
#define PACKAGE_VERSION_MINOR $PVM
4866
PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4867
if test "x$PVP" = "x"; then
4871
cat >>confdefs.h <<_ACEOF
4872
#define PACKAGE_VERSION_PATCHLEVEL $PVP
4877
CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
4878
mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
4879
echo 'git directory not found: installing possibly empty changelog.' >&2)"
4881
distcleancheck_listfiles='find . -type f ! -name ChangeLog -print'
4887
if test x$APP_MAN_SUFFIX = x ; then
4890
if test x$APP_MAN_DIR = x ; then
4891
APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4894
if test x$LIB_MAN_SUFFIX = x ; then
4897
if test x$LIB_MAN_DIR = x ; then
4898
LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4901
if test x$FILE_MAN_SUFFIX = x ; then
4903
solaris*) FILE_MAN_SUFFIX=4 ;;
4904
*) FILE_MAN_SUFFIX=5 ;;
4907
if test x$FILE_MAN_DIR = x ; then
4908
FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
4911
if test x$MISC_MAN_SUFFIX = x ; then
4913
solaris*) MISC_MAN_SUFFIX=5 ;;
4914
*) MISC_MAN_SUFFIX=7 ;;
4917
if test x$MISC_MAN_DIR = x ; then
4918
MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
4921
if test x$DRIVER_MAN_SUFFIX = x ; then
4923
solaris*) DRIVER_MAN_SUFFIX=7 ;;
4924
*) DRIVER_MAN_SUFFIX=4 ;;
4927
if test x$DRIVER_MAN_DIR = x ; then
4928
DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4931
if test x$ADMIN_MAN_SUFFIX = x ; then
4933
solaris*) ADMIN_MAN_SUFFIX=1m ;;
4934
*) ADMIN_MAN_SUFFIX=8 ;;
4937
if test x$ADMIN_MAN_DIR = x ; then
4938
ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
3449
4959
for ac_func in strlcpy getpid
3451
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3452
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
3453
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4961
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4962
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
4963
$as_echo_n "checking for $ac_func... " >&6; }
3454
4964
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
3455
echo $ECHO_N "(cached) $ECHO_C" >&6
4965
$as_echo_n "(cached) " >&6
3457
4967
cat >conftest.$ac_ext <<_ACEOF
3458
4968
/* confdefs.h. */
3737
5254
if test -n "$PKG_CONFIG"; then
3738
5255
_pkg_min_version=0.9.0
3739
{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
3740
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
5256
{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
5257
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3741
5258
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3742
{ echo "$as_me:$LINENO: result: yes" >&5
3743
echo "${ECHO_T}yes" >&6; }
5259
{ $as_echo "$as_me:$LINENO: result: yes" >&5
5260
$as_echo "yes" >&6; }
3745
{ echo "$as_me:$LINENO: result: no" >&5
3746
echo "${ECHO_T}no" >&6; }
5262
{ $as_echo "$as_me:$LINENO: result: no" >&5
5263
$as_echo "no" >&6; }
3753
{ echo "$as_me:$LINENO: checking for XCLOCK_X11" >&5
3754
echo $ECHO_N "checking for XCLOCK_X11... $ECHO_C" >&6; }
5270
{ $as_echo "$as_me:$LINENO: checking for XCLOCK_X11" >&5
5271
$as_echo_n "checking for XCLOCK_X11... " >&6; }
3756
if test -n "$PKG_CONFIG"; then
3757
if test -n "$PKG_CONFIG" && \
3758
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
5273
if test -n "$XCLOCK_X11_CFLAGS"; then
5274
pkg_cv_XCLOCK_X11_CFLAGS="$XCLOCK_X11_CFLAGS"
5275
elif test -n "$PKG_CONFIG"; then
5276
if test -n "$PKG_CONFIG" && \
5277
{ ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
3759
5278
($PKG_CONFIG --exists --print-errors "x11") 2>&5
3761
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762
5281
(exit $ac_status); }; then
3763
5282
pkg_cv_XCLOCK_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
3770
if test -n "$PKG_CONFIG"; then
3771
if test -n "$PKG_CONFIG" && \
3772
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
5289
if test -n "$XCLOCK_X11_LIBS"; then
5290
pkg_cv_XCLOCK_X11_LIBS="$XCLOCK_X11_LIBS"
5291
elif test -n "$PKG_CONFIG"; then
5292
if test -n "$PKG_CONFIG" && \
5293
{ ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
3773
5294
($PKG_CONFIG --exists --print-errors "x11") 2>&5
3775
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776
5297
(exit $ac_status); }; then
3777
5298
pkg_cv_XCLOCK_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
3785
5308
if test $pkg_failed = yes; then
3786
XCLOCK_X11_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11"`
5310
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5311
_pkg_short_errors_supported=yes
5313
_pkg_short_errors_supported=no
5315
if test $_pkg_short_errors_supported = yes; then
5316
XCLOCK_X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11" 2>&1`
5318
XCLOCK_X11_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11" 2>&1`
3787
5320
# Put the nasty error message in config.log where it belongs
3788
echo "$XCLOCK_X11_PKG_ERRORS" 1>&5
3790
{ { echo "$as_me:$LINENO: error: Package requirements (x11) were not met.
3791
Consider adjusting the PKG_CONFIG_PATH environment variable if you
3792
installed software in a non-standard prefix.
3794
Alternatively you may set the XCLOCK_X11_CFLAGS and XCLOCK_X11_LIBS environment variables
3795
to avoid the need to call pkg-config. See the pkg-config man page for
3797
echo "$as_me: error: Package requirements (x11) were not met.
3798
Consider adjusting the PKG_CONFIG_PATH environment variable if you
3799
installed software in a non-standard prefix.
3801
Alternatively you may set the XCLOCK_X11_CFLAGS and XCLOCK_X11_LIBS environment variables
3802
to avoid the need to call pkg-config. See the pkg-config man page for
3803
more details." >&2;}
5321
echo "$XCLOCK_X11_PKG_ERRORS" >&5
5323
{ { $as_echo "$as_me:$LINENO: error: Package requirements (x11) were not met:
5325
$XCLOCK_X11_PKG_ERRORS
5327
Consider adjusting the PKG_CONFIG_PATH environment variable if you
5328
installed software in a non-standard prefix.
5330
Alternatively, you may set the environment variables XCLOCK_X11_CFLAGS
5331
and XCLOCK_X11_LIBS to avoid the need to call pkg-config.
5332
See the pkg-config man page for more details.
5334
$as_echo "$as_me: error: Package requirements (x11) were not met:
5336
$XCLOCK_X11_PKG_ERRORS
5338
Consider adjusting the PKG_CONFIG_PATH environment variable if you
5339
installed software in a non-standard prefix.
5341
Alternatively, you may set the environment variables XCLOCK_X11_CFLAGS
5342
and XCLOCK_X11_LIBS to avoid the need to call pkg-config.
5343
See the pkg-config man page for more details.
3804
5345
{ (exit 1); exit 1; }; }
3805
5346
elif test $pkg_failed = untried; then
3806
{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
5347
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5348
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5349
{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
3807
5350
is in your PATH or set the PKG_CONFIG environment variable to the full
3808
5351
path to pkg-config.
3810
Alternatively you may set the XCLOCK_X11_CFLAGS and XCLOCK_X11_LIBS environment variables
3811
to avoid the need to call pkg-config. See the pkg-config man page for
5353
Alternatively, you may set the environment variables XCLOCK_X11_CFLAGS
5354
and XCLOCK_X11_LIBS to avoid the need to call pkg-config.
5355
See the pkg-config man page for more details.
3814
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
5357
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
3815
5358
See \`config.log' for more details." >&5
3816
echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
5359
$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
3817
5360
is in your PATH or set the PKG_CONFIG environment variable to the full
3818
5361
path to pkg-config.
3820
Alternatively you may set the XCLOCK_X11_CFLAGS and XCLOCK_X11_LIBS environment variables
3821
to avoid the need to call pkg-config. See the pkg-config man page for
5363
Alternatively, you may set the environment variables XCLOCK_X11_CFLAGS
5364
and XCLOCK_X11_LIBS to avoid the need to call pkg-config.
5365
See the pkg-config man page for more details.
3824
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
5367
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
3825
5368
See \`config.log' for more details." >&2;}
3826
{ (exit 1); exit 1; }; }
5369
{ (exit 1); exit 1; }; }; }
3828
5371
XCLOCK_X11_CFLAGS=$pkg_cv_XCLOCK_X11_CFLAGS
3829
5372
XCLOCK_X11_LIBS=$pkg_cv_XCLOCK_X11_LIBS
3830
{ echo "$as_me:$LINENO: result: yes" >&5
3831
echo "${ECHO_T}yes" >&6; }
5373
{ $as_echo "$as_me:$LINENO: result: yes" >&5
5374
$as_echo "yes" >&6; }
3835
# Check whether --enable-xprint was given.
3836
if test "${enable_xprint+set}" = set; then
3837
enableval=$enable_xprint; use_xprint=$enableval
3842
if test "x$use_xprint" = "xyes"; then
3846
elif test "x$use_xprint" = "xno"; then
3858
{ echo "$as_me:$LINENO: checking for TMP_XAW" >&5
3859
echo $ECHO_N "checking for TMP_XAW... $ECHO_C" >&6; }
3861
if test -n "$PKG_CONFIG"; then
3862
if test -n "$PKG_CONFIG" && \
3863
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$TMP_CHECK1\"") >&5
3864
($PKG_CONFIG --exists --print-errors "$TMP_CHECK1") 2>&5
3866
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867
(exit $ac_status); }; then
3868
pkg_cv_TMP_XAW_CFLAGS=`$PKG_CONFIG --cflags "$TMP_CHECK1" 2>/dev/null`
3875
if test -n "$PKG_CONFIG"; then
3876
if test -n "$PKG_CONFIG" && \
3877
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$TMP_CHECK1\"") >&5
3878
($PKG_CONFIG --exists --print-errors "$TMP_CHECK1") 2>&5
3880
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881
(exit $ac_status); }; then
3882
pkg_cv_TMP_XAW_LIBS=`$PKG_CONFIG --libs "$TMP_CHECK1" 2>/dev/null`
3890
if test $pkg_failed = yes; then
3891
TMP_XAW_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$TMP_CHECK1"`
3892
# Put the nasty error message in config.log where it belongs
3893
echo "$TMP_XAW_PKG_ERRORS" 1>&5
3896
elif test $pkg_failed = untried; then
3899
TMP_XAW_CFLAGS=$pkg_cv_TMP_XAW_CFLAGS
3900
TMP_XAW_LIBS=$pkg_cv_TMP_XAW_LIBS
3901
{ echo "$as_me:$LINENO: result: yes" >&5
3902
echo "${ECHO_T}yes" >&6; }
3905
if [ ! -z $TMP_CHECK2 ] ; then
3906
if test $success = no ; then
3909
{ echo "$as_me:$LINENO: checking for TMP_XAW" >&5
3910
echo $ECHO_N "checking for TMP_XAW... $ECHO_C" >&6; }
3912
if test -n "$PKG_CONFIG"; then
3913
if test -n "$PKG_CONFIG" && \
3914
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$TMP_CHECK2\"") >&5
3915
($PKG_CONFIG --exists --print-errors "$TMP_CHECK2") 2>&5
3917
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918
(exit $ac_status); }; then
3919
pkg_cv_TMP_XAW_CFLAGS=`$PKG_CONFIG --cflags "$TMP_CHECK2" 2>/dev/null`
3926
if test -n "$PKG_CONFIG"; then
3927
if test -n "$PKG_CONFIG" && \
3928
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$TMP_CHECK2\"") >&5
3929
($PKG_CONFIG --exists --print-errors "$TMP_CHECK2") 2>&5
3931
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932
(exit $ac_status); }; then
3933
pkg_cv_TMP_XAW_LIBS=`$PKG_CONFIG --libs "$TMP_CHECK2" 2>/dev/null`
3941
if test $pkg_failed = yes; then
3942
TMP_XAW_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$TMP_CHECK2"`
3943
# Put the nasty error message in config.log where it belongs
3944
echo "$TMP_XAW_PKG_ERRORS" 1>&5
3947
elif test $pkg_failed = untried; then
3950
TMP_XAW_CFLAGS=$pkg_cv_TMP_XAW_CFLAGS
3951
TMP_XAW_LIBS=$pkg_cv_TMP_XAW_LIBS
3952
{ echo "$as_me:$LINENO: result: yes" >&5
3953
echo "${ECHO_T}yes" >&6; }
3960
if test "x$success" = "xyes"; then
3961
XAW_CFLAGS=$TMP_XAW_CFLAGS
3962
XAW_LIBS=$TMP_XAW_LIBS
3964
if test "x$xaw_use_xprint" = "xyes"; then
3965
XAW_USE_XPRINT_TRUE=
3966
XAW_USE_XPRINT_FALSE='#'
3968
XAW_USE_XPRINT_TRUE='#'
3969
XAW_USE_XPRINT_FALSE=
3973
{ { echo "$as_me:$LINENO: error: No suitable version of Xaw found" >&5
3974
echo "$as_me: error: No suitable version of Xaw found" >&2;}
5379
{ $as_echo "$as_me:$LINENO: checking for XAW" >&5
5380
$as_echo_n "checking for XAW... " >&6; }
5382
if test -n "$XAW_CFLAGS"; then
5383
pkg_cv_XAW_CFLAGS="$XAW_CFLAGS"
5384
elif test -n "$PKG_CONFIG"; then
5385
if test -n "$PKG_CONFIG" && \
5386
{ ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xaw7\"") >&5
5387
($PKG_CONFIG --exists --print-errors "xaw7") 2>&5
5389
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390
(exit $ac_status); }; then
5391
pkg_cv_XAW_CFLAGS=`$PKG_CONFIG --cflags "xaw7" 2>/dev/null`
5398
if test -n "$XAW_LIBS"; then
5399
pkg_cv_XAW_LIBS="$XAW_LIBS"
5400
elif test -n "$PKG_CONFIG"; then
5401
if test -n "$PKG_CONFIG" && \
5402
{ ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xaw7\"") >&5
5403
($PKG_CONFIG --exists --print-errors "xaw7") 2>&5
5405
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406
(exit $ac_status); }; then
5407
pkg_cv_XAW_LIBS=`$PKG_CONFIG --libs "xaw7" 2>/dev/null`
5417
if test $pkg_failed = yes; then
5419
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5420
_pkg_short_errors_supported=yes
5422
_pkg_short_errors_supported=no
5424
if test $_pkg_short_errors_supported = yes; then
5425
XAW_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xaw7" 2>&1`
5427
XAW_PKG_ERRORS=`$PKG_CONFIG --print-errors "xaw7" 2>&1`
5429
# Put the nasty error message in config.log where it belongs
5430
echo "$XAW_PKG_ERRORS" >&5
5432
{ { $as_echo "$as_me:$LINENO: error: Package requirements (xaw7) were not met:
5436
Consider adjusting the PKG_CONFIG_PATH environment variable if you
5437
installed software in a non-standard prefix.
5439
Alternatively, you may set the environment variables XAW_CFLAGS
5440
and XAW_LIBS to avoid the need to call pkg-config.
5441
See the pkg-config man page for more details.
5443
$as_echo "$as_me: error: Package requirements (xaw7) were not met:
5447
Consider adjusting the PKG_CONFIG_PATH environment variable if you
5448
installed software in a non-standard prefix.
5450
Alternatively, you may set the environment variables XAW_CFLAGS
5451
and XAW_LIBS to avoid the need to call pkg-config.
5452
See the pkg-config man page for more details.
3975
5454
{ (exit 1); exit 1; }; }
5455
elif test $pkg_failed = untried; then
5456
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5457
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5458
{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
5459
is in your PATH or set the PKG_CONFIG environment variable to the full
5462
Alternatively, you may set the environment variables XAW_CFLAGS
5463
and XAW_LIBS to avoid the need to call pkg-config.
5464
See the pkg-config man page for more details.
5466
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5467
See \`config.log' for more details." >&5
5468
$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
5469
is in your PATH or set the PKG_CONFIG environment variable to the full
5472
Alternatively, you may set the environment variables XAW_CFLAGS
5473
and XAW_LIBS to avoid the need to call pkg-config.
5474
See the pkg-config man page for more details.
5476
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5477
See \`config.log' for more details." >&2;}
5478
{ (exit 1); exit 1; }; }; }
5480
XAW_CFLAGS=$pkg_cv_XAW_CFLAGS
5481
XAW_LIBS=$pkg_cv_XAW_LIBS
5482
{ $as_echo "$as_me:$LINENO: result: yes" >&5
5483
$as_echo "yes" >&6; }
3978
5486
XCLOCK_CFLAGS="$XCLOCK_X11_CFLAGS $XAW_CFLAGS"
3979
5487
XCLOCK_LIBS="$XCLOCK_X11_LIBS $XAW_LIBS"
4276
{ echo "$as_me:$LINENO: checking for APPDEFS" >&5
4277
echo $ECHO_N "checking for APPDEFS... $ECHO_C" >&6; }
5840
{ $as_echo "$as_me:$LINENO: checking for APPDEFS" >&5
5841
$as_echo_n "checking for APPDEFS... " >&6; }
4279
if test -n "$PKG_CONFIG"; then
4280
if test -n "$PKG_CONFIG" && \
4281
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xt\"") >&5
5843
if test -n "$APPDEFS_CFLAGS"; then
5844
pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
5845
elif test -n "$PKG_CONFIG"; then
5846
if test -n "$PKG_CONFIG" && \
5847
{ ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xt\"") >&5
4282
5848
($PKG_CONFIG --exists --print-errors "xt") 2>&5
4284
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285
5851
(exit $ac_status); }; then
4286
5852
pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
4293
if test -n "$PKG_CONFIG"; then
4294
if test -n "$PKG_CONFIG" && \
4295
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xt\"") >&5
5859
if test -n "$APPDEFS_LIBS"; then
5860
pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
5861
elif test -n "$PKG_CONFIG"; then
5862
if test -n "$PKG_CONFIG" && \
5863
{ ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xt\"") >&5
4296
5864
($PKG_CONFIG --exists --print-errors "xt") 2>&5
4298
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299
5867
(exit $ac_status); }; then
4300
5868
pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
4308
5878
if test $pkg_failed = yes; then
4309
APPDEFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xt"`
5880
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5881
_pkg_short_errors_supported=yes
5883
_pkg_short_errors_supported=no
5885
if test $_pkg_short_errors_supported = yes; then
5886
APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xt" 2>&1`
5888
APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xt" 2>&1`
4310
5890
# Put the nasty error message in config.log where it belongs
4311
echo "$APPDEFS_PKG_ERRORS" 1>&5
4313
{ { echo "$as_me:$LINENO: error: Package requirements (xt) were not met.
4314
Consider adjusting the PKG_CONFIG_PATH environment variable if you
4315
installed software in a non-standard prefix.
4317
Alternatively you may set the APPDEFS_CFLAGS and APPDEFS_LIBS environment variables
4318
to avoid the need to call pkg-config. See the pkg-config man page for
4320
echo "$as_me: error: Package requirements (xt) were not met.
4321
Consider adjusting the PKG_CONFIG_PATH environment variable if you
4322
installed software in a non-standard prefix.
4324
Alternatively you may set the APPDEFS_CFLAGS and APPDEFS_LIBS environment variables
4325
to avoid the need to call pkg-config. See the pkg-config man page for
4326
more details." >&2;}
5891
echo "$APPDEFS_PKG_ERRORS" >&5
5893
{ { $as_echo "$as_me:$LINENO: error: Package requirements (xt) were not met:
5897
Consider adjusting the PKG_CONFIG_PATH environment variable if you
5898
installed software in a non-standard prefix.
5900
Alternatively, you may set the environment variables APPDEFS_CFLAGS
5901
and APPDEFS_LIBS to avoid the need to call pkg-config.
5902
See the pkg-config man page for more details.
5904
$as_echo "$as_me: error: Package requirements (xt) were not met:
5908
Consider adjusting the PKG_CONFIG_PATH environment variable if you
5909
installed software in a non-standard prefix.
5911
Alternatively, you may set the environment variables APPDEFS_CFLAGS
5912
and APPDEFS_LIBS to avoid the need to call pkg-config.
5913
See the pkg-config man page for more details.
4327
5915
{ (exit 1); exit 1; }; }
4328
5916
elif test $pkg_failed = untried; then
4329
{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
5917
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5918
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5919
{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
4330
5920
is in your PATH or set the PKG_CONFIG environment variable to the full
4331
5921
path to pkg-config.
4333
Alternatively you may set the APPDEFS_CFLAGS and APPDEFS_LIBS environment variables
4334
to avoid the need to call pkg-config. See the pkg-config man page for
5923
Alternatively, you may set the environment variables APPDEFS_CFLAGS
5924
and APPDEFS_LIBS to avoid the need to call pkg-config.
5925
See the pkg-config man page for more details.
4337
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
5927
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
4338
5928
See \`config.log' for more details." >&5
4339
echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
5929
$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
4340
5930
is in your PATH or set the PKG_CONFIG environment variable to the full
4341
5931
path to pkg-config.
4343
Alternatively you may set the APPDEFS_CFLAGS and APPDEFS_LIBS environment variables
4344
to avoid the need to call pkg-config. See the pkg-config man page for
5933
Alternatively, you may set the environment variables APPDEFS_CFLAGS
5934
and APPDEFS_LIBS to avoid the need to call pkg-config.
5935
See the pkg-config man page for more details.
4347
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
5937
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
4348
5938
See \`config.log' for more details." >&2;}
4349
{ (exit 1); exit 1; }; }
5939
{ (exit 1); exit 1; }; }; }
4351
5941
APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
4352
5942
APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
4353
{ echo "$as_me:$LINENO: result: yes" >&5
4354
echo "${ECHO_T}yes" >&6; }
5943
{ $as_echo "$as_me:$LINENO: result: yes" >&5
5944
$as_echo "yes" >&6; }
4357
appdefaultdir=$(pkg-config --variable=appdefaultdir xt)
4360
# Make sure we can run config.sub.
4361
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4362
{ { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4363
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4364
{ (exit 1); exit 1; }; }
4366
{ echo "$as_me:$LINENO: checking build system type" >&5
4367
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4368
if test "${ac_cv_build+set}" = set; then
4369
echo $ECHO_N "(cached) $ECHO_C" >&6
4371
ac_build_alias=$build_alias
4372
test "x$ac_build_alias" = x &&
4373
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4374
test "x$ac_build_alias" = x &&
4375
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4376
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4377
{ (exit 1); exit 1; }; }
4378
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4379
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4380
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4381
{ (exit 1); exit 1; }; }
4384
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4385
echo "${ECHO_T}$ac_cv_build" >&6; }
4386
case $ac_cv_build in
4388
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4389
echo "$as_me: error: invalid value of canonical build" >&2;}
4390
{ (exit 1); exit 1; }; };;
4393
ac_save_IFS=$IFS; IFS='-'
4399
# Remember, the first character of IFS is used to create $*,
4400
# except with old shells:
4403
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4406
{ echo "$as_me:$LINENO: checking host system type" >&5
4407
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4408
if test "${ac_cv_host+set}" = set; then
4409
echo $ECHO_N "(cached) $ECHO_C" >&6
4411
if test "x$host_alias" = x; then
4412
ac_cv_host=$ac_cv_build
4414
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4415
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4416
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4417
{ (exit 1); exit 1; }; }
4421
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4422
echo "${ECHO_T}$ac_cv_host" >&6; }
4425
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4426
echo "$as_me: error: invalid value of canonical host" >&2;}
4427
{ (exit 1); exit 1; }; };;
4430
ac_save_IFS=$IFS; IFS='-'
4436
# Remember, the first character of IFS is used to create $*,
4437
# except with old shells:
4440
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4446
if test x$APP_MAN_SUFFIX = x ; then
4449
if test x$APP_MAN_DIR = x ; then
4450
APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4453
if test x$LIB_MAN_SUFFIX = x ; then
4456
if test x$LIB_MAN_DIR = x ; then
4457
LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4460
if test x$FILE_MAN_SUFFIX = x ; then
4462
solaris*) FILE_MAN_SUFFIX=4 ;;
4463
*) FILE_MAN_SUFFIX=5 ;;
4466
if test x$FILE_MAN_DIR = x ; then
4467
FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
4470
if test x$MISC_MAN_SUFFIX = x ; then
4472
solaris*) MISC_MAN_SUFFIX=5 ;;
4473
*) MISC_MAN_SUFFIX=7 ;;
4476
if test x$MISC_MAN_DIR = x ; then
4477
MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
4480
if test x$DRIVER_MAN_SUFFIX = x ; then
4482
solaris*) DRIVER_MAN_SUFFIX=7 ;;
4483
*) DRIVER_MAN_SUFFIX=4 ;;
4486
if test x$DRIVER_MAN_DIR = x ; then
4487
DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4490
if test x$ADMIN_MAN_SUFFIX = x ; then
4492
solaris*) ADMIN_MAN_SUFFIX=1m ;;
4493
*) ADMIN_MAN_SUFFIX=8 ;;
4496
if test x$ADMIN_MAN_DIR = x ; then
4497
ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
4516
# Check whether --with-release-version was given.
4517
if test "${with_release_version+set}" = set; then
4518
withval=$with_release_version; RELEASE_VERSION="$withval"
4523
if test "x$RELEASE_VERSION" != "x"; then
4524
PACKAGE="$PACKAGE-$RELEASE_VERSION"
4525
PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
4526
{ echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
4527
echo "$as_me: Building with package name set to $PACKAGE" >&6;}
4530
cat >>confdefs.h <<_ACEOF
4531
#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4534
PVM=`echo $PACKAGE_VERSION | cut -d . -f 2`
4535
if test "x$PVM" = "x"; then
4539
cat >>confdefs.h <<_ACEOF
4540
#define PACKAGE_VERSION_MINOR $PVM
4543
PVP=`echo $PACKAGE_VERSION | cut -d . -f 3`
4544
if test "x$PVP" = "x"; then
4548
cat >>confdefs.h <<_ACEOF
4549
#define PACKAGE_VERSION_PATCHLEVEL $PVP
5947
xt_appdefaultdir=$(pkg-config --variable=appdefaultdir xt)
5949
# Check whether --with-appdefaultdir was given.
5950
if test "${with_appdefaultdir+set}" = set; then
5951
withval=$with_appdefaultdir; appdefaultdir="$withval"
5953
appdefaultdir="${xt_appdefaultdir}"
5190
6637
(umask 077 && mkdir "$tmp")
5193
echo "$me: cannot create a temporary directory in ." >&2
6640
$as_echo "$as_me: cannot create a temporary directory in ." >&2
5194
6641
{ (exit 1); exit 1; }
5198
# Set up the sed scripts for CONFIG_FILES section.
5201
# No need to generate the scripts if there are no CONFIG_FILES.
5202
# This happens for instance when ./config.status config.h
6644
# Set up the scripts for CONFIG_FILES section.
6645
# No need to generate them if there are no CONFIG_FILES.
6646
# This happens for instance with `./config.status config.h'.
5203
6647
if test -n "$CONFIG_FILES"; then
5210
for ac_last_try in false false false false false :; do
5211
cat >conf$$subs.sed <<_ACEOF
5212
SHELL!$SHELL$ac_delim
5213
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
5214
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
5215
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
5216
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
5217
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
5218
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
5219
exec_prefix!$exec_prefix$ac_delim
5220
prefix!$prefix$ac_delim
5221
program_transform_name!$program_transform_name$ac_delim
5222
bindir!$bindir$ac_delim
5223
sbindir!$sbindir$ac_delim
5224
libexecdir!$libexecdir$ac_delim
5225
datarootdir!$datarootdir$ac_delim
5226
datadir!$datadir$ac_delim
5227
sysconfdir!$sysconfdir$ac_delim
5228
sharedstatedir!$sharedstatedir$ac_delim
5229
localstatedir!$localstatedir$ac_delim
5230
includedir!$includedir$ac_delim
5231
oldincludedir!$oldincludedir$ac_delim
5232
docdir!$docdir$ac_delim
5233
infodir!$infodir$ac_delim
5234
htmldir!$htmldir$ac_delim
5235
dvidir!$dvidir$ac_delim
5236
pdfdir!$pdfdir$ac_delim
5237
psdir!$psdir$ac_delim
5238
libdir!$libdir$ac_delim
5239
localedir!$localedir$ac_delim
5240
mandir!$mandir$ac_delim
5242
ECHO_C!$ECHO_C$ac_delim
5243
ECHO_N!$ECHO_N$ac_delim
5244
ECHO_T!$ECHO_T$ac_delim
5246
build_alias!$build_alias$ac_delim
5247
host_alias!$host_alias$ac_delim
5248
target_alias!$target_alias$ac_delim
5249
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
5250
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
5251
INSTALL_DATA!$INSTALL_DATA$ac_delim
5252
am__isrc!$am__isrc$ac_delim
5253
CYGPATH_W!$CYGPATH_W$ac_delim
5254
PACKAGE!$PACKAGE$ac_delim
5255
VERSION!$VERSION$ac_delim
5256
ACLOCAL!$ACLOCAL$ac_delim
5257
AUTOCONF!$AUTOCONF$ac_delim
5258
AUTOMAKE!$AUTOMAKE$ac_delim
5259
AUTOHEADER!$AUTOHEADER$ac_delim
5260
MAKEINFO!$MAKEINFO$ac_delim
5261
install_sh!$install_sh$ac_delim
5262
STRIP!$STRIP$ac_delim
5263
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
5264
mkdir_p!$mkdir_p$ac_delim
5266
SET_MAKE!$SET_MAKE$ac_delim
5267
am__leading_dot!$am__leading_dot$ac_delim
5268
AMTAR!$AMTAR$ac_delim
5269
am__tar!$am__tar$ac_delim
5270
am__untar!$am__untar$ac_delim
5271
MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
5272
MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
5273
MAINT!$MAINT$ac_delim
5275
CFLAGS!$CFLAGS$ac_delim
5276
LDFLAGS!$LDFLAGS$ac_delim
5277
CPPFLAGS!$CPPFLAGS$ac_delim
5278
ac_ct_CC!$ac_ct_CC$ac_delim
5279
EXEEXT!$EXEEXT$ac_delim
5280
OBJEXT!$OBJEXT$ac_delim
5281
DEPDIR!$DEPDIR$ac_delim
5282
am__include!$am__include$ac_delim
5283
am__quote!$am__quote$ac_delim
5284
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
5285
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
5286
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
5287
CCDEPMODE!$CCDEPMODE$ac_delim
5288
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
5289
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
5290
PKG_CONFIG!$PKG_CONFIG$ac_delim
5291
XCLOCK_X11_CFLAGS!$XCLOCK_X11_CFLAGS$ac_delim
5292
XCLOCK_X11_LIBS!$XCLOCK_X11_LIBS$ac_delim
5293
TMP_XAW_CFLAGS!$TMP_XAW_CFLAGS$ac_delim
5294
TMP_XAW_LIBS!$TMP_XAW_LIBS$ac_delim
5295
XAW_USE_XPRINT_TRUE!$XAW_USE_XPRINT_TRUE$ac_delim
5296
XAW_USE_XPRINT_FALSE!$XAW_USE_XPRINT_FALSE$ac_delim
5297
XFT_CFLAGS!$XFT_CFLAGS$ac_delim
5298
XFT_LIBS!$XFT_LIBS$ac_delim
5299
XKB_CFLAGS!$XKB_CFLAGS$ac_delim
5300
XKB_LIBS!$XKB_LIBS$ac_delim
5301
XCLOCK_CFLAGS!$XCLOCK_CFLAGS$ac_delim
5302
XCLOCK_LIBS!$XCLOCK_LIBS$ac_delim
5303
APPDEFS_CFLAGS!$APPDEFS_CFLAGS$ac_delim
5304
APPDEFS_LIBS!$APPDEFS_LIBS$ac_delim
5305
appdefaultdir!$appdefaultdir$ac_delim
5306
build!$build$ac_delim
5307
build_cpu!$build_cpu$ac_delim
5308
build_vendor!$build_vendor$ac_delim
5311
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
5313
elif $ac_last_try; then
5314
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5315
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
5316
{ (exit 1); exit 1; }; }
5318
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5322
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
5323
if test -n "$ac_eof"; then
5324
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
5325
ac_eof=`expr $ac_eof + 1`
5328
cat >>$CONFIG_STATUS <<_ACEOF
5329
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
5330
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5333
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
5334
s/^/s,@/; s/!/@,|#_!!_#|/
5337
s/'"$ac_delim"'$/,g/; t
5339
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
5340
' >>$CONFIG_STATUS <conf$$subs.sed
5341
rm -f conf$$subs.sed
5342
cat >>$CONFIG_STATUS <<_ACEOF
5348
for ac_last_try in false false false false false :; do
5349
cat >conf$$subs.sed <<_ACEOF
5350
build_os!$build_os$ac_delim
5352
host_cpu!$host_cpu$ac_delim
5353
host_vendor!$host_vendor$ac_delim
5354
host_os!$host_os$ac_delim
5355
APP_MAN_SUFFIX!$APP_MAN_SUFFIX$ac_delim
5356
LIB_MAN_SUFFIX!$LIB_MAN_SUFFIX$ac_delim
5357
FILE_MAN_SUFFIX!$FILE_MAN_SUFFIX$ac_delim
5358
MISC_MAN_SUFFIX!$MISC_MAN_SUFFIX$ac_delim
5359
DRIVER_MAN_SUFFIX!$DRIVER_MAN_SUFFIX$ac_delim
5360
ADMIN_MAN_SUFFIX!$ADMIN_MAN_SUFFIX$ac_delim
5361
APP_MAN_DIR!$APP_MAN_DIR$ac_delim
5362
LIB_MAN_DIR!$LIB_MAN_DIR$ac_delim
5363
FILE_MAN_DIR!$FILE_MAN_DIR$ac_delim
5364
MISC_MAN_DIR!$MISC_MAN_DIR$ac_delim
5365
DRIVER_MAN_DIR!$DRIVER_MAN_DIR$ac_delim
5366
ADMIN_MAN_DIR!$ADMIN_MAN_DIR$ac_delim
5367
LIBOBJS!$LIBOBJS$ac_delim
5368
LTLIBOBJS!$LTLIBOBJS$ac_delim
5371
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then
5373
elif $ac_last_try; then
5374
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5375
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
5376
{ (exit 1); exit 1; }; }
5378
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5382
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
5383
if test -n "$ac_eof"; then
5384
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
5385
ac_eof=`expr $ac_eof + 1`
5388
cat >>$CONFIG_STATUS <<_ACEOF
5389
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
5390
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
5393
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
5394
s/^/s,@/; s/!/@,|#_!!_#|/
5397
s/'"$ac_delim"'$/,g/; t
5399
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
5400
' >>$CONFIG_STATUS <conf$$subs.sed
5401
rm -f conf$$subs.sed
5402
cat >>$CONFIG_STATUS <<_ACEOF
6651
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6652
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6658
echo 'BEGIN {' >"$tmp/subs1.awk" &&
6663
echo "cat >conf$$subs.awk <<_ACEOF" &&
6664
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6667
{ { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6668
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6669
{ (exit 1); exit 1; }; }
6670
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6672
for ac_last_try in false false false false false :; do
6673
. ./conf$$subs.sh ||
6674
{ { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6675
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6676
{ (exit 1); exit 1; }; }
6678
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6679
if test $ac_delim_n = $ac_delim_num; then
6681
elif $ac_last_try; then
6682
{ { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6683
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6684
{ (exit 1); exit 1; }; }
6686
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6691
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6692
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
6696
s/^/S["/; s/!.*/"]=/
6706
s/\(.\{148\}\).*/\1/
6708
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6713
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6720
s/\(.\{148\}\).*/\1/
6722
s/["\\]/\\&/g; s/^/"/; s/$/"/
6726
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6731
' <conf$$subs.awk | sed '
6736
' >>$CONFIG_STATUS || ac_write_fail=1
6737
rm -f conf$$subs.awk
6738
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6740
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
6741
for (key in S) S_is_set[key] = 1
6747
nfields = split(line, field, "@")
6749
len = length(field[1])
6750
for (i = 2; i < nfields; i++) {
6752
keylen = length(key)
6753
if (S_is_set[key]) {
6755
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6756
len += length(value) + length(field[++i])
6767
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6768
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6769
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6772
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6773
|| { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
6774
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
6775
{ (exit 1); exit 1; }; }
5409
6778
# VPATH may cause trouble with some makes, so we remove $(srcdir),
5410
6779
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5655
7153
s&@INSTALL@&$ac_INSTALL&;t t
5656
7154
s&@MKDIR_P@&$ac_MKDIR_P&;t t
5657
7155
$ac_datarootdir_hack
5658
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
7157
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
7158
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
7159
$as_echo "$as_me: error: could not create $ac_file" >&2;}
7160
{ (exit 1); exit 1; }; }
5660
7162
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5661
7163
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
5662
7164
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
5663
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7165
{ $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5664
7166
which seems to be undefined. Please make sure it is defined." >&5
5665
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7167
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5666
7168
which seems to be undefined. Please make sure it is defined." >&2;}
5668
7170
rm -f "$tmp/stdin"
5669
7171
case $ac_file in
5670
-) cat "$tmp/out"; rm -f "$tmp/out";;
5671
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
7172
-) cat "$tmp/out" && rm -f "$tmp/out";;
7173
*) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7175
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
7176
$as_echo "$as_me: error: could not create $ac_file" >&2;}
7177
{ (exit 1); exit 1; }; }
5676
7181
# CONFIG_HEADER
5680
# Transform confdefs.h into a sed script `conftest.defines', that
5681
# substitutes the proper values into config.h.in to produce config.h.
5682
rm -f conftest.defines conftest.tail
5683
# First, append a space to every undef/define line, to ease matching.
5684
echo 's/$/ /' >conftest.defines
5685
# Then, protect against being on the right side of a sed subst, or in
5686
# an unquoted here document, in config.status. If some macros were
5687
# called several times there might be several #defines for the same
5688
# symbol, which is useless. But do not sort them, since the last
5689
# AC_DEFINE must be honored.
5690
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5691
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
5692
# NAME is the cpp macro being defined, VALUE is the value it is being given.
5693
# PARAMS is the parameter list in the macro definition--in most cases, it's
5694
# just an empty string.
5695
ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
5696
ac_dB='\\)[ (].*,\\1define\\2'
5704
s/^[ ]*#[ ]*define[ ][ ]*//
5709
s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
5710
s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
5711
' >>conftest.defines
5713
# Remove the space that was appended to ease matching.
5714
# Then replace #undef with comments. This is necessary, for
5715
# example, in the case of _POSIX_SOURCE, which is predefined and required
5716
# on some systems where configure will not decide to define it.
5717
# (The regexp can be short, since the line contains either #define or #undef.)
5719
s,^[ #]*u.*,/* & */,' >>conftest.defines
5721
# Break up conftest.defines:
5724
# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
5725
# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
5726
# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
5728
ac_in='$ac_file_inputs'
5729
ac_out='"$tmp/out1"'
5730
ac_nxt='"$tmp/out2"'
5734
# Write a here document:
5735
cat >>$CONFIG_STATUS <<_ACEOF
5736
# First, check the format of the line:
5737
cat >"\$tmp/defines.sed" <<\\CEOF
5738
/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
5739
/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
5743
sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
5745
sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
5746
ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
5747
sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
5748
grep . conftest.tail >/dev/null || break
5749
rm -f conftest.defines
5750
mv conftest.tail conftest.defines
5752
rm -f conftest.defines conftest.tail
5754
echo "ac_result=$ac_in" >>$CONFIG_STATUS
5755
cat >>$CONFIG_STATUS <<\_ACEOF
5756
7183
if test x"$ac_file" != x-; then
5757
echo "/* $configure_input */" >"$tmp/config.h"
5758
cat "$ac_result" >>"$tmp/config.h"
5759
if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
5760
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5761
echo "$as_me: $ac_file is unchanged" >&6;}
7185
$as_echo "/* $configure_input */" \
7186
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7187
} >"$tmp/config.h" \
7188
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
7189
$as_echo "$as_me: error: could not create $ac_file" >&2;}
7190
{ (exit 1); exit 1; }; }
7191
if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7192
{ $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7193
$as_echo "$as_me: $ac_file is unchanged" >&6;}
5764
mv "$tmp/config.h" $ac_file
7196
mv "$tmp/config.h" "$ac_file" \
7197
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
7198
$as_echo "$as_me: error: could not create $ac_file" >&2;}
7199
{ (exit 1); exit 1; }; }
5767
echo "/* $configure_input */"
7202
$as_echo "/* $configure_input */" \
7203
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7204
|| { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
7205
$as_echo "$as_me: error: could not create -" >&2;}
7206
{ (exit 1); exit 1; }; }
5771
# Compute $ac_file's index in $config_headers.
7208
# Compute "$ac_file"'s index in $config_headers.
5772
7210
_am_stamp_count=1
5773
7211
for _am_header in $config_headers :; do
5774
7212
case $_am_header in
5775
$ac_file | $ac_file:* )
7213
$_am_arg | $_am_arg:* )
5778
7216
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
5781
echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
5782
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5783
X$ac_file : 'X\(//\)[^/]' \| \
5784
X$ac_file : 'X\(//\)$' \| \
5785
X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
7219
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
7220
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7221
X"$_am_arg" : 'X\(//\)[^/]' \| \
7222
X"$_am_arg" : 'X\(//\)$' \| \
7223
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
7224
$as_echo X"$_am_arg" |
5787
7225
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{