~ubuntu-branches/ubuntu/lucid/python2.6/lucid

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2010-03-11 13:30:19 UTC
  • mto: (10.1.13 sid)
  • mto: This revision was merged to the branch mainline in revision 44.
  • Revision ID: james.westby@ubuntu.com-20100311133019-sblbooa3uqrkoe70
Tags: upstream-2.6.5~rc2
ImportĀ upstreamĀ versionĀ 2.6.5~rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
 
# From configure.in Revision: 74982 .
 
2
# From configure.in Revision: 78813 .
3
3
# Guess values for system-dependent variables and create Makefiles.
4
4
# Generated by GNU Autoconf 2.61 for python 2.6.
5
5
#
658
658
CONFIG_ARGS
659
659
UNIVERSALSDK
660
660
ARCH_RUN_32BIT
 
661
LIPO_32BIT_FLAGS
 
662
LIPO_64BIT_FLAGS
 
663
UNIVERSAL_ARCH32_FLAGS
 
664
UNIVERSAL_ARCH64_FLAGS
661
665
PYTHONFRAMEWORK
662
666
PYTHONFRAMEWORKIDENTIFIER
663
667
PYTHONFRAMEWORKDIR
1871
1875
 
1872
1876
CONFIG_ARGS="$ac_configure_args"
1873
1877
 
 
1878
{ echo "$as_me:$LINENO: checking for --enable-universalsdk" >&5
 
1879
echo $ECHO_N "checking for --enable-universalsdk... $ECHO_C" >&6; }
1874
1880
# Check whether --enable-universalsdk was given.
1875
1881
if test "${enable_universalsdk+set}" = set; then
1876
1882
  enableval=$enable_universalsdk;
1877
1883
        case $enableval in
1878
1884
        yes)
1879
1885
                enableval=/Developer/SDKs/MacOSX10.4u.sdk
 
1886
                if test ! -d "${enableval}"
 
1887
                then
 
1888
                        enableval=/
 
1889
                fi
1880
1890
                ;;
1881
1891
        esac
1882
1892
        case $enableval in
1886
1896
                ;;
1887
1897
        *)
1888
1898
                UNIVERSALSDK=$enableval
 
1899
                if test ! -d "${UNIVERSALSDK}"
 
1900
                then
 
1901
                        { { echo "$as_me:$LINENO: error: --enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" >&5
 
1902
echo "$as_me: error: --enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" >&2;}
 
1903
   { (exit 1); exit 1; }; }
 
1904
                fi
1889
1905
                ;;
1890
1906
        esac
1891
1907
 
 
1908
 
1892
1909
else
1893
1910
 
1894
1911
        UNIVERSALSDK=
1896
1913
 
1897
1914
fi
1898
1915
 
 
1916
if test -n "${UNIVERSALSDK}"
 
1917
then
 
1918
        { echo "$as_me:$LINENO: result: ${UNIVERSALSDK}" >&5
 
1919
echo "${ECHO_T}${UNIVERSALSDK}" >&6; }
 
1920
else
 
1921
        { echo "$as_me:$LINENO: result: no" >&5
 
1922
echo "${ECHO_T}no" >&6; }
 
1923
fi
1899
1924
 
1900
1925
 
1901
1926
 
1902
1927
 
1903
1928
UNIVERSAL_ARCHS="32-bit"
 
1929
 
 
1930
 
 
1931
 
 
1932
 
1904
1933
{ echo "$as_me:$LINENO: checking for --with-universal-archs" >&5
1905
1934
echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; }
1906
1935
 
1980
2009
                PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1981
2010
                FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1982
2011
                FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall"
1983
 
                if test "$UNIVERSAL_ARCHS" = "all"
1984
 
                then
 
2012
                case "${UNIVERSAL_ARCHS}" in
 
2013
                all|3-way|intel)
1985
2014
                        FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way"
1986
2015
                        FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkaltinstallunixtools4way"
