~registry/gnustep/gnustep-corebase

« back to all changes in this revision

Viewing changes to configure

  • Committer: stefanbidi
  • Date: 2015-07-10 02:30:27 UTC
  • Revision ID: svn-v4:72102866-910b-0410-8b05-ffd578937521:libs/corebase/trunk:38783
*Source/config.h.in,
configure,
configure.ac: Added better check for features.

Show diffs side-by-side

added added

removed removed

Lines of Context:
622
622
# include <unistd.h>
623
623
#endif"
624
624
 
625
 
ac_header_list=
626
625
ac_subst_vars='LTLIBOBJS
627
626
LIBOBJS
628
627
GNUSTEP_CONFIG
639
638
GS_SINT8_T
640
639
EGREP
641
640
GREP
 
641
OBJCPP
 
642
ac_ct_OBJC
 
643
OBJCFLAGS
 
644
OBJC
642
645
CPP
643
646
OBJEXT
644
647
EXEEXT
689
692
ac_user_opts='
690
693
enable_option_checking
691
694
with_gcd
692
 
with_objc_bridge
693
 
with_zoneinfo_dir
 
695
with_objc
 
696
with_zoneinfo
694
697
'
695
698
      ac_precious_vars='build_alias
696
699
host_alias
700
703
LDFLAGS
701
704
LIBS
702
705
CPPFLAGS
703
 
CPP'
 
706
CPP
 
707
OBJC
 
708
OBJCFLAGS
 
709
OBJCPP'
704
710
 
705
711
 
706
712
# Initialize some variables set by options.
1318
1324
                          Dispatch support is absolutely required. A
1319
1325
                          compatible library will required
