configure.ac
changeset 2054 3417bbc4ad2f
parent 1934 f00951ab7399
child 2056 a92e8f119723
equal deleted inserted replaced
2053:cceb9aacf4a6 2054:3417bbc4ad2f
   363 #------------------------------------------------------------------------------
   363 #------------------------------------------------------------------------------
   364 
   364 
   365 AC_ARG_WITH([rtai-dir],
   365 AC_ARG_WITH([rtai-dir],
   366     AC_HELP_STRING(
   366     AC_HELP_STRING(
   367         [--with-rtai-dir=<DIR>],
   367         [--with-rtai-dir=<DIR>],
   368         [RTAI path (only for RTAI examples)]
   368         [RTAI path (only for RTDM Interface or RTAI examples)]
   369     ),
   369     ),
   370     [
   370     [
   371         rtaidir=[$withval]
   371         rtaidir=[$withval]
   372     ],
   372     ],
   373     [
   373     [
   385     fi
   385     fi
   386     AC_MSG_RESULT([$rtaidir])
   386     AC_MSG_RESULT([$rtaidir])
   387 fi
   387 fi
   388 
   388 
   389 AC_SUBST(RTAI_DIR,[$rtaidir])
   389 AC_SUBST(RTAI_DIR,[$rtaidir])
       
   390 
       
   391 
       
   392 #------------------------------------------------------------------------------
       
   393 # Xenomai path (optional)
       
   394 #------------------------------------------------------------------------------
       
   395 
       
   396 AC_ARG_WITH([xenomai-dir],
       
   397     AC_HELP_STRING(
       
   398         [--with-xenomai-dir=<DIR>],
       
   399         [Xenomai path (only for RTDM Interface or Xenomai examples)]
       
   400     ),
       
   401     [
       
   402         xenomaidir=[$withval]
       
   403     ],
       
   404     [
       
   405         xenomaidir=""
       
   406     ]
       
   407 )
       
   408 
       
   409 AC_MSG_CHECKING([for Xenomai path])
       
   410 
       
   411 if test -z "${xenomaidir}"; then
       
   412     AC_MSG_RESULT([not specified.])
       
   413 else
       
   414     if test \! -r ${xenomaidir}/include/xeno_config.h; then
       
   415         AC_MSG_ERROR([no Xenomai installation found in ${xenomaidir}!])
       
   416     fi
       
   417     AC_MSG_RESULT([$xenomaidir])
       
   418 fi
       
   419 
       
   420 AC_SUBST(XENOMAI_DIR,[$xenomaidir])
       
   421 
       
   422 
       
   423 #------------------------------------------------------------------------------
       
   424 # RTDM Interface (optional)
       
   425 #------------------------------------------------------------------------------
       
   426 
       
   427 AC_ARG_ENABLE([rtdm],
       
   428     AC_HELP_STRING(
       
   429         [--enable-rtdm],
       
   430         [Enable RTDM Interface, depends on RTAI or Xenomai]
       
   431     ),
       
   432     [
       
   433         case "${enableval}" in
       
   434             yes) rtdm=1
       
   435                 ;;
       
   436             no) rtdm=0
       
   437                 ;;
       
   438             *) AC_MSG_ERROR([Invalid value for --enable-rtdm])
       
   439                 ;;
       
   440         esac
       
   441     ],
       
   442     [rtdm=0]
       
   443 )
       
   444 
       
   445 if test "x${rtdm}" = "x1"; then
       
   446     AC_DEFINE([EC_RTDM], [1], [RTDM interfaces enabled])
       
   447 fi
       
   448 AM_CONDITIONAL(ENABLE_RTDM, test "x$rtdm" = "x1")
       
   449 AC_SUBST(ENABLE_RTDM,[$rtdm])
       
   450 
   390 
   451 
   391 #------------------------------------------------------------------------------
   452 #------------------------------------------------------------------------------
   392 # Debug interface
   453 # Debug interface
   393 #------------------------------------------------------------------------------
   454 #------------------------------------------------------------------------------
   394 
   455 
   624         examples/rtai/Kbuild
   685         examples/rtai/Kbuild
   625         examples/rtai/Makefile
   686         examples/rtai/Makefile
   626         examples/tty/Kbuild
   687         examples/tty/Kbuild
   627         examples/tty/Makefile
   688         examples/tty/Makefile
   628         examples/user/Makefile
   689         examples/user/Makefile
       
   690         examples/xenomai/Makefile
   629         include/Makefile
   691         include/Makefile
   630         lib/Makefile
   692         lib/Makefile
   631         m4/Makefile
   693         m4/Makefile
   632         master/Kbuild
   694         master/Kbuild
   633         master/Makefile
   695         master/Makefile
   636         script/init.d/ethercat
   698         script/init.d/ethercat
   637         script/sysconfig/Makefile
   699         script/sysconfig/Makefile
   638         tool/Makefile
   700         tool/Makefile
   639         tty/Kbuild
   701         tty/Kbuild
   640         tty/Makefile
   702         tty/Makefile
       
   703         rtdm/Makefile
       
   704         rtdm/Kbuild
   641 ])
   705 ])
   642 AC_OUTPUT
   706 AC_OUTPUT
   643 
   707 
   644 #------------------------------------------------------------------------------
   708 #------------------------------------------------------------------------------