1987
 
                else
 
2016
                        ;;
 
2017
                *)
1988
2018
                        FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
1989
2019
                        FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
1990
 
                fi
 
2020
                        ;;
 
2021
                esac
1991
2022
 
1992
2023
                if test "x${prefix}" = "xNONE" ; then
1993
2024
                        FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2091
2122
  # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2092
2123
  # even though select is a POSIX function. Reported by J. Ribbens.
2093
2124
  # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2094
 
  OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123])
 
2125
  # In addition, Stefan Krah confirms that issue #1244610 exists through
 
2126
  # OpenBSD 4.6, but is fixed in 4.7.
 
2127
  OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123456])
2095
2128
    define_xopen_source=no
2096
2129
    # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2097
2130
    # also defined. This can be overridden by defining _BSD_SOURCE
2102
2135
_ACEOF
2103
2136
 
2104
2137
    ;;
 
2138
  OpenBSD/4.[789])
 
2139
    # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
 
2140
    # also defined. This can be overridden by defining _BSD_SOURCE
 
2141
    # As this has a different meaning on Linux, only define it on OpenBSD
 
2142
 
 
2143
cat >>confdefs.h <<\_ACEOF
 
2144
#define _BSD_SOURCE 1
 
2145
_ACEOF
 
2146
 
 
2147
    ;;
2105
2148
  # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2106
2149
  # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2107
2150
  # Marc Recht
2133
2176
  # has no effect, don't bother defining them
2134
2177
  Darwin/[6789].*)
2135
2178
    define_xopen_source=no;;
 
2179
  Darwin/1[0-9].*)
 
2180
    define_xopen_source=no;;
2136
2181
  # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2137
2182
  # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2138
2183
  # or has another value. By not (re)defining it, the defaults come in place.
4533
4578
# tweak OPT based on compiler and platform, only if the user didn't set
4534
4579
# it on the command line
4535
4580
 
4536
 
if test -z "$OPT"
 
4581
if test "${OPT-unset}" == "unset"
4537
4582
then
4538
4583
    case $GCC in
4539
4584
    yes)
4665
4710
            # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4666
4711
            # used to be here, but non-Apple gcc doesn't accept them.
4667
4712
 
4668
 
 
4669
4713
            if test "${enable_universalsdk}"; then
4670
4714
                UNIVERSAL_ARCH_FLAGS=""
4671
4715
                if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
 
4716
                   ARCH_RUN_32BIT=""
4672
4717
                   UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
4673
 
                   ARCH_RUN_32BIT=""
4674
4718
 
4675
4719
                 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
 
4720
                   ARCH_RUN_32BIT="true"
4676
4721
                   UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
4677
 
                   ARCH_RUN_32BIT="true"
4678
4722
 
4679
4723
                 elif test "$UNIVERSAL_ARCHS" = "all" ; then
 
4724
                   ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
4680
4725
                   UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
4681
 
                   ARCH_RUN_32BIT="arch -i386 -ppc"
 
4726
                   UNIVERSAL_ARCH32_FLAGS="-arch i386 -arch ppc"
 
4727
                   UNIVERSAL_ARCH64_FLAGS="-arch x86_64 -arch ppc64"
 
4728
                   LIPO_32BIT_FLAGS="-extract i386 -extract ppc7400"
 
4729
                   LIPO_64BIT_FLAGS="-extract x86_64 -extract ppc64"
4682
4730
 
4683
4731
                 elif test "$UNIVERSAL_ARCHS" = "intel" ; then
 
4732
                   ARCH_RUN_32BIT="/usr/bin/arch -i386"
4684
4733
                   UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64"
4685
 
                   ARCH_RUN_32BIT="arch -i386"
 
4734
                   UNIVERSAL_ARCH32_FLAGS="-arch i386"
 
4735
                   UNIVERSAL_ARCH64_FLAGS="-arch x86_64"
 
