| 4936 | | echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5 |
|---|
| 4937 | | echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6 |
|---|
| 4938 | | if test $ac_cv_lib_iconv_iconv = yes; then |
|---|
| 4939 | | |
|---|
| 4940 | | LIBS="$LIBS -liconv" |
|---|
| 4941 | | |
|---|
| 4942 | | else |
|---|
| 4943 | | |
|---|
| 4944 | | echo "$as_me:$LINENO: checking for libiconv in -liconv" >&5 |
|---|
| 4945 | | echo $ECHO_N "checking for libiconv in -liconv... $ECHO_C" >&6 |
|---|
| 4946 | | if test "${ac_cv_lib_iconv_libiconv+set}" = set; then |
|---|
| 4947 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 4948 | | else |
|---|
| 4949 | | ac_check_lib_save_LIBS=$LIBS |
|---|
| 4950 | | LIBS="-liconv $LIBS" |
|---|
| 4951 | | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 4952 | | /* confdefs.h. */ |
|---|
| 4953 | | _ACEOF |
|---|
| 4954 | | cat confdefs.h >>conftest.$ac_ext |
|---|
| 4955 | | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| 4956 | | /* end confdefs.h. */ |
|---|
| 4957 | | |
|---|
| 4958 | | /* Override any gcc2 internal prototype to avoid an error. */ |
|---|
| 4959 | | #ifdef __cplusplus |
|---|
| 4960 | | extern "C" |
|---|
| 4961 | | #endif |
|---|
| 4962 | | /* We use char because int might match the return type of a gcc2 |
|---|
| 4963 | | builtin and then its argument prototype would still apply. */ |
|---|
| 4964 | | char libiconv (); |
|---|
| 4965 | | int |
|---|
| 4966 | | main () |
|---|
| 4967 | | { |
|---|
| 4968 | | libiconv (); |
|---|
| 4969 | | ; |
|---|
| 4970 | | return 0; |
|---|
| 4971 | | } |
|---|
| 4972 | | _ACEOF |
|---|
| 4973 | | rm -f conftest.$ac_objext conftest$ac_exeext |
|---|
| 4974 | | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|---|
| 4975 | | (eval $ac_link) 2>conftest.er1 |
|---|
| 4976 | | ac_status=$? |
|---|
| 4977 | | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| 4978 | | rm -f conftest.er1 |
|---|
| 4979 | | cat conftest.err >&5 |
|---|
| 4980 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 4981 | | (exit $ac_status); } && |
|---|
| 4982 | | { ac_try='test -z "$ac_c_werror_flag" |
|---|
| 4983 | | || test ! -s conftest.err' |
|---|
| 4984 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 4985 | | (eval $ac_try) 2>&5 |
|---|
| 4986 | | ac_status=$? |
|---|
| 4987 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 4988 | | (exit $ac_status); }; } && |
|---|
| 4989 | | { ac_try='test -s conftest$ac_exeext' |
|---|
| 4990 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 4991 | | (eval $ac_try) 2>&5 |
|---|
| 4992 | | ac_status=$? |
|---|
| 4993 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 4994 | | (exit $ac_status); }; }; then |
|---|
| 4995 | | ac_cv_lib_iconv_libiconv=yes |
|---|
| 4996 | | else |
|---|
| 4997 | | echo "$as_me: failed program was:" >&5 |
|---|
| 4998 | | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 4999 | | |
|---|
| 5000 | | ac_cv_lib_iconv_libiconv=no |
|---|
| 5001 | | fi |
|---|
| 5002 | | rm -f conftest.err conftest.$ac_objext \ |
|---|
| 5003 | | conftest$ac_exeext conftest.$ac_ext |
|---|
| 5004 | | LIBS=$ac_check_lib_save_LIBS |
|---|
| 5005 | | fi |
|---|
| 5006 | | echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_libiconv" >&5 |
|---|
| 5007 | | echo "${ECHO_T}$ac_cv_lib_iconv_libiconv" >&6 |
|---|
| 5008 | | if test $ac_cv_lib_iconv_libiconv = yes; then |
|---|
| 5009 | | |
|---|
| 5010 | | LIBS="$LIBS -liconv" |
|---|
| 5011 | | |
|---|
| 5012 | | else |
|---|
| 5013 | | |
|---|
| 5014 | | echo "$as_me:$LINENO: checking for iconv" >&5 |
|---|
| 5015 | | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 |
|---|
| 5016 | | if test "${ac_cv_func_iconv+set}" = set; then |
|---|
| 5017 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 5018 | | else |
|---|
| 5019 | | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 5020 | | /* confdefs.h. */ |
|---|
| 5021 | | _ACEOF |
|---|
| 5022 | | cat confdefs.h >>conftest.$ac_ext |
|---|
| 5023 | | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| 5024 | | /* end confdefs.h. */ |
|---|
| 5025 | | /* Define iconv to an innocuous variant, in case <limits.h> declares iconv. |
|---|
| 5026 | | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|---|
| 5027 | | #define iconv innocuous_iconv |
|---|
| 5028 | | |
|---|
| 5029 | | /* System header to define __stub macros and hopefully few prototypes, |
|---|
| 5030 | | which can conflict with char iconv (); below. |
|---|
| 5031 | | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|---|
| 5032 | | <limits.h> exists even on freestanding compilers. */ |
|---|
| 5033 | | |
|---|
| 5034 | | #ifdef __STDC__ |
|---|
| 5035 | | # include <limits.h> |
|---|
| 5036 | | #else |
|---|
| 5037 | | # include <assert.h> |
|---|
| 5038 | | #endif |
|---|
| 5039 | | |
|---|
| 5040 | | #undef iconv |
|---|
| 5041 | | |
|---|
| 5042 | | /* Override any gcc2 internal prototype to avoid an error. */ |
|---|
| 5043 | | #ifdef __cplusplus |
|---|
| 5044 | | extern "C" |
|---|
| 5045 | | { |
|---|
| 5046 | | #endif |
|---|
| 5047 | | /* We use char because int might match the return type of a gcc2 |
|---|
| 5048 | | builtin and then its argument prototype would still apply. */ |
|---|
| 5049 | | char iconv (); |
|---|
| 5050 | | /* The GNU C library defines this for functions which it implements |
|---|
| 5051 | | to always fail with ENOSYS. Some functions are actually named |
|---|
| 5052 | | something starting with __ and the normal name is an alias. */ |
|---|
| 5053 | | #if defined (__stub_iconv) || defined (__stub___iconv) |
|---|
| 5054 | | choke me |
|---|
| 5055 | | #else |
|---|
| 5056 | | char (*f) () = iconv; |
|---|
| 5057 | | #endif |
|---|
| 5058 | | #ifdef __cplusplus |
|---|
| 5059 | | } |
|---|
| 5060 | | #endif |
|---|
| 5061 | | |
|---|
| 5062 | | int |
|---|
| 5063 | | main () |
|---|
| 5064 | | { |
|---|
| 5065 | | return f != iconv; |
|---|
| 5066 | | ; |
|---|
| 5067 | | return 0; |
|---|
| 5068 | | } |
|---|
| 5069 | | _ACEOF |
|---|
| 5070 | | rm -f conftest.$ac_objext conftest$ac_exeext |
|---|
| 5071 | | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|---|
| 5072 | | (eval $ac_link) 2>conftest.er1 |
|---|
| 5073 | | ac_status=$? |
|---|
| 5074 | | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| 5075 | | rm -f conftest.er1 |
|---|
| 5076 | | cat conftest.err >&5 |
|---|
| 5077 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 5078 | | (exit $ac_status); } && |
|---|
| 5079 | | { ac_try='test -z "$ac_c_werror_flag" |
|---|
| 5080 | | || test ! -s conftest.err' |
|---|
| 5081 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 5082 | | (eval $ac_try) 2>&5 |
|---|
| 5083 | | ac_status=$? |
|---|
| 5084 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 5085 | | (exit $ac_status); }; } && |
|---|
| 5086 | | { ac_try='test -s conftest$ac_exeext' |
|---|
| 5087 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 5088 | | (eval $ac_try) 2>&5 |
|---|
| 5089 | | ac_status=$? |
|---|
| 5090 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 5091 | | (exit $ac_status); }; }; then |
|---|
| 5092 | | ac_cv_func_iconv=yes |
|---|
| 5093 | | else |
|---|
| 5094 | | echo "$as_me: failed program was:" >&5 |
|---|
| 5095 | | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 5096 | | |
|---|
| 5097 | | ac_cv_func_iconv=no |
|---|
| 5098 | | fi |
|---|
| 5099 | | rm -f conftest.err conftest.$ac_objext \ |
|---|
| 5100 | | conftest$ac_exeext conftest.$ac_ext |
|---|
| 5101 | | fi |
|---|
| 5102 | | echo "$as_me:$LINENO: result: $ac_cv_func_iconv" >&5 |
|---|
| 5103 | | echo "${ECHO_T}$ac_cv_func_iconv" >&6 |
|---|
| 5104 | | if test $ac_cv_func_iconv = yes; then |
|---|
| 5105 | | : |
|---|
| 5106 | | else |
|---|
| 5107 | | |
|---|
| 5108 | | |
|---|
| 5109 | | { { echo "$as_me:$LINENO: error: could not locate iconv |
|---|
| 5110 | | |
|---|
| 5111 | | If you installed iconv into a non-standard directory, please run: |
|---|
| | 4984 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 |
|---|
| | 4985 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 |
|---|
| | 4986 | if test $ac_cv_lib_z_deflate = yes; then |
|---|
| | 4987 | |
|---|
| | 4988 | LIBS="$LIBS -lz" |
|---|
| | 4989 | |
|---|
| | 4990 | else |
|---|
| | 4991 | |
|---|
| | 4992 | |
|---|
| | 4993 | { { echo "$as_me:$LINENO: error: could not locate zlib |
|---|
| | 4994 | |
|---|
| | 4995 | If you installed zlib into a non-standard directory, please run: |
|---|
| 5152 | | echo "$as_me:$LINENO: checking if iconv understands Unicode" >&5 |
|---|
| 5153 | | echo $ECHO_N "checking if iconv understands Unicode... $ECHO_C" >&6 |
|---|
| 5154 | | if test "$cross_compiling" = yes; then |
|---|
| 5155 | | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
|---|
| 5156 | | See \`config.log' for more details." >&5 |
|---|
| 5157 | | echo "$as_me: error: cannot run test program while cross compiling |
|---|
| 5158 | | See \`config.log' for more details." >&2;} |
|---|
| 5159 | | { (exit 1); exit 1; }; } |
|---|
| 5160 | | else |
|---|
| 5161 | | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 5162 | | |
|---|
| 5163 | | #include <iconv.h> |
|---|
| 5164 | | int main(void) { |
|---|
| 5165 | | iconv_t conv = iconv_open("UTF-8", "UTF-16"); |
|---|
| 5166 | | if(conv == (iconv_t) -1) |
|---|
| 5167 | | return 1; |
|---|
| 5168 | | return 0; |
|---|
| 5169 | | } |
|---|
| 5170 | | |
|---|
| 5171 | | _ACEOF |
|---|
| 5172 | | rm -f conftest$ac_exeext |
|---|
| 5173 | | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|---|
| 5174 | | (eval $ac_link) 2>&5 |
|---|
| 5175 | | ac_status=$? |
|---|
| 5176 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 5177 | | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|---|
| 5178 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 5179 | | (eval $ac_try) 2>&5 |
|---|
| 5180 | | ac_status=$? |
|---|
| 5181 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 5182 | | (exit $ac_status); }; }; then |
|---|
| 5183 | | |
|---|
| 5184 | | echo "$as_me:$LINENO: result: yes" >&5 |
|---|
| 5185 | | echo "${ECHO_T}yes" >&6 |
|---|
| 5186 | | |
|---|
| 5187 | | else |
|---|
| 5188 | | echo "$as_me: program exited with status $ac_status" >&5 |
|---|
| 5189 | | echo "$as_me: failed program was:" >&5 |
|---|
| 5190 | | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 5191 | | |
|---|
| 5192 | | ( exit $ac_status ) |
|---|
| 5193 | | |
|---|
| 5194 | | { { echo "$as_me:$LINENO: error: no" >&5 |
|---|
| 5195 | | echo "$as_me: error: no" >&2;} |
|---|
| 5196 | | { (exit 1); exit 1; }; } |
|---|
| 5197 | | |
|---|
| 5198 | | fi |
|---|
| 5199 | | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|---|
| 5200 | | fi |
|---|
| 5201 | | |
|---|
| 5202 | | |
|---|
| 5203 | | |
|---|
| 5204 | | for ac_header in term.h |
|---|
| | 5030 | |
|---|
| | 5031 | |
|---|
| | 5032 | |
|---|
| | 5033 | for ac_header in iconv.h |
|---|
| 5360 | | /* Define tgoto to an innocuous variant, in case <limits.h> declares tgoto. |
|---|
| | 5191 | |
|---|
| | 5192 | /* Override any gcc2 internal prototype to avoid an error. */ |
|---|
| | 5193 | #ifdef __cplusplus |
|---|
| | 5194 | extern "C" |
|---|
| | 5195 | #endif |
|---|
| | 5196 | /* We use char because int might match the return type of a gcc2 |
|---|
| | 5197 | builtin and then its argument prototype would still apply. */ |
|---|
| | 5198 | char iconv (); |
|---|
| | 5199 | int |
|---|
| | 5200 | main () |
|---|
| | 5201 | { |
|---|
| | 5202 | iconv (); |
|---|
| | 5203 | ; |
|---|
| | 5204 | return 0; |
|---|
| | 5205 | } |
|---|
| | 5206 | _ACEOF |
|---|
| | 5207 | rm -f conftest.$ac_objext conftest$ac_exeext |
|---|
| | 5208 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|---|
| | 5209 | (eval $ac_link) 2>conftest.er1 |
|---|
| | 5210 | ac_status=$? |
|---|
| | 5211 | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| | 5212 | rm -f conftest.er1 |
|---|
| | 5213 | cat conftest.err >&5 |
|---|
| | 5214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 5215 | (exit $ac_status); } && |
|---|
| | 5216 | { ac_try='test -z "$ac_c_werror_flag" |
|---|
| | 5217 | || test ! -s conftest.err' |
|---|
| | 5218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| | 5219 | (eval $ac_try) 2>&5 |
|---|
| | 5220 | ac_status=$? |
|---|
| | 5221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 5222 | (exit $ac_status); }; } && |
|---|
| | 5223 | { ac_try='test -s conftest$ac_exeext' |
|---|
| | 5224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| | 5225 | (eval $ac_try) 2>&5 |
|---|
| | 5226 | ac_status=$? |
|---|
| | 5227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 5228 | (exit $ac_status); }; }; then |
|---|
| | 5229 | ac_cv_lib_iconv_iconv=yes |
|---|
| | 5230 | else |
|---|
| | 5231 | echo "$as_me: failed program was:" >&5 |
|---|
| | 5232 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| | 5233 | |
|---|
| | 5234 | ac_cv_lib_iconv_iconv=no |
|---|
| | 5235 | fi |
|---|
| | 5236 | rm -f conftest.err conftest.$ac_objext \ |
|---|
| | 5237 | conftest$ac_exeext conftest.$ac_ext |
|---|
| | 5238 | LIBS=$ac_check_lib_save_LIBS |
|---|
| | 5239 | fi |
|---|
| | 5240 | echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5 |
|---|
| | 5241 | echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6 |
|---|
| | 5242 | if test $ac_cv_lib_iconv_iconv = yes; then |
|---|
| | 5243 | |
|---|
| | 5244 | LIBS="$LIBS -liconv" |
|---|
| | 5245 | |
|---|
| | 5246 | else |
|---|
| | 5247 | |
|---|
| | 5248 | echo "$as_me:$LINENO: checking for libiconv in -liconv" >&5 |
|---|
| | 5249 | echo $ECHO_N "checking for libiconv in -liconv... $ECHO_C" >&6 |
|---|
| | 5250 | if test "${ac_cv_lib_iconv_libiconv+set}" = set; then |
|---|
| | 5251 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| | 5252 | else |
|---|
| | 5253 | ac_check_lib_save_LIBS=$LIBS |
|---|
| | 5254 | LIBS="-liconv $LIBS" |
|---|
| | 5255 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| | 5256 | /* confdefs.h. */ |
|---|
| | 5257 | _ACEOF |
|---|
| | 5258 | cat confdefs.h >>conftest.$ac_ext |
|---|
| | 5259 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| | 5260 | /* end confdefs.h. */ |
|---|
| | 5261 | |
|---|
| | 5262 | /* Override any gcc2 internal prototype to avoid an error. */ |
|---|
| | 5263 | #ifdef __cplusplus |
|---|
| | 5264 | extern "C" |
|---|
| | 5265 | #endif |
|---|
| | 5266 | /* We use char because int might match the return type of a gcc2 |
|---|
| | 5267 | builtin and then its argument prototype would still apply. */ |
|---|
| | 5268 | char libiconv (); |
|---|
| | 5269 | int |
|---|
| | 5270 | main () |
|---|
| | 5271 | { |
|---|
| | 5272 | libiconv (); |
|---|
| | 5273 | ; |
|---|
| | 5274 | return 0; |
|---|
| | 5275 | } |
|---|
| | 5276 | _ACEOF |
|---|
| | 5277 | rm -f conftest.$ac_objext conftest$ac_exeext |
|---|
| | 5278 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|---|
| | 5279 | (eval $ac_link) 2>conftest.er1 |
|---|
| | 5280 | ac_status=$? |
|---|
| | 5281 | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| | 5282 | rm -f conftest.er1 |
|---|
| | 5283 | cat conftest.err >&5 |
|---|
| | 5284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 5285 | (exit $ac_status); } && |
|---|
| | 5286 | { ac_try='test -z "$ac_c_werror_flag" |
|---|
| | 5287 | || test ! -s conftest.err' |
|---|
| | 5288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| | 5289 | (eval $ac_try) 2>&5 |
|---|
| | 5290 | ac_status=$? |
|---|
| | 5291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 5292 | (exit $ac_status); }; } && |
|---|
| | 5293 | { ac_try='test -s conftest$ac_exeext' |
|---|
| | 5294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| | 5295 | (eval $ac_try) 2>&5 |
|---|
| | 5296 | ac_status=$? |
|---|
| | 5297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 5298 | (exit $ac_status); }; }; then |
|---|
| | 5299 | ac_cv_lib_iconv_libiconv=yes |
|---|
| | 5300 | else |
|---|
| | 5301 | echo "$as_me: failed program was:" >&5 |
|---|
| | 5302 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| | 5303 | |
|---|
| | 5304 | ac_cv_lib_iconv_libiconv=no |
|---|
| | 5305 | fi |
|---|
| | 5306 | rm -f conftest.err conftest.$ac_objext \ |
|---|
| | 5307 | conftest$ac_exeext conftest.$ac_ext |
|---|
| | 5308 | LIBS=$ac_check_lib_save_LIBS |
|---|
| | 5309 | fi |
|---|
| | 5310 | echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_libiconv" >&5 |
|---|
| | 5311 | echo "${ECHO_T}$ac_cv_lib_iconv_libiconv" >&6 |
|---|
| | 5312 | if test $ac_cv_lib_iconv_libiconv = yes; then |
|---|
| | 5313 | |
|---|
| | 5314 | LIBS="$LIBS -liconv" |
|---|
| | 5315 | |
|---|
| | 5316 | else |
|---|
| | 5317 | |
|---|
| | 5318 | echo "$as_me:$LINENO: checking for iconv" >&5 |
|---|
| | 5319 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 |
|---|
| | 5320 | if test "${ac_cv_func_iconv+set}" = set; then |
|---|
| | 5321 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| | 5322 | else |
|---|
| | 5323 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| | 5324 | /* confdefs.h. */ |
|---|
| | 5325 | _ACEOF |
|---|
| | 5326 | cat confdefs.h >>conftest.$ac_ext |
|---|
| | 5327 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| | 5328 | /* end confdefs.h. */ |
|---|
| | 5329 | /* Define iconv to an innocuous variant, in case <limits.h> declares iconv. |
|---|
| 5443 | | echo "$as_me:$LINENO: checking for tgoto in -ltermcap" >&5 |
|---|
| 5444 | | echo $ECHO_N "checking for tgoto in -ltermcap... $ECHO_C" >&6 |
|---|
| 5445 | | if test "${ac_cv_lib_termcap_tgoto+set}" = set; then |
|---|
| 5446 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 5447 | | else |
|---|
| 5448 | | ac_check_lib_save_LIBS=$LIBS |
|---|
| 5449 | | LIBS="-ltermcap $LIBS" |
|---|
| 5450 | | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 5451 | | /* confdefs.h. */ |
|---|
| 5452 | | _ACEOF |
|---|
| 5453 | | cat confdefs.h >>conftest.$ac_ext |
|---|
| 5454 | | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| 5455 | | /* end confdefs.h. */ |
|---|
| 5456 | | |
|---|
| 5457 | | /* Override any gcc2 internal prototype to avoid an error. */ |
|---|
| 5458 | | #ifdef __cplusplus |
|---|
| 5459 | | extern "C" |
|---|
| 5460 | | #endif |
|---|
| 5461 | | /* We use char because int might match the return type of a gcc2 |
|---|
| 5462 | | builtin and then its argument prototype would still apply. */ |
|---|
| 5463 | | char tgoto (); |
|---|
| 5464 | | int |
|---|
| 5465 | | main () |
|---|
| 5466 | | { |
|---|
| 5467 | | tgoto (); |
|---|
| 5468 | | ; |
|---|
| 5469 | | return 0; |
|---|
| 5470 | | } |
|---|
| 5471 | | _ACEOF |
|---|
| 5472 | | rm -f conftest.$ac_objext conftest$ac_exeext |
|---|
| | 5412 | |
|---|
| | 5413 | { { echo "$as_me:$LINENO: error: could not locate iconv |
|---|
| | 5414 | |
|---|
| | 5415 | If you installed iconv into a non-standard directory, please run: |
|---|
| | 5416 | |
|---|
| | 5417 | env CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&5 |
|---|
| | 5418 | echo "$as_me: error: could not locate iconv |
|---|
| | 5419 | |
|---|
| | 5420 | If you installed iconv into a non-standard directory, please run: |
|---|
| | 5421 | |
|---|
| | 5422 | env CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&2;} |
|---|
| | 5423 | { (exit 1); exit 1; }; } |
|---|
| | 5424 | |
|---|
| | 5425 | |
|---|
| | 5426 | fi |
|---|
| | 5427 | |
|---|
| | 5428 | |
|---|
| | 5429 | fi |
|---|
| | 5430 | |
|---|
| | 5431 | |
|---|
| | 5432 | fi |
|---|
| | 5433 | |
|---|
| | 5434 | |
|---|
| | 5435 | else |
|---|
| | 5436 | |
|---|
| | 5437 | |
|---|
| | 5438 | { { echo "$as_me:$LINENO: error: could not locate iconv |
|---|
| | 5439 | |
|---|
| | 5440 | If you installed iconv into a non-standard directory, please run: |
|---|
| | 5441 | |
|---|
| | 5442 | env CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&5 |
|---|
| | 5443 | echo "$as_me: error: could not locate iconv |
|---|
| | 5444 | |
|---|
| | 5445 | If you installed iconv into a non-standard directory, please run: |
|---|
| | 5446 | |
|---|
| | 5447 | env CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&2;} |
|---|
| | 5448 | { (exit 1); exit 1; }; } |
|---|
| | 5449 | |
|---|
| | 5450 | |
|---|
| | 5451 | fi |
|---|
| | 5452 | |
|---|
| | 5453 | done |
|---|
| | 5454 | |
|---|
| | 5455 | |
|---|
| | 5456 | echo "$as_me:$LINENO: checking if iconv understands Unicode" >&5 |
|---|
| | 5457 | echo $ECHO_N "checking if iconv understands Unicode... $ECHO_C" >&6 |
|---|
| | 5458 | if test "$cross_compiling" = yes; then |
|---|
| | 5459 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
|---|
| | 5460 | See \`config.log' for more details." >&5 |
|---|
| | 5461 | echo "$as_me: error: cannot run test program while cross compiling |
|---|
| | 5462 | See \`config.log' for more details." >&2;} |
|---|
| | 5463 | { (exit 1); exit 1; }; } |
|---|
| | 5464 | else |
|---|
| | 5465 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| | 5466 | |
|---|
| | 5467 | #include <iconv.h> |
|---|
| | 5468 | int main(void) { |
|---|
| | 5469 | iconv_t conv = iconv_open("UTF-8", "UTF-16"); |
|---|
| | 5470 | if(conv == (iconv_t) -1) |
|---|
| | 5471 | return 1; |
|---|
| | 5472 | return 0; |
|---|
| | 5473 | } |
|---|
| | 5474 | |
|---|
| | 5475 | _ACEOF |
|---|
| | 5476 | rm -f conftest$ac_exeext |
|---|
| 5499 | | ac_cv_lib_termcap_tgoto=no |
|---|
| 5500 | | fi |
|---|
| 5501 | | rm -f conftest.err conftest.$ac_objext \ |
|---|
| 5502 | | conftest$ac_exeext conftest.$ac_ext |
|---|
| 5503 | | LIBS=$ac_check_lib_save_LIBS |
|---|
| 5504 | | fi |
|---|
| 5505 | | echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgoto" >&5 |
|---|
| 5506 | | echo "${ECHO_T}$ac_cv_lib_termcap_tgoto" >&6 |
|---|
| 5507 | | if test $ac_cv_lib_termcap_tgoto = yes; then |
|---|
| 5508 | | |
|---|
| 5509 | | LIBS="$LIBS -ltermcap" |
|---|
| 5510 | | |
|---|
| 5511 | | else |
|---|
| 5512 | | |
|---|
| 5513 | | echo "$as_me:$LINENO: checking for tgoto in -lncurses" >&5 |
|---|
| 5514 | | echo $ECHO_N "checking for tgoto in -lncurses... $ECHO_C" >&6 |
|---|
| 5515 | | if test "${ac_cv_lib_ncurses_tgoto+set}" = set; then |
|---|
| 5516 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 5517 | | else |
|---|
| 5518 | | ac_check_lib_save_LIBS=$LIBS |
|---|
| 5519 | | LIBS="-lncurses $LIBS" |
|---|
| 5520 | | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 5521 | | /* confdefs.h. */ |
|---|
| 5522 | | _ACEOF |
|---|
| 5523 | | cat confdefs.h >>conftest.$ac_ext |
|---|
| 5524 | | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| 5525 | | /* end confdefs.h. */ |
|---|
| 5526 | | |
|---|
| 5527 | | /* Override any gcc2 internal prototype to avoid an error. */ |
|---|
| 5528 | | #ifdef __cplusplus |
|---|
| 5529 | | extern "C" |
|---|
| 5530 | | #endif |
|---|
| 5531 | | /* We use char because int might match the return type of a gcc2 |
|---|
| 5532 | | builtin and then its argument prototype would still apply. */ |
|---|
| 5533 | | char tgoto (); |
|---|
| 5534 | | int |
|---|
| 5535 | | main () |
|---|
| 5536 | | { |
|---|
| 5537 | | tgoto (); |
|---|
| 5538 | | ; |
|---|
| 5539 | | return 0; |
|---|
| 5540 | | } |
|---|
| 5541 | | _ACEOF |
|---|
| 5542 | | rm -f conftest.$ac_objext conftest$ac_exeext |
|---|
| 5543 | | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|---|
| 5544 | | (eval $ac_link) 2>conftest.er1 |
|---|
| 5545 | | ac_status=$? |
|---|
| 5546 | | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| 5547 | | rm -f conftest.er1 |
|---|
| 5548 | | cat conftest.err >&5 |
|---|
| 5549 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 5550 | | (exit $ac_status); } && |
|---|
| 5551 | | { ac_try='test -z "$ac_c_werror_flag" |
|---|
| 5552 | | || test ! -s conftest.err' |
|---|
| 5553 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 5554 | | (eval $ac_try) 2>&5 |
|---|
| 5555 | | ac_status=$? |
|---|
| 5556 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 5557 | | (exit $ac_status); }; } && |
|---|
| 5558 | | { ac_try='test -s conftest$ac_exeext' |
|---|
| 5559 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 5560 | | (eval $ac_try) 2>&5 |
|---|
| 5561 | | ac_status=$? |
|---|
| 5562 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 5563 | | (exit $ac_status); }; }; then |
|---|
| 5564 | | ac_cv_lib_ncurses_tgoto=yes |
|---|
| 5565 | | else |
|---|
| 5566 | | echo "$as_me: failed program was:" >&5 |
|---|
| 5567 | | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 5568 | | |
|---|
| 5569 | | ac_cv_lib_ncurses_tgoto=no |
|---|
| 5570 | | fi |
|---|
| 5571 | | rm -f conftest.err conftest.$ac_objext \ |
|---|
| 5572 | | conftest$ac_exeext conftest.$ac_ext |
|---|
| 5573 | | LIBS=$ac_check_lib_save_LIBS |
|---|
| 5574 | | fi |
|---|
| 5575 | | echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgoto" >&5 |
|---|
| 5576 | | echo "${ECHO_T}$ac_cv_lib_ncurses_tgoto" >&6 |
|---|
| 5577 | | if test $ac_cv_lib_ncurses_tgoto = yes; then |
|---|
| 5578 | | |
|---|
| 5579 | | LIBS="$LIBS -lncurses" |
|---|
| 5580 | | |
|---|
| 5581 | | else |
|---|
| 5582 | | |
|---|
| 5583 | | echo "$as_me:$LINENO: checking for tgoto in -lcurses" >&5 |
|---|
| 5584 | | echo $ECHO_N "checking for tgoto in -lcurses... $ECHO_C" >&6 |
|---|
| 5585 | | if test "${ac_cv_lib_curses_tgoto+set}" = set; then |
|---|
| 5586 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 5587 | | else |
|---|
| 5588 | | ac_check_lib_save_LIBS=$LIBS |
|---|
| 5589 | | LIBS="-lcurses $LIBS" |
|---|
| 5590 | | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 5591 | | /* confdefs.h. */ |
|---|
| 5592 | | _ACEOF |
|---|
| 5593 | | cat confdefs.h >>conftest.$ac_ext |
|---|
| 5594 | | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| 5595 | | /* end confdefs.h. */ |
|---|
| 5596 | | |
|---|
| 5597 | | /* Override any gcc2 internal prototype to avoid an error. */ |
|---|
| 5598 | | #ifdef __cplusplus |
|---|
| 5599 | | extern "C" |
|---|
| 5600 | | #endif |
|---|
| 5601 | | /* We use char because int might match the return type of a gcc2 |
|---|
| 5602 | | builtin and then its argument prototype would still apply. */ |
|---|
| 5603 | | char tgoto (); |
|---|
| 5604 | | int |
|---|
| 5605 | | main () |
|---|
| 5606 | | { |
|---|
| 5607 | | tgoto (); |
|---|
| 5608 | | ; |
|---|
| 5609 | | return 0; |
|---|
| 5610 | | } |
|---|
| 5611 | | _ACEOF |
|---|
| 5612 | | rm -f conftest.$ac_objext conftest$ac_exeext |
|---|
| 5613 | | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|---|
| 5614 | | (eval $ac_link) 2>conftest.er1 |
|---|
| 5615 | | ac_status=$? |
|---|
| 5616 | | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| 5617 | | rm -f conftest.er1 |
|---|
| 5618 | | cat conftest.err >&5 |
|---|
| 5619 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 5620 | | (exit $ac_status); } && |
|---|
| 5621 | | { ac_try='test -z "$ac_c_werror_flag" |
|---|
| 5622 | | || test ! -s conftest.err' |
|---|
| 5623 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 5624 | | (eval $ac_try) 2>&5 |
|---|
| 5625 | | ac_status=$? |
|---|
| 5626 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 5627 | | (exit $ac_status); }; } && |
|---|
| 5628 | | { ac_try='test -s conftest$ac_exeext' |
|---|
| 5629 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 5630 | | (eval $ac_try) 2>&5 |
|---|
| 5631 | | ac_status=$? |
|---|
| 5632 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 5633 | | (exit $ac_status); }; }; then |
|---|
| 5634 | | ac_cv_lib_curses_tgoto=yes |
|---|
| 5635 | | else |
|---|
| 5636 | | echo "$as_me: failed program was:" >&5 |
|---|
| 5637 | | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 5638 | | |
|---|
| 5639 | | ac_cv_lib_curses_tgoto=no |
|---|
| 5640 | | fi |
|---|
| 5641 | | rm -f conftest.err conftest.$ac_objext \ |
|---|
| 5642 | | conftest$ac_exeext conftest.$ac_ext |
|---|
| 5643 | | LIBS=$ac_check_lib_save_LIBS |
|---|
| 5644 | | fi |
|---|
| 5645 | | echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgoto" >&5 |
|---|
| 5646 | | echo "${ECHO_T}$ac_cv_lib_curses_tgoto" >&6 |
|---|
| 5647 | | if test $ac_cv_lib_curses_tgoto = yes; then |
|---|
| 5648 | | |
|---|
| 5649 | | LIBS="$LIBS -lcurses" |
|---|
| 5650 | | |
|---|
| 5651 | | fi |
|---|
| 5652 | | |
|---|
| 5653 | | |
|---|
| 5654 | | fi |
|---|
| 5655 | | |
|---|
| 5656 | | |
|---|
| 5657 | | fi |
|---|
| 5658 | | |
|---|
| 5659 | | |
|---|
| 5660 | | fi |
|---|
| 5661 | | |
|---|
| 5662 | | |
|---|
| 5663 | | fi |
|---|
| 5664 | | |
|---|
| 5665 | | done |
|---|
| 5666 | | |
|---|
| 5667 | | |
|---|
| 5668 | | |
|---|
| 5669 | | |
|---|
| 5670 | | for ac_header in readline/readline.h |
|---|
| | 5496 | ( exit $ac_status ) |
|---|
| | 5497 | |
|---|
| | 5498 | { { echo "$as_me:$LINENO: error: no" >&5 |
|---|
| | 5499 | echo "$as_me: error: no" >&2;} |
|---|
| | 5500 | { (exit 1); exit 1; }; } |
|---|
| | 5501 | |
|---|
| | 5502 | fi |
|---|
| | 5503 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|---|
| | 5504 | fi |
|---|
| | 5505 | |
|---|
| | 5506 | |
|---|
| | 5507 | |
|---|
| | 5508 | for ac_header in term.h |
|---|
| | 5658 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| | 5659 | /* confdefs.h. */ |
|---|
| | 5660 | _ACEOF |
|---|
| | 5661 | cat confdefs.h >>conftest.$ac_ext |
|---|
| | 5662 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| | 5663 | /* end confdefs.h. */ |
|---|
| | 5664 | /* Define tgoto to an innocuous variant, in case <limits.h> declares tgoto. |
|---|
| | 5665 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|---|
| | 5666 | #define tgoto innocuous_tgoto |
|---|
| | 5667 | |
|---|
| | 5668 | /* System header to define __stub macros and hopefully few prototypes, |
|---|
| | 5669 | which can conflict with char tgoto (); below. |
|---|
| | 5670 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|---|
| | 5671 | <limits.h> exists even on freestanding compilers. */ |
|---|
| | 5672 | |
|---|
| | 5673 | #ifdef __STDC__ |
|---|
| | 5674 | # include <limits.h> |
|---|
| | 5675 | #else |
|---|
| | 5676 | # include <assert.h> |
|---|
| | 5677 | #endif |
|---|
| | 5678 | |
|---|
| | 5679 | #undef tgoto |
|---|
| | 5680 | |
|---|
| | 5681 | /* Override any gcc2 internal prototype to avoid an error. */ |
|---|
| | 5682 | #ifdef __cplusplus |
|---|
| | 5683 | extern "C" |
|---|
| | 5684 | { |
|---|
| | 5685 | #endif |
|---|
| | 5686 | /* We use char because int might match the return type of a gcc2 |
|---|
| | 5687 | builtin and then its argument prototype would still apply. */ |
|---|
| | 5688 | char tgoto (); |
|---|
| | 5689 | /* The GNU C library defines this for functions which it implements |
|---|
| | 5690 | to always fail with ENOSYS. Some functions are actually named |
|---|
| | 5691 | something starting with __ and the normal name is an alias. */ |
|---|
| | 5692 | #if defined (__stub_tgoto) || defined (__stub___tgoto) |
|---|
| | 5693 | choke me |
|---|
| | 5694 | #else |
|---|
| | 5695 | char (*f) () = tgoto; |
|---|
| | 5696 | #endif |
|---|
| | 5697 | #ifdef __cplusplus |
|---|
| | 5698 | } |
|---|
| | 5699 | #endif |
|---|
| | 5700 | |
|---|
| | 5701 | int |
|---|
| | 5702 | main () |
|---|
| | 5703 | { |
|---|
| | 5704 | return f != tgoto; |
|---|
| | 5705 | ; |
|---|
| | 5706 | return 0; |
|---|
| | 5707 | } |
|---|
| | 5708 | _ACEOF |
|---|
| | 5709 | rm -f conftest.$ac_objext conftest$ac_exeext |
|---|
| | 5710 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|---|
| | 5711 | (eval $ac_link) 2>conftest.er1 |
|---|
| | 5712 | ac_status=$? |
|---|
| | 5713 | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| | 5714 | rm -f conftest.er1 |
|---|
| | 5715 | cat conftest.err >&5 |
|---|
| | 5716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 5717 | (exit $ac_status); } && |
|---|
| | 5718 | { ac_try='test -z "$ac_c_werror_flag" |
|---|