2857
## ------------------------ ##
2858
## Autoconf initialization. ##
2859
## ------------------------ ##
2861
# ac_fn_c_try_compile LINENO
2862
# --------------------------
2863
# Try to compile conftest.$ac_ext, and return whether this succeeded.
2864
ac_fn_c_try_compile ()
2866
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2867
rm -f conftest.$ac_objext
2868
if { { ac_try="$ac_compile"
2870
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2871
*) ac_try_echo=$ac_try;;
2873
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2874
$as_echo "$ac_try_echo"; } >&5
2875
(eval "$ac_compile") 2>conftest.err
2877
if test -s conftest.err; then
2878
grep -v '^ *+' conftest.err >conftest.er1
2879
cat conftest.er1 >&5
2880
mv -f conftest.er1 conftest.err
2882
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2883
test $ac_status = 0; } && {
2884
test -z "$ac_c_werror_flag" ||
2885
test ! -s conftest.err
2886
} && test -s conftest.$ac_objext; then :
2889
$as_echo "$as_me: failed program was:" >&5
2890
sed 's/^/| /' conftest.$ac_ext >&5
2894
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2897
} # ac_fn_c_try_compile
2899
# ac_fn_c_try_cpp LINENO
2900
# ----------------------
2901
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2904
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2905
if { { ac_try="$ac_cpp conftest.$ac_ext"
2907
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2908
*) ac_try_echo=$ac_try;;
2910
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2911
$as_echo "$ac_try_echo"; } >&5
2912
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2914
if test -s conftest.err; then
2915
grep -v '^ *+' conftest.err >conftest.er1
2916
cat conftest.er1 >&5
2917
mv -f conftest.er1 conftest.err
2919
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2920
test $ac_status = 0; } >/dev/null && {
2921
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2922
test ! -s conftest.err
2926
$as_echo "$as_me: failed program was:" >&5
2927
sed 's/^/| /' conftest.$ac_ext >&5
2931
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2936
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2937
# -------------------------------------------------------
2938
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2939
# the include files in INCLUDES and setting the cache variable VAR
2941
ac_fn_c_check_header_mongrel ()
2943
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2944
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2945
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2946
$as_echo_n "checking for $2... " >&6; }
2947
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2948
$as_echo_n "(cached) " >&6
2951
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2952
$as_echo "$ac_res" >&6; }
2954
# Is the header compilable?
2955
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2956
$as_echo_n "checking $2 usability... " >&6; }
2957
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2958
/* end confdefs.h. */
2962
if ac_fn_c_try_compile "$LINENO"; then :
2963
ac_header_compiler=yes
2965
ac_header_compiler=no
2967
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2968
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2969
$as_echo "$ac_header_compiler" >&6; }
2971
# Is the header present?
2972
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2973
$as_echo_n "checking $2 presence... " >&6; }
2974
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2975
/* end confdefs.h. */
2978
if ac_fn_c_try_cpp "$LINENO"; then :
2979
ac_header_preproc=yes
2981
ac_header_preproc=no
2983
rm -f conftest.err conftest.$ac_ext
2984
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2985
$as_echo "$ac_header_preproc" >&6; }
2987
# So? What about this header?
2988
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2990
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2991
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2992
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2993
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2996
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2997
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2998
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2999
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3000
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3001
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3002
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3003
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3004
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3005
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3008
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3009
$as_echo_n "checking for $2... " >&6; }
3010
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
3011
$as_echo_n "(cached) " >&6
3013
eval "$3=\$ac_header_compiler"
3016
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3017
$as_echo "$ac_res" >&6; }
3019
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3021
} # ac_fn_c_check_header_mongrel
3023
# ac_fn_c_try_run LINENO
3024
# ----------------------
3025
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
3026
# that executables *can* be run.
3029
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3030
if { { ac_try="$ac_link"
3032
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033
*) ac_try_echo=$ac_try;;
3035
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3036
$as_echo "$ac_try_echo"; } >&5
3037
(eval "$ac_link") 2>&5
3039
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3040
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
3041
{ { case "(($ac_try" in
3042
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043
*) ac_try_echo=$ac_try;;
3045
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3046
$as_echo "$ac_try_echo"; } >&5
3047
(eval "$ac_try") 2>&5
3049
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3050
test $ac_status = 0; }; }; then :
3053
$as_echo "$as_me: program exited with status $ac_status" >&5
3054
$as_echo "$as_me: failed program was:" >&5
3055
sed 's/^/| /' conftest.$ac_ext >&5
3057
ac_retval=$ac_status
3059
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3060
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3065
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
3066
# -------------------------------------------------------
3067
# Tests whether HEADER exists and can be compiled using the include files in
3068
# INCLUDES, setting the cache variable VAR accordingly.
3069
ac_fn_c_check_header_compile ()
3071
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3072
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3073
$as_echo_n "checking for $2... " >&6; }
3074
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
3075
$as_echo_n "(cached) " >&6
3077
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3078
/* end confdefs.h. */
3082
if ac_fn_c_try_compile "$LINENO"; then :
3087
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3090
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3091
$as_echo "$ac_res" >&6; }
3092
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3094
} # ac_fn_c_check_header_compile
3096
# ac_fn_cxx_try_compile LINENO
3097
# ----------------------------
3098
# Try to compile conftest.$ac_ext, and return whether this succeeded.
3099
ac_fn_cxx_try_compile ()
3101
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3102
rm -f conftest.$ac_objext
3103
if { { ac_try="$ac_compile"
3105
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106
*) ac_try_echo=$ac_try;;
3108
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3109
$as_echo "$ac_try_echo"; } >&5
3110
(eval "$ac_compile") 2>conftest.err
3112
if test -s conftest.err; then
3113
grep -v '^ *+' conftest.err >conftest.er1
3114
cat conftest.er1 >&5
3115
mv -f conftest.er1 conftest.err
3117
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3118
test $ac_status = 0; } && {
3119
test -z "$ac_cxx_werror_flag" ||
3120
test ! -s conftest.err
3121
} && test -s conftest.$ac_objext; then :
3124
$as_echo "$as_me: failed program was:" >&5
3125
sed 's/^/| /' conftest.$ac_ext >&5
3129
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3132
} # ac_fn_cxx_try_compile
3134
# ac_fn_objc_try_compile LINENO
3135
# -----------------------------
3136
# Try to compile conftest.$ac_ext, and return whether this succeeded.
3137
ac_fn_objc_try_compile ()
3139
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3140
rm -f conftest.$ac_objext
3141
if { { ac_try="$ac_compile"
3143
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144
*) ac_try_echo=$ac_try;;
3146
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3147
$as_echo "$ac_try_echo"; } >&5
3148
(eval "$ac_compile") 2>conftest.err
3150
if test -s conftest.err; then
3151
grep -v '^ *+' conftest.err >conftest.er1
3152
cat conftest.er1 >&5
3153
mv -f conftest.er1 conftest.err
3155
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3156
test $ac_status = 0; } && {
3157
test -z "$ac_objc_werror_flag" ||
3158
test ! -s conftest.err
3159
} && test -s conftest.$ac_objext; then :
3162
$as_echo "$as_me: failed program was:" >&5
3163
sed 's/^/| /' conftest.$ac_ext >&5
3167
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3170
} # ac_fn_objc_try_compile
3172
# ac_fn_c_try_link LINENO
3173
# -----------------------
3174
# Try to link conftest.$ac_ext, and return whether this succeeded.
3177
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3178
rm -f conftest.$ac_objext conftest$ac_exeext
3179
if { { ac_try="$ac_link"
3181
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182
*) ac_try_echo=$ac_try;;
3184
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3185
$as_echo "$ac_try_echo"; } >&5
3186
(eval "$ac_link") 2>conftest.err
3188
if test -s conftest.err; then
3189
grep -v '^ *+' conftest.err >conftest.er1
3190
cat conftest.er1 >&5
3191
mv -f conftest.er1 conftest.err
3193
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3194
test $ac_status = 0; } && {
3195
test -z "$ac_c_werror_flag" ||
3196
test ! -s conftest.err
3197
} && test -s conftest$ac_exeext && {
3198
test "$cross_compiling" = yes ||
3199
$as_test_x conftest$ac_exeext
3203
$as_echo "$as_me: failed program was:" >&5
3204
sed 's/^/| /' conftest.$ac_ext >&5
3208
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
3209
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
3210
# interfere with the next link command; also delete a directory that is
3211
# left behind by Apple's compiler. We do this before executing the actions.
3212
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3213
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3216
} # ac_fn_c_try_link
3218
# ac_fn_c_check_func LINENO FUNC VAR
3219
# ----------------------------------
3220
# Tests whether FUNC exists, setting the cache variable VAR accordingly
3221
ac_fn_c_check_func ()
3223
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3224
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3225
$as_echo_n "checking for $2... " >&6; }
3226
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
3227
$as_echo_n "(cached) " >&6
3229
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3230
/* end confdefs.h. */
3231
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
3232
For example, HP-UX 11i <limits.h> declares gettimeofday. */
3233
#define $2 innocuous_$2
3235
/* System header to define __stub macros and hopefully few prototypes,
3236
which can conflict with char $2 (); below.
3237
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3238
<limits.h> exists even on freestanding compilers. */
3241
# include <limits.h>
3243
# include <assert.h>
3248
/* Override any GCC internal prototype to avoid an error.
3249
Use char because int might match the return type of a GCC
3250
builtin and then its argument prototype would still apply. */
3255
/* The GNU C library defines this for functions which it implements
3256
to always fail with ENOSYS. Some functions are actually named
3257
something starting with __ and the normal name is an alias. */
3258
#if defined __stub_$2 || defined __stub___$2
3270
if ac_fn_c_try_link "$LINENO"; then :
3275
rm -f core conftest.err conftest.$ac_objext \
3276
conftest$ac_exeext conftest.$ac_ext
3279
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3280
$as_echo "$ac_res" >&6; }
3281
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3283
} # ac_fn_c_check_func
3285
# ac_fn_cxx_try_cpp LINENO
3286
# ------------------------
3287
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
3288
ac_fn_cxx_try_cpp ()
3290
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3291
if { { ac_try="$ac_cpp conftest.$ac_ext"
3293
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294
*) ac_try_echo=$ac_try;;
3296
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3297
$as_echo "$ac_try_echo"; } >&5
3298
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
3300
if test -s conftest.err; then
3301
grep -v '^ *+' conftest.err >conftest.er1
3302
cat conftest.er1 >&5
3303
mv -f conftest.er1 conftest.err
3305
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3306
test $ac_status = 0; } >/dev/null && {
3307
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3308
test ! -s conftest.err
3312
$as_echo "$as_me: failed program was:" >&5
3313
sed 's/^/| /' conftest.$ac_ext >&5
3317
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3320
} # ac_fn_cxx_try_cpp
3322
# ac_fn_cxx_try_link LINENO
3323
# -------------------------
3324
# Try to link conftest.$ac_ext, and return whether this succeeded.
3325
ac_fn_cxx_try_link ()
3327
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3328
rm -f conftest.$ac_objext conftest$ac_exeext
3329
if { { ac_try="$ac_link"
3331
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332
*) ac_try_echo=$ac_try;;
3334
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3335
$as_echo "$ac_try_echo"; } >&5
3336
(eval "$ac_link") 2>conftest.err
3338
if test -s conftest.err; then
3339
grep -v '^ *+' conftest.err >conftest.er1
3340
cat conftest.er1 >&5
3341
mv -f conftest.er1 conftest.err
3343
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3344
test $ac_status = 0; } && {
3345
test -z "$ac_cxx_werror_flag" ||
3346
test ! -s conftest.err
3347
} && test -s conftest$ac_exeext && {
3348
test "$cross_compiling" = yes ||
3349
$as_test_x conftest$ac_exeext
3353
$as_echo "$as_me: failed program was:" >&5
3354
sed 's/^/| /' conftest.$ac_ext >&5
3358
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
3359
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
3360
# interfere with the next link command; also delete a directory that is
3361
# left behind by Apple's compiler. We do this before executing the actions.
3362
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3363
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3366
} # ac_fn_cxx_try_link
3368
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
3369
# -------------------------------------------
3370
# Tests whether TYPE exists after having included INCLUDES, setting cache
3371
# variable VAR accordingly.
3372
ac_fn_c_check_type ()
3374
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3375
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3376
$as_echo_n "checking for $2... " >&6; }
3377
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
3378
$as_echo_n "(cached) " >&6
3381
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3382
/* end confdefs.h. */
3393
if ac_fn_c_try_compile "$LINENO"; then :
3394
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3395
/* end confdefs.h. */
3406
if ac_fn_c_try_compile "$LINENO"; then :
3411
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3413
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3416
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3417
$as_echo "$ac_res" >&6; }
3418
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3420
} # ac_fn_c_check_type
3422
# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3423
# ---------------------------------------------------------
3424
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3425
# the include files in INCLUDES and setting the cache variable VAR
3427
ac_fn_cxx_check_header_mongrel ()
3429
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3430
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
3431
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3432
$as_echo_n "checking for $2... " >&6; }
3433
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
3434
$as_echo_n "(cached) " >&6
3437
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3438
$as_echo "$ac_res" >&6; }
3440
# Is the header compilable?
3441
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3442
$as_echo_n "checking $2 usability... " >&6; }
3443
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3444
/* end confdefs.h. */
3448
if ac_fn_cxx_try_compile "$LINENO"; then :
3449
ac_header_compiler=yes
3451
ac_header_compiler=no
3453
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3454
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3455
$as_echo "$ac_header_compiler" >&6; }
3457
# Is the header present?
3458
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3459
$as_echo_n "checking $2 presence... " >&6; }
3460
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461
/* end confdefs.h. */
3464
if ac_fn_cxx_try_cpp "$LINENO"; then :
3465
ac_header_preproc=yes
3467
ac_header_preproc=no
3469
rm -f conftest.err conftest.$ac_ext
3470
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3471
$as_echo "$ac_header_preproc" >&6; }
3473
# So? What about this header?
3474
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3476
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3477
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3478
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3479
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3482
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3483
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3484
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3485
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3486
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3487
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3488
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3489
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3490
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3491
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3494
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3495
$as_echo_n "checking for $2... " >&6; }
3496
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
3497
$as_echo_n "(cached) " >&6
3499
eval "$3=\$ac_header_compiler"
3502
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3503
$as_echo "$ac_res" >&6; }
3505
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3507
} # ac_fn_cxx_check_header_mongrel
3509
# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3510
# ----------------------------------------------------
3511
# Tries to find if the field MEMBER exists in type AGGR, after including
3512
# INCLUDES, setting cache variable VAR accordingly.
3513
ac_fn_c_check_member ()
3515
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3516
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3517
$as_echo_n "checking for $2.$3... " >&6; }
3518
if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
3519
$as_echo_n "(cached) " >&6
3521
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3522
/* end confdefs.h. */
3534
if ac_fn_c_try_compile "$LINENO"; then :
3537
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3538
/* end confdefs.h. */
3544
if (sizeof ac_aggr.$3)
3550
if ac_fn_c_try_compile "$LINENO"; then :
3555
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3557
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3560
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3561
$as_echo "$ac_res" >&6; }
3562
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3564
} # ac_fn_c_check_member
3566
# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
3567
# ---------------------------------------------------------
3568
# Tests whether HEADER exists and can be compiled using the include files in
3569
# INCLUDES, setting the cache variable VAR accordingly.
3570
ac_fn_cxx_check_header_compile ()
3572
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3573
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3574
$as_echo_n "checking for $2... " >&6; }
3575
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
3576
$as_echo_n "(cached) " >&6
3578
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3579
/* end confdefs.h. */
3583
if ac_fn_cxx_try_compile "$LINENO"; then :
3588
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3591
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3592
$as_echo "$ac_res" >&6; }
3593
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3595
} # ac_fn_cxx_check_header_compile
2910
3596
cat >config.log <<_ACEOF
2911
3597
This file contains any messages produced by compilers while
2912
3598
running configure, to aid debugging if configure makes a mistake.
2914
It was created by vlc $as_me 1.0.1, which was
2915
generated by GNU Autoconf 2.63. Invocation command line was
3600
It was created by vlc $as_me 1.0.2, which was
3601
generated by GNU Autoconf 2.64. Invocation command line was
35023
26538
# Put the nasty error message in config.log where it belongs
35024
26539
echo "$LUA_PKG_ERRORS" >&5
35026
{ $as_echo "$as_me:$LINENO: result: no" >&5
35027
$as_echo "no" >&6; }
35029
{ $as_echo "$as_me:$LINENO: WARNING: lua5.1 not found, trying lua >= 5.1 instead" >&5
35030
$as_echo "$as_me: WARNING: lua5.1 not found, trying lua >= 5.1 instead" >&2;}
35033
{ $as_echo "$as_me:$LINENO: checking for LUA" >&5
35034
$as_echo_n "checking for LUA... " >&6; }
35036
if test -n "$PKG_CONFIG"; then
35037
if test -n "$LUA_CFLAGS"; then
35038
pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
35040
if test -n "$PKG_CONFIG" && \
35041
{ ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\"") >&5
35042
($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
35044
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35045
(exit $ac_status); }; then
35046
pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
35054
if test -n "$PKG_CONFIG"; then
35055
if test -n "$LUA_LIBS"; then
35056
pkg_cv_LUA_LIBS="$LUA_LIBS"
35058
if test -n "$PKG_CONFIG" && \
35059
{ ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\"") >&5
35060
($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
35062
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35063
(exit $ac_status); }; then
35064
pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
35075
if test $pkg_failed = yes; then
35077
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35078
_pkg_short_errors_supported=yes
35080
_pkg_short_errors_supported=no
35082
if test $_pkg_short_errors_supported = yes; then
35083
LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua >= 5.1"`
35085
LUA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua >= 5.1"`
35087
# Put the nasty error message in config.log where it belongs
35088
echo "$LUA_PKG_ERRORS" >&5
35090
{ $as_echo "$as_me:$LINENO: result: no" >&5
35091
$as_echo "no" >&6; }
35097
for ac_header in lua.h lauxlib.h lualib.h
35099
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35100
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35101
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
35102
$as_echo_n "checking for $ac_header... " >&6; }
35103
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35104
$as_echo_n "(cached) " >&6
35106
ac_res=`eval 'as_val=${'$as_ac_Header'}
35107
$as_echo "$as_val"'`
35108
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35109
$as_echo "$ac_res" >&6; }
35111
# Is the header compilable?
35112
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
35113
$as_echo_n "checking $ac_header usability... " >&6; }
35114
cat >conftest.$ac_ext <<_ACEOF
35117
cat confdefs.h >>conftest.$ac_ext
35118
cat >>conftest.$ac_ext <<_ACEOF
35119
/* end confdefs.h. */
35120
$ac_includes_default
35121
#include <$ac_header>
35123
rm -f conftest.$ac_objext
35124
if { (ac_try="$ac_compile"
35125
case "(($ac_try" in
35126
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35127
*) ac_try_echo=$ac_try;;
35129
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35130
$as_echo "$ac_try_echo") >&5
35131
(eval "$ac_compile") 2>conftest.er1
35133
grep -v '^ *+' conftest.er1 >conftest.err
35135
cat conftest.err >&5
35136
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35137
(exit $ac_status); } && {
35138
test -z "$ac_c_werror_flag" ||
35139
test ! -s conftest.err
35140
} && test -s conftest.$ac_objext; then
35141
ac_header_compiler=yes
35143
$as_echo "$as_me: failed program was:" >&5
35144
sed 's/^/| /' conftest.$ac_ext >&5
35146
ac_header_compiler=no
35149
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35150
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35151
$as_echo "$ac_header_compiler" >&6; }
35153
# Is the header present?
35154
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
35155
$as_echo_n "checking $ac_header presence... " >&6; }
35156
cat >conftest.$ac_ext <<_ACEOF
35159
cat confdefs.h >>conftest.$ac_ext
35160
cat >>conftest.$ac_ext <<_ACEOF
35161
/* end confdefs.h. */
35162
#include <$ac_header>
35164
if { (ac_try="$ac_cpp conftest.$ac_ext"
35165
case "(($ac_try" in
35166
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35167
*) ac_try_echo=$ac_try;;
35169
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35170
$as_echo "$ac_try_echo") >&5
35171
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35173
grep -v '^ *+' conftest.er1 >conftest.err
35175
cat conftest.err >&5
35176
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35177
(exit $ac_status); } >/dev/null && {
35178
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35179
test ! -s conftest.err
35181
ac_header_preproc=yes
35183
$as_echo "$as_me: failed program was:" >&5
35184
sed 's/^/| /' conftest.$ac_ext >&5
35186
ac_header_preproc=no
35189
rm -f conftest.err conftest.$ac_ext
35190
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35191
$as_echo "$ac_header_preproc" >&6; }
35193
# So? What about this header?
35194
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35196
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35197
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35198
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35199
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35200
ac_header_preproc=yes
35203
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35204
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35205
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35206
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35207
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35208
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35209
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35210
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35211
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35212
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35213
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35214
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35218
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
35219
$as_echo_n "checking for $ac_header... " >&6; }
35220
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35221
$as_echo_n "(cached) " >&6
35223
eval "$as_ac_Header=\$ac_header_preproc"
35225
ac_res=`eval 'as_val=${'$as_ac_Header'}
35226
$as_echo "$as_val"'`
35227
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35228
$as_echo "$ac_res" >&6; }
35231
as_val=`eval 'as_val=${'$as_ac_Header'}
35232
$as_echo "$as_val"'`
35233
if test "x$as_val" = x""yes; then
35234
cat >>confdefs.h <<_ACEOF
35235
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35244
{ $as_echo "$as_me:$LINENO: checking for luaL_newstate in -llua5.1 " >&5
35245
$as_echo_n "checking for luaL_newstate in -llua5.1 ... " >&6; }
35246
if test "${ac_cv_lib_lua5_1__luaL_newstate+set}" = set; then
35247
$as_echo_n "(cached) " >&6
35249
ac_check_lib_save_LIBS=$LIBS
35250
LIBS="-llua5.1 $LIBS"
35251
cat >conftest.$ac_ext <<_ACEOF
35254
cat confdefs.h >>conftest.$ac_ext
35255
cat >>conftest.$ac_ext <<_ACEOF
35256
/* end confdefs.h. */
35258
/* Override any GCC internal prototype to avoid an error.
35259
Use char because int might match the return type of a GCC
35260
builtin and then its argument prototype would still apply. */
35264
char luaL_newstate ();
35268
return luaL_newstate ();
35273
rm -f conftest.$ac_objext conftest$ac_exeext
35274
if { (ac_try="$ac_link"
35275
case "(($ac_try" in
35276
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35277
*) ac_try_echo=$ac_try;;
35279
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35280
$as_echo "$ac_try_echo") >&5
35281
(eval "$ac_link") 2>conftest.er1
35283
grep -v '^ *+' conftest.er1 >conftest.err
35285
cat conftest.err >&5
35286
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35287
(exit $ac_status); } && {
35288
test -z "$ac_c_werror_flag" ||
35289
test ! -s conftest.err
35290
} && test -s conftest$ac_exeext && {
35291
test "$cross_compiling" = yes ||
35292
$as_test_x conftest$ac_exeext
35294
ac_cv_lib_lua5_1__luaL_newstate=yes
35296
$as_echo "$as_me: failed program was:" >&5
35297
sed 's/^/| /' conftest.$ac_ext >&5
35299
ac_cv_lib_lua5_1__luaL_newstate=no
35302
rm -rf conftest.dSYM
35303
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35304
conftest$ac_exeext conftest.$ac_ext
35305
LIBS=$ac_check_lib_save_LIBS
35307
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lua5_1__luaL_newstate" >&5
35308
$as_echo "$ac_cv_lib_lua5_1__luaL_newstate" >&6; }
35309
if test "x$ac_cv_lib_lua5_1__luaL_newstate" = x""yes; then
35310
LUA_LIBS="-llua5.1"
35312
{ $as_echo "$as_me:$LINENO: checking for luaL_newstate in -llua51 " >&5
35313
$as_echo_n "checking for luaL_newstate in -llua51 ... " >&6; }
35314
if test "${ac_cv_lib_lua51__luaL_newstate+set}" = set; then
35315
$as_echo_n "(cached) " >&6
35317
ac_check_lib_save_LIBS=$LIBS
35318
LIBS="-llua51 $LIBS"
35319
cat >conftest.$ac_ext <<_ACEOF
35322
cat confdefs.h >>conftest.$ac_ext
35323
cat >>conftest.$ac_ext <<_ACEOF
35324
/* end confdefs.h. */
35326
/* Override any GCC internal prototype to avoid an error.
35327
Use char because int might match the return type of a GCC
35328
builtin and then its argument prototype would still apply. */
35332
char luaL_newstate ();
35336
return luaL_newstate ();
35341
rm -f conftest.$ac_objext conftest$ac_exeext
35342
if { (ac_try="$ac_link"
35343
case "(($ac_try" in
35344
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35345
*) ac_try_echo=$ac_try;;
35347
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35348
$as_echo "$ac_try_echo") >&5
35349
(eval "$ac_link") 2>conftest.er1
35351
grep -v '^ *+' conftest.er1 >conftest.err
35353
cat conftest.err >&5
35354
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35355
(exit $ac_status); } && {
35356
test -z "$ac_c_werror_flag" ||
35357
test ! -s conftest.err
35358
} && test -s conftest$ac_exeext && {
35359
test "$cross_compiling" = yes ||
35360
$as_test_x conftest$ac_exeext
35362
ac_cv_lib_lua51__luaL_newstate=yes
35364
$as_echo "$as_me: failed program was:" >&5
35365
sed 's/^/| /' conftest.$ac_ext >&5
35367
ac_cv_lib_lua51__luaL_newstate=no
35370
rm -rf conftest.dSYM
35371
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35372
conftest$ac_exeext conftest.$ac_ext
35373
LIBS=$ac_check_lib_save_LIBS
35375
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lua51__luaL_newstate" >&5
35376
$as_echo "$ac_cv_lib_lua51__luaL_newstate" >&6; }
35377
if test "x$ac_cv_lib_lua51__luaL_newstate" = x""yes; then
35380
{ $as_echo "$as_me:$LINENO: checking for luaL_newstate in -llua " >&5
35381
$as_echo_n "checking for luaL_newstate in -llua ... " >&6; }
35382
if test "${ac_cv_lib_lua__luaL_newstate+set}" = set; then
35383
$as_echo_n "(cached) " >&6
35385
ac_check_lib_save_LIBS=$LIBS
35387
cat >conftest.$ac_ext <<_ACEOF
35390
cat confdefs.h >>conftest.$ac_ext
35391
cat >>conftest.$ac_ext <<_ACEOF
35392
/* end confdefs.h. */
35394
/* Override any GCC internal prototype to avoid an error.
35395
Use char because int might match the return type of a GCC
35396
builtin and then its argument prototype would still apply. */
35400
char luaL_newstate ();
35404
return luaL_newstate ();
35409
rm -f conftest.$ac_objext conftest$ac_exeext
35410
if { (ac_try="$ac_link"
35411
case "(($ac_try" in
35412
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35413
*) ac_try_echo=$ac_try;;
35415
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35416
$as_echo "$ac_try_echo") >&5
35417
(eval "$ac_link") 2>conftest.er1
35419
grep -v '^ *+' conftest.er1 >conftest.err
35421
cat conftest.err >&5
35422
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35423
(exit $ac_status); } && {
35424
test -z "$ac_c_werror_flag" ||
35425
test ! -s conftest.err
35426
} && test -s conftest$ac_exeext && {
35427
test "$cross_compiling" = yes ||
35428
$as_test_x conftest$ac_exeext
35430
ac_cv_lib_lua__luaL_newstate=yes
35432
$as_echo "$as_me: failed program was:" >&5
35433
sed 's/^/| /' conftest.$ac_ext >&5
35435
ac_cv_lib_lua__luaL_newstate=no
35438
rm -rf conftest.dSYM
35439
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35440
conftest$ac_exeext conftest.$ac_ext
35441
LIBS=$ac_check_lib_save_LIBS
35443
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lua__luaL_newstate" >&5
35444
$as_echo "$ac_cv_lib_lua__luaL_newstate" >&6; }
35445
if test "x$ac_cv_lib_lua__luaL_newstate" = x""yes; then
35449
{ $as_echo "$as_me:$LINENO: WARNING: lua >= 5.1 not found!" >&5
35450
$as_echo "$as_me: WARNING: lua >= 5.1 not found!" >&2;}
35461
elif test $pkg_failed = untried; then
35467
for ac_header in lua.h lauxlib.h lualib.h
35469
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35470
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35471
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
35472
$as_echo_n "checking for $ac_header... " >&6; }
35473
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35474
$as_echo_n "(cached) " >&6
35476
ac_res=`eval 'as_val=${'$as_ac_Header'}
35477
$as_echo "$as_val"'`
35478
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35479
$as_echo "$ac_res" >&6; }
35481
# Is the header compilable?
35482
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
35483
$as_echo_n "checking $ac_header usability... " >&6; }
35484
cat >conftest.$ac_ext <<_ACEOF
35487
cat confdefs.h >>conftest.$ac_ext
35488
cat >>conftest.$ac_ext <<_ACEOF
35489
/* end confdefs.h. */
35490
$ac_includes_default
35491
#include <$ac_header>
35493
rm -f conftest.$ac_objext
35494
if { (ac_try="$ac_compile"
35495
case "(($ac_try" in
35496
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35497
*) ac_try_echo=$ac_try;;
35499
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35500
$as_echo "$ac_try_echo") >&5
35501
(eval "$ac_compile") 2>conftest.er1
35503
grep -v '^ *+' conftest.er1 >conftest.err
35505
cat conftest.err >&5
35506
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35507
(exit $ac_status); } && {
35508
test -z "$ac_c_werror_flag" ||
35509
test ! -s conftest.err
35510
} && test -s conftest.$ac_objext; then
35511
ac_header_compiler=yes
35513
$as_echo "$as_me: failed program was:" >&5
35514
sed 's/^/| /' conftest.$ac_ext >&5
35516
ac_header_compiler=no
35519
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35520
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35521
$as_echo "$ac_header_compiler" >&6; }
35523
# Is the header present?
35524
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
35525
$as_echo_n "checking $ac_header presence... " >&6; }
35526
cat >conftest.$ac_ext <<_ACEOF
35529
cat confdefs.h >>conftest.$ac_ext
35530
cat >>conftest.$ac_ext <<_ACEOF
35531
/* end confdefs.h. */
35532
#include <$ac_header>
35534
if { (ac_try="$ac_cpp conftest.$ac_ext"
35535
case "(($ac_try" in
35536
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35537
*) ac_try_echo=$ac_try;;
35539
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35540
$as_echo "$ac_try_echo") >&5
35541
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35543
grep -v '^ *+' conftest.er1 >conftest.err
35545
cat conftest.err >&5
35546
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35547
(exit $ac_status); } >/dev/null && {
35548
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35549
test ! -s conftest.err
35551
ac_header_preproc=yes
35553
$as_echo "$as_me: failed program was:" >&5
35554
sed 's/^/| /' conftest.$ac_ext >&5
35556
ac_header_preproc=no
35559
rm -f conftest.err conftest.$ac_ext
35560
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35561
$as_echo "$ac_header_preproc" >&6; }
35563
# So? What about this header?
35564
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35566
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35567
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35568
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35569
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35570
ac_header_preproc=yes
35573
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35574
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35575
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35576
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35577
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35578
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35579
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35580
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35581
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35582
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35583
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35584
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35588
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
35589
$as_echo_n "checking for $ac_header... " >&6; }
35590
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35591
$as_echo_n "(cached) " >&6
35593
eval "$as_ac_Header=\$ac_header_preproc"
35595
ac_res=`eval 'as_val=${'$as_ac_Header'}
35596
$as_echo "$as_val"'`
35597
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35598
$as_echo "$ac_res" >&6; }
35601
as_val=`eval 'as_val=${'$as_ac_Header'}
35602
$as_echo "$as_val"'`
35603
if test "x$as_val" = x""yes; then
35604
cat >>confdefs.h <<_ACEOF
35605
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35614
{ $as_echo "$as_me:$LINENO: checking for luaL_newstate in -llua5.1 " >&5
35615
$as_echo_n "checking for luaL_newstate in -llua5.1 ... " >&6; }
35616
if test "${ac_cv_lib_lua5_1__luaL_newstate+set}" = set; then
35617
$as_echo_n "(cached) " >&6
35619
ac_check_lib_save_LIBS=$LIBS
35620
LIBS="-llua5.1 $LIBS"
35621
cat >conftest.$ac_ext <<_ACEOF
35624
cat confdefs.h >>conftest.$ac_ext
35625
cat >>conftest.$ac_ext <<_ACEOF
35626
/* end confdefs.h. */
35628
/* Override any GCC internal prototype to avoid an error.
35629
Use char because int might match the return type of a GCC
35630
builtin and then its argument prototype would still apply. */
35634
char luaL_newstate ();
35638
return luaL_newstate ();
35643
rm -f conftest.$ac_objext conftest$ac_exeext
35644
if { (ac_try="$ac_link"
35645
case "(($ac_try" in
35646
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35647
*) ac_try_echo=$ac_try;;
35649
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35650
$as_echo "$ac_try_echo") >&5
35651
(eval "$ac_link") 2>conftest.er1
35653
grep -v '^ *+' conftest.er1 >conftest.err
35655
cat conftest.err >&5
35656
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35657
(exit $ac_status); } && {
35658
test -z "$ac_c_werror_flag" ||
35659
test ! -s conftest.err
35660
} && test -s conftest$ac_exeext && {
35661
test "$cross_compiling" = yes ||
35662
$as_test_x conftest$ac_exeext
35664
ac_cv_lib_lua5_1__luaL_newstate=yes
35666
$as_echo "$as_me: failed program was:" >&5
35667
sed 's/^/| /' conftest.$ac_ext >&5
35669
ac_cv_lib_lua5_1__luaL_newstate=no
35672
rm -rf conftest.dSYM
35673
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35674
conftest$ac_exeext conftest.$ac_ext
35675
LIBS=$ac_check_lib_save_LIBS
35677
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lua5_1__luaL_newstate" >&5
35678
$as_echo "$ac_cv_lib_lua5_1__luaL_newstate" >&6; }
35679
if test "x$ac_cv_lib_lua5_1__luaL_newstate" = x""yes; then
35680
LUA_LIBS="-llua5.1"
35682
{ $as_echo "$as_me:$LINENO: checking for luaL_newstate in -llua51 " >&5
35683
$as_echo_n "checking for luaL_newstate in -llua51 ... " >&6; }
35684
if test "${ac_cv_lib_lua51__luaL_newstate+set}" = set; then
35685
$as_echo_n "(cached) " >&6
35687
ac_check_lib_save_LIBS=$LIBS
35688
LIBS="-llua51 $LIBS"
35689
cat >conftest.$ac_ext <<_ACEOF
35692
cat confdefs.h >>conftest.$ac_ext
35693
cat >>conftest.$ac_ext <<_ACEOF
35694
/* end confdefs.h. */
35696
/* Override any GCC internal prototype to avoid an error.
35697
Use char because int might match the return type of a GCC
35698
builtin and then its argument prototype would still apply. */
35702
char luaL_newstate ();
35706
return luaL_newstate ();
35711
rm -f conftest.$ac_objext conftest$ac_exeext
35712
if { (ac_try="$ac_link"
35713
case "(($ac_try" in
35714
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35715
*) ac_try_echo=$ac_try;;
35717
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35718
$as_echo "$ac_try_echo") >&5
35719
(eval "$ac_link") 2>conftest.er1
35721
grep -v '^ *+' conftest.er1 >conftest.err
35723
cat conftest.err >&5
35724
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35725
(exit $ac_status); } && {
35726
test -z "$ac_c_werror_flag" ||
35727
test ! -s conftest.err
35728
} && test -s conftest$ac_exeext && {
35729
test "$cross_compiling" = yes ||
35730
$as_test_x conftest$ac_exeext
35732
ac_cv_lib_lua51__luaL_newstate=yes
35734
$as_echo "$as_me: failed program was:" >&5
35735
sed 's/^/| /' conftest.$ac_ext >&5
35737
ac_cv_lib_lua51__luaL_newstate=no
35740
rm -rf conftest.dSYM
35741
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35742
conftest$ac_exeext conftest.$ac_ext
35743
LIBS=$ac_check_lib_save_LIBS
35745
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lua51__luaL_newstate" >&5
35746
$as_echo "$ac_cv_lib_lua51__luaL_newstate" >&6; }
35747
if test "x$ac_cv_lib_lua51__luaL_newstate" = x""yes; then
35750
{ $as_echo "$as_me:$LINENO: checking for luaL_newstate in -llua " >&5
35751
$as_echo_n "checking for luaL_newstate in -llua ... " >&6; }
35752
if test "${ac_cv_lib_lua__luaL_newstate+set}" = set; then
35753
$as_echo_n "(cached) " >&6
35755
ac_check_lib_save_LIBS=$LIBS
35757
cat >conftest.$ac_ext <<_ACEOF
35760
cat confdefs.h >>conftest.$ac_ext
35761
cat >>conftest.$ac_ext <<_ACEOF
35762
/* end confdefs.h. */
35764
/* Override any GCC internal prototype to avoid an error.
35765
Use char because int might match the return type of a GCC
35766
builtin and then its argument prototype would still apply. */
35770
char luaL_newstate ();
35774
return luaL_newstate ();
35779
rm -f conftest.$ac_objext conftest$ac_exeext
35780
if { (ac_try="$ac_link"
35781
case "(($ac_try" in
35782
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35783
*) ac_try_echo=$ac_try;;
35785
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35786
$as_echo "$ac_try_echo") >&5
35787
(eval "$ac_link") 2>conftest.er1
35789
grep -v '^ *+' conftest.er1 >conftest.err
35791
cat conftest.err >&5
35792
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35793
(exit $ac_status); } && {
35794
test -z "$ac_c_werror_flag" ||
35795
test ! -s conftest.err
35796
} && test -s conftest$ac_exeext && {
35797
test "$cross_compiling" = yes ||
35798
$as_test_x conftest$ac_exeext
35800
ac_cv_lib_lua__luaL_newstate=yes
35802
$as_echo "$as_me: failed program was:" >&5
35803
sed 's/^/| /' conftest.$ac_ext >&5
35805
ac_cv_lib_lua__luaL_newstate=no
35808
rm -rf conftest.dSYM
35809
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35810
conftest$ac_exeext conftest.$ac_ext
35811
LIBS=$ac_check_lib_save_LIBS
35813
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lua__luaL_newstate" >&5
35814
$as_echo "$ac_cv_lib_lua__luaL_newstate" >&6; }
35815
if test "x$ac_cv_lib_lua__luaL_newstate" = x""yes; then
35819
{ $as_echo "$as_me:$LINENO: WARNING: lua >= 5.1 not found!" >&5
35820
$as_echo "$as_me: WARNING: lua >= 5.1 not found!" >&2;}
35832
LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
35833
LUA_LIBS=$pkg_cv_LUA_LIBS
35834
{ $as_echo "$as_me:$LINENO: result: yes" >&5
35835
$as_echo "yes" >&6; }
35839
elif test $pkg_failed = untried; then
35841
{ $as_echo "$as_me:$LINENO: WARNING: lua5.1 not found, trying lua >= 5.1 instead" >&5
35842
$as_echo "$as_me: WARNING: lua5.1 not found, trying lua >= 5.1 instead" >&2;}
35845
{ $as_echo "$as_me:$LINENO: checking for LUA" >&5
35846
$as_echo_n "checking for LUA... " >&6; }
35848
if test -n "$PKG_CONFIG"; then
35849
if test -n "$LUA_CFLAGS"; then
35850
pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
35852
if test -n "$PKG_CONFIG" && \
35853
{ ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\"") >&5
35854
($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
35856
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35857
(exit $ac_status); }; then
35858
pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
35866
if test -n "$PKG_CONFIG"; then
35867
if test -n "$LUA_LIBS"; then
35868
pkg_cv_LUA_LIBS="$LUA_LIBS"
35870
if test -n "$PKG_CONFIG" && \
35871
{ ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\"") >&5
35872
($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
35874
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35875
(exit $ac_status); }; then
35876
pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
35887
if test $pkg_failed = yes; then
35889
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35890
_pkg_short_errors_supported=yes
35892
_pkg_short_errors_supported=no
35894
if test $_pkg_short_errors_supported = yes; then
35895
LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua >= 5.1"`
35897
LUA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua >= 5.1"`
35899
# Put the nasty error message in config.log where it belongs
35900
echo "$LUA_PKG_ERRORS" >&5
35902
{ $as_echo "$as_me:$LINENO: result: no" >&5
35903
$as_echo "no" >&6; }
35909
for ac_header in lua.h lauxlib.h lualib.h
35911
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35912
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35913
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
35914
$as_echo_n "checking for $ac_header... " >&6; }
35915
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35916
$as_echo_n "(cached) " >&6
35918
ac_res=`eval 'as_val=${'$as_ac_Header'}
35919
$as_echo "$as_val"'`
35920
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35921
$as_echo "$ac_res" >&6; }
35923
# Is the header compilable?
35924
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
35925
$as_echo_n "checking $ac_header usability... " >&6; }
35926
cat >conftest.$ac_ext <<_ACEOF
35929
cat confdefs.h >>conftest.$ac_ext
35930
cat >>conftest.$ac_ext <<_ACEOF
35931
/* end confdefs.h. */
35932
$ac_includes_default
35933
#include <$ac_header>
35935
rm -f conftest.$ac_objext
35936
if { (ac_try="$ac_compile"
35937
case "(($ac_try" in
35938
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35939
*) ac_try_echo=$ac_try;;
35941
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35942
$as_echo "$ac_try_echo") >&5
35943
(eval "$ac_compile") 2>conftest.er1
35945
grep -v '^ *+' conftest.er1 >conftest.err
35947
cat conftest.err >&5
35948
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35949
(exit $ac_status); } && {
35950
test -z "$ac_c_werror_flag" ||
35951
test ! -s conftest.err
35952
} && test -s conftest.$ac_objext; then
35953
ac_header_compiler=yes
35955
$as_echo "$as_me: failed program was:" >&5
35956
sed 's/^/| /' conftest.$ac_ext >&5
35958
ac_header_compiler=no
35961
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35962
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35963
$as_echo "$ac_header_compiler" >&6; }
35965
# Is the header present?
35966
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
35967
$as_echo_n "checking $ac_header presence... " >&6; }
35968
cat >conftest.$ac_ext <<_ACEOF
35971
cat confdefs.h >>conftest.$ac_ext
35972
cat >>conftest.$ac_ext <<_ACEOF
35973
/* end confdefs.h. */
35974
#include <$ac_header>
35976
if { (ac_try="$ac_cpp conftest.$ac_ext"
35977
case "(($ac_try" in
35978
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35979
*) ac_try_echo=$ac_try;;
35981
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35982
$as_echo "$ac_try_echo") >&5
35983
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35985
grep -v '^ *+' conftest.er1 >conftest.err
35987
cat conftest.err >&5
35988
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35989
(exit $ac_status); } >/dev/null && {
35990
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35991
test ! -s conftest.err
35993
ac_header_preproc=yes
35995
$as_echo "$as_me: failed program was:" >&5
35996
sed 's/^/| /' conftest.$ac_ext >&5
35998
ac_header_preproc=no
36001
rm -f conftest.err conftest.$ac_ext
36002
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36003
$as_echo "$ac_header_preproc" >&6; }
36005
# So? What about this header?
36006
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36008
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36009
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36010
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36011
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36012
ac_header_preproc=yes
36015
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36016
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36017
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36018
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36019
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36020
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36021
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36022
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36023
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36024
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36025
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36026
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36030
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
36031
$as_echo_n "checking for $ac_header... " >&6; }
36032
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36033
$as_echo_n "(cached) " >&6
36035
eval "$as_ac_Header=\$ac_header_preproc"
36037
ac_res=`eval 'as_val=${'$as_ac_Header'}
36038
$as_echo "$as_val"'`
36039
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
36040
$as_echo "$ac_res" >&6; }
36043
as_val=`eval 'as_val=${'$as_ac_Header'}
36044
$as_echo "$as_val"'`
36045
if test "x$as_val" = x""yes; then
36046
cat >>confdefs.h <<_ACEOF
36047
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
36056
{ $as_echo "$as_me:$LINENO: checking for luaL_newstate in -llua5.1 " >&5
36057
$as_echo_n "checking for luaL_newstate in -llua5.1 ... " >&6; }
36058
if test "${ac_cv_lib_lua5_1__luaL_newstate+set}" = set; then
36059
$as_echo_n "(cached) " >&6
36061
ac_check_lib_save_LIBS=$LIBS
36062
LIBS="-llua5.1 $LIBS"
36063
cat >conftest.$ac_ext <<_ACEOF
36066
cat confdefs.h >>conftest.$ac_ext
36067
cat >>conftest.$ac_ext <<_ACEOF
36068
/* end confdefs.h. */
36070
/* Override any GCC internal prototype to avoid an error.
36071
Use char because int might match the return type of a GCC
36072
builtin and then its argument prototype would still apply. */
36076
char luaL_newstate ();
36080
return luaL_newstate ();
36085
rm -f conftest.$ac_objext conftest$ac_exeext
36086
if { (ac_try="$ac_link"
36087
case "(($ac_try" in
36088
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36089
*) ac_try_echo=$ac_try;;
36091
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36092
$as_echo "$ac_try_echo") >&5
36093
(eval "$ac_link") 2>conftest.er1
36095
grep -v '^ *+' conftest.er1 >conftest.err
36097
cat conftest.err >&5
36098
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36099
(exit $ac_status); } && {
36100
test -z "$ac_c_werror_flag" ||
36101
test ! -s conftest.err
36102
} && test -s conftest$ac_exeext && {
36103
test "$cross_compiling" = yes ||
36104
$as_test_x conftest$ac_exeext
36106
ac_cv_lib_lua5_1__luaL_newstate=yes
36108
$as_echo "$as_me: failed program was:" >&5
36109
sed 's/^/| /' conftest.$ac_ext >&5
36111
ac_cv_lib_lua5_1__luaL_newstate=no
36114
rm -rf conftest.dSYM
36115
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36116
conftest$ac_exeext conftest.$ac_ext
36117
LIBS=$ac_check_lib_save_LIBS
36119
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lua5_1__luaL_newstate" >&5
36120
$as_echo "$ac_cv_lib_lua5_1__luaL_newstate" >&6; }
36121
if test "x$ac_cv_lib_lua5_1__luaL_newstate" = x""yes; then
36122
LUA_LIBS="-llua5.1"
36124
{ $as_echo "$as_me:$LINENO: checking for luaL_newstate in -llua51 " >&5
36125
$as_echo_n "checking for luaL_newstate in -llua51 ... " >&6; }
36126
if test "${ac_cv_lib_lua51__luaL_newstate+set}" = set; then
36127
$as_echo_n "(cached) " >&6
36129
ac_check_lib_save_LIBS=$LIBS
36130
LIBS="-llua51 $LIBS"
36131
cat >conftest.$ac_ext <<_ACEOF
36134
cat confdefs.h >>conftest.$ac_ext
36135
cat >>conftest.$ac_ext <<_ACEOF
36136
/* end confdefs.h. */
36138
/* Override any GCC internal prototype to avoid an error.
36139
Use char because int might match the return type of a GCC
36140
builtin and then its argument prototype would still apply. */
36144
char luaL_newstate ();
36148
return luaL_newstate ();
36153
rm -f conftest.$ac_objext conftest$ac_exeext
36154
if { (ac_try="$ac_link"
36155
case "(($ac_try" in
36156
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36157
*) ac_try_echo=$ac_try;;
36159
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36160
$as_echo "$ac_try_echo") >&5
36161
(eval "$ac_link") 2>conftest.er1
36163
grep -v '^ *+' conftest.er1 >conftest.err
36165
cat conftest.err >&5
36166
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36167
(exit $ac_status); } && {
36168
test -z "$ac_c_werror_flag" ||
36169
test ! -s conftest.err
36170
} && test -s conftest$ac_exeext && {
36171
test "$cross_compiling" = yes ||
36172
$as_test_x conftest$ac_exeext
36174
ac_cv_lib_lua51__luaL_newstate=yes
36176
$as_echo "$as_me: failed program was:" >&5
36177
sed 's/^/| /' conftest.$ac_ext >&5
36179
ac_cv_lib_lua51__luaL_newstate=no
36182
rm -rf conftest.dSYM
36183
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36184
conftest$ac_exeext conftest.$ac_ext
36185
LIBS=$ac_check_lib_save_LIBS
36187
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lua51__luaL_newstate" >&5
36188
$as_echo "$ac_cv_lib_lua51__luaL_newstate" >&6; }
36189
if test "x$ac_cv_lib_lua51__luaL_newstate" = x""yes; then
36192
{ $as_echo "$as_me:$LINENO: checking for luaL_newstate in -llua " >&5
36193
$as_echo_n "checking for luaL_newstate in -llua ... " >&6; }
36194
if test "${ac_cv_lib_lua__luaL_newstate+set}" = set; then
36195
$as_echo_n "(cached) " >&6
36197
ac_check_lib_save_LIBS=$LIBS
36199
cat >conftest.$ac_ext <<_ACEOF
36202
cat confdefs.h >>conftest.$ac_ext
36203
cat >>conftest.$ac_ext <<_ACEOF
36204
/* end confdefs.h. */
36206
/* Override any GCC internal prototype to avoid an error.
36207
Use char because int might match the return type of a GCC
36208
builtin and then its argument prototype would still apply. */
36212
char luaL_newstate ();
36216
return luaL_newstate ();
36221
rm -f conftest.$ac_objext conftest$ac_exeext
36222
if { (ac_try="$ac_link"
36223
case "(($ac_try" in
36224
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36225
*) ac_try_echo=$ac_try;;
36227
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36228
$as_echo "$ac_try_echo") >&5
36229
(eval "$ac_link") 2>conftest.er1
36231
grep -v '^ *+' conftest.er1 >conftest.err
36233
cat conftest.err >&5
36234
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36235
(exit $ac_status); } && {
36236
test -z "$ac_c_werror_flag" ||
36237
test ! -s conftest.err
36238
} && test -s conftest$ac_exeext && {
36239
test "$cross_compiling" = yes ||
36240
$as_test_x conftest$ac_exeext
36242
ac_cv_lib_lua__luaL_newstate=yes
36244
$as_echo "$as_me: failed program was:" >&5
36245
sed 's/^/| /' conftest.$ac_ext >&5
36247
ac_cv_lib_lua__luaL_newstate=no
36250
rm -rf conftest.dSYM
36251
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36252
conftest$ac_exeext conftest.$ac_ext
36253
LIBS=$ac_check_lib_save_LIBS
36255
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lua__luaL_newstate" >&5
36256
$as_echo "$ac_cv_lib_lua__luaL_newstate" >&6; }
36257
if test "x$ac_cv_lib_lua__luaL_newstate" = x""yes; then
36261
{ $as_echo "$as_me:$LINENO: WARNING: lua >= 5.1 not found!" >&5
36262
$as_echo "$as_me: WARNING: lua >= 5.1 not found!" >&2;}
36273
elif test $pkg_failed = untried; then
36279
for ac_header in lua.h lauxlib.h lualib.h
36281
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
36282
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36283
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
36284
$as_echo_n "checking for $ac_header... " >&6; }
36285
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36286
$as_echo_n "(cached) " >&6
36288
ac_res=`eval 'as_val=${'$as_ac_Header'}
36289
$as_echo "$as_val"'`
36290
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
36291
$as_echo "$ac_res" >&6; }
36293
# Is the header compilable?
36294
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
36295
$as_echo_n "checking $ac_header usability... " >&6; }
36296
cat >conftest.$ac_ext <<_ACEOF
36299
cat confdefs.h >>conftest.$ac_ext
36300
cat >>conftest.$ac_ext <<_ACEOF
36301
/* end confdefs.h. */
36302
$ac_includes_default
36303
#include <$ac_header>
36305
rm -f conftest.$ac_objext
36306
if { (ac_try="$ac_compile"
36307
case "(($ac_try" in
36308
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36309
*) ac_try_echo=$ac_try;;
36311
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36312
$as_echo "$ac_try_echo") >&5
36313
(eval "$ac_compile") 2>conftest.er1
36315
grep -v '^ *+' conftest.er1 >conftest.err
36317
cat conftest.err >&5
36318
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36319
(exit $ac_status); } && {
36320
test -z "$ac_c_werror_flag" ||
36321
test ! -s conftest.err
36322
} && test -s conftest.$ac_objext; then
36323
ac_header_compiler=yes
36325
$as_echo "$as_me: failed program was:" >&5
36326
sed 's/^/| /' conftest.$ac_ext >&5
36328
ac_header_compiler=no
36331
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36332
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36333
$as_echo "$ac_header_compiler" >&6; }
36335
# Is the header present?
36336
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
36337
$as_echo_n "checking $ac_header presence... " >&6; }
36338
cat >conftest.$ac_ext <<_ACEOF
36341
cat confdefs.h >>conftest.$ac_ext
36342
cat >>conftest.$ac_ext <<_ACEOF
36343
/* end confdefs.h. */
36344
#include <$ac_header>
36346
if { (ac_try="$ac_cpp conftest.$ac_ext"
36347
case "(($ac_try" in
36348
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36349
*) ac_try_echo=$ac_try;;
36351
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36352
$as_echo "$ac_try_echo") >&5
36353
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36355
grep -v '^ *+' conftest.er1 >conftest.err
36357
cat conftest.err >&5
36358
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36359
(exit $ac_status); } >/dev/null && {
36360
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36361
test ! -s conftest.err
36363
ac_header_preproc=yes
36365
$as_echo "$as_me: failed program was:" >&5
36366
sed 's/^/| /' conftest.$ac_ext >&5
36368
ac_header_preproc=no
36371
rm -f conftest.err conftest.$ac_ext
36372
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36373
$as_echo "$ac_header_preproc" >&6; }
36375
# So? What about this header?
36376
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36378
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36379
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36380
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36381
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36382
ac_header_preproc=yes
36385
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36386
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36387
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36388
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36389
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36390
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36391
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36392
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36393
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36394
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36395
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36396
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36400
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
36401
$as_echo_n "checking for $ac_header... " >&6; }
36402
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36403
$as_echo_n "(cached) " >&6
36405
eval "$as_ac_Header=\$ac_header_preproc"
36407
ac_res=`eval 'as_val=${'$as_ac_Header'}
36408
$as_echo "$as_val"'`
36409
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
36410
$as_echo "$ac_res" >&6; }
36413
as_val=`eval 'as_val=${'$as_ac_Header'}
36414
$as_echo "$as_val"'`
36415
if test "x$as_val" = x""yes; then
36416
cat >>confdefs.h <<_ACEOF
36417
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
36426
{ $as_echo "$as_me:$LINENO: checking for luaL_newstate in -llua5.1 " >&5
36427
$as_echo_n "checking for luaL_newstate in -llua5.1 ... " >&6; }
36428
if test "${ac_cv_lib_lua5_1__luaL_newstate+set}" = set; then
36429
$as_echo_n "(cached) " >&6
36431
ac_check_lib_save_LIBS=$LIBS
36432
LIBS="-llua5.1 $LIBS"
36433
cat >conftest.$ac_ext <<_ACEOF
36436
cat confdefs.h >>conftest.$ac_ext
36437
cat >>conftest.$ac_ext <<_ACEOF
36438
/* end confdefs.h. */
36440
/* Override any GCC internal prototype to avoid an error.
36441
Use char because int might match the return type of a GCC
36442
builtin and then its argument prototype would still apply. */
36446
char luaL_newstate ();
36450
return luaL_newstate ();
36455
rm -f conftest.$ac_objext conftest$ac_exeext
36456
if { (ac_try="$ac_link"
36457
case "(($ac_try" in
36458
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36459
*) ac_try_echo=$ac_try;;
36461
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36462
$as_echo "$ac_try_echo") >&5
36463
(eval "$ac_link") 2>conftest.er1
36465
grep -v '^ *+' conftest.er1 >conftest.err
36467
cat conftest.err >&5
36468
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36469
(exit $ac_status); } && {
36470
test -z "$ac_c_werror_flag" ||
36471
test ! -s conftest.err
36472
} && test -s conftest$ac_exeext && {
36473
test "$cross_compiling" = yes ||
36474
$as_test_x conftest$ac_exeext
36476
ac_cv_lib_lua5_1__luaL_newstate=yes
36478
$as_echo "$as_me: failed program was:" >&5
36479
sed 's/^/| /' conftest.$ac_ext >&5
36481
ac_cv_lib_lua5_1__luaL_newstate=no
36484
rm -rf conftest.dSYM
36485
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36486
conftest$ac_exeext conftest.$ac_ext
36487
LIBS=$ac_check_lib_save_LIBS
36489
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lua5_1__luaL_newstate" >&5
36490
$as_echo "$ac_cv_lib_lua5_1__luaL_newstate" >&6; }
36491
if test "x$ac_cv_lib_lua5_1__luaL_newstate" = x""yes; then
36492
LUA_LIBS="-llua5.1"
36494
{ $as_echo "$as_me:$LINENO: checking for luaL_newstate in -llua51 " >&5
36495
$as_echo_n "checking for luaL_newstate in -llua51 ... " >&6; }
36496
if test "${ac_cv_lib_lua51__luaL_newstate+set}" = set; then
36497
$as_echo_n "(cached) " >&6
36499
ac_check_lib_save_LIBS=$LIBS
36500
LIBS="-llua51 $LIBS"
36501
cat >conftest.$ac_ext <<_ACEOF
36504
cat confdefs.h >>conftest.$ac_ext
36505
cat >>conftest.$ac_ext <<_ACEOF
36506
/* end confdefs.h. */
36508
/* Override any GCC internal prototype to avoid an error.
36509
Use char because int might match the return type of a GCC
36510
builtin and then its argument prototype would still apply. */
36514
char luaL_newstate ();
36518
return luaL_newstate ();
36523
rm -f conftest.$ac_objext conftest$ac_exeext
36524
if { (ac_try="$ac_link"
36525
case "(($ac_try" in
36526
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36527
*) ac_try_echo=$ac_try;;
36529
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36530
$as_echo "$ac_try_echo") >&5
36531
(eval "$ac_link") 2>conftest.er1
36533
grep -v '^ *+' conftest.er1 >conftest.err
36535
cat conftest.err >&5
36536
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36537
(exit $ac_status); } && {
36538
test -z "$ac_c_werror_flag" ||
36539
test ! -s conftest.err
36540
} && test -s conftest$ac_exeext && {
36541
test "$cross_compiling" = yes ||
36542
$as_test_x conftest$ac_exeext
36544
ac_cv_lib_lua51__luaL_newstate=yes
36546
$as_echo "$as_me: failed program was:" >&5
36547
sed 's/^/| /' conftest.$ac_ext >&5
36549
ac_cv_lib_lua51__luaL_newstate=no
36552
rm -rf conftest.dSYM
36553
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36554
conftest$ac_exeext conftest.$ac_ext
36555
LIBS=$ac_check_lib_save_LIBS
36557
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lua51__luaL_newstate" >&5
36558
$as_echo "$ac_cv_lib_lua51__luaL_newstate" >&6; }
36559
if test "x$ac_cv_lib_lua51__luaL_newstate" = x""yes; then
36562
{ $as_echo "$as_me:$LINENO: checking for luaL_newstate in -llua " >&5
36563
$as_echo_n "checking for luaL_newstate in -llua ... " >&6; }
36564
if test "${ac_cv_lib_lua__luaL_newstate+set}" = set; then
36565
$as_echo_n "(cached) " >&6
36567
ac_check_lib_save_LIBS=$LIBS
36569
cat >conftest.$ac_ext <<_ACEOF
36572
cat confdefs.h >>conftest.$ac_ext
36573
cat >>conftest.$ac_ext <<_ACEOF
36574
/* end confdefs.h. */
36576
/* Override any GCC internal prototype to avoid an error.
36577
Use char because int might match the return type of a GCC
36578
builtin and then its argument prototype would still apply. */
36582
char luaL_newstate ();
36586
return luaL_newstate ();
36591
rm -f conftest.$ac_objext conftest$ac_exeext
36592
if { (ac_try="$ac_link"
36593
case "(($ac_try" in
36594
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36595
*) ac_try_echo=$ac_try;;
36597
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36598
$as_echo "$ac_try_echo") >&5
36599
(eval "$ac_link") 2>conftest.er1
36601
grep -v '^ *+' conftest.er1 >conftest.err
36603
cat conftest.err >&5
36604
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36605
(exit $ac_status); } && {
36606
test -z "$ac_c_werror_flag" ||
36607
test ! -s conftest.err
36608
} && test -s conftest$ac_exeext && {
36609
test "$cross_compiling" = yes ||
36610
$as_test_x conftest$ac_exeext
36612
ac_cv_lib_lua__luaL_newstate=yes
36614
$as_echo "$as_me: failed program was:" >&5
36615
sed 's/^/| /' conftest.$ac_ext >&5
36617
ac_cv_lib_lua__luaL_newstate=no
36620
rm -rf conftest.dSYM
36621
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36622
conftest$ac_exeext conftest.$ac_ext
36623
LIBS=$ac_check_lib_save_LIBS
36625
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lua__luaL_newstate" >&5
36626
$as_echo "$ac_cv_lib_lua__luaL_newstate" >&6; }
36627
if test "x$ac_cv_lib_lua__luaL_newstate" = x""yes; then
36631
{ $as_echo "$as_me:$LINENO: WARNING: lua >= 5.1 not found!" >&5
36632
$as_echo "$as_me: WARNING: lua >= 5.1 not found!" >&2;}
36644
LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
36645
LUA_LIBS=$pkg_cv_LUA_LIBS
36646
{ $as_echo "$as_me:$LINENO: result: yes" >&5
36647
$as_echo "yes" >&6; }
36652
LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
36653
LUA_LIBS=$pkg_cv_LUA_LIBS
36654
{ $as_echo "$as_me:$LINENO: result: yes" >&5
26541
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26542
$as_echo "no" >&6; }
26544
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: lua5.1 not found, trying lua >= 5.1 instead" >&5
26545
$as_echo "$as_me: WARNING: lua5.1 not found, trying lua >= 5.1 instead" >&2;}
26548
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
26549
$as_echo_n "checking for LUA... " >&6; }
26551
if test -n "$PKG_CONFIG"; then
26552
if test -n "$LUA_CFLAGS"; then
26553
pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
26555
if test -n "$PKG_CONFIG" && \
26556
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
26557
($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
26559
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26560
test $ac_status = 0; }; then
26561
pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
26569
if test -n "$PKG_CONFIG"; then
26570
if test -n "$LUA_LIBS"; then
26571
pkg_cv_LUA_LIBS="$LUA_LIBS"
26573
if test -n "$PKG_CONFIG" && \
26574
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
26575
($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
26577
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26578
test $ac_status = 0; }; then
26579
pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
26590
if test $pkg_failed = yes; then
26592
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26593
_pkg_short_errors_supported=yes
26595
_pkg_short_errors_supported=no
26597
if test $_pkg_short_errors_supported = yes; then
26598
LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua >= 5.1"`
26600
LUA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua >= 5.1"`
26602
# Put the nasty error message in config.log where it belongs
26603
echo "$LUA_PKG_ERRORS" >&5
26605
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26606
$as_echo "no" >&6; }
26609
for ac_header in lua.h lauxlib.h lualib.h
26611
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26612
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26613
eval as_val=\$$as_ac_Header
26614
if test "x$as_val" = x""yes; then :
26615
cat >>confdefs.h <<_ACEOF
26616
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26625
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for luaL_newstate in -llua5.1 " >&5
26626
$as_echo_n "checking for luaL_newstate in -llua5.1 ... " >&6; }
26627
if test "${ac_cv_lib_lua5_1__luaL_newstate+set}" = set; then :
26628
$as_echo_n "(cached) " >&6
26630
ac_check_lib_save_LIBS=$LIBS
26631
LIBS="-llua5.1 $LIBS"
26632
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26633
/* end confdefs.h. */
26635
/* Override any GCC internal prototype to avoid an error.
26636
Use char because int might match the return type of a GCC
26637
builtin and then its argument prototype would still apply. */
26641
char luaL_newstate ();
26645
return luaL_newstate ();
26650
if ac_fn_c_try_link "$LINENO"; then :
26651
ac_cv_lib_lua5_1__luaL_newstate=yes
26653
ac_cv_lib_lua5_1__luaL_newstate=no
26655
rm -f core conftest.err conftest.$ac_objext \
26656
conftest$ac_exeext conftest.$ac_ext
26657
LIBS=$ac_check_lib_save_LIBS
26659
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua5_1__luaL_newstate" >&5
26660
$as_echo "$ac_cv_lib_lua5_1__luaL_newstate" >&6; }
26661
if test "x$ac_cv_lib_lua5_1__luaL_newstate" = x""yes; then :
26662
LUA_LIBS="-llua5.1"
26664
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for luaL_newstate in -llua51 " >&5
26665
$as_echo_n "checking for luaL_newstate in -llua51 ... " >&6; }
26666
if test "${ac_cv_lib_lua51__luaL_newstate+set}" = set; then :
26667
$as_echo_n "(cached) " >&6
26669
ac_check_lib_save_LIBS=$LIBS
26670
LIBS="-llua51 $LIBS"
26671
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26672
/* end confdefs.h. */
26674
/* Override any GCC internal prototype to avoid an error.
26675
Use char because int might match the return type of a GCC
26676
builtin and then its argument prototype would still apply. */
26680
char luaL_newstate ();
26684
return luaL_newstate ();
26689
if ac_fn_c_try_link "$LINENO"; then :
26690
ac_cv_lib_lua51__luaL_newstate=yes
26692
ac_cv_lib_lua51__luaL_newstate=no
26694
rm -f core conftest.err conftest.$ac_objext \
26695
conftest$ac_exeext conftest.$ac_ext
26696
LIBS=$ac_check_lib_save_LIBS
26698
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua51__luaL_newstate" >&5
26699
$as_echo "$ac_cv_lib_lua51__luaL_newstate" >&6; }
26700
if test "x$ac_cv_lib_lua51__luaL_newstate" = x""yes; then :
26703
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for luaL_newstate in -llua " >&5
26704
$as_echo_n "checking for luaL_newstate in -llua ... " >&6; }
26705
if test "${ac_cv_lib_lua__luaL_newstate+set}" = set; then :
26706
$as_echo_n "(cached) " >&6
26708
ac_check_lib_save_LIBS=$LIBS
26709
LIBS="-llua -lm $LIBS"
26710
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26711
/* end confdefs.h. */
26713
/* Override any GCC internal prototype to avoid an error.
26714
Use char because int might match the return type of a GCC
26715
builtin and then its argument prototype would still apply. */
26719
char luaL_newstate ();
26723
return luaL_newstate ();
26728
if ac_fn_c_try_link "$LINENO"; then :
26729
ac_cv_lib_lua__luaL_newstate=yes
26731
ac_cv_lib_lua__luaL_newstate=no
26733
rm -f core conftest.err conftest.$ac_objext \
26734
conftest$ac_exeext conftest.$ac_ext
26735
LIBS=$ac_check_lib_save_LIBS
26737
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua__luaL_newstate" >&5
26738
$as_echo "$ac_cv_lib_lua__luaL_newstate" >&6; }
26739
if test "x$ac_cv_lib_lua__luaL_newstate" = x""yes; then :
26743
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: lua >= 5.1 not found!" >&5
26744
$as_echo "$as_me: WARNING: lua >= 5.1 not found!" >&2;}
26755
elif test $pkg_failed = untried; then
26758
for ac_header in lua.h lauxlib.h lualib.h
26760
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26761
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26762
eval as_val=\$$as_ac_Header
26763
if test "x$as_val" = x""yes; then :
26764
cat >>confdefs.h <<_ACEOF
26765
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26774
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for luaL_newstate in -llua5.1 " >&5
26775
$as_echo_n "checking for luaL_newstate in -llua5.1 ... " >&6; }
26776
if test "${ac_cv_lib_lua5_1__luaL_newstate+set}" = set; then :
26777
$as_echo_n "(cached) " >&6
26779
ac_check_lib_save_LIBS=$LIBS
26780
LIBS="-llua5.1 $LIBS"
26781
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26782
/* end confdefs.h. */
26784
/* Override any GCC internal prototype to avoid an error.
26785
Use char because int might match the return type of a GCC
26786
builtin and then its argument prototype would still apply. */
26790
char luaL_newstate ();
26794
return luaL_newstate ();
26799
if ac_fn_c_try_link "$LINENO"; then :
26800
ac_cv_lib_lua5_1__luaL_newstate=yes
26802
ac_cv_lib_lua5_1__luaL_newstate=no
26804
rm -f core conftest.err conftest.$ac_objext \
26805
conftest$ac_exeext conftest.$ac_ext
26806
LIBS=$ac_check_lib_save_LIBS
26808
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua5_1__luaL_newstate" >&5
26809
$as_echo "$ac_cv_lib_lua5_1__luaL_newstate" >&6; }
26810
if test "x$ac_cv_lib_lua5_1__luaL_newstate" = x""yes; then :
26811
LUA_LIBS="-llua5.1"
26813
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for luaL_newstate in -llua51 " >&5
26814
$as_echo_n "checking for luaL_newstate in -llua51 ... " >&6; }
26815
if test "${ac_cv_lib_lua51__luaL_newstate+set}" = set; then :
26816
$as_echo_n "(cached) " >&6
26818
ac_check_lib_save_LIBS=$LIBS
26819
LIBS="-llua51 $LIBS"
26820
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26821
/* end confdefs.h. */
26823
/* Override any GCC internal prototype to avoid an error.
26824
Use char because int might match the return type of a GCC
26825
builtin and then its argument prototype would still apply. */
26829
char luaL_newstate ();
26833
return luaL_newstate ();
26838
if ac_fn_c_try_link "$LINENO"; then :
26839
ac_cv_lib_lua51__luaL_newstate=yes
26841
ac_cv_lib_lua51__luaL_newstate=no
26843
rm -f core conftest.err conftest.$ac_objext \
26844
conftest$ac_exeext conftest.$ac_ext
26845
LIBS=$ac_check_lib_save_LIBS
26847
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua51__luaL_newstate" >&5
26848
$as_echo "$ac_cv_lib_lua51__luaL_newstate" >&6; }
26849
if test "x$ac_cv_lib_lua51__luaL_newstate" = x""yes; then :
26852
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for luaL_newstate in -llua " >&5
26853
$as_echo_n "checking for luaL_newstate in -llua ... " >&6; }
26854
if test "${ac_cv_lib_lua__luaL_newstate+set}" = set; then :
26855
$as_echo_n "(cached) " >&6
26857
ac_check_lib_save_LIBS=$LIBS
26858
LIBS="-llua -lm $LIBS"
26859
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26860
/* end confdefs.h. */
26862
/* Override any GCC internal prototype to avoid an error.
26863
Use char because int might match the return type of a GCC
26864
builtin and then its argument prototype would still apply. */
26868
char luaL_newstate ();
26872
return luaL_newstate ();
26877
if ac_fn_c_try_link "$LINENO"; then :
26878
ac_cv_lib_lua__luaL_newstate=yes
26880
ac_cv_lib_lua__luaL_newstate=no
26882
rm -f core conftest.err conftest.$ac_objext \
26883
conftest$ac_exeext conftest.$ac_ext
26884
LIBS=$ac_check_lib_save_LIBS
26886
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua__luaL_newstate" >&5
26887
$as_echo "$ac_cv_lib_lua__luaL_newstate" >&6; }
26888
if test "x$ac_cv_lib_lua__luaL_newstate" = x""yes; then :
26892
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: lua >= 5.1 not found!" >&5
26893
$as_echo "$as_me: WARNING: lua >= 5.1 not found!" >&2;}
26905
LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
26906
LUA_LIBS=$pkg_cv_LUA_LIBS
26907
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26908
$as_echo "yes" >&6; }
26912
elif test $pkg_failed = untried; then
26914
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: lua5.1 not found, trying lua >= 5.1 instead" >&5
26915
$as_echo "$as_me: WARNING: lua5.1 not found, trying lua >= 5.1 instead" >&2;}
26918
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
26919
$as_echo_n "checking for LUA... " >&6; }
26921
if test -n "$PKG_CONFIG"; then
26922
if test -n "$LUA_CFLAGS"; then
26923
pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
26925
if test -n "$PKG_CONFIG" && \
26926
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
26927
($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
26929
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26930
test $ac_status = 0; }; then
26931
pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
26939
if test -n "$PKG_CONFIG"; then
26940
if test -n "$LUA_LIBS"; then
26941
pkg_cv_LUA_LIBS="$LUA_LIBS"
26943
if test -n "$PKG_CONFIG" && \
26944
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
26945
($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
26947
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26948
test $ac_status = 0; }; then
26949
pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
26960
if test $pkg_failed = yes; then
26962
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26963
_pkg_short_errors_supported=yes
26965
_pkg_short_errors_supported=no
26967
if test $_pkg_short_errors_supported = yes; then
26968
LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua >= 5.1"`
26970
LUA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua >= 5.1"`
26972
# Put the nasty error message in config.log where it belongs
26973
echo "$LUA_PKG_ERRORS" >&5
26975
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26976
$as_echo "no" >&6; }
26979
for ac_header in lua.h lauxlib.h lualib.h
26981
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26982
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26983
eval as_val=\$$as_ac_Header
26984
if test "x$as_val" = x""yes; then :
26985
cat >>confdefs.h <<_ACEOF
26986
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26995
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for luaL_newstate in -llua5.1 " >&5
26996
$as_echo_n "checking for luaL_newstate in -llua5.1 ... " >&6; }
26997
if test "${ac_cv_lib_lua5_1__luaL_newstate+set}" = set; then :
26998
$as_echo_n "(cached) " >&6
27000
ac_check_lib_save_LIBS=$LIBS
27001
LIBS="-llua5.1 $LIBS"
27002
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27003
/* end confdefs.h. */
27005
/* Override any GCC internal prototype to avoid an error.
27006
Use char because int might match the return type of a GCC
27007
builtin and then its argument prototype would still apply. */
27011
char luaL_newstate ();
27015
return luaL_newstate ();
27020
if ac_fn_c_try_link "$LINENO"; then :
27021
ac_cv_lib_lua5_1__luaL_newstate=yes
27023
ac_cv_lib_lua5_1__luaL_newstate=no
27025
rm -f core conftest.err conftest.$ac_objext \
27026
conftest$ac_exeext conftest.$ac_ext
27027
LIBS=$ac_check_lib_save_LIBS
27029
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua5_1__luaL_newstate" >&5
27030
$as_echo "$ac_cv_lib_lua5_1__luaL_newstate" >&6; }
27031
if test "x$ac_cv_lib_lua5_1__luaL_newstate" = x""yes; then :
27032
LUA_LIBS="-llua5.1"
27034
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for luaL_newstate in -llua51 " >&5
27035
$as_echo_n "checking for luaL_newstate in -llua51 ... " >&6; }
27036
if test "${ac_cv_lib_lua51__luaL_newstate+set}" = set; then :
27037
$as_echo_n "(cached) " >&6
27039
ac_check_lib_save_LIBS=$LIBS
27040
LIBS="-llua51 $LIBS"
27041
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27042
/* end confdefs.h. */
27044
/* Override any GCC internal prototype to avoid an error.
27045
Use char because int might match the return type of a GCC
27046
builtin and then its argument prototype would still apply. */
27050
char luaL_newstate ();
27054
return luaL_newstate ();
27059
if ac_fn_c_try_link "$LINENO"; then :
27060
ac_cv_lib_lua51__luaL_newstate=yes
27062
ac_cv_lib_lua51__luaL_newstate=no
27064
rm -f core conftest.err conftest.$ac_objext \
27065
conftest$ac_exeext conftest.$ac_ext
27066
LIBS=$ac_check_lib_save_LIBS
27068
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua51__luaL_newstate" >&5
27069
$as_echo "$ac_cv_lib_lua51__luaL_newstate" >&6; }
27070
if test "x$ac_cv_lib_lua51__luaL_newstate" = x""yes; then :
27073
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for luaL_newstate in -llua " >&5
27074
$as_echo_n "checking for luaL_newstate in -llua ... " >&6; }
27075
if test "${ac_cv_lib_lua__luaL_newstate+set}" = set; then :
27076
$as_echo_n "(cached) " >&6
27078
ac_check_lib_save_LIBS=$LIBS
27079
LIBS="-llua -lm $LIBS"
27080
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27081
/* end confdefs.h. */
27083
/* Override any GCC internal prototype to avoid an error.
27084
Use char because int might match the return type of a GCC
27085
builtin and then its argument prototype would still apply. */
27089
char luaL_newstate ();
27093
return luaL_newstate ();
27098
if ac_fn_c_try_link "$LINENO"; then :
27099
ac_cv_lib_lua__luaL_newstate=yes
27101
ac_cv_lib_lua__luaL_newstate=no
27103
rm -f core conftest.err conftest.$ac_objext \
27104
conftest$ac_exeext conftest.$ac_ext
27105
LIBS=$ac_check_lib_save_LIBS
27107
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua__luaL_newstate" >&5
27108
$as_echo "$ac_cv_lib_lua__luaL_newstate" >&6; }
27109
if test "x$ac_cv_lib_lua__luaL_newstate" = x""yes; then :
27113
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: lua >= 5.1 not found!" >&5
27114
$as_echo "$as_me: WARNING: lua >= 5.1 not found!" >&2;}
27125
elif test $pkg_failed = untried; then
27128
for ac_header in lua.h lauxlib.h lualib.h
27130
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27131
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27132
eval as_val=\$$as_ac_Header
27133
if test "x$as_val" = x""yes; then :
27134
cat >>confdefs.h <<_ACEOF
27135
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27144
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for luaL_newstate in -llua5.1 " >&5
27145
$as_echo_n "checking for luaL_newstate in -llua5.1 ... " >&6; }
27146
if test "${ac_cv_lib_lua5_1__luaL_newstate+set}" = set; then :
27147
$as_echo_n "(cached) " >&6
27149
ac_check_lib_save_LIBS=$LIBS
27150
LIBS="-llua5.1 $LIBS"
27151
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27152
/* end confdefs.h. */
27154
/* Override any GCC internal prototype to avoid an error.
27155
Use char because int might match the return type of a GCC
27156
builtin and then its argument prototype would still apply. */
27160
char luaL_newstate ();
27164
return luaL_newstate ();
27169
if ac_fn_c_try_link "$LINENO"; then :
27170
ac_cv_lib_lua5_1__luaL_newstate=yes
27172
ac_cv_lib_lua5_1__luaL_newstate=no
27174
rm -f core conftest.err conftest.$ac_objext \
27175
conftest$ac_exeext conftest.$ac_ext
27176
LIBS=$ac_check_lib_save_LIBS
27178
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua5_1__luaL_newstate" >&5
27179
$as_echo "$ac_cv_lib_lua5_1__luaL_newstate" >&6; }
27180
if test "x$ac_cv_lib_lua5_1__luaL_newstate" = x""yes; then :
27181
LUA_LIBS="-llua5.1"
27183
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for luaL_newstate in -llua51 " >&5
27184
$as_echo_n "checking for luaL_newstate in -llua51 ... " >&6; }
27185
if test "${ac_cv_lib_lua51__luaL_newstate+set}" = set; then :
27186
$as_echo_n "(cached) " >&6
27188
ac_check_lib_save_LIBS=$LIBS
27189
LIBS="-llua51 $LIBS"
27190
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27191
/* end confdefs.h. */
27193
/* Override any GCC internal prototype to avoid an error.
27194
Use char because int might match the return type of a GCC
27195
builtin and then its argument prototype would still apply. */
27199
char luaL_newstate ();
27203
return luaL_newstate ();
27208
if ac_fn_c_try_link "$LINENO"; then :
27209
ac_cv_lib_lua51__luaL_newstate=yes
27211
ac_cv_lib_lua51__luaL_newstate=no
27213
rm -f core conftest.err conftest.$ac_objext \
27214
conftest$ac_exeext conftest.$ac_ext
27215
LIBS=$ac_check_lib_save_LIBS
27217
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua51__luaL_newstate" >&5
27218
$as_echo "$ac_cv_lib_lua51__luaL_newstate" >&6; }
27219
if test "x$ac_cv_lib_lua51__luaL_newstate" = x""yes; then :
27222
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for luaL_newstate in -llua " >&5
27223
$as_echo_n "checking for luaL_newstate in -llua ... " >&6; }
27224
if test "${ac_cv_lib_lua__luaL_newstate+set}" = set; then :
27225
$as_echo_n "(cached) " >&6
27227
ac_check_lib_save_LIBS=$LIBS
27228
LIBS="-llua -lm $LIBS"
27229
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27230
/* end confdefs.h. */
27232
/* Override any GCC internal prototype to avoid an error.
27233
Use char because int might match the return type of a GCC
27234
builtin and then its argument prototype would still apply. */
27238
char luaL_newstate ();
27242
return luaL_newstate ();
27247
if ac_fn_c_try_link "$LINENO"; then :
27248
ac_cv_lib_lua__luaL_newstate=yes
27250
ac_cv_lib_lua__luaL_newstate=no
27252
rm -f core conftest.err conftest.$ac_objext \
27253
conftest$ac_exeext conftest.$ac_ext
27254
LIBS=$ac_check_lib_save_LIBS
27256
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua__luaL_newstate" >&5
27257
$as_echo "$ac_cv_lib_lua__luaL_newstate" >&6; }
27258
if test "x$ac_cv_lib_lua__luaL_newstate" = x""yes; then :
27262
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: lua >= 5.1 not found!" >&5
27263
$as_echo "$as_me: WARNING: lua >= 5.1 not found!" >&2;}
27275
LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
27276
LUA_LIBS=$pkg_cv_LUA_LIBS
27277
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27278
$as_echo "yes" >&6; }
27283
LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
27284
LUA_LIBS=$pkg_cv_LUA_LIBS
27285
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36655
27286
$as_echo "yes" >&6; }
36658
27289
if test "x${have_lua}" = "xyes" ; then
36660
cat >>confdefs.h <<\_ACEOF
27291
$as_echo "#define HAVE_LUA 1" >>confdefs.h
36665
27294
for element in lua; do
69976
44000
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
69977
44001
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
69978
44002
# will be set to the directory where LIBOBJS objects are built.
69979
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
69980
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
44003
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
44004
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
69982
44006
LIBOBJS=$ac_libobjs
69984
44008
LTLIBOBJS=$ac_ltlibobjs
44011
if test -n "$EXEEXT"; then
44013
am__EXEEXT_FALSE='#'
44015
am__EXEEXT_TRUE='#'
69987
44019
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
69988
{ { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
69989
Usually this means the macro was only invoked conditionally." >&5
69990
$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
69991
Usually this means the macro was only invoked conditionally." >&2;}
69992
{ (exit 1); exit 1; }; }
44020
as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
44021
Usually this means the macro was only invoked conditionally." "$LINENO" 5
69994
44023
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
69995
{ { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
69996
Usually this means the macro was only invoked conditionally." >&5
69997
$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
69998
Usually this means the macro was only invoked conditionally." >&2;}
69999
{ (exit 1); exit 1; }; }
44024
as_fn_error "conditional \"AMDEP\" was never defined.
44025
Usually this means the macro was only invoked conditionally." "$LINENO" 5
70001
44027
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
70002
{ { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
70003
Usually this means the macro was only invoked conditionally." >&5
70004
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
70005
Usually this means the macro was only invoked conditionally." >&2;}
70006
{ (exit 1); exit 1; }; }
44028
as_fn_error "conditional \"am__fastdepCC\" was never defined.
44029
Usually this means the macro was only invoked conditionally." "$LINENO" 5
70008
44031
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
70009
{ { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
70010
Usually this means the macro was only invoked conditionally." >&5
70011
$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
70012
Usually this means the macro was only invoked conditionally." >&2;}
70013
{ (exit 1); exit 1; }; }
70015
if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
70016
{ { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepOBJC\" was never defined.
70017
Usually this means the macro was only invoked conditionally." >&5
70018
$as_echo "$as_me: error: conditional \"am__fastdepOBJC\" was never defined.
70019
Usually this means the macro was only invoked conditionally." >&2;}
70020
{ (exit 1); exit 1; }; }
70022
if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
70023
{ { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepOBJC\" was never defined.
70024
Usually this means the macro was only invoked conditionally." >&5
70025
$as_echo "$as_me: error: conditional \"am__fastdepOBJC\" was never defined.
70026
Usually this means the macro was only invoked conditionally." >&2;}
70027
{ (exit 1); exit 1; }; }
44032
as_fn_error "conditional \"am__fastdepCXX\" was never defined.
44033
Usually this means the macro was only invoked conditionally." "$LINENO" 5
44035
if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
44036
as_fn_error "conditional \"am__fastdepOBJC\" was never defined.
44037
Usually this means the macro was only invoked conditionally." "$LINENO" 5
44039
if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
44040
as_fn_error "conditional \"am__fastdepOBJC\" was never defined.
44041
Usually this means the macro was only invoked conditionally." "$LINENO" 5
70029
44043
if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
70030
{ { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
70031
Usually this means the macro was only invoked conditionally." >&5
70032
$as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
70033
Usually this means the macro was only invoked conditionally." >&2;}
70034
{ (exit 1); exit 1; }; }
44044
as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
44045
Usually this means the macro was only invoked conditionally." "$LINENO" 5
70036
44047
if test -z "${HAVE_BEOS_TRUE}" && test -z "${HAVE_BEOS_FALSE}"; then
70037
{ { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_BEOS\" was never defined.
70038
Usually this means the macro was only invoked conditionally." >&5
70039
$as_echo "$as_me: error: conditional \"HAVE_BEOS\" was never defined.
70040
Usually this means the macro was only invoked conditionally." >&2;}
70041
{ (exit 1); exit 1; }; }
44048
as_fn_error "conditional \"HAVE_BEOS\" was never defined.
44049
Usually this means the macro was only invoked conditionally." "$LINENO" 5
70043
44051
if test -z "${HAVE_DARWIN_TRUE}" && test -z "${HAVE_DARWIN_FALSE}"; then
70044
{ { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_DARWIN\" was never defined.
70045
Usually this means the macro was only invoked conditionally." >&5
70046
$as_echo "$as_me: error: conditional \"HAVE_DARWIN\" was never defined.
70047
Usually this means the macro was only invoked conditionally." >&2;}
70048
{ (exit 1); exit 1; }; }
44052
as_fn_error "conditional \"HAVE_DARWIN\" was never defined.
44053
Usually this means the macro was only invoked conditionally." "$LINENO" 5
70050
44055
if test -z "${HAVE_LINUX_TRUE}" && test -z "${HAVE_LINUX_FALSE}"; then
70051
{ { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LINUX\" was never defined.
70052
Usually this means the macro was only invoked conditionally." >&5
70053
$as_echo "$as_me: error: conditional \"HAVE_LINUX\" was never defined.
70054
Usually this means the macro was only invoked conditionally." >&2;}
70055
{ (exit 1); exit 1; }; }
44056
as_fn_error "conditional \"HAVE_LINUX\" was never defined.
44057
Usually this means the macro was only invoked conditionally." "$LINENO" 5
70057
44059
if test -z "${HAVE_WIN32_TRUE}" && test -z "${HAVE_WIN32_FALSE}"; then
70058
{ { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_WIN32\" was never defined.
70059
Usually this means the macro was only invoked conditionally." >&5
70060
$as_echo "$as_me: error: conditional \"HAVE_WIN32\" was never defined.
70061
Usually this means the macro was only invoked conditionally." >&2;}
70062
{ (exit 1); exit 1; }; }
44060
as_fn_error "conditional \"HAVE_WIN32\" was never defined.
44061
Usually this means the macro was only invoked conditionally." "$LINENO" 5
70064
44063
if test -z "${HAVE_WINCE_TRUE}" && test -z "${HAVE_WINCE_FALSE}"; then
70065
{ { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_WINCE\" was never defined.
70066
Usually this means the macro was only invoked conditionally." >&5
70067
$as_echo "$as_me: error: conditional \"HAVE_WINCE\" was never defined.
70068
Usually this means the macro was only invoked conditionally." >&2;}
70069
{ (exit 1); exit 1; }; }
44064
as_fn_error "conditional \"HAVE_WINCE\" was never defined.
44065
Usually this means the macro was only invoked conditionally." "$LINENO" 5
70071
44067
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
70072
{ { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
70073
Usually this means the macro was only invoked conditionally." >&5
70074
$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
70075
Usually this means the macro was only invoked conditionally." >&2;}
70076
{ (exit 1); exit 1; }; }
44068
as_fn_error "conditional \"am__fastdepCXX\" was never defined.
44069
Usually this means the macro was only invoked conditionally." "$LINENO" 5
70078
44071
if test -z "${BUILD_GETOPT_TRUE}" && test -z "${BUILD_GETOPT_FALSE}"; then
70079
{ { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_GETOPT\" was never defined.
70080
Usually this means the macro was only invoked conditionally." >&5
70081
$as_echo "$as_me: error: conditional \"BUILD_GETOPT\" was never defined.
70082
Usually this means the macro was only invoked conditionally." >&2;}
70083
{ (exit 1); exit 1; }; }
44072
as_fn_error "conditional \"BUILD_GETOPT\" was never defined.
44073
Usually this means the macro was only invoked conditionally." "$LINENO" 5
70085
44075
if test -z "${BUILD_DIRENT_TRUE}" && test -z "${BUILD_DIRENT_FALSE}"; then
70086
{ { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_DIRENT\" was never defined.
70087
Usually this means the macro was only invoked conditionally." >&5
70088
$as_echo "$as_me: error: conditional \"BUILD_DIRENT\" was never defined.
70089
Usually this means the macro was only invoked conditionally." >&2;}
70090
{ (exit 1); exit 1; }; }
44076
as_fn_error "conditional \"BUILD_DIRENT\" was never defined.
44077
Usually this means the macro was only invoked conditionally." "$LINENO" 5
70092
44079
if test -z "${HAVE_ZLIB_TRUE}" && test -z "${HAVE_ZLIB_FALSE}"; then
70093
{ { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_ZLIB\" was never defined.
70094
Usually this means the macro was only invoked conditionally." >&5
70095
$as_echo "$as_me: error: conditional \"HAVE_ZLIB\" was never defined.
70096
Usually this means the macro was only invoked conditionally." >&2;}
70097
{ (exit 1); exit 1; }; }
44080
as_fn_error "conditional \"HAVE_ZLIB\" was never defined.
44081
Usually this means the macro was only invoked conditionally." "$LINENO" 5
70099
44083
if test -z "${HAVE_MINIZIP_TRUE}" && test -z "${HAVE_MINIZIP_FALSE}"; then
70100
{ { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_MINIZIP\" was never defined.
70101
Usually this means the macro was only invoked conditionally." >&5
70102
$as_echo "$as_me: error: conditional \"HAVE_MINIZIP\" was never defined.
70103
Usually this means the macro was only invoked conditionally." >&2;}
70104
{ (exit 1); exit 1; }; }
44084
as_fn_error "conditional \"HAVE_MINIZIP\" was never defined.
44085
Usually this means the macro was only invoked conditionally." "$LINENO" 5
70106
44087
if test -z "${ENABLE_SOUT_TRUE}" && test -z "${ENABLE_SOUT_FALSE}"; then
70107
{ { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_SOUT\" was never defined.
70108
Usually this means the macro was only invoked conditionally." >&5
70109
$as_echo "$as_me: error: conditional \"ENABLE_SOUT\" was never defined.
70110
Usually this means the macro was only invoked conditionally." >&2;}
70111
{ (exit 1); exit 1; }; }
44088
as_fn_error "conditional \"ENABLE_SOUT\" was never defined.
44089
Usually this means the macro was only invoked conditionally." "$LINENO" 5
70113
44091
if test -z "${BUILD_LUA_TRUE}" && test -z "${BUILD_LUA_FALSE}"; then
70114
{ { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_LUA\" was never defined.
70115
Usually this means the macro was only invoked conditionally." >&5
70116
$as_echo "$as_me: error: conditional \"BUILD_LUA\" was never defined.
70117
Usually this means the macro was only invoked conditionally." >&2;}
70118
{ (exit 1); exit 1; }; }
44092
as_fn_error "conditional \"BUILD_LUA\" was never defined.
44093
Usually this means the macro was only invoked conditionally." "$LINENO" 5
70120
44095
if test -z "${BUILD_HTTPD_TRUE}" && test -z "${BUILD_HTTPD_FALSE}"; then
70121
{ { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_HTTPD\" was never defined.
70122
Usually this means the macro was only invoked conditionally." >&5
70123
$as_echo "$as_me: error: conditional \"BUILD_HTTPD\" was never defined.
70124
Usually this means the macro was only invoked conditionally." >&2;}
70125
{ (exit 1); exit 1; }; }
44096
as_fn_error "conditional \"BUILD_HTTPD\" was never defined.
44097
Usually this means the macro was only invoked conditionally." "$LINENO" 5
70127
44099
if test -z "${ENABLE_VLM_TRUE}" && test -z "${ENABLE_VLM_FALSE}"; then
70128
{ { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_VLM\" was never defined.
70129
Usually this means the macro was only invoked conditionally." >&5
70130
$as_echo "$as_me: error: conditional \"ENABLE_VLM\" was never defined.
70131
Usually this means the macro was only invoked conditionally." >&2;}
70132
{ (exit 1); exit 1; }; }
44100
as_fn_error "conditional \"ENABLE_VLM\" was never defined.
44101
Usually this means the macro was only invoked conditionally." "$LINENO" 5
70134
44103
if test -z "${BUILD_OSDMENU_TRUE}" && test -z "${BUILD_OSDMENU_FALSE}"; then
70135
{ { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_OSDMENU\" was never defined.
70136
Usually this means the macro was only invoked conditionally." >&5
70137
$as_echo "$as_me: error: conditional \"BUILD_OSDMENU\" was never defined.
70138
Usually this means the macro was only invoked conditionally." >&2;}
70139
{ (exit 1); exit 1; }; }
44104
as_fn_error "conditional \"BUILD_OSDMENU\" was never defined.
44105
Usually this means the macro was only invoked conditionally." "$LINENO" 5
70141
44107
if test -z "${BUILD_SKINS_TRUE}" && test -z "${BUILD_SKINS_FALSE}"; then
70142
{ { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SKINS\" was never defined.
70143
Usually this means the macro was only invoked conditionally." >&5
70144
$as_echo "$as_me: error: conditional \"BUILD_SKINS\" was never defined.
70145
Usually this means the macro was only invoked conditionally." >&2;}
70146
{ (exit 1); exit 1; }; }
44108
as_fn_error "conditional \"BUILD_SKINS\" was never defined.
44109
Usually this means the macro was only invoked conditionally." "$LINENO" 5
70148
44111
if test -z "${BUILD_PDA_TRUE}" && test -z "${BUILD_PDA_FALSE}"; then
70149
{ { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_PDA\" was never defined.
70150
Usually this means the macro was only invoked conditionally." >&5
70151
$as_echo "$as_me: error: conditional \"BUILD_PDA\" was never defined.
70152
Usually this means the macro was only invoked conditionally." >&2;}
70153
{ (exit 1); exit 1; }; }
44112
as_fn_error "conditional \"BUILD_PDA\" was never defined.
44113
Usually this means the macro was only invoked conditionally." "$LINENO" 5
70155
44115
if test -z "${BUILD_MAEMO_TRUE}" && test -z "${BUILD_MAEMO_FALSE}"; then
70156
{ { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_MAEMO\" was never defined.
70157
Usually this means the macro was only invoked conditionally." >&5
70158
$as_echo "$as_me: error: conditional \"BUILD_MAEMO\" was never defined.
70159
Usually this means the macro was only invoked conditionally." >&2;}
70160
{ (exit 1); exit 1; }; }
44116
as_fn_error "conditional \"BUILD_MAEMO\" was never defined.
44117
Usually this means the macro was only invoked conditionally." "$LINENO" 5
70162
44119
if test -z "${ENABLE_QT4_TRUE}" && test -z "${ENABLE_QT4_FALSE}"; then
70163
{ { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_QT4\" was never defined.
70164
Usually this means the macro was only invoked conditionally." >&5
70165
$as_echo "$as_me: error: conditional \"ENABLE_QT4\" was never defined.
70166
Usually this means the macro was only invoked conditionally." >&2;}
70167
{ (exit 1); exit 1; }; }
44120
as_fn_error "conditional \"ENABLE_QT4\" was never defined.
44121
Usually this means the macro was only invoked conditionally." "$LINENO" 5
70169
44123
if test -z "${HAVE_LIBGCRYPT_TRUE}" && test -z "${HAVE_LIBGCRYPT_FALSE}"; then
70170
{ { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LIBGCRYPT\" was never defined.
70171
Usually this means the macro was only invoked conditionally." >&5
70172
$as_echo "$as_me: error: conditional \"HAVE_LIBGCRYPT\" was never defined.
70173
Usually this means the macro was only invoked conditionally." >&2;}
70174
{ (exit 1); exit 1; }; }
44124
as_fn_error "conditional \"HAVE_LIBGCRYPT\" was never defined.
44125
Usually this means the macro was only invoked conditionally." "$LINENO" 5
70177
44128
if test -z "${LOADER_TRUE}" && test -z "${LOADER_FALSE}"; then
70178
{ { $as_echo "$as_me:$LINENO: error: conditional \"LOADER\" was never defined.
70179
Usually this means the macro was only invoked conditionally." >&5
70180
$as_echo "$as_me: error: conditional \"LOADER\" was never defined.
70181
Usually this means the macro was only invoked conditionally." >&2;}
70182
{ (exit 1); exit 1; }; }
44129
as_fn_error "conditional \"LOADER\" was never defined.
44130
Usually this means the macro was only invoked conditionally." "$LINENO" 5
70184
44132
if test -z "${BUILD_VLC_TRUE}" && test -z "${BUILD_VLC_FALSE}"; then
70185
{ { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_VLC\" was never defined.
70186
Usually this means the macro was only invoked conditionally." >&5
70187
$as_echo "$as_me: error: conditional \"BUILD_VLC\" was never defined.
70188
Usually this means the macro was only invoked conditionally." >&2;}
70189
{ (exit 1); exit 1; }; }
44133
as_fn_error "conditional \"BUILD_VLC\" was never defined.
44134
Usually this means the macro was only invoked conditionally." "$LINENO" 5
70191
44136
if test -z "${HAS_MIDL_COMPILER_TRUE}" && test -z "${HAS_MIDL_COMPILER_FALSE}"; then
70192
{ { $as_echo "$as_me:$LINENO: error: conditional \"HAS_MIDL_COMPILER\" was never defined.
70193
Usually this means the macro was only invoked conditionally." >&5
70194
$as_echo "$as_me: error: conditional \"HAS_MIDL_COMPILER\" was never defined.
70195
Usually this means the macro was only invoked conditionally." >&2;}
70196
{ (exit 1); exit 1; }; }
44137
as_fn_error "conditional \"HAS_MIDL_COMPILER\" was never defined.
44138
Usually this means the macro was only invoked conditionally." "$LINENO" 5
70198
44140
if test -z "${HAS_WIDL_COMPILER_TRUE}" && test -z "${HAS_WIDL_COMPILER_FALSE}"; then
70199
{ { $as_echo "$as_me:$LINENO: error: conditional \"HAS_WIDL_COMPILER\" was never defined.
70200
Usually this means the macro was only invoked conditionally." >&5
70201
$as_echo "$as_me: error: conditional \"HAS_WIDL_COMPILER\" was never defined.
70202
Usually this means the macro was only invoked conditionally." >&2;}
70203
{ (exit 1); exit 1; }; }
44141
as_fn_error "conditional \"HAS_WIDL_COMPILER\" was never defined.
44142
Usually this means the macro was only invoked conditionally." "$LINENO" 5
70205
44144
if test -z "${BUILD_ACTIVEX_TRUE}" && test -z "${BUILD_ACTIVEX_FALSE}"; then
70206
{ { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_ACTIVEX\" was never defined.
70207
Usually this means the macro was only invoked conditionally." >&5
70208
$as_echo "$as_me: error: conditional \"BUILD_ACTIVEX\" was never defined.
70209
Usually this means the macro was only invoked conditionally." >&2;}
70210
{ (exit 1); exit 1; }; }
44145
as_fn_error "conditional \"BUILD_ACTIVEX\" was never defined.
44146
Usually this means the macro was only invoked conditionally." "$LINENO" 5
70212
44148
if test -z "${BUILD_MOZILLA_TRUE}" && test -z "${BUILD_MOZILLA_FALSE}"; then
70213
{ { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_MOZILLA\" was never defined.
70214
Usually this means the macro was only invoked conditionally." >&5
70215
$as_echo "$as_me: error: conditional \"BUILD_MOZILLA\" was never defined.
70216
Usually this means the macro was only invoked conditionally." >&2;}
70217
{ (exit 1); exit 1; }; }
44149
as_fn_error "conditional \"BUILD_MOZILLA\" was never defined.
44150
Usually this means the macro was only invoked conditionally." "$LINENO" 5
70220
44153
: ${CONFIG_STATUS=./config.status}
70221
44154
ac_write_fail=0
70222
44155
ac_clean_files_save=$ac_clean_files
70223
44156
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
70224
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
44157
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
70225
44158
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
70226
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
44160
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
70228
44162
# Generated by $as_me.
70229
44163
# Run this file to recreate the current configuration.