X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=configure.ac;h=d072376515ff80b450ae615af8781386f75dd74a;hb=a93fb468885de8775f1d200625dac114d3050b1d;hp=3ad9bed42a1f946d8aa17fe9e6328f1eeeec13af;hpb=98cac5d63e047a633ac1078950840688c1d5234f;p=libserialport.git diff --git a/configure.ac b/configure.ac index 3ad9bed..d072376 100644 --- a/configure.ac +++ b/configure.ac @@ -76,6 +76,7 @@ AC_SUBST(SP_LIB_LDFLAGS) # It is then used to construct the "Requires.private:" field in the # libserialport.pc file. SP_PKGLIBS="" +SP_LIBS="" case $target_os in *linux*) @@ -86,11 +87,16 @@ case $target_os in LDFLAGS="$LDFLAGS -Wl,-framework -Wl,IOKit -Wl,-framework -Wl,CoreFoundation" AC_CHECK_HEADER(IOKit/IOKitLib.h, [], [AC_MSG_ERROR([IOKit/IOKitLib.h not found])]) ;; +mingw* | cygwin*) + AM_CONDITIONAL([LINUX], false) + SP_LIBS="-lsetupapi -luuid" + ;; *) AM_CONDITIONAL([LINUX], false) esac AC_SUBST(SP_PKGLIBS) +AC_SUBST(SP_LIBS) # Define size_t if not defined as standard. AC_TYPE_SIZE_T