[Darshan-commits] [Git][darshan/darshan][dev-fscanf-redefined] slight modification of autoconf test

Shane Snyder xgitlab at cels.anl.gov
Thu Feb 13 17:42:56 CST 2020



Shane Snyder pushed to branch dev-fscanf-redefined at darshan / darshan


Commits:
bb2909d1 by Shane Snyder at 2020-02-13T23:42:31Z
slight modification of autoconf test

- - - - -


2 changed files:

- darshan-runtime/configure
- darshan-runtime/configure.in


Changes:

=====================================
darshan-runtime/configure
=====================================
@@ -4838,14 +4838,13 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
     #include <stdio.h>
+    int fscanf(FILE *stream, const char *format, ...) {return(0);}
+    int __isoc99_fscanf(FILE *stream, const char *format, ...) {return(0);}
 
 int
 main ()
 {
 
-    int fscanf(FILE *stream, const char *format, ...) {return(0);}
-    int __isoc99_fscanf(FILE *stream, const char *format, ...) {return(0);}
-
   ;
   return 0;
 }


=====================================
darshan-runtime/configure.in
=====================================
@@ -485,11 +485,10 @@ AC_MSG_CHECKING(for fscanf redirect)
 AC_TRY_COMPILE(
     [
     #include <stdio.h>
-    ],
-    [
     int fscanf(FILE *stream, const char *format, ...) {return(0);}
     int __isoc99_fscanf(FILE *stream, const char *format, ...) {return(0);}
     ],
+    [],
     AC_MSG_RESULT(no),
     AC_MSG_RESULT(yes)
     AC_DEFINE(HAVE_FSCANF_REDIRECT, 1, Define if fscanf is redirected to another function)



View it on GitLab: https://xgitlab.cels.anl.gov/darshan/darshan/commit/bb2909d1412a4ed334ec97134c70cbdeea5a1bf9

-- 
View it on GitLab: https://xgitlab.cels.anl.gov/darshan/darshan/commit/bb2909d1412a4ed334ec97134c70cbdeea5a1bf9
You're receiving this email because of your account on xgitlab.cels.anl.gov.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/darshan-commits/attachments/20200213/c96de730/attachment-0001.html>


More information about the Darshan-commits mailing list