~ubuntu-branches/ubuntu/trusty/manaplus/trusty-proposed

« back to all changes in this revision

Viewing changes to configure

  • Committer: Package Import Robot
  • Author(s): Patrick Matthäi
  • Date: 2013-09-17 10:35:51 UTC
  • mfrom: (1.1.10)
  • Revision ID: package-import@ubuntu.com-20130917103551-az7p3nz9jgxwqjfn
Tags: 1.3.9.15-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.69 for ManaPlus 1.3.9.1.
 
3
# Generated by GNU Autoconf 2.69 for ManaPlus 1.3.9.15.
4
4
#
5
5
# Report bugs to <akaras@inbox.ru>.
6
6
#
580
580
# Identity of this package.
581
581
PACKAGE_NAME='ManaPlus'
582
582
PACKAGE_TARNAME='manaplus'
583
 
PACKAGE_VERSION='1.3.9.1'
584
 
PACKAGE_STRING='ManaPlus 1.3.9.1'
 
583
PACKAGE_VERSION='1.3.9.15'
 
584
PACKAGE_STRING='ManaPlus 1.3.9.15'
585
585
PACKAGE_BUGREPORT='akaras@inbox.ru'
586
586
PACKAGE_URL=''
587
587
 
621
621
# include <unistd.h>
622
622
#endif"
623
623
 
 
624
ac_header_list=
624
625
gt_needs=
625
626
ac_subst_vars='am__EXEEXT_FALSE
626
627
am__EXEEXT_TRUE
1341
1342
  # Omit some internal or obsolete options to make the list less imposing.
1342
1343
  # This message is too long to be a string in the A/UX 3.1 sh.
1343
1344
  cat <<_ACEOF
1344
 
