configure: detect djgpp libc
authorPeter Ross <pross@xvid.org>
Sun, 11 Nov 2018 11:02:56 +0000 (22:02 +1100)
committerPeter Ross <pross@xvid.org>
Wed, 28 Nov 2018 11:16:07 +0000 (22:16 +1100)
configure

index ab3144e..6909eaa 100755 (executable)
--- a/configure
+++ b/configure
@@ -5297,7 +5297,6 @@ case $target_os in
         network_extralibs="-lsocket"
         objformat="coff"
         enable dos_paths
-        add_cppflags -U__STRICT_ANSI__
         ;;
     linux)
         enable section_data_rel_ro
@@ -5466,6 +5465,9 @@ EOF
     elif test_${pfx}cpp_condition sys/brand.h "defined LABELED_BRAND_NAME"; then
         eval ${pfx}libc_type=solaris
         add_${pfx}cppflags -D__EXTENSIONS__ -D_XOPEN_SOURCE=600
+    elif test_${pfx}cpp_condition sys/version.h "defined __DJGPP__"; then
+        eval ${pfx}libc_type=djgpp
+        add_cppflags -U__STRICT_ANSI__
     fi
     test_${pfx}cc <<EOF
 #include <time.h>