# HG changeset patch # User diego # Date 1284648044 0 # Node ID 26e3bf13985e7348a6df1a8487a46a8cd0d2b5ff # Parent dab4de13e332b757cefdbfb038124b9af38ec223 Simplify glob() check. diff -r dab4de13e332 -r 26e3bf13985e configure --- a/configure Thu Sep 16 14:39:40 2010 +0000 +++ b/configure Thu Sep 16 14:40:44 2010 +0000 @@ -3916,13 +3916,8 @@ echocheck "glob()" -cat > $TMPC << EOF -#include -#include -int main(void) { glob_t gg; glob("filename",0,NULL,&gg); return 0; } -EOF _glob=no -cc_check && _glob=yes +function_check glob.h 'glob("filename", 0, 0, 0)' && _glob=yes if test "$_glob" = yes ; then def_glob='#define HAVE_GLOB 1' _need_glob=no