\`configure' configures ManaPlus 1.3.9.1 to adapt to many kinds of systems.
 
1345
\`configure' configures ManaPlus 1.3.9.15 to adapt to many kinds of systems.
1345
1346
 
1346
1347
Usage: $0 [OPTION]... [VAR=VALUE]...
1347
1348
 
1411
1412
 
1412
1413
if test -n "$ac_init_help"; then
1413
1414
  case $ac_init_help in
1414
 
     short | recursive ) echo "Configuration of ManaPlus 1.3.9.1:";;
 
1415
     short | recursive ) echo "Configuration of ManaPlus 1.3.9.15:";;
1415
1416
   esac
1416
1417
  cat <<\_ACEOF
1417
1418
 
1445
1446
  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1446
1447
  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1447
1448
  --without-libintl-prefix     don't search for libintl in includedir and libdir
1448
 
  --with-sdl        enable experimental SDL 2 support
 
1449
  --with-sdl2        enable experimental SDL 2 support
1449
1450
  --without-pthread        don't check for pthread
1450
1451
  --without-opengl        don't use OpenGL
1451
1452
  --without-internalguichan        don't use internal guichan
1530
1531
test -n "$ac_init_help" && exit $ac_status
1531
1532
if $ac_init_version; then
1532
1533
  cat <<\_ACEOF
1533
 
ManaPlus configure 1.3.9.1
 
1534
ManaPlus configure 1.3.9.15
1534
1535
generated by GNU Autoconf 2.69
1535
1536
 
1536
1537
Copyright (C) 2012 Free Software Foundation, Inc.
1933
1934
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1934
1935
 
1935
1936
} # ac_fn_cxx_check_func
 
1937
 
 
1938
# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
 
1939
# ---------------------------------------------
 
1940
# Tests whether TYPE exists after having included INCLUDES, setting cache
 
1941
# variable VAR accordingly.
 
1942
ac_fn_cxx_check_type ()
 
1943
{
 
1944
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1945
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1946
$as_echo_n "checking for $2... " >&6; }
 
1947
if eval \${$3+:} false; then :
 
1948
  $as_echo_n "(cached) " >&6
 
1949
else
 
1950
  eval "$3=no"
 
1951
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1952
/* end confdefs.h.  */
 
1953
$4
 
1954
int
 
1955
main ()
 
1956
{
 
1957
if (sizeof ($2))
 
1958
         return 0;
 
1959
  ;
 
1960
  return 0;
 
1961
}
 
1962
_ACEOF
 
1963
if ac_fn_cxx_try_compile "$LINENO"; then :
 
1964
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1965
/* end confdefs.h.  */
 
1966
$4
 
1967
int
 
1968
main ()
 
1969
{
 
1970
if (sizeof (($2)))
 
1971
            return 0;
 
1972
  ;
 
1973
  return 0;
 
1974
}
 
1975
_ACEOF
 
1976
if ac_fn_cxx_try_compile "$LINENO"; then :
 
1977
 
 
1978
else
 
1979
  eval "$3=yes"
 
1980
fi
 
1981
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1982
fi
 
1983
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1984
fi
 
1985
eval ac_res=\$$3
 
1986
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1987
$as_echo "$ac_res" >&6; }
 
1988
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1989
 
 
1990
} # ac_fn_cxx_check_type
 
1991
 
 
1992
# ac_fn_c_find_intX_t LINENO BITS VAR
 
1993
# -----------------------------------
 
1994
# Finds a signed integer type with width BITS, setting cache variable VAR
 
1995
# accordingly.
 
1996
ac_fn_c_find_intX_t ()
 
1997
{
 
1998
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1999
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
 
2000
$as_echo_n "checking for int$2_t... " >&6; }
 
2001
if eval \${$3+:} false; then :
 
2002
  $as_echo_n "(cached) " >&6
 
2003
else
 
2004
  eval "$3=no"
 
2005
     # Order is important - never check a type that is potentially smaller
 
2006
     # than half of the expected target width.
 
2007
     for ac_type in int$2_t 'int' 'long int' \
 
2008
         'long long int' 'short int' 'signed char'; do
 
2009
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2010
/* end confdefs.h.  */
 
2011
$ac_includes_default
 
2012
             enum { N = $2 / 2 - 1 };
 
2013
int
 
2014
main ()
 
2015
{
 
2016
static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
 
2017
test_array [0] = 0;
 
2018
return test_array [0];
 
2019
 
 
2020
  ;
 
2021
  return 0;
 
2022
}
 
2023
_ACEOF
 
2024
if ac_fn_cxx_try_compile "$LINENO"; then :
 
2025
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2026
/* end confdefs.h.  */
 
2027
$ac_includes_default
 
2028
                enum { N = $2 / 2 - 1 };
 
2029
int
 
2030
main ()
 
2031
{
 
2032
static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
 
2033
                 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
 
2034
test_array [0] = 0;
 
2035
return test_array [0];
 
2036
 
 
2037
  ;
 
2038
  return 0;
 
2039
}
 
2040
_ACEOF
 
2041
if ac_fn_cxx_try_compile "$LINENO"; then :
 
2042
 
 
2043
else
 
2044
  case $ac_type in #(
 
2045
  int$2_t) :
 
2046
    eval "$3=yes" ;; #(
 
2047
  *) :
 
2048
    eval "$3=\$ac_type" ;;
 
2049
esac
 
2050
fi
 
2051
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2052
fi
 
2053
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2054
       if eval test \"x\$"$3"\" = x"no"; then :
 
2055
 
 
2056
else
 
2057
  break
 
2058
fi
 
2059
     done
 
2060
fi
 
2061
eval ac_res=\$$3
 
2062
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2063
$as_echo "$ac_res" >&6; }
 
2064
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2065
 
 
2066
} # ac_fn_c_find_intX_t
 
2067
 
 
2068
# ac_fn_c_find_uintX_t LINENO BITS VAR
 
2069
# ------------------------------------
 
2070
# Finds an unsigned integer type with width BITS, setting cache variable VAR
 
2071
# accordingly.
 
2072
ac_fn_c_find_uintX_t ()
 
2073
{
 
2074
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2075
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
 
2076
$as_echo_n "checking for uint$2_t... " >&6; }
 
2077
if eval \${$3+:} false; then :
 
2078
  $as_echo_n "(cached) " >&6
 
2079
else
 
2080
  eval "$3=no"
 
2081
     # Order is important - never check a type that is potentially smaller
 
2082
     # than half of the expected target width.
 
2083
     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
 
2084
         'unsigned long long int' 'unsigned short int' 'unsigned char'; do
 
2085
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2086
/* end confdefs.h.  */
 
2087
$ac_includes_default
 
2088
int
 
2089
main ()
 
2090
{
 
2091
static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
 
2092
test_array [0] = 0;
 
2093
return test_array [0];
 
2094
 
 
2095
  ;
 
2096
  return 0;
 
2097
}
 
2098
_ACEOF
 
2099
if ac_fn_cxx_try_compile "$LINENO"; then :
 
2100
  case $ac_type in #(
 
2101
  uint$2_t) :
 
2102
    eval "$3=yes" ;; #(
 
2103
  *) :
 
2104
    eval "$3=\$ac_type" ;;
 
2105
esac
 
2106
fi
 
2107
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2108
       if eval test \"x\$"$3"\" = x"no"; then :
 
2109
 
 
2110
else
 
2111
  break
 
2112
fi
 
2113
     done
 
2114
fi
 
2115
eval ac_res=\$$3
 
2116
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2117
$as_echo "$ac_res" >&6; }
 
2118
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2119
 
 
2120
} # ac_fn_c_find_uintX_t
1936
2121
cat >config.log <<_ACEOF
1937
2122
This file contains any messages produced by compilers while
1938
2123
running configure, to aid debugging if configure makes a mistake.
1939
2124
 
1940
 
It was created by ManaPlus $as_me 1.3.9.1, which was
 
2125
It was created by ManaPlus $as_me 1.3.9.15, which was
1941
2126
generated by GNU Autoconf 2.69.  Invocation command line was
1942
2127
 
1943
2128
  $ $0 $@
2217
2402
  >$cache_file
2218
2403
fi
2219
2404
 
 
2405
as_fn_append ac_header_list " stdlib.h"
 
2406
as_fn_append ac_header_list " unistd.h"
 
2407
as_fn_append ac_header_list " sys/param.h"
2220
2408
gt_needs="$gt_needs need-ngettext"
2221
2409
# Check that the precious variables saved in the cache have kept the same
2222
2410
# value.
2286
2474
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2287
2475
 
2288
2476
 
2289
 
am__api_version='1.13'
 
2477
am__api_version='1.14'
2290
2478
 
2291
2479
ac_aux_dir=
2292
2480
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2801
2989
 
2802
2990
# Define the identity of the package.
2803
2991
 PACKAGE='manaplus'
2804
 
 VERSION='1.3.9.1'
 
2992
 VERSION='1.3.9.15'
2805
2993
 
2806
2994
 
2807
2995
cat >>confdefs.h <<_ACEOF
2852
3040
 
2853
3041
 
2854
3042
 
 
3043
# POSIX will say in a future version that running "rm -f" with no argument
 
3044
# is OK; and we want to be able to make that assumption in our Makefile
 
3045
# recipes.  So use an aggressive probe to check that the usage we want is
 
3046
# actually supported "in the wild" to an acceptable degree.
 
3047
# See automake bug#10828.
 
3048
# To make any issue more visible, cause the running configure to be aborted
 
3049
# by default if the 'rm' program in use doesn't match our expectations; the
 
3050
# user can still override this though.
 
3051
if rm -f && rm -fr && rm -rf; then : OK; else
 
3052
  cat >&2 <<'END'
 
3053
Oops!
 
3054
 
 
3055
Your 'rm' program seems unable to run without file operands specified
 
3056
on the command line, even when the '-f' option is present.  This is contrary
 
3057
to the behaviour of most rm programs out there, and not conforming with
 
3058
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
 
3059
 
 
3060
Please tell bug-automake@gnu.org about your system, including the value
 
3061
of your $PATH and any error possibly output before this message.  This
 
3062
can help us improve future automake versions.
 
3063
 
 
3064
END
 
3065
  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
 
3066
    echo 'Configuration will proceed anyway, since you have set the' >&2
 
3067
    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
 
3068
    echo >&2
 
3069
  else
 
3070
    cat >&2 <<'END'
 
3071
Aborting the configuration process, to ensure you take notice of the issue.
 
3072
 
 
3073
You can download and install GNU coreutils to get an 'rm' implementation
 
3074
that behaves properly: <http://www.gnu.org/software/coreutils/>.
 
3075
 
 
3076
If you want to complete the configuration process using your problematic
 
3077
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
 
3078
to "yes", and re-run configure.
 
3079
 
 
3080
END
 
3081
    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
 
3082
  fi
 
3083
fi
2855
3084
ac_config_headers="$ac_config_headers config.h:config.h.in"
2856
3085
 
2857
3086
ac_ext=cpp
4115
4344
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4116
4345
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4117
4346
 
 
4347
ac_ext=c
 
4348
ac_cpp='$CPP $CPPFLAGS'
 
4349
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4350
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4351
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4352
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
 
4353
$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
 
4354
if ${am_cv_prog_cc_c_o+:} false; then :
 
4355
  $as_echo_n "(cached) " >&6
 
4356
else
 
4357
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4358
/* end confdefs.h.  */
 
4359
 
 
4360
int
 
4361
main ()
 
4362
{
 
4363
 
 
4364
  ;
 
4365
  return 0;
 
4366
}
 
4367
_ACEOF
 
4368
  # Make sure it works both with $CC and with simple cc.
 
4369
  # Following AC_PROG_CC_C_O, we do the test twice because some
 
4370
  # compilers refuse to overwrite an existing .o file with -o,
 
4371
  # though they will create one.
 
4372
  am_cv_prog_cc_c_o=yes
 
4373
  for am_i in 1 2; do
 
4374
    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
 
4375
   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
 
4376
   ac_status=$?
 
4377
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4378
   (exit $ac_status); } \
 
4379
         && test -f conftest2.$ac_objext; then
 
4380
      : OK
 
4381
    else
 
4382
      am_cv_prog_cc_c_o=no
 
4383
      break
 
4384
    fi
 
4385
  done
 
4386
  rm -f core conftest*
 
4387
  unset am_i
 
4388
fi
 
4389
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
 
4390
$as_echo "$am_cv_prog_cc_c_o" >&6; }
 
4391
if test "$am_cv_prog_cc_c_o" != yes; then
 
4392
   # Losing compiler, so override with the script.
 
4393
   # FIXME: It is wrong to rewrite CC.
 
4394
   # But if we don't then we get into trouble of one sort or another.
 
4395
   # A longer-term fix would be to have automake use am__CC in this case,
 
4396
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
4397
   CC="$am_aux_dir/compile $CC"
 
4398
fi
 
4399
ac_ext=cpp
 
4400
ac_cpp='$CXXCPP $CPPFLAGS'
 
4401
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4402
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4403
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4404
 
 
4405
 
4118
4406
depcc="$CC"   am_compiler_list=
4119
4407
 
4120
4408
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4243
4531
fi
4244
4532
 
4245
4533
 
4246
 
if test "x$CC" != xcc; then
4247
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4248
 
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4249
 
else
4250
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4251
 
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4252
 
fi
4253
 
set dummy $CC; ac_cc=`$as_echo "$2" |
4254
 
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4255
 
