1488
1496
} # ac_fn_c_try_cpp
1490
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1491
# -------------------------------------------------------
1492
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1493
# the include files in INCLUDES and setting the cache variable VAR
1495
ac_fn_c_check_header_mongrel ()
1497
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1498
if eval \${$3+:} false; then :
1499
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1500
$as_echo_n "checking for $2... " >&6; }
1501
if eval \${$3+:} false; then :
1502
$as_echo_n "(cached) " >&6
1505
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1506
$as_echo "$ac_res" >&6; }
1508
# Is the header compilable?
1509
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1510
$as_echo_n "checking $2 usability... " >&6; }
1511
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1512
/* end confdefs.h. */
1516
if ac_fn_c_try_compile "$LINENO"; then :
1517
ac_header_compiler=yes
1519
ac_header_compiler=no
1521
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1522
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1523
$as_echo "$ac_header_compiler" >&6; }
1525
# Is the header present?
1526
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1527
$as_echo_n "checking $2 presence... " >&6; }
1528
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1529
/* end confdefs.h. */
1532
if ac_fn_c_try_cpp "$LINENO"; then :
1533
ac_header_preproc=yes
1535
ac_header_preproc=no
1537
rm -f conftest.err conftest.i conftest.$ac_ext
1538
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1539
$as_echo "$ac_header_preproc" >&6; }
1541
# So? What about this header?
1542
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1544
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1545
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1546
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1547
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1550
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1551
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1552
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1553
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1554
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1555
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1556
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1557
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1558
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1559
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1560
( $as_echo "## ---------------------------------- ##
1561
## Report this to bug-gnustep@gnu.org ##
1562
## ---------------------------------- ##"
1563
) | sed "s/^/$as_me: WARNING: /" >&2
1566
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1567
$as_echo_n "checking for $2... " >&6; }
1568
if eval \${$3+:} false; then :
1569
$as_echo_n "(cached) " >&6
1571
eval "$3=\$ac_header_compiler"
1574
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1575
$as_echo "$ac_res" >&6; }
1577
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1579
} # ac_fn_c_check_header_mongrel
1498
# ac_fn_objc_try_compile LINENO
1499
# -----------------------------
1500
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1501
ac_fn_objc_try_compile ()
1503
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1504
rm -f conftest.$ac_objext
1505
if { { ac_try="$ac_compile"
1507
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1508
*) ac_try_echo=$ac_try;;
1510
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1511
$as_echo "$ac_try_echo"; } >&5
1512
(eval "$ac_compile") 2>conftest.err
1514
if test -s conftest.err; then
1515
grep -v '^ *+' conftest.err >conftest.er1
1516
cat conftest.er1 >&5
1517
mv -f conftest.er1 conftest.err
1519
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1520
test $ac_status = 0; } && {
1521
test -z "$ac_objc_werror_flag" ||
1522
test ! -s conftest.err
1523
} && test -s conftest.$ac_objext; then :
1526
$as_echo "$as_me: failed program was:" >&5
1527
sed 's/^/| /' conftest.$ac_ext >&5
1531
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1532
as_fn_set_status $ac_retval
1534
} # ac_fn_objc_try_compile
1536
# ac_fn_objc_try_cpp LINENO
1537
# -------------------------
1538
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1539
ac_fn_objc_try_cpp ()
1541
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1542
if { { ac_try="$ac_cpp conftest.$ac_ext"
1544
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1545
*) ac_try_echo=$ac_try;;
1547
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1548
$as_echo "$ac_try_echo"; } >&5
1549
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1551
if test -s conftest.err; then
1552
grep -v '^ *+' conftest.err >conftest.er1
1553
cat conftest.er1 >&5
1554
mv -f conftest.er1 conftest.err
1556
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1557
test $ac_status = 0; } > conftest.i && {
1558
test -z "$ac_objc_preproc_warn_flag$ac_objc_werror_flag" ||
1559
test ! -s conftest.err
1563
$as_echo "$as_me: failed program was:" >&5
1564
sed 's/^/| /' conftest.$ac_ext >&5
1568
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1569
as_fn_set_status $ac_retval
1571
} # ac_fn_objc_try_cpp
1581
1573
# ac_fn_c_try_run LINENO
1582
1574
# ----------------------
1835
1827
} # ac_fn_c_compute_int
1837
# ac_fn_c_try_link LINENO
1838
# -----------------------
1839
# Try to link conftest.$ac_ext, and return whether this succeeded.
1829
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1830
# -------------------------------------------------------
1831
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1832
# the include files in INCLUDES and setting the cache variable VAR
1834
ac_fn_c_check_header_mongrel ()
1842
1836
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843
rm -f conftest.$ac_objext conftest$ac_exeext
1844
if { { ac_try="$ac_link"
1846
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847
*) ac_try_echo=$ac_try;;
1837
if eval \${$3+:} false; then :
1838
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1839
$as_echo_n "checking for $2... " >&6; }
1840
if eval \${$3+:} false; then :
1841
$as_echo_n "(cached) " >&6
1844
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1845
$as_echo "$ac_res" >&6; }
1847
# Is the header compilable?
1848
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1849
$as_echo_n "checking $2 usability... " >&6; }
1850
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1851
/* end confdefs.h. */
1855
if ac_fn_c_try_compile "$LINENO"; then :
1856
ac_header_compiler=yes
1858
ac_header_compiler=no
1860
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1861
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1862
$as_echo "$ac_header_compiler" >&6; }
1864
# Is the header present?
1865
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1866
$as_echo_n "checking $2 presence... " >&6; }
1867
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868
/* end confdefs.h. */
1871
if ac_fn_c_try_cpp "$LINENO"; then :
1872
ac_header_preproc=yes
1874
ac_header_preproc=no
1876
rm -f conftest.err conftest.i conftest.$ac_ext
1877
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1878
$as_echo "$ac_header_preproc" >&6; }
1880
# So? What about this header?
1881
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1883
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1884
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1885
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1886
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1889
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1890
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1891
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1892
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1893
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1894
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1895
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1896
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1897
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1898
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1899
( $as_echo "## ---------------------------------- ##
1900
## Report this to bug-gnustep@gnu.org ##
1901
## ---------------------------------- ##"
1902
) | sed "s/^/$as_me: WARNING: /" >&2
1849
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850
$as_echo "$ac_try_echo"; } >&5
1851
(eval "$ac_link") 2>conftest.err
1853
if test -s conftest.err; then
1854
grep -v '^ *+' conftest.err >conftest.er1
1855
cat conftest.er1 >&5
1856
mv -f conftest.er1 conftest.err
1858
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859
test $ac_status = 0; } && {
1860
test -z "$ac_c_werror_flag" ||
1861
test ! -s conftest.err
1862
} && test -s conftest$ac_exeext && {
1863
test "$cross_compiling" = yes ||
1864
test -x conftest$ac_exeext
1905
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1906
$as_echo_n "checking for $2... " >&6; }
1907
if eval \${$3+:} false; then :
1908
$as_echo_n "(cached) " >&6
1868
$as_echo "$as_me: failed program was:" >&5
1869
sed 's/^/| /' conftest.$ac_ext >&5
1873
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1874
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1875
# interfere with the next link command; also delete a directory that is
1876
# left behind by Apple's compiler. We do this before executing the actions.
1877
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1910
eval "$3=\$ac_header_compiler"
1913
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1914
$as_echo "$ac_res" >&6; }
1878
1916
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879
as_fn_set_status $ac_retval
1881
} # ac_fn_c_try_link
1918
} # ac_fn_c_check_header_mongrel
1882
1919
cat >config.log <<_ACEOF
1883
1920
This file contains any messages produced by compilers while
1884
1921
running configure, to aid debugging if configure makes a mistake.
3180
3199
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3181
3200
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3203
ac_cpp='$OBJCPP $CPPFLAGS'
3204
ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3205
ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3206
ac_compiler_gnu=$ac_cv_objc_compiler_gnu
3207
if test -n "$ac_tool_prefix"; then
3208
for ac_prog in gcc objcc objc cc CC
3210
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3211
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3212
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3213
$as_echo_n "checking for $ac_word... " >&6; }
3214
if ${ac_cv_prog_OBJC+:} false; then :
3215
$as_echo_n "(cached) " >&6
3217
if test -n "$OBJC"; then
3218
ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
3220
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224
test -z "$as_dir" && as_dir=.
3225
for ac_exec_ext in '' $ac_executable_extensions; do
3226
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3227
ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
3228
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3237
OBJC=$ac_cv_prog_OBJC
3238
if test -n "$OBJC"; then
3239
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5
3240
$as_echo "$OBJC" >&6; }
3242
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3243
$as_echo "no" >&6; }
3247
test -n "$OBJC" && break
3250
if test -z "$OBJC"; then
3252
for ac_prog in gcc objcc objc cc CC
3254
# Extract the first word of "$ac_prog", so it can be a program name with args.
3255
set dummy $ac_prog; ac_word=$2
3256
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3257
$as_echo_n "checking for $ac_word... " >&6; }
3258
if ${ac_cv_prog_ac_ct_OBJC+:} false; then :
3259
$as_echo_n "(cached) " >&6
3261
if test -n "$ac_ct_OBJC"; then
3262
ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
3264
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268
test -z "$as_dir" && as_dir=.
3269
for ac_exec_ext in '' $ac_executable_extensions; do
3270
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3271
ac_cv_prog_ac_ct_OBJC="$ac_prog"
3272
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3281
ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
3282
if test -n "$ac_ct_OBJC"; then
3283
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5
3284
$as_echo "$ac_ct_OBJC" >&6; }
3286
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287
$as_echo "no" >&6; }
3291
test -n "$ac_ct_OBJC" && break
3294
if test "x$ac_ct_OBJC" = x; then
3297
case $cross_compiling:$ac_tool_warned in
3299
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3300
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3301
ac_tool_warned=yes ;;
3307
# Provide some information about the compiler.
3308
$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5
3311
for ac_option in --version -v -V -qversion; do
3312
{ { ac_try="$ac_compiler $ac_option >&5"
3314
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315
*) ac_try_echo=$ac_try;;
3317
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3318
$as_echo "$ac_try_echo"; } >&5
3319
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
3321
if test -s conftest.err; then
3323
... rest of stderr output deleted ...
3324
10q' conftest.err >conftest.er1
3325
cat conftest.er1 >&5
3327
rm -f conftest.er1 conftest.err
3328
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3329
test $ac_status = 0; }
3332
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5
3333
$as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
3334
if ${ac_cv_objc_compiler_gnu+:} false; then :
3335
$as_echo_n "(cached) " >&6
3337
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3338
/* end confdefs.h. */
3351
if ac_fn_objc_try_compile "$LINENO"; then :
3356
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3357
ac_cv_objc_compiler_gnu=$ac_compiler_gnu
3360
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5
3361
$as_echo "$ac_cv_objc_compiler_gnu" >&6; }
3362
if test $ac_compiler_gnu = yes; then
3367
ac_test_OBJCFLAGS=${OBJCFLAGS+set}
3368
ac_save_OBJCFLAGS=$OBJCFLAGS
3369
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5
3370
$as_echo_n "checking whether $OBJC accepts -g... " >&6; }
3371
if ${ac_cv_prog_objc_g+:} false; then :
3372
$as_echo_n "(cached) " >&6
3374
ac_save_objc_werror_flag=$ac_objc_werror_flag
3375
ac_objc_werror_flag=yes
3376
ac_cv_prog_objc_g=no
3378
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3379
/* end confdefs.h. */
3389
if ac_fn_objc_try_compile "$LINENO"; then :
3390
ac_cv_prog_objc_g=yes
3393
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3394
/* end confdefs.h. */
3404
if ac_fn_objc_try_compile "$LINENO"; then :
3407
ac_objc_werror_flag=$ac_save_objc_werror_flag
3409
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3410
/* end confdefs.h. */
3420
if ac_fn_objc_try_compile "$LINENO"; then :
3421
ac_cv_prog_objc_g=yes
3423
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3425
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3427
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3428
ac_objc_werror_flag=$ac_save_objc_werror_flag
3430
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5
3431
$as_echo "$ac_cv_prog_objc_g" >&6; }
3432
if test "$ac_test_OBJCFLAGS" = set; then
3433
OBJCFLAGS=$ac_save_OBJCFLAGS
3434
elif test $ac_cv_prog_objc_g = yes; then
3435
if test "$GOBJC" = yes; then
3441
if test "$GOBJC" = yes; then
3448
ac_cpp='$CPP $CPPFLAGS'
3449
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3450
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3451
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3454
ac_cpp='$OBJCPP $CPPFLAGS'
3455
ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3456
ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3457
ac_compiler_gnu=$ac_cv_objc_compiler_gnu
3458
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the Objective C preprocessor" >&5
3459
$as_echo_n "checking how to run the Objective C preprocessor... " >&6; }
3460
if test -z "$OBJCPP"; then
3461
if ${ac_cv_prog_OBJCPP+:} false; then :
3462
$as_echo_n "(cached) " >&6
3464
# Double quotes because OBJCPP needs to be expanded
3465
for OBJCPP in "$OBJC -E" "/lib/cpp"
3468
for ac_objc_preproc_warn_flag in '' yes
3470
# Use a header file that comes with gcc, so configuring glibc
3471
# with a fresh cross-compiler works.
3472
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3473
# <limits.h> exists even on freestanding compilers.
3474
# On the NeXT, cc -E runs the code through the compiler's parser,
3475
# not just through cpp. "Syntax error" is here to catch this case.
3476
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3477
/* end confdefs.h. */
3479
# include <limits.h>
3481
# include <assert.h>
3485
if ac_fn_objc_try_cpp "$LINENO"; then :
3488
# Broken: fails on valid input.
3491
rm -f conftest.err conftest.i conftest.$ac_ext
3493
# OK, works on sane cases. Now check whether nonexistent headers
3494
# can be detected and how.
3495
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3496
/* end confdefs.h. */
3497
#include <ac_nonexistent.h>
3499
if ac_fn_objc_try_cpp "$LINENO"; then :
3500
# Broken: success on invalid input.
3503
# Passes both tests.
3507
rm -f conftest.err conftest.i conftest.$ac_ext
3510
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3511
rm -f conftest.i conftest.err conftest.$ac_ext
3512
if $ac_preproc_ok; then :
3517
ac_cv_prog_OBJCPP=$OBJCPP
3520
OBJCPP=$ac_cv_prog_OBJCPP
3522
ac_cv_prog_OBJCPP=$OBJCPP
3524
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCPP" >&5
3525
$as_echo "$OBJCPP" >&6; }
3527
for ac_objc_preproc_warn_flag in '' yes
3529
# Use a header file that comes with gcc, so configuring glibc
3530
# with a fresh cross-compiler works.
3531
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3532
# <limits.h> exists even on freestanding compilers.
3533
# On the NeXT, cc -E runs the code through the compiler's parser,
3534
# not just through cpp. "Syntax error" is here to catch this case.
3535
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3536
/* end confdefs.h. */
3538
# include <limits.h>
3540
# include <assert.h>
3544
if ac_fn_objc_try_cpp "$LINENO"; then :
3547
# Broken: fails on valid input.
3550
rm -f conftest.err conftest.i conftest.$ac_ext
3552
# OK, works on sane cases. Now check whether nonexistent headers
3553
# can be detected and how.
3554
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3555
/* end confdefs.h. */
3556
#include <ac_nonexistent.h>
3558
if ac_fn_objc_try_cpp "$LINENO"; then :
3559
# Broken: success on invalid input.
3562
# Passes both tests.
3566
rm -f conftest.err conftest.i conftest.$ac_ext
3569
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3570
rm -f conftest.i conftest.err conftest.$ac_ext
3571
if $ac_preproc_ok; then :
3574
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3575
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3576
as_fn_error $? "Objective C preprocessor \"$OBJCPP\" fails sanity check
3577
See \`config.log' for more details" "$LINENO" 5; }
3581
ac_cpp='$CPP $CPPFLAGS'
3582
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3583
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3584
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3587
# Check for header files.
3184
3590
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3185
3591
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4474
4862
# Check for zoneinfo directory
4477
# Check whether --with-zoneinfo-dir was given.
4478
if test "${with_zoneinfo_dir+set}" = set; then :
4479
withval=$with_zoneinfo_dir; with_zoneinfo_dir=$withval
4865
# Check whether --with-zoneinfo was given.
4866
if test "${with_zoneinfo+set}" = set; then :
4867
withval=$with_zoneinfo;
4481
with_zoneinfo_dir=no
4484
4872
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking zoneinfo directory" >&5
4485
4873
$as_echo_n "checking zoneinfo directory... " >&6; }
4486
if test "$with_zoneinfo_dir" = "no"; then :
4874
if test "x$with_zoneinfo" = xno; then :
4487
4875
if test -d "/usr/share/zoneinfo"; then :
4488
with_zoneinfo_dir='/usr/share/zoneinfo'
4876
with_zoneinfo='/usr/share/zoneinfo'
4489
4877
elif test -d "/usr/lib/zoneinfo"; then :
4490
with_zoneinfo_dir='/usr/lib/zoneinfo'
4878
with_zoneinfo='/usr/lib/zoneinfo'
4491
4879
elif test -d "/usr/local/share/zoneinfo"; then :
4492
with_zoneinfo_dir='/usr/local/share/zoneinfo'
4880
with_zoneinfo='/usr/local/share/zoneinfo'
4493
4881
elif test -d "/usr/local/lib/zoneinfo"; then :
4494
with_zoneinfo_dir='/usr/local/lib/zoneinfo'
4882
with_zoneinfo='/usr/local/lib/zoneinfo'
4495
4883
elif test -d "/etc/zoneinfo"; then :
4496
with_zoneinfo_dir='/etc/zoneinfo'
4884
with_zoneinfo='/etc/zoneinfo'
4497
4885
elif test -d "/usr/local/etc/zoneinfo"; then :
4498
with_zoneinfo_dir='/usr/local/etc/zoneinfo'
4501
if test "$with_zoneinfo_dir" = "no" || test ! -d "$with_zoneinfo_dir"; then :
4886
with_zoneinfo='/usr/local/etc/zoneinfo'
4889
if test "$with_zoneinfo" = "no" || test ! -d "$with_zoneinfo"; then :
4502
4890
as_fn_error $? "Please specify a valid zoneinfo directory." "$LINENO" 5
4504
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_zoneinfo_dir" >&5
4505
$as_echo "$with_zoneinfo_dir" >&6; }
4892
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_zoneinfo" >&5
4893
$as_echo "$with_zoneinfo" >&6; }
4507
4895
cat >>confdefs.h <<_ACEOF
4508
#define TZDIR "$with_zoneinfo_dir"
4896
#define TZDIR "$with_zoneinfo"