4736
                   LIPO_32BIT_FLAGS="-extract i386"
 
4737
                   LIPO_64BIT_FLAGS="-extract x86_64"
4686
4738
 
4687
4739
                 elif test "$UNIVERSAL_ARCHS" = "3-way" ; then
 
4740
                   ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
4688
4741
                   UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64"
4689
 
                   ARCH_RUN_32BIT="arch -i386 -ppc"
 
4742
                   UNIVERSAL_ARCH32_FLAGS="-arch i386 -arch ppc"
 
4743
                   UNIVERSAL_ARCH64_FLAGS="-arch x86_64"
 
4744
                   LIPO_32BIT_FLAGS="-extract i386 -extract ppc7400"
 
4745
                   LIPO_64BIT_FLAGS="-extract x86_64"
4690
4746
 
4691
4747
                 else
4692
4748
                   { { echo "$as_me:$LINENO: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&5
4726
4782
                                    cur_target='10.5'
4727
4783
                            fi
4728
4784
                    else
4729
 
                            if test `arch` = "i386"; then
 
4785
                            if test `/usr/bin/arch` = "i386"; then
4730
4786
                                    # On Intel macs default to a deployment
4731
4787
                                    # target of 10.4, that's the first OSX
4732
4788
                                    # release with Intel support.
12696
12752
 
12697
12753
{ echo "$as_me:$LINENO: checking whether to enable large file support" >&5
12698
12754
echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
12699
 
if test "$have_long_long" = yes -a \
12700
 
        "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
 
12755
if test "$have_long_long" = yes
 
12756
then
 
12757
if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
12701
12758
        "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
12702
12759
 
12703
12760
cat >>confdefs.h <<\_ACEOF
12710
12767
  { echo "$as_me:$LINENO: result: no" >&5
12711
12768
echo "${ECHO_T}no" >&6; }
12712
12769
fi
 
12770
else
 
12771
  { echo "$as_me:$LINENO: result: no" >&5
 
12772
echo "${ECHO_T}no" >&6; }
 
12773
fi
12713
12774
 
12714
12775
# AC_CHECK_SIZEOF() doesn't include <time.h>.
12715
12776
{ echo "$as_me:$LINENO: checking size of time_t" >&5
12963
13024
    if test "${enable_universalsdk}"; then
12964
13025
            :
12965
13026
    else
12966
 
        LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
 
13027
        LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`"
12967
13028
    fi
12968
13029
    LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12969
13030
    LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
12970
13031
  Darwin/*)
12971
 
    gcc_version=`gcc -v 2>&1 |  grep version | cut -d\  -f3`
 
13032
    gcc_version=`gcc -dumpversion`
12972
13033
    if test ${gcc_version} '<' 4.0
12973
13034
        then
12974
13035
            LIBTOOL_CRUFT="-lcc_dynamic"
13031
13092
 
13032
13093
 
13033
13094
    if test "${ac_osx_32bit}" = "yes"; then
13034
 
        case `arch` in
 
13095
        case `/usr/bin/arch` in
13035
13096
        i386)
13036
13097
                MACOSX_DEFAULT_ARCH="i386"
13037
13098
                ;;
13045
13106
                ;;
13046
13107
        esac
13047
13108
    else
13048
 
        case `arch` in
 
13109
        case `/usr/bin/arch` in
13049
13110
        i386)
13050
13111
                MACOSX_DEFAULT_ARCH="x86_64"
13051
13112
                ;;
17195
17256
# exit Python
17196
17257
{ echo "$as_me:$LINENO: checking for chflags" >&5
17197
17258
echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
17198
 
if test "$cross_compiling" = yes; then
17199
 
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17200
 
See \`config.log' for more details." >&5
17201
 
echo "$as_me: error: cannot run test program while cross compiling
17202
 
See \`config.log' for more details." >&2;}
17203
 
   { (exit 1); exit 1; }; }
 
17259
if test "${ac_cv_have_chflags+set}" = set; then
 
17260
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17261
else
 
17262
  if test "$cross_compiling" = yes; then
 
17263
  ac_cv_have_chflags=cross
17204
17264
else
17205
17265
  cat >conftest.$ac_ext <<_ACEOF
17206
17266
/* confdefs.h.  */
17208
17268
cat confdefs.h >>conftest.$ac_ext
17209
17269
cat >>conftest.$ac_ext <<_ACEOF
17210
17270
/* end confdefs.h.  */
17211
 
 
 
17271
[
17212
17272
#include <sys/stat.h>
17213
17273
#include <unistd.h>
17214
17274
int main(int argc, char*argv[])
17217
17277
    return 1;
17218
17278
  return 0;
17219
17279
}
17220
 
 
 
17280
]
17221
17281
_ACEOF
17222
17282
rm -f conftest$ac_exeext
17223
17283
if { (ac_try="$ac_link"
17239
17299
  ac_status=$?
17240
17300
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241
17301
  (exit $ac_status); }; }; then
 
17302
  ac_cv_have_chflags=yes
 
17303
else
 
17304
  echo "$as_me: program exited with status $ac_status" >&5
 
17305
echo "$as_me: failed program was:" >&5
 
17306
sed 's/^/| /' conftest.$ac_ext >&5
 
17307
 
 
17308
( exit $ac_status )
 
17309
ac_cv_have_chflags=no
 
17310
fi
 
17311
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
17312
fi
 
17313
 
 
17314
 
 
17315
 
 
17316
fi
 
17317
{ echo "$as_me:$LINENO: result: $ac_cv_have_chflags" >&5
 
17318
echo "${ECHO_T}$ac_cv_have_chflags" >&6; }
 
17319
if test "$ac_cv_have_chflags" = cross ; then
 
17320
  { echo "$as_me:$LINENO: checking for chflags" >&5
 
17321
echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
 
17322
if test "${ac_cv_func_chflags+set}" = set; then
 
17323
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17324
else
 
17325
  cat >conftest.$ac_ext <<_ACEOF
 
17326
/* confdefs.h.  */
 
17327
_ACEOF
 
17328
cat confdefs.h >>conftest.$ac_ext
 
17329
cat >>conftest.$ac_ext <<_ACEOF
 
17330
/* end confdefs.h.  */
 
17331
/* Define chflags to an innocuous variant, in case <limits.h> declares chflags.
 
17332
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
17333
#define chflags innocuous_chflags
 
17334
 
 
17335
/* System header to define __stub macros and hopefully few prototypes,
 
17336
    which can conflict with char chflags (); below.
 
17337
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
17338
    <limits.h> exists even on freestanding compilers.  */
 
17339
 
 
17340
#ifdef __STDC__
 
17341
# include <limits.h>
 
17342
#else
 
17343
# include <assert.h>
 
17344
#endif
 
17345
 
 
17346
#undef chflags
 
17347
 
 
17348
/* Override any GCC internal prototype to avoid an error.
 
17349
   Use char because int might match the return type of a GCC
 
17350
   builtin and then its argument prototype would still apply.  */
 
17351
#ifdef __cplusplus
 
17352
extern "C"
 
17353
#endif
 
17354
char chflags ();
 
17355
/* The GNU C library defines this for functions which it implements
 
17356
    to always fail with ENOSYS.  Some functions are actually named
 
17357
    something starting with __ and the normal name is an alias.  */
 
17358
#if defined __stub_chflags || defined __stub___chflags
 
17359
choke me
 
17360
#endif
 
17361
 
 
17362
int
 
17363
main ()
 
17364
{
 
17365
return chflags ();
 
17366
  ;
 
17367
  return 0;
 
17368
}
 
17369
_ACEOF
 
17370
rm -f conftest.$ac_objext conftest$ac_exeext
 
17371
if { (ac_try="$ac_link"
 
17372
case "(($ac_try" in
 
17373
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17374
  *) ac_try_echo=$ac_try;;
 
17375
esac
 
17376
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17377
  (eval "$ac_link") 2>conftest.er1
 
17378
  ac_status=$?
 
17379
  grep -v '^ *+' conftest.er1 >conftest.err
 
17380
  rm -f conftest.er1
 
17381
  cat conftest.err >&5
 
17382
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17383
  (exit $ac_status); } && {
 
17384
         test -z "$ac_c_werror_flag" ||
 
17385
         test ! -s conftest.err
 
17386
       } && test -s conftest$ac_exeext &&
 
17387
       $as_test_x conftest$ac_exeext; then
 
17388
  ac_cv_func_chflags=yes
 
17389
else
 
17390
  echo "$as_me: failed program was:" >&5
 
17391
sed 's/^/| /' conftest.$ac_ext >&5
 
17392
 
 
17393
        ac_cv_func_chflags=no
 
17394
fi
 
17395
 
 
17396
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17397
      conftest$ac_exeext conftest.$ac_ext
 
17398
fi
 
17399
{ echo "$as_me:$LINENO: result: $ac_cv_func_chflags" >&5
 
17400
echo "${ECHO_T}$ac_cv_func_chflags" >&6; }
 
17401
if test $ac_cv_func_chflags = yes; then
 
17402
  ac_cv_have_chflags="yes"
 
17403
else
 
17404
  ac_cv_have_chflags="no"
 
17405
fi
 
17406
 
 
17407
fi
 
17408
if test "$ac_cv_have_chflags" = yes ; then
17242
17409
 
17243
17410
cat >>confdefs.h <<\_ACEOF
17244
17411
#define HAVE_CHFLAGS 1
17245
17412
_ACEOF
17246
17413
 
17247
 
  { echo "$as_me:$LINENO: result: yes" >&5
17248
 
echo "${ECHO_T}yes" >&6; }
17249
 
else
17250
 
  echo "$as_me: program exited with status $ac_status" >&5
17251
 
echo "$as_me: failed program was:" >&5
17252
 
sed 's/^/| /' conftest.$ac_ext >&5
17253
 
 
17254
 
( exit $ac_status )
17255
 
{ echo "$as_me:$LINENO: result: no" >&5
17256
 
echo "${ECHO_T}no" >&6; }
17257
 
 
17258
 
fi
17259
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17260
 
fi
17261
 
 
17262
 
 
 
17414
fi
17263
17415
 
17264
17416
{ echo "$as_me:$LINENO: checking for lchflags" >&5
17265
17417
echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
17266
 
if test "$cross_compiling" = yes; then
17267
 
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17268
 
See \`config.log' for more details." >&5
17269
 
echo "$as_me: error: cannot run test program while cross compiling
17270
 
See \`config.log' for more details." >&2;}
17271
 
   { (exit 1); exit 1; }; }
 
17418
if test "${ac_cv_have_lchflags+set}" = set; then
 
17419
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17420
else
 
17421
  if test "$cross_compiling" = yes; then
 
17422
  ac_cv_have_lchflags=cross
17272
17423
else
17273
17424
  cat >conftest.$ac_ext <<_ACEOF
17274
17425
/* confdefs.h.  */
17276
17427
cat confdefs.h >>conftest.$ac_ext
17277
17428
cat >>conftest.$ac_ext <<_ACEOF
17278
17429
/* end confdefs.h.  */
17279
 
 
 
17430
[
17280
17431
#include <sys/stat.h>
17281
17432
#include <unistd.h>
17282
17433
int main(int argc, char*argv[])
17285
17436
    return 1;
17286
17437
  return 0;
17287
17438
}
17288
 
 
 
17439
]
17289
17440
_ACEOF
17290
17441
rm -f conftest$ac_exeext
17291
17442
if { (ac_try="$ac_link"
17307
17458
  ac_status=$?
17308
17459
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309
17460
  (exit $ac_status); }; }; then
 
17461
  ac_cv_have_lchflags=yes
 
17462
else
 
17463
  echo "$as_me: program exited with status $ac_status" >&5
 
17464
echo "$as_me: failed program was:" >&5
 
17465
sed 's/^/| /' conftest.$ac_ext >&5
 
17466
 
 
17467
( exit $ac_status )
 
17468
ac_cv_have_lchflags=no
 
17469
fi
 
17470
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
17471
fi
 
17472
 
 
17473
 
 
17474
 
 
17475
fi
 
17476
{ echo "$as_me:$LINENO: result: $ac_cv_have_lchflags" >&5
 
17477
echo "${ECHO_T}$ac_cv_have_lchflags" >&6; }
 
17478
if test "$ac_cv_have_lchflags" = cross ; then
 
17479
  { echo "$as_me:$LINENO: checking for lchflags" >&5
 
17480
echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
 
17481
if test "${ac_cv_func_lchflags+set}" = set; then
 
17482
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17483
else
 
17484
  cat >conftest.$ac_ext <<_ACEOF
 
17485
/* confdefs.h.  */
 
17486
_ACEOF
 
17487
cat confdefs.h >>conftest.$ac_ext
 
17488
cat >>conftest.$ac_ext <<_ACEOF
 
17489
/* end confdefs.h.  */
 
17490
/* Define lchflags to an innocuous variant, in case <limits.h> declares lchflags.
 
17491
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
17492
#define lchflags innocuous_lchflags
 
17493
 
 
17494
/* System header to define __stub macros and hopefully few prototypes,
 
17495
    which can conflict with char lchflags (); below.
 
17496
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
17497
    <limits.h> exists even on freestanding compilers.  */
 
17498
 
 
17499
#ifdef __STDC__
 
17500
# include <limits.h>
 
17501
#else
 
17502
# include <assert.h>
 
17503
#endif
 
17504
 
 
17505
#undef lchflags
 
17506
 
 
17507
/* Override any GCC internal prototype to avoid an error.
 
17508
   Use char because int might match the return type of a GCC
 
17509
   builtin and then its argument prototype would still apply.  */
 
17510
#ifdef __cplusplus
 
17511
extern "C"
 
17512
#endif
 
17513
char lchflags ();
 
17514
/* The GNU C library defines this for functions which it implements
 
17515
    to always fail with ENOSYS.  Some functions are actually named
 
17516
    something starting with __ and the normal name is an alias.  */
 
17517
#if defined __stub_lchflags || defined __stub___lchflags
 
17518
choke me
 
17519
#endif
 
17520
 
 
17521
int
 
17522
main ()
 
17523
{
 
17524
return lchflags ();
 
17525
  ;
 
17526
  return 0;
 
17527
}
 
17528
_ACEOF
 
17529
rm -f conftest.$ac_objext conftest$ac_exeext
 
17530
if { (ac_try="$ac_link"
 
17531
case "(($ac_try" in
 
17532
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17533
  *) ac_try_echo=$ac_try;;
 
17534
esac
 
17535
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17536
  (eval "$ac_link") 2>conftest.er1
 
17537
  ac_status=$?
 
17538
  grep -v '^ *+' conftest.er1 >conftest.err
 
17539
  rm -f conftest.er1
 
17540
  cat conftest.err >&5
 
17541
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17542
  (exit $ac_status); } && {
 
17543
         test -z "$ac_c_werror_flag" ||
 
17544
         test ! -s conftest.err
 
17545
       } && test -s conftest$ac_exeext &&
 
17546
       $as_test_x conftest$ac_exeext; then
 
17547
  ac_cv_func_lchflags=yes
 
17548
else
 
17549
  echo "$as_me: failed program was:" >&5
 
17550
sed 's/^/| /' conftest.$ac_ext >&5
 
17551
 
 
17552
        ac_cv_func_lchflags=no
 
17553
fi
 
17554
 
 
17555
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17556
      conftest$ac_exeext conftest.$ac_ext
 
17557
fi
 
17558
{ echo "$as_me:$LINENO: result: $ac_cv_func_lchflags" >&5
 
17559
echo "${ECHO_T}$ac_cv_func_lchflags" >&6; }
 
17560
if test $ac_cv_func_lchflags = yes; then
 
17561
  ac_cv_have_lchflags="yes"
 
17562
else
 
17563
  ac_cv_have_lchflags="no"
 
17564
fi
 
17565
 
 
17566
fi
 
17567
if test "$ac_cv_have_lchflags" = yes ; then
17310
17568
 
17311
17569
cat >>confdefs.h <<\_ACEOF
17312
17570
#define HAVE_LCHFLAGS 1
17313
17571
_ACEOF
17314
17572
 
17315
 
  { echo "$as_me:$LINENO: result: yes" >&5
17316
 
echo "${ECHO_T}yes" >&6; }
17317
 
else
17318
 
  echo "$as_me: program exited with status $ac_status" >&5
17319
 
echo "$as_me: failed program was:" >&5
17320
 
sed 's/^/| /' conftest.$ac_ext >&5
17321
 
 
17322
 
( exit $ac_status )
17323
 
{ echo "$as_me:$LINENO: result: no" >&5
17324
 
echo "${ECHO_T}no" >&6; }
17325
 
 
17326
 
fi
17327
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17328
 
fi
17329
 
 
17330
 
 
 
17573
fi
17331
17574
 
17332
17575
case $ac_sys_system/$ac_sys_release in
17333
17576
Darwin/*)
22857
23100
_ACEOF
22858
23101
 
22859
23102
      ;;
 
23103
*) { { echo "$as_me:$LINENO: error: invalid value for --enable-unicode. Use either ucs2 or ucs4 (lowercase)." >&5
 
23104
echo "$as_me: error: invalid value for --enable-unicode. Use either ucs2 or ucs4 (lowercase)." >&2;}
 
23105
   { (exit 1); exit 1; }; } ;;
22860
23106
esac
22861
23107
 
22862
23108
 
23499
23745
fi
23500
23746
rm -f -r conftest*
23501
23747
 
 
23748
  cat >conftest.$ac_ext <<_ACEOF
 
23749
/* confdefs.h.  */
 
23750
_ACEOF
 
23751
cat confdefs.h >>conftest.$ac_ext
 
23752
cat >>conftest.$ac_ext <<_ACEOF
 
23753
/* end confdefs.h.  */
 
23754
#include <readline/readline.h>
 
23755
 
 
23756
_ACEOF
 
23757
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
23758
  $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then
 
23759
 
 
23760
cat >>confdefs.h <<\_ACEOF
 
23761
#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1
 
23762
_ACEOF
 
23763
 
 
23764
fi
 
23765
rm -f -r conftest*
 
23766
 
23502
23767
fi
23503
23768
 
23504
23769
# check for readline 4.0
24919
25184
  THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
24920
25185
done
24921
25186
 
 
25187
if test $ac_sys_system = Darwin
 
25188
then
 
25189
        LIBS="$LIBS -framework CoreFoundation"
 
25190
fi
 
25191
 
 
25192
 
 
25193
 
24922
25194
 
24923
25195
SRCDIRS="Parser Grammar Objects Python Modules Mac"
24924
25196
{ echo "$as_me:$LINENO: checking for build directories" >&5
25598
25870
CONFIG_ARGS!$CONFIG_ARGS$ac_delim
25599
25871
UNIVERSALSDK!$UNIVERSALSDK$ac_delim
25600
25872
ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim
 
25873
LIPO_32BIT_FLAGS!$LIPO_32BIT_FLAGS$ac_delim
 
25874
LIPO_64BIT_FLAGS!$LIPO_64BIT_FLAGS$ac_delim
 
25875
UNIVERSAL_ARCH32_FLAGS!$UNIVERSAL_ARCH32_FLAGS$ac_delim
 
25876
UNIVERSAL_ARCH64_FLAGS!$UNIVERSAL_ARCH64_FLAGS$ac_delim
25601
25877
PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
25602
25878
PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
25603
25879
PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
25649
25925
LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
25650
25926
SO!$SO$ac_delim
25651
25927
LDSHARED!$LDSHARED$ac_delim
 
25928
_ACEOF
 
25929
 
 
25930
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 
25931
    break
 
25932
  elif $ac_last_try; then
 
25933
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
25934
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
25935
   { (exit 1); exit 1; }; }
 
25936
  else
 
25937
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
25938
  fi
 
25939
done
 
25940
 
 
25941
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
25942
if test -n "$ac_eof"; then
 
25943
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
25944
  ac_eof=`expr $ac_eof + 1`
 
25945
fi
 
25946
 
 
25947
cat >>$CONFIG_STATUS <<_ACEOF
 
25948
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
 
25949
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
25950
_ACEOF
 
25951
sed '
 
25952
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
25953
s/^/s,@/; s/!/@,|#_!!_#|/
 
25954
:n
 
25955
t n
 
25956
s/'"$ac_delim"'$/,g/; t
 
25957
s/$/\\/; p
 
25958
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
25959
' >>$CONFIG_STATUS <conf$$subs.sed
 
25960
rm -f conf$$subs.sed
 
25961
cat >>$CONFIG_STATUS <<_ACEOF
 
25962
CEOF$ac_eof
 
25963
_ACEOF
 
25964
 
 
25965
 
 
25966
ac_delim='%!_!# '
 
25967
for ac_last_try in false false false false false :; do
 
25968
  cat >conf$$subs.sed <<_ACEOF
25652
25969
BLDSHARED!$BLDSHARED$ac_delim
25653
25970
CCSHARED!$CCSHARED$ac_delim
25654
25971
LINKFORSHARED!$LINKFORSHARED$ac_delim
25655
25972
CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
25656
 
_ACEOF
25657
 
 
25658
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25659
 
    break
25660
 
  elif $ac_last_try; then
25661
 
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25662
 
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25663
 
   { (exit 1); exit 1; }; }
25664
 
  else
25665
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25666
 
  fi
25667
 
done
25668
 
 
25669
 
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25670
 
if test -n "$ac_eof"; then
25671
 
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25672
 
  ac_eof=`expr $ac_eof + 1`
25673
 
fi
25674
 
 
25675
 
cat >>$CONFIG_STATUS <<_ACEOF
25676
 
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25677
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25678
 
_ACEOF
25679
 
sed '
25680
 
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25681
 
s/^/s,@/; s/!/@,|#_!!_#|/
25682
 
:n
25683
 
t n
25684
 
s/'"$ac_delim"'$/,g/; t
25685
 
s/$/\\/; p
25686
 
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25687
 
' >>$CONFIG_STATUS <conf$$subs.sed
25688
 
rm -f conf$$subs.sed
25689
 
cat >>$CONFIG_STATUS <<_ACEOF
25690
 
CEOF$ac_eof
25691
 
_ACEOF
25692
 
 
25693
 
 
25694
 
ac_delim='%!_!# '
25695
 
for ac_last_try in false false false false false :; do
25696
 
  cat >conf$$subs.sed <<_ACEOF
25697
25973
SHLIBS!$SHLIBS$ac_delim
25698
25974
USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
25699
25975
SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
25718
25994
LTLIBOBJS!$LTLIBOBJS$ac_delim
25719
25995
_ACEOF
25720
25996
 
25721
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
 
25997
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 26; then
25722
25998
    break
25723
25999
  elif $ac_last_try; then
25724
26000
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5