if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4256
 
  $as_echo_n "(cached) " >&6
4257
 
else
4258
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4259
 
/* end confdefs.h.  */
4260
 
 
4261
 
int
4262
 
main ()
4263
 
{
4264
 
 
4265
 
  ;
4266
 
  return 0;
4267
 
}
4268
 
_ACEOF
4269
 
# Make sure it works both with $CC and with simple cc.
4270
 
# We do the test twice because some compilers refuse to overwrite an
4271
 
# existing .o file with -o, though they will create one.
4272
 
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4273
 
rm -f conftest2.*
4274
 
if { { case "(($ac_try" in
4275
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276
 
  *) ac_try_echo=$ac_try;;
4277
 
esac
4278
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4279
 
$as_echo "$ac_try_echo"; } >&5
4280
 
  (eval "$ac_try") 2>&5
4281
 
  ac_status=$?
4282
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4283
 
  test $ac_status = 0; } &&
4284
 
   test -f conftest2.$ac_objext && { { case "(($ac_try" in
4285
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286
 
  *) ac_try_echo=$ac_try;;
4287
 
esac
4288
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4289
 
$as_echo "$ac_try_echo"; } >&5
4290
 
  (eval "$ac_try") 2>&5
4291
 
  ac_status=$?
4292
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4293
 
  test $ac_status = 0; };
