Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] Diff of /sml/trunk/src/runtime/config/gen-posix-names.sh
ViewVC logotype

Diff of /sml/trunk/src/runtime/config/gen-posix-names.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1412, Tue Nov 4 19:07:43 2003 UTC revision 1413, Wed Nov 5 14:40:20 2003 UTC
# Line 39  Line 39 
39    echo "#include <unistd.h>" > $SRCFILE    echo "#include <unistd.h>" > $SRCFILE
40    $CPP $SRCFILE > $INCLFILE    $CPP $SRCFILE > $INCLFILE
41    rm -f $SRCFILE    rm -f $SRCFILE
 elif [ -r "/usr/include/sys/unistd.h" ]; then  
   INCLFILE=/usr/include/sys/unistd.h  
 elif [ -r "/usr/include/confname.h" ]; then  
   INCLFILE=/usr/include/confname.h  
 elif [ -r "/usr/include/unistd.h" ]; then  
   INCLFILE=/usr/include/unistd.h  
 elif [ -r "/usr/include/bsd/unistd.h" ]; then  
   INCLFILE=/usr/include/bsd/unistd.h  
42  else  else
43    # search the possible include files looking for a source
44    # of the constants.
45      FILES="\
46            /usr/include/unistd.h \
47            /usr/include/sys/unistd.h \
48            /usr/include/bsd/unistd.h \
49            /usr/include/confname.h \
50        "
51      INCLFILE="none"
52      for f in $FILES ; do
53        if test -r $f ; then
54          grep $PFIX $f > /dev/null
55          if test $? -eq 0 ; then
56            INCLFILE=$f
57            break;
58          fi
59        fi
60      done
61    fi
62    if test x$INCLFILE = xnone ; then
63    echo "gen-posix-names.sh: unable to find <unistd.h>"    echo "gen-posix-names.sh: unable to find <unistd.h>"
64    exit 1    exit 1
65  fi  fi
66    
67  echo "/* $OUTF" >> $OUTF  echo "/* $OUTF" >> $OUTF
68  echo " *"       >> $OUTF  echo " *"       >> $OUTF
69  echo " * This file is generated by gen-posix-names.sh"       >> $OUTF  echo " * This file is generated by gen-posix-names.sh from $INCLFILE" >> $OUTF
70  echo " */"       >> $OUTF  echo " */"       >> $OUTF
71    
72  if [ "$USED_ENUMS" = "TRUE" ]; then  if [ "$USED_ENUMS" = "TRUE" ]; then

Legend:
Removed from v.1412  
changed lines
  Added in v.1413

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0