| 4303 | | echo "$as_me:$LINENO: checking for iconv_open" >&5 |
|---|
| 4304 | | echo $ECHO_N "checking for iconv_open... $ECHO_C" >&6 |
|---|
| 4305 | | if test "${ac_cv_func_iconv_open+set}" = set; then |
|---|
| 4306 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 4307 | | else |
|---|
| 4308 | | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 4309 | | #line $LINENO "configure" |
|---|
| 4310 | | /* confdefs.h. */ |
|---|
| 4311 | | _ACEOF |
|---|
| 4312 | | cat confdefs.h >>conftest.$ac_ext |
|---|
| 4313 | | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| 4314 | | /* end confdefs.h. */ |
|---|
| 4315 | | /* System header to define __stub macros and hopefully few prototypes, |
|---|
| 4316 | | which can conflict with char iconv_open (); below. |
|---|
| 4317 | | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|---|
| 4318 | | <limits.h> exists even on freestanding compilers. */ |
|---|
| 4319 | | #ifdef __STDC__ |
|---|
| 4320 | | # include <limits.h> |
|---|
| 4321 | | #else |
|---|
| 4322 | | # include <assert.h> |
|---|
| 4323 | | #endif |
|---|
| 4324 | | /* Override any gcc2 internal prototype to avoid an error. */ |
|---|
| 4325 | | #ifdef __cplusplus |
|---|
| 4326 | | extern "C" |
|---|
| 4327 | | { |
|---|
| 4328 | | #endif |
|---|
| 4329 | | /* We use char because int might match the return type of a gcc2 |
|---|
| 4330 | | builtin and then its argument prototype would still apply. */ |
|---|
| 4331 | | char iconv_open (); |
|---|
| 4332 | | /* The GNU C library defines this for functions which it implements |
|---|
| 4333 | | to always fail with ENOSYS. Some functions are actually named |
|---|
| 4334 | | something starting with __ and the normal name is an alias. */ |
|---|
| 4335 | | #if defined (__stub_iconv_open) || defined (__stub___iconv_open) |
|---|
| 4336 | | choke me |
|---|
| 4337 | | #else |
|---|
| 4338 | | char (*f) () = iconv_open; |
|---|
| 4339 | | #endif |
|---|
| 4340 | | #ifdef __cplusplus |
|---|
| 4341 | | } |
|---|
| 4342 | | #endif |
|---|
| 4343 | | |
|---|
| 4344 | | int |
|---|
| 4345 | | main () |
|---|
| 4346 | | { |
|---|
| 4347 | | return f != iconv_open; |
|---|
| 4348 | | ; |
|---|
| 4349 | | return 0; |
|---|
| 4350 | | } |
|---|
| 4351 | | _ACEOF |
|---|
| 4352 | | rm -f conftest.$ac_objext conftest$ac_exeext |
|---|
| 4353 | | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|---|
| 4354 | | (eval $ac_link) 2>&5 |
|---|
| 4355 | | ac_status=$? |
|---|
| 4356 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 4357 | | (exit $ac_status); } && |
|---|
| 4358 | | { ac_try='test -s conftest$ac_exeext' |
|---|
| 4359 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 4360 | | (eval $ac_try) 2>&5 |
|---|
| 4361 | | ac_status=$? |
|---|
| 4362 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 4363 | | (exit $ac_status); }; }; then |
|---|
| 4364 | | ac_cv_func_iconv_open=yes |
|---|
| 4365 | | else |
|---|
| 4366 | | echo "$as_me: failed program was:" >&5 |
|---|
| 4367 | | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 4368 | | |
|---|
| 4369 | | ac_cv_func_iconv_open=no |
|---|
| 4370 | | fi |
|---|
| 4371 | | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|---|
| 4372 | | fi |
|---|
| 4373 | | echo "$as_me:$LINENO: result: $ac_cv_func_iconv_open" >&5 |
|---|
| 4374 | | echo "${ECHO_T}$ac_cv_func_iconv_open" >&6 |
|---|
| 4375 | | if test $ac_cv_func_iconv_open = yes; then |
|---|
| 4376 | | : |
|---|
| 4377 | | else |
|---|
| 4378 | | |
|---|
| 4379 | | echo "$as_me:$LINENO: checking for main in -liconv" >&5 |
|---|
| | 4303 | echo "$as_me:$LINENO: checking for main in -liconv" >&5 |
|---|
| 4429 | | LIBS="$LIBS -liconv" |
|---|
| 4430 | | |
|---|
| 4431 | | else |
|---|
| 4432 | | |
|---|
| 4433 | | { { echo "$as_me:$LINENO: error: could not locate libiconv" >&5 |
|---|
| | 4353 | LIBS="$LIBS -liconv" |
|---|
| | 4354 | echo "$as_me:$LINENO: checking if iconv understands Unicode and MacRoman" >&5 |
|---|
| | 4355 | echo $ECHO_N "checking if iconv understands Unicode and MacRoman... $ECHO_C" >&6 |
|---|
| | 4356 | if test "$cross_compiling" = yes; then |
|---|
| | 4357 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
|---|
| | 4358 | See \`config.log' for more details." >&5 |
|---|
| | 4359 | echo "$as_me: error: cannot run test program while cross compiling |
|---|
| | 4360 | See \`config.log' for more details." >&2;} |
|---|
| | 4361 | { (exit 1); exit 1; }; } |
|---|
| | 4362 | else |
|---|
| | 4363 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| | 4364 | #line $LINENO "configure" |
|---|
| | 4365 | /* confdefs.h. */ |
|---|
| | 4366 | _ACEOF |
|---|
| | 4367 | cat confdefs.h >>conftest.$ac_ext |
|---|
| | 4368 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| | 4369 | /* end confdefs.h. */ |
|---|
| | 4370 | |
|---|
| | 4371 | #include <iconv.h> |
|---|
| | 4372 | int main(void) { |
|---|
| | 4373 | iconv_t conv = iconv_open("UTF-8", "MacRoman"); |
|---|
| | 4374 | if(conv == (iconv_t) -1) |
|---|
| | 4375 | return 1; |
|---|
| | 4376 | return 0; |
|---|
| | 4377 | } |
|---|
| | 4378 | |
|---|
| | 4379 | _ACEOF |
|---|
| | 4380 | rm -f conftest$ac_exeext |
|---|
| | 4381 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|---|
| | 4382 | (eval $ac_link) 2>&5 |
|---|
| | 4383 | ac_status=$? |
|---|
| | 4384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 4385 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|---|
| | 4386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| | 4387 | (eval $ac_try) 2>&5 |
|---|
| | 4388 | ac_status=$? |
|---|
| | 4389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 4390 | (exit $ac_status); }; }; then |
|---|
| | 4391 | |
|---|
| | 4392 | echo "$as_me:$LINENO: result: yes" >&5 |
|---|
| | 4393 | echo "${ECHO_T}yes" >&6 |
|---|
| | 4394 | |
|---|
| | 4395 | else |
|---|
| | 4396 | echo "$as_me: program exited with status $ac_status" >&5 |
|---|
| | 4397 | echo "$as_me: failed program was:" >&5 |
|---|
| | 4398 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| | 4399 | |
|---|
| | 4400 | ( exit $ac_status ) |
|---|
| | 4401 | |
|---|
| | 4402 | { { echo "$as_me:$LINENO: error: no" >&5 |
|---|
| | 4403 | echo "$as_me: error: no" >&2;} |
|---|
| | 4404 | { (exit 1); exit 1; }; } |
|---|
| | 4405 | |
|---|
| | 4406 | fi |
|---|
| | 4407 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|---|
| | 4408 | fi |
|---|
| | 4409 | |
|---|
| | 4410 | else |
|---|
| | 4411 | |
|---|
| | 4412 | { { echo "$as_me:$LINENO: error: could not locate libiconv" >&5 |
|---|