4294
 
then
4295
 
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4296
 
  if test "x$CC" != xcc; then
4297
 
    # Test first that cc exists at all.
4298
 
    if { ac_try='cc -c conftest.$ac_ext >&5'
4299
 
  { { case "(($ac_try" in
4300
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4301
 
  *) ac_try_echo=$ac_try;;
4302
 
esac
4303
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4304
 
$as_echo "$ac_try_echo"; } >&5
4305
 
  (eval "$ac_try") 2>&5
4306
 
  ac_status=$?
4307
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4308
 
  test $ac_status = 0; }; }; then
4309
 
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4310
 
      rm -f conftest2.*
4311
 
      if { { case "(($ac_try" in
4312
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4313
 
  *) ac_try_echo=$ac_try;;
4314
 
esac
4315
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4316
 
$as_echo "$ac_try_echo"; } >&5
4317
 
  (eval "$ac_try") 2>&5
4318
 
  ac_status=$?
4319
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4320
 
  test $ac_status = 0; } &&
4321
 
         test -f conftest2.$ac_objext && { { case "(($ac_try" in
4322
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4323
 
  *) ac_try_echo=$ac_try;;
4324
 
esac
4325
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4326
 
$as_echo "$ac_try_echo"; } >&5
4327
 
  (eval "$ac_try") 2>&5
4328
 
  ac_status=$?
4329
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4330
 
  test $ac_status = 0; };
4331
 
      then
4332
 
        # cc works too.
4333
 
        :
4334
 
      else
4335
 
        # cc exists but doesn't like -o.
4336
 
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
4337
 
      fi
4338
 
    fi
4339
 
  fi
4340
 
else
4341
 
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
4342
 
fi
4343
 
rm -f core conftest*
4344
 
 
4345
 
fi
4346
 
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4347
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4348
 
$as_echo "yes" >&6; }
4349
 
else
4350
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4351
 
$as_echo "no" >&6; }
4352
 
 
4353
 
$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4354
 
 
4355
 
fi
4356
 
 
4357
 
# FIXME: we rely on the cache variable name because
4358
 
# there is no other way.
4359
 
set dummy $CC
4360
 
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4361
 
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4362
 
if test "$am_t" != yes; then
4363
 
   # Losing compiler, so override with the script.
4364
 
   # FIXME: It is wrong to rewrite CC.
4365
 
   # But if we don't then we get into trouble of one sort or another.
4366
 
   # A longer-term fix would be to have automake use am__CC in this case,
4367
 
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4368
 
   CC="$am_aux_dir/compile $CC"
4369
 
fi
4370
 
 
4371
4534
 
4372
4535
 
4373
4536
 
4976
5139
 
4977
5140
fi
4978
5141
 
 
5142
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
 
5143
$as_echo_n "checking for inline... " >&6; }
 
5144
if ${ac_cv_c_inline+:} false; then :
 
5145
  $as_echo_n "(cached) " >&6
 
5146
else
 
5147
  ac_cv_c_inline=no
 
5148
for ac_kw in inline __inline__ __inline; do
 
5149
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5150
/* end confdefs.h.  */
 
5151
#ifndef __cplusplus
 
5152
typedef int foo_t;
 
5153
static $ac_kw foo_t static_foo () {return 0; }
 
5154
$ac_kw foo_t foo () {return 0; }
 
5155
#endif
 
5156
 
 
5157
_ACEOF
 
5158
if ac_fn_cxx_try_compile "$LINENO"; then :
 
5159
  ac_cv_c_inline=$ac_kw
 
5160
fi
 
5161
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5162
  test "$ac_cv_c_inline" != no && break
 
5163
done
 
5164
 
 
5165
fi
 
5166
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
 
5167
$as_echo "$ac_cv_c_inline" >&6; }
 
5168
 
 
5169
case $ac_cv_c_inline in
 
5170
  inline | yes) ;;
 
5171
  *)
 
5172
    case $ac_cv_c_inline in
 
5173
      no) ac_val=;;
 
5174
      *) ac_val=$ac_cv_c_inline;;
 
5175
    esac
 
5176
    cat >>confdefs.h <<_ACEOF
 
5177
#ifndef __cplusplus
 
5178
#define inline $ac_val
 
5179
#endif
 
5180
_ACEOF
 
5181
    ;;
 
5182
esac
 
5183
 
4979
5184
for ac_header in sys/select.h sys/socket.h
4980
5185
do :
4981
5186
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5070
5275
done
5071
5276
 
5072
5277
 
 
5278
ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
 
5279
if test "x$ac_cv_type_pid_t" = xyes; then :
 
5280
 
 
5281
else
 
5282
 
 
5283
cat >>confdefs.h <<_ACEOF
 
5284
#define pid_t int
 
5285
_ACEOF
 
5286
 
 
5287
fi
 
5288
 
 
5289
for ac_header in vfork.h
 
5290
do :
 
5291
  ac_fn_cxx_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
 
5292
if test "x$ac_cv_header_vfork_h" = xyes; then :
 
5293
  cat >>confdefs.h <<_ACEOF
 
5294
#define HAVE_VFORK_H 1
 
5295
_ACEOF
 
5296
 
 
5297
fi
 
5298
 
 
5299
done
 
5300
 
 
5301
for ac_func in fork vfork
 
5302
do :
 
5303
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
5304
ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
5305
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
 
5306
  cat >>confdefs.h <<_ACEOF
 
5307
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
5308
_ACEOF
 
5309
 
 
5310
fi
 
5311
done
 
