configure.ac 3 KB
Newer Older
1
2
3
4
5

dnl 
dnl configure.ac file for package hppDoc 
dnl

florent's avatar
florent committed
6
AC_INIT([hppDoc], [1.1], [hpp@laas.fr])
7
8
9
10
AC_PREREQ(2.59)

AM_INIT_AUTOMAKE
AC_PROG_INSTALL
11
12
13
14
15
16
17
18
19
20
21
PKG_PROG_PKG_CONFIG

AC_SUBST(pkg_list,[])

# --- PKG_CHKADDDPD([VARIABLE], [MODULE]) ----------------------------
#
# do you love consonants?

m4_define([PKG_CHKADDDPD],[
  AC_MSG_CHECKING([for $2])
  pkg_failed=no
22
23
24
  if test "$3" = ""; then pname=$2; else pname=$3; fi
  PKG_CHECK_EXISTS([$pname],
                   [pkgprefix_[]$1=`$PKG_CONFIG --variable=prefix "$pname" 2>/dev/null`],
25
26
	           [pkg_failed=yes])
  if test $pkg_failed = yes; then
27
    AC_SUBST($1[]_DOCDIR,$prefix/share/doc/hppDoc/$2)
28
29
30
    AC_MSG_RESULT([no])
  else
    AC_SUBST($1[]_PREFIX,$pkgprefix_[]$1)
31
32
# once all packages will export their docdir in pkgconfig:
#   AC_SUBST($1[]_DOCDIR,`$PKG_CONFIG --variable=docdir "$2" 2>/dev/null`)
33
    AC_SUBST($1[]_DOCDIR,$$1[]_PREFIX/share/doc/$2)
34
35
36
37
38
39
40
41
42
43
44
45
46
47
    if test -n "$pkg_list"; then pkg_list="$pkg_list, $2"; else pkg_list="$2"; fi
    AC_MSG_RESULT([yes])
  fi[]dnl
])


# --- Look for installed packages ------------------------------------

PKG_CHKADDDPD(KWSPLUS,			kwsPlus)
PKG_CHKADDDPD(HPPMODEL,			hppModel)
PKG_CHKADDDPD(HPPCORE,			hppCore)
PKG_CHKADDDPD(WALKGENJRL,		walkGenJrl)
PKG_CHKADDDPD(HPPCORBASERVER,		hppCorbaServer)
PKG_CHKADDDPD(HPPPYTHON,		hppPython)
48
PKG_CHKADDDPD(HPPWALKFOOTPLANNER,	hppWalkFootPlanner)
49
PKG_CHKADDDPD(HPPWALKPLANNER,		hppWalkPlanner)
50
PKG_CHKADDDPD(HPPHYBRIDROBOT, 		hppHybridRobot)
51
52
53
54
55
56
57
58
59
PKG_CHKADDDPD(HPPHRPPLANNER, 		hppHRPPlanner)
PKG_CHKADDDPD(HPPCMPPLANNER, 		hppCmpPlanner)
PKG_CHKADDDPD(HPPTUTORIALPLANNER, 	hppTutorialPlanner)
PKG_CHKADDDPD(KPPINTERFACE, 		kppInterface)
PKG_CHKADDDPD(KPPINTERFACEWALK, 	kppInterfaceWalk)
PKG_CHKADDDPD(KPPINTERFACEHRP, 		kppInterfaceHRP)
PKG_CHKADDDPD(KPPINTERFACECMP, 		kppInterfaceCmp)
PKG_CHKADDDPD(HPPGIK, 			hppGik)
PKG_CHKADDDPD(HPPLOA, 			hppLoa)
60
PKG_CHKADDDPD(HPPLOAPLANNER,		hppLoaPlanner)
florent's avatar
florent committed
61
PKG_CHKADDDPD(HPPTIMINGPLANNER, 	hppTimingPlanner)
62
63
64
65
66
67
PKG_CHKADDDPD(DYNAMICSJRLJAPAN,		dynamicsJRLJapan)
PKG_CHKADDDPD(ABSTRACTROBOTDYNAMICS, 	abstractRobotDynamics)
PKG_CHKADDDPD(ABSTRACTGIKTASK, 		abstractGikTask)
PKG_CHKADDDPD(KPPINTERFACETUTORIAL, 	kppInterfaceTutorial)
PKG_CHKADDDPD(HPPOPENHRP, 		hppOpenHRP)
PKG_CHKADDDPD(HPPVISUALIZEMOVEPLANNER,	hppVisualizeMovePlanner)
68
PKG_CHKADDDPD(SLAM3DPLANNER,		slam3DPlanner)
69
PKG_CHKADDDPD(HPPDYNAMICOBSTACLE,	hppDynamicObstacle)
70
PKG_CHKADDDPD(WORLDMODELGRID3D,		worldModelGrid3D)
71
PKG_CHKADDDPD(HRP2DYNAMICS,		hrp2Dynamics)
72
73
74
PKG_CHKADDDPD(HPPWALKPLANNERCOMPSPEC,	hppWalkPlannerCompSpec)
PKG_CHKADDDPD(WALKPLANNERORTM,		walkPlannerOrtm)
PKG_CHKADDDPD(WALKPLANNERORTMCLIENT,	walkPlannerOrtmClient)
75

76
77
PKG_CHKADDDPD(WALKGENOM,		walk-genom, walk)

78
# --- generate files -------------------------------------------------
79

80
81
AC_OUTPUT(
	Makefile
florent's avatar
florent committed
82
	hppDoc.pc
83
	doc/Makefile
florent's avatar
florent committed
84
85
86
	doc/html/corba.html
	doc/html/algorithm.html
	doc/html/kppInterface.html
87
	doc/html/roboticComponent.html
florent's avatar
florent committed
88
89
90
91
92
	doc/html/main.html
	doc/html/index.html
	doc/html/tree.html
	doc/html/hppdoc_development.html
	doc/html/hppdoc_howtoinstall.html
93
)