Cygwin fixes
This commit is contained in:
parent
6db1a57d14
commit
52a817f80e
|
@ -73,11 +73,11 @@ cc_test()
|
||||||
EOF
|
EOF
|
||||||
if ! runcmd $CC -o testconf testconf.c
|
if ! runcmd $CC -o testconf testconf.c
|
||||||
then
|
then
|
||||||
rm -f testconf.c testconf
|
rm -f testconf*
|
||||||
echo "Could not find a working compiler"
|
echo "Could not find a working compiler"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
rm -f testconf.c testconf
|
rm -f testconf*
|
||||||
}
|
}
|
||||||
|
|
||||||
openssl_test()
|
openssl_test()
|
||||||
|
@ -99,7 +99,7 @@ EOF
|
||||||
echo "missing, using built-in SHA1 implementation"
|
echo "missing, using built-in SHA1 implementation"
|
||||||
OPENSSL=no
|
OPENSSL=no
|
||||||
fi
|
fi
|
||||||
rm -f testconf.c testconf
|
rm -f testconf*
|
||||||
}
|
}
|
||||||
|
|
||||||
lm_test()
|
lm_test()
|
||||||
|
@ -118,7 +118,7 @@ EOF
|
||||||
LDFLAGS="$LDFLAGS -lm"
|
LDFLAGS="$LDFLAGS -lm"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
rm -f testconf.c testconf
|
rm -f testconf*
|
||||||
}
|
}
|
||||||
|
|
||||||
lrintf_test()
|
lrintf_test()
|
||||||
|
@ -134,7 +134,7 @@ EOF
|
||||||
then
|
then
|
||||||
CFLAGS="$CFLAGS -DHAVE_LRINTF"
|
CFLAGS="$CFLAGS -DHAVE_LRINTF"
|
||||||
fi
|
fi
|
||||||
rm -f testconf.c testconf
|
rm -f testconf*
|
||||||
}
|
}
|
||||||
|
|
||||||
gettext_test()
|
gettext_test()
|
||||||
|
@ -150,7 +150,7 @@ EOF
|
||||||
|
|
||||||
if runcmd $CC $CFLAGS_GTK $LDFLAGS_GTK -o testconf testconf.c
|
if runcmd $CC $CFLAGS_GTK $LDFLAGS_GTK -o testconf testconf.c
|
||||||
then
|
then
|
||||||
rm -f testconf.c testconf
|
rm -f testconf*
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -160,11 +160,11 @@ EOF
|
||||||
if runcmd $CC $CFLAGS_GTK -I$intl_testdir $LDFLAGS_GTK -o testconf testconf.c
|
if runcmd $CC $CFLAGS_GTK -I$intl_testdir $LDFLAGS_GTK -o testconf testconf.c
|
||||||
then
|
then
|
||||||
CFLAGS_GTK="$CFLAGS_GTK -I$intl_testdir"
|
CFLAGS_GTK="$CFLAGS_GTK -I$intl_testdir"
|
||||||
rm -f testconf.c testconf
|
rm -f testconf*
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
rm -f testconf.c testconf
|
rm -f testconf*
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -200,7 +200,7 @@ EOF
|
||||||
echo "no"
|
echo "no"
|
||||||
GTK=no
|
GTK=no
|
||||||
fi
|
fi
|
||||||
rm -f testconf.c testconf
|
rm -f testconf*
|
||||||
else
|
else
|
||||||
echo "no (2.6.0 or later is required)"
|
echo "no (2.6.0 or later is required)"
|
||||||
GTK=no
|
GTK=no
|
||||||
|
@ -278,6 +278,9 @@ EOF
|
||||||
PTHREAD=yes
|
PTHREAD=yes
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
CYGWIN*)
|
||||||
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
echo "Unsupported operating system"
|
echo "Unsupported operating system"
|
||||||
exit 1 ;;
|
exit 1 ;;
|
||||||
|
|
Loading…
Reference in New Issue