5312
 
 
5313
if test "x$ac_cv_func_fork" = xyes; then
 
5314
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
 
5315
$as_echo_n "checking for working fork... " >&6; }
 
5316
if ${ac_cv_func_fork_works+:} false; then :
 
5317
  $as_echo_n "(cached) " >&6
 
5318
else
 
5319
  if test "$cross_compiling" = yes; then :
 
5320
  ac_cv_func_fork_works=cross
 
5321
else
 
5322
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5323
/* end confdefs.h.  */
 
5324
$ac_includes_default
 
5325
int
 
5326
main ()
 
5327
{
 
5328
 
 
5329
          /* By Ruediger Kuhlmann. */
 
5330
          return fork () < 0;
 
5331
 
 
5332
  ;
 
5333
  return 0;
 
5334
}
 
5335
_ACEOF
 
5336
if ac_fn_cxx_try_run "$LINENO"; then :
 
5337
  ac_cv_func_fork_works=yes
 
5338
else
 
5339
  ac_cv_func_fork_works=no
 
5340
fi
 
5341
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
5342
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
5343
fi
 
5344
 
 
5345
fi
 
5346
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
 
5347
$as_echo "$ac_cv_func_fork_works" >&6; }
 
5348
 
 
5349
else
 
5350
  ac_cv_func_fork_works=$ac_cv_func_fork
 
5351
fi
 
5352
if test "x$ac_cv_func_fork_works" = xcross; then
 
5353
  case $host in
 
5354
    *-*-amigaos* | *-*-msdosdjgpp*)
 
5355
      # Override, as these systems have only a dummy fork() stub
 
5356
      ac_cv_func_fork_works=no
 
5357
      ;;
 
5358
    *)
 
5359
      ac_cv_func_fork_works=yes
 
5360
      ;;
 
5361
  esac
 
5362
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
 
5363
$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
 
5364
fi
 
5365
ac_cv_func_vfork_works=$ac_cv_func_vfork
 
5366
if test "x$ac_cv_func_vfork" = xyes; then
 
5367
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
 
5368
$as_echo_n "checking for working vfork... " >&6; }
 
5369
if ${ac_cv_func_vfork_works+:} false; then :
 
5370
  $as_echo_n "(cached) " >&6
 
5371
else
 
5372
  if test "$cross_compiling" = yes; then :
 
5373
  ac_cv_func_vfork_works=cross
 
5374
else
 
5375
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5376
/* end confdefs.h.  */
 
5377
/* Thanks to Paul Eggert for this test.  */
 
5378
$ac_includes_default
 
5379
#include <sys/wait.h>
 
5380
#ifdef HAVE_VFORK_H
 
5381
# include <vfork.h>
 
5382
#endif
 
5383
/* On some sparc systems, changes by the child to local and incoming
 
5384
   argument registers are propagated back to the parent.  The compiler
 
5385
   is told about this with #include <vfork.h>, but some compilers
 
5386
   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
 
5387
   static variable whose address is put into a register that is
 
5388
   clobbered by the vfork.  */
 
5389
static void
 
5390
#ifdef __cplusplus
 
5391
sparc_address_test (int arg)
 
5392
# else
 
5393
sparc_address_test (arg) int arg;
 
5394
#endif
 
5395
{
 
5396
  static pid_t child;
 
5397
  if (!child) {
 
5398
    child = vfork ();
 
5399
    if (child < 0) {
 
5400
      perror ("vfork");
 
5401
      _exit(2);
 
5402
    }
 
5403
    if (!child) {
 
5404
      arg = getpid();
 
5405
      write(-1, "", 0);
 
5406
      _exit (arg);
 
5407
    }
 
5408
  }
 
5409
}
 
5410
 
 
5411
int
 
5412
main ()
 
5413
{
 
5414
  pid_t parent = getpid ();
 
5415
  pid_t child;
 
5416
 
 
5417
  sparc_address_test (0);
 
5418
 
 
5419
  child = vfork ();
 
5420
 
 
5421
  if (child == 0) {
 
5422
    /* Here is another test for sparc vfork register problems.  This
 
5423
       test uses lots of local variables, at least as many local
 
5424
       variables as main has allocated so far including compiler
 
5425
       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
 
5426
       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
 
5427
       reuse the register of parent for one of the local variables,
 
5428
       since it will think that parent can't possibly be used any more
 
5429
       in this routine.  Assigning to the local variable will thus
 
5430
       munge parent in the parent process.  */
 
5431
    pid_t
 
5432
      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
 
5433
      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
 
5434
    /* Convince the compiler that p..p7 are live; otherwise, it might
 
5435
       use the same hardware register for all 8 local variables.  */
 
5436
    if (p != p1 || p != p2 || p != p3 || p != p4
 
5437
        || p != p5 || p != p6 || p != p7)
 
5438
      _exit(1);
 
5439
 
 
5440
    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
 
5441
       from child file descriptors.  If the child closes a descriptor
 
5442
       before it execs or exits, this munges the parent's descriptor
 
5443
       as well.  Test for this by closing stdout in the child.  */
 
5444
    _exit(close(fileno(stdout)) != 0);
 
5445
  } else {
 
5446
    int status;
 
5447
    struct stat st;
 
5448
 
 
5449
    while (wait(&status) != child)
 
5450
      ;
 
5451
    return (
 
5452
         /* Was there some problem with vforking?  */
 
5453
         child < 0
 
5454
 
 
5455
         /* Did the child fail?  (This shouldn't happen.)  */
 
5456
         || status
 
5457
 
 
5458
         /* Did the vfork/compiler bug occur?  */
 
5459
         || parent != getpid()
 
5460
 
 
5461
         /* Did the file descriptor bug occur?  */
 
5462
         || fstat(fileno(stdout), &st) != 0
 
5463
         );
 
5464
  }
 
5465
}
 
