|
721 | 721 | with_apr_config |
722 | 722 | with_libcurl |
723 | 723 | with_rt |
724 | | -with_zstd |
| 724 | +PROTOC |
725 | 725 | with_gp_stats_collector |
| 726 | +with_zstd |
726 | 727 | with_libbz2 |
727 | 728 | LZ4_LIBS |
728 | 729 | LZ4_CFLAGS |
@@ -1693,6 +1694,8 @@ Optional Packages: |
1693 | 1694 | --with-lz4 build with LZ4 support |
1694 | 1695 | --without-libbz2 do not use bzip2 |
1695 | 1696 | --without-zstd do not build with Zstandard |
| 1697 | + --with-gp_stats_collector |
| 1698 | + build with stats collector extension |
1696 | 1699 | --without-rt do not use Realtime Library |
1697 | 1700 | --without-libcurl do not use libcurl |
1698 | 1701 | --with-apr-config=PATH path to apr-1-config utility |
@@ -11059,6 +11062,155 @@ fi |
11059 | 11062 | $as_echo "$with_zstd" >&6; } |
11060 | 11063 |
|
11061 | 11064 |
|
| 11065 | +# |
| 11066 | +# gp_stats_collector |
| 11067 | +# |
| 11068 | + |
| 11069 | + |
| 11070 | + |
| 11071 | +# Check whether --with-gp_stats_collector was given. |
| 11072 | +if test "${with_gp_stats_collector+set}" = set; then : |
| 11073 | + withval=$with_gp_stats_collector; |
| 11074 | + case $withval in |
| 11075 | + yes) |
| 11076 | + : |
| 11077 | + ;; |
| 11078 | + no) |
| 11079 | + : |
| 11080 | + ;; |
| 11081 | + *) |
| 11082 | + as_fn_error $? "no argument expected for --with-gp_stats_collector option" "$LINENO" 5 |
| 11083 | + ;; |
| 11084 | + esac |
| 11085 | + |
| 11086 | +else |
| 11087 | + with_gp_stats_collector=no |
| 11088 | + |
| 11089 | +fi |
| 11090 | + |
| 11091 | + |
| 11092 | + |
| 11093 | + |
| 11094 | +if test "$with_gp_stats_collector" = yes; then |
| 11095 | + |
| 11096 | +pkg_failed=no |
| 11097 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for protobuf >= 3.0.0" >&5 |
| 11098 | +$as_echo_n "checking for protobuf >= 3.0.0... " >&6; } |
| 11099 | + |
| 11100 | +if test -n "$PROTOBUF_CFLAGS"; then |
| 11101 | + pkg_cv_PROTOBUF_CFLAGS="$PROTOBUF_CFLAGS" |
| 11102 | + elif test -n "$PKG_CONFIG"; then |
| 11103 | + if test -n "$PKG_CONFIG" && \ |
| 11104 | + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"protobuf >= 3.0.0\""; } >&5 |
| 11105 | + ($PKG_CONFIG --exists --print-errors "protobuf >= 3.0.0") 2>&5 |
| 11106 | + ac_status=$? |
| 11107 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 11108 | + test $ac_status = 0; }; then |
| 11109 | + pkg_cv_PROTOBUF_CFLAGS=`$PKG_CONFIG --cflags "protobuf >= 3.0.0" 2>/dev/null` |
| 11110 | + test "x$?" != "x0" && pkg_failed=yes |
| 11111 | +else |
| 11112 | + pkg_failed=yes |
| 11113 | +fi |
| 11114 | + else |
| 11115 | + pkg_failed=untried |
| 11116 | +fi |
| 11117 | +if test -n "$PROTOBUF_LIBS"; then |
| 11118 | + pkg_cv_PROTOBUF_LIBS="$PROTOBUF_LIBS" |
| 11119 | + elif test -n "$PKG_CONFIG"; then |
| 11120 | + if test -n "$PKG_CONFIG" && \ |
| 11121 | + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"protobuf >= 3.0.0\""; } >&5 |
| 11122 | + ($PKG_CONFIG --exists --print-errors "protobuf >= 3.0.0") 2>&5 |
| 11123 | + ac_status=$? |
| 11124 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 11125 | + test $ac_status = 0; }; then |
| 11126 | + pkg_cv_PROTOBUF_LIBS=`$PKG_CONFIG --libs "protobuf >= 3.0.0" 2>/dev/null` |
| 11127 | + test "x$?" != "x0" && pkg_failed=yes |
| 11128 | +else |
| 11129 | + pkg_failed=yes |
| 11130 | +fi |
| 11131 | + else |
| 11132 | + pkg_failed=untried |
| 11133 | +fi |
| 11134 | + |
| 11135 | + |
| 11136 | + |
| 11137 | +if test $pkg_failed = yes; then |
| 11138 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11139 | +$as_echo "no" >&6; } |
| 11140 | + |
| 11141 | +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 11142 | + _pkg_short_errors_supported=yes |
| 11143 | +else |
| 11144 | + _pkg_short_errors_supported=no |
| 11145 | +fi |
| 11146 | + if test $_pkg_short_errors_supported = yes; then |
| 11147 | + PROTOBUF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "protobuf >= 3.0.0" 2>&1` |
| 11148 | + else |
| 11149 | + PROTOBUF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "protobuf >= 3.0.0" 2>&1` |
| 11150 | + fi |
| 11151 | + # Put the nasty error message in config.log where it belongs |
| 11152 | + echo "$PROTOBUF_PKG_ERRORS" >&5 |
| 11153 | + |
| 11154 | + as_fn_error $? "protobuf >= 3.0.0 is required for gp_stats_collector" "$LINENO" 5 |
| 11155 | + |
| 11156 | +elif test $pkg_failed = untried; then |
| 11157 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11158 | +$as_echo "no" >&6; } |
| 11159 | + as_fn_error $? "protobuf >= 3.0.0 is required for gp_stats_collector" "$LINENO" 5 |
| 11160 | + |
| 11161 | +else |
| 11162 | + PROTOBUF_CFLAGS=$pkg_cv_PROTOBUF_CFLAGS |
| 11163 | + PROTOBUF_LIBS=$pkg_cv_PROTOBUF_LIBS |
| 11164 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11165 | +$as_echo "yes" >&6; } |
| 11166 | + |
| 11167 | +fi |
| 11168 | + # Extract the first word of "protoc", so it can be a program name with args. |
| 11169 | +set dummy protoc; ac_word=$2 |
| 11170 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11171 | +$as_echo_n "checking for $ac_word... " >&6; } |
| 11172 | +if ${ac_cv_path_PROTOC+:} false; then : |
| 11173 | + $as_echo_n "(cached) " >&6 |
| 11174 | +else |
| 11175 | + case $PROTOC in |
| 11176 | + [\\/]* | ?:[\\/]*) |
| 11177 | + ac_cv_path_PROTOC="$PROTOC" # Let the user override the test with a path. |
| 11178 | + ;; |
| 11179 | + *) |
| 11180 | + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11181 | +for as_dir in $PATH |
| 11182 | +do |
| 11183 | + IFS=$as_save_IFS |
| 11184 | + test -z "$as_dir" && as_dir=. |
| 11185 | + for ac_exec_ext in '' $ac_executable_extensions; do |
| 11186 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11187 | + ac_cv_path_PROTOC="$as_dir/$ac_word$ac_exec_ext" |
| 11188 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11189 | + break 2 |
| 11190 | + fi |
| 11191 | +done |
| 11192 | + done |
| 11193 | +IFS=$as_save_IFS |
| 11194 | + |
| 11195 | + test -z "$ac_cv_path_PROTOC" && ac_cv_path_PROTOC="no" |
| 11196 | + ;; |
| 11197 | +esac |
| 11198 | +fi |
| 11199 | +PROTOC=$ac_cv_path_PROTOC |
| 11200 | +if test -n "$PROTOC"; then |
| 11201 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC" >&5 |
| 11202 | +$as_echo "$PROTOC" >&6; } |
| 11203 | +else |
| 11204 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11205 | +$as_echo "no" >&6; } |
| 11206 | +fi |
| 11207 | + |
| 11208 | + |
| 11209 | + if test "$PROTOC" = no; then |
| 11210 | + as_fn_error $? "protoc is required for gp_stats_collector but was not found in PATH" "$LINENO" 5 |
| 11211 | + fi |
| 11212 | +fi |
| 11213 | + |
11062 | 11214 | if test "$with_zstd" = yes; then |
11063 | 11215 |
|
11064 | 11216 | pkg_failed=no |
@@ -11153,32 +11305,6 @@ $as_echo "yes" >&6; } |
11153 | 11305 | fi |
11154 | 11306 | fi |
11155 | 11307 |
|
11156 | | -# |
11157 | | -# gp_stats_collector |
11158 | | -# |
11159 | | - |
11160 | | - |
11161 | | - |
11162 | | -# Check whether --with-gp-stats-collector was given. |
11163 | | -if test "${with_gp_stats_collector+set}" = set; then : |
11164 | | - withval=$with_gp_stats_collector; |
11165 | | - case $withval in |
11166 | | - yes) |
11167 | | - : |
11168 | | - ;; |
11169 | | - no) |
11170 | | - : |
11171 | | - ;; |
11172 | | - *) |
11173 | | - as_fn_error $? "no argument expected for --with-gp-stats-collector option" "$LINENO" 5 |
11174 | | - ;; |
11175 | | - esac |
11176 | | - |
11177 | | -else |
11178 | | - with_gp_stats_collector=no |
11179 | | - |
11180 | | -fi |
11181 | | - |
11182 | 11308 | # |
11183 | 11309 | # Realtime library |
11184 | 11310 | # |
|
0 commit comments