2
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.65 for opencc 0.1.0.
3
# Generated by GNU Autoconf 2.64 for opencc 0.1.1.
5
5
# Report bugs to <http://code.google.com/p/open-chinese-convert/issues/entry>.
8
7
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
13
11
# This configure script is free software; the Free Software Foundation
14
12
# gives unlimited permission to copy, distribute and modify it.
2371
2367
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2370
# Make sure we can run config.sub.
2371
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2372
as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2374
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2375
$as_echo_n "checking build system type... " >&6; }
2376
if test "${ac_cv_build+set}" = set; then :
2377
$as_echo_n "(cached) " >&6
2379
ac_build_alias=$build_alias
2380
test "x$ac_build_alias" = x &&
2381
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2382
test "x$ac_build_alias" = x &&
2383
as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2384
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2385
as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2388
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2389
$as_echo "$ac_cv_build" >&6; }
2390
case $ac_cv_build in
2392
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2395
ac_save_IFS=$IFS; IFS='-'
2401
# Remember, the first character of IFS is used to create $*,
2402
# except with old shells:
2405
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2408
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2409
$as_echo_n "checking host system type... " >&6; }
2410
if test "${ac_cv_host+set}" = set; then :
2411
$as_echo_n "(cached) " >&6
2413
if test "x$host_alias" = x; then
2414
ac_cv_host=$ac_cv_build
2416
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2417
as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2421
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2422
$as_echo "$ac_cv_host" >&6; }
2425
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2428
ac_save_IFS=$IFS; IFS='-'
2434
# Remember, the first character of IFS is used to create $*,
2435
# except with old shells:
2438
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2442
am__api_version='1.11'
2374
2444
# Find a good install program. We prefer a C program (faster),
2375
2445
# so one script is as good as another. But avoid the broken or
2376
2446
# incompatible versions:
3231
3301
... rest of stderr output deleted ...
3232
3302
10q' conftest.err >conftest.er1
3233
3303
cat conftest.er1 >&5
3304
rm -f conftest.er1 conftest.err
3235
rm -f conftest.er1 conftest.err
3236
3306
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3237
3307
test $ac_status = 0; }
3240
3310
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3241
3311
/* end confdefs.h. */
3316
FILE *f = fopen ("conftest.out", "w");
3317
return ferror (f) || fclose (f) != 0;
3251
3323
ac_clean_files_save=$ac_clean_files
3252
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3324
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3253
3325
# Try to create an executable without -o first, disregard a.out.
3254
3326
# It will help us diagnose broken compilers, and finding out an intuition
3256
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3257
$as_echo_n "checking whether the C compiler works... " >&6; }
3328
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3329
$as_echo_n "checking for C compiler default output file name... " >&6; }
3258
3330
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3260
3332
# The possible output files:
3327
3399
{ as_fn_set_status 77
3328
3400
as_fn_error "C compiler cannot create executables
3329
3401
See \`config.log' for more details." "$LINENO" 5; }; }
3331
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3332
$as_echo "yes" >&6; }
3334
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3335
$as_echo_n "checking for C compiler default output file name... " >&6; }
3336
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3337
$as_echo "$ac_file" >&6; }
3338
3403
ac_exeext=$ac_cv_exeext
3340
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3405
# Check that the compiler produces executables we can run. If not, either
3406
# the compiler is broken, or we cross compile.
3407
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3408
$as_echo_n "checking whether the C compiler works... " >&6; }
3409
# If not cross compiling, check that we can run a simple program.
3410
if test "$cross_compiling" != yes; then
3411
if { ac_try='./$ac_file'
3412
{ { case "(($ac_try" in
3413
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414
*) ac_try_echo=$ac_try;;
3416
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3417
$as_echo "$ac_try_echo"; } >&5
3418
(eval "$ac_try") 2>&5
3420
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3421
test $ac_status = 0; }; }; then
3424
if test "$cross_compiling" = maybe; then
3427
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3428
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3429
as_fn_error "cannot run C compiled programs.
3430
If you meant to cross compile, use \`--host'.
3431
See \`config.log' for more details." "$LINENO" 5; }
3435
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3436
$as_echo "yes" >&6; }
3438
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3341
3439
ac_clean_files=$ac_clean_files_save
3440
# Check that the compiler produces executables we can run. If not, either
3441
# the compiler is broken, or we cross compile.
3442
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3443
$as_echo_n "checking whether we are cross compiling... " >&6; }
3444
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3445
$as_echo "$cross_compiling" >&6; }
3342
3447
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3343
3448
$as_echo_n "checking for suffix of executables... " >&6; }
3344
3449
if { { ac_try="$ac_link"
3371
3476
as_fn_error "cannot compute suffix of executables: cannot compile and link
3372
3477
See \`config.log' for more details." "$LINENO" 5; }
3374
rm -f conftest conftest$ac_cv_exeext
3479
rm -f conftest$ac_cv_exeext
3375
3480
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3376
3481
$as_echo "$ac_cv_exeext" >&6; }
3378
3483
rm -f conftest.$ac_ext
3379
3484
EXEEXT=$ac_cv_exeext
3380
3485
ac_exeext=$EXEEXT
3381
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3382
/* end confdefs.h. */
3387
FILE *f = fopen ("conftest.out", "w");
3388
return ferror (f) || fclose (f) != 0;
3394
ac_clean_files="$ac_clean_files conftest.out"
3395
# Check that the compiler produces executables we can run. If not, either
3396
# the compiler is broken, or we cross compile.
3397
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3398
$as_echo_n "checking whether we are cross compiling... " >&6; }
3399
if test "$cross_compiling" != yes; then
3400
{ { ac_try="$ac_link"
3402
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403
*) ac_try_echo=$ac_try;;
3405
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3406
$as_echo "$ac_try_echo"; } >&5
3407
(eval "$ac_link") 2>&5
3409
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3410
test $ac_status = 0; }
3411
if { ac_try='./conftest$ac_cv_exeext'
3412
{ { case "(($ac_try" in
3413
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414
*) ac_try_echo=$ac_try;;
3416
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3417
$as_echo "$ac_try_echo"; } >&5
3418
(eval "$ac_try") 2>&5
3420
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3421
test $ac_status = 0; }; }; then
3424
if test "$cross_compiling" = maybe; then
3427
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3428
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3429
as_fn_error "cannot run C compiled programs.
3430
If you meant to cross compile, use \`--host'.
3431
See \`config.log' for more details." "$LINENO" 5; }
3435
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3436
$as_echo "$cross_compiling" >&6; }
3438
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3439
ac_clean_files=$ac_clean_files_save
3440
3486
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3441
3487
$as_echo_n "checking for suffix of object files... " >&6; }
3442
3488
if test "${ac_cv_objext+set}" = set; then :
5521
5567
ltmain="$ac_aux_dir/ltmain.sh"
5523
# Make sure we can run config.sub.
5524
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5525
as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5527
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5528
$as_echo_n "checking build system type... " >&6; }
5529
if test "${ac_cv_build+set}" = set; then :
5530
$as_echo_n "(cached) " >&6
5532
ac_build_alias=$build_alias
5533
test "x$ac_build_alias" = x &&
5534
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5535
test "x$ac_build_alias" = x &&
5536
as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
5537
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5538
as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5541
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5542
$as_echo "$ac_cv_build" >&6; }
5543
case $ac_cv_build in
5545
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
5548
ac_save_IFS=$IFS; IFS='-'
5554
# Remember, the first character of IFS is used to create $*,
5555
# except with old shells:
5558
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5561
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5562
$as_echo_n "checking host system type... " >&6; }
5563
if test "${ac_cv_host+set}" = set; then :
5564
$as_echo_n "(cached) " >&6
5566
if test "x$host_alias" = x; then
5567
ac_cv_host=$ac_cv_build
5569
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5570
as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5574
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5575
$as_echo "$ac_cv_host" >&6; }
5578
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
5581
ac_save_IFS=$IFS; IFS='-'
5587
# Remember, the first character of IFS is used to create $*,
5588
# except with old shells:
5591
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5594
5569
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5595
5570
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5596
5571
if test "${ac_cv_path_SED+set}" = set; then :
11672
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11673
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11674
if test "${ac_cv_c_bigendian+set}" = set; then :
11675
$as_echo_n "(cached) " >&6
11677
ac_cv_c_bigendian=unknown
11678
# See if we're dealing with a universal compiler.
11679
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11680
/* end confdefs.h. */
11681
#ifndef __APPLE_CC__
11682
not a universal capable compiler
11687
if ac_fn_c_try_compile "$LINENO"; then :
11689
# Check for potential -arch flags. It is not universal unless
11690
# there are at least two -arch flags with different values.
11693
for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11694
if test -n "$ac_prev"; then
11696
i?86 | x86_64 | ppc | ppc64)
11697
if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11700
ac_cv_c_bigendian=universal
11706
elif test "x$ac_word" = "x-arch"; then
11711
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11712
if test $ac_cv_c_bigendian = unknown; then
11713
# See if sys/param.h defines the BYTE_ORDER macro.
11714
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11715
/* end confdefs.h. */
11716
#include <sys/types.h>
11717
#include <sys/param.h>
11722
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11723
&& defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11725
bogus endian macros
11732
if ac_fn_c_try_compile "$LINENO"; then :
11733
# It does; now see whether it defined to BIG_ENDIAN or not.
11734
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11735
/* end confdefs.h. */
11736
#include <sys/types.h>
11737
#include <sys/param.h>
11742
#if BYTE_ORDER != BIG_ENDIAN
11750
if ac_fn_c_try_compile "$LINENO"; then :
11751
ac_cv_c_bigendian=yes
11753
ac_cv_c_bigendian=no
11755
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11757
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11759
if test $ac_cv_c_bigendian = unknown; then
11760
# See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11761
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11762
/* end confdefs.h. */
11763
#include <limits.h>
11768
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11769
bogus endian macros
11776
if ac_fn_c_try_compile "$LINENO"; then :
11777
# It does; now see whether it defined to _BIG_ENDIAN or not.
11778
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11779
/* end confdefs.h. */
11780
#include <limits.h>
11785
#ifndef _BIG_ENDIAN
11793
if ac_fn_c_try_compile "$LINENO"; then :
11794
ac_cv_c_bigendian=yes
11796
ac_cv_c_bigendian=no
11798
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11800
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11802
if test $ac_cv_c_bigendian = unknown; then
11803
# Compile a test program.
11804
if test "$cross_compiling" = yes; then :
11805
# Try to guess by grepping values from an object file.
11806
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11807
/* end confdefs.h. */
11808
short int ascii_mm[] =
11809
{ 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11810
short int ascii_ii[] =
11811
{ 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11812
int use_ascii (int i) {
11813
return ascii_mm[i] + ascii_ii[i];
11815
short int ebcdic_ii[] =
11816
{ 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11817
short int ebcdic_mm[] =
11818
{ 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11819
int use_ebcdic (int i) {
11820
return ebcdic_mm[i] + ebcdic_ii[i];
11827
return use_ascii (foo) == use_ebcdic (foo);
11832
if ac_fn_c_try_compile "$LINENO"; then :
11833
if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11834
ac_cv_c_bigendian=yes
11836
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11837
if test "$ac_cv_c_bigendian" = unknown; then
11838
ac_cv_c_bigendian=no
11840
# finding both strings is unlikely to happen, but who knows?
11841
ac_cv_c_bigendian=unknown
11845
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11847
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11848
/* end confdefs.h. */
11849
$ac_includes_default
11854
/* Are we little or big endian? From Harbison&Steele. */
11858
char c[sizeof (long int)];
11861
return u.c[sizeof (long int) - 1] == 1;
11867
if ac_fn_c_try_run "$LINENO"; then :
11868
ac_cv_c_bigendian=no
11870
ac_cv_c_bigendian=yes
11872
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11873
conftest.$ac_objext conftest.beam conftest.$ac_ext
11878
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11879
$as_echo "$ac_cv_c_bigendian" >&6; }
11880
case $ac_cv_c_bigendian in #(
11882
$as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11888
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11892
as_fn_error "unknown endianness
11893
presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11896
if test "x$ac_cv_c_bigendian" = "xyes"; then
11897
BYTEORDER="BIG_ENDIAN"
11899
BYTEORDER="LITTLE_ENDIAN"
11904
*-apple-*) LIB_ICONV="-liconv" ;;
11698
11909
# If only source code changed, lt_revision + 1
11699
11910
# If any interface added, lt_age + 1
11700
11911
# If any interfaces changed or removed, lt_current + 1, lt_revision = 0, lt_age = 0