aclocal.m4 63 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686
  1. # generated automatically by aclocal 1.14.1 -*- Autoconf -*-
  2. # Copyright (C) 1996-2013 Free Software Foundation, Inc.
  3. # This file is free software; the Free Software Foundation
  4. # gives unlimited permission to copy and/or distribute it,
  5. # with or without modifications, as long as this notice is preserved.
  6. # This program is distributed in the hope that it will be useful,
  7. # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  8. # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  9. # PARTICULAR PURPOSE.
  10. m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
  11. m4_ifndef([AC_AUTOCONF_VERSION],
  12. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  13. m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
  14. [m4_warning([this file was generated for autoconf 2.69.
  15. You have another version of autoconf. It may work, but is not guaranteed to.
  16. If you have problems, you may need to regenerate the build system entirely.
  17. To do so, use the procedure documented by the package, typically 'autoreconf'.])])
  18. dnl AM_GCONF_SOURCE_2
  19. dnl Defines GCONF_SCHEMA_CONFIG_SOURCE which is where you should install schemas
  20. dnl (i.e. pass to gconftool-2
  21. dnl Defines GCONF_SCHEMA_FILE_DIR which is a filesystem directory where
  22. dnl you should install foo.schemas files
  23. dnl
  24. AC_DEFUN([AM_GCONF_SOURCE_2],
  25. [
  26. if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then
  27. GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  28. else
  29. GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE
  30. fi
  31. AC_ARG_WITH([gconf-source],
  32. AC_HELP_STRING([--with-gconf-source=sourceaddress],
  33. [Config database for installing schema files.]),
  34. [GCONF_SCHEMA_CONFIG_SOURCE="$withval"],)
  35. AC_SUBST(GCONF_SCHEMA_CONFIG_SOURCE)
  36. AC_MSG_RESULT([Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation])
  37. if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then
  38. GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas'
  39. fi
  40. AC_ARG_WITH([gconf-schema-file-dir],
  41. AC_HELP_STRING([--with-gconf-schema-file-dir=dir],
  42. [Directory for installing schema files.]),
  43. [GCONF_SCHEMA_FILE_DIR="$withval"],)
  44. AC_SUBST(GCONF_SCHEMA_FILE_DIR)
  45. AC_MSG_RESULT([Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files])
  46. AC_ARG_ENABLE(schemas-install,
  47. AC_HELP_STRING([--disable-schemas-install],
  48. [Disable the schemas installation]),
  49. [case ${enableval} in
  50. yes|no) ;;
  51. *) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-install]) ;;
  52. esac])
  53. AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL], [test "$enable_schemas_install" != no])
  54. ])
  55. dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
  56. # serial 42 IT_PROG_INTLTOOL
  57. AC_DEFUN([IT_PROG_INTLTOOL], [
  58. AC_PREREQ([2.50])dnl
  59. AC_REQUIRE([AM_NLS])dnl
  60. case "$am__api_version" in
  61. 1.[01234])
  62. AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
  63. ;;
  64. *)
  65. ;;
  66. esac
  67. INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
  68. INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
  69. INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
  70. if test -n "$1"; then
  71. AC_MSG_CHECKING([for intltool >= $1])
  72. AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
  73. test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
  74. AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.])
  75. fi
  76. AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
  77. AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
  78. AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
  79. if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
  80. AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
  81. fi
  82. if test -z "$AM_DEFAULT_VERBOSITY"; then
  83. AM_DEFAULT_VERBOSITY=1
  84. fi
  85. AC_SUBST([AM_DEFAULT_VERBOSITY])
  86. INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
  87. INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
  88. INTLTOOL__v_MERGE_0='@echo " ITMRG " [$]@;'
  89. AC_SUBST(INTLTOOL_V_MERGE)
  90. AC_SUBST(INTLTOOL__v_MERGE_)
  91. AC_SUBST(INTLTOOL__v_MERGE_0)
  92. INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
  93. intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
  94. intltool__v_merge_options_0='-q'
  95. AC_SUBST(INTLTOOL_V_MERGE_OPTIONS)
  96. AC_SUBST(intltool__v_merge_options_)
  97. AC_SUBST(intltool__v_merge_options_0)
  98. INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
  99. INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
  100. INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
  101. INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
  102. INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< [$]@'
  103. INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
  104. INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
  105. INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
  106. INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
  107. INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
  108. INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
  109. if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
  110. INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< [$]@'
  111. else
  112. INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.[$][$]RANDOM && mkdir [$][$]_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u [$][$]_it_tmp_dir $< [$]@ && rmdir [$][$]_it_tmp_dir'
  113. fi
  114. INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
  115. INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
  116. INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
  117. INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
  118. INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
  119. INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
  120. INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
  121. _IT_SUBST(INTLTOOL_DESKTOP_RULE)
  122. _IT_SUBST(INTLTOOL_DIRECTORY_RULE)
  123. _IT_SUBST(INTLTOOL_KEYS_RULE)
  124. _IT_SUBST(INTLTOOL_PROP_RULE)
  125. _IT_SUBST(INTLTOOL_OAF_RULE)
  126. _IT_SUBST(INTLTOOL_PONG_RULE)
  127. _IT_SUBST(INTLTOOL_SERVER_RULE)
  128. _IT_SUBST(INTLTOOL_SHEET_RULE)
  129. _IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
  130. _IT_SUBST(INTLTOOL_UI_RULE)
  131. _IT_SUBST(INTLTOOL_XAM_RULE)
  132. _IT_SUBST(INTLTOOL_KBD_RULE)
  133. _IT_SUBST(INTLTOOL_XML_RULE)
  134. _IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
  135. _IT_SUBST(INTLTOOL_CAVES_RULE)
  136. _IT_SUBST(INTLTOOL_SCHEMAS_RULE)
  137. _IT_SUBST(INTLTOOL_THEME_RULE)
  138. _IT_SUBST(INTLTOOL_SERVICE_RULE)
  139. _IT_SUBST(INTLTOOL_POLICY_RULE)
  140. # Check the gettext tools to make sure they are GNU
  141. AC_PATH_PROG(XGETTEXT, xgettext)
  142. AC_PATH_PROG(MSGMERGE, msgmerge)
  143. AC_PATH_PROG(MSGFMT, msgfmt)
  144. AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
  145. if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
  146. AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
  147. fi
  148. xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
  149. mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
  150. mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
  151. if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
  152. AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
  153. fi
  154. AC_PATH_PROG(INTLTOOL_PERL, perl)
  155. if test -z "$INTLTOOL_PERL"; then
  156. AC_MSG_ERROR([perl not found])
  157. fi
  158. AC_MSG_CHECKING([for perl >= 5.8.1])
  159. $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
  160. if test $? -ne 0; then
  161. AC_MSG_ERROR([perl 5.8.1 is required for intltool])
  162. else
  163. IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
  164. AC_MSG_RESULT([$IT_PERL_VERSION])
  165. fi
  166. if test "x$2" != "xno-xml"; then
  167. AC_MSG_CHECKING([for XML::Parser])
  168. if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
  169. AC_MSG_RESULT([ok])
  170. else
  171. AC_MSG_ERROR([XML::Parser perl module is required for intltool])
  172. fi
  173. fi
  174. # Substitute ALL_LINGUAS so we can use it in po/Makefile
  175. AC_SUBST(ALL_LINGUAS)
  176. # Set DATADIRNAME correctly if it is not set yet
  177. # (copied from glib-gettext.m4)
  178. if test -z "$DATADIRNAME"; then
  179. AC_LINK_IFELSE(
  180. [AC_LANG_PROGRAM([[]],
  181. [[extern int _nl_msg_cat_cntr;
  182. return _nl_msg_cat_cntr]])],
  183. [DATADIRNAME=share],
  184. [case $host in
  185. *-*-solaris*)
  186. dnl On Solaris, if bind_textdomain_codeset is in libc,
  187. dnl GNU format message catalog is always supported,
  188. dnl since both are added to the libc all together.
  189. dnl Hence, we'd like to go with DATADIRNAME=share
  190. dnl in this case.
  191. AC_CHECK_FUNC(bind_textdomain_codeset,
  192. [DATADIRNAME=share], [DATADIRNAME=lib])
  193. ;;
  194. *)
  195. [DATADIRNAME=lib]
  196. ;;
  197. esac])
  198. fi
  199. AC_SUBST(DATADIRNAME)
  200. IT_PO_SUBDIR([po])
  201. ])
  202. # IT_PO_SUBDIR(DIRNAME)
  203. # ---------------------
  204. # All po subdirs have to be declared with this macro; the subdir "po" is
  205. # declared by IT_PROG_INTLTOOL.
  206. #
  207. AC_DEFUN([IT_PO_SUBDIR],
  208. [AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
  209. dnl
  210. dnl The following CONFIG_COMMANDS should be executed at the very end
  211. dnl of config.status.
  212. AC_CONFIG_COMMANDS_PRE([
  213. AC_CONFIG_COMMANDS([$1/stamp-it], [
  214. if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
  215. AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
  216. fi
  217. rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
  218. >"$1/stamp-it.tmp"
  219. [sed '/^#/d
  220. s/^[[].*] *//
  221. /^[ ]*$/d
  222. '"s|^| $ac_top_srcdir/|" \
  223. "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
  224. ]
  225. [sed '/^POTFILES =/,/[^\\]$/ {
  226. /^POTFILES =/!d
  227. r $1/POTFILES
  228. }
  229. ' "$1/Makefile.in" >"$1/Makefile"]
  230. rm -f "$1/Makefile.tmp"
  231. mv "$1/stamp-it.tmp" "$1/stamp-it"
  232. ])
  233. ])dnl
  234. ])
  235. # _IT_SUBST(VARIABLE)
  236. # -------------------
  237. # Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
  238. #
  239. AC_DEFUN([_IT_SUBST],
  240. [
  241. AC_SUBST([$1])
  242. m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
  243. ]
  244. )
  245. # deprecated macros
  246. AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
  247. # A hint is needed for aclocal from Automake <= 1.9.4:
  248. # AC_DEFUN([AC_PROG_INTLTOOL], ...)
  249. # nls.m4 serial 5 (gettext-0.18)
  250. dnl Copyright (C) 1995-2003, 2005-2006, 2008-2014 Free Software Foundation,
  251. dnl Inc.
  252. dnl This file is free software; the Free Software Foundation
  253. dnl gives unlimited permission to copy and/or distribute it,
  254. dnl with or without modifications, as long as this notice is preserved.
  255. dnl
  256. dnl This file can can be used in projects which are not available under
  257. dnl the GNU General Public License or the GNU Library General Public
  258. dnl License but which still want to provide support for the GNU gettext
  259. dnl functionality.
  260. dnl Please note that the actual code of the GNU gettext library is covered
  261. dnl by the GNU Library General Public License, and the rest of the GNU
  262. dnl gettext package package is covered by the GNU General Public License.
  263. dnl They are *not* in the public domain.
  264. dnl Authors:
  265. dnl Ulrich Drepper <[email protected]>, 1995-2000.
  266. dnl Bruno Haible <[email protected]>, 2000-2003.
  267. AC_PREREQ([2.50])
  268. AC_DEFUN([AM_NLS],
  269. [
  270. AC_MSG_CHECKING([whether NLS is requested])
  271. dnl Default is enabled NLS
  272. AC_ARG_ENABLE([nls],
  273. [ --disable-nls do not use Native Language Support],
  274. USE_NLS=$enableval, USE_NLS=yes)
  275. AC_MSG_RESULT([$USE_NLS])
  276. AC_SUBST([USE_NLS])
  277. ])
  278. # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
  279. # serial 1 (pkg-config-0.24)
  280. #
  281. # Copyright © 2004 Scott James Remnant <[email protected]>.
  282. #
  283. # This program is free software; you can redistribute it and/or modify
  284. # it under the terms of the GNU General Public License as published by
  285. # the Free Software Foundation; either version 2 of the License, or
  286. # (at your option) any later version.
  287. #
  288. # This program is distributed in the hope that it will be useful, but
  289. # WITHOUT ANY WARRANTY; without even the implied warranty of
  290. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  291. # General Public License for more details.
  292. #
  293. # You should have received a copy of the GNU General Public License
  294. # along with this program; if not, write to the Free Software
  295. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  296. #
  297. # As a special exception to the GNU General Public License, if you
  298. # distribute this file as part of a program that contains a
  299. # configuration script generated by Autoconf, you may include it under
  300. # the same distribution terms that you use for the rest of that program.
  301. # PKG_PROG_PKG_CONFIG([MIN-VERSION])
  302. # ----------------------------------
  303. AC_DEFUN([PKG_PROG_PKG_CONFIG],
  304. [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
  305. m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
  306. m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
  307. AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
  308. AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
  309. AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
  310. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  311. AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
  312. fi
  313. if test -n "$PKG_CONFIG"; then
  314. _pkg_min_version=m4_default([$1], [0.9.0])
  315. AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
  316. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  317. AC_MSG_RESULT([yes])
  318. else
  319. AC_MSG_RESULT([no])
  320. PKG_CONFIG=""
  321. fi
  322. fi[]dnl
  323. ])# PKG_PROG_PKG_CONFIG
  324. # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
  325. #
  326. # Check to see whether a particular set of modules exists. Similar
  327. # to PKG_CHECK_MODULES(), but does not set variables or print errors.
  328. #
  329. # Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
  330. # only at the first occurence in configure.ac, so if the first place
  331. # it's called might be skipped (such as if it is within an "if", you
  332. # have to call PKG_CHECK_EXISTS manually
  333. # --------------------------------------------------------------
  334. AC_DEFUN([PKG_CHECK_EXISTS],
  335. [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
  336. if test -n "$PKG_CONFIG" && \
  337. AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
  338. m4_default([$2], [:])
  339. m4_ifvaln([$3], [else
  340. $3])dnl
  341. fi])
  342. # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
  343. # ---------------------------------------------
  344. m4_define([_PKG_CONFIG],
  345. [if test -n "$$1"; then
  346. pkg_cv_[]$1="$$1"
  347. elif test -n "$PKG_CONFIG"; then
  348. PKG_CHECK_EXISTS([$3],
  349. [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
  350. test "x$?" != "x0" && pkg_failed=yes ],
  351. [pkg_failed=yes])
  352. else
  353. pkg_failed=untried
  354. fi[]dnl
  355. ])# _PKG_CONFIG
  356. # _PKG_SHORT_ERRORS_SUPPORTED
  357. # -----------------------------
  358. AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
  359. [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
  360. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  361. _pkg_short_errors_supported=yes
  362. else
  363. _pkg_short_errors_supported=no
  364. fi[]dnl
  365. ])# _PKG_SHORT_ERRORS_SUPPORTED
  366. # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
  367. # [ACTION-IF-NOT-FOUND])
  368. #
  369. #
  370. # Note that if there is a possibility the first call to
  371. # PKG_CHECK_MODULES might not happen, you should be sure to include an
  372. # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
  373. #
  374. #
  375. # --------------------------------------------------------------
  376. AC_DEFUN([PKG_CHECK_MODULES],
  377. [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
  378. AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
  379. AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
  380. pkg_failed=no
  381. AC_MSG_CHECKING([for $1])
  382. _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
  383. _PKG_CONFIG([$1][_LIBS], [libs], [$2])
  384. m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
  385. and $1[]_LIBS to avoid the need to call pkg-config.
  386. See the pkg-config man page for more details.])
  387. if test $pkg_failed = yes; then
  388. AC_MSG_RESULT([no])
  389. _PKG_SHORT_ERRORS_SUPPORTED
  390. if test $_pkg_short_errors_supported = yes; then
  391. $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
  392. else
  393. $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
  394. fi
  395. # Put the nasty error message in config.log where it belongs
  396. echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
  397. m4_default([$4], [AC_MSG_ERROR(
  398. [Package requirements ($2) were not met:
  399. $$1_PKG_ERRORS
  400. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  401. installed software in a non-standard prefix.
  402. _PKG_TEXT])[]dnl
  403. ])
  404. elif test $pkg_failed = untried; then
  405. AC_MSG_RESULT([no])
  406. m4_default([$4], [AC_MSG_FAILURE(
  407. [The pkg-config script could not be found or is too old. Make sure it
  408. is in your PATH or set the PKG_CONFIG environment variable to the full
  409. path to pkg-config.
  410. _PKG_TEXT
  411. To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
  412. ])
  413. else
  414. $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
  415. $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
  416. AC_MSG_RESULT([yes])
  417. $3
  418. fi[]dnl
  419. ])# PKG_CHECK_MODULES
  420. # PKG_INSTALLDIR(DIRECTORY)
  421. # -------------------------
  422. # Substitutes the variable pkgconfigdir as the location where a module
  423. # should install pkg-config .pc files. By default the directory is
  424. # $libdir/pkgconfig, but the default can be changed by passing
  425. # DIRECTORY. The user can override through the --with-pkgconfigdir
  426. # parameter.
  427. AC_DEFUN([PKG_INSTALLDIR],
  428. [m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
  429. m4_pushdef([pkg_description],
  430. [pkg-config installation directory @<:@]pkg_default[@:>@])
  431. AC_ARG_WITH([pkgconfigdir],
  432. [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
  433. [with_pkgconfigdir=]pkg_default)
  434. AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
  435. m4_popdef([pkg_default])
  436. m4_popdef([pkg_description])
  437. ]) dnl PKG_INSTALLDIR
  438. # PKG_NOARCH_INSTALLDIR(DIRECTORY)
  439. # -------------------------
  440. # Substitutes the variable noarch_pkgconfigdir as the location where a
  441. # module should install arch-independent pkg-config .pc files. By
  442. # default the directory is $datadir/pkgconfig, but the default can be
  443. # changed by passing DIRECTORY. The user can override through the
  444. # --with-noarch-pkgconfigdir parameter.
  445. AC_DEFUN([PKG_NOARCH_INSTALLDIR],
  446. [m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
  447. m4_pushdef([pkg_description],
  448. [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
  449. AC_ARG_WITH([noarch-pkgconfigdir],
  450. [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
  451. [with_noarch_pkgconfigdir=]pkg_default)
  452. AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
  453. m4_popdef([pkg_default])
  454. m4_popdef([pkg_description])
  455. ]) dnl PKG_NOARCH_INSTALLDIR
  456. # PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
  457. # [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
  458. # -------------------------------------------
  459. # Retrieves the value of the pkg-config variable for the given module.
  460. AC_DEFUN([PKG_CHECK_VAR],
  461. [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
  462. AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
  463. _PKG_CONFIG([$1], [variable="][$3]["], [$2])
  464. AS_VAR_COPY([$1], [pkg_cv_][$1])
  465. AS_VAR_IF([$1], [""], [$5], [$4])dnl
  466. ])# PKG_CHECK_VAR
  467. # Copyright (C) 2002-2013 Free Software Foundation, Inc.
  468. #
  469. # This file is free software; the Free Software Foundation
  470. # gives unlimited permission to copy and/or distribute it,
  471. # with or without modifications, as long as this notice is preserved.
  472. # AM_AUTOMAKE_VERSION(VERSION)
  473. # ----------------------------
  474. # Automake X.Y traces this macro to ensure aclocal.m4 has been
  475. # generated from the m4 files accompanying Automake X.Y.
  476. # (This private macro should not be called outside this file.)
  477. AC_DEFUN([AM_AUTOMAKE_VERSION],
  478. [am__api_version='1.14'
  479. dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  480. dnl require some minimum version. Point them to the right macro.
  481. m4_if([$1], [1.14.1], [],
  482. [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  483. ])
  484. # _AM_AUTOCONF_VERSION(VERSION)
  485. # -----------------------------
  486. # aclocal traces this macro to find the Autoconf version.
  487. # This is a private macro too. Using m4_define simplifies
  488. # the logic in aclocal, which can simply ignore this definition.
  489. m4_define([_AM_AUTOCONF_VERSION], [])
  490. # AM_SET_CURRENT_AUTOMAKE_VERSION
  491. # -------------------------------
  492. # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  493. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  494. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  495. [AM_AUTOMAKE_VERSION([1.14.1])dnl
  496. m4_ifndef([AC_AUTOCONF_VERSION],
  497. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  498. _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  499. # AM_AUX_DIR_EXPAND -*- Autoconf -*-
  500. # Copyright (C) 2001-2013 Free Software Foundation, Inc.
  501. #
  502. # This file is free software; the Free Software Foundation
  503. # gives unlimited permission to copy and/or distribute it,
  504. # with or without modifications, as long as this notice is preserved.
  505. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
  506. # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
  507. # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
  508. #
  509. # Of course, Automake must honor this variable whenever it calls a
  510. # tool from the auxiliary directory. The problem is that $srcdir (and
  511. # therefore $ac_aux_dir as well) can be either absolute or relative,
  512. # depending on how configure is run. This is pretty annoying, since
  513. # it makes $ac_aux_dir quite unusable in subdirectories: in the top
  514. # source directory, any form will work fine, but in subdirectories a
  515. # relative path needs to be adjusted first.
  516. #
  517. # $ac_aux_dir/missing
  518. # fails when called from a subdirectory if $ac_aux_dir is relative
  519. # $top_srcdir/$ac_aux_dir/missing
  520. # fails if $ac_aux_dir is absolute,
  521. # fails when called from a subdirectory in a VPATH build with
  522. # a relative $ac_aux_dir
  523. #
  524. # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
  525. # are both prefixed by $srcdir. In an in-source build this is usually
  526. # harmless because $srcdir is '.', but things will broke when you
  527. # start a VPATH build or use an absolute $srcdir.
  528. #
  529. # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
  530. # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
  531. # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
  532. # and then we would define $MISSING as
  533. # MISSING="\${SHELL} $am_aux_dir/missing"
  534. # This will work as long as MISSING is not called from configure, because
  535. # unfortunately $(top_srcdir) has no meaning in configure.
  536. # However there are other variables, like CC, which are often used in
  537. # configure, and could therefore not use this "fixed" $ac_aux_dir.
  538. #
  539. # Another solution, used here, is to always expand $ac_aux_dir to an
  540. # absolute PATH. The drawback is that using absolute paths prevent a
  541. # configured tree to be moved without reconfiguration.
  542. AC_DEFUN([AM_AUX_DIR_EXPAND],
  543. [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
  544. # Expand $ac_aux_dir to an absolute path.
  545. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  546. ])
  547. # AM_CONDITIONAL -*- Autoconf -*-
  548. # Copyright (C) 1997-2013 Free Software Foundation, Inc.
  549. #
  550. # This file is free software; the Free Software Foundation
  551. # gives unlimited permission to copy and/or distribute it,
  552. # with or without modifications, as long as this notice is preserved.
  553. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  554. # -------------------------------------
  555. # Define a conditional.
  556. AC_DEFUN([AM_CONDITIONAL],
  557. [AC_PREREQ([2.52])dnl
  558. m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  559. [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  560. AC_SUBST([$1_TRUE])dnl
  561. AC_SUBST([$1_FALSE])dnl
  562. _AM_SUBST_NOTMAKE([$1_TRUE])dnl
  563. _AM_SUBST_NOTMAKE([$1_FALSE])dnl
  564. m4_define([_AM_COND_VALUE_$1], [$2])dnl
  565. if $2; then
  566. $1_TRUE=
  567. $1_FALSE='#'
  568. else
  569. $1_TRUE='#'
  570. $1_FALSE=
  571. fi
  572. AC_CONFIG_COMMANDS_PRE(
  573. [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  574. AC_MSG_ERROR([[conditional "$1" was never defined.
  575. Usually this means the macro was only invoked conditionally.]])
  576. fi])])
  577. # Copyright (C) 1999-2013 Free Software Foundation, Inc.
  578. #
  579. # This file is free software; the Free Software Foundation
  580. # gives unlimited permission to copy and/or distribute it,
  581. # with or without modifications, as long as this notice is preserved.
  582. # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
  583. # written in clear, in which case automake, when reading aclocal.m4,
  584. # will think it sees a *use*, and therefore will trigger all it's
  585. # C support machinery. Also note that it means that autoscan, seeing
  586. # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  587. # _AM_DEPENDENCIES(NAME)
  588. # ----------------------
  589. # See how the compiler implements dependency checking.
  590. # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
  591. # We try a few techniques and use that to set a single cache variable.
  592. #
  593. # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
  594. # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
  595. # dependency, and given that the user is not expected to run this macro,
  596. # just rely on AC_PROG_CC.
  597. AC_DEFUN([_AM_DEPENDENCIES],
  598. [AC_REQUIRE([AM_SET_DEPDIR])dnl
  599. AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
  600. AC_REQUIRE([AM_MAKE_INCLUDE])dnl
  601. AC_REQUIRE([AM_DEP_TRACK])dnl
  602. m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
  603. [$1], [CXX], [depcc="$CXX" am_compiler_list=],
  604. [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  605. [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
  606. [$1], [UPC], [depcc="$UPC" am_compiler_list=],
  607. [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  608. [depcc="$$1" am_compiler_list=])
  609. AC_CACHE_CHECK([dependency style of $depcc],
  610. [am_cv_$1_dependencies_compiler_type],
  611. [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  612. # We make a subdir and do the tests there. Otherwise we can end up
  613. # making bogus files that we don't know about and never remove. For
  614. # instance it was reported that on HP-UX the gcc test will end up
  615. # making a dummy file named 'D' -- because '-MD' means "put the output
  616. # in D".
  617. rm -rf conftest.dir
  618. mkdir conftest.dir
  619. # Copy depcomp to subdir because otherwise we won't find it if we're
  620. # using a relative directory.
  621. cp "$am_depcomp" conftest.dir
  622. cd conftest.dir
  623. # We will build objects and dependencies in a subdirectory because
  624. # it helps to detect inapplicable dependency modes. For instance
  625. # both Tru64's cc and ICC support -MD to output dependencies as a
  626. # side effect of compilation, but ICC will put the dependencies in
  627. # the current directory while Tru64 will put them in the object
  628. # directory.
  629. mkdir sub
  630. am_cv_$1_dependencies_compiler_type=none
  631. if test "$am_compiler_list" = ""; then
  632. am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  633. fi
  634. am__universal=false
  635. m4_case([$1], [CC],
  636. [case " $depcc " in #(
  637. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  638. esac],
  639. [CXX],
  640. [case " $depcc " in #(
  641. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  642. esac])
  643. for depmode in $am_compiler_list; do
  644. # Setup a source with many dependencies, because some compilers
  645. # like to wrap large dependency lists on column 80 (with \), and
  646. # we should not choose a depcomp mode which is confused by this.
  647. #
  648. # We need to recreate these files for each test, as the compiler may
  649. # overwrite some of them when testing with obscure command lines.
  650. # This happens at least with the AIX C compiler.
  651. : > sub/conftest.c
  652. for i in 1 2 3 4 5 6; do
  653. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  654. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  655. # Solaris 10 /bin/sh.
  656. echo '/* dummy */' > sub/conftst$i.h
  657. done
  658. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  659. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  660. # mode. It turns out that the SunPro C++ compiler does not properly
  661. # handle '-M -o', and we need to detect this. Also, some Intel
  662. # versions had trouble with output in subdirs.
  663. am__obj=sub/conftest.${OBJEXT-o}
  664. am__minus_obj="-o $am__obj"
  665. case $depmode in
  666. gcc)
  667. # This depmode causes a compiler race in universal mode.
  668. test "$am__universal" = false || continue
  669. ;;
  670. nosideeffect)
  671. # After this tag, mechanisms are not by side-effect, so they'll
  672. # only be used when explicitly requested.
  673. if test "x$enable_dependency_tracking" = xyes; then
  674. continue
  675. else
  676. break
  677. fi
  678. ;;
  679. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  680. # This compiler won't grok '-c -o', but also, the minuso test has
  681. # not run yet. These depmodes are late enough in the game, and
  682. # so weak that their functioning should not be impacted.
  683. am__obj=conftest.${OBJEXT-o}
  684. am__minus_obj=
  685. ;;
  686. none) break ;;
  687. esac
  688. if depmode=$depmode \
  689. source=sub/conftest.c object=$am__obj \
  690. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  691. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  692. >/dev/null 2>conftest.err &&
  693. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  694. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  695. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  696. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  697. # icc doesn't choke on unknown options, it will just issue warnings
  698. # or remarks (even with -Werror). So we grep stderr for any message
  699. # that says an option was ignored or not supported.
  700. # When given -MP, icc 7.0 and 7.1 complain thusly:
  701. # icc: Command line warning: ignoring option '-M'; no argument required
  702. # The diagnosis changed in icc 8.0:
  703. # icc: Command line remark: option '-MP' not supported
  704. if (grep 'ignoring option' conftest.err ||
  705. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  706. am_cv_$1_dependencies_compiler_type=$depmode
  707. break
  708. fi
  709. fi
  710. done
  711. cd ..
  712. rm -rf conftest.dir
  713. else
  714. am_cv_$1_dependencies_compiler_type=none
  715. fi
  716. ])
  717. AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
  718. AM_CONDITIONAL([am__fastdep$1], [
  719. test "x$enable_dependency_tracking" != xno \
  720. && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
  721. ])
  722. # AM_SET_DEPDIR
  723. # -------------
  724. # Choose a directory name for dependency files.
  725. # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
  726. AC_DEFUN([AM_SET_DEPDIR],
  727. [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  728. AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
  729. ])
  730. # AM_DEP_TRACK
  731. # ------------
  732. AC_DEFUN([AM_DEP_TRACK],
  733. [AC_ARG_ENABLE([dependency-tracking], [dnl
  734. AS_HELP_STRING(
  735. [--enable-dependency-tracking],
  736. [do not reject slow dependency extractors])
  737. AS_HELP_STRING(
  738. [--disable-dependency-tracking],
  739. [speeds up one-time build])])
  740. if test "x$enable_dependency_tracking" != xno; then
  741. am_depcomp="$ac_aux_dir/depcomp"
  742. AMDEPBACKSLASH='\'
  743. am__nodep='_no'
  744. fi
  745. AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  746. AC_SUBST([AMDEPBACKSLASH])dnl
  747. _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
  748. AC_SUBST([am__nodep])dnl
  749. _AM_SUBST_NOTMAKE([am__nodep])dnl
  750. ])
  751. # Generate code to set up dependency tracking. -*- Autoconf -*-
  752. # Copyright (C) 1999-2013 Free Software Foundation, Inc.
  753. #
  754. # This file is free software; the Free Software Foundation
  755. # gives unlimited permission to copy and/or distribute it,
  756. # with or without modifications, as long as this notice is preserved.
  757. # _AM_OUTPUT_DEPENDENCY_COMMANDS
  758. # ------------------------------
  759. AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  760. [{
  761. # Older Autoconf quotes --file arguments for eval, but not when files
  762. # are listed without --file. Let's play safe and only enable the eval
  763. # if we detect the quoting.
  764. case $CONFIG_FILES in
  765. *\'*) eval set x "$CONFIG_FILES" ;;
  766. *) set x $CONFIG_FILES ;;
  767. esac
  768. shift
  769. for mf
  770. do
  771. # Strip MF so we end up with the name of the file.
  772. mf=`echo "$mf" | sed -e 's/:.*$//'`
  773. # Check whether this is an Automake generated Makefile or not.
  774. # We used to match only the files named 'Makefile.in', but
  775. # some people rename them; so instead we look at the file content.
  776. # Grep'ing the first line is not enough: some people post-process
  777. # each Makefile.in and add a new line on top of each file to say so.
  778. # Grep'ing the whole file is not good either: AIX grep has a line
  779. # limit of 2048, but all sed's we know have understand at least 4000.
  780. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  781. dirpart=`AS_DIRNAME("$mf")`
  782. else
  783. continue
  784. fi
  785. # Extract the definition of DEPDIR, am__include, and am__quote
  786. # from the Makefile without running 'make'.
  787. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  788. test -z "$DEPDIR" && continue
  789. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  790. test -z "$am__include" && continue
  791. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  792. # Find all dependency output files, they are included files with
  793. # $(DEPDIR) in their names. We invoke sed twice because it is the
  794. # simplest approach to changing $(DEPDIR) to its actual value in the
  795. # expansion.
  796. for file in `sed -n "
  797. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  798. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  799. # Make sure the directory exists.
  800. test -f "$dirpart/$file" && continue
  801. fdir=`AS_DIRNAME(["$file"])`
  802. AS_MKDIR_P([$dirpart/$fdir])
  803. # echo "creating $dirpart/$file"
  804. echo '# dummy' > "$dirpart/$file"
  805. done
  806. done
  807. }
  808. ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  809. # AM_OUTPUT_DEPENDENCY_COMMANDS
  810. # -----------------------------
  811. # This macro should only be invoked once -- use via AC_REQUIRE.
  812. #
  813. # This code is only required when automatic dependency tracking
  814. # is enabled. FIXME. This creates each '.P' file that we will
  815. # need in order to bootstrap the dependency handling code.
  816. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
  817. [AC_CONFIG_COMMANDS([depfiles],
  818. [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
  819. [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
  820. ])
  821. # Do all the work for Automake. -*- Autoconf -*-
  822. # Copyright (C) 1996-2013 Free Software Foundation, Inc.
  823. #
  824. # This file is free software; the Free Software Foundation
  825. # gives unlimited permission to copy and/or distribute it,
  826. # with or without modifications, as long as this notice is preserved.
  827. # This macro actually does too much. Some checks are only needed if
  828. # your package does certain things. But this isn't really a big deal.
  829. dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
  830. m4_define([AC_PROG_CC],
  831. m4_defn([AC_PROG_CC])
  832. [_AM_PROG_CC_C_O
  833. ])
  834. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  835. # AM_INIT_AUTOMAKE([OPTIONS])
  836. # -----------------------------------------------
  837. # The call with PACKAGE and VERSION arguments is the old style
  838. # call (pre autoconf-2.50), which is being phased out. PACKAGE
  839. # and VERSION should now be passed to AC_INIT and removed from
  840. # the call to AM_INIT_AUTOMAKE.
  841. # We support both call styles for the transition. After
  842. # the next Automake release, Autoconf can make the AC_INIT
  843. # arguments mandatory, and then we can depend on a new Autoconf
  844. # release and drop the old call support.
  845. AC_DEFUN([AM_INIT_AUTOMAKE],
  846. [AC_PREREQ([2.65])dnl
  847. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  848. dnl the ones we care about.
  849. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  850. AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  851. AC_REQUIRE([AC_PROG_INSTALL])dnl
  852. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  853. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  854. # is not polluted with repeated "-I."
  855. AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  856. # test to see if srcdir already configured
  857. if test -f $srcdir/config.status; then
  858. AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  859. fi
  860. fi
  861. # test whether we have cygpath
  862. if test -z "$CYGPATH_W"; then
  863. if (cygpath --version) >/dev/null 2>/dev/null; then
  864. CYGPATH_W='cygpath -w'
  865. else
  866. CYGPATH_W=echo
  867. fi
  868. fi
  869. AC_SUBST([CYGPATH_W])
  870. # Define the identity of the package.
  871. dnl Distinguish between old-style and new-style calls.
  872. m4_ifval([$2],
  873. [AC_DIAGNOSE([obsolete],
  874. [$0: two- and three-arguments forms are deprecated.])
  875. m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  876. AC_SUBST([PACKAGE], [$1])dnl
  877. AC_SUBST([VERSION], [$2])],
  878. [_AM_SET_OPTIONS([$1])dnl
  879. dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  880. m4_if(
  881. m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
  882. [ok:ok],,
  883. [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  884. AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  885. AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  886. _AM_IF_OPTION([no-define],,
  887. [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
  888. AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
  889. # Some tools Automake needs.
  890. AC_REQUIRE([AM_SANITY_CHECK])dnl
  891. AC_REQUIRE([AC_ARG_PROGRAM])dnl
  892. AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
  893. AM_MISSING_PROG([AUTOCONF], [autoconf])
  894. AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
  895. AM_MISSING_PROG([AUTOHEADER], [autoheader])
  896. AM_MISSING_PROG([MAKEINFO], [makeinfo])
  897. AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  898. AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  899. AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  900. # For better backward compatibility. To be removed once Automake 1.9.x
  901. # dies out for good. For more background, see:
  902. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  903. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  904. AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
  905. # We need awk for the "check" target. The system "awk" is bad on
  906. # some platforms.
  907. AC_REQUIRE([AC_PROG_AWK])dnl
  908. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  909. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  910. _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  911. [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  912. [_AM_PROG_TAR([v7])])])
  913. _AM_IF_OPTION([no-dependencies],,
  914. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  915. [_AM_DEPENDENCIES([CC])],
  916. [m4_define([AC_PROG_CC],
  917. m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
  918. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  919. [_AM_DEPENDENCIES([CXX])],
  920. [m4_define([AC_PROG_CXX],
  921. m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
  922. AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  923. [_AM_DEPENDENCIES([OBJC])],
  924. [m4_define([AC_PROG_OBJC],
  925. m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
  926. AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
  927. [_AM_DEPENDENCIES([OBJCXX])],
  928. [m4_define([AC_PROG_OBJCXX],
  929. m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
  930. ])
  931. AC_REQUIRE([AM_SILENT_RULES])dnl
  932. dnl The testsuite driver may need to know about EXEEXT, so add the
  933. dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
  934. dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
  935. AC_CONFIG_COMMANDS_PRE(dnl
  936. [m4_provide_if([_AM_COMPILER_EXEEXT],
  937. [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  938. # POSIX will say in a future version that running "rm -f" with no argument
  939. # is OK; and we want to be able to make that assumption in our Makefile
  940. # recipes. So use an aggressive probe to check that the usage we want is
  941. # actually supported "in the wild" to an acceptable degree.
  942. # See automake bug#10828.
  943. # To make any issue more visible, cause the running configure to be aborted
  944. # by default if the 'rm' program in use doesn't match our expectations; the
  945. # user can still override this though.
  946. if rm -f && rm -fr && rm -rf; then : OK; else
  947. cat >&2 <<'END'
  948. Oops!
  949. Your 'rm' program seems unable to run without file operands specified
  950. on the command line, even when the '-f' option is present. This is contrary
  951. to the behaviour of most rm programs out there, and not conforming with
  952. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  953. Please tell [email protected] about your system, including the value
  954. of your $PATH and any error possibly output before this message. This
  955. can help us improve future automake versions.
  956. END
  957. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  958. echo 'Configuration will proceed anyway, since you have set the' >&2
  959. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  960. echo >&2
  961. else
  962. cat >&2 <<'END'
  963. Aborting the configuration process, to ensure you take notice of the issue.
  964. You can download and install GNU coreutils to get an 'rm' implementation
  965. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  966. If you want to complete the configuration process using your problematic
  967. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  968. to "yes", and re-run configure.
  969. END
  970. AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
  971. fi
  972. fi
  973. ])
  974. dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  975. dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  976. dnl mangled by Autoconf and run in a shell conditional statement.
  977. m4_define([_AC_COMPILER_EXEEXT],
  978. m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  979. # When config.status generates a header, we must update the stamp-h file.
  980. # This file resides in the same directory as the config header
  981. # that is generated. The stamp files are numbered to have different names.
  982. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
  983. # loop where config.status creates the headers, so we can generate
  984. # our stamp files there.
  985. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  986. [# Compute $1's index in $config_headers.
  987. _am_arg=$1
  988. _am_stamp_count=1
  989. for _am_header in $config_headers :; do
  990. case $_am_header in
  991. $_am_arg | $_am_arg:* )
  992. break ;;
  993. * )
  994. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  995. esac
  996. done
  997. echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  998. # Copyright (C) 2001-2013 Free Software Foundation, Inc.
  999. #
  1000. # This file is free software; the Free Software Foundation
  1001. # gives unlimited permission to copy and/or distribute it,
  1002. # with or without modifications, as long as this notice is preserved.
  1003. # AM_PROG_INSTALL_SH
  1004. # ------------------
  1005. # Define $install_sh.
  1006. AC_DEFUN([AM_PROG_INSTALL_SH],
  1007. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  1008. if test x"${install_sh}" != xset; then
  1009. case $am_aux_dir in
  1010. *\ * | *\ *)
  1011. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  1012. *)
  1013. install_sh="\${SHELL} $am_aux_dir/install-sh"
  1014. esac
  1015. fi
  1016. AC_SUBST([install_sh])])
  1017. # Copyright (C) 2003-2013 Free Software Foundation, Inc.
  1018. #
  1019. # This file is free software; the Free Software Foundation
  1020. # gives unlimited permission to copy and/or distribute it,
  1021. # with or without modifications, as long as this notice is preserved.
  1022. # Check whether the underlying file-system supports filenames
  1023. # with a leading dot. For instance MS-DOS doesn't.
  1024. AC_DEFUN([AM_SET_LEADING_DOT],
  1025. [rm -rf .tst 2>/dev/null
  1026. mkdir .tst 2>/dev/null
  1027. if test -d .tst; then
  1028. am__leading_dot=.
  1029. else
  1030. am__leading_dot=_
  1031. fi
  1032. rmdir .tst 2>/dev/null
  1033. AC_SUBST([am__leading_dot])])
  1034. # Check to see how 'make' treats includes. -*- Autoconf -*-
  1035. # Copyright (C) 2001-2013 Free Software Foundation, Inc.
  1036. #
  1037. # This file is free software; the Free Software Foundation
  1038. # gives unlimited permission to copy and/or distribute it,
  1039. # with or without modifications, as long as this notice is preserved.
  1040. # AM_MAKE_INCLUDE()
  1041. # -----------------
  1042. # Check to see how make treats includes.
  1043. AC_DEFUN([AM_MAKE_INCLUDE],
  1044. [am_make=${MAKE-make}
  1045. cat > confinc << 'END'
  1046. am__doit:
  1047. @echo this is the am__doit target
  1048. .PHONY: am__doit
  1049. END
  1050. # If we don't find an include directive, just comment out the code.
  1051. AC_MSG_CHECKING([for style of include used by $am_make])
  1052. am__include="#"
  1053. am__quote=
  1054. _am_result=none
  1055. # First try GNU make style include.
  1056. echo "include confinc" > confmf
  1057. # Ignore all kinds of additional output from 'make'.
  1058. case `$am_make -s -f confmf 2> /dev/null` in #(
  1059. *the\ am__doit\ target*)
  1060. am__include=include
  1061. am__quote=
  1062. _am_result=GNU
  1063. ;;
  1064. esac
  1065. # Now try BSD make style include.
  1066. if test "$am__include" = "#"; then
  1067. echo '.include "confinc"' > confmf
  1068. case `$am_make -s -f confmf 2> /dev/null` in #(
  1069. *the\ am__doit\ target*)
  1070. am__include=.include
  1071. am__quote="\""
  1072. _am_result=BSD
  1073. ;;
  1074. esac
  1075. fi
  1076. AC_SUBST([am__include])
  1077. AC_SUBST([am__quote])
  1078. AC_MSG_RESULT([$_am_result])
  1079. rm -f confinc confmf
  1080. ])
  1081. # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  1082. # Copyright (C) 1997-2013 Free Software Foundation, Inc.
  1083. #
  1084. # This file is free software; the Free Software Foundation
  1085. # gives unlimited permission to copy and/or distribute it,
  1086. # with or without modifications, as long as this notice is preserved.
  1087. # AM_MISSING_PROG(NAME, PROGRAM)
  1088. # ------------------------------
  1089. AC_DEFUN([AM_MISSING_PROG],
  1090. [AC_REQUIRE([AM_MISSING_HAS_RUN])
  1091. $1=${$1-"${am_missing_run}$2"}
  1092. AC_SUBST($1)])
  1093. # AM_MISSING_HAS_RUN
  1094. # ------------------
  1095. # Define MISSING if not defined so far and test if it is modern enough.
  1096. # If it is, set am_missing_run to use it, otherwise, to nothing.
  1097. AC_DEFUN([AM_MISSING_HAS_RUN],
  1098. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  1099. AC_REQUIRE_AUX_FILE([missing])dnl
  1100. if test x"${MISSING+set}" != xset; then
  1101. case $am_aux_dir in
  1102. *\ * | *\ *)
  1103. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  1104. *)
  1105. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  1106. esac
  1107. fi
  1108. # Use eval to expand $SHELL
  1109. if eval "$MISSING --is-lightweight"; then
  1110. am_missing_run="$MISSING "
  1111. else
  1112. am_missing_run=
  1113. AC_MSG_WARN(['missing' script is too old or missing])
  1114. fi
  1115. ])
  1116. # -*- Autoconf -*-
  1117. # Obsolete and "removed" macros, that must however still report explicit
  1118. # error messages when used, to smooth transition.
  1119. #
  1120. # Copyright (C) 1996-2013 Free Software Foundation, Inc.
  1121. #
  1122. # This file is free software; the Free Software Foundation
  1123. # gives unlimited permission to copy and/or distribute it,
  1124. # with or without modifications, as long as this notice is preserved.
  1125. AC_DEFUN([AM_CONFIG_HEADER],
  1126. [AC_DIAGNOSE([obsolete],
  1127. ['$0': this macro is obsolete.
  1128. You should use the 'AC][_CONFIG_HEADERS' macro instead.])dnl
  1129. AC_CONFIG_HEADERS($@)])
  1130. AC_DEFUN([AM_PROG_CC_STDC],
  1131. [AC_PROG_CC
  1132. am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
  1133. AC_DIAGNOSE([obsolete],
  1134. ['$0': this macro is obsolete.
  1135. You should simply use the 'AC][_PROG_CC' macro instead.
  1136. Also, your code should no longer depend upon 'am_cv_prog_cc_stdc',
  1137. but upon 'ac_cv_prog_cc_stdc'.])])
  1138. AC_DEFUN([AM_C_PROTOTYPES],
  1139. [AC_FATAL([automatic de-ANSI-fication support has been removed])])
  1140. AU_DEFUN([fp_C_PROTOTYPES], [AM_C_PROTOTYPES])
  1141. # Helper functions for option handling. -*- Autoconf -*-
  1142. # Copyright (C) 2001-2013 Free Software Foundation, Inc.
  1143. #
  1144. # This file is free software; the Free Software Foundation
  1145. # gives unlimited permission to copy and/or distribute it,
  1146. # with or without modifications, as long as this notice is preserved.
  1147. # _AM_MANGLE_OPTION(NAME)
  1148. # -----------------------
  1149. AC_DEFUN([_AM_MANGLE_OPTION],
  1150. [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  1151. # _AM_SET_OPTION(NAME)
  1152. # --------------------
  1153. # Set option NAME. Presently that only means defining a flag for this option.
  1154. AC_DEFUN([_AM_SET_OPTION],
  1155. [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
  1156. # _AM_SET_OPTIONS(OPTIONS)
  1157. # ------------------------
  1158. # OPTIONS is a space-separated list of Automake options.
  1159. AC_DEFUN([_AM_SET_OPTIONS],
  1160. [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  1161. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  1162. # -------------------------------------------
  1163. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  1164. AC_DEFUN([_AM_IF_OPTION],
  1165. [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  1166. # Copyright (C) 1999-2013 Free Software Foundation, Inc.
  1167. #
  1168. # This file is free software; the Free Software Foundation
  1169. # gives unlimited permission to copy and/or distribute it,
  1170. # with or without modifications, as long as this notice is preserved.
  1171. # _AM_PROG_CC_C_O
  1172. # ---------------
  1173. # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
  1174. # to automatically call this.
  1175. AC_DEFUN([_AM_PROG_CC_C_O],
  1176. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  1177. AC_REQUIRE_AUX_FILE([compile])dnl
  1178. AC_LANG_PUSH([C])dnl
  1179. AC_CACHE_CHECK(
  1180. [whether $CC understands -c and -o together],
  1181. [am_cv_prog_cc_c_o],
  1182. [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
  1183. # Make sure it works both with $CC and with simple cc.
  1184. # Following AC_PROG_CC_C_O, we do the test twice because some
  1185. # compilers refuse to overwrite an existing .o file with -o,
  1186. # though they will create one.
  1187. am_cv_prog_cc_c_o=yes
  1188. for am_i in 1 2; do
  1189. if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
  1190. && test -f conftest2.$ac_objext; then
  1191. : OK
  1192. else
  1193. am_cv_prog_cc_c_o=no
  1194. break
  1195. fi
  1196. done
  1197. rm -f core conftest*
  1198. unset am_i])
  1199. if test "$am_cv_prog_cc_c_o" != yes; then
  1200. # Losing compiler, so override with the script.
  1201. # FIXME: It is wrong to rewrite CC.
  1202. # But if we don't then we get into trouble of one sort or another.
  1203. # A longer-term fix would be to have automake use am__CC in this case,
  1204. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  1205. CC="$am_aux_dir/compile $CC"
  1206. fi
  1207. AC_LANG_POP([C])])
  1208. # For backward compatibility.
  1209. AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
  1210. # Copyright (C) 2001-2013 Free Software Foundation, Inc.
  1211. #
  1212. # This file is free software; the Free Software Foundation
  1213. # gives unlimited permission to copy and/or distribute it,
  1214. # with or without modifications, as long as this notice is preserved.
  1215. # AM_RUN_LOG(COMMAND)
  1216. # -------------------
  1217. # Run COMMAND, save the exit status in ac_status, and log it.
  1218. # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
  1219. AC_DEFUN([AM_RUN_LOG],
  1220. [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
  1221. ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
  1222. ac_status=$?
  1223. echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1224. (exit $ac_status); }])
  1225. # Check to make sure that the build environment is sane. -*- Autoconf -*-
  1226. # Copyright (C) 1996-2013 Free Software Foundation, Inc.
  1227. #
  1228. # This file is free software; the Free Software Foundation
  1229. # gives unlimited permission to copy and/or distribute it,
  1230. # with or without modifications, as long as this notice is preserved.
  1231. # AM_SANITY_CHECK
  1232. # ---------------
  1233. AC_DEFUN([AM_SANITY_CHECK],
  1234. [AC_MSG_CHECKING([whether build environment is sane])
  1235. # Reject unsafe characters in $srcdir or the absolute working directory
  1236. # name. Accept space and tab only in the latter.
  1237. am_lf='
  1238. '
  1239. case `pwd` in
  1240. *[[\\\"\#\$\&\'\`$am_lf]]*)
  1241. AC_MSG_ERROR([unsafe absolute working directory name]);;
  1242. esac
  1243. case $srcdir in
  1244. *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  1245. AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
  1246. esac
  1247. # Do 'set' in a subshell so we don't clobber the current shell's
  1248. # arguments. Must try -L first in case configure is actually a
  1249. # symlink; some systems play weird games with the mod time of symlinks
  1250. # (eg FreeBSD returns the mod time of the symlink's containing
  1251. # directory).
  1252. if (
  1253. am_has_slept=no
  1254. for am_try in 1 2; do
  1255. echo "timestamp, slept: $am_has_slept" > conftest.file
  1256. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  1257. if test "$[*]" = "X"; then
  1258. # -L didn't work.
  1259. set X `ls -t "$srcdir/configure" conftest.file`
  1260. fi
  1261. if test "$[*]" != "X $srcdir/configure conftest.file" \
  1262. && test "$[*]" != "X conftest.file $srcdir/configure"; then
  1263. # If neither matched, then we have a broken ls. This can happen
  1264. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1265. # broken ls alias from the environment. This has actually
  1266. # happened. Such a system could not be considered "sane".
  1267. AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  1268. alias in your environment])
  1269. fi
  1270. if test "$[2]" = conftest.file || test $am_try -eq 2; then
  1271. break
  1272. fi
  1273. # Just in case.
  1274. sleep 1
  1275. am_has_slept=yes
  1276. done
  1277. test "$[2]" = conftest.file
  1278. )
  1279. then
  1280. # Ok.
  1281. :
  1282. else
  1283. AC_MSG_ERROR([newly created file is older than distributed files!
  1284. Check your system clock])
  1285. fi
  1286. AC_MSG_RESULT([yes])
  1287. # If we didn't sleep, we still need to ensure time stamps of config.status and
  1288. # generated files are strictly newer.
  1289. am_sleep_pid=
  1290. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  1291. ( sleep 1 ) &
  1292. am_sleep_pid=$!
  1293. fi
  1294. AC_CONFIG_COMMANDS_PRE(
  1295. [AC_MSG_CHECKING([that generated files are newer than configure])
  1296. if test -n "$am_sleep_pid"; then
  1297. # Hide warnings about reused PIDs.
  1298. wait $am_sleep_pid 2>/dev/null
  1299. fi
  1300. AC_MSG_RESULT([done])])
  1301. rm -f conftest.file
  1302. ])
  1303. # Copyright (C) 2009-2013 Free Software Foundation, Inc.
  1304. #
  1305. # This file is free software; the Free Software Foundation
  1306. # gives unlimited permission to copy and/or distribute it,
  1307. # with or without modifications, as long as this notice is preserved.
  1308. # AM_SILENT_RULES([DEFAULT])
  1309. # --------------------------
  1310. # Enable less verbose build rules; with the default set to DEFAULT
  1311. # ("yes" being less verbose, "no" or empty being verbose).
  1312. AC_DEFUN([AM_SILENT_RULES],
  1313. [AC_ARG_ENABLE([silent-rules], [dnl
  1314. AS_HELP_STRING(
  1315. [--enable-silent-rules],
  1316. [less verbose build output (undo: "make V=1")])
  1317. AS_HELP_STRING(
  1318. [--disable-silent-rules],
  1319. [verbose build output (undo: "make V=0")])dnl
  1320. ])
  1321. case $enable_silent_rules in @%:@ (((
  1322. yes) AM_DEFAULT_VERBOSITY=0;;
  1323. no) AM_DEFAULT_VERBOSITY=1;;
  1324. *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
  1325. esac
  1326. dnl
  1327. dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
  1328. dnl do not support nested variable expansions.
  1329. dnl See automake bug#9928 and bug#10237.
  1330. am_make=${MAKE-make}
  1331. AC_CACHE_CHECK([whether $am_make supports nested variables],
  1332. [am_cv_make_support_nested_variables],
  1333. [if AS_ECHO([['TRUE=$(BAR$(V))
  1334. BAR0=false
  1335. BAR1=true
  1336. V=1
  1337. am__doit:
  1338. @$(TRUE)
  1339. .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
  1340. am_cv_make_support_nested_variables=yes
  1341. else
  1342. am_cv_make_support_nested_variables=no
  1343. fi])
  1344. if test $am_cv_make_support_nested_variables = yes; then
  1345. dnl Using '$V' instead of '$(V)' breaks IRIX make.
  1346. AM_V='$(V)'
  1347. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  1348. else
  1349. AM_V=$AM_DEFAULT_VERBOSITY
  1350. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  1351. fi
  1352. AC_SUBST([AM_V])dnl
  1353. AM_SUBST_NOTMAKE([AM_V])dnl
  1354. AC_SUBST([AM_DEFAULT_V])dnl
  1355. AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
  1356. AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
  1357. AM_BACKSLASH='\'
  1358. AC_SUBST([AM_BACKSLASH])dnl
  1359. _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
  1360. ])
  1361. # Copyright (C) 2001-2013 Free Software Foundation, Inc.
  1362. #
  1363. # This file is free software; the Free Software Foundation
  1364. # gives unlimited permission to copy and/or distribute it,
  1365. # with or without modifications, as long as this notice is preserved.
  1366. # AM_PROG_INSTALL_STRIP
  1367. # ---------------------
  1368. # One issue with vendor 'install' (even GNU) is that you can't
  1369. # specify the program used to strip binaries. This is especially
  1370. # annoying in cross-compiling environments, where the build's strip
  1371. # is unlikely to handle the host's binaries.
  1372. # Fortunately install-sh will honor a STRIPPROG variable, so we
  1373. # always use install-sh in "make install-strip", and initialize
  1374. # STRIPPROG with the value of the STRIP variable (set by the user).
  1375. AC_DEFUN([AM_PROG_INSTALL_STRIP],
  1376. [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  1377. # Installed binaries are usually stripped using 'strip' when the user
  1378. # run "make install-strip". However 'strip' might not be the right
  1379. # tool to use in cross-compilation environments, therefore Automake
  1380. # will honor the 'STRIP' environment variable to overrule this program.
  1381. dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
  1382. if test "$cross_compiling" != no; then
  1383. AC_CHECK_TOOL([STRIP], [strip], :)
  1384. fi
  1385. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  1386. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  1387. # Copyright (C) 2006-2013 Free Software Foundation, Inc.
  1388. #
  1389. # This file is free software; the Free Software Foundation
  1390. # gives unlimited permission to copy and/or distribute it,
  1391. # with or without modifications, as long as this notice is preserved.
  1392. # _AM_SUBST_NOTMAKE(VARIABLE)
  1393. # ---------------------------
  1394. # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  1395. # This macro is traced by Automake.
  1396. AC_DEFUN([_AM_SUBST_NOTMAKE])
  1397. # AM_SUBST_NOTMAKE(VARIABLE)
  1398. # --------------------------
  1399. # Public sister of _AM_SUBST_NOTMAKE.
  1400. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  1401. # Check how to create a tarball. -*- Autoconf -*-
  1402. # Copyright (C) 2004-2013 Free Software Foundation, Inc.
  1403. #
  1404. # This file is free software; the Free Software Foundation
  1405. # gives unlimited permission to copy and/or distribute it,
  1406. # with or without modifications, as long as this notice is preserved.
  1407. # _AM_PROG_TAR(FORMAT)
  1408. # --------------------
  1409. # Check how to create a tarball in format FORMAT.
  1410. # FORMAT should be one of 'v7', 'ustar', or 'pax'.
  1411. #
  1412. # Substitute a variable $(am__tar) that is a command
  1413. # writing to stdout a FORMAT-tarball containing the directory
  1414. # $tardir.
  1415. # tardir=directory && $(am__tar) > result.tar
  1416. #
  1417. # Substitute a variable $(am__untar) that extract such
  1418. # a tarball read from stdin.
  1419. # $(am__untar) < result.tar
  1420. #
  1421. AC_DEFUN([_AM_PROG_TAR],
  1422. [# Always define AMTAR for backward compatibility. Yes, it's still used
  1423. # in the wild :-( We should find a proper way to deprecate it ...
  1424. AC_SUBST([AMTAR], ['$${TAR-tar}'])
  1425. # We'll loop over all known methods to create a tar archive until one works.
  1426. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
  1427. m4_if([$1], [v7],
  1428. [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
  1429. [m4_case([$1],
  1430. [ustar],
  1431. [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
  1432. # There is notably a 21 bits limit for the UID and the GID. In fact,
  1433. # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
  1434. # and bug#13588).
  1435. am_max_uid=2097151 # 2^21 - 1
  1436. am_max_gid=$am_max_uid
  1437. # The $UID and $GID variables are not portable, so we need to resort
  1438. # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
  1439. # below are definitely unexpected, so allow the users to see them
  1440. # (that is, avoid stderr redirection).
  1441. am_uid=`id -u || echo unknown`
  1442. am_gid=`id -g || echo unknown`
  1443. AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
  1444. if test $am_uid -le $am_max_uid; then
  1445. AC_MSG_RESULT([yes])
  1446. else
  1447. AC_MSG_RESULT([no])
  1448. _am_tools=none
  1449. fi
  1450. AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
  1451. if test $am_gid -le $am_max_gid; then
  1452. AC_MSG_RESULT([yes])
  1453. else
  1454. AC_MSG_RESULT([no])
  1455. _am_tools=none
  1456. fi],
  1457. [pax],
  1458. [],
  1459. [m4_fatal([Unknown tar format])])
  1460. AC_MSG_CHECKING([how to create a $1 tar archive])
  1461. # Go ahead even if we have the value already cached. We do so because we
  1462. # need to set the values for the 'am__tar' and 'am__untar' variables.
  1463. _am_tools=${am_cv_prog_tar_$1-$_am_tools}
  1464. for _am_tool in $_am_tools; do
  1465. case $_am_tool in
  1466. gnutar)
  1467. for _am_tar in tar gnutar gtar; do
  1468. AM_RUN_LOG([$_am_tar --version]) && break
  1469. done
  1470. am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
  1471. am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
  1472. am__untar="$_am_tar -xf -"
  1473. ;;
  1474. plaintar)
  1475. # Must skip GNU tar: if it does not support --format= it doesn't create
  1476. # ustar tarball either.
  1477. (tar --version) >/dev/null 2>&1 && continue
  1478. am__tar='tar chf - "$$tardir"'
  1479. am__tar_='tar chf - "$tardir"'
  1480. am__untar='tar xf -'
  1481. ;;
  1482. pax)
  1483. am__tar='pax -L -x $1 -w "$$tardir"'
  1484. am__tar_='pax -L -x $1 -w "$tardir"'
  1485. am__untar='pax -r'
  1486. ;;
  1487. cpio)
  1488. am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
  1489. am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
  1490. am__untar='cpio -i -H $1 -d'
  1491. ;;
  1492. none)
  1493. am__tar=false
  1494. am__tar_=false
  1495. am__untar=false
  1496. ;;
  1497. esac
  1498. # If the value was cached, stop now. We just wanted to have am__tar
  1499. # and am__untar set.
  1500. test -n "${am_cv_prog_tar_$1}" && break
  1501. # tar/untar a dummy directory, and stop if the command works.
  1502. rm -rf conftest.dir
  1503. mkdir conftest.dir
  1504. echo GrepMe > conftest.dir/file
  1505. AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
  1506. rm -rf conftest.dir
  1507. if test -s conftest.tar; then
  1508. AM_RUN_LOG([$am__untar <conftest.tar])
  1509. AM_RUN_LOG([cat conftest.dir/file])
  1510. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  1511. fi
  1512. done
  1513. rm -rf conftest.dir
  1514. AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
  1515. AC_MSG_RESULT([$am_cv_prog_tar_$1])])
  1516. AC_SUBST([am__tar])
  1517. AC_SUBST([am__untar])
  1518. ]) # _AM_PROG_TAR