4107
4107
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4109
# Disable loop optimizations that get confused by variable-length struct
4110
# declarations in gcc 4.8+
4111
{ echo "$as_me:$LINENO: checking if $CC supports -fno-aggressive-loop-optimizations" >&5
4112
echo $ECHO_N "checking if $CC supports -fno-aggressive-loop-optimizations... $ECHO_C" >&6; }
4113
pgac_save_CFLAGS=$CFLAGS
4114
CFLAGS="$pgac_save_CFLAGS -fno-aggressive-loop-optimizations"
4115
cat >conftest.$ac_ext <<_ACEOF
4118
cat confdefs.h >>conftest.$ac_ext
4119
cat >>conftest.$ac_ext <<_ACEOF
4120
/* end confdefs.h. */
4130
rm -f conftest.$ac_objext
4131
if { (ac_try="$ac_compile"
4133
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4134
*) ac_try_echo=$ac_try;;
4136
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4137
(eval "$ac_compile") 2>conftest.er1
4139
grep -v '^ *+' conftest.er1 >conftest.err
4141
cat conftest.err >&5
4142
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143
(exit $ac_status); } && {
4144
test -z "$ac_c_werror_flag" ||
4145
test ! -s conftest.err
4146
} && test -s conftest.$ac_objext; then
4147
{ echo "$as_me:$LINENO: result: yes" >&5
4148
echo "${ECHO_T}yes" >&6; }
4150
echo "$as_me: failed program was:" >&5
4151
sed 's/^/| /' conftest.$ac_ext >&5
4153
CFLAGS="$pgac_save_CFLAGS"
4154
{ echo "$as_me:$LINENO: result: no" >&5
4155
echo "${ECHO_T}no" >&6; }
4158
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4109
4160
elif test "$ICC" = yes; then
4110
4161
# Intel's compiler has a bug/misoptimization in checking for
4111
4162
# division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
19228
if test "$with_readline" = yes; then
19229
{ echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
19230
echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6; }
19231
cat >conftest.$ac_ext <<_ACEOF
19234
cat confdefs.h >>conftest.$ac_ext
19235
cat >>conftest.$ac_ext <<_ACEOF
19236
/* end confdefs.h. */
19238
#ifdef HAVE_READLINE_READLINE_H
19239
# include <readline/readline.h>
19240
#elif defined(HAVE_READLINE_H)
19241
# include <readline.h>
19247
rl_completion_append_character = 'x';
19252
rm -f conftest.$ac_objext conftest$ac_exeext
19253
if { (ac_try="$ac_link"
19254
case "(($ac_try" in
19255
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19256
*) ac_try_echo=$ac_try;;
19258
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19259
(eval "$ac_link") 2>conftest.er1
19261
grep -v '^ *+' conftest.er1 >conftest.err
19263
cat conftest.err >&5
19264
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265
(exit $ac_status); } && {
19266
test -z "$ac_c_werror_flag" ||
19267
test ! -s conftest.err
19268
} && test -s conftest$ac_exeext &&
19269
$as_test_x conftest$ac_exeext; then
19270
{ echo "$as_me:$LINENO: result: yes" >&5
19271
echo "${ECHO_T}yes" >&6; }
19273
cat >>confdefs.h <<\_ACEOF
19274
#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
19278
echo "$as_me: failed program was:" >&5
19279
sed 's/^/| /' conftest.$ac_ext >&5
19281
{ echo "$as_me:$LINENO: result: no" >&5
19282
echo "${ECHO_T}no" >&6; }
19285
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19286
conftest$ac_exeext conftest.$ac_ext
19289
for ac_func in rl_completion_matches rl_filename_completion_function
19291
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19292
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19293
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19294
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19295
echo $ECHO_N "(cached) $ECHO_C" >&6
19297
cat >conftest.$ac_ext <<_ACEOF
19300
cat confdefs.h >>conftest.$ac_ext
19301
cat >>conftest.$ac_ext <<_ACEOF
19302
/* end confdefs.h. */
19303
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19304
For example, HP-UX 11i <limits.h> declares gettimeofday. */
19305
#define $ac_func innocuous_$ac_func
19307
/* System header to define __stub macros and hopefully few prototypes,
19308
which can conflict with char $ac_func (); below.
19309
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19310
<limits.h> exists even on freestanding compilers. */
19313
# include <limits.h>
19315
# include <assert.h>
19320
/* Override any GCC internal prototype to avoid an error.
19321
Use char because int might match the return type of a GCC
19322
builtin and then its argument prototype would still apply. */
19327
/* The GNU C library defines this for functions which it implements
19328
to always fail with ENOSYS. Some functions are actually named
19329
something starting with __ and the normal name is an alias. */
19330
#if defined __stub_$ac_func || defined __stub___$ac_func
19337
return $ac_func ();
19342
rm -f conftest.$ac_objext conftest$ac_exeext
19343
if { (ac_try="$ac_link"
19344
case "(($ac_try" in
19345
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19346
*) ac_try_echo=$ac_try;;
19348
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19349
(eval "$ac_link") 2>conftest.er1
19351
grep -v '^ *+' conftest.er1 >conftest.err
19353
cat conftest.err >&5
19354
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355
(exit $ac_status); } && {
19356
test -z "$ac_c_werror_flag" ||
19357
test ! -s conftest.err
19358
} && test -s conftest$ac_exeext &&
19359
$as_test_x conftest$ac_exeext; then
19360
eval "$as_ac_var=yes"
19362
echo "$as_me: failed program was:" >&5
19363
sed 's/^/| /' conftest.$ac_ext >&5
19365
eval "$as_ac_var=no"
19368
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19369
conftest$ac_exeext conftest.$ac_ext
19371
ac_res=`eval echo '${'$as_ac_var'}'`
19372
{ echo "$as_me:$LINENO: result: $ac_res" >&5
19373
echo "${ECHO_T}$ac_res" >&6; }
19374
if test `eval echo '${'$as_ac_var'}'` = yes; then
19375
cat >>confdefs.h <<_ACEOF
19376
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19383
for ac_func in replace_history_entry
19385
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19386
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19387
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19388
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19389
echo $ECHO_N "(cached) $ECHO_C" >&6
19391
cat >conftest.$ac_ext <<_ACEOF
19394
cat confdefs.h >>conftest.$ac_ext
19395
cat >>conftest.$ac_ext <<_ACEOF
19396
/* end confdefs.h. */
19397
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19398
For example, HP-UX 11i <limits.h> declares gettimeofday. */
19399
#define $ac_func innocuous_$ac_func
19401
/* System header to define __stub macros and hopefully few prototypes,
19402
which can conflict with char $ac_func (); below.
19403
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19404
<limits.h> exists even on freestanding compilers. */
19407
# include <limits.h>
19409
# include <assert.h>
19414
/* Override any GCC internal prototype to avoid an error.
19415
Use char because int might match the return type of a GCC
19416
builtin and then its argument prototype would still apply. */
19421
/* The GNU C library defines this for functions which it implements
19422
to always fail with ENOSYS. Some functions are actually named
19423
something starting with __ and the normal name is an alias. */
19424
#if defined __stub_$ac_func || defined __stub___$ac_func
19431
return $ac_func ();
19436
rm -f conftest.$ac_objext conftest$ac_exeext
19437
if { (ac_try="$ac_link"
19438
case "(($ac_try" in
19439
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19440
*) ac_try_echo=$ac_try;;
19442
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19443
(eval "$ac_link") 2>conftest.er1
19445
grep -v '^ *+' conftest.er1 >conftest.err
19447
cat conftest.err >&5
19448
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19449
(exit $ac_status); } && {
19450
test -z "$ac_c_werror_flag" ||
19451
test ! -s conftest.err
19452
} && test -s conftest$ac_exeext &&
19453
$as_test_x conftest$ac_exeext; then
19454
eval "$as_ac_var=yes"
19456
echo "$as_me: failed program was:" >&5
19457
sed 's/^/| /' conftest.$ac_ext >&5
19459
eval "$as_ac_var=no"
19462
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19463
conftest$ac_exeext conftest.$ac_ext
19465
ac_res=`eval echo '${'$as_ac_var'}'`
19466
{ echo "$as_me:$LINENO: result: $ac_res" >&5
19467
echo "${ECHO_T}$ac_res" >&6; }
19468
if test `eval echo '${'$as_ac_var'}'` = yes; then
19469
cat >>confdefs.h <<_ACEOF
19470
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19479
19278
{ echo "$as_me:$LINENO: checking for sigsetjmp" >&5
19480
19279
echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
19481
19280
cat >conftest.$ac_ext <<_ACEOF
20196
# Lastly, restore full LIBS list and check for readline/libedit symbols
20197
LIBS="$LIBS_including_readline"
20199
if test "$with_readline" = yes; then
20200
{ echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
20201
echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6; }
20202
cat >conftest.$ac_ext <<_ACEOF
20205
cat confdefs.h >>conftest.$ac_ext
20206
cat >>conftest.$ac_ext <<_ACEOF
20207
/* end confdefs.h. */
20209
#ifdef HAVE_READLINE_READLINE_H
20210
# include <readline/readline.h>
20211
#elif defined(HAVE_READLINE_H)
20212
# include <readline.h>
20218
rl_completion_append_character = 'x';
20223
rm -f conftest.$ac_objext conftest$ac_exeext
20224
if { (ac_try="$ac_link"
20225
case "(($ac_try" in
20226
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20227
*) ac_try_echo=$ac_try;;
20229
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20230
(eval "$ac_link") 2>conftest.er1
20232
grep -v '^ *+' conftest.er1 >conftest.err
20234
cat conftest.err >&5
20235
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236
(exit $ac_status); } && {
20237
test -z "$ac_c_werror_flag" ||
20238
test ! -s conftest.err
20239
} && test -s conftest$ac_exeext &&
20240
$as_test_x conftest$ac_exeext; then
20241
{ echo "$as_me:$LINENO: result: yes" >&5
20242
echo "${ECHO_T}yes" >&6; }
20244
cat >>confdefs.h <<\_ACEOF
20245
#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
20249
echo "$as_me: failed program was:" >&5
20250
sed 's/^/| /' conftest.$ac_ext >&5
20252
{ echo "$as_me:$LINENO: result: no" >&5
20253
echo "${ECHO_T}no" >&6; }
20256
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20257
conftest$ac_exeext conftest.$ac_ext
20260
for ac_func in rl_completion_matches rl_filename_completion_function
20262
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20263
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20264
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20265
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20266
echo $ECHO_N "(cached) $ECHO_C" >&6
20268
cat >conftest.$ac_ext <<_ACEOF
20271
cat confdefs.h >>conftest.$ac_ext
20272
cat >>conftest.$ac_ext <<_ACEOF
20273
/* end confdefs.h. */
20274
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20275
For example, HP-UX 11i <limits.h> declares gettimeofday. */
20276
#define $ac_func innocuous_$ac_func
20278
/* System header to define __stub macros and hopefully few prototypes,
20279
which can conflict with char $ac_func (); below.
20280
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20281
<limits.h> exists even on freestanding compilers. */
20284
# include <limits.h>
20286
# include <assert.h>
20291
/* Override any GCC internal prototype to avoid an error.
20292
Use char because int might match the return type of a GCC
20293
builtin and then its argument prototype would still apply. */
20298
/* The GNU C library defines this for functions which it implements
20299
to always fail with ENOSYS. Some functions are actually named
20300
something starting with __ and the normal name is an alias. */
20301
#if defined __stub_$ac_func || defined __stub___$ac_func
20308
return $ac_func ();
20313
rm -f conftest.$ac_objext conftest$ac_exeext
20314
if { (ac_try="$ac_link"
20315
case "(($ac_try" in
20316
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20317
*) ac_try_echo=$ac_try;;
20319
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20320
(eval "$ac_link") 2>conftest.er1
20322
grep -v '^ *+' conftest.er1 >conftest.err
20324
cat conftest.err >&5
20325
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20326
(exit $ac_status); } && {
20327
test -z "$ac_c_werror_flag" ||
20328
test ! -s conftest.err
20329
} && test -s conftest$ac_exeext &&
20330
$as_test_x conftest$ac_exeext; then
20331
eval "$as_ac_var=yes"
20333
echo "$as_me: failed program was:" >&5
20334
sed 's/^/| /' conftest.$ac_ext >&5
20336
eval "$as_ac_var=no"
20339
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20340
conftest$ac_exeext conftest.$ac_ext
20342
ac_res=`eval echo '${'$as_ac_var'}'`
20343
{ echo "$as_me:$LINENO: result: $ac_res" >&5
20344
echo "${ECHO_T}$ac_res" >&6; }
20345
if test `eval echo '${'$as_ac_var'}'` = yes; then
20346
cat >>confdefs.h <<_ACEOF
20347
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20354
for ac_func in replace_history_entry
20356
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20357
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20358
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20359
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20360
echo $ECHO_N "(cached) $ECHO_C" >&6
20362
cat >conftest.$ac_ext <<_ACEOF
20365
cat confdefs.h >>conftest.$ac_ext
20366
cat >>conftest.$ac_ext <<_ACEOF
20367
/* end confdefs.h. */
20368
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20369
For example, HP-UX 11i <limits.h> declares gettimeofday. */
20370
#define $ac_func innocuous_$ac_func
20372
/* System header to define __stub macros and hopefully few prototypes,
20373
which can conflict with char $ac_func (); below.
20374
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20375
<limits.h> exists even on freestanding compilers. */
20378
# include <limits.h>
20380
# include <assert.h>
20385
/* Override any GCC internal prototype to avoid an error.
20386
Use char because int might match the return type of a GCC
20387
builtin and then its argument prototype would still apply. */
20392
/* The GNU C library defines this for functions which it implements
20393
to always fail with ENOSYS. Some functions are actually named
20394
something starting with __ and the normal name is an alias. */
20395
#if defined __stub_$ac_func || defined __stub___$ac_func
20402
return $ac_func ();
20407
rm -f conftest.$ac_objext conftest$ac_exeext
20408
if { (ac_try="$ac_link"
20409
case "(($ac_try" in
20410
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20411
*) ac_try_echo=$ac_try;;
20413
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20414
(eval "$ac_link") 2>conftest.er1
20416
grep -v '^ *+' conftest.er1 >conftest.err
20418
cat conftest.err >&5
20419
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420
(exit $ac_status); } && {
20421
test -z "$ac_c_werror_flag" ||
20422
test ! -s conftest.err
20423
} && test -s conftest$ac_exeext &&
20424
$as_test_x conftest$ac_exeext; then
20425
eval "$as_ac_var=yes"
20427
echo "$as_me: failed program was:" >&5
20428
sed 's/^/| /' conftest.$ac_ext >&5
20430
eval "$as_ac_var=no"
20433
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20434
conftest$ac_exeext conftest.$ac_ext
20436
ac_res=`eval echo '${'$as_ac_var'}'`
20437
{ echo "$as_me:$LINENO: result: $ac_res" >&5
20438
echo "${ECHO_T}$ac_res" >&6; }
20439
if test `eval echo '${'$as_ac_var'}'` = yes; then
20440
cat >>confdefs.h <<_ACEOF
20441
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1