changeset 32185:26e3bf13985e

Simplify glob() check.
author diego
date Thu, 16 Sep 2010 14:40:44 +0000
parents dab4de13e332
children f1aae2e20e2c
files configure
diffstat 1 files changed, 1 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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 <stdio.h>
-#include <glob.h>
-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