Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/rofl0r/proxychains-ng.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrofl0r <rofl0r@users.noreply.github.com>2020-12-18 15:33:49 +0300
committerrofl0r <rofl0r@users.noreply.github.com>2020-12-18 15:33:49 +0300
commitfa9644dc27ed040fb4abbd49b264caf51eb52cbb (patch)
tree3e4e43aedb2f7c1571a87c89d5142d4de49f327d
parent159ab946351a5370a81b19ab718e64f98e05404a (diff)
configure: check first whether C compiler works
closes #353
-rwxr-xr-xconfigure2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure b/configure
index 25f69f5..7157484 100755
--- a/configure
+++ b/configure
@@ -154,6 +154,8 @@ ishaiku() {
$haiku_detected
}
+check_compile 'whether C compiler works' '' 'int main() {return 0;}' || fail 'error: install a C compiler and library'
+
check_compile 'whether we have GNU-style getservbyname_r()' "-DHAVE_GNU_GETSERVBYNAME_R" \
'#define _GNU_SOURCE\n#include <netdb.h>\nint main() {\nstruct servent *se = 0;struct servent se_buf;char buf[1024];\ngetservbyname_r("foo", (void*) 0, &se_buf, buf, sizeof(buf), &se);\nreturn 0;}'