|
11 | 11 | # This configure script is free software; the Free Software Foundation
|
12 | 12 | # gives unlimited permission to copy, distribute and modify it.
|
13 | 13 | #
|
14 |
| -# Copyright (c) 1996-2016, PostgreSQL Global Development Group |
| 14 | +# Copyright (c) 1996-2017, PostgreSQL Global Development Group |
15 | 15 | ## -------------------- ##
|
16 | 16 | ## M4sh Initialization. ##
|
17 | 17 | ## -------------------- ##
|
@@ -1624,7 +1624,7 @@ Copyright (C) 2012 Free Software Foundation, Inc.
|
1624 | 1624 | This configure script is free software; the Free Software Foundation
|
1625 | 1625 | gives unlimited permission to copy, distribute and modify it.
|
1626 | 1626 |
|
1627 |
| -Copyright (c) 1996-2016, PostgreSQL Global Development Group |
| 1627 | +Copyright (c) 1996-2017, PostgreSQL Global Development Group |
1628 | 1628 | _ACEOF
|
1629 | 1629 | exit
|
1630 | 1630 | fi
|
@@ -9055,6 +9055,62 @@ if test "$ac_res" != no; then :
|
9055 | 9055 |
|
9056 | 9056 | fi
|
9057 | 9057 |
|
| 9058 | +{$as_echo"$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime">&5 |
| 9059 | +$as_echo_n"checking for library containing clock_gettime...">&6; } |
| 9060 | +if${ac_cv_search_clock_gettime+:}false;then: |
| 9061 | +$as_echo_n"(cached)">&6 |
| 9062 | +else |
| 9063 | + ac_func_search_save_LIBS=$LIBS |
| 9064 | +cat confdefs.h -<<_ACEOF >conftest.$ac_ext |
| 9065 | +/* end confdefs.h. */ |
| 9066 | +
|
| 9067 | +/* Override any GCC internal prototype to avoid an error. |
| 9068 | + Use char because int might match the return type of a GCC |
| 9069 | + builtin and then its argument prototype would still apply. */ |
| 9070 | +#ifdef __cplusplus |
| 9071 | +extern "C" |
| 9072 | +#endif |
| 9073 | +char clock_gettime (); |
| 9074 | +int |
| 9075 | +main () |
| 9076 | +{ |
| 9077 | +return clock_gettime (); |
| 9078 | + ; |
| 9079 | + return 0; |
| 9080 | +} |
| 9081 | +_ACEOF |
| 9082 | +forac_libin'' rt posix4;do |
| 9083 | +iftest -z"$ac_lib";then |
| 9084 | + ac_res="none required" |
| 9085 | +else |
| 9086 | + ac_res=-l$ac_lib |
| 9087 | + LIBS="-l$ac_lib$ac_func_search_save_LIBS" |
| 9088 | +fi |
| 9089 | +if ac_fn_c_try_link"$LINENO";then: |
| 9090 | + ac_cv_search_clock_gettime=$ac_res |
| 9091 | +fi |
| 9092 | +rm -f core conftest.err conftest.$ac_objext \ |
| 9093 | + conftest$ac_exeext |
| 9094 | +if${ac_cv_search_clock_gettime+:}false;then: |
| 9095 | +break |
| 9096 | +fi |
| 9097 | +done |
| 9098 | +if${ac_cv_search_clock_gettime+:}false;then: |
| 9099 | + |
| 9100 | +else |
| 9101 | + ac_cv_search_clock_gettime=no |
| 9102 | +fi |
| 9103 | +rm conftest.$ac_ext |
| 9104 | +LIBS=$ac_func_search_save_LIBS |
| 9105 | +fi |
| 9106 | +{$as_echo"$as_me:${as_lineno-$LINENO}: result:$ac_cv_search_clock_gettime">&5 |
| 9107 | +$as_echo"$ac_cv_search_clock_gettime">&6; } |
| 9108 | +ac_res=$ac_cv_search_clock_gettime |
| 9109 | +iftest"$ac_res"!= no;then: |
| 9110 | +test"$ac_res" ="none required"|| LIBS="$ac_res$LIBS" |
| 9111 | + |
| 9112 | +fi |
| 9113 | + |
9058 | 9114 | # Solaris:
|
9059 | 9115 | {$as_echo"$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync">&5
|
9060 | 9116 | $as_echo_n"checking for library containing fdatasync...">&6; }
|
@@ -12520,7 +12576,7 @@ fi
|
12520 | 12576 | LIBS_including_readline="$LIBS"
|
12521 | 12577 | LIBS=`echo"$LIBS"| sed -e's/-ledit//g' -e's/-lreadline//g'`
|
12522 | 12578 |
|
12523 |
| -forac_funcin cbrt dlopen fdatasync getifaddrs getpeerucred getrlimit mbstowcs_l memmove poll pstat pthread_is_threaded_np readlink setproctitle setsid shm_open symlink sync_file_range towlower utime utimes wcstombs wcstombs_l |
| 12579 | +forac_funcin cbrtclock_gettimedlopen fdatasync getifaddrs getpeerucred getrlimit mbstowcs_l memmove poll pstat pthread_is_threaded_np readlink setproctitle setsid shm_open symlink sync_file_range towlower utime utimes wcstombs wcstombs_l |
12524 | 12580 | do:
|
12525 | 12581 | as_ac_var=`$as_echo"ac_cv_func_$ac_func"|$as_tr_sh`
|
12526 | 12582 | ac_fn_c_check_func"$LINENO""$ac_func""$as_ac_var"
|
|