aclocal.m4 54 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455
  1. # generated automatically by aclocal 1.10.1 -*- Autoconf -*-
  2. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  3. # 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  4. # This file is free software; the Free Software Foundation
  5. # gives unlimited permission to copy and/or distribute it,
  6. # with or without modifications, as long as this notice is preserved.
  7. # This program is distributed in the hope that it will be useful,
  8. # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  9. # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  10. # PARTICULAR PURPOSE.
  11. m4_ifndef([AC_AUTOCONF_VERSION],
  12. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  13. m4_if(AC_AUTOCONF_VERSION, [2.61],,
  14. [m4_warning([this file was generated for autoconf 2.61.
  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
  19. dnl AM_PATH_CPPUNIT(MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
  20. dnl
  21. AC_DEFUN([AM_PATH_CPPUNIT],
  22. [
  23. AC_ARG_WITH(cppunit-prefix,[ --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)],
  24. cppunit_config_prefix="$withval", cppunit_config_prefix="")
  25. AC_ARG_WITH(cppunit-exec-prefix,[ --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)],
  26. cppunit_config_exec_prefix="$withval", cppunit_config_exec_prefix="")
  27. if test x$cppunit_config_exec_prefix != x ; then
  28. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  29. if test x${CPPUNIT_CONFIG+set} != xset ; then
  30. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  31. fi
  32. fi
  33. if test x$cppunit_config_prefix != x ; then
  34. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  35. if test x${CPPUNIT_CONFIG+set} != xset ; then
  36. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  37. fi
  38. fi
  39. AC_PATH_PROG(CPPUNIT_CONFIG, cppunit-config, no)
  40. cppunit_version_min=$1
  41. AC_MSG_CHECKING(for Cppunit - version >= $cppunit_version_min)
  42. no_cppunit=""
  43. if test "$CPPUNIT_CONFIG" = "no" ; then
  44. AC_MSG_RESULT(no)
  45. no_cppunit=yes
  46. else
  47. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  48. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  49. cppunit_version=`$CPPUNIT_CONFIG --version`
  50. cppunit_major_version=`echo $cppunit_version | \
  51. sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
  52. cppunit_minor_version=`echo $cppunit_version | \
  53. sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
  54. cppunit_micro_version=`echo $cppunit_version | \
  55. sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
  56. cppunit_major_min=`echo $cppunit_version_min | \
  57. sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
  58. if test "x${cppunit_major_min}" = "x" ; then
  59. cppunit_major_min=0
  60. fi
  61. cppunit_minor_min=`echo $cppunit_version_min | \
  62. sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
  63. if test "x${cppunit_minor_min}" = "x" ; then
  64. cppunit_minor_min=0
  65. fi
  66. cppunit_micro_min=`echo $cppunit_version_min | \
  67. sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
  68. if test "x${cppunit_micro_min}" = "x" ; then
  69. cppunit_micro_min=0
  70. fi
  71. cppunit_version_proper=`expr \
  72. $cppunit_major_version \> $cppunit_major_min \| \
  73. $cppunit_major_version \= $cppunit_major_min \& \
  74. $cppunit_minor_version \> $cppunit_minor_min \| \
  75. $cppunit_major_version \= $cppunit_major_min \& \
  76. $cppunit_minor_version \= $cppunit_minor_min \& \
  77. $cppunit_micro_version \>= $cppunit_micro_min `
  78. if test "$cppunit_version_proper" = "1" ; then
  79. AC_MSG_RESULT([$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version])
  80. else
  81. AC_MSG_RESULT(no)
  82. no_cppunit=yes
  83. fi
  84. fi
  85. if test "x$no_cppunit" = x ; then
  86. ifelse([$2], , :, [$2])
  87. else
  88. CPPUNIT_CFLAGS=""
  89. CPPUNIT_LIBS=""
  90. ifelse([$3], , :, [$3])
  91. fi
  92. AC_SUBST(CPPUNIT_CFLAGS)
  93. AC_SUBST(CPPUNIT_LIBS)
  94. ])
  95. dnl Autoconf macros for libgcrypt
  96. dnl Copyright (C) 2002, 2004 Free Software Foundation, Inc.
  97. dnl
  98. dnl This file is free software; as a special exception the author gives
  99. dnl unlimited permission to copy and/or distribute it, with or without
  100. dnl modifications, as long as this notice is preserved.
  101. dnl
  102. dnl This file is distributed in the hope that it will be useful, but
  103. dnl WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
  104. dnl implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  105. dnl AM_PATH_LIBGCRYPT([MINIMUM-VERSION,
  106. dnl [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ]]])
  107. dnl Test for libgcrypt and define LIBGCRYPT_CFLAGS and LIBGCRYPT_LIBS.
  108. dnl MINIMUN-VERSION is a string with the version number optionalliy prefixed
  109. dnl with the API version to also check the API compatibility. Example:
  110. dnl a MINIMUN-VERSION of 1:1.2.5 won't pass the test unless the installed
  111. dnl version of libgcrypt is at least 1.2.5 *and* the API number is 1. Using
  112. dnl this features allows to prevent build against newer versions of libgcrypt
  113. dnl with a changed API.
  114. dnl
  115. AC_DEFUN([AM_PATH_LIBGCRYPT],
  116. [ AC_ARG_WITH(libgcrypt-prefix,
  117. AC_HELP_STRING([--with-libgcrypt-prefix=PFX],
  118. [prefix where LIBGCRYPT is installed (optional)]),
  119. libgcrypt_config_prefix="$withval", libgcrypt_config_prefix="")
  120. if test x$libgcrypt_config_prefix != x ; then
  121. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  122. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  123. fi
  124. fi
  125. AC_PATH_PROG(LIBGCRYPT_CONFIG, libgcrypt-config, no)
  126. tmp=ifelse([$1], ,1:1.2.0,$1)
  127. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  128. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  129. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  130. else
  131. req_libgcrypt_api=0
  132. min_libgcrypt_version="$tmp"
  133. fi
  134. AC_MSG_CHECKING(for LIBGCRYPT - version >= $min_libgcrypt_version)
  135. ok=no
  136. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  137. req_major=`echo $min_libgcrypt_version | \
  138. sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\1/'`
  139. req_minor=`echo $min_libgcrypt_version | \
  140. sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\2/'`
  141. req_micro=`echo $min_libgcrypt_version | \
  142. sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\3/'`
  143. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  144. major=`echo $libgcrypt_config_version | \
  145. sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'`
  146. minor=`echo $libgcrypt_config_version | \
  147. sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\2/'`
  148. micro=`echo $libgcrypt_config_version | \
  149. sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\3/'`
  150. if test "$major" -gt "$req_major"; then
  151. ok=yes
  152. else
  153. if test "$major" -eq "$req_major"; then
  154. if test "$minor" -gt "$req_minor"; then
  155. ok=yes
  156. else
  157. if test "$minor" -eq "$req_minor"; then
  158. if test "$micro" -ge "$req_micro"; then
  159. ok=yes
  160. fi
  161. fi
  162. fi
  163. fi
  164. fi
  165. fi
  166. if test $ok = yes; then
  167. AC_MSG_RESULT([yes ($libgcrypt_config_version)])
  168. else
  169. AC_MSG_RESULT(no)
  170. fi
  171. if test $ok = yes; then
  172. # If we have a recent libgcrypt, we should also check that the
  173. # API is compatible
  174. if test "$req_libgcrypt_api" -gt 0 ; then
  175. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  176. if test "$tmp" -gt 0 ; then
  177. AC_MSG_CHECKING([LIBGCRYPT API version])
  178. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  179. AC_MSG_RESULT([okay])
  180. else
  181. ok=no
  182. AC_MSG_RESULT([does not match. want=$req_libgcrypt_api got=$tmp])
  183. fi
  184. fi
  185. fi
  186. fi
  187. if test $ok = yes; then
  188. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  189. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  190. ifelse([$2], , :, [$2])
  191. else
  192. LIBGCRYPT_CFLAGS=""
  193. LIBGCRYPT_LIBS=""
  194. ifelse([$3], , :, [$3])
  195. fi
  196. AC_SUBST(LIBGCRYPT_CFLAGS)
  197. AC_SUBST(LIBGCRYPT_LIBS)
  198. ])
  199. dnl Autoconf macros for libgnutls
  200. dnl $id$
  201. # Modified for LIBGNUTLS -- nmav
  202. # Configure paths for LIBGCRYPT
  203. # Shamelessly stolen from the one of XDELTA by Owen Taylor
  204. # Werner Koch 99-12-09
  205. dnl AM_PATH_LIBGNUTLS([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ]]])
  206. dnl Test for libgnutls, and define LIBGNUTLS_CFLAGS and LIBGNUTLS_LIBS
  207. dnl
  208. AC_DEFUN([AM_PATH_LIBGNUTLS],
  209. [dnl
  210. dnl Get the cflags and libraries from the libgnutls-config script
  211. dnl
  212. AC_ARG_WITH(libgnutls-prefix,
  213. [ --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)],
  214. libgnutls_config_prefix="$withval", libgnutls_config_prefix="")
  215. if test x$libgnutls_config_prefix != x ; then
  216. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  217. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  218. fi
  219. fi
  220. AC_PATH_PROG(LIBGNUTLS_CONFIG, libgnutls-config, no)
  221. min_libgnutls_version=ifelse([$1], ,0.1.0,$1)
  222. AC_MSG_CHECKING(for libgnutls - version >= $min_libgnutls_version)
  223. no_libgnutls=""
  224. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  225. no_libgnutls=yes
  226. else
  227. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  228. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  229. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  230. ac_save_CFLAGS="$CFLAGS"
  231. ac_save_LIBS="$LIBS"
  232. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  233. LIBS="$LIBS $LIBGNUTLS_LIBS"
  234. dnl
  235. dnl Now check if the installed libgnutls is sufficiently new. Also sanity
  236. dnl checks the results of libgnutls-config to some extent
  237. dnl
  238. rm -f conf.libgnutlstest
  239. AC_TRY_RUN([
  240. #include <stdio.h>
  241. #include <stdlib.h>
  242. #include <string.h>
  243. #include <gnutls/gnutls.h>
  244. int
  245. main ()
  246. {
  247. system ("touch conf.libgnutlstest");
  248. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  249. {
  250. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  251. "$libgnutls_config_version", gnutls_check_version(NULL) );
  252. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  253. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  254. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  255. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  256. printf("*** required on your system.\n");
  257. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  258. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  259. printf("*** before re-running configure\n");
  260. }
  261. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  262. {
  263. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  264. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  265. }
  266. else
  267. {
  268. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  269. {
  270. return 0;
  271. }
  272. else
  273. {
  274. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  275. gnutls_check_version(NULL) );
  276. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  277. "$min_libgnutls_version" );
  278. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  279. printf("*** \n");
  280. printf("*** If you have already installed a sufficiently new version, this error\n");
  281. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  282. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  283. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  284. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  285. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  286. printf("*** so that the correct libraries are found at run-time))\n");
  287. }
  288. }
  289. return 1;
  290. }
  291. ],, no_libgnutls=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
  292. CFLAGS="$ac_save_CFLAGS"
  293. LIBS="$ac_save_LIBS"
  294. fi
  295. if test "x$no_libgnutls" = x ; then
  296. AC_MSG_RESULT(yes)
  297. ifelse([$2], , :, [$2])
  298. else
  299. if test -f conf.libgnutlstest ; then
  300. :
  301. else
  302. AC_MSG_RESULT(no)
  303. fi
  304. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  305. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  306. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  307. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  308. echo "*** full path to libgnutls-config."
  309. else
  310. if test -f conf.libgnutlstest ; then
  311. :
  312. else
  313. echo "*** Could not run libgnutls test program, checking why..."
  314. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  315. LIBS="$LIBS $LIBGNUTLS_LIBS"
  316. AC_TRY_LINK([
  317. #include <stdio.h>
  318. #include <stdlib.h>
  319. #include <string.h>
  320. #include <gnutls/gnutls.h>
  321. ], [ return !!gnutls_check_version(NULL); ],
  322. [ echo "*** The test program compiled, but did not run. This usually means"
  323. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  324. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  325. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  326. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  327. echo "*** is required on your system"
  328. echo "***"
  329. echo "*** If you have an old version installed, it is best to remove it, although"
  330. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  331. echo "***" ],
  332. [ echo "*** The test program failed to compile or link. See the file config.log for the"
  333. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  334. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  335. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG" ])
  336. CFLAGS="$ac_save_CFLAGS"
  337. LIBS="$ac_save_LIBS"
  338. fi
  339. fi
  340. LIBGNUTLS_CFLAGS=""
  341. LIBGNUTLS_LIBS=""
  342. ifelse([$3], , :, [$3])
  343. fi
  344. rm -f conf.libgnutlstest
  345. AC_SUBST(LIBGNUTLS_CFLAGS)
  346. AC_SUBST(LIBGNUTLS_LIBS)
  347. ])
  348. dnl *-*wedit:notab*-* Please keep this as the last line.
  349. # Configure paths for LIBXML2
  350. # Mike Hommey 2004-06-19
  351. # use CPPFLAGS instead of CFLAGS
  352. # Toshio Kuratomi 2001-04-21
  353. # Adapted from:
  354. # Configure paths for GLIB
  355. # Owen Taylor 97-11-3
  356. dnl AM_PATH_XML2([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
  357. dnl Test for XML, and define XML_CPPFLAGS and XML_LIBS
  358. dnl
  359. AC_DEFUN([AM_PATH_XML2],[
  360. AC_ARG_WITH(xml-prefix,
  361. [ --with-xml-prefix=PFX Prefix where libxml is installed (optional)],
  362. xml_config_prefix="$withval", xml_config_prefix="")
  363. AC_ARG_WITH(xml-exec-prefix,
  364. [ --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)],
  365. xml_config_exec_prefix="$withval", xml_config_exec_prefix="")
  366. AC_ARG_ENABLE(xmltest,
  367. [ --disable-xmltest Do not try to compile and run a test LIBXML program],,
  368. enable_xmltest=yes)
  369. if test x$xml_config_exec_prefix != x ; then
  370. xml_config_args="$xml_config_args"
  371. if test x${XML2_CONFIG+set} != xset ; then
  372. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  373. fi
  374. fi
  375. if test x$xml_config_prefix != x ; then
  376. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  377. if test x${XML2_CONFIG+set} != xset ; then
  378. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  379. fi
  380. fi
  381. AC_PATH_PROG(XML2_CONFIG, xml2-config, no)
  382. min_xml_version=ifelse([$1], ,2.0.0,[$1])
  383. AC_MSG_CHECKING(for libxml - version >= $min_xml_version)
  384. no_xml=""
  385. if test "$XML2_CONFIG" = "no" ; then
  386. no_xml=yes
  387. else
  388. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  389. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  390. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  391. sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
  392. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  393. sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
  394. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  395. sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
  396. if test "x$enable_xmltest" = "xyes" ; then
  397. ac_save_CPPFLAGS="$CPPFLAGS"
  398. ac_save_LIBS="$LIBS"
  399. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  400. LIBS="$XML_LIBS $LIBS"
  401. dnl
  402. dnl Now check if the installed libxml is sufficiently new.
  403. dnl (Also sanity checks the results of xml2-config to some extent)
  404. dnl
  405. rm -f conf.xmltest
  406. AC_TRY_RUN([
  407. #include <stdlib.h>
  408. #include <stdio.h>
  409. #include <string.h>
  410. #include <libxml/xmlversion.h>
  411. int
  412. main()
  413. {
  414. int xml_major_version, xml_minor_version, xml_micro_version;
  415. int major, minor, micro;
  416. char *tmp_version;
  417. system("touch conf.xmltest");
  418. /* Capture xml2-config output via autoconf/configure variables */
  419. /* HP/UX 9 (%@#!) writes to sscanf strings */
  420. tmp_version = (char *)strdup("$min_xml_version");
  421. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  422. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  423. exit(1);
  424. }
  425. free(tmp_version);
  426. /* Capture the version information from the header files */
  427. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  428. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  429. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  430. exit(1);
  431. }
  432. free(tmp_version);
  433. /* Compare xml2-config output to the libxml headers */
  434. if ((xml_major_version != $xml_config_major_version) ||
  435. (xml_minor_version != $xml_config_minor_version) ||
  436. (xml_micro_version != $xml_config_micro_version))
  437. {
  438. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  439. xml_major_version, xml_minor_version, xml_micro_version);
  440. printf("*** xml2-config (version %d.%d.%d)\n",
  441. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  442. return 1;
  443. }
  444. /* Compare the headers to the library to make sure we match */
  445. /* Less than ideal -- doesn't provide us with return value feedback,
  446. * only exits if there's a serious mismatch between header and library.
  447. */
  448. LIBXML_TEST_VERSION;
  449. /* Test that the library is greater than our minimum version */
  450. if ((xml_major_version > major) ||
  451. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  452. ((xml_major_version == major) && (xml_minor_version == minor) &&
  453. (xml_micro_version >= micro)))
  454. {
  455. return 0;
  456. }
  457. else
  458. {
  459. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  460. xml_major_version, xml_minor_version, xml_micro_version);
  461. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  462. major, minor, micro);
  463. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  464. printf("***\n");
  465. printf("*** If you have already installed a sufficiently new version, this error\n");
  466. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  467. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  468. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  469. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  470. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  471. printf("*** so that the correct libraries are found at run-time))\n");
  472. }
  473. return 1;
  474. }
  475. ],, no_xml=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
  476. CPPFLAGS="$ac_save_CPPFLAGS"
  477. LIBS="$ac_save_LIBS"
  478. fi
  479. fi
  480. if test "x$no_xml" = x ; then
  481. AC_MSG_RESULT(yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version))
  482. ifelse([$2], , :, [$2])
  483. else
  484. AC_MSG_RESULT(no)
  485. if test "$XML2_CONFIG" = "no" ; then
  486. echo "*** The xml2-config script installed by LIBXML could not be found"
  487. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  488. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  489. echo "*** full path to xml2-config."
  490. else
  491. if test -f conf.xmltest ; then
  492. :
  493. else
  494. echo "*** Could not run libxml test program, checking why..."
  495. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  496. LIBS="$LIBS $XML_LIBS"
  497. AC_TRY_LINK([
  498. #include <libxml/xmlversion.h>
  499. #include <stdio.h>
  500. ], [ LIBXML_TEST_VERSION; return 0;],
  501. [ echo "*** The test program compiled, but did not run. This usually means"
  502. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  503. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  504. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  505. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  506. echo "*** is required on your system"
  507. echo "***"
  508. echo "*** If you have an old version installed, it is best to remove it, although"
  509. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ],
  510. [ echo "*** The test program failed to compile or link. See the file config.log for the"
  511. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  512. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  513. echo "*** may want to edit the xml2-config script: $XML2_CONFIG" ])
  514. CPPFLAGS="$ac_save_CPPFLAGS"
  515. LIBS="$ac_save_LIBS"
  516. fi
  517. fi
  518. XML_CPPFLAGS=""
  519. XML_LIBS=""
  520. ifelse([$3], , :, [$3])
  521. fi
  522. AC_SUBST(XML_CPPFLAGS)
  523. AC_SUBST(XML_LIBS)
  524. rm -f conf.xmltest
  525. ])
  526. # Copyright (C) 2002, 2003, 2005, 2006, 2007 Free Software Foundation, Inc.
  527. #
  528. # This file is free software; the Free Software Foundation
  529. # gives unlimited permission to copy and/or distribute it,
  530. # with or without modifications, as long as this notice is preserved.
  531. # AM_AUTOMAKE_VERSION(VERSION)
  532. # ----------------------------
  533. # Automake X.Y traces this macro to ensure aclocal.m4 has been
  534. # generated from the m4 files accompanying Automake X.Y.
  535. # (This private macro should not be called outside this file.)
  536. AC_DEFUN([AM_AUTOMAKE_VERSION],
  537. [am__api_version='1.10'
  538. dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  539. dnl require some minimum version. Point them to the right macro.
  540. m4_if([$1], [1.10.1], [],
  541. [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  542. ])
  543. # _AM_AUTOCONF_VERSION(VERSION)
  544. # -----------------------------
  545. # aclocal traces this macro to find the Autoconf version.
  546. # This is a private macro too. Using m4_define simplifies
  547. # the logic in aclocal, which can simply ignore this definition.
  548. m4_define([_AM_AUTOCONF_VERSION], [])
  549. # AM_SET_CURRENT_AUTOMAKE_VERSION
  550. # -------------------------------
  551. # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  552. # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
  553. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  554. [AM_AUTOMAKE_VERSION([1.10.1])dnl
  555. m4_ifndef([AC_AUTOCONF_VERSION],
  556. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  557. _AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
  558. # AM_AUX_DIR_EXPAND -*- Autoconf -*-
  559. # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  560. #
  561. # This file is free software; the Free Software Foundation
  562. # gives unlimited permission to copy and/or distribute it,
  563. # with or without modifications, as long as this notice is preserved.
  564. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
  565. # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
  566. # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
  567. #
  568. # Of course, Automake must honor this variable whenever it calls a
  569. # tool from the auxiliary directory. The problem is that $srcdir (and
  570. # therefore $ac_aux_dir as well) can be either absolute or relative,
  571. # depending on how configure is run. This is pretty annoying, since
  572. # it makes $ac_aux_dir quite unusable in subdirectories: in the top
  573. # source directory, any form will work fine, but in subdirectories a
  574. # relative path needs to be adjusted first.
  575. #
  576. # $ac_aux_dir/missing
  577. # fails when called from a subdirectory if $ac_aux_dir is relative
  578. # $top_srcdir/$ac_aux_dir/missing
  579. # fails if $ac_aux_dir is absolute,
  580. # fails when called from a subdirectory in a VPATH build with
  581. # a relative $ac_aux_dir
  582. #
  583. # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
  584. # are both prefixed by $srcdir. In an in-source build this is usually
  585. # harmless because $srcdir is `.', but things will broke when you
  586. # start a VPATH build or use an absolute $srcdir.
  587. #
  588. # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
  589. # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
  590. # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
  591. # and then we would define $MISSING as
  592. # MISSING="\${SHELL} $am_aux_dir/missing"
  593. # This will work as long as MISSING is not called from configure, because
  594. # unfortunately $(top_srcdir) has no meaning in configure.
  595. # However there are other variables, like CC, which are often used in
  596. # configure, and could therefore not use this "fixed" $ac_aux_dir.
  597. #
  598. # Another solution, used here, is to always expand $ac_aux_dir to an
  599. # absolute PATH. The drawback is that using absolute paths prevent a
  600. # configured tree to be moved without reconfiguration.
  601. AC_DEFUN([AM_AUX_DIR_EXPAND],
  602. [dnl Rely on autoconf to set up CDPATH properly.
  603. AC_PREREQ([2.50])dnl
  604. # expand $ac_aux_dir to an absolute path
  605. am_aux_dir=`cd $ac_aux_dir && pwd`
  606. ])
  607. # AM_CONDITIONAL -*- Autoconf -*-
  608. # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
  609. # Free Software Foundation, Inc.
  610. #
  611. # This file is free software; the Free Software Foundation
  612. # gives unlimited permission to copy and/or distribute it,
  613. # with or without modifications, as long as this notice is preserved.
  614. # serial 8
  615. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  616. # -------------------------------------
  617. # Define a conditional.
  618. AC_DEFUN([AM_CONDITIONAL],
  619. [AC_PREREQ(2.52)dnl
  620. ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  621. [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  622. AC_SUBST([$1_TRUE])dnl
  623. AC_SUBST([$1_FALSE])dnl
  624. _AM_SUBST_NOTMAKE([$1_TRUE])dnl
  625. _AM_SUBST_NOTMAKE([$1_FALSE])dnl
  626. if $2; then
  627. $1_TRUE=
  628. $1_FALSE='#'
  629. else
  630. $1_TRUE='#'
  631. $1_FALSE=
  632. fi
  633. AC_CONFIG_COMMANDS_PRE(
  634. [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  635. AC_MSG_ERROR([[conditional "$1" was never defined.
  636. Usually this means the macro was only invoked conditionally.]])
  637. fi])])
  638. # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
  639. # Free Software Foundation, Inc.
  640. #
  641. # This file is free software; the Free Software Foundation
  642. # gives unlimited permission to copy and/or distribute it,
  643. # with or without modifications, as long as this notice is preserved.
  644. # serial 9
  645. # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  646. # written in clear, in which case automake, when reading aclocal.m4,
  647. # will think it sees a *use*, and therefore will trigger all it's
  648. # C support machinery. Also note that it means that autoscan, seeing
  649. # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  650. # _AM_DEPENDENCIES(NAME)
  651. # ----------------------
  652. # See how the compiler implements dependency checking.
  653. # NAME is "CC", "CXX", "GCJ", or "OBJC".
  654. # We try a few techniques and use that to set a single cache variable.
  655. #
  656. # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
  657. # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
  658. # dependency, and given that the user is not expected to run this macro,
  659. # just rely on AC_PROG_CC.
  660. AC_DEFUN([_AM_DEPENDENCIES],
  661. [AC_REQUIRE([AM_SET_DEPDIR])dnl
  662. AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
  663. AC_REQUIRE([AM_MAKE_INCLUDE])dnl
  664. AC_REQUIRE([AM_DEP_TRACK])dnl
  665. ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
  666. [$1], CXX, [depcc="$CXX" am_compiler_list=],
  667. [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  668. [$1], UPC, [depcc="$UPC" am_compiler_list=],
  669. [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  670. [depcc="$$1" am_compiler_list=])
  671. AC_CACHE_CHECK([dependency style of $depcc],
  672. [am_cv_$1_dependencies_compiler_type],
  673. [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  674. # We make a subdir and do the tests there. Otherwise we can end up
  675. # making bogus files that we don't know about and never remove. For
  676. # instance it was reported that on HP-UX the gcc test will end up
  677. # making a dummy file named `D' -- because `-MD' means `put the output
  678. # in D'.
  679. mkdir conftest.dir
  680. # Copy depcomp to subdir because otherwise we won't find it if we're
  681. # using a relative directory.
  682. cp "$am_depcomp" conftest.dir
  683. cd conftest.dir
  684. # We will build objects and dependencies in a subdirectory because
  685. # it helps to detect inapplicable dependency modes. For instance
  686. # both Tru64's cc and ICC support -MD to output dependencies as a
  687. # side effect of compilation, but ICC will put the dependencies in
  688. # the current directory while Tru64 will put them in the object
  689. # directory.
  690. mkdir sub
  691. am_cv_$1_dependencies_compiler_type=none
  692. if test "$am_compiler_list" = ""; then
  693. am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  694. fi
  695. for depmode in $am_compiler_list; do
  696. # Setup a source with many dependencies, because some compilers
  697. # like to wrap large dependency lists on column 80 (with \), and
  698. # we should not choose a depcomp mode which is confused by this.
  699. #
  700. # We need to recreate these files for each test, as the compiler may
  701. # overwrite some of them when testing with obscure command lines.
  702. # This happens at least with the AIX C compiler.
  703. : > sub/conftest.c
  704. for i in 1 2 3 4 5 6; do
  705. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  706. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  707. # Solaris 8's {/usr,}/bin/sh.
  708. touch sub/conftst$i.h
  709. done
  710. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  711. case $depmode in
  712. nosideeffect)
  713. # after this tag, mechanisms are not by side-effect, so they'll
  714. # only be used when explicitly requested
  715. if test "x$enable_dependency_tracking" = xyes; then
  716. continue
  717. else
  718. break
  719. fi
  720. ;;
  721. none) break ;;
  722. esac
  723. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  724. # mode. It turns out that the SunPro C++ compiler does not properly
  725. # handle `-M -o', and we need to detect this.
  726. if depmode=$depmode \
  727. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  728. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  729. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  730. >/dev/null 2>conftest.err &&
  731. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  732. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  733. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  734. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  735. # icc doesn't choke on unknown options, it will just issue warnings
  736. # or remarks (even with -Werror). So we grep stderr for any message
  737. # that says an option was ignored or not supported.
  738. # When given -MP, icc 7.0 and 7.1 complain thusly:
  739. # icc: Command line warning: ignoring option '-M'; no argument required
  740. # The diagnosis changed in icc 8.0:
  741. # icc: Command line remark: option '-MP' not supported
  742. if (grep 'ignoring option' conftest.err ||
  743. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  744. am_cv_$1_dependencies_compiler_type=$depmode
  745. break
  746. fi
  747. fi
  748. done
  749. cd ..
  750. rm -rf conftest.dir
  751. else
  752. am_cv_$1_dependencies_compiler_type=none
  753. fi
  754. ])
  755. AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
  756. AM_CONDITIONAL([am__fastdep$1], [
  757. test "x$enable_dependency_tracking" != xno \
  758. && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
  759. ])
  760. # AM_SET_DEPDIR
  761. # -------------
  762. # Choose a directory name for dependency files.
  763. # This macro is AC_REQUIREd in _AM_DEPENDENCIES
  764. AC_DEFUN([AM_SET_DEPDIR],
  765. [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  766. AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
  767. ])
  768. # AM_DEP_TRACK
  769. # ------------
  770. AC_DEFUN([AM_DEP_TRACK],
  771. [AC_ARG_ENABLE(dependency-tracking,
  772. [ --disable-dependency-tracking speeds up one-time build
  773. --enable-dependency-tracking do not reject slow dependency extractors])
  774. if test "x$enable_dependency_tracking" != xno; then
  775. am_depcomp="$ac_aux_dir/depcomp"
  776. AMDEPBACKSLASH='\'
  777. fi
  778. AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  779. AC_SUBST([AMDEPBACKSLASH])dnl
  780. _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
  781. ])
  782. # Generate code to set up dependency tracking. -*- Autoconf -*-
  783. # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
  784. # Free Software Foundation, Inc.
  785. #
  786. # This file is free software; the Free Software Foundation
  787. # gives unlimited permission to copy and/or distribute it,
  788. # with or without modifications, as long as this notice is preserved.
  789. #serial 3
  790. # _AM_OUTPUT_DEPENDENCY_COMMANDS
  791. # ------------------------------
  792. AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  793. [for mf in $CONFIG_FILES; do
  794. # Strip MF so we end up with the name of the file.
  795. mf=`echo "$mf" | sed -e 's/:.*$//'`
  796. # Check whether this is an Automake generated Makefile or not.
  797. # We used to match only the files named `Makefile.in', but
  798. # some people rename them; so instead we look at the file content.
  799. # Grep'ing the first line is not enough: some people post-process
  800. # each Makefile.in and add a new line on top of each file to say so.
  801. # Grep'ing the whole file is not good either: AIX grep has a line
  802. # limit of 2048, but all sed's we know have understand at least 4000.
  803. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  804. dirpart=`AS_DIRNAME("$mf")`
  805. else
  806. continue
  807. fi
  808. # Extract the definition of DEPDIR, am__include, and am__quote
  809. # from the Makefile without running `make'.
  810. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  811. test -z "$DEPDIR" && continue
  812. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  813. test -z "am__include" && continue
  814. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  815. # When using ansi2knr, U may be empty or an underscore; expand it
  816. U=`sed -n 's/^U = //p' < "$mf"`
  817. # Find all dependency output files, they are included files with
  818. # $(DEPDIR) in their names. We invoke sed twice because it is the
  819. # simplest approach to changing $(DEPDIR) to its actual value in the
  820. # expansion.
  821. for file in `sed -n "
  822. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  823. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  824. # Make sure the directory exists.
  825. test -f "$dirpart/$file" && continue
  826. fdir=`AS_DIRNAME(["$file"])`
  827. AS_MKDIR_P([$dirpart/$fdir])
  828. # echo "creating $dirpart/$file"
  829. echo '# dummy' > "$dirpart/$file"
  830. done
  831. done
  832. ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  833. # AM_OUTPUT_DEPENDENCY_COMMANDS
  834. # -----------------------------
  835. # This macro should only be invoked once -- use via AC_REQUIRE.
  836. #
  837. # This code is only required when automatic dependency tracking
  838. # is enabled. FIXME. This creates each `.P' file that we will
  839. # need in order to bootstrap the dependency handling code.
  840. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
  841. [AC_CONFIG_COMMANDS([depfiles],
  842. [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
  843. [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
  844. ])
  845. # Do all the work for Automake. -*- Autoconf -*-
  846. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  847. # 2005, 2006, 2008 Free Software Foundation, Inc.
  848. #
  849. # This file is free software; the Free Software Foundation
  850. # gives unlimited permission to copy and/or distribute it,
  851. # with or without modifications, as long as this notice is preserved.
  852. # serial 13
  853. # This macro actually does too much. Some checks are only needed if
  854. # your package does certain things. But this isn't really a big deal.
  855. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  856. # AM_INIT_AUTOMAKE([OPTIONS])
  857. # -----------------------------------------------
  858. # The call with PACKAGE and VERSION arguments is the old style
  859. # call (pre autoconf-2.50), which is being phased out. PACKAGE
  860. # and VERSION should now be passed to AC_INIT and removed from
  861. # the call to AM_INIT_AUTOMAKE.
  862. # We support both call styles for the transition. After
  863. # the next Automake release, Autoconf can make the AC_INIT
  864. # arguments mandatory, and then we can depend on a new Autoconf
  865. # release and drop the old call support.
  866. AC_DEFUN([AM_INIT_AUTOMAKE],
  867. [AC_PREREQ([2.60])dnl
  868. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  869. dnl the ones we care about.
  870. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  871. AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  872. AC_REQUIRE([AC_PROG_INSTALL])dnl
  873. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  874. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  875. # is not polluted with repeated "-I."
  876. AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  877. # test to see if srcdir already configured
  878. if test -f $srcdir/config.status; then
  879. AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  880. fi
  881. fi
  882. # test whether we have cygpath
  883. if test -z "$CYGPATH_W"; then
  884. if (cygpath --version) >/dev/null 2>/dev/null; then
  885. CYGPATH_W='cygpath -w'
  886. else
  887. CYGPATH_W=echo
  888. fi
  889. fi
  890. AC_SUBST([CYGPATH_W])
  891. # Define the identity of the package.
  892. dnl Distinguish between old-style and new-style calls.
  893. m4_ifval([$2],
  894. [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  895. AC_SUBST([PACKAGE], [$1])dnl
  896. AC_SUBST([VERSION], [$2])],
  897. [_AM_SET_OPTIONS([$1])dnl
  898. dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  899. m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
  900. [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  901. AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  902. AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  903. _AM_IF_OPTION([no-define],,
  904. [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
  905. AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
  906. # Some tools Automake needs.
  907. AC_REQUIRE([AM_SANITY_CHECK])dnl
  908. AC_REQUIRE([AC_ARG_PROGRAM])dnl
  909. AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
  910. AM_MISSING_PROG(AUTOCONF, autoconf)
  911. AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  912. AM_MISSING_PROG(AUTOHEADER, autoheader)
  913. AM_MISSING_PROG(MAKEINFO, makeinfo)
  914. AM_PROG_INSTALL_SH
  915. AM_PROG_INSTALL_STRIP
  916. AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  917. # We need awk for the "check" target. The system "awk" is bad on
  918. # some platforms.
  919. AC_REQUIRE([AC_PROG_AWK])dnl
  920. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  921. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  922. _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  923. [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  924. [_AM_PROG_TAR([v7])])])
  925. _AM_IF_OPTION([no-dependencies],,
  926. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  927. [_AM_DEPENDENCIES(CC)],
  928. [define([AC_PROG_CC],
  929. defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  930. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  931. [_AM_DEPENDENCIES(CXX)],
  932. [define([AC_PROG_CXX],
  933. defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  934. AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  935. [_AM_DEPENDENCIES(OBJC)],
  936. [define([AC_PROG_OBJC],
  937. defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  938. ])
  939. ])
  940. # When config.status generates a header, we must update the stamp-h file.
  941. # This file resides in the same directory as the config header
  942. # that is generated. The stamp files are numbered to have different names.
  943. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
  944. # loop where config.status creates the headers, so we can generate
  945. # our stamp files there.
  946. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  947. [# Compute $1's index in $config_headers.
  948. _am_arg=$1
  949. _am_stamp_count=1
  950. for _am_header in $config_headers :; do
  951. case $_am_header in
  952. $_am_arg | $_am_arg:* )
  953. break ;;
  954. * )
  955. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  956. esac
  957. done
  958. echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  959. # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  960. #
  961. # This file is free software; the Free Software Foundation
  962. # gives unlimited permission to copy and/or distribute it,
  963. # with or without modifications, as long as this notice is preserved.
  964. # AM_PROG_INSTALL_SH
  965. # ------------------
  966. # Define $install_sh.
  967. AC_DEFUN([AM_PROG_INSTALL_SH],
  968. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  969. install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  970. AC_SUBST(install_sh)])
  971. # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
  972. #
  973. # This file is free software; the Free Software Foundation
  974. # gives unlimited permission to copy and/or distribute it,
  975. # with or without modifications, as long as this notice is preserved.
  976. # serial 2
  977. # Check whether the underlying file-system supports filenames
  978. # with a leading dot. For instance MS-DOS doesn't.
  979. AC_DEFUN([AM_SET_LEADING_DOT],
  980. [rm -rf .tst 2>/dev/null
  981. mkdir .tst 2>/dev/null
  982. if test -d .tst; then
  983. am__leading_dot=.
  984. else
  985. am__leading_dot=_
  986. fi
  987. rmdir .tst 2>/dev/null
  988. AC_SUBST([am__leading_dot])])
  989. # Check to see how 'make' treats includes. -*- Autoconf -*-
  990. # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
  991. #
  992. # This file is free software; the Free Software Foundation
  993. # gives unlimited permission to copy and/or distribute it,
  994. # with or without modifications, as long as this notice is preserved.
  995. # serial 3
  996. # AM_MAKE_INCLUDE()
  997. # -----------------
  998. # Check to see how make treats includes.
  999. AC_DEFUN([AM_MAKE_INCLUDE],
  1000. [am_make=${MAKE-make}
  1001. cat > confinc << 'END'
  1002. am__doit:
  1003. @echo done
  1004. .PHONY: am__doit
  1005. END
  1006. # If we don't find an include directive, just comment out the code.
  1007. AC_MSG_CHECKING([for style of include used by $am_make])
  1008. am__include="#"
  1009. am__quote=
  1010. _am_result=none
  1011. # First try GNU make style include.
  1012. echo "include confinc" > confmf
  1013. # We grep out `Entering directory' and `Leaving directory'
  1014. # messages which can occur if `w' ends up in MAKEFLAGS.
  1015. # In particular we don't look at `^make:' because GNU make might
  1016. # be invoked under some other name (usually "gmake"), in which
  1017. # case it prints its new name instead of `make'.
  1018. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  1019. am__include=include
  1020. am__quote=
  1021. _am_result=GNU
  1022. fi
  1023. # Now try BSD make style include.
  1024. if test "$am__include" = "#"; then
  1025. echo '.include "confinc"' > confmf
  1026. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  1027. am__include=.include
  1028. am__quote="\""
  1029. _am_result=BSD
  1030. fi
  1031. fi
  1032. AC_SUBST([am__include])
  1033. AC_SUBST([am__quote])
  1034. AC_MSG_RESULT([$_am_result])
  1035. rm -f confinc confmf
  1036. ])
  1037. # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  1038. # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
  1039. # Free Software Foundation, Inc.
  1040. #
  1041. # This file is free software; the Free Software Foundation
  1042. # gives unlimited permission to copy and/or distribute it,
  1043. # with or without modifications, as long as this notice is preserved.
  1044. # serial 5
  1045. # AM_MISSING_PROG(NAME, PROGRAM)
  1046. # ------------------------------
  1047. AC_DEFUN([AM_MISSING_PROG],
  1048. [AC_REQUIRE([AM_MISSING_HAS_RUN])
  1049. $1=${$1-"${am_missing_run}$2"}
  1050. AC_SUBST($1)])
  1051. # AM_MISSING_HAS_RUN
  1052. # ------------------
  1053. # Define MISSING if not defined so far and test if it supports --run.
  1054. # If it does, set am_missing_run to use it, otherwise, to nothing.
  1055. AC_DEFUN([AM_MISSING_HAS_RUN],
  1056. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  1057. AC_REQUIRE_AUX_FILE([missing])dnl
  1058. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1059. # Use eval to expand $SHELL
  1060. if eval "$MISSING --run true"; then
  1061. am_missing_run="$MISSING --run "
  1062. else
  1063. am_missing_run=
  1064. AC_MSG_WARN([`missing' script is too old or missing])
  1065. fi
  1066. ])
  1067. # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1068. #
  1069. # This file is free software; the Free Software Foundation
  1070. # gives unlimited permission to copy and/or distribute it,
  1071. # with or without modifications, as long as this notice is preserved.
  1072. # AM_PROG_MKDIR_P
  1073. # ---------------
  1074. # Check for `mkdir -p'.
  1075. AC_DEFUN([AM_PROG_MKDIR_P],
  1076. [AC_PREREQ([2.60])dnl
  1077. AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  1078. dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
  1079. dnl while keeping a definition of mkdir_p for backward compatibility.
  1080. dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
  1081. dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
  1082. dnl Makefile.ins that do not define MKDIR_P, so we do our own
  1083. dnl adjustment using top_builddir (which is defined more often than
  1084. dnl MKDIR_P).
  1085. AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
  1086. case $mkdir_p in
  1087. [[\\/$]]* | ?:[[\\/]]*) ;;
  1088. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  1089. esac
  1090. ])
  1091. # Helper functions for option handling. -*- Autoconf -*-
  1092. # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
  1093. #
  1094. # This file is free software; the Free Software Foundation
  1095. # gives unlimited permission to copy and/or distribute it,
  1096. # with or without modifications, as long as this notice is preserved.
  1097. # serial 3
  1098. # _AM_MANGLE_OPTION(NAME)
  1099. # -----------------------
  1100. AC_DEFUN([_AM_MANGLE_OPTION],
  1101. [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  1102. # _AM_SET_OPTION(NAME)
  1103. # ------------------------------
  1104. # Set option NAME. Presently that only means defining a flag for this option.
  1105. AC_DEFUN([_AM_SET_OPTION],
  1106. [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
  1107. # _AM_SET_OPTIONS(OPTIONS)
  1108. # ----------------------------------
  1109. # OPTIONS is a space-separated list of Automake options.
  1110. AC_DEFUN([_AM_SET_OPTIONS],
  1111. [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  1112. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  1113. # -------------------------------------------
  1114. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  1115. AC_DEFUN([_AM_IF_OPTION],
  1116. [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  1117. # Check to make sure that the build environment is sane. -*- Autoconf -*-
  1118. # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
  1119. # Free Software Foundation, Inc.
  1120. #
  1121. # This file is free software; the Free Software Foundation
  1122. # gives unlimited permission to copy and/or distribute it,
  1123. # with or without modifications, as long as this notice is preserved.
  1124. # serial 4
  1125. # AM_SANITY_CHECK
  1126. # ---------------
  1127. AC_DEFUN([AM_SANITY_CHECK],
  1128. [AC_MSG_CHECKING([whether build environment is sane])
  1129. # Just in case
  1130. sleep 1
  1131. echo timestamp > conftest.file
  1132. # Do `set' in a subshell so we don't clobber the current shell's
  1133. # arguments. Must try -L first in case configure is actually a
  1134. # symlink; some systems play weird games with the mod time of symlinks
  1135. # (eg FreeBSD returns the mod time of the symlink's containing
  1136. # directory).
  1137. if (
  1138. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1139. if test "$[*]" = "X"; then
  1140. # -L didn't work.
  1141. set X `ls -t $srcdir/configure conftest.file`
  1142. fi
  1143. rm -f conftest.file
  1144. if test "$[*]" != "X $srcdir/configure conftest.file" \
  1145. && test "$[*]" != "X conftest.file $srcdir/configure"; then
  1146. # If neither matched, then we have a broken ls. This can happen
  1147. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1148. # broken ls alias from the environment. This has actually
  1149. # happened. Such a system could not be considered "sane".
  1150. AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  1151. alias in your environment])
  1152. fi
  1153. test "$[2]" = conftest.file
  1154. )
  1155. then
  1156. # Ok.
  1157. :
  1158. else
  1159. AC_MSG_ERROR([newly created file is older than distributed files!
  1160. Check your system clock])
  1161. fi
  1162. AC_MSG_RESULT(yes)])
  1163. # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  1164. #
  1165. # This file is free software; the Free Software Foundation
  1166. # gives unlimited permission to copy and/or distribute it,
  1167. # with or without modifications, as long as this notice is preserved.
  1168. # AM_PROG_INSTALL_STRIP
  1169. # ---------------------
  1170. # One issue with vendor `install' (even GNU) is that you can't
  1171. # specify the program used to strip binaries. This is especially
  1172. # annoying in cross-compiling environments, where the build's strip
  1173. # is unlikely to handle the host's binaries.
  1174. # Fortunately install-sh will honor a STRIPPROG variable, so we
  1175. # always use install-sh in `make install-strip', and initialize
  1176. # STRIPPROG with the value of the STRIP variable (set by the user).
  1177. AC_DEFUN([AM_PROG_INSTALL_STRIP],
  1178. [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  1179. # Installed binaries are usually stripped using `strip' when the user
  1180. # run `make install-strip'. However `strip' might not be the right
  1181. # tool to use in cross-compilation environments, therefore Automake
  1182. # will honor the `STRIP' environment variable to overrule this program.
  1183. dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
  1184. if test "$cross_compiling" != no; then
  1185. AC_CHECK_TOOL([STRIP], [strip], :)
  1186. fi
  1187. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  1188. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  1189. # Copyright (C) 2006 Free Software Foundation, Inc.
  1190. #
  1191. # This file is free software; the Free Software Foundation
  1192. # gives unlimited permission to copy and/or distribute it,
  1193. # with or without modifications, as long as this notice is preserved.
  1194. # _AM_SUBST_NOTMAKE(VARIABLE)
  1195. # ---------------------------
  1196. # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  1197. # This macro is traced by Automake.
  1198. AC_DEFUN([_AM_SUBST_NOTMAKE])
  1199. # Check how to create a tarball. -*- Autoconf -*-
  1200. # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
  1201. #
  1202. # This file is free software; the Free Software Foundation
  1203. # gives unlimited permission to copy and/or distribute it,
  1204. # with or without modifications, as long as this notice is preserved.
  1205. # serial 2
  1206. # _AM_PROG_TAR(FORMAT)
  1207. # --------------------
  1208. # Check how to create a tarball in format FORMAT.
  1209. # FORMAT should be one of `v7', `ustar', or `pax'.
  1210. #
  1211. # Substitute a variable $(am__tar) that is a command
  1212. # writing to stdout a FORMAT-tarball containing the directory
  1213. # $tardir.
  1214. # tardir=directory && $(am__tar) > result.tar
  1215. #
  1216. # Substitute a variable $(am__untar) that extract such
  1217. # a tarball read from stdin.
  1218. # $(am__untar) < result.tar
  1219. AC_DEFUN([_AM_PROG_TAR],
  1220. [# Always define AMTAR for backward compatibility.
  1221. AM_MISSING_PROG([AMTAR], [tar])
  1222. m4_if([$1], [v7],
  1223. [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
  1224. [m4_case([$1], [ustar],, [pax],,
  1225. [m4_fatal([Unknown tar format])])
  1226. AC_MSG_CHECKING([how to create a $1 tar archive])
  1227. # Loop over all known methods to create a tar archive until one works.
  1228. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
  1229. _am_tools=${am_cv_prog_tar_$1-$_am_tools}
  1230. # Do not fold the above two line into one, because Tru64 sh and
  1231. # Solaris sh will not grok spaces in the rhs of `-'.
  1232. for _am_tool in $_am_tools
  1233. do
  1234. case $_am_tool in
  1235. gnutar)
  1236. for _am_tar in tar gnutar gtar;
  1237. do
  1238. AM_RUN_LOG([$_am_tar --version]) && break
  1239. done
  1240. am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
  1241. am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
  1242. am__untar="$_am_tar -xf -"
  1243. ;;
  1244. plaintar)
  1245. # Must skip GNU tar: if it does not support --format= it doesn't create
  1246. # ustar tarball either.
  1247. (tar --version) >/dev/null 2>&1 && continue
  1248. am__tar='tar chf - "$$tardir"'
  1249. am__tar_='tar chf - "$tardir"'
  1250. am__untar='tar xf -'
  1251. ;;
  1252. pax)
  1253. am__tar='pax -L -x $1 -w "$$tardir"'
  1254. am__tar_='pax -L -x $1 -w "$tardir"'
  1255. am__untar='pax -r'
  1256. ;;
  1257. cpio)
  1258. am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
  1259. am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
  1260. am__untar='cpio -i -H $1 -d'
  1261. ;;
  1262. none)
  1263. am__tar=false
  1264. am__tar_=false
  1265. am__untar=false
  1266. ;;
  1267. esac
  1268. # If the value was cached, stop now. We just wanted to have am__tar
  1269. # and am__untar set.
  1270. test -n "${am_cv_prog_tar_$1}" && break
  1271. # tar/untar a dummy directory, and stop if the command works
  1272. rm -rf conftest.dir
  1273. mkdir conftest.dir
  1274. echo GrepMe > conftest.dir/file
  1275. AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
  1276. rm -rf conftest.dir
  1277. if test -s conftest.tar; then
  1278. AM_RUN_LOG([$am__untar <conftest.tar])
  1279. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  1280. fi
  1281. done
  1282. rm -rf conftest.dir
  1283. AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
  1284. AC_MSG_RESULT([$am_cv_prog_tar_$1])])
  1285. AC_SUBST([am__tar])
  1286. AC_SUBST([am__untar])
  1287. ]) # _AM_PROG_TAR
  1288. m4_include([m4/aria2_arg.m4])
  1289. m4_include([m4/codeset.m4])
  1290. m4_include([m4/gettext.m4])
  1291. m4_include([m4/glibc2.m4])
  1292. m4_include([m4/glibc21.m4])
  1293. m4_include([m4/iconv.m4])
  1294. m4_include([m4/intdiv0.m4])
  1295. m4_include([m4/intl.m4])
  1296. m4_include([m4/intlmacosx.m4])
  1297. m4_include([m4/intmax.m4])
  1298. m4_include([m4/inttypes-pri.m4])
  1299. m4_include([m4/inttypes_h.m4])
  1300. m4_include([m4/lcmessage.m4])
  1301. m4_include([m4/lib-ld.m4])
  1302. m4_include([m4/lib-link.m4])
  1303. m4_include([m4/lib-prefix.m4])
  1304. m4_include([m4/libares.m4])
  1305. m4_include([m4/libcares.m4])
  1306. m4_include([m4/libexpat.m4])
  1307. m4_include([m4/libz.m4])
  1308. m4_include([m4/lock.m4])
  1309. m4_include([m4/longlong.m4])
  1310. m4_include([m4/nls.m4])
  1311. m4_include([m4/openssl.m4])
  1312. m4_include([m4/po.m4])
  1313. m4_include([m4/printf-posix.m4])
  1314. m4_include([m4/progtest.m4])
  1315. m4_include([m4/size_max.m4])
  1316. m4_include([m4/sqlite3.m4])
  1317. m4_include([m4/stdint_h.m4])
  1318. m4_include([m4/uintmax_t.m4])
  1319. m4_include([m4/visibility.m4])
  1320. m4_include([m4/wchar_t.m4])
  1321. m4_include([m4/wint_t.m4])
  1322. m4_include([m4/xsize.m4])