Commit fe9c85e4 authored by Clément Bœsch's avatar Clément Bœsch Committed by Clément Bœsch

build: make sure a disabled autodetect still pick the libc's iconv

parent e3c1219c
...@@ -3592,6 +3592,11 @@ for e in $env; do ...@@ -3592,6 +3592,11 @@ for e in $env; do
done done
if disabled autodetect; then if disabled autodetect; then
# Unless iconv is explicitely disabled by the user, we still want to probe
# for the iconv from the libc.
disabled iconv || enable libc_iconv
disable_weak $EXTERNAL_AUTODETECT_LIBRARY_LIST disable_weak $EXTERNAL_AUTODETECT_LIBRARY_LIST
disable_weak $HWACCEL_AUTODETECT_LIBRARY_LIST disable_weak $HWACCEL_AUTODETECT_LIBRARY_LIST
fi fi
...@@ -6193,7 +6198,11 @@ int main(void) { return 0; } ...@@ -6193,7 +6198,11 @@ int main(void) { return 0; }
EOF EOF
# Funny iconv installations are not unusual, so check it after all flags have been set # Funny iconv installations are not unusual, so check it after all flags have been set
enabled iconv && check_func_headers iconv.h iconv || check_lib iconv iconv.h iconv -liconv if enabled libc_iconv; then
check_func_headers iconv.h iconv
elif enabled iconv; then
check_func_headers iconv.h iconv || check_lib iconv iconv.h iconv -liconv
fi
enabled debug && add_cflags -g"$debuglevel" && add_asflags -g"$debuglevel" enabled debug && add_cflags -g"$debuglevel" && add_asflags -g"$debuglevel"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment