#!/bin/sh
#*=====================================================================*/
#*    serrano/prgm/project/bigloo/autoconf/termio                      */
#*    -------------------------------------------------------------    */
#*    Author      :  Bengt Kleberg                                     */
#*    Creation    :  Mon May 10 12:34:48 MEST 1999                     */
#*    Last change :  Tue Sep  8 10:33:07 2009 (serrano)                */
#*    -------------------------------------------------------------    */
#*    Check if termio.h exist.                                         */
#*=====================================================================*/

#*---------------------------------------------------------------------*/
#*    flags                                                            */
#*---------------------------------------------------------------------*/
cflags=

#*---------------------------------------------------------------------*/
#*    We parse the arguments                                           */
#*---------------------------------------------------------------------*/
while : ; do
  case $1 in
    "")
      break;;

    --cflags=*|-cflags=*)
      cflags="`echo $1 | sed 's/^[-a-z]*=//'`";;

    -*)
      echo "Unknown option \"$1\", ignored" >&2;;
  esac
  shift
done

./autoconf/runtest -v1 -- checkinclude --cflags=$cflags "#include <termio.h>"