5466
_ACEOF
 
5467
if ac_fn_cxx_try_run "$LINENO"; then :
 
5468
  ac_cv_func_vfork_works=yes
 
5469
else
 
5470
  ac_cv_func_vfork_works=no
 
5471
fi
 
5472
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
5473
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
5474
fi
 
5475
 
 
5476
fi
 
5477
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
 
5478
$as_echo "$ac_cv_func_vfork_works" >&6; }
 
5479
 
 
5480
fi;
 
5481
if test "x$ac_cv_func_fork_works" = xcross; then
 
5482
  ac_cv_func_vfork_works=$ac_cv_func_vfork
 
5483
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
 
5484
$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
 
5485
fi
 
5486
 
 
5487
if test "x$ac_cv_func_vfork_works" = xyes; then
 
5488
 
 
5489
$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
 
5490
 
 
5491
else
 
5492
 
 
5493
$as_echo "#define vfork fork" >>confdefs.h
 
5494
 
 
5495
fi
 
5496
if test "x$ac_cv_func_fork_works" = xyes; then
 
5497
 
 
5498
$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
 
5499
 
 
5500
fi
 
5501
 
 
5502
 
 
5503
 
 
5504
 
 
5505
  for ac_header in $ac_header_list
 
5506
do :
 
5507
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5508
ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
5509
"
 
5510
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
5511
  cat >>confdefs.h <<_ACEOF
 
5512
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5513
_ACEOF
 
5514
 
 
5515
fi
 
5516
 
 
5517
done
 
5518
 
 
5519
 
 
5520
 
 
5521
 
 
5522
 
 
5523
 
 
5524
 
 
5525
 
 
5526
for ac_func in getpagesize
 
5527
do :
 
5528
  ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
 
5529
if test "x$ac_cv_func_getpagesize" = xyes; then :
 
5530
  cat >>confdefs.h <<_ACEOF
 
5531
#define HAVE_GETPAGESIZE 1
 
5532
_ACEOF
 
5533
 
 
5534
fi
 
5535
done
 
5536
 
 
5537
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
 
5538
$as_echo_n "checking for working mmap... " >&6; }
 
5539
if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
 
5540
  $as_echo_n "(cached) " >&6
 
5541
else
 
5542
  if test "$cross_compiling" = yes; then :
 
5543
  ac_cv_func_mmap_fixed_mapped=no
 
5544
else
 
5545
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5546
/* end confdefs.h.  */
 
5547
$ac_includes_default
 
5548
/* malloc might have been renamed as rpl_malloc. */
 
5549
#undef malloc
 
5550
 
 
5551
/* Thanks to Mike Haertel and Jim Avera for this test.
 
5552
   Here is a matrix of mmap possibilities:
 
5553
        mmap private not fixed
 
5554
        mmap private fixed at somewhere currently unmapped
 
5555
        mmap private fixed at somewhere already mapped
 
5556
        mmap shared not fixed
 
5557
        mmap shared fixed at somewhere currently unmapped
 
5558
        mmap shared fixed at somewhere already mapped
 
5559
   For private mappings, we should verify that changes cannot be read()
 
5560
   back from the file, nor mmap's back from the file at a different
 
5561
   address.  (There have been systems where private was not correctly
 
5562
   implemented like the infamous i386 svr4.0, and systems where the
 
5563
   VM page cache was not coherent with the file system buffer cache
 
5564
   like early versions of FreeBSD and possibly contemporary NetBSD.)
 
5565
   For shared mappings, we should conversely verify that changes get
 
5566
   propagated back to all the places they're supposed to be.
 
5567
 
 
5568
   Grep wants private fixed already mapped.
 
5569
   The main things grep needs to know about mmap are:
 
5570
   * does it exist and is it safe to write into the mmap'd area
 
5571
   * how to use it (BSD variants)  */
 
5572
 
 
5573
#include <fcntl.h>
 
5574
#include <sys/mman.h>
 
5575
 
 
5576
#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
 
5577
char *malloc ();
 
5578
#endif
 
5579
 
 
5580
/* This mess was copied from the GNU getpagesize.h.  */
 
5581
#ifndef HAVE_GETPAGESIZE
 
5582
# ifdef _SC_PAGESIZE
 
5583
#  define getpagesize() sysconf(_SC_PAGESIZE)
 
5584
# else /* no _SC_PAGESIZE */
 
5585
#  ifdef HAVE_SYS_PARAM_H
 
5586
#   include <sys/param.h>
 
5587
#   ifdef EXEC_PAGESIZE
 
5588
#    define getpagesize() EXEC_PAGESIZE
 
5589
#   else /* no EXEC_PAGESIZE */
 
5590
#    ifdef NBPG
 
5591
#     define getpagesize() NBPG * CLSIZE
 
5592
#     ifndef CLSIZE
 
5593
#      define CLSIZE 1
 
5594
#     endif /* no CLSIZE */
 
5595
#    else /* no NBPG */
 
5596
#     ifdef NBPC
 
5597
#      define getpagesize() NBPC
 
5598
#     else /* no NBPC */
 
5599
#      ifdef PAGESIZE
 
5600
#       define getpagesize() PAGESIZE
 
5601
#      endif /* PAGESIZE */
 
5602
#     endif /* no NBPC */
 
5603
#    endif /* no NBPG */
 
5604
#   endif /* no EXEC_PAGESIZE */
 