1320
1326
                          (http://www.nickhutchinson.me/libdispatch).
1321
 
  --without-objc-bridge   Does not compile the Objective-C toll-free bridge
1322
 
                          mechanism.
1323
 
  --with-zoneinfo-dir=DIR Directory of the Time zone object files.
 
1327
  --without-objc          Compiles without support for Objective-C.
 
1328
  --with-zoneinfo=DIR     Directory of the Time zone object files.
1324
1329
 
1325
1330
Some influential environment variables:
1326
1331
  CC          C compiler command
1331
1336
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1332
1337
              you have headers in a nonstandard directory <include dir>
1333
1338
  CPP         C preprocessor
 
1339
  OBJC        Objective C compiler command
 
1340
  OBJCFLAGS   Objective C compiler flags
 
1341
  OBJCPP      Objective C preprocessor
1334
1342
 
1335
1343
Use these variables to override the choices made by `configure' or to help
1336
1344
it to find libraries and programs with nonstandard names/locations.
1487
1495
 
1488
1496
} # ac_fn_c_try_cpp
1489
1497
 
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
1494
 
# accordingly.
1495
 
ac_fn_c_check_header_mongrel ()
1496
 
{
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
1503
 
fi
1504
 
eval ac_res=\$$3
1505
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1506
 
$as_echo "$ac_res" >&6; }
1507
 
else
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.  */
1513
 
$4
1514
 
#include <$2>
1515
 
_ACEOF
1516
 
if ac_fn_c_try_compile "$LINENO"; then :
1517
 
  ac_header_compiler=yes
1518
 
else
1519
 
  ac_header_compiler=no
1520
 
fi
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; }
1524
 
 
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.  */
1530
 
#include <$2>
1531
 
_ACEOF
1532
 
if ac_fn_c_try_cpp "$LINENO"; then :
1533
 
  ac_header_preproc=yes
1534
 
else
1535
 
  ac_header_preproc=no
1536
 
fi
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; }
1540
 
 
1541
 
# So?  What about this header?
1542
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1543
 
  yes:no: )
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;}
1548
 
    ;;
1549
 
  no:yes:* )
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
1564
 
    ;;
1565
 
esac
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
1570
 
else
1571
 
  eval "$3=\$ac_header_compiler"
1572
 
fi
1573
 
eval ac_res=\$$3
1574
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1575
 
$as_echo "$ac_res" >&6; }
1576
 
fi
1577
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1578
 
 
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 ()
 
1502
{
 
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"
 
1506
case "(($ac_try" in
 
1507
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1508
  *) ac_try_echo=$ac_try;;
 
1509
esac
 
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
 
1513
  ac_status=$?
 
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
 
1518
  fi
 
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 :
 
1524
  ac_retval=0
 
1525
else
 
1526
  $as_echo "$as_me: failed program was:" >&5
 
1527
sed 's/^/| /' conftest.$ac_ext >&5
 
1528
 
 
1529
        ac_retval=1
 
1530
fi
 
1531
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1532
  as_fn_set_status $ac_retval
 
1533
 
 
1534
} # ac_fn_objc_try_compile
 
1535
 
 
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 ()
 
1540
{
 
1541
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1542
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1543
case "(($ac_try" in
 
1544
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1545
  *) ac_try_echo=$ac_try;;
 
1546
esac
 
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
 
1550
  ac_status=$?
 
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
 
1555
  fi
 
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
 
1560
       }; then :
 
1561
  ac_retval=0
 
1562
else
 
1563
  $as_echo "$as_me: failed program was:" >&5
 
1564
sed 's/^/| /' conftest.$ac_ext >&5
 
1565
 
 
1566
    ac_retval=1
 
1567
fi
 
1568
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1569
  as_fn_set_status $ac_retval
 
1570
 
 
1571
} # ac_fn_objc_try_cpp
1580
1572
 
1581
1573
# ac_fn_c_try_run LINENO
1582
1574
# ----------------------
1834
1826
 
1835
1827
} # ac_fn_c_compute_int
1836
1828
 
1837
 
# ac_fn_c_try_link LINENO
1838
 
# -----------------------
1839
 
# Try to link conftest.$ac_ext, and return whether this succeeded.
1840
 
ac_fn_c_try_link ()
 
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
 
1833
# accordingly.
 
1834
ac_fn_c_check_header_mongrel ()
1841
1835
{
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"
1845
 
case "(($ac_try" in
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
 
1842
fi
 
1843
eval ac_res=\$$3
 
1844
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1845
$as_echo "$ac_res" >&6; }
 
1846
else
 
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.  */
 
1852
$4
 
1853
#include <$2>
 
1854
_ACEOF
 
1855
if ac_fn_c_try_compile "$LINENO"; then :
 
1856
  ac_header_compiler=yes
 
1857
else
 
1858
  ac_header_compiler=no
 
1859
fi
 
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; }
 
1863
 
 
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.  */
 
1869
#include <$2>
 
1870
_ACEOF
 
1871
if ac_fn_c_try_cpp "$LINENO"; then :
 
1872
  ac_header_preproc=yes
 
1873
else
 
1874
  ac_header_preproc=no
 
1875
fi
 
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; }
 
1879
 
 
1880
# So?  What about this header?
 
1881
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
 
1882
  yes:no: )
 
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;}
 
1887
    ;;
 
1888
  no:yes:* )
 
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
 
1903
    ;;
1848
1904
esac
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
1852
 
  ac_status=$?
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
1857
 
  fi
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
1865
 
       }; then :
1866
 
  ac_retval=0
 
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
1867
1909
else
1868
 
  $as_echo "$as_me: failed program was:" >&5
1869
 
sed 's/^/| /' conftest.$ac_ext >&5
1870
 
 
1871
 
        ac_retval=1
1872
 
fi
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"
 
1911
fi
 
1912
eval ac_res=\$$3
 
1913
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1914
$as_echo "$ac_res" >&6; }
 
1915
fi
1878
1916
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879
 
  as_fn_set_status $ac_retval
1880
1917
 
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.
2163
2200
  >$cache_file
2164
2201
fi
2165
2202
 
2166
 
as_fn_append ac_header_list " unicode/ucal.h"
2167
 
as_fn_append ac_header_list " unicode/uchar.h"
2168
 
as_fn_append ac_header_list " unicode/ucnv.h"
2169
 
as_fn_append ac_header_list " unicode/ucol.h"
2170
 
as_fn_append ac_header_list " unicode/ucurr.h"
2171
 
as_fn_append ac_header_list " unicode/udat.h"
2172
 
as_fn_append ac_header_list " unicode/udatpg.h"
2173
 
as_fn_append ac_header_list " unicode/uloc.h"
2174
 
as_fn_append ac_header_list " unicode/ulocdata.h"
2175
 
as_fn_append ac_header_list " unicode/unorm.h"
2176
 
as_fn_append ac_header_list " unicode/unum.h"
2177
 
as_fn_append ac_header_list " unicode/usearch.h"
2178
 
as_fn_append ac_header_list " unicode/ustring.h"
2179
 
as_fn_append ac_header_list " unicode/utrans.h"
2180
2203
# Check that the precious variables saved in the cache have kept the same
2181
2204
# value.
2182
2205
ac_cache_corrupted=false
2249
2272
ac_config_headers="$ac_config_headers Source/config.h"
2250
2273
 
2251
2274
 
2252
 
# Checks for programs.
 
2275
# Checks for a compilers.
2253
2276
ac_ext=c
2254
2277
ac_cpp='$CPP $CPPFLAGS'
2255
2278
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3039
3062
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3040
3063
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3041
3064
 
3042
 
#AC_CHECK_TARGET_TOOL([LD], [ld])
3043
 
 
3044
 
# Checks for header files.
3045
 
 
3046
3065
ac_ext=c
3047
3066
ac_cpp='$CPP $CPPFLAGS'
3048
3067
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
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
3182
3201
 
 
3202
ac_ext=m
 
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
 
3209
  do
 
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
 
3216
else
 
3217
  if test -n "$OBJC"; then
 
3218
  ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
 
3219
else
 
3220
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3221
for as_dir in $PATH
 
3222
do
 
3223
  IFS=$as_save_IFS
 
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
 
3229
    break 2
 
3230
  fi
 
3231
done
 
3232
  done
 
3233
IFS=$as_save_IFS
 
3234
 
 
3235
fi
 
3236
fi
 
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; }
 
3241
else
 
3242
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3243
$as_echo "no" >&6; }
 
3244
fi
 
3245
 
 
3246
 
 
3247
    test -n "$OBJC" && break
 
3248
  done
 
3249
fi
 
3250
if test -z "$OBJC"; then
 
3251
  ac_ct_OBJC=$OBJC
 
3252
  for ac_prog in gcc objcc objc cc CC
 
3253
do
 
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
 
3260
else
 
3261
  if test -n "$ac_ct_OBJC"; then
 
3262
  ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
 
3263
else
 
3264
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3265
for as_dir in $PATH
 
3266
do
 
3267
  IFS=$as_save_IFS
 
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
 
3273
    break 2
 
3274
  fi
 
3275
done
 
3276
  done
 
3277
IFS=$as_save_IFS
 
3278
 
 
3279
fi
 
3280
fi
 
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; }
 
3285
else
 
3286
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3287
$as_echo "no" >&6; }
 
3288
fi
 
3289
 
 
3290
 
 
3291
  test -n "$ac_ct_OBJC" && break
 
3292
done
 
3293
 
 
3294
  if test "x$ac_ct_OBJC" = x; then
 
3295
    OBJC="gcc"
 
3296
  else
 
3297
    case $cross_compiling:$ac_tool_warned in
 
3298
yes:)
 
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 ;;
 
3302
esac
 
3303
    OBJC=$ac_ct_OBJC
 
3304
  fi
 
3305
fi
 
3306
 
 
3307
# Provide some information about the compiler.
 
3308
$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5
 
3309
set X $ac_compile
 
3310
ac_compiler=$2
 
3311
for ac_option in --version -v -V -qversion; do
 
3312
  { { ac_try="$ac_compiler $ac_option >&5"
 
3313
case "(($ac_try" in
 
3314
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3315
  *) ac_try_echo=$ac_try;;
 
3316
esac
 
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
 
3320
  ac_status=$?
 
3321
  if test -s conftest.err; then
 
3322
    sed '10a\
 
3323
... rest of stderr output deleted ...
 
3324
         10q' conftest.err >conftest.er1
 
3325
    cat conftest.er1 >&5
 
3326
  fi
 
3327
  rm -f conftest.er1 conftest.err
 
3328
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3329
  test $ac_status = 0; }
 
3330
done
 
3331
 
 
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
 
3336
else
 
3337
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3338
/* end confdefs.h.  */
 
3339
 
 
3340
int
 
3341
main ()
 
3342
{
 
3343
#ifndef __GNUC__
 
3344
       choke me
 
3345
#endif
 
3346
 
 
3347
  ;
 
3348
  return 0;
 
3349
}
 
3350
_ACEOF
 
3351
if ac_fn_objc_try_compile "$LINENO"; then :
 
3352
  ac_compiler_gnu=yes
 
3353
else
 
3354
  ac_compiler_gnu=no
 
3355
fi
 
3356
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3357
ac_cv_objc_compiler_gnu=$ac_compiler_gnu
 
3358
 
 
3359
fi
 
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
 
3363
  GOBJC=yes
 
3364
else
 
3365
  GOBJC=
 
3366
fi
 
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
 
3373
else
 
3374
  ac_save_objc_werror_flag=$ac_objc_werror_flag
 
3375
   ac_objc_werror_flag=yes
 
3376
   ac_cv_prog_objc_g=no
 
3377
   OBJCFLAGS="-g"
 
3378
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3379
/* end confdefs.h.  */
 
3380
 
 
3381
int
 
3382
main ()
 
3383
{
 
3384
 
 
3385
  ;
 
3386
  return 0;
 
3387
}
 
3388
_ACEOF
 
3389
if ac_fn_objc_try_compile "$LINENO"; then :
 
3390
  ac_cv_prog_objc_g=yes
 
3391
else
 
3392
  OBJCFLAGS=""
 
3393
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3394
/* end confdefs.h.  */
 
3395
 
 
3396
int
 
3397
main ()
 
3398
{
 
3399
 
 
3400
  ;
 
3401
  return 0;
 
3402
}
 
3403
_ACEOF
 
3404
if ac_fn_objc_try_compile "$LINENO"; then :
 
3405
 
 
3406
else
 
3407
  ac_objc_werror_flag=$ac_save_objc_werror_flag
 
3408
         OBJCFLAGS="-g"
 
3409
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3410
/* end confdefs.h.  */
 
3411
 
 
3412
int
 
3413
main ()
 
3414
{
 
3415
 
 
3416
  ;
 
3417
  return 0;
 
3418
}
 
3419
_ACEOF
 
3420
if ac_fn_objc_try_compile "$LINENO"; then :
 
3421
  ac_cv_prog_objc_g=yes
 
3422
fi
 
3423
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3424
fi
 
3425
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3426
fi
 
3427
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3428
   ac_objc_werror_flag=$ac_save_objc_werror_flag
 
3429
fi
 
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
 
3436
    OBJCFLAGS="-g -O2"
 
3437
  else
 
3438
    OBJCFLAGS="-g"
 
3439
  fi
 
3440
else
 
3441
  if test "$GOBJC" = yes; then
 
3442
    OBJCFLAGS="-O2"
 
3443
  else
 
3444
    OBJCFLAGS=
 
3445
  fi
 
3446
fi
 
3447
ac_ext=c
 
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
 
3452
 
 
3453
ac_ext=m
 
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
 
3463
else
 
3464
      # Double quotes because OBJCPP needs to be expanded
 
3465
    for OBJCPP in "$OBJC -E" "/lib/cpp"
 
3466
    do
 
3467
      ac_preproc_ok=false
 
3468
for ac_objc_preproc_warn_flag in '' yes
 
3469
do
 
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.  */
 
3478
#ifdef __STDC__
 
3479
# include <limits.h>
 
3480
#else
 
3481
# include <assert.h>
 
3482
#endif
 
3483
                     Syntax error
 
3484
_ACEOF
 
3485
if ac_fn_objc_try_cpp "$LINENO"; then :
 
3486
 
 
3487
else
 
3488
  # Broken: fails on valid input.
 
3489
continue
 
3490
fi
 
3491
rm -f conftest.err conftest.i conftest.$ac_ext
 
3492
 
 
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>
 
3498
_ACEOF
 
3499
if ac_fn_objc_try_cpp "$LINENO"; then :
 
3500
  # Broken: success on invalid input.
 
3501
continue
 
3502
else
 
3503
  # Passes both tests.
 
3504
ac_preproc_ok=:
 
3505
break
 
3506
fi
 
3507
rm -f conftest.err conftest.i conftest.$ac_ext
 
3508
 
 
3509
done
 
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 :
 
3513
  break
 
3514
fi
 
3515
 
 
3516
    done
 
3517
    ac_cv_prog_OBJCPP=$OBJCPP
 
3518
 
 
3519
fi
 
3520
  OBJCPP=$ac_cv_prog_OBJCPP
 
3521
else
 
3522
  ac_cv_prog_OBJCPP=$OBJCPP
 
3523
fi
 
3524
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCPP" >&5
 
3525
$as_echo "$OBJCPP" >&6; }
 
3526
ac_preproc_ok=false
 
3527
for ac_objc_preproc_warn_flag in '' yes
 
3528
do
 
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.  */
 
3537
#ifdef __STDC__
 
3538
# include <limits.h>
 
3539
#else
 
3540
# include <assert.h>
 
3541
#endif
 
3542
                     Syntax error
 
3543
_ACEOF
 
3544
if ac_fn_objc_try_cpp "$LINENO"; then :
 
3545
 
 
3546
else
 
3547
  # Broken: fails on valid input.
 
3548
continue
 
3549
fi
 
3550
rm -f conftest.err conftest.i conftest.$ac_ext
 
3551
 
 
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>
 
3557
_ACEOF
 
3558
if ac_fn_objc_try_cpp "$LINENO"; then :
 
3559
  # Broken: success on invalid input.
 
3560
continue
 
3561
else
 
3562
  # Passes both tests.
 
3563
ac_preproc_ok=:
 
3564
break
 
3565
fi
 
3566
rm -f conftest.err conftest.i conftest.$ac_ext
 
3567
 
 
3568
done
 
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 :
 
3572
 
 
3573
else
 
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; }
 
3578
fi
 
3579
 
 
3580
ac_ext=c
 
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
 
3585
 
 
3586
 
 
3587
# Check for header files.
 
3588
 
3183
3589
 
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; }
3423
3829
 
3424
3830
fi
3425
3831
 
3426
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3427
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3428
 
                  inttypes.h stdint.h unistd.h
3429
 
do :
3430
 
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3431
 
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3432
 
"
3433
 
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3434
 
  cat >>confdefs.h <<_ACEOF
3435
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3436
 
_ACEOF
3437
 
 
3438
 
fi
3439
 
 
3440
 
done
3441
 
 
3442
 
 
3443
 
for ac_header in fcntl.h float.h limits.h math.h stddef.h stdint.h stdlib.h string.h sys/time.h unistd.h
3444
 
do :
3445
 
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3446
 
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
3447
 
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3448
 
  cat >>confdefs.h <<_ACEOF
3449
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3450
 
_ACEOF
3451
 
 
3452
 
fi
3453
 
 
3454
 
done
3455
 
 
3456
3832
 
3457
3833
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
3458
3834
$as_echo_n "checking for inline... " >&6; }
3496
3872
    ;;
3497
3873
esac
3498
3874
 
 
3875
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
3876
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
3877
                  inttypes.h stdint.h unistd.h
 
3878
do :
 
3879
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
3880
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
3881
"
 
3882
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
3883
  cat >>confdefs.h <<_ACEOF
 
3884
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
3885
_ACEOF
 
3886
 
 
3887
fi
 
3888
 
 
3889
done
 
3890
 
 
3891
 
3499
3892
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3500
3893
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
3501
3894
if ${ac_cv_c_bigendian+:} false; then :
3942
4335
  $as_echo_n "(cached) " >&6
3943
4336
else
3944
4337
  _gs_data_model="$ac_cv_sizeof_char$ac_cv_sizeof_short$ac_cv_sizeof_int$ac_cv_sizeof_long$ac_cv_sizeof_long_long$ac_cv_sizeof_void_p"
3945
 
                case $_gs_data_model in #(
3946
 
  122482) :
3947
 
    gs_cv_c_data_model="IP16" ;; #(
 
4338
               case $_gs_data_model in #(
3948
4339
  122484) :
3949
4340
    gs_cv_c_data_model="LP32" ;; #(
3950
4341
  124484) :
3978
4369
GS_UINT64_T="unsigned long long"
3979
4370
 
3980
4371
case $gs_cv_c_data_model in #(
3981
 
  IP16) :
3982
 
    GS_SINT32_T="signed long"
3983
 
 
3984
 
                GS_UINT32_T="unsigned long"
3985
 
 
3986
 
                GS_SINTPTR_T="signed int"
3987
 
 
3988
 
                GS_UINTPTR_T="unsigned int"
3989
 
 ;; #(
3990
4372
  LP32) :
3991
4373
    GS_SINT32_T="signed long"
3992
4374
 
4017
4399
  LP64) :
4018
4400
    GS_SINT32_T="signed int"
4019
4401
 
4020
 
                 GS_UINT32_T="unsigned int"
4021
 
 
4022
 
                 GS_SINTPTR_T="signed long"
4023
 
 
4024
 
                 GS_UINTPTR_T="unsigned long"
 
4402
                GS_UINT32_T="unsigned int"
 
4403
 
 
4404
                GS_SINTPTR_T="signed long"
 
4405
 
 
4406
                GS_UINTPTR_T="unsigned long"
4025
4407
 ;; #(
4026
4408
  *) :
4027
4409
    as_fn_error $? "Could not identify the architecture's data model." "$LINENO" 5 ;;
4095
4477
 
4096
4478
 
4097
4479
#---
 
4480
# Support disabling conversion to/from the encodings in CFStringEncodingExt.h
 
4481
#---
 
4482
#AC_ARG_ENABLE([external-encodings],
 
4483
#  [AS_HELP_STRING([--without-external-encodings],
 
4484
#    [Disable the ability to convert to and from the external encodings defined in CFStringEncodingExt.h.])],
 
4485
#  [enable_external_encoding=$enableval], [enable_external_encodings=yes])
 
4486
#AS_IF([test "x$enable_external_encodings" = xyes],
 
4487
#  [AC_DEFINE([ENABLE_EXTERNAL_ENCODINGS], [1],
 
4488
#    [Define to 1 if external encodings are enabled.])])
 
4489
 
 
4490
#---
4098
4491
# Check for ICU
4099
4492
#---
4100
4493
 # GS_CHECK_ICU
4142
4535
 
4143
4536
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU 4.0 or later" >&5
4144
4537
$as_echo_n "checking for ICU 4.0 or later... " >&6; }
4145
 
if test "$ICU_CONFIG" = "no"; then :
 
4538
if test x"$ICU_CONFIG" = xno; then :
4146
4539
  as_fn_error $? "Could not find 'icu-config'.  Please install ICU or specify --without-icu." "$LINENO" 5
4147
4540
fi
4148
4541
ICU_VERSION=`$ICU_CONFIG --version`
4149
4542
found=`expr $ICU_VERSION \>= 4.0`
4150
 
if test "$found" = "1"; then :
 
4543
if test x"$found" = x1; then :
4151
4544
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4152
4545
$as_echo "yes" >&6; }
4153
4546
      ICU_LIBS=`$ICU_CONFIG --ldflags-libsonly`
4158
4551
      as_fn_error $? "Could not find ICU 4.0 or later" "$LINENO" 5
4159
4552
fi
4160
4553
 
4161
 
 
4162
 
 
4163
 
 
4164
 
  for ac_header in $ac_header_list
 
4554
for ac_header in unicode/ucal.h unicode/uchar.h unicode/ucnv.h unicode/ucol.h unicode/ucurr.h unicode/udat.h unicode/udatpg.h unicode/uloc.h unicode/ulocdata.h unicode/unorm.h unicode/unum.h unicode/usearch.h unicode/ustring.h unicode/utrans.h
4165
4555
do :
4166
4556
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4167
 
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4168
 
"
 
4557
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4169
4558
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4170
4559
  cat >>confdefs.h <<_ACEOF
4171
4560
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4172
4561
_ACEOF
4173
4562
 
 
4563
else
 
4564
  as_fn_error $? "Could not find required ICU headers." "$LINENO" 5
4174
4565
fi
4175
4566
 
4176
4567
done
4177
4568
 
4178
4569
 
4179
4570
 
4180
 
 
4181
 
 
4182
 
 
4183
 
 
4184
 
 
4185
 
 
4186
 
 
4187
 
 
4188
 
 
4189
 
 
4190
 
 
4191
 
 
4192
 
 
4193
 
 
4194
 
 
4195
 
 
4196
 
 
4197
 
 
4198
 
 
4199
 
 
4200
 
 
4201
 
 
4202
 
 
4203
 
 
4204
 
 
4205
 
 
4206
 
 
4207
 
 
4208
 
# Double check we can actually compile with ICU
4209
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4210
 
/* end confdefs.h.  */
4211
 
#include <unicode/uversion.h>
4212
 
int
4213
 
main ()
4214
 
{
4215
 
UVersionInfo version_info;
4216
 
                                 u_getVersion(version_info);
4217
 
  ;
4218
 
  return 0;
4219
 
}
4220
 
_ACEOF
4221
 
if ac_fn_c_try_link "$LINENO"; then :
4222
 
 
4223
 
fi
4224
 
rm -f core conftest.err conftest.$ac_objext \
4225
 
    conftest$ac_exeext conftest.$ac_ext
4226
 
 
4227
 
 
4228
4571
$as_echo "#define HAVE_ICU 1" >>confdefs.h
4229
4572
 
4230
4573
 
4259
4602
else
4260
4603
  ac_check_lib_save_LIBS=$LIBS
4261
4604
LIBS="-ldispatch  $LIBS"
 
4605
 
 
4606
# ac_fn_c_try_link LINENO
 
4607
# -----------------------
 
4608
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
4609
ac_fn_c_try_link ()
 
4610
{
 
4611
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
4612
  rm -f conftest.$ac_objext conftest$ac_exeext
 
4613
  if { { ac_try="$ac_link"
 
4614
case "(($ac_try" in
 
4615
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4616
  *) ac_try_echo=$ac_try;;
 
4617
esac
 
4618
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4619
$as_echo "$ac_try_echo"; } >&5
 
4620
  (eval "$ac_link") 2>conftest.err
 
4621
  ac_status=$?
 
4622
  if test -s conftest.err; then
 
4623
    grep -v '^ *+' conftest.err >conftest.er1
 
4624
    cat conftest.er1 >&5
 
4625
    mv -f conftest.er1 conftest.err
 
4626
  fi
 
4627
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4628
  test $ac_status = 0; } && {
 
4629
         test -z "$ac_c_werror_flag" ||
 
4630
         test ! -s conftest.err
 
4631
       } && test -s conftest$ac_exeext && {
 
4632
         test "$cross_compiling" = yes ||
 
4633
         test -x conftest$ac_exeext
 
4634
       }; then :
 
4635
  ac_retval=0
 
4636
else
 
4637
  $as_echo "$as_me: failed program was:" >&5
 
4638
sed 's/^/| /' conftest.$ac_ext >&5
 
4639
 
 
4640
        ac_retval=1
 
4641
fi
 
4642
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
4643
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
4644
  # interfere with the next link command; also delete a directory that is
 
4645
  # left behind by Apple's compiler.  We do this before executing the actions.
 
4646
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
4647
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
4648
  as_fn_set_status $ac_retval
 
4649
 
 
4650
} # ac_fn_c_try_link
4262
4651
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4263
4652
/* end confdefs.h.  */
4264
4653
 
4307
4696
# Check for the Objective-C runtime
4308
4697
#---
4309
4698
 
4310
 
# Check whether --with-objc-bridge was given.
4311
 
if test "${with_objc_bridge+set}" = set; then :
4312
 
  withval=$with_objc_bridge; with_objc_bridge=$withval
 
4699
# Check whether --with-objc was given.
 
4700
if test "${with_objc+set}" = set; then :
 
4701
  withval=$with_objc; with_objc=$withval
4313
4702
else
4314
 
  with_objc_bridge=yes
 
4703
  with_objc=yes
4315
4704
fi
4316
4705
 
4317
 
if test "$with_objc_bridge" = "yes"; then :
 
4706
if test "x$with_objc" != xno; then :
4318
4707
  # Extract the first word of "gnustep-config", so it can be a program name with args.
4319
4708
set dummy gnustep-config; ac_word=$2
4320
4709
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4356
4745
fi
4357
4746
 
4358
4747
 
4359
 
      if test "$GNUSTEP_CONFIG" != "no"; then :
 
4748
  if test x"$GNUSTEP_CONFIG" != "xno"; then :
4360
4749
  OBJC_LIBS=`$GNUSTEP_CONFIG --base-libs`
4361
 
            LIBS="$LIBS $OBJC_LIBS"
4362
 
            $as_echo "#define HAVE_LIBOBJC 1" >>confdefs.h
 
4750
    LIBS="$LIBS $OBJC_LIBS"
 
4751
    $as_echo "#define HAVE_LIBOBJC 1" >>confdefs.h
4363
4752
 
4364
4753
else
4365
4754
  ac_fn_c_check_header_mongrel "$LINENO" "objc/runtime.h" "ac_cv_header_objc_runtime_h" "$ac_includes_default"
4368
4757
fi
4369
4758
 
4370
4759
 
4371
 
            if test "$ac_cv_header_objc_runtime_h" = "no"; then :
 
4760
    if test "x$ac_cv_header_objc_runtime_h" = xno; then :
4372
4761
  as_fn_error $? "Could not find the Objective-C runtime header." "$LINENO" 5
4373
 
 
4374
4762
fi
4375
 
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objc_getClass in -lobjc" >&5
 
4763
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objc_getClass in -lobjc" >&5
4376
4764
$as_echo_n "checking for objc_getClass in -lobjc... " >&6; }
4377
4765
if ${ac_cv_lib_objc_objc_getClass+:} false; then :
4378
4766
  $as_echo_n "(cached) " >&6
4417
4805
 
4418
4806
fi
4419
4807
 
4420
 
            if test "$ac_cv_lib_objc_objc_getClass" = "no"; then :
 
4808
    if test "x$ac_cv_lib_objc_objc_getClass" = xno; then :
4421
4809
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objc_getClass in -lobjc2" >&5
4422
4810
$as_echo_n "checking for objc_getClass in -lobjc2... " >&6; }
4423
4811
if ${ac_cv_lib_objc2_objc_getClass+:} false; then :
4463
4851
 
4464
4852
fi
4465
4853
 
4466
 
                  if test "$ac_cv_lib_objc2_objc_getClass" = "no"; then :
4467
 
  as_fn_error $? "Objective-C library not found!  Use --disable-objc-bridge to explicitly disable the toll-free bridge or install the Objective-C library." "$LINENO" 5
 
4854
      if test "x$ac_cv_lib_objc2_objc_getClass" = xno; then :
 
4855
  as_fn_error $? "Objective-C library not found!  Use --without-objc-bridge to explicitly disable the toll-free bridge or install the Objective-C library." "$LINENO" 5
4468
4856
fi
4469
4857
fi
4470
4858
fi
4474
4862
# Check for zoneinfo directory
4475
4863
#---
4476
4864
 
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;
4480
4868
else
4481
 
  with_zoneinfo_dir=no
 
4869
  with_zoneinfo=no
4482
4870
fi
4483
4871
 
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'
4499
 
fi
4500
 
fi
4501
 
if test "$with_zoneinfo_dir" = "no" || test ! -d "$with_zoneinfo_dir"; then :
 
4886
  with_zoneinfo='/usr/local/etc/zoneinfo'
 
4887
fi
 
4888
fi
 
4889
if test "$with_zoneinfo" = "no" || test ! -d "$with_zoneinfo"; then :
4502
4890
  as_fn_error $? "Please specify a valid zoneinfo directory." "$LINENO" 5
4503
4891
fi
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; }
4506
4894
 
4507
4895
cat >>confdefs.h <<_ACEOF
4508
 
#define TZDIR "$with_zoneinfo_dir"
 
4896
#define TZDIR "$with_zoneinfo"
4509
4897
_ACEOF
4510
4898
 
4511
4899