configure.ac 3.77 KB
Newer Older
1
AC_PREREQ(2.57)
yoogx's avatar
yoogx committed
2
AC_INIT(AADLib, 2017.x)
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
AC_CONFIG_SRCDIR(src)
AC_CONFIG_AUX_DIR(support)

##########################################
# Initialization.
##########################################

AC_CANONICAL_SYSTEM
AM_INIT_AUTOMAKE([1.9 tar-pax] foreign)

##########################################
# Check fo various programs.
##########################################

AC_CHECK_PROG(MV, mv, mv)
AC_CHECK_PROG(RM, rm, rm)
AC_CHECK_PROG(CP, cp, cp)

##########################################
yoogx's avatar
yoogx committed
22
# Check for GNU Make & GCC
23 24 25
##########################################

AM_GNU_MAKE
yoogx's avatar
yoogx committed
26
AC_PROG_CC
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70

##########################################
# Check for Ocarina
##########################################

AM_PATH_OCARINA(1.1, ,AC_MSG_ERROR([Ocarina 1.1 or later is not installed on your system]))

##########################################
# Windows requires specific targets
##########################################

case "$host_os" in
  cygwin* | mingw*)
    windows=true
    ;;
  *)
    windows=false
    ;;
esac
AM_CONDITIONAL(WINDOWS, test x$windows = xtrue)

############################################
# Set the value corresponding to cygpath -u
############################################

if test x"$CYGPATH_W" = x"echo"; then
   CYGPATH_U="echo"
else
   CYGPATH_U="cygpath -u"
fi
AC_SUBST(CYGPATH_U)

###############################################################
# Force the installation prefix to be equal to the Ocarina one
###############################################################

prefix='$(OCARINA_PREFIX)'

##########################################
# Output generated files
##########################################

dnl Important! One file per line, nothing before
dnl or after except whitespace! This section
71
dnl may, one day, be edited automatically to remove
72 73 74
dnl some entries.

AC_OUTPUT([
yoogx's avatar
yoogx committed
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
	Makefile
	examples/Makefile
	examples/air/Makefile
	examples/air/hello/Makefile
	examples/air/ping/Makefile
	examples/air/smp01/Makefile
	examples/adiru/Makefile
	examples/ahrs_discovery/Makefile
	examples/aocs/Makefile
	examples/aram/Makefile
	examples/ardupilot/Makefile
	examples/arinc653_annex/Makefile
	examples/arinc653_annex/example_1/Makefile
	examples/arinc653_annex/example_2/Makefile
	examples/asl/Makefile
	examples/behavior_annex/Makefile
	examples/car/Makefile
	examples/crazyflie/Makefile
	examples/data_modeling_annex/Makefile
	examples/fcs/Makefile
	examples/flow_analysis/Makefile
	examples/fms/Makefile
	examples/isr/Makefile
	examples/line_follower/Makefile
	examples/memory/Makefile
100
	examples/minepump/Makefile
101
	examples/minepump_ba/Makefile
yoogx's avatar
yoogx committed
102 103 104 105 106 107 108 109
	examples/mixin/Makefile
	examples/mjpeg/Makefile
	examples/mosart/Makefile
	examples/multicore/Makefile
	examples/paparazzi/Makefile
	examples/pathfinder_system/Makefile
	examples/perseus/Makefile
	examples/producer_consumer/Makefile
110
	examples/producer_consumer_ba/Makefile
yoogx's avatar
yoogx committed
111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137
	examples/radar/Makefile
	examples/rap/Makefile
	examples/rap_code/Makefile
	examples/ravenscar/Makefile
	examples/rma/Makefile
	examples/redundancy/Makefile
	examples/robot/Makefile
	examples/robot_ba/Makefile
	examples/rosace/Makefile
	examples/round_robin/Makefile
	examples/satellite/Makefile
	examples/stm32discovery_ada/Makefile
	examples/time_triggered/Makefile
	examples/units/Makefile
	examples/uxv/Makefile
	examples/uxv/emaxxv2/Makefile
	examples/uxv/minirocket/Makefile
	examples/uxv/quadrirotorv0/Makefile
	examples/uxv/quadrirotorv1/Makefile
	examples/uxv/traxsterv3/Makefile
	examples/voter/Makefile
	examples/pacemaker/Makefile
	examples/doors/Makefile
	src/Makefile
	src/aadl/Makefile
	src/property_set/Makefile
	src/real/Makefile
138 139 140 141 142 143
])

AC_MSG_NOTICE(%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%)
AC_MSG_NOTICE(AADLib configuration is complete!)
AC_MSG_NOTICE(GNU make command name: "$GNU_MAKE")
AC_MSG_NOTICE(%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%)