5605
#  else /* no HAVE_SYS_PARAM_H */
 
5606
#   define getpagesize() 8192   /* punt totally */
 
5607
#  endif /* no HAVE_SYS_PARAM_H */
 
5608
# endif /* no _SC_PAGESIZE */
 
5609
 
 
5610
#endif /* no HAVE_GETPAGESIZE */
 
5611
 
 
5612
int
 
5613
main ()
 
5614
{
 
5615
  char *data, *data2, *data3;
 
5616
  const char *cdata2;
 
5617
  int i, pagesize;
 
5618
  int fd, fd2;
 
5619
 
 
5620
  pagesize = getpagesize ();
 
5621
 
 
5622
  /* First, make a file with some known garbage in it. */
 
5623
  data = (char *) malloc (pagesize);
 
5624
  if (!data)
 
5625
    return 1;
 
5626
  for (i = 0; i < pagesize; ++i)
 
5627
    *(data + i) = rand ();
 
5628
  umask (0);
 
5629
  fd = creat ("conftest.mmap", 0600);
 
5630
  if (fd < 0)
 
5631
    return 2;
 
5632
  if (write (fd, data, pagesize) != pagesize)
 
5633
    return 3;
 
5634
  close (fd);
 
5635
 
 
5636
  /* Next, check that the tail of a page is zero-filled.  File must have
 
5637
     non-zero length, otherwise we risk SIGBUS for entire page.  */
 
5638
  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
 
5639
  if (fd2 < 0)
 
5640
    return 4;
 
5641
  cdata2 = "";
 
5642
  if (write (fd2, cdata2, 1) != 1)
 
5643
    return 5;
 
5644
  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
 
5645
  if (data2 == MAP_FAILED)
 
5646
    return 6;
 
5647
  for (i = 0; i < pagesize; ++i)
 
5648
    if (*(data2 + i))
 
5649
      return 7;
 
5650
  close (fd2);
 
5651
  if (munmap (data2, pagesize))
 
5652
    return 8;
 
5653
 
 
5654
  /* Next, try to mmap the file at a fixed address which already has
 
5655
     something else allocated at it.  If we can, also make sure that
 
5656
     we see the same garbage.  */
 
5657
  fd = open ("conftest.mmap", O_RDWR);
 
5658
  if (fd < 0)
 
5659
    return 9;
 
5660
  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
 
5661
                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
 
5662
    return 10;
 
5663
  for (i = 0; i < pagesize; ++i)
 
5664
    if (*(data + i) != *(data2 + i))
 
5665
      return 11;
 
5666
 
 
5667
  /* Finally, make sure that changes to the mapped area do not
 
5668
     percolate back to the file as seen by read().  (This is a bug on
 
5669
     some variants of i386 svr4.0.)  */
 
5670
  for (i = 0; i < pagesize; ++i)
 
5671
    *(data2 + i) = *(data2 + i) + 1;
 
5672
  data3 = (char *) malloc (pagesize);
 
5673
  if (!data3)
 
5674
    return 12;
 
5675
  if (read (fd, data3, pagesize) != pagesize)
 
5676
    return 13;
 
5677
  for (i = 0; i < pagesize; ++i)
 
5678
    if (*(data + i) != *(data3 + i))
 
5679
      return 14;
 
5680
  close (fd);
 
5681
  return 0;
 
5682
}
 
5683
_ACEOF
 
5684
if ac_fn_cxx_try_run "$LINENO"; then :
 
5685
  ac_cv_func_mmap_fixed_mapped=yes
 
5686
else
 
5687
  ac_cv_func_mmap_fixed_mapped=no
 
5688
fi
 
5689
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
5690
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
5691
fi
 
5692
 
 
5693
fi
 
5694
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
 
5695
$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
 
5696
if test $ac_cv_func_mmap_fixed_mapped = yes; then
 
5697
 
 
5698
$as_echo "#define HAVE_MMAP 1" >>confdefs.h
 
5699
 
 
5700
fi
 
5701
rm -f conftest.mmap conftest.txt
 
5702
 
5073
5703
for ac_func in atexit floor getcwd gethostbyname memset mkdir select socket
5074
5704
do :
5075
5705
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5082
5712
fi
5083
5713
done
5084
5714
 
 
5715
for ac_func in clock_gettime dup2 gettimeofday memchr memmove pow putenv
 
5716
do :
 
5717
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
5718
ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
5719
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
 
5720
  cat >>confdefs.h <<_ACEOF
 
5721
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
5722
_ACEOF
 
5723
 
 
5724
fi
 
5725
done
 
5726
 
 
5727
for ac_func in realpath setenv setlocale sqrt strchr munmap
 
5728
do :
 
5729
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
5730
ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
5731
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
 
5732
  cat >>confdefs.h <<_ACEOF
 
5733
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
5734
_ACEOF
 
5735
 
 
5736
fi
 
5737
done
 
5738
 
 
5739
#AC_CHECK_HEADER_STDBOOL
 
5740
for ac_header in libintl.h limits.h sys/param.h sys/time.h wchar.h
 
5741
do :
 
5742
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5743
ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 
5744
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
5745
  cat >>confdefs.h <<_ACEOF
 
5746
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5747
_ACEOF
 
5748
 
 
5749
fi
 
5750
 
 
5751
done
 
5752
 
 
5753
 
 
5754
ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
 
5755
case $ac_cv_c_int8_t in #(
 
5756
  no|yes) ;; #(
 
5757
  *)
 
5758
 
 
5759
cat >>confdefs.h <<_ACEOF
 
