diff options
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 197 |
1 files changed, 187 insertions, 10 deletions
| @@ -1,6 +1,6 @@ | |||
| 1 | #! /bin/sh | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. | 2 | # Guess values for system-dependent variables and create Makefiles. |
| 3 | # Generated by GNU Autoconf 2.69 for life 1.0.0. | 3 | # Generated by GNU Autoconf 2.69 for life 1.3.3. |
| 4 | # | 4 | # |
| 5 | # Report bugs to <aiden.woodruff@gmail.com>. | 5 | # Report bugs to <aiden.woodruff@gmail.com>. |
| 6 | # | 6 | # |
| @@ -580,8 +580,8 @@ MAKEFLAGS= | |||
| 580 | # Identity of this package. | 580 | # Identity of this package. |
| 581 | PACKAGE_NAME='life' | 581 | PACKAGE_NAME='life' |
| 582 | PACKAGE_TARNAME='life' | 582 | PACKAGE_TARNAME='life' |
| 583 | PACKAGE_VERSION='1.0.0' | 583 | PACKAGE_VERSION='1.3.3' |
| 584 | PACKAGE_STRING='life 1.0.0' | 584 | PACKAGE_STRING='life 1.3.3' |
| 585 | PACKAGE_BUGREPORT='aiden.woodruff@gmail.com' | 585 | PACKAGE_BUGREPORT='aiden.woodruff@gmail.com' |
| 586 | PACKAGE_URL='' | 586 | PACKAGE_URL='' |
| 587 | 587 | ||
| @@ -1277,7 +1277,7 @@ if test "$ac_init_help" = "long"; then | |||
| 1277 | # Omit some internal or obsolete options to make the list less imposing. | 1277 | # Omit some internal or obsolete options to make the list less imposing. |
| 1278 | # This message is too long to be a string in the A/UX 3.1 sh. | 1278 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1279 | cat <<_ACEOF | 1279 | cat <<_ACEOF |
| 1280 | \`configure' configures life 1.0.0 to adapt to many kinds of systems. | 1280 | \`configure' configures life 1.3.3 to adapt to many kinds of systems. |
| 1281 | 1281 | ||
| 1282 | Usage: $0 [OPTION]... [VAR=VALUE]... | 1282 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1283 | 1283 | ||
| @@ -1344,7 +1344,7 @@ fi | |||
| 1344 | 1344 | ||
| 1345 | if test -n "$ac_init_help"; then | 1345 | if test -n "$ac_init_help"; then |
| 1346 | case $ac_init_help in | 1346 | case $ac_init_help in |
| 1347 | short | recursive ) echo "Configuration of life 1.0.0:";; | 1347 | short | recursive ) echo "Configuration of life 1.3.3:";; |
| 1348 | esac | 1348 | esac |
| 1349 | cat <<\_ACEOF | 1349 | cat <<\_ACEOF |
| 1350 | 1350 | ||
| @@ -1435,7 +1435,7 @@ fi | |||
| 1435 | test -n "$ac_init_help" && exit $ac_status | 1435 | test -n "$ac_init_help" && exit $ac_status |
| 1436 | if $ac_init_version; then | 1436 | if $ac_init_version; then |
| 1437 | cat <<\_ACEOF | 1437 | cat <<\_ACEOF |
| 1438 | life configure 1.0.0 | 1438 | life configure 1.3.3 |
| 1439 | generated by GNU Autoconf 2.69 | 1439 | generated by GNU Autoconf 2.69 |
| 1440 | 1440 | ||
| 1441 | Copyright (C) 2012 Free Software Foundation, Inc. | 1441 | Copyright (C) 2012 Free Software Foundation, Inc. |
| @@ -1804,7 +1804,7 @@ cat >config.log <<_ACEOF | |||
| 1804 | This file contains any messages produced by compilers while | 1804 | This file contains any messages produced by compilers while |
| 1805 | running configure, to aid debugging if configure makes a mistake. | 1805 | running configure, to aid debugging if configure makes a mistake. |
| 1806 | 1806 | ||
| 1807 | It was created by life $as_me 1.0.0, which was | 1807 | It was created by life $as_me 1.3.3, which was |
| 1808 | generated by GNU Autoconf 2.69. Invocation command line was | 1808 | generated by GNU Autoconf 2.69. Invocation command line was |
| 1809 | 1809 | ||
| 1810 | $ $0 $@ | 1810 | $ $0 $@ |
| @@ -3037,6 +3037,183 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ | |||
| 3037 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 3037 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3038 | 3038 | ||
| 3039 | 3039 | ||
| 3040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 | ||
| 3041 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } | ||
| 3042 | if ${ac_cv_prog_cc_c99+:} false; then : | ||
| 3043 | $as_echo_n "(cached) " >&6 | ||
| 3044 | else | ||
| 3045 | ac_cv_prog_cc_c99=no | ||
| 3046 | ac_save_CC=$CC | ||
| 3047 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 3048 | /* end confdefs.h. */ | ||
| 3049 | #include <stdarg.h> | ||
| 3050 | #include <stdbool.h> | ||
| 3051 | #include <stdlib.h> | ||
| 3052 | #include <wchar.h> | ||
| 3053 | #include <stdio.h> | ||
| 3054 | |||
| 3055 | // Check varargs macros. These examples are taken from C99 6.10.3.5. | ||
| 3056 | #define debug(...) fprintf (stderr, __VA_ARGS__) | ||
| 3057 | #define showlist(...) puts (#__VA_ARGS__) | ||
| 3058 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | ||
| 3059 | static void | ||
| 3060 | test_varargs_macros (void) | ||
| 3061 | { | ||
| 3062 | int x = 1234; | ||
| 3063 | int y = 5678; | ||
| 3064 | debug ("Flag"); | ||
| 3065 | debug ("X = %d\n", x); | ||
| 3066 | showlist (The first, second, and third items.); | ||
| 3067 | report (x>y, "x is %d but y is %d", x, y); | ||
| 3068 | } | ||
| 3069 | |||
| 3070 | // Check long long types. | ||
| 3071 | #define BIG64 18446744073709551615ull | ||
| 3072 | #define BIG32 4294967295ul | ||
| 3073 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | ||
| 3074 | #if !BIG_OK | ||
| 3075 | your preprocessor is broken; | ||
| 3076 | #endif | ||
| 3077 | #if BIG_OK | ||
| 3078 | #else | ||
| 3079 | your preprocessor is broken; | ||
| 3080 | #endif | ||
| 3081 | static long long int bignum = -9223372036854775807LL; | ||
| 3082 | static unsigned long long int ubignum = BIG64; | ||
| 3083 | |||
| 3084 | struct incomplete_array | ||
| 3085 | { | ||
| 3086 | int datasize; | ||
| 3087 | double data[]; | ||
| 3088 | }; | ||
| 3089 | |||
| 3090 | struct named_init { | ||
| 3091 | int number; | ||
| 3092 | const wchar_t *name; | ||
| 3093 | double average; | ||
| 3094 | }; | ||
| 3095 | |||
| 3096 | typedef const char *ccp; | ||
| 3097 | |||
| 3098 | static inline int | ||
| 3099 | test_restrict (ccp restrict text) | ||
| 3100 | { | ||
| 3101 | // See if C++-style comments work. | ||
| 3102 | // Iterate through items via the restricted pointer. | ||
| 3103 | // Also check for declarations in for loops. | ||
| 3104 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) | ||
| 3105 | continue; | ||
| 3106 | return 0; | ||
| 3107 | } | ||
| 3108 | |||
| 3109 | // Check varargs and va_copy. | ||
| 3110 | static void | ||
| 3111 | test_varargs (const char *format, ...) | ||
| 3112 | { | ||
| 3113 | va_list args; | ||
| 3114 | va_start (args, format); | ||
| 3115 | va_list args_copy; | ||
| 3116 | va_copy (args_copy, args); | ||
| 3117 | |||
| 3118 | const char *str; | ||
| 3119 | int number; | ||
| 3120 | float fnumber; | ||
| 3121 | |||
| 3122 | while (*format) | ||
| 3123 | { | ||
| 3124 | switch (*format++) | ||
| 3125 | { | ||
| 3126 | case 's': // string | ||
| 3127 | str = va_arg (args_copy, const char *); | ||
| 3128 | break; | ||
| 3129 | case 'd': // int | ||
| 3130 | number = va_arg (args_copy, int); | ||
| 3131 | break; | ||
| 3132 | case 'f': // float | ||
| 3133 | fnumber = va_arg (args_copy, double); | ||
| 3134 | break; | ||
| 3135 | default: | ||
| 3136 | break; | ||
| 3137 | } | ||
| 3138 | } | ||
| 3139 | va_end (args_copy); | ||
| 3140 | va_end (args); | ||
| 3141 | } | ||
| 3142 | |||
| 3143 | int | ||
| 3144 | main () | ||
| 3145 | { | ||
| 3146 | |||
| 3147 | // Check bool. | ||
| 3148 | _Bool success = false; | ||
| 3149 | |||
| 3150 | // Check restrict. | ||
| 3151 | if (test_restrict ("String literal") == 0) | ||
| 3152 | success = true; | ||
| 3153 | char *restrict newvar = "Another string"; | ||
| 3154 | |||
| 3155 | // Check varargs. | ||
| 3156 | test_varargs ("s, d' f .", "string", 65, 34.234); | ||
| 3157 | test_varargs_macros (); | ||
| 3158 | |||
| 3159 | // Check flexible array members. | ||
| 3160 | struct incomplete_array *ia = | ||
| 3161 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | ||
| 3162 | ia->datasize = 10; | ||
| 3163 | for (int i = 0; i < ia->datasize; ++i) | ||
| 3164 | ia->data[i] = i * 1.234; | ||
| 3165 | |||
| 3166 | // Check named initializers. | ||
| 3167 | struct named_init ni = { | ||
| 3168 | .number = 34, | ||
| 3169 | .name = L"Test wide string", | ||
| 3170 | .average = 543.34343, | ||
| 3171 | }; | ||
| 3172 | |||
| 3173 | ni.number = 58; | ||
| 3174 | |||
| 3175 | int dynamic_array[ni.number]; | ||
| 3176 | dynamic_array[ni.number - 1] = 543; | ||
| 3177 | |||
| 3178 | // work around unused variable warnings | ||
| 3179 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' | ||
| 3180 | || dynamic_array[ni.number - 1] != 543); | ||
| 3181 | |||
| 3182 | ; | ||
| 3183 | return 0; | ||
| 3184 | } | ||
| 3185 | _ACEOF | ||
| 3186 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 | ||
| 3187 | do | ||
| 3188 | CC="$ac_save_CC $ac_arg" | ||
| 3189 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 3190 | ac_cv_prog_cc_c99=$ac_arg | ||
| 3191 | fi | ||
| 3192 | rm -f core conftest.err conftest.$ac_objext | ||
| 3193 | test "x$ac_cv_prog_cc_c99" != "xno" && break | ||
| 3194 | done | ||
| 3195 | rm -f conftest.$ac_ext | ||
| 3196 | CC=$ac_save_CC | ||
| 3197 | |||
| 3198 | fi | ||
| 3199 | # AC_CACHE_VAL | ||
| 3200 | case "x$ac_cv_prog_cc_c99" in | ||
| 3201 | x) | ||
| 3202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
| 3203 | $as_echo "none needed" >&6; } ;; | ||
| 3204 | xno) | ||
| 3205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
| 3206 | $as_echo "unsupported" >&6; } ;; | ||
| 3207 | *) | ||
| 3208 | CC="$CC $ac_cv_prog_cc_c99" | ||
| 3209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | ||
| 3210 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; | ||
| 3211 | esac | ||
| 3212 | if test "x$ac_cv_prog_cc_c99" != xno; then : | ||
| 3213 | |||
| 3214 | fi | ||
| 3215 | |||
| 3216 | |||
| 3040 | 3217 | ||
| 3041 | # Checks for libraries. | 3218 | # Checks for libraries. |
| 3042 | 3219 | ||
| @@ -4129,7 +4306,7 @@ fi | |||
| 4129 | 4306 | ||
| 4130 | # Define the identity of the package. | 4307 | # Define the identity of the package. |
| 4131 | PACKAGE='life' | 4308 | PACKAGE='life' |
| 4132 | VERSION='1.0.0' | 4309 | VERSION='1.3.3' |
| 4133 | 4310 | ||
| 4134 | 4311 | ||
| 4135 | cat >>confdefs.h <<_ACEOF | 4312 | cat >>confdefs.h <<_ACEOF |
| @@ -4880,7 +5057,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |||
| 4880 | # report actual input values of CONFIG_FILES etc. instead of their | 5057 | # report actual input values of CONFIG_FILES etc. instead of their |
| 4881 | # values after options handling. | 5058 | # values after options handling. |
| 4882 | ac_log=" | 5059 | ac_log=" |
| 4883 | This file was extended by life $as_me 1.0.0, which was | 5060 | This file was extended by life $as_me 1.3.3, which was |
| 4884 | generated by GNU Autoconf 2.69. Invocation command line was | 5061 | generated by GNU Autoconf 2.69. Invocation command line was |
| 4885 | 5062 | ||
| 4886 | CONFIG_FILES = $CONFIG_FILES | 5063 | CONFIG_FILES = $CONFIG_FILES |
| @@ -4946,7 +5123,7 @@ _ACEOF | |||
| 4946 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 5123 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 4947 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | 5124 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
| 4948 | ac_cs_version="\\ | 5125 | ac_cs_version="\\ |
| 4949 | life config.status 1.0.0 | 5126 | life config.status 1.3.3 |
| 4950 | configured by $0, generated by GNU Autoconf 2.69, | 5127 | configured by $0, generated by GNU Autoconf 2.69, |
| 4951 | with options \\"\$ac_cs_config\\" | 5128 | with options \\"\$ac_cs_config\\" |
| 4952 | 5129 | ||
