diff options
author | Jay Berkenbilt <ejb@ql.org> | 2021-02-11 12:20:31 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2021-02-11 20:26:55 +0100 |
commit | df067c9ab68dd4913a1591f048d9baf4f1c8d09c (patch) | |
tree | 12234b02bac3443fbef15e2272219d13df30e8d9 /configure | |
parent | 2538d84413ac574f6f8bcb9dfcc84254a11fa75d (diff) | |
download | qpdf-df067c9ab68dd4913a1591f048d9baf4f1c8d09c.tar.zst |
Add autoconf test for localtime_r
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 21 |
1 files changed, 5 insertions, 16 deletions
@@ -17474,24 +17474,13 @@ $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h fi -for ac_func in fseeko64 +for ac_func in fseeko64 random localtime_r do : - ac_fn_c_check_func "$LINENO" "fseeko64" "ac_cv_func_fseeko64" -if test "x$ac_cv_func_fseeko64" = xyes; then : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF -#define HAVE_FSEEKO64 1 -_ACEOF - -fi -done - - -for ac_func in random -do : - ac_fn_c_check_func "$LINENO" "random" "ac_cv_func_random" -if test "x$ac_cv_func_random" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_RANDOM 1 +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi |