|
Last change
on this file was 745, checked in by Silvan Scherrer, 13 years ago |
|
Samba Server: updated trunk to 3.6.0
|
|
File size:
925 bytes
|
| Line | |
|---|
| 1 | #!/usr/bin/env python
|
|---|
| 2 |
|
|---|
| 3 | # rather strangely, we need to look for libiconv before checking libc
|
|---|
| 4 | # as the external libiconv can use a macro to override iconv_open to libiconv_open
|
|---|
| 5 | # and then we may find the wrong iconv.h later due to other packages looking
|
|---|
| 6 | # in /usr/local
|
|---|
| 7 | # We check for the lib iconv when building a shared lib has some compiler/linker
|
|---|
| 8 | # managed to link when specifying -liconv a executable even if there is no
|
|---|
| 9 | # libiconv.so or libiconv.a
|
|---|
| 10 |
|
|---|
| 11 | conf.CHECK_LIB(libs="iconv", shlib=True)
|
|---|
| 12 |
|
|---|
| 13 | if (conf.CHECK_FUNCS_IN('iconv_open', 'iconv', checklibc=False, headers='iconv.h') or
|
|---|
| 14 | conf.CHECK_FUNCS('iconv_open', headers='iconv.h')):
|
|---|
| 15 | if conf.env['HAVE_LIBICONV']:
|
|---|
| 16 | if conf.CHECK_FUNCS('mbrtowc', headers='wchar.h'):
|
|---|
| 17 | conf.DEFINE('HAVE_NATIVE_ICONV', 1)
|
|---|
| 18 | elif conf.env.LIB_ICONV:
|
|---|
| 19 | del conf.env['LIB_ICONV']
|
|---|
| 20 | else:
|
|---|
| 21 | conf.DEFINE('HAVE_NATIVE_ICONV', 1)
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.