5760
#define int8_t $ac_cv_c_int8_t
 
5761
_ACEOF
 
5762
;;
 
5763
esac
 
5764
 
 
5765
ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
 
5766
case $ac_cv_c_uint8_t in #(
 
5767
  no|yes) ;; #(
 
5768
  *)
 
5769
 
 
5770
$as_echo "#define _UINT8_T 1" >>confdefs.h
 
5771
 
 
5772
 
 
5773
cat >>confdefs.h <<_ACEOF
 
5774
#define uint8_t $ac_cv_c_uint8_t
 
5775
_ACEOF
 
5776
;;
 
5777
  esac
 
5778
 
 
5779
ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
 
5780
case $ac_cv_c_int16_t in #(
 
5781
  no|yes) ;; #(
 
5782
  *)
 
5783
 
 
5784
cat >>confdefs.h <<_ACEOF
 
5785
#define int16_t $ac_cv_c_int16_t
 
5786
_ACEOF
 
5787
;;
 
5788
esac
 
5789
 
 
5790
ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
 
5791
case $ac_cv_c_uint16_t in #(
 
5792
  no|yes) ;; #(
 
5793
  *)
 
5794
 
 
5795
 
 
5796
cat >>confdefs.h <<_ACEOF
 
5797
#define uint16_t $ac_cv_c_uint16_t
 
5798
_ACEOF
 
5799
;;
 
5800
  esac
 
5801
 
 
5802
ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
 
5803
case $ac_cv_c_int32_t in #(
 
5804
  no|yes) ;; #(
 
5805
  *)
 
5806
 
 
5807
cat >>confdefs.h <<_ACEOF
 
5808
#define int32_t $ac_cv_c_int32_t
 
5809
_ACEOF
 
5810
;;
 
5811
esac
 
5812
 
 
5813
ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
 
5814
case $ac_cv_c_uint32_t in #(
 
5815
  no|yes) ;; #(
 
5816
  *)
 
5817
 
 
5818
$as_echo "#define _UINT32_T 1" >>confdefs.h
 
5819
 
 
5820
 
 
5821
cat >>confdefs.h <<_ACEOF
 
5822
#define uint32_t $ac_cv_c_uint32_t
 
5823
_ACEOF
 
5824
;;
 
5825
  esac
 
5826
 
 
5827
ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
 
5828
case $ac_cv_c_int64_t in #(
 
5829
  no|yes) ;; #(
 
5830
  *)
 
5831
 
 
5832
cat >>confdefs.h <<_ACEOF
 
5833
#define int64_t $ac_cv_c_int64_t
 
5834
_ACEOF
 
5835
;;
 
5836
esac
 
5837
 
 
5838
ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
 
5839
if test "x$ac_cv_type_ssize_t" = xyes; then :
 
5840
 
 
5841
else
 
5842
 
 
5843
cat >>confdefs.h <<_ACEOF
 
5844
#define ssize_t int
 
5845
_ACEOF
 
5846
 
 
5847
fi
 
5848
 
5085
5849
 
5086
5850
# Checks for internationalization support
5087
5851
 
6925
7689
fi
6926
7690
 
6927
7691
 
 
7692
    if test -n "$SDL_CONFIG"; then
 
7693
        LIBS="$LIBS `$SDL_CONFIG --libs`"
 
7694
        CPPFLAGS="$CPPFLAGS `$SDL_CONFIG --cflags`"
 
7695
    fi
6928
7696
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL_Init in -lSDL2" >&5
6929
7697
$as_echo_n "checking for SDL_Init in -lSDL2... " >&6; }
6930
7698
if ${ac_cv_lib_SDL2_SDL_Init+:} false; then :
7216
7984
fi
7217
7985
 
7218
7986
 
 
7987
    if test -n "$SDL_CONFIG"; then
 
7988
        LIBS="$LIBS `$SDL_CONFIG --libs`"
 
7989
        CPPFLAGS="$CPPFLAGS `$SDL_CONFIG --cflags`"
 
7990
    fi
7219
7991
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL_Init in -lSDL" >&5
7220
7992
$as_echo_n "checking for SDL_Init in -lSDL... " >&6; }
7221
7993
if ${ac_cv_lib_SDL_SDL_Init+:} false; then :
7675
8447
fi
7676
8448
 
7677
8449
 
7678
 
if test -n "$SDL_CONFIG"; then
7679
 
    LIBS="$LIBS `$SDL_CONFIG --libs`"
7680
 
    CPPFLAGS="$CPPFLAGS `$SDL_CONFIG --cflags`"
7681
 
fi
7682
8450
for ac_header in SDL.h
7683
8451
do :
7684
8452
  ac_fn_cxx_check_header_mongrel "$LINENO" "SDL.h" "ac_cv_header_SDL_h" "$ac_includes_default"
9241
10009
# report actual input values of CONFIG_FILES etc. instead of their
9242
10010
# values after options handling.
9243
10011
ac_log="
9244
 
This file was extended by ManaPlus $as_me 1.3.9.1, which was
 
10012
This file was extended by ManaPlus $as_me 1.3.9.15, which was
9245
10013
generated by GNU Autoconf 2.69.  Invocation command line was
9246
10014
 
9247
10015
  CONFIG_FILES    = $CONFIG_FILES
9307
10075
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9308
10076
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9309
10077
ac_cs_version="\\
9310
 
ManaPlus config.status 1.3.9.1
 
10078
ManaPlus config.status 1.3.9.15
9311
10079
configured by $0, generated by GNU Autoconf 2.69,
9312
10080
  with options \\"\$ac_cs_config\\"
9313
10081