Look for system setproctitle before trying -lbsd.
authorJelmer Vernooij <jelmer@samba.org>
Fri, 29 Aug 2014 23:54:44 +0000 (01:54 +0200)
committerDavid Disseldorp <ddiss@samba.org>
Sun, 31 Aug 2014 19:21:13 +0000 (21:21 +0200)
Change-Id: I390c186d7c1400287c6a18909a5d6587f2052243
Signed-Off-By: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
lib/replace/wscript

index b90f7752a7a4bcbf0516f0a80e3b6769d825ff6a..6f2fb66a2c6e1e31131fc1f427f51047c7c76ba1 100644 (file)
@@ -288,8 +288,8 @@ struct foo bar = { .y = 'X', .x = 1 };
                 checklibc=True)
     if not conf.CHECK_FUNCS('getpeereid'):
         conf.CHECK_FUNCS_IN('getpeereid', 'bsd', headers='sys/types.h bsd/unistd.h')
-    if not conf.CHECK_FUNCS_IN('setproctitle', 'bsd', headers='sys/types.h bsd/unistd.h'):
-        conf.CHECK_FUNCS_IN('setproctitle', 'setproctitle', headers='setproctitle.h')
+    if not conf.CHECK_FUNCS_IN('setproctitle', 'setproctitle', headers='setproctitle.h'):
+        conf.CHECK_FUNCS_IN('setproctitle', 'bsd', headers='sys/types.h bsd/unistd.h')
 
     conf.CHECK_CODE('''
                 struct ucred cred;