mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
29 lines
686 B
Diff
29 lines
686 B
Diff
--- meson.build.orig 2018-11-13 16:58:49.000000000 +0100
|
|
+++ meson.build 2018-11-13 16:59:57.000000000 +0100
|
|
@@ -15,16 +15,7 @@
|
|
|
|
conf.set('HAVE_STRNDUP', cc.has_function('strndup', prefix: '#define _GNU_SOURCE\n#include <string.h>'))
|
|
|
|
-iconv = get_option('iconv')
|
|
-if iconv.disabled()
|
|
- iconv = false
|
|
-elif cc.has_function('iconv')
|
|
- iconv = true
|
|
-elif iconv.auto()
|
|
- iconv = false
|
|
-else
|
|
- error('iconv() not available')
|
|
-endif
|
|
+iconv = true
|
|
conf.set('HAVE_ICONV', iconv)
|
|
|
|
configure_file(output: 'config.h', configuration: conf)
|
|
@@ -105,6 +96,7 @@
|
|
include_directories: inc,
|
|
dependencies: [
|
|
libmpdclient_dep,
|
|
+ cc.find_library('iconv'),
|
|
],
|
|
install: true
|
|
)
|