traces.0 148 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715
  1. m4trace:/usr/share/aclocal/codeset.m4:10: -1- AC_DEFUN([AM_LANGINFO_CODESET], [
  2. AC_CACHE_CHECK([for nl_langinfo and CODESET], [am_cv_langinfo_codeset],
  3. [AC_LINK_IFELSE(
  4. [AC_LANG_PROGRAM(
  5. [[#include <langinfo.h>]],
  6. [[char* cs = nl_langinfo(CODESET); return !cs;]])],
  7. [am_cv_langinfo_codeset=yes],
  8. [am_cv_langinfo_codeset=no])
  9. ])
  10. if test $am_cv_langinfo_codeset = yes; then
  11. AC_DEFINE([HAVE_LANGINFO_CODESET], [1],
  12. [Define if you have <langinfo.h> and nl_langinfo(CODESET).])
  13. fi
  14. ])
  15. m4trace:/usr/share/aclocal/extern-inline.m4:8: -1- AC_DEFUN([gl_EXTERN_INLINE], [
  16. AH_VERBATIM([extern_inline],
  17. [/* Please see the Gnulib manual for how to use these macros.
  18. Suppress extern inline with HP-UX cc, as it appears to be broken; see
  19. <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>.
  20. Suppress extern inline with Sun C in standards-conformance mode, as it
  21. mishandles inline functions that call each other. E.g., for 'inline void f
  22. (void) { } inline void g (void) { f (); }', c99 incorrectly complains
  23. 'reference to static identifier "f" in extern inline function'.
  24. This bug was observed with Sun C 5.12 SunOS_i386 2011/11/16.
  25. Suppress extern inline (with or without __attribute__ ((__gnu_inline__)))
  26. on configurations that mistakenly use 'static inline' to implement
  27. functions or macros in standard C headers like <ctype.h>. For example,
  28. if isdigit is mistakenly implemented via a static inline function,
  29. a program containing an extern inline function that calls isdigit
  30. may not work since the C standard prohibits extern inline functions
  31. from calling static functions. This bug is known to occur on:
  32. OS X 10.8 and earlier; see:
  33. http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html
  34. DragonFly; see
  35. http://muscles.dragonflybsd.org/bulk/bleeding-edge-potential/latest-per-pkg/ah-tty-0.3.12.log
  36. FreeBSD; see:
  37. http://lists.gnu.org/archive/html/bug-gnulib/2014-07/msg00104.html
  38. OS X 10.9 has a macro __header_inline indicating the bug is fixed for C and
  39. for clang but remains for g++; see <http://trac.macports.org/ticket/41033>.
  40. Assume DragonFly and FreeBSD will be similar. */
  41. #if (((defined __APPLE__ && defined __MACH__) \
  42. || defined __DragonFly__ || defined __FreeBSD__) \
  43. && (defined __header_inline \
  44. ? (defined __cplusplus && defined __GNUC_STDC_INLINE__ \
  45. && ! defined __clang__) \
  46. : ((! defined _DONT_USE_CTYPE_INLINE_ \
  47. && (defined __GNUC__ || defined __cplusplus)) \
  48. || (defined _FORTIFY_SOURCE && 0 < _FORTIFY_SOURCE \
  49. && defined __GNUC__ && ! defined __cplusplus))))
  50. # define _GL_EXTERN_INLINE_STDHEADER_BUG
  51. #endif
  52. #if ((__GNUC__ \
  53. ? defined __GNUC_STDC_INLINE__ && __GNUC_STDC_INLINE__ \
  54. : (199901L <= __STDC_VERSION__ \
  55. && !defined __HP_cc \
  56. && !defined __PGI \
  57. && !(defined __SUNPRO_C && __STDC__))) \
  58. && !defined _GL_EXTERN_INLINE_STDHEADER_BUG)
  59. # define _GL_INLINE inline
  60. # define _GL_EXTERN_INLINE extern inline
  61. # define _GL_EXTERN_INLINE_IN_USE
  62. #elif (2 < __GNUC__ + (7 <= __GNUC_MINOR__) && !defined __STRICT_ANSI__ \
  63. && !defined _GL_EXTERN_INLINE_STDHEADER_BUG)
  64. # if defined __GNUC_GNU_INLINE__ && __GNUC_GNU_INLINE__
  65. /* __gnu_inline__ suppresses a GCC 4.2 diagnostic. */
  66. # define _GL_INLINE extern inline __attribute__ ((__gnu_inline__))
  67. # else
  68. # define _GL_INLINE extern inline
  69. # endif
  70. # define _GL_EXTERN_INLINE extern
  71. # define _GL_EXTERN_INLINE_IN_USE
  72. #else
  73. # define _GL_INLINE static _GL_UNUSED
  74. # define _GL_EXTERN_INLINE static _GL_UNUSED
  75. #endif
  76. /* In GCC 4.6 (inclusive) to 5.1 (exclusive),
  77. suppress bogus "no previous prototype for 'FOO'"
  78. and "no previous declaration for 'FOO'" diagnostics,
  79. when FOO is an inline function in the header; see
  80. <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54113> and
  81. <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63877>. */
  82. #if __GNUC__ == 4 && 6 <= __GNUC_MINOR__
  83. # if defined __GNUC_STDC_INLINE__ && __GNUC_STDC_INLINE__
  84. # define _GL_INLINE_HEADER_CONST_PRAGMA
  85. # else
  86. # define _GL_INLINE_HEADER_CONST_PRAGMA \
  87. _Pragma ("GCC diagnostic ignored \"-Wsuggest-attribute=const\"")
  88. # endif
  89. # define _GL_INLINE_HEADER_BEGIN \
  90. _Pragma ("GCC diagnostic push") \
  91. _Pragma ("GCC diagnostic ignored \"-Wmissing-prototypes\"") \
  92. _Pragma ("GCC diagnostic ignored \"-Wmissing-declarations\"") \
  93. _GL_INLINE_HEADER_CONST_PRAGMA
  94. # define _GL_INLINE_HEADER_END \
  95. _Pragma ("GCC diagnostic pop")
  96. #else
  97. # define _GL_INLINE_HEADER_BEGIN
  98. # define _GL_INLINE_HEADER_END
  99. #endif])
  100. ])
  101. m4trace:/usr/share/aclocal/fcntl-o.m4:12: -1- AC_DEFUN([gl_FCNTL_O_FLAGS], [
  102. dnl Persuade glibc <fcntl.h> to define O_NOATIME and O_NOFOLLOW.
  103. dnl AC_USE_SYSTEM_EXTENSIONS was introduced in autoconf 2.60 and obsoletes
  104. dnl AC_GNU_SOURCE.
  105. m4_ifdef([AC_USE_SYSTEM_EXTENSIONS],
  106. [AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])],
  107. [AC_REQUIRE([AC_GNU_SOURCE])])
  108. AC_CHECK_HEADERS_ONCE([unistd.h])
  109. AC_CHECK_FUNCS_ONCE([symlink])
  110. AC_CACHE_CHECK([for working fcntl.h], [gl_cv_header_working_fcntl_h],
  111. [AC_RUN_IFELSE(
  112. [AC_LANG_PROGRAM(
  113. [[#include <sys/types.h>
  114. #include <sys/stat.h>
  115. #if HAVE_UNISTD_H
  116. # include <unistd.h>
  117. #else /* on Windows with MSVC */
  118. # include <io.h>
  119. # include <stdlib.h>
  120. # defined sleep(n) _sleep ((n) * 1000)
  121. #endif
  122. #include <fcntl.h>
  123. #ifndef O_NOATIME
  124. #define O_NOATIME 0
  125. #endif
  126. #ifndef O_NOFOLLOW
  127. #define O_NOFOLLOW 0
  128. #endif
  129. static int const constants[] =
  130. {
  131. O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
  132. O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
  133. };
  134. ]],
  135. [[
  136. int result = !constants;
  137. #if HAVE_SYMLINK
  138. {
  139. static char const sym[] = "conftest.sym";
  140. if (symlink ("/dev/null", sym) != 0)
  141. result |= 2;
  142. else
  143. {
  144. int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
  145. if (fd >= 0)
  146. {
  147. close (fd);
  148. result |= 4;
  149. }
  150. }
  151. if (unlink (sym) != 0 || symlink (".", sym) != 0)
  152. result |= 2;
  153. else
  154. {
  155. int fd = open (sym, O_RDONLY | O_NOFOLLOW);
  156. if (fd >= 0)
  157. {
  158. close (fd);
  159. result |= 4;
  160. }
  161. }
  162. unlink (sym);
  163. }
  164. #endif
  165. {
  166. static char const file[] = "confdefs.h";
  167. int fd = open (file, O_RDONLY | O_NOATIME);
  168. if (fd < 0)
  169. result |= 8;
  170. else
  171. {
  172. struct stat st0;
  173. if (fstat (fd, &st0) != 0)
  174. result |= 16;
  175. else
  176. {
  177. char c;
  178. sleep (1);
  179. if (read (fd, &c, 1) != 1)
  180. result |= 24;
  181. else
  182. {
  183. if (close (fd) != 0)
  184. result |= 32;
  185. else
  186. {
  187. struct stat st1;
  188. if (stat (file, &st1) != 0)
  189. result |= 40;
  190. else
  191. if (st0.st_atime != st1.st_atime)
  192. result |= 64;
  193. }
  194. }
  195. }
  196. }
  197. }
  198. return result;]])],
  199. [gl_cv_header_working_fcntl_h=yes],
  200. [case $? in #(
  201. 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
  202. 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
  203. 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
  204. *) gl_cv_header_working_fcntl_h='no';;
  205. esac],
  206. [gl_cv_header_working_fcntl_h=cross-compiling])])
  207. case $gl_cv_header_working_fcntl_h in #(
  208. *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
  209. *) ac_val=1;;
  210. esac
  211. AC_DEFINE_UNQUOTED([HAVE_WORKING_O_NOATIME], [$ac_val],
  212. [Define to 1 if O_NOATIME works.])
  213. case $gl_cv_header_working_fcntl_h in #(
  214. *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
  215. *) ac_val=1;;
  216. esac
  217. AC_DEFINE_UNQUOTED([HAVE_WORKING_O_NOFOLLOW], [$ac_val],
  218. [Define to 1 if O_NOFOLLOW works.])
  219. ])
  220. m4trace:/usr/share/aclocal/gettext.m4:57: -1- AC_DEFUN([AM_GNU_GETTEXT], [
  221. dnl Argument checking.
  222. ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], ,
  223. [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT
  224. ])])])])])
  225. ifelse(ifelse([$1], [], [old])[]ifelse([$1], [no-libtool], [old]), [old],
  226. [AC_DIAGNOSE([obsolete], [Use of AM_GNU_GETTEXT without [external] argument is deprecated.])])
  227. ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], ,
  228. [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT
  229. ])])])])
  230. define([gt_included_intl],
  231. ifelse([$1], [external],
  232. ifdef([AM_GNU_GETTEXT_][INTL_SUBDIR], [yes], [no]),
  233. [yes]))
  234. define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], []))
  235. gt_NEEDS_INIT
  236. AM_GNU_GETTEXT_NEED([$2])
  237. AC_REQUIRE([AM_PO_SUBDIRS])dnl
  238. ifelse(gt_included_intl, yes, [
  239. AC_REQUIRE([AM_INTL_SUBDIR])dnl
  240. ])
  241. dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
  242. AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
  243. AC_REQUIRE([AC_LIB_RPATH])
  244. dnl Sometimes libintl requires libiconv, so first search for libiconv.
  245. dnl Ideally we would do this search only after the
  246. dnl if test "$USE_NLS" = "yes"; then
  247. dnl if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  248. dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT
  249. dnl the configure script would need to contain the same shell code
  250. dnl again, outside any 'if'. There are two solutions:
  251. dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'.
  252. dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE.
  253. dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not
  254. dnl documented, we avoid it.
  255. ifelse(gt_included_intl, yes, , [
  256. AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
  257. ])
  258. dnl Sometimes, on Mac OS X, libintl requires linking with CoreFoundation.
  259. gt_INTL_MACOSX
  260. dnl Set USE_NLS.
  261. AC_REQUIRE([AM_NLS])
  262. ifelse(gt_included_intl, yes, [
  263. BUILD_INCLUDED_LIBINTL=no
  264. USE_INCLUDED_LIBINTL=no
  265. ])
  266. LIBINTL=
  267. LTLIBINTL=
  268. POSUB=
  269. dnl Add a version number to the cache macros.
  270. case " $gt_needs " in
  271. *" need-formatstring-macros "*) gt_api_version=3 ;;
  272. *" need-ngettext "*) gt_api_version=2 ;;
  273. *) gt_api_version=1 ;;
  274. esac
  275. gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  276. gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  277. dnl If we use NLS figure out what method
  278. if test "$USE_NLS" = "yes"; then
  279. gt_use_preinstalled_gnugettext=no
  280. ifelse(gt_included_intl, yes, [
  281. AC_MSG_CHECKING([whether included gettext is requested])
  282. AC_ARG_WITH([included-gettext],
  283. [ --with-included-gettext use the GNU gettext library included here],
  284. nls_cv_force_use_gnu_gettext=$withval,
  285. nls_cv_force_use_gnu_gettext=no)
  286. AC_MSG_RESULT([$nls_cv_force_use_gnu_gettext])
  287. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  288. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  289. ])
  290. dnl User does not insist on using GNU NLS library. Figure out what
  291. dnl to use. If GNU gettext is available we use this. Else we have
  292. dnl to fall back to GNU NLS library.
  293. if test $gt_api_version -ge 3; then
  294. gt_revision_test_code='
  295. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  296. #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  297. #endif
  298. changequote(,)dnl
  299. typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  300. changequote([,])dnl
  301. '
  302. else
  303. gt_revision_test_code=
  304. fi
  305. if test $gt_api_version -ge 2; then
  306. gt_expression_test_code=' + * ngettext ("", "", 0)'
  307. else
  308. gt_expression_test_code=
  309. fi
  310. AC_CACHE_CHECK([for GNU gettext in libc], [$gt_func_gnugettext_libc],
  311. [AC_LINK_IFELSE(
  312. [AC_LANG_PROGRAM(
  313. [[
  314. #include <libintl.h>
  315. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  316. extern int _nl_msg_cat_cntr;
  317. extern int *_nl_domain_bindings;
  318. #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
  319. #else
  320. #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
  321. #endif
  322. $gt_revision_test_code
  323. ]],
  324. [[
  325. bindtextdomain ("", "");
  326. return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
  327. ]])],
  328. [eval "$gt_func_gnugettext_libc=yes"],
  329. [eval "$gt_func_gnugettext_libc=no"])])
  330. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  331. dnl Sometimes libintl requires libiconv, so first search for libiconv.
  332. ifelse(gt_included_intl, yes, , [
  333. AM_ICONV_LINK
  334. ])
  335. dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL
  336. dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv])
  337. dnl because that would add "-liconv" to LIBINTL and LTLIBINTL
  338. dnl even if libiconv doesn't exist.
  339. AC_LIB_LINKFLAGS_BODY([intl])
  340. AC_CACHE_CHECK([for GNU gettext in libintl],
  341. [$gt_func_gnugettext_libintl],
  342. [gt_save_CPPFLAGS="$CPPFLAGS"
  343. CPPFLAGS="$CPPFLAGS $INCINTL"
  344. gt_save_LIBS="$LIBS"
  345. LIBS="$LIBS $LIBINTL"
  346. dnl Now see whether libintl exists and does not depend on libiconv.
  347. AC_LINK_IFELSE(
  348. [AC_LANG_PROGRAM(
  349. [[
  350. #include <libintl.h>
  351. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  352. extern int _nl_msg_cat_cntr;
  353. extern
  354. #ifdef __cplusplus
  355. "C"
  356. #endif
  357. const char *_nl_expand_alias (const char *);
  358. #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
  359. #else
  360. #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
  361. #endif
  362. $gt_revision_test_code
  363. ]],
  364. [[
  365. bindtextdomain ("", "");
  366. return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
  367. ]])],
  368. [eval "$gt_func_gnugettext_libintl=yes"],
  369. [eval "$gt_func_gnugettext_libintl=no"])
  370. dnl Now see whether libintl exists and depends on libiconv.
  371. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  372. LIBS="$LIBS $LIBICONV"
  373. AC_LINK_IFELSE(
  374. [AC_LANG_PROGRAM(
  375. [[
  376. #include <libintl.h>
  377. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  378. extern int _nl_msg_cat_cntr;
  379. extern
  380. #ifdef __cplusplus
  381. "C"
  382. #endif
  383. const char *_nl_expand_alias (const char *);
  384. #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
  385. #else
  386. #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
  387. #endif
  388. $gt_revision_test_code
  389. ]],
  390. [[
  391. bindtextdomain ("", "");
  392. return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
  393. ]])],
  394. [LIBINTL="$LIBINTL $LIBICONV"
  395. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  396. eval "$gt_func_gnugettext_libintl=yes"
  397. ])
  398. fi
  399. CPPFLAGS="$gt_save_CPPFLAGS"
  400. LIBS="$gt_save_LIBS"])
  401. fi
  402. dnl If an already present or preinstalled GNU gettext() is found,
  403. dnl use it. But if this macro is used in GNU gettext, and GNU
  404. dnl gettext is already preinstalled in libintl, we update this
  405. dnl libintl. (Cf. the install rule in intl/Makefile.in.)
  406. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  407. || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  408. && test "$PACKAGE" != gettext-runtime \
  409. && test "$PACKAGE" != gettext-tools; }; then
  410. gt_use_preinstalled_gnugettext=yes
  411. else
  412. dnl Reset the values set by searching for libintl.
  413. LIBINTL=
  414. LTLIBINTL=
  415. INCINTL=
  416. fi
  417. ifelse(gt_included_intl, yes, [
  418. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  419. dnl GNU gettext is not found in the C library.
  420. dnl Fall back on included GNU gettext library.
  421. nls_cv_use_gnu_gettext=yes
  422. fi
  423. fi
  424. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  425. dnl Mark actions used to generate GNU NLS library.
  426. BUILD_INCLUDED_LIBINTL=yes
  427. USE_INCLUDED_LIBINTL=yes
  428. LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV $LIBTHREAD"
  429. LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV $LTLIBTHREAD"
  430. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  431. fi
  432. CATOBJEXT=
  433. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  434. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  435. dnl Mark actions to use GNU gettext tools.
  436. CATOBJEXT=.gmo
  437. fi
  438. ])
  439. if test -n "$INTL_MACOSX_LIBS"; then
  440. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  441. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  442. dnl Some extra flags are needed during linking.
  443. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  444. LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  445. fi
  446. fi
  447. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  448. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  449. AC_DEFINE([ENABLE_NLS], [1],
  450. [Define to 1 if translation of program messages to the user's native language
  451. is requested.])
  452. else
  453. USE_NLS=no
  454. fi
  455. fi
  456. AC_MSG_CHECKING([whether to use NLS])
  457. AC_MSG_RESULT([$USE_NLS])
  458. if test "$USE_NLS" = "yes"; then
  459. AC_MSG_CHECKING([where the gettext function comes from])
  460. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  461. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  462. gt_source="external libintl"
  463. else
  464. gt_source="libc"
  465. fi
  466. else
  467. gt_source="included intl directory"
  468. fi
  469. AC_MSG_RESULT([$gt_source])
  470. fi
  471. if test "$USE_NLS" = "yes"; then
  472. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  473. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  474. AC_MSG_CHECKING([how to link with libintl])
  475. AC_MSG_RESULT([$LIBINTL])
  476. AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL])
  477. fi
  478. dnl For backward compatibility. Some packages may be using this.
  479. AC_DEFINE([HAVE_GETTEXT], [1],
  480. [Define if the GNU gettext() function is already present or preinstalled.])
  481. AC_DEFINE([HAVE_DCGETTEXT], [1],
  482. [Define if the GNU dcgettext() function is already present or preinstalled.])
  483. fi
  484. dnl We need to process the po/ directory.
  485. POSUB=po
  486. fi
  487. ifelse(gt_included_intl, yes, [
  488. dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL
  489. dnl to 'yes' because some of the testsuite requires it.
  490. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  491. BUILD_INCLUDED_LIBINTL=yes
  492. fi
  493. dnl Make all variables we use known to autoconf.
  494. AC_SUBST([BUILD_INCLUDED_LIBINTL])
  495. AC_SUBST([USE_INCLUDED_LIBINTL])
  496. AC_SUBST([CATOBJEXT])
  497. dnl For backward compatibility. Some configure.ins may be using this.
  498. nls_cv_header_intl=
  499. nls_cv_header_libgt=
  500. dnl For backward compatibility. Some Makefiles may be using this.
  501. DATADIRNAME=share
  502. AC_SUBST([DATADIRNAME])
  503. dnl For backward compatibility. Some Makefiles may be using this.
  504. INSTOBJEXT=.mo
  505. AC_SUBST([INSTOBJEXT])
  506. dnl For backward compatibility. Some Makefiles may be using this.
  507. GENCAT=gencat
  508. AC_SUBST([GENCAT])
  509. dnl For backward compatibility. Some Makefiles may be using this.
  510. INTLOBJS=
  511. if test "$USE_INCLUDED_LIBINTL" = yes; then
  512. INTLOBJS="\$(GETTOBJS)"
  513. fi
  514. AC_SUBST([INTLOBJS])
  515. dnl Enable libtool support if the surrounding package wishes it.
  516. INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix
  517. AC_SUBST([INTL_LIBTOOL_SUFFIX_PREFIX])
  518. ])
  519. dnl For backward compatibility. Some Makefiles may be using this.
  520. INTLLIBS="$LIBINTL"
  521. AC_SUBST([INTLLIBS])
  522. dnl Make all documented variables known to autoconf.
  523. AC_SUBST([LIBINTL])
  524. AC_SUBST([LTLIBINTL])
  525. AC_SUBST([POSUB])
  526. ])
  527. m4trace:/usr/share/aclocal/gettext.m4:409: -1- AC_DEFUN([AM_GNU_GETTEXT_NEED], [
  528. m4_divert_text([INIT_PREPARE], [gt_needs="$gt_needs $1"])
  529. ])
  530. m4trace:/usr/share/aclocal/gettext.m4:416: -1- AC_DEFUN([AM_GNU_GETTEXT_VERSION], [])
  531. m4trace:/usr/share/aclocal/gettext.m4:420: -1- AC_DEFUN([AM_GNU_GETTEXT_REQUIRE_VERSION], [])
  532. m4trace:/usr/share/aclocal/glibc2.m4:11: -1- AC_DEFUN([gt_GLIBC2], [
  533. AC_CACHE_CHECK([whether we are using the GNU C Library 2 or newer],
  534. [ac_cv_gnu_library_2],
  535. [AC_EGREP_CPP([Lucky GNU user],
  536. [
  537. #include <features.h>
  538. #ifdef __GNU_LIBRARY__
  539. #if (__GLIBC__ >= 2) && !defined __UCLIBC__
  540. Lucky GNU user
  541. #endif
  542. #endif
  543. ],
  544. [ac_cv_gnu_library_2=yes],
  545. [ac_cv_gnu_library_2=no])
  546. ]
  547. )
  548. AC_SUBST([GLIBC2])
  549. GLIBC2="$ac_cv_gnu_library_2"
  550. ])
  551. m4trace:/usr/share/aclocal/glibc21.m4:11: -1- AC_DEFUN([gl_GLIBC21], [
  552. AC_CACHE_CHECK([whether we are using the GNU C Library >= 2.1 or uClibc],
  553. [ac_cv_gnu_library_2_1],
  554. [AC_EGREP_CPP([Lucky],
  555. [
  556. #include <features.h>
  557. #ifdef __GNU_LIBRARY__
  558. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  559. Lucky GNU user
  560. #endif
  561. #endif
  562. #ifdef __UCLIBC__
  563. Lucky user
  564. #endif
  565. ],
  566. [ac_cv_gnu_library_2_1=yes],
  567. [ac_cv_gnu_library_2_1=no])
  568. ]
  569. )
  570. AC_SUBST([GLIBC21])
  571. GLIBC21="$ac_cv_gnu_library_2_1"
  572. ])
  573. m4trace:/usr/share/aclocal/iconv.m4:9: -1- AC_DEFUN([AM_ICONV_LINKFLAGS_BODY], [
  574. dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
  575. AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
  576. AC_REQUIRE([AC_LIB_RPATH])
  577. dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
  578. dnl accordingly.
  579. AC_LIB_LINKFLAGS_BODY([iconv])
  580. ])
  581. m4trace:/usr/share/aclocal/iconv.m4:20: -1- AC_DEFUN([AM_ICONV_LINK], [
  582. dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and
  583. dnl those with the standalone portable GNU libiconv installed).
  584. AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
  585. dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
  586. dnl accordingly.
  587. AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
  588. dnl Add $INCICONV to CPPFLAGS before performing the following checks,
  589. dnl because if the user has installed libiconv and not disabled its use
  590. dnl via --without-libiconv-prefix, he wants to use it. The first
  591. dnl AC_LINK_IFELSE will then fail, the second AC_LINK_IFELSE will succeed.
  592. am_save_CPPFLAGS="$CPPFLAGS"
  593. AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV])
  594. AC_CACHE_CHECK([for iconv], [am_cv_func_iconv], [
  595. am_cv_func_iconv="no, consider installing GNU libiconv"
  596. am_cv_lib_iconv=no
  597. AC_LINK_IFELSE(
  598. [AC_LANG_PROGRAM(
  599. [[
  600. #include <stdlib.h>
  601. #include <iconv.h>
  602. ]],
  603. [[iconv_t cd = iconv_open("","");
  604. iconv(cd,NULL,NULL,NULL,NULL);
  605. iconv_close(cd);]])],
  606. [am_cv_func_iconv=yes])
  607. if test "$am_cv_func_iconv" != yes; then
  608. am_save_LIBS="$LIBS"
  609. LIBS="$LIBS $LIBICONV"
  610. AC_LINK_IFELSE(
  611. [AC_LANG_PROGRAM(
  612. [[
  613. #include <stdlib.h>
  614. #include <iconv.h>
  615. ]],
  616. [[iconv_t cd = iconv_open("","");
  617. iconv(cd,NULL,NULL,NULL,NULL);
  618. iconv_close(cd);]])],
  619. [am_cv_lib_iconv=yes]
  620. [am_cv_func_iconv=yes])
  621. LIBS="$am_save_LIBS"
  622. fi
  623. ])
  624. if test "$am_cv_func_iconv" = yes; then
  625. AC_CACHE_CHECK([for working iconv], [am_cv_func_iconv_works], [
  626. dnl This tests against bugs in AIX 5.1, AIX 6.1..7.1, HP-UX 11.11,
  627. dnl Solaris 10.
  628. am_save_LIBS="$LIBS"
  629. if test $am_cv_lib_iconv = yes; then
  630. LIBS="$LIBS $LIBICONV"
  631. fi
  632. am_cv_func_iconv_works=no
  633. for ac_iconv_const in '' 'const'; do
  634. AC_RUN_IFELSE(
  635. [AC_LANG_PROGRAM(
  636. [[
  637. #include <iconv.h>
  638. #include <string.h>
  639. #ifndef ICONV_CONST
  640. # define ICONV_CONST $ac_iconv_const
  641. #endif
  642. ]],
  643. [[int result = 0;
  644. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  645. returns. */
  646. {
  647. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  648. if (cd_utf8_to_88591 != (iconv_t)(-1))
  649. {
  650. static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
  651. char buf[10];
  652. ICONV_CONST char *inptr = input;
  653. size_t inbytesleft = strlen (input);
  654. char *outptr = buf;
  655. size_t outbytesleft = sizeof (buf);
  656. size_t res = iconv (cd_utf8_to_88591,
  657. &inptr, &inbytesleft,
  658. &outptr, &outbytesleft);
  659. if (res == 0)
  660. result |= 1;
  661. iconv_close (cd_utf8_to_88591);
  662. }
  663. }
  664. /* Test against Solaris 10 bug: Failures are not distinguishable from
  665. successful returns. */
  666. {
  667. iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
  668. if (cd_ascii_to_88591 != (iconv_t)(-1))
  669. {
  670. static ICONV_CONST char input[] = "\263";
  671. char buf[10];
  672. ICONV_CONST char *inptr = input;
  673. size_t inbytesleft = strlen (input);
  674. char *outptr = buf;
  675. size_t outbytesleft = sizeof (buf);
  676. size_t res = iconv (cd_ascii_to_88591,
  677. &inptr, &inbytesleft,
  678. &outptr, &outbytesleft);
  679. if (res == 0)
  680. result |= 2;
  681. iconv_close (cd_ascii_to_88591);
  682. }
  683. }
  684. /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
  685. {
  686. iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
  687. if (cd_88591_to_utf8 != (iconv_t)(-1))
  688. {
  689. static ICONV_CONST char input[] = "\304";
  690. static char buf[2] = { (char)0xDE, (char)0xAD };
  691. ICONV_CONST char *inptr = input;
  692. size_t inbytesleft = 1;
  693. char *outptr = buf;
  694. size_t outbytesleft = 1;
  695. size_t res = iconv (cd_88591_to_utf8,
  696. &inptr, &inbytesleft,
  697. &outptr, &outbytesleft);
  698. if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
  699. result |= 4;
  700. iconv_close (cd_88591_to_utf8);
  701. }
  702. }
  703. #if 0 /* This bug could be worked around by the caller. */
  704. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  705. {
  706. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  707. if (cd_88591_to_utf8 != (iconv_t)(-1))
  708. {
  709. static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  710. char buf[50];
  711. ICONV_CONST char *inptr = input;
  712. size_t inbytesleft = strlen (input);
  713. char *outptr = buf;
  714. size_t outbytesleft = sizeof (buf);
  715. size_t res = iconv (cd_88591_to_utf8,
  716. &inptr, &inbytesleft,
  717. &outptr, &outbytesleft);
  718. if ((int)res > 0)
  719. result |= 8;
  720. iconv_close (cd_88591_to_utf8);
  721. }
  722. }
  723. #endif
  724. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  725. provided. */
  726. if (/* Try standardized names. */
  727. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  728. /* Try IRIX, OSF/1 names. */
  729. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  730. /* Try AIX names. */
  731. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  732. /* Try HP-UX names. */
  733. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  734. result |= 16;
  735. return result;
  736. ]])],
  737. [am_cv_func_iconv_works=yes], ,
  738. [case "$host_os" in
  739. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  740. *) am_cv_func_iconv_works="guessing yes" ;;
  741. esac])
  742. test "$am_cv_func_iconv_works" = no || break
  743. done
  744. LIBS="$am_save_LIBS"
  745. ])
  746. case "$am_cv_func_iconv_works" in
  747. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  748. *) am_func_iconv=yes ;;
  749. esac
  750. else
  751. am_func_iconv=no am_cv_lib_iconv=no
  752. fi
  753. if test "$am_func_iconv" = yes; then
  754. AC_DEFINE([HAVE_ICONV], [1],
  755. [Define if you have the iconv() function and it works.])
  756. fi
  757. if test "$am_cv_lib_iconv" = yes; then
  758. AC_MSG_CHECKING([how to link with libiconv])
  759. AC_MSG_RESULT([$LIBICONV])
  760. else
  761. dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV
  762. dnl either.
  763. CPPFLAGS="$am_save_CPPFLAGS"
  764. LIBICONV=
  765. LTLIBICONV=
  766. fi
  767. AC_SUBST([LIBICONV])
  768. AC_SUBST([LTLIBICONV])
  769. ])
  770. m4trace:/usr/share/aclocal/iconv.m4:233: -1- AC_DEFUN_ONCE([AM_ICONV], [
  771. AM_ICONV_LINK
  772. if test "$am_cv_func_iconv" = yes; then
  773. AC_MSG_CHECKING([for iconv declaration])
  774. AC_CACHE_VAL([am_cv_proto_iconv], [
  775. AC_COMPILE_IFELSE(
  776. [AC_LANG_PROGRAM(
  777. [[
  778. #include <stdlib.h>
  779. #include <iconv.h>
  780. extern
  781. #ifdef __cplusplus
  782. "C"
  783. #endif
  784. #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
  785. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  786. #else
  787. size_t iconv();
  788. #endif
  789. ]],
  790. [[]])],
  791. [am_cv_proto_iconv_arg1=""],
  792. [am_cv_proto_iconv_arg1="const"])
  793. am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"])
  794. am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  795. AC_MSG_RESULT([
  796. $am_cv_proto_iconv])
  797. AC_DEFINE_UNQUOTED([ICONV_CONST], [$am_cv_proto_iconv_arg1],
  798. [Define as const if the declaration of iconv() needs const.])
  799. dnl Also substitute ICONV_CONST in the gnulib generated <iconv.h>.
  800. m4_ifdef([gl_ICONV_H_DEFAULTS],
  801. [AC_REQUIRE([gl_ICONV_H_DEFAULTS])
  802. if test -n "$am_cv_proto_iconv_arg1"; then
  803. ICONV_CONST="const"
  804. fi
  805. ])
  806. fi
  807. ])
  808. m4trace:/usr/share/aclocal/intdiv0.m4:9: -1- AC_DEFUN([gt_INTDIV0], [
  809. AC_REQUIRE([AC_PROG_CC])dnl
  810. AC_REQUIRE([AC_CANONICAL_HOST])dnl
  811. AC_CACHE_CHECK([whether integer division by zero raises SIGFPE],
  812. gt_cv_int_divbyzero_sigfpe,
  813. [
  814. gt_cv_int_divbyzero_sigfpe=
  815. changequote(,)dnl
  816. case "$host_os" in
  817. macos* | darwin[6-9]* | darwin[1-9][0-9]*)
  818. # On Mac OS X 10.2 or newer, just assume the same as when cross-
  819. # compiling. If we were to perform the real test, 1 Crash Report
  820. # dialog window would pop up.
  821. case "$host_cpu" in
  822. i[34567]86 | x86_64)
  823. gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
  824. esac
  825. ;;
  826. esac
  827. changequote([,])dnl
  828. if test -z "$gt_cv_int_divbyzero_sigfpe"; then
  829. AC_RUN_IFELSE(
  830. [AC_LANG_SOURCE([[
  831. #include <stdlib.h>
  832. #include <signal.h>
  833. static void
  834. sigfpe_handler (int sig)
  835. {
  836. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  837. _exit (sig != SIGFPE);
  838. }
  839. int x = 1;
  840. int y = 0;
  841. int z;
  842. int nan;
  843. int main ()
  844. {
  845. signal (SIGFPE, sigfpe_handler);
  846. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  847. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  848. signal (SIGTRAP, sigfpe_handler);
  849. #endif
  850. /* Linux/SPARC yields signal SIGILL. */
  851. #if defined (__sparc__) && defined (__linux__)
  852. signal (SIGILL, sigfpe_handler);
  853. #endif
  854. z = x / y;
  855. nan = y / y;
  856. exit (2);
  857. }
  858. ]])],
  859. [gt_cv_int_divbyzero_sigfpe=yes],
  860. [gt_cv_int_divbyzero_sigfpe=no],
  861. [
  862. # Guess based on the CPU.
  863. changequote(,)dnl
  864. case "$host_cpu" in
  865. alpha* | i[34567]86 | x86_64 | m68k | s390*)
  866. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  867. *)
  868. gt_cv_int_divbyzero_sigfpe="guessing no";;
  869. esac
  870. changequote([,])dnl
  871. ])
  872. fi
  873. ])
  874. case "$gt_cv_int_divbyzero_sigfpe" in
  875. *yes) value=1;;
  876. *) value=0;;
  877. esac
  878. AC_DEFINE_UNQUOTED([INTDIV0_RAISES_SIGFPE], [$value],
  879. [Define if integer division by zero raises signal SIGFPE.])
  880. ])
  881. m4trace:/usr/share/aclocal/intl.m4:25: -1- AC_DEFUN([AM_INTL_SUBDIR], [
  882. AC_REQUIRE([AC_PROG_INSTALL])dnl
  883. AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  884. AC_REQUIRE([AC_PROG_CC])dnl
  885. AC_REQUIRE([AC_CANONICAL_HOST])dnl
  886. AC_REQUIRE([gt_GLIBC2])dnl
  887. AC_REQUIRE([AC_PROG_RANLIB])dnl
  888. AC_REQUIRE([gl_VISIBILITY])dnl
  889. AC_REQUIRE([gt_INTL_SUBDIR_CORE])dnl
  890. AC_REQUIRE([AC_TYPE_LONG_LONG_INT])dnl
  891. AC_REQUIRE([gt_TYPE_WCHAR_T])dnl
  892. AC_REQUIRE([gt_TYPE_WINT_T])dnl
  893. AC_REQUIRE([gl_AC_HEADER_INTTYPES_H])
  894. AC_REQUIRE([gt_TYPE_INTMAX_T])
  895. AC_REQUIRE([gt_PRINTF_POSIX])
  896. AC_REQUIRE([gl_GLIBC21])dnl
  897. AC_REQUIRE([gl_XSIZE])dnl
  898. AC_REQUIRE([gl_FCNTL_O_FLAGS])dnl
  899. AC_REQUIRE([gt_INTL_MACOSX])dnl
  900. AC_REQUIRE([gl_EXTERN_INLINE])dnl
  901. AC_REQUIRE([gt_GL_ATTRIBUTE])dnl
  902. dnl Support for automake's --enable-silent-rules.
  903. case "$enable_silent_rules" in
  904. yes) INTL_DEFAULT_VERBOSITY=0;;
  905. no) INTL_DEFAULT_VERBOSITY=1;;
  906. *) INTL_DEFAULT_VERBOSITY=1;;
  907. esac
  908. AC_SUBST([INTL_DEFAULT_VERBOSITY])
  909. AC_CHECK_TYPE([ptrdiff_t], ,
  910. [AC_DEFINE([ptrdiff_t], [long],
  911. [Define as the type of the result of subtracting two pointers, if the system doesn't define it.])
  912. ])
  913. AC_CHECK_HEADERS([features.h stddef.h stdlib.h string.h])
  914. AC_CHECK_FUNCS([asprintf fwprintf newlocale putenv setenv setlocale \
  915. snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb])
  916. dnl Use the _snprintf function only if it is declared (because on NetBSD it
  917. dnl is defined as a weak alias of snprintf; we prefer to use the latter).
  918. AC_CHECK_DECLS([_snprintf, _snwprintf], , , [#include <stdio.h>])
  919. dnl Use the *_unlocked functions only if they are declared.
  920. dnl (because some of them were defined without being declared in Solaris
  921. dnl 2.5.1 but were removed in Solaris 2.6, whereas we want binaries built
  922. dnl on Solaris 2.5.1 to run on Solaris 2.6).
  923. AC_CHECK_DECLS([getc_unlocked], , , [#include <stdio.h>])
  924. case $gt_cv_func_printf_posix in
  925. *yes) HAVE_POSIX_PRINTF=1 ;;
  926. *) HAVE_POSIX_PRINTF=0 ;;
  927. esac
  928. AC_SUBST([HAVE_POSIX_PRINTF])
  929. if test "$ac_cv_func_asprintf" = yes; then
  930. HAVE_ASPRINTF=1
  931. else
  932. HAVE_ASPRINTF=0
  933. fi
  934. AC_SUBST([HAVE_ASPRINTF])
  935. if test "$ac_cv_func_snprintf" = yes; then
  936. HAVE_SNPRINTF=1
  937. else
  938. HAVE_SNPRINTF=0
  939. fi
  940. AC_SUBST([HAVE_SNPRINTF])
  941. if test "$ac_cv_func_newlocale" = yes; then
  942. HAVE_NEWLOCALE=1
  943. else
  944. HAVE_NEWLOCALE=0
  945. fi
  946. AC_SUBST([HAVE_NEWLOCALE])
  947. if test "$ac_cv_func_wprintf" = yes; then
  948. HAVE_WPRINTF=1
  949. else
  950. HAVE_WPRINTF=0
  951. fi
  952. AC_SUBST([HAVE_WPRINTF])
  953. AM_LANGINFO_CODESET
  954. gt_LC_MESSAGES
  955. dnl Compilation on mingw and Cygwin needs special Makefile rules, because
  956. dnl 1. when we install a shared library, we must arrange to export
  957. dnl auxiliary pointer variables for every exported variable,
  958. dnl 2. when we install a shared library and a static library simultaneously,
  959. dnl the include file specifies __declspec(dllimport) and therefore we
  960. dnl must arrange to define the auxiliary pointer variables for the
  961. dnl exported variables _also_ in the static library.
  962. if test "$enable_shared" = yes; then
  963. case "$host_os" in
  964. mingw* | cygwin*) is_woe32dll=yes ;;
  965. *) is_woe32dll=no ;;
  966. esac
  967. else
  968. is_woe32dll=no
  969. fi
  970. WOE32DLL=$is_woe32dll
  971. AC_SUBST([WOE32DLL])
  972. dnl On mingw and Cygwin, we can activate special Makefile rules which add
  973. dnl version information to the shared libraries and executables.
  974. case "$host_os" in
  975. mingw* | cygwin*) is_woe32=yes ;;
  976. *) is_woe32=no ;;
  977. esac
  978. WOE32=$is_woe32
  979. AC_SUBST([WOE32])
  980. if test $WOE32 = yes; then
  981. dnl Check for a program that compiles Windows resource files.
  982. AC_CHECK_TOOL([WINDRES], [windres])
  983. fi
  984. dnl Determine whether when creating a library, "-lc" should be passed to
  985. dnl libtool or not. On many platforms, it is required for the libtool option
  986. dnl -no-undefined to work. On HP-UX, however, the -lc - stored by libtool
  987. dnl in the *.la files - makes it impossible to create multithreaded programs,
  988. dnl because libtool also reorders the -lc to come before the -pthread, and
  989. dnl this disables pthread_create() <http://docs.hp.com/en/1896/pthreads.html>.
  990. case "$host_os" in
  991. hpux*) LTLIBC="" ;;
  992. *) LTLIBC="-lc" ;;
  993. esac
  994. AC_SUBST([LTLIBC])
  995. dnl Rename some macros and functions used for locking.
  996. AH_BOTTOM([
  997. #define __libc_lock_t gl_lock_t
  998. #define __libc_lock_define gl_lock_define
  999. #define __libc_lock_define_initialized gl_lock_define_initialized
  1000. #define __libc_lock_init gl_lock_init
  1001. #define __libc_lock_lock gl_lock_lock
  1002. #define __libc_lock_unlock gl_lock_unlock
  1003. #define __libc_lock_recursive_t gl_recursive_lock_t
  1004. #define __libc_lock_define_recursive gl_recursive_lock_define
  1005. #define __libc_lock_define_initialized_recursive gl_recursive_lock_define_initialized
  1006. #define __libc_lock_init_recursive gl_recursive_lock_init
  1007. #define __libc_lock_lock_recursive gl_recursive_lock_lock
  1008. #define __libc_lock_unlock_recursive gl_recursive_lock_unlock
  1009. #define glthread_in_use libintl_thread_in_use
  1010. #define glthread_lock_init_func libintl_lock_init_func
  1011. #define glthread_lock_lock_func libintl_lock_lock_func
  1012. #define glthread_lock_unlock_func libintl_lock_unlock_func
  1013. #define glthread_lock_destroy_func libintl_lock_destroy_func
  1014. #define glthread_rwlock_init_multithreaded libintl_rwlock_init_multithreaded
  1015. #define glthread_rwlock_init_func libintl_rwlock_init_func
  1016. #define glthread_rwlock_rdlock_multithreaded libintl_rwlock_rdlock_multithreaded
  1017. #define glthread_rwlock_rdlock_func libintl_rwlock_rdlock_func
  1018. #define glthread_rwlock_wrlock_multithreaded libintl_rwlock_wrlock_multithreaded
  1019. #define glthread_rwlock_wrlock_func libintl_rwlock_wrlock_func
  1020. #define glthread_rwlock_unlock_multithreaded libintl_rwlock_unlock_multithreaded
  1021. #define glthread_rwlock_unlock_func libintl_rwlock_unlock_func
  1022. #define glthread_rwlock_destroy_multithreaded libintl_rwlock_destroy_multithreaded
  1023. #define glthread_rwlock_destroy_func libintl_rwlock_destroy_func
  1024. #define glthread_recursive_lock_init_multithreaded libintl_recursive_lock_init_multithreaded
  1025. #define glthread_recursive_lock_init_func libintl_recursive_lock_init_func
  1026. #define glthread_recursive_lock_lock_multithreaded libintl_recursive_lock_lock_multithreaded
  1027. #define glthread_recursive_lock_lock_func libintl_recursive_lock_lock_func
  1028. #define glthread_recursive_lock_unlock_multithreaded libintl_recursive_lock_unlock_multithreaded
  1029. #define glthread_recursive_lock_unlock_func libintl_recursive_lock_unlock_func
  1030. #define glthread_recursive_lock_destroy_multithreaded libintl_recursive_lock_destroy_multithreaded
  1031. #define glthread_recursive_lock_destroy_func libintl_recursive_lock_destroy_func
  1032. #define glthread_once_func libintl_once_func
  1033. #define glthread_once_singlethreaded libintl_once_singlethreaded
  1034. #define glthread_once_multithreaded libintl_once_multithreaded
  1035. ])
  1036. ])
  1037. m4trace:/usr/share/aclocal/intl.m4:211: -1- AC_DEFUN([gt_INTL_SUBDIR_CORE], [
  1038. AC_REQUIRE([AC_C_INLINE])dnl
  1039. AC_REQUIRE([AC_TYPE_SIZE_T])dnl
  1040. AC_REQUIRE([gl_AC_HEADER_STDINT_H])
  1041. AC_REQUIRE([AC_FUNC_ALLOCA])dnl
  1042. AC_REQUIRE([AC_FUNC_MMAP])dnl
  1043. AC_REQUIRE([gt_INTDIV0])dnl
  1044. AC_REQUIRE([gl_AC_TYPE_UINTMAX_T])dnl
  1045. AC_REQUIRE([gt_INTTYPES_PRI])dnl
  1046. AC_REQUIRE([gl_LOCK])dnl
  1047. AC_LINK_IFELSE(
  1048. [AC_LANG_PROGRAM(
  1049. [[int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }]],
  1050. [[]])],
  1051. [AC_DEFINE([HAVE_BUILTIN_EXPECT], [1],
  1052. [Define to 1 if the compiler understands __builtin_expect.])])
  1053. AC_CHECK_HEADERS([argz.h inttypes.h limits.h unistd.h sys/param.h])
  1054. AC_CHECK_FUNCS([getcwd getegid geteuid getgid getuid mempcpy munmap \
  1055. stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
  1056. argz_stringify argz_next __fsetlocking])
  1057. dnl Solaris 12 provides getlocalename_l, while Illumos doesn't have
  1058. dnl it nor the equivalent.
  1059. if test $ac_cv_func_uselocale = yes; then
  1060. AC_CHECK_FUNCS([getlocalename_l])
  1061. fi
  1062. dnl Use the *_unlocked functions only if they are declared.
  1063. dnl (because some of them were defined without being declared in Solaris
  1064. dnl 2.5.1 but were removed in Solaris 2.6, whereas we want binaries built
  1065. dnl on Solaris 2.5.1 to run on Solaris 2.6).
  1066. AC_CHECK_DECLS([feof_unlocked, fgets_unlocked], , , [#include <stdio.h>])
  1067. AM_ICONV
  1068. dnl intl/plural.c is generated from intl/plural.y. It requires bison,
  1069. dnl because plural.y uses bison specific features. It requires at least
  1070. dnl bison-2.7 for %define api.pure.
  1071. dnl bison is only needed for the maintainer (who touches plural.y). But in
  1072. dnl order to avoid separate Makefiles or --enable-maintainer-mode, we put
  1073. dnl the rule in general Makefile. Now, some people carelessly touch the
  1074. dnl files or have a broken "make" program, hence the plural.c rule will
  1075. dnl sometimes fire. To avoid an error, defines BISON to ":" if it is not
  1076. dnl present or too old.
  1077. AC_CHECK_PROGS([INTLBISON], [bison])
  1078. if test -z "$INTLBISON"; then
  1079. ac_verc_fail=yes
  1080. else
  1081. dnl Found it, now check the version.
  1082. AC_MSG_CHECKING([version of bison])
  1083. changequote(<<,>>)dnl
  1084. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  1085. case $ac_prog_version in
  1086. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  1087. 2.[7-9]* | [3-9].*)
  1088. changequote([,])dnl
  1089. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  1090. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  1091. esac
  1092. AC_MSG_RESULT([$ac_prog_version])
  1093. fi
  1094. if test $ac_verc_fail = yes; then
  1095. INTLBISON=:
  1096. fi
  1097. ])
  1098. m4trace:/usr/share/aclocal/intl.m4:282: -1- AC_DEFUN([gt_GL_ATTRIBUTE], [
  1099. m4_ifndef([gl_[]COMMON],
  1100. AH_VERBATIM([gt_gl_attribute],
  1101. [/* Define as a marker that can be attached to declarations that might not
  1102. be used. This helps to reduce warnings, such as from
  1103. GCC -Wunused-parameter. */
  1104. #ifndef _GL_UNUSED
  1105. # if __GNUC__ >= 3 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
  1106. # define _GL_UNUSED __attribute__ ((__unused__))
  1107. # else
  1108. # define _GL_UNUSED
  1109. # endif
  1110. #endif
  1111. /* The __pure__ attribute was added in gcc 2.96. */
  1112. #ifndef _GL_ATTRIBUTE_PURE
  1113. # if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96)
  1114. # define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__))
  1115. # else
  1116. # define _GL_ATTRIBUTE_PURE /* empty */
  1117. # endif
  1118. #endif
  1119. ]))])
  1120. m4trace:/usr/share/aclocal/intlmacosx.m4:18: -1- AC_DEFUN([gt_INTL_MACOSX], [
  1121. dnl Check for API introduced in Mac OS X 10.2.
  1122. AC_CACHE_CHECK([for CFPreferencesCopyAppValue],
  1123. [gt_cv_func_CFPreferencesCopyAppValue],
  1124. [gt_save_LIBS="$LIBS"
  1125. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  1126. AC_LINK_IFELSE(
  1127. [AC_LANG_PROGRAM(
  1128. [[#include <CoreFoundation/CFPreferences.h>]],
  1129. [[CFPreferencesCopyAppValue(NULL, NULL)]])],
  1130. [gt_cv_func_CFPreferencesCopyAppValue=yes],
  1131. [gt_cv_func_CFPreferencesCopyAppValue=no])
  1132. LIBS="$gt_save_LIBS"])
  1133. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  1134. AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], [1],
  1135. [Define to 1 if you have the Mac OS X function CFPreferencesCopyAppValue in the CoreFoundation framework.])
  1136. fi
  1137. dnl Check for API introduced in Mac OS X 10.3.
  1138. AC_CACHE_CHECK([for CFLocaleCopyCurrent], [gt_cv_func_CFLocaleCopyCurrent],
  1139. [gt_save_LIBS="$LIBS"
  1140. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  1141. AC_LINK_IFELSE(
  1142. [AC_LANG_PROGRAM(
  1143. [[#include <CoreFoundation/CFLocale.h>]],
  1144. [[CFLocaleCopyCurrent();]])],
  1145. [gt_cv_func_CFLocaleCopyCurrent=yes],
  1146. [gt_cv_func_CFLocaleCopyCurrent=no])
  1147. LIBS="$gt_save_LIBS"])
  1148. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  1149. AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], [1],
  1150. [Define to 1 if you have the Mac OS X function CFLocaleCopyCurrent in the CoreFoundation framework.])
  1151. fi
  1152. INTL_MACOSX_LIBS=
  1153. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  1154. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  1155. fi
  1156. AC_SUBST([INTL_MACOSX_LIBS])
  1157. ])
  1158. m4trace:/usr/share/aclocal/intmax.m4:11: -1- AC_DEFUN([gt_TYPE_INTMAX_T], [
  1159. AC_REQUIRE([gl_AC_HEADER_INTTYPES_H])
  1160. AC_REQUIRE([gl_AC_HEADER_STDINT_H])
  1161. AC_CACHE_CHECK([for intmax_t], [gt_cv_c_intmax_t],
  1162. [AC_COMPILE_IFELSE(
  1163. [AC_LANG_PROGRAM(
  1164. [[
  1165. #include <stddef.h>
  1166. #include <stdlib.h>
  1167. #if HAVE_STDINT_H_WITH_UINTMAX
  1168. #include <stdint.h>
  1169. #endif
  1170. #if HAVE_INTTYPES_H_WITH_UINTMAX
  1171. #include <inttypes.h>
  1172. #endif
  1173. ]],
  1174. [[intmax_t x = -1;
  1175. return !x;]])],
  1176. [gt_cv_c_intmax_t=yes],
  1177. [gt_cv_c_intmax_t=no])])
  1178. if test $gt_cv_c_intmax_t = yes; then
  1179. AC_DEFINE([HAVE_INTMAX_T], [1],
  1180. [Define if you have the 'intmax_t' type in <stdint.h> or <inttypes.h>.])
  1181. fi
  1182. ])
  1183. m4trace:/usr/share/aclocal/inttypes-pri.m4:14: -1- AC_DEFUN([gt_INTTYPES_PRI], [
  1184. AC_CHECK_HEADERS([inttypes.h])
  1185. if test $ac_cv_header_inttypes_h = yes; then
  1186. AC_CACHE_CHECK([whether the inttypes.h PRIxNN macros are broken],
  1187. [gt_cv_inttypes_pri_broken],
  1188. [
  1189. AC_COMPILE_IFELSE(
  1190. [AC_LANG_PROGRAM(
  1191. [[
  1192. #include <inttypes.h>
  1193. #ifdef PRId32
  1194. char *p = PRId32;
  1195. #endif
  1196. ]],
  1197. [[]])],
  1198. [gt_cv_inttypes_pri_broken=no],
  1199. [gt_cv_inttypes_pri_broken=yes])
  1200. ])
  1201. fi
  1202. if test "$gt_cv_inttypes_pri_broken" = yes; then
  1203. AC_DEFINE_UNQUOTED([PRI_MACROS_BROKEN], [1],
  1204. [Define if <inttypes.h> exists and defines unusable PRI* macros.])
  1205. PRI_MACROS_BROKEN=1
  1206. else
  1207. PRI_MACROS_BROKEN=0
  1208. fi
  1209. AC_SUBST([PRI_MACROS_BROKEN])
  1210. ])
  1211. m4trace:/usr/share/aclocal/inttypes_h.m4:12: -1- AC_DEFUN([gl_AC_HEADER_INTTYPES_H], [
  1212. AC_CACHE_CHECK([for inttypes.h], [gl_cv_header_inttypes_h],
  1213. [AC_COMPILE_IFELSE(
  1214. [AC_LANG_PROGRAM(
  1215. [[
  1216. #include <sys/types.h>
  1217. #include <inttypes.h>
  1218. ]],
  1219. [[uintmax_t i = (uintmax_t) -1; return !i;]])],
  1220. [gl_cv_header_inttypes_h=yes],
  1221. [gl_cv_header_inttypes_h=no])])
  1222. if test $gl_cv_header_inttypes_h = yes; then
  1223. AC_DEFINE_UNQUOTED([HAVE_INTTYPES_H_WITH_UINTMAX], [1],
  1224. [Define if <inttypes.h> exists, doesn't clash with <sys/types.h>,
  1225. and declares uintmax_t. ])
  1226. fi
  1227. ])
  1228. m4trace:/usr/share/aclocal/lcmessage.m4:22: -1- AC_DEFUN([gt_LC_MESSAGES], [
  1229. AC_CACHE_CHECK([for LC_MESSAGES], [gt_cv_val_LC_MESSAGES],
  1230. [AC_LINK_IFELSE(
  1231. [AC_LANG_PROGRAM(
  1232. [[#include <locale.h>]],
  1233. [[return LC_MESSAGES]])],
  1234. [gt_cv_val_LC_MESSAGES=yes],
  1235. [gt_cv_val_LC_MESSAGES=no])])
  1236. if test $gt_cv_val_LC_MESSAGES = yes; then
  1237. AC_DEFINE([HAVE_LC_MESSAGES], [1],
  1238. [Define if your <locale.h> file defines LC_MESSAGES.])
  1239. fi
  1240. ])
  1241. m4trace:/usr/share/aclocal/lib-ld.m4:12: -1- AC_DEFUN([AC_LIB_PROG_LD_GNU], [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], [acl_cv_prog_gnu_ld],
  1242. [# I'd rather use --version here, but apparently some GNU lds only accept -v.
  1243. case `$LD -v 2>&1 </dev/null` in
  1244. *GNU* | *'with BFD'*)
  1245. acl_cv_prog_gnu_ld=yes
  1246. ;;
  1247. *)
  1248. acl_cv_prog_gnu_ld=no
  1249. ;;
  1250. esac])
  1251. with_gnu_ld=$acl_cv_prog_gnu_ld
  1252. ])
  1253. m4trace:/usr/share/aclocal/lib-ld.m4:27: -1- AC_DEFUN([AC_LIB_PROG_LD], [AC_REQUIRE([AC_PROG_CC])dnl
  1254. AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1255. AC_ARG_WITH([gnu-ld],
  1256. [AS_HELP_STRING([--with-gnu-ld],
  1257. [assume the C compiler uses GNU ld [default=no]])],
  1258. [test "$withval" = no || with_gnu_ld=yes],
  1259. [with_gnu_ld=no])dnl
  1260. # Prepare PATH_SEPARATOR.
  1261. # The user is always right.
  1262. if test "${PATH_SEPARATOR+set}" != set; then
  1263. # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
  1264. # contains only /bin. Note that ksh looks also at the FPATH variable,
  1265. # so we have to set that as well for the test.
  1266. PATH_SEPARATOR=:
  1267. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
  1268. && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
  1269. || PATH_SEPARATOR=';'
  1270. }
  1271. fi
  1272. ac_prog=ld
  1273. if test "$GCC" = yes; then
  1274. # Check if gcc -print-prog-name=ld gives a path.
  1275. AC_MSG_CHECKING([for ld used by $CC])
  1276. case $host in
  1277. *-*-mingw*)
  1278. # gcc leaves a trailing carriage return which upsets mingw
  1279. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  1280. *)
  1281. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  1282. esac
  1283. case $ac_prog in
  1284. # Accept absolute paths.
  1285. [[\\/]]* | ?:[[\\/]]*)
  1286. re_direlt='/[[^/]][[^/]]*/\.\./'
  1287. # Canonicalize the pathname of ld
  1288. ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
  1289. while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
  1290. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  1291. done
  1292. test -z "$LD" && LD="$ac_prog"
  1293. ;;
  1294. "")
  1295. # If it fails, then pretend we aren't using GCC.
  1296. ac_prog=ld
  1297. ;;
  1298. *)
  1299. # If it is relative, then search for the first ld in PATH.
  1300. with_gnu_ld=unknown
  1301. ;;
  1302. esac
  1303. elif test "$with_gnu_ld" = yes; then
  1304. AC_MSG_CHECKING([for GNU ld])
  1305. else
  1306. AC_MSG_CHECKING([for non-GNU ld])
  1307. fi
  1308. AC_CACHE_VAL([acl_cv_path_LD],
  1309. [if test -z "$LD"; then
  1310. acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1311. for ac_dir in $PATH; do
  1312. IFS="$acl_save_ifs"
  1313. test -z "$ac_dir" && ac_dir=.
  1314. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  1315. acl_cv_path_LD="$ac_dir/$ac_prog"
  1316. # Check to see if the program is GNU ld. I'd rather use --version,
  1317. # but apparently some variants of GNU ld only accept -v.
  1318. # Break only if it was the GNU/non-GNU ld that we prefer.
  1319. case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
  1320. *GNU* | *'with BFD'*)
  1321. test "$with_gnu_ld" != no && break
  1322. ;;
  1323. *)
  1324. test "$with_gnu_ld" != yes && break
  1325. ;;
  1326. esac
  1327. fi
  1328. done
  1329. IFS="$acl_save_ifs"
  1330. else
  1331. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  1332. fi])
  1333. LD="$acl_cv_path_LD"
  1334. if test -n "$LD"; then
  1335. AC_MSG_RESULT([$LD])
  1336. else
  1337. AC_MSG_RESULT([no])
  1338. fi
  1339. test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  1340. AC_LIB_PROG_LD_GNU
  1341. ])
  1342. m4trace:/usr/share/aclocal/lib-link.m4:17: -1- AC_DEFUN([AC_LIB_LINKFLAGS], [
  1343. AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
  1344. AC_REQUIRE([AC_LIB_RPATH])
  1345. pushdef([Name],[m4_translit([$1],[./+-], [____])])
  1346. pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-],
  1347. [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
  1348. AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [
  1349. AC_LIB_LINKFLAGS_BODY([$1], [$2])
  1350. ac_cv_lib[]Name[]_libs="$LIB[]NAME"
  1351. ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME"
  1352. ac_cv_lib[]Name[]_cppflags="$INC[]NAME"
  1353. ac_cv_lib[]Name[]_prefix="$LIB[]NAME[]_PREFIX"
  1354. ])
  1355. LIB[]NAME="$ac_cv_lib[]Name[]_libs"
  1356. LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs"
  1357. INC[]NAME="$ac_cv_lib[]Name[]_cppflags"
  1358. LIB[]NAME[]_PREFIX="$ac_cv_lib[]Name[]_prefix"
  1359. AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
  1360. AC_SUBST([LIB]NAME)
  1361. AC_SUBST([LTLIB]NAME)
  1362. AC_SUBST([LIB]NAME[_PREFIX])
  1363. dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the
  1364. dnl results of this search when this library appears as a dependency.
  1365. HAVE_LIB[]NAME=yes
  1366. popdef([NAME])
  1367. popdef([Name])
  1368. ])
  1369. m4trace:/usr/share/aclocal/lib-link.m4:57: -1- AC_DEFUN([AC_LIB_HAVE_LINKFLAGS], [
  1370. AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
  1371. AC_REQUIRE([AC_LIB_RPATH])
  1372. pushdef([Name],[m4_translit([$1],[./+-], [____])])
  1373. pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-],
  1374. [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
  1375. dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME
  1376. dnl accordingly.
  1377. AC_LIB_LINKFLAGS_BODY([$1], [$2])
  1378. dnl Add $INC[]NAME to CPPFLAGS before performing the following checks,
  1379. dnl because if the user has installed lib[]Name and not disabled its use
  1380. dnl via --without-lib[]Name-prefix, he wants to use it.
  1381. ac_save_CPPFLAGS="$CPPFLAGS"
  1382. AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
  1383. AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [
  1384. ac_save_LIBS="$LIBS"
  1385. dnl If $LIB[]NAME contains some -l options, add it to the end of LIBS,
  1386. dnl because these -l options might require -L options that are present in
  1387. dnl LIBS. -l options benefit only from the -L options listed before it.
  1388. dnl Otherwise, add it to the front of LIBS, because it may be a static
  1389. dnl library that depends on another static library that is present in LIBS.
  1390. dnl Static libraries benefit only from the static libraries listed after
  1391. dnl it.
  1392. case " $LIB[]NAME" in
  1393. *" -l"*) LIBS="$LIBS $LIB[]NAME" ;;
  1394. *) LIBS="$LIB[]NAME $LIBS" ;;
  1395. esac
  1396. AC_LINK_IFELSE(
  1397. [AC_LANG_PROGRAM([[$3]], [[$4]])],
  1398. [ac_cv_lib[]Name=yes],
  1399. [ac_cv_lib[]Name='m4_if([$5], [], [no], [[$5]])'])
  1400. LIBS="$ac_save_LIBS"
  1401. ])
  1402. if test "$ac_cv_lib[]Name" = yes; then
  1403. HAVE_LIB[]NAME=yes
  1404. AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the lib][$1 library.])
  1405. AC_MSG_CHECKING([how to link with lib[]$1])
  1406. AC_MSG_RESULT([$LIB[]NAME])
  1407. else
  1408. HAVE_LIB[]NAME=no
  1409. dnl If $LIB[]NAME didn't lead to a usable library, we don't need
  1410. dnl $INC[]NAME either.
  1411. CPPFLAGS="$ac_save_CPPFLAGS"
  1412. LIB[]NAME=
  1413. LTLIB[]NAME=
  1414. LIB[]NAME[]_PREFIX=
  1415. fi
  1416. AC_SUBST([HAVE_LIB]NAME)
  1417. AC_SUBST([LIB]NAME)
  1418. AC_SUBST([LTLIB]NAME)
  1419. AC_SUBST([LIB]NAME[_PREFIX])
  1420. popdef([NAME])
  1421. popdef([Name])
  1422. ])
  1423. m4trace:/usr/share/aclocal/lib-link.m4:125: -1- AC_DEFUN([AC_LIB_RPATH], [
  1424. dnl Tell automake >= 1.10 to complain if config.rpath is missing.
  1425. m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])])
  1426. AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS
  1427. AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld
  1428. AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host
  1429. AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir
  1430. AC_CACHE_CHECK([for shared library run path origin], [acl_cv_rpath], [
  1431. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  1432. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  1433. . ./conftest.sh
  1434. rm -f ./conftest.sh
  1435. acl_cv_rpath=done
  1436. ])
  1437. wl="$acl_cv_wl"
  1438. acl_libext="$acl_cv_libext"
  1439. acl_shlibext="$acl_cv_shlibext"
  1440. acl_libname_spec="$acl_cv_libname_spec"
  1441. acl_library_names_spec="$acl_cv_library_names_spec"
  1442. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  1443. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  1444. acl_hardcode_direct="$acl_cv_hardcode_direct"
  1445. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  1446. dnl Determine whether the user wants rpath handling at all.
  1447. AC_ARG_ENABLE([rpath],
  1448. [ --disable-rpath do not hardcode runtime library paths],
  1449. :, enable_rpath=yes)
  1450. ])
  1451. m4trace:/usr/share/aclocal/lib-link.m4:161: -1- AC_DEFUN([AC_LIB_FROMPACKAGE], [
  1452. pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-],
  1453. [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
  1454. define([acl_frompackage_]NAME, [$2])
  1455. popdef([NAME])
  1456. pushdef([PACK],[$2])
  1457. pushdef([PACKUP],[m4_translit(PACK,[abcdefghijklmnopqrstuvwxyz./+-],
  1458. [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
  1459. define([acl_libsinpackage_]PACKUP,
  1460. m4_ifdef([acl_libsinpackage_]PACKUP, [m4_defn([acl_libsinpackage_]PACKUP)[, ]],)[lib$1])
  1461. popdef([PACKUP])
  1462. popdef([PACK])
  1463. ])
  1464. m4trace:/usr/share/aclocal/lib-link.m4:181: -1- AC_DEFUN([AC_LIB_LINKFLAGS_BODY], [
  1465. AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
  1466. pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-],
  1467. [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
  1468. pushdef([PACK],[m4_ifdef([acl_frompackage_]NAME, [acl_frompackage_]NAME, lib[$1])])
  1469. pushdef([PACKUP],[m4_translit(PACK,[abcdefghijklmnopqrstuvwxyz./+-],
  1470. [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
  1471. pushdef([PACKLIBS],[m4_ifdef([acl_frompackage_]NAME, [acl_libsinpackage_]PACKUP, lib[$1])])
  1472. dnl Autoconf >= 2.61 supports dots in --with options.
  1473. pushdef([P_A_C_K],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[m4_translit(PACK,[.],[_])],PACK)])
  1474. dnl By default, look in $includedir and $libdir.
  1475. use_additional=yes
  1476. AC_LIB_WITH_FINAL_PREFIX([
  1477. eval additional_includedir=\"$includedir\"
  1478. eval additional_libdir=\"$libdir\"
  1479. ])
  1480. AC_ARG_WITH(P_A_C_K[-prefix],
  1481. [[ --with-]]P_A_C_K[[-prefix[=DIR] search for ]PACKLIBS[ in DIR/include and DIR/lib
  1482. --without-]]P_A_C_K[[-prefix don't search for ]PACKLIBS[ in includedir and libdir]],
  1483. [
  1484. if test "X$withval" = "Xno"; then
  1485. use_additional=no
  1486. else
  1487. if test "X$withval" = "X"; then
  1488. AC_LIB_WITH_FINAL_PREFIX([
  1489. eval additional_includedir=\"$includedir\"
  1490. eval additional_libdir=\"$libdir\"
  1491. ])
  1492. else
  1493. additional_includedir="$withval/include"
  1494. additional_libdir="$withval/$acl_libdirstem"
  1495. if test "$acl_libdirstem2" != "$acl_libdirstem" \
  1496. && ! test -d "$withval/$acl_libdirstem"; then
  1497. additional_libdir="$withval/$acl_libdirstem2"
  1498. fi
  1499. fi
  1500. fi
  1501. ])
  1502. dnl Search the library and its dependencies in $additional_libdir and
  1503. dnl $LDFLAGS. Using breadth-first-seach.
  1504. LIB[]NAME=
  1505. LTLIB[]NAME=
  1506. INC[]NAME=
  1507. LIB[]NAME[]_PREFIX=
  1508. dnl HAVE_LIB${NAME} is an indicator that LIB${NAME}, LTLIB${NAME} have been
  1509. dnl computed. So it has to be reset here.
  1510. HAVE_LIB[]NAME=
  1511. rpathdirs=
  1512. ltrpathdirs=
  1513. names_already_handled=
  1514. names_next_round='$1 $2'
  1515. while test -n "$names_next_round"; do
  1516. names_this_round="$names_next_round"
  1517. names_next_round=
  1518. for name in $names_this_round; do
  1519. already_handled=
  1520. for n in $names_already_handled; do
  1521. if test "$n" = "$name"; then
  1522. already_handled=yes
  1523. break
  1524. fi
  1525. done
  1526. if test -z "$already_handled"; then
  1527. names_already_handled="$names_already_handled $name"
  1528. dnl See if it was already located by an earlier AC_LIB_LINKFLAGS
  1529. dnl or AC_LIB_HAVE_LINKFLAGS call.
  1530. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
  1531. eval value=\"\$HAVE_LIB$uppername\"
  1532. if test -n "$value"; then
  1533. if test "$value" = yes; then
  1534. eval value=\"\$LIB$uppername\"
  1535. test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
  1536. eval value=\"\$LTLIB$uppername\"
  1537. test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value"
  1538. else
  1539. dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined
  1540. dnl that this library doesn't exist. So just drop it.
  1541. :
  1542. fi
  1543. else
  1544. dnl Search the library lib$name in $additional_libdir and $LDFLAGS
  1545. dnl and the already constructed $LIBNAME/$LTLIBNAME.
  1546. found_dir=
  1547. found_la=
  1548. found_so=
  1549. found_a=
  1550. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  1551. if test -n "$acl_shlibext"; then
  1552. shrext=".$acl_shlibext" # typically: shrext=.so
  1553. else
  1554. shrext=
  1555. fi
  1556. if test $use_additional = yes; then
  1557. dir="$additional_libdir"
  1558. dnl The same code as in the loop below:
  1559. dnl First look for a shared library.
  1560. if test -n "$acl_shlibext"; then
  1561. if test -f "$dir/$libname$shrext"; then
  1562. found_dir="$dir"
  1563. found_so="$dir/$libname$shrext"
  1564. else
  1565. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  1566. ver=`(cd "$dir" && \
  1567. for f in "$libname$shrext".*; do echo "$f"; done \
  1568. | sed -e "s,^$libname$shrext\\\\.,," \
  1569. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  1570. | sed 1q ) 2>/dev/null`
  1571. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  1572. found_dir="$dir"
  1573. found_so="$dir/$libname$shrext.$ver"
  1574. fi
  1575. else
  1576. eval library_names=\"$acl_library_names_spec\"
  1577. for f in $library_names; do
  1578. if test -f "$dir/$f"; then
  1579. found_dir="$dir"
  1580. found_so="$dir/$f"
  1581. break
  1582. fi
  1583. done
  1584. fi
  1585. fi
  1586. fi
  1587. dnl Then look for a static library.
  1588. if test "X$found_dir" = "X"; then
  1589. if test -f "$dir/$libname.$acl_libext"; then
  1590. found_dir="$dir"
  1591. found_a="$dir/$libname.$acl_libext"
  1592. fi
  1593. fi
  1594. if test "X$found_dir" != "X"; then
  1595. if test -f "$dir/$libname.la"; then
  1596. found_la="$dir/$libname.la"
  1597. fi
  1598. fi
  1599. fi
  1600. if test "X$found_dir" = "X"; then
  1601. for x in $LDFLAGS $LTLIB[]NAME; do
  1602. AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  1603. case "$x" in
  1604. -L*)
  1605. dir=`echo "X$x" | sed -e 's/^X-L//'`
  1606. dnl First look for a shared library.
  1607. if test -n "$acl_shlibext"; then
  1608. if test -f "$dir/$libname$shrext"; then
  1609. found_dir="$dir"
  1610. found_so="$dir/$libname$shrext"
  1611. else
  1612. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  1613. ver=`(cd "$dir" && \
  1614. for f in "$libname$shrext".*; do echo "$f"; done \
  1615. | sed -e "s,^$libname$shrext\\\\.,," \
  1616. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  1617. | sed 1q ) 2>/dev/null`
  1618. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  1619. found_dir="$dir"
  1620. found_so="$dir/$libname$shrext.$ver"
  1621. fi
  1622. else
  1623. eval library_names=\"$acl_library_names_spec\"
  1624. for f in $library_names; do
  1625. if test -f "$dir/$f"; then
  1626. found_dir="$dir"
  1627. found_so="$dir/$f"
  1628. break
  1629. fi
  1630. done
  1631. fi
  1632. fi
  1633. fi
  1634. dnl Then look for a static library.
  1635. if test "X$found_dir" = "X"; then
  1636. if test -f "$dir/$libname.$acl_libext"; then
  1637. found_dir="$dir"
  1638. found_a="$dir/$libname.$acl_libext"
  1639. fi
  1640. fi
  1641. if test "X$found_dir" != "X"; then
  1642. if test -f "$dir/$libname.la"; then
  1643. found_la="$dir/$libname.la"
  1644. fi
  1645. fi
  1646. ;;
  1647. esac
  1648. if test "X$found_dir" != "X"; then
  1649. break
  1650. fi
  1651. done
  1652. fi
  1653. if test "X$found_dir" != "X"; then
  1654. dnl Found the library.
  1655. LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
  1656. if test "X$found_so" != "X"; then
  1657. dnl Linking with a shared library. We attempt to hardcode its
  1658. dnl directory into the executable's runpath, unless it's the
  1659. dnl standard /usr/lib.
  1660. if test "$enable_rpath" = no \
  1661. || test "X$found_dir" = "X/usr/$acl_libdirstem" \
  1662. || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
  1663. dnl No hardcoding is needed.
  1664. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
  1665. else
  1666. dnl Use an explicit option to hardcode DIR into the resulting
  1667. dnl binary.
  1668. dnl Potentially add DIR to ltrpathdirs.
  1669. dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
  1670. haveit=
  1671. for x in $ltrpathdirs; do
  1672. if test "X$x" = "X$found_dir"; then
  1673. haveit=yes
  1674. break
  1675. fi
  1676. done
  1677. if test -z "$haveit"; then
  1678. ltrpathdirs="$ltrpathdirs $found_dir"
  1679. fi
  1680. dnl The hardcoding into $LIBNAME is system dependent.
  1681. if test "$acl_hardcode_direct" = yes; then
  1682. dnl Using DIR/libNAME.so during linking hardcodes DIR into the
  1683. dnl resulting binary.
  1684. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
  1685. else
  1686. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  1687. dnl Use an explicit option to hardcode DIR into the resulting
  1688. dnl binary.
  1689. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
  1690. dnl Potentially add DIR to rpathdirs.
  1691. dnl The rpathdirs will be appended to $LIBNAME at the end.
  1692. haveit=
  1693. for x in $rpathdirs; do
  1694. if test "X$x" = "X$found_dir"; then
  1695. haveit=yes
  1696. break
  1697. fi
  1698. done
  1699. if test -z "$haveit"; then
  1700. rpathdirs="$rpathdirs $found_dir"
  1701. fi
  1702. else
  1703. dnl Rely on "-L$found_dir".
  1704. dnl But don't add it if it's already contained in the LDFLAGS
  1705. dnl or the already constructed $LIBNAME
  1706. haveit=
  1707. for x in $LDFLAGS $LIB[]NAME; do
  1708. AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  1709. if test "X$x" = "X-L$found_dir"; then
  1710. haveit=yes
  1711. break
  1712. fi
  1713. done
  1714. if test -z "$haveit"; then
  1715. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
  1716. fi
  1717. if test "$acl_hardcode_minus_L" != no; then
  1718. dnl FIXME: Not sure whether we should use
  1719. dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
  1720. dnl here.
  1721. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
  1722. else
  1723. dnl We cannot use $acl_hardcode_runpath_var and LD_RUN_PATH
  1724. dnl here, because this doesn't fit in flags passed to the
  1725. dnl compiler. So give up. No hardcoding. This affects only
  1726. dnl very old systems.
  1727. dnl FIXME: Not sure whether we should use
  1728. dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
  1729. dnl here.
  1730. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
  1731. fi
  1732. fi
  1733. fi
  1734. fi
  1735. else
  1736. if test "X$found_a" != "X"; then
  1737. dnl Linking with a static library.
  1738. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a"
  1739. else
  1740. dnl We shouldn't come here, but anyway it's good to have a
  1741. dnl fallback.
  1742. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"
  1743. fi
  1744. fi
  1745. dnl Assume the include files are nearby.
  1746. additional_includedir=
  1747. case "$found_dir" in
  1748. */$acl_libdirstem | */$acl_libdirstem/)
  1749. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  1750. if test "$name" = '$1'; then
  1751. LIB[]NAME[]_PREFIX="$basedir"
  1752. fi
  1753. additional_includedir="$basedir/include"
  1754. ;;
  1755. */$acl_libdirstem2 | */$acl_libdirstem2/)
  1756. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
  1757. if test "$name" = '$1'; then
  1758. LIB[]NAME[]_PREFIX="$basedir"
  1759. fi
  1760. additional_includedir="$basedir/include"
  1761. ;;
  1762. esac
  1763. if test "X$additional_includedir" != "X"; then
  1764. dnl Potentially add $additional_includedir to $INCNAME.
  1765. dnl But don't add it
  1766. dnl 1. if it's the standard /usr/include,
  1767. dnl 2. if it's /usr/local/include and we are using GCC on Linux,
  1768. dnl 3. if it's already present in $CPPFLAGS or the already
  1769. dnl constructed $INCNAME,
  1770. dnl 4. if it doesn't exist as a directory.
  1771. if test "X$additional_includedir" != "X/usr/include"; then
  1772. haveit=
  1773. if test "X$additional_includedir" = "X/usr/local/include"; then
  1774. if test -n "$GCC"; then
  1775. case $host_os in
  1776. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  1777. esac
  1778. fi
  1779. fi
  1780. if test -z "$haveit"; then
  1781. for x in $CPPFLAGS $INC[]NAME; do
  1782. AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  1783. if test "X$x" = "X-I$additional_includedir"; then
  1784. haveit=yes
  1785. break
  1786. fi
  1787. done
  1788. if test -z "$haveit"; then
  1789. if test -d "$additional_includedir"; then
  1790. dnl Really add $additional_includedir to $INCNAME.
  1791. INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir"
  1792. fi
  1793. fi
  1794. fi
  1795. fi
  1796. fi
  1797. dnl Look for dependencies.
  1798. if test -n "$found_la"; then
  1799. dnl Read the .la file. It defines the variables
  1800. dnl dlname, library_names, old_library, dependency_libs, current,
  1801. dnl age, revision, installed, dlopen, dlpreopen, libdir.
  1802. save_libdir="$libdir"
  1803. case "$found_la" in
  1804. */* | *\\*) . "$found_la" ;;
  1805. *) . "./$found_la" ;;
  1806. esac
  1807. libdir="$save_libdir"
  1808. dnl We use only dependency_libs.
  1809. for dep in $dependency_libs; do
  1810. case "$dep" in
  1811. -L*)
  1812. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  1813. dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME.
  1814. dnl But don't add it
  1815. dnl 1. if it's the standard /usr/lib,
  1816. dnl 2. if it's /usr/local/lib and we are using GCC on Linux,
  1817. dnl 3. if it's already present in $LDFLAGS or the already
  1818. dnl constructed $LIBNAME,
  1819. dnl 4. if it doesn't exist as a directory.
  1820. if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
  1821. && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
  1822. haveit=
  1823. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
  1824. || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
  1825. if test -n "$GCC"; then
  1826. case $host_os in
  1827. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  1828. esac
  1829. fi
  1830. fi
  1831. if test -z "$haveit"; then
  1832. haveit=
  1833. for x in $LDFLAGS $LIB[]NAME; do
  1834. AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  1835. if test "X$x" = "X-L$additional_libdir"; then
  1836. haveit=yes
  1837. break
  1838. fi
  1839. done
  1840. if test -z "$haveit"; then
  1841. if test -d "$additional_libdir"; then
  1842. dnl Really add $additional_libdir to $LIBNAME.
  1843. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"
  1844. fi
  1845. fi
  1846. haveit=
  1847. for x in $LDFLAGS $LTLIB[]NAME; do
  1848. AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  1849. if test "X$x" = "X-L$additional_libdir"; then
  1850. haveit=yes
  1851. break
  1852. fi
  1853. done
  1854. if test -z "$haveit"; then
  1855. if test -d "$additional_libdir"; then
  1856. dnl Really add $additional_libdir to $LTLIBNAME.
  1857. LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"
  1858. fi
  1859. fi
  1860. fi
  1861. fi
  1862. ;;
  1863. -R*)
  1864. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  1865. if test "$enable_rpath" != no; then
  1866. dnl Potentially add DIR to rpathdirs.
  1867. dnl The rpathdirs will be appended to $LIBNAME at the end.
  1868. haveit=
  1869. for x in $rpathdirs; do
  1870. if test "X$x" = "X$dir"; then
  1871. haveit=yes
  1872. break
  1873. fi
  1874. done
  1875. if test -z "$haveit"; then
  1876. rpathdirs="$rpathdirs $dir"
  1877. fi
  1878. dnl Potentially add DIR to ltrpathdirs.
  1879. dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
  1880. haveit=
  1881. for x in $ltrpathdirs; do
  1882. if test "X$x" = "X$dir"; then
  1883. haveit=yes
  1884. break
  1885. fi
  1886. done
  1887. if test -z "$haveit"; then
  1888. ltrpathdirs="$ltrpathdirs $dir"
  1889. fi
  1890. fi
  1891. ;;
  1892. -l*)
  1893. dnl Handle this in the next round.
  1894. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  1895. ;;
  1896. *.la)
  1897. dnl Handle this in the next round. Throw away the .la's
  1898. dnl directory; it is already contained in a preceding -L
  1899. dnl option.
  1900. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  1901. ;;
  1902. *)
  1903. dnl Most likely an immediate library name.
  1904. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep"
  1905. LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep"
  1906. ;;
  1907. esac
  1908. done
  1909. fi
  1910. else
  1911. dnl Didn't find the library; assume it is in the system directories
  1912. dnl known to the linker and runtime loader. (All the system
  1913. dnl directories known to the linker should also be known to the
  1914. dnl runtime loader, otherwise the system is severely misconfigured.)
  1915. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
  1916. LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"
  1917. fi
  1918. fi
  1919. fi
  1920. done
  1921. done
  1922. if test "X$rpathdirs" != "X"; then
  1923. if test -n "$acl_hardcode_libdir_separator"; then
  1924. dnl Weird platform: only the last -rpath option counts, the user must
  1925. dnl pass all path elements in one option. We can arrange that for a
  1926. dnl single library, but not when more than one $LIBNAMEs are used.
  1927. alldirs=
  1928. for found_dir in $rpathdirs; do
  1929. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  1930. done
  1931. dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl.
  1932. acl_save_libdir="$libdir"
  1933. libdir="$alldirs"
  1934. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  1935. libdir="$acl_save_libdir"
  1936. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
  1937. else
  1938. dnl The -rpath options are cumulative.
  1939. for found_dir in $rpathdirs; do
  1940. acl_save_libdir="$libdir"
  1941. libdir="$found_dir"
  1942. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  1943. libdir="$acl_save_libdir"
  1944. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
  1945. done
  1946. fi
  1947. fi
  1948. if test "X$ltrpathdirs" != "X"; then
  1949. dnl When using libtool, the option that works for both libraries and
  1950. dnl executables is -R. The -R options are cumulative.
  1951. for found_dir in $ltrpathdirs; do
  1952. LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
  1953. done
  1954. fi
  1955. popdef([P_A_C_K])
  1956. popdef([PACKLIBS])
  1957. popdef([PACKUP])
  1958. popdef([PACK])
  1959. popdef([NAME])
  1960. ])
  1961. m4trace:/usr/share/aclocal/lib-link.m4:684: -1- AC_DEFUN([AC_LIB_APPENDTOVAR], [
  1962. for element in [$2]; do
  1963. haveit=
  1964. for x in $[$1]; do
  1965. AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  1966. if test "X$x" = "X$element"; then
  1967. haveit=yes
  1968. break
  1969. fi
  1970. done
  1971. if test -z "$haveit"; then
  1972. [$1]="${[$1]}${[$1]:+ }$element"
  1973. fi
  1974. done
  1975. ])
  1976. m4trace:/usr/share/aclocal/lib-link.m4:708: -1- AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS], [
  1977. AC_REQUIRE([AC_LIB_RPATH])
  1978. AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
  1979. $1=
  1980. if test "$enable_rpath" != no; then
  1981. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  1982. dnl Use an explicit option to hardcode directories into the resulting
  1983. dnl binary.
  1984. rpathdirs=
  1985. next=
  1986. for opt in $2; do
  1987. if test -n "$next"; then
  1988. dir="$next"
  1989. dnl No need to hardcode the standard /usr/lib.
  1990. if test "X$dir" != "X/usr/$acl_libdirstem" \
  1991. && test "X$dir" != "X/usr/$acl_libdirstem2"; then
  1992. rpathdirs="$rpathdirs $dir"
  1993. fi
  1994. next=
  1995. else
  1996. case $opt in
  1997. -L) next=yes ;;
  1998. -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'`
  1999. dnl No need to hardcode the standard /usr/lib.
  2000. if test "X$dir" != "X/usr/$acl_libdirstem" \
  2001. && test "X$dir" != "X/usr/$acl_libdirstem2"; then
  2002. rpathdirs="$rpathdirs $dir"
  2003. fi
  2004. next= ;;
  2005. *) next= ;;
  2006. esac
  2007. fi
  2008. done
  2009. if test "X$rpathdirs" != "X"; then
  2010. if test -n ""$3""; then
  2011. dnl libtool is used for linking. Use -R options.
  2012. for dir in $rpathdirs; do
  2013. $1="${$1}${$1:+ }-R$dir"
  2014. done
  2015. else
  2016. dnl The linker is used for linking directly.
  2017. if test -n "$acl_hardcode_libdir_separator"; then
  2018. dnl Weird platform: only the last -rpath option counts, the user
  2019. dnl must pass all path elements in one option.
  2020. alldirs=
  2021. for dir in $rpathdirs; do
  2022. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir"
  2023. done
  2024. acl_save_libdir="$libdir"
  2025. libdir="$alldirs"
  2026. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  2027. libdir="$acl_save_libdir"
  2028. $1="$flag"
  2029. else
  2030. dnl The -rpath options are cumulative.
  2031. for dir in $rpathdirs; do
  2032. acl_save_libdir="$libdir"
  2033. libdir="$dir"
  2034. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  2035. libdir="$acl_save_libdir"
  2036. $1="${$1}${$1:+ }$flag"
  2037. done
  2038. fi
  2039. fi
  2040. fi
  2041. fi
  2042. fi
  2043. AC_SUBST([$1])
  2044. ])
  2045. m4trace:/usr/share/aclocal/lib-prefix.m4:12: -1- AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])
  2046. m4trace:/usr/share/aclocal/lib-prefix.m4:22: -1- AC_DEFUN([AC_LIB_PREFIX], [
  2047. AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
  2048. AC_REQUIRE([AC_PROG_CC])
  2049. AC_REQUIRE([AC_CANONICAL_HOST])
  2050. AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
  2051. AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
  2052. dnl By default, look in $includedir and $libdir.
  2053. use_additional=yes
  2054. AC_LIB_WITH_FINAL_PREFIX([
  2055. eval additional_includedir=\"$includedir\"
  2056. eval additional_libdir=\"$libdir\"
  2057. ])
  2058. AC_LIB_ARG_WITH([lib-prefix],
  2059. [ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
  2060. --without-lib-prefix don't search for libraries in includedir and libdir],
  2061. [
  2062. if test "X$withval" = "Xno"; then
  2063. use_additional=no
  2064. else
  2065. if test "X$withval" = "X"; then
  2066. AC_LIB_WITH_FINAL_PREFIX([
  2067. eval additional_includedir=\"$includedir\"
  2068. eval additional_libdir=\"$libdir\"
  2069. ])
  2070. else
  2071. additional_includedir="$withval/include"
  2072. additional_libdir="$withval/$acl_libdirstem"
  2073. fi
  2074. fi
  2075. ])
  2076. if test $use_additional = yes; then
  2077. dnl Potentially add $additional_includedir to $CPPFLAGS.
  2078. dnl But don't add it
  2079. dnl 1. if it's the standard /usr/include,
  2080. dnl 2. if it's already present in $CPPFLAGS,
  2081. dnl 3. if it's /usr/local/include and we are using GCC on Linux,
  2082. dnl 4. if it doesn't exist as a directory.
  2083. if test "X$additional_includedir" != "X/usr/include"; then
  2084. haveit=
  2085. for x in $CPPFLAGS; do
  2086. AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  2087. if test "X$x" = "X-I$additional_includedir"; then
  2088. haveit=yes
  2089. break
  2090. fi
  2091. done
  2092. if test -z "$haveit"; then
  2093. if test "X$additional_includedir" = "X/usr/local/include"; then
  2094. if test -n "$GCC"; then
  2095. case $host_os in
  2096. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  2097. esac
  2098. fi
  2099. fi
  2100. if test -z "$haveit"; then
  2101. if test -d "$additional_includedir"; then
  2102. dnl Really add $additional_includedir to $CPPFLAGS.
  2103. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
  2104. fi
  2105. fi
  2106. fi
  2107. fi
  2108. dnl Potentially add $additional_libdir to $LDFLAGS.
  2109. dnl But don't add it
  2110. dnl 1. if it's the standard /usr/lib,
  2111. dnl 2. if it's already present in $LDFLAGS,
  2112. dnl 3. if it's /usr/local/lib and we are using GCC on Linux,
  2113. dnl 4. if it doesn't exist as a directory.
  2114. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  2115. haveit=
  2116. for x in $LDFLAGS; do
  2117. AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  2118. if test "X$x" = "X-L$additional_libdir"; then
  2119. haveit=yes
  2120. break
  2121. fi
  2122. done
  2123. if test -z "$haveit"; then
  2124. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  2125. if test -n "$GCC"; then
  2126. case $host_os in
  2127. linux*) haveit=yes;;
  2128. esac
  2129. fi
  2130. fi
  2131. if test -z "$haveit"; then
  2132. if test -d "$additional_libdir"; then
  2133. dnl Really add $additional_libdir to $LDFLAGS.
  2134. LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
  2135. fi
  2136. fi
  2137. fi
  2138. fi
  2139. fi
  2140. ])
  2141. m4trace:/usr/share/aclocal/lib-prefix.m4:122: -1- AC_DEFUN([AC_LIB_PREPARE_PREFIX], [
  2142. dnl Unfortunately, prefix and exec_prefix get only finally determined
  2143. dnl at the end of configure.
  2144. if test "X$prefix" = "XNONE"; then
  2145. acl_final_prefix="$ac_default_prefix"
  2146. else
  2147. acl_final_prefix="$prefix"
  2148. fi
  2149. if test "X$exec_prefix" = "XNONE"; then
  2150. acl_final_exec_prefix='${prefix}'
  2151. else
  2152. acl_final_exec_prefix="$exec_prefix"
  2153. fi
  2154. acl_save_prefix="$prefix"
  2155. prefix="$acl_final_prefix"
  2156. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  2157. prefix="$acl_save_prefix"
  2158. ])
  2159. m4trace:/usr/share/aclocal/lib-prefix.m4:145: -1- AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX], [
  2160. acl_save_prefix="$prefix"
  2161. prefix="$acl_final_prefix"
  2162. acl_save_exec_prefix="$exec_prefix"
  2163. exec_prefix="$acl_final_exec_prefix"
  2164. $1
  2165. exec_prefix="$acl_save_exec_prefix"
  2166. prefix="$acl_save_prefix"
  2167. ])
  2168. m4trace:/usr/share/aclocal/lib-prefix.m4:162: -1- AC_DEFUN([AC_LIB_PREPARE_MULTILIB], [
  2169. dnl There is no formal standard regarding lib and lib64.
  2170. dnl On glibc systems, the current practice is that on a system supporting
  2171. dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under
  2172. dnl $prefix/lib64 and 32-bit libraries go under $prefix/lib. We determine
  2173. dnl the compiler's default mode by looking at the compiler's library search
  2174. dnl path. If at least one of its elements ends in /lib64 or points to a
  2175. dnl directory whose absolute pathname ends in /lib64, we assume a 64-bit ABI.
  2176. dnl Otherwise we use the default, namely "lib".
  2177. dnl On Solaris systems, the current practice is that on a system supporting
  2178. dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under
  2179. dnl $prefix/lib/64 (which is a symlink to either $prefix/lib/sparcv9 or
  2180. dnl $prefix/lib/amd64) and 32-bit libraries go under $prefix/lib.
  2181. AC_REQUIRE([AC_CANONICAL_HOST])
  2182. acl_libdirstem=lib
  2183. acl_libdirstem2=
  2184. case "$host_os" in
  2185. solaris*)
  2186. dnl See Solaris 10 Software Developer Collection > Solaris 64-bit Developer's Guide > The Development Environment
  2187. dnl <http://docs.sun.com/app/docs/doc/816-5138/dev-env?l=en&a=view>.
  2188. dnl "Portable Makefiles should refer to any library directories using the 64 symbolic link."
  2189. dnl But we want to recognize the sparcv9 or amd64 subdirectory also if the
  2190. dnl symlink is missing, so we set acl_libdirstem2 too.
  2191. AC_CACHE_CHECK([for 64-bit host], [gl_cv_solaris_64bit],
  2192. [AC_EGREP_CPP([sixtyfour bits], [
  2193. #ifdef _LP64
  2194. sixtyfour bits
  2195. #endif
  2196. ], [gl_cv_solaris_64bit=yes], [gl_cv_solaris_64bit=no])
  2197. ])
  2198. if test $gl_cv_solaris_64bit = yes; then
  2199. acl_libdirstem=lib/64
  2200. case "$host_cpu" in
  2201. sparc*) acl_libdirstem2=lib/sparcv9 ;;
  2202. i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
  2203. esac
  2204. fi
  2205. ;;
  2206. *)
  2207. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  2208. if test -n "$searchpath"; then
  2209. acl_save_IFS="${IFS= }"; IFS=":"
  2210. for searchdir in $searchpath; do
  2211. if test -d "$searchdir"; then
  2212. case "$searchdir" in
  2213. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  2214. */../ | */.. )
  2215. # Better ignore directories of this form. They are misleading.
  2216. ;;
  2217. *) searchdir=`cd "$searchdir" && pwd`
  2218. case "$searchdir" in
  2219. */lib64 ) acl_libdirstem=lib64 ;;
  2220. esac ;;
  2221. esac
  2222. fi
  2223. done
  2224. IFS="$acl_save_IFS"
  2225. fi
  2226. ;;
  2227. esac
  2228. test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
  2229. ])
  2230. m4trace:/usr/share/aclocal/lock.m4:9: -1- AC_DEFUN([gl_LOCK], [
  2231. AC_REQUIRE([gl_THREADLIB])
  2232. if test "$gl_threads_api" = posix; then
  2233. # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
  2234. # pthread_rwlock_* functions.
  2235. AC_CHECK_TYPE([pthread_rwlock_t],
  2236. [AC_DEFINE([HAVE_PTHREAD_RWLOCK], [1],
  2237. [Define if the POSIX multithreading library has read/write locks.])],
  2238. [],
  2239. [#include <pthread.h>])
  2240. # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
  2241. AC_COMPILE_IFELSE([
  2242. AC_LANG_PROGRAM(
  2243. [[#include <pthread.h>]],
  2244. [[
  2245. #if __FreeBSD__ == 4
  2246. error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
  2247. #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
  2248. && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
  2249. error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
  2250. #else
  2251. int x = (int)PTHREAD_MUTEX_RECURSIVE;
  2252. return !x;
  2253. #endif
  2254. ]])],
  2255. [AC_DEFINE([HAVE_PTHREAD_MUTEX_RECURSIVE], [1],
  2256. [Define if the <pthread.h> defines PTHREAD_MUTEX_RECURSIVE.])])
  2257. fi
  2258. gl_PREREQ_LOCK
  2259. ])
  2260. m4trace:/usr/share/aclocal/lock.m4:42: -1- AC_DEFUN([gl_PREREQ_LOCK], [:])
  2261. m4trace:/usr/share/aclocal/longlong.m4:17: -1- AC_DEFUN([AC_TYPE_LONG_LONG_INT], [
  2262. AC_REQUIRE([AC_TYPE_UNSIGNED_LONG_LONG_INT])
  2263. AC_CACHE_CHECK([for long long int], [ac_cv_type_long_long_int],
  2264. [ac_cv_type_long_long_int=yes
  2265. if test "x${ac_cv_prog_cc_c99-no}" = xno; then
  2266. ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
  2267. if test $ac_cv_type_long_long_int = yes; then
  2268. dnl Catch a bug in Tandem NonStop Kernel (OSS) cc -O circa 2004.
  2269. dnl If cross compiling, assume the bug is not important, since
  2270. dnl nobody cross compiles for this platform as far as we know.
  2271. AC_RUN_IFELSE(
  2272. [AC_LANG_PROGRAM(
  2273. [[@%:@include <limits.h>
  2274. @%:@ifndef LLONG_MAX
  2275. @%:@ define HALF \
  2276. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  2277. @%:@ define LLONG_MAX (HALF - 1 + HALF)
  2278. @%:@endif]],
  2279. [[long long int n = 1;
  2280. int i;
  2281. for (i = 0; ; i++)
  2282. {
  2283. long long int m = n << i;
  2284. if (m >> i != n)
  2285. return 1;
  2286. if (LLONG_MAX / 2 < m)
  2287. break;
  2288. }
  2289. return 0;]])],
  2290. [],
  2291. [ac_cv_type_long_long_int=no],
  2292. [:])
  2293. fi
  2294. fi])
  2295. if test $ac_cv_type_long_long_int = yes; then
  2296. AC_DEFINE([HAVE_LONG_LONG_INT], [1],
  2297. [Define to 1 if the system has the type 'long long int'.])
  2298. fi
  2299. ])
  2300. m4trace:/usr/share/aclocal/longlong.m4:67: -1- AC_DEFUN([AC_TYPE_UNSIGNED_LONG_LONG_INT], [
  2301. AC_CACHE_CHECK([for unsigned long long int],
  2302. [ac_cv_type_unsigned_long_long_int],
  2303. [ac_cv_type_unsigned_long_long_int=yes
  2304. if test "x${ac_cv_prog_cc_c99-no}" = xno; then
  2305. AC_LINK_IFELSE(
  2306. [_AC_TYPE_LONG_LONG_SNIPPET],
  2307. [],
  2308. [ac_cv_type_unsigned_long_long_int=no])
  2309. fi])
  2310. if test $ac_cv_type_unsigned_long_long_int = yes; then
  2311. AC_DEFINE([HAVE_UNSIGNED_LONG_LONG_INT], [1],
  2312. [Define to 1 if the system has the type 'unsigned long long int'.])
  2313. fi
  2314. ])
  2315. m4trace:/usr/share/aclocal/longlong.m4:89: -1- AC_DEFUN([_AC_TYPE_LONG_LONG_SNIPPET], [
  2316. AC_LANG_PROGRAM(
  2317. [[/* For now, do not test the preprocessor; as of 2007 there are too many
  2318. implementations with broken preprocessors. Perhaps this can
  2319. be revisited in 2012. In the meantime, code should not expect
  2320. #if to work with literals wider than 32 bits. */
  2321. /* Test literals. */
  2322. long long int ll = 9223372036854775807ll;
  2323. long long int nll = -9223372036854775807LL;
  2324. unsigned long long int ull = 18446744073709551615ULL;
  2325. /* Test constant expressions. */
  2326. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  2327. ? 1 : -1)];
  2328. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  2329. ? 1 : -1)];
  2330. int i = 63;]],
  2331. [[/* Test availability of runtime routines for shift and division. */
  2332. long long int llmax = 9223372036854775807ll;
  2333. unsigned long long int ullmax = 18446744073709551615ull;
  2334. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  2335. | (llmax / ll) | (llmax % ll)
  2336. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  2337. | (ullmax / ull) | (ullmax % ull));]])
  2338. ])
  2339. m4trace:/usr/share/aclocal/nls.m4:23: -1- AC_DEFUN([AM_NLS], [
  2340. AC_MSG_CHECKING([whether NLS is requested])
  2341. dnl Default is enabled NLS
  2342. AC_ARG_ENABLE([nls],
  2343. [ --disable-nls do not use Native Language Support],
  2344. USE_NLS=$enableval, USE_NLS=yes)
  2345. AC_MSG_RESULT([$USE_NLS])
  2346. AC_SUBST([USE_NLS])
  2347. ])
  2348. m4trace:/usr/share/aclocal/po.m4:23: -1- AC_DEFUN([AM_PO_SUBDIRS], [
  2349. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  2350. AC_REQUIRE([AC_PROG_INSTALL])dnl
  2351. AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  2352. AC_REQUIRE([AC_PROG_SED])dnl
  2353. AC_REQUIRE([AM_NLS])dnl
  2354. dnl Release version of the gettext macros. This is used to ensure that
  2355. dnl the gettext macros and po/Makefile.in.in are in sync.
  2356. AC_SUBST([GETTEXT_MACRO_VERSION], [0.19])
  2357. dnl Perform the following tests also if --disable-nls has been given,
  2358. dnl because they are needed for "make dist" to work.
  2359. dnl Search for GNU msgfmt in the PATH.
  2360. dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions.
  2361. dnl The second test excludes FreeBSD msgfmt.
  2362. AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
  2363. [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
  2364. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
  2365. :)
  2366. AC_PATH_PROG([GMSGFMT], [gmsgfmt], [$MSGFMT])
  2367. dnl Test whether it is GNU msgfmt >= 0.15.
  2368. changequote(,)dnl
  2369. case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  2370. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  2371. *) MSGFMT_015=$MSGFMT ;;
  2372. esac
  2373. changequote([,])dnl
  2374. AC_SUBST([MSGFMT_015])
  2375. changequote(,)dnl
  2376. case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  2377. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  2378. *) GMSGFMT_015=$GMSGFMT ;;
  2379. esac
  2380. changequote([,])dnl
  2381. AC_SUBST([GMSGFMT_015])
  2382. dnl Search for GNU xgettext 0.12 or newer in the PATH.
  2383. dnl The first test excludes Solaris xgettext and early GNU xgettext versions.
  2384. dnl The second test excludes FreeBSD xgettext.
  2385. AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
  2386. [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
  2387. (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
  2388. :)
  2389. dnl Remove leftover from FreeBSD xgettext call.
  2390. rm -f messages.po
  2391. dnl Test whether it is GNU xgettext >= 0.15.
  2392. changequote(,)dnl
  2393. case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  2394. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  2395. *) XGETTEXT_015=$XGETTEXT ;;
  2396. esac
  2397. changequote([,])dnl
  2398. AC_SUBST([XGETTEXT_015])
  2399. dnl Search for GNU msgmerge 0.11 or newer in the PATH.
  2400. AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge,
  2401. [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :)
  2402. dnl Installation directories.
  2403. dnl Autoconf >= 2.60 defines localedir. For older versions of autoconf, we
  2404. dnl have to define it here, so that it can be used in po/Makefile.
  2405. test -n "$localedir" || localedir='${datadir}/locale'
  2406. AC_SUBST([localedir])
  2407. dnl Support for AM_XGETTEXT_OPTION.
  2408. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  2409. AC_SUBST([XGETTEXT_EXTRA_OPTIONS])
  2410. AC_CONFIG_COMMANDS([po-directories], [[
  2411. for ac_file in $CONFIG_FILES; do
  2412. # Support "outfile[:infile[:infile...]]"
  2413. case "$ac_file" in
  2414. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2415. esac
  2416. # PO directories have a Makefile.in generated from Makefile.in.in.
  2417. case "$ac_file" in */Makefile.in)
  2418. # Adjust a relative srcdir.
  2419. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  2420. ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
  2421. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  2422. # In autoconf-2.13 it is called $ac_given_srcdir.
  2423. # In autoconf-2.50 it is called $srcdir.
  2424. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  2425. case "$ac_given_srcdir" in
  2426. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  2427. /*) top_srcdir="$ac_given_srcdir" ;;
  2428. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  2429. esac
  2430. # Treat a directory as a PO directory if and only if it has a
  2431. # POTFILES.in file. This allows packages to have multiple PO
  2432. # directories under different names or in different locations.
  2433. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  2434. rm -f "$ac_dir/POTFILES"
  2435. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  2436. gt_tab=`printf '\t'`
  2437. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  2438. POMAKEFILEDEPS="POTFILES.in"
  2439. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  2440. # on $ac_dir but don't depend on user-specified configuration
  2441. # parameters.
  2442. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  2443. # The LINGUAS file contains the set of available languages.
  2444. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  2445. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  2446. fi
  2447. ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  2448. # Hide the ALL_LINGUAS assignment from automake < 1.5.
  2449. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  2450. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  2451. else
  2452. # The set of available languages was given in configure.in.
  2453. # Hide the ALL_LINGUAS assignment from automake < 1.5.
  2454. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  2455. fi
  2456. # Compute POFILES
  2457. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  2458. # Compute UPDATEPOFILES
  2459. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  2460. # Compute DUMMYPOFILES
  2461. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  2462. # Compute GMOFILES
  2463. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  2464. case "$ac_given_srcdir" in
  2465. .) srcdirpre= ;;
  2466. *) srcdirpre='$(srcdir)/' ;;
  2467. esac
  2468. POFILES=
  2469. UPDATEPOFILES=
  2470. DUMMYPOFILES=
  2471. GMOFILES=
  2472. for lang in $ALL_LINGUAS; do
  2473. POFILES="$POFILES $srcdirpre$lang.po"
  2474. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  2475. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  2476. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  2477. done
  2478. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  2479. # environment variable.
  2480. INST_LINGUAS=
  2481. if test -n "$ALL_LINGUAS"; then
  2482. for presentlang in $ALL_LINGUAS; do
  2483. useit=no
  2484. if test "%UNSET%" != "$LINGUAS"; then
  2485. desiredlanguages="$LINGUAS"
  2486. else
  2487. desiredlanguages="$ALL_LINGUAS"
  2488. fi
  2489. for desiredlang in $desiredlanguages; do
  2490. # Use the presentlang catalog if desiredlang is
  2491. # a. equal to presentlang, or
  2492. # b. a variant of presentlang (because in this case,
  2493. # presentlang can be used as a fallback for messages
  2494. # which are not translated in the desiredlang catalog).
  2495. case "$desiredlang" in
  2496. "$presentlang"*) useit=yes;;
  2497. esac
  2498. done
  2499. if test $useit = yes; then
  2500. INST_LINGUAS="$INST_LINGUAS $presentlang"
  2501. fi
  2502. done
  2503. fi
  2504. CATALOGS=
  2505. if test -n "$INST_LINGUAS"; then
  2506. for lang in $INST_LINGUAS; do
  2507. CATALOGS="$CATALOGS $lang.gmo"
  2508. done
  2509. fi
  2510. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  2511. sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
  2512. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  2513. if test -f "$f"; then
  2514. case "$f" in
  2515. *.orig | *.bak | *~) ;;
  2516. *) cat "$f" >> "$ac_dir/Makefile" ;;
  2517. esac
  2518. fi
  2519. done
  2520. fi
  2521. ;;
  2522. esac
  2523. done]],
  2524. [# Capture the value of obsolete ALL_LINGUAS because we need it to compute
  2525. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  2526. # from automake < 1.5.
  2527. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  2528. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  2529. LINGUAS="${LINGUAS-%UNSET%}"
  2530. ])
  2531. ])
  2532. m4trace:/usr/share/aclocal/po.m4:220: -1- AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE], [
  2533. # When this code is run, in config.status, two variables have already been
  2534. # set:
  2535. # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in,
  2536. # - LINGUAS is the value of the environment variable LINGUAS at configure
  2537. # time.
  2538. changequote(,)dnl
  2539. # Adjust a relative srcdir.
  2540. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  2541. ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
  2542. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  2543. # In autoconf-2.13 it is called $ac_given_srcdir.
  2544. # In autoconf-2.50 it is called $srcdir.
  2545. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  2546. case "$ac_given_srcdir" in
  2547. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  2548. /*) top_srcdir="$ac_given_srcdir" ;;
  2549. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  2550. esac
  2551. # Find a way to echo strings without interpreting backslash.
  2552. if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then
  2553. gt_echo='echo'
  2554. else
  2555. if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then
  2556. gt_echo='printf %s\n'
  2557. else
  2558. echo_func () {
  2559. cat <<EOT
  2560. $*
  2561. EOT
  2562. }
  2563. gt_echo='echo_func'
  2564. fi
  2565. fi
  2566. # A sed script that extracts the value of VARIABLE from a Makefile.
  2567. tab=`printf '\t'`
  2568. sed_x_variable='
  2569. # Test if the hold space is empty.
  2570. x
  2571. s/P/P/
  2572. x
  2573. ta
  2574. # Yes it was empty. Look if we have the expected variable definition.
  2575. /^['"${tab}"' ]*VARIABLE['"${tab}"' ]*=/{
  2576. # Seen the first line of the variable definition.
  2577. s/^['"${tab}"' ]*VARIABLE['"${tab}"' ]*=//
  2578. ba
  2579. }
  2580. bd
  2581. :a
  2582. # Here we are processing a line from the variable definition.
  2583. # Remove comment, more precisely replace it with a space.
  2584. s/#.*$/ /
  2585. # See if the line ends in a backslash.
  2586. tb
  2587. :b
  2588. s/\\$//
  2589. # Print the line, without the trailing backslash.
  2590. p
  2591. tc
  2592. # There was no trailing backslash. The end of the variable definition is
  2593. # reached. Clear the hold space.
  2594. s/^.*$//
  2595. x
  2596. bd
  2597. :c
  2598. # A trailing backslash means that the variable definition continues in the
  2599. # next line. Put a nonempty string into the hold space to indicate this.
  2600. s/^.*$/P/
  2601. x
  2602. :d
  2603. '
  2604. changequote([,])dnl
  2605. # Set POTFILES to the value of the Makefile variable POTFILES.
  2606. sed_x_POTFILES=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/POTFILES/g'`
  2607. POTFILES=`sed -n -e "$sed_x_POTFILES" < "$ac_file"`
  2608. # Compute POTFILES_DEPS as
  2609. # $(foreach file, $(POTFILES), $(top_srcdir)/$(file))
  2610. POTFILES_DEPS=
  2611. for file in $POTFILES; do
  2612. POTFILES_DEPS="$POTFILES_DEPS "'$(top_srcdir)/'"$file"
  2613. done
  2614. POMAKEFILEDEPS=""
  2615. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  2616. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  2617. fi
  2618. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  2619. # The LINGUAS file contains the set of available languages.
  2620. ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  2621. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  2622. else
  2623. # Set ALL_LINGUAS to the value of the Makefile variable LINGUAS.
  2624. sed_x_LINGUAS=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/LINGUAS/g'`
  2625. ALL_LINGUAS_=`sed -n -e "$sed_x_LINGUAS" < "$ac_file"`
  2626. fi
  2627. # Hide the ALL_LINGUAS assignment from automake < 1.5.
  2628. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  2629. # Compute POFILES
  2630. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  2631. # Compute UPDATEPOFILES
  2632. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  2633. # Compute DUMMYPOFILES
  2634. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  2635. # Compute GMOFILES
  2636. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  2637. # Compute PROPERTIESFILES
  2638. # as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).properties)
  2639. # Compute CLASSFILES
  2640. # as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).class)
  2641. # Compute QMFILES
  2642. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).qm)
  2643. # Compute MSGFILES
  2644. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang)).msg)
  2645. # Compute RESOURCESDLLFILES
  2646. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang))/$(DOMAIN).resources.dll)
  2647. case "$ac_given_srcdir" in
  2648. .) srcdirpre= ;;
  2649. *) srcdirpre='$(srcdir)/' ;;
  2650. esac
  2651. POFILES=
  2652. UPDATEPOFILES=
  2653. DUMMYPOFILES=
  2654. GMOFILES=
  2655. PROPERTIESFILES=
  2656. CLASSFILES=
  2657. QMFILES=
  2658. MSGFILES=
  2659. RESOURCESDLLFILES=
  2660. for lang in $ALL_LINGUAS; do
  2661. POFILES="$POFILES $srcdirpre$lang.po"
  2662. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  2663. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  2664. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  2665. PROPERTIESFILES="$PROPERTIESFILES \$(top_srcdir)/\$(DOMAIN)_$lang.properties"
  2666. CLASSFILES="$CLASSFILES \$(top_srcdir)/\$(DOMAIN)_$lang.class"
  2667. QMFILES="$QMFILES $srcdirpre$lang.qm"
  2668. frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
  2669. MSGFILES="$MSGFILES $srcdirpre$frobbedlang.msg"
  2670. frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
  2671. RESOURCESDLLFILES="$RESOURCESDLLFILES $srcdirpre$frobbedlang/\$(DOMAIN).resources.dll"
  2672. done
  2673. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  2674. # environment variable.
  2675. INST_LINGUAS=
  2676. if test -n "$ALL_LINGUAS"; then
  2677. for presentlang in $ALL_LINGUAS; do
  2678. useit=no
  2679. if test "%UNSET%" != "$LINGUAS"; then
  2680. desiredlanguages="$LINGUAS"
  2681. else
  2682. desiredlanguages="$ALL_LINGUAS"
  2683. fi
  2684. for desiredlang in $desiredlanguages; do
  2685. # Use the presentlang catalog if desiredlang is
  2686. # a. equal to presentlang, or
  2687. # b. a variant of presentlang (because in this case,
  2688. # presentlang can be used as a fallback for messages
  2689. # which are not translated in the desiredlang catalog).
  2690. case "$desiredlang" in
  2691. "$presentlang"*) useit=yes;;
  2692. esac
  2693. done
  2694. if test $useit = yes; then
  2695. INST_LINGUAS="$INST_LINGUAS $presentlang"
  2696. fi
  2697. done
  2698. fi
  2699. CATALOGS=
  2700. JAVACATALOGS=
  2701. QTCATALOGS=
  2702. TCLCATALOGS=
  2703. CSHARPCATALOGS=
  2704. if test -n "$INST_LINGUAS"; then
  2705. for lang in $INST_LINGUAS; do
  2706. CATALOGS="$CATALOGS $lang.gmo"
  2707. JAVACATALOGS="$JAVACATALOGS \$(DOMAIN)_$lang.properties"
  2708. QTCATALOGS="$QTCATALOGS $lang.qm"
  2709. frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
  2710. TCLCATALOGS="$TCLCATALOGS $frobbedlang.msg"
  2711. frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
  2712. CSHARPCATALOGS="$CSHARPCATALOGS $frobbedlang/\$(DOMAIN).resources.dll"
  2713. done
  2714. fi
  2715. sed -e "s|@POTFILES_DEPS@|$POTFILES_DEPS|g" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@PROPERTIESFILES@|$PROPERTIESFILES|g" -e "s|@CLASSFILES@|$CLASSFILES|g" -e "s|@QMFILES@|$QMFILES|g" -e "s|@MSGFILES@|$MSGFILES|g" -e "s|@RESOURCESDLLFILES@|$RESOURCESDLLFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@JAVACATALOGS@|$JAVACATALOGS|g" -e "s|@QTCATALOGS@|$QTCATALOGS|g" -e "s|@TCLCATALOGS@|$TCLCATALOGS|g" -e "s|@CSHARPCATALOGS@|$CSHARPCATALOGS|g" -e 's,^#distdir:,distdir:,' < "$ac_file" > "$ac_file.tmp"
  2716. tab=`printf '\t'`
  2717. if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then
  2718. # Add dependencies that cannot be formulated as a simple suffix rule.
  2719. for lang in $ALL_LINGUAS; do
  2720. frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
  2721. cat >> "$ac_file.tmp" <<EOF
  2722. $frobbedlang.msg: $lang.po
  2723. ${tab}@echo "\$(MSGFMT) -c --tcl -d \$(srcdir) -l $lang $srcdirpre$lang.po"; \
  2724. ${tab}\$(MSGFMT) -c --tcl -d "\$(srcdir)" -l $lang $srcdirpre$lang.po || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
  2725. EOF
  2726. done
  2727. fi
  2728. if grep -l '@CSHARPCATALOGS@' "$ac_file" > /dev/null; then
  2729. # Add dependencies that cannot be formulated as a simple suffix rule.
  2730. for lang in $ALL_LINGUAS; do
  2731. frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
  2732. cat >> "$ac_file.tmp" <<EOF
  2733. $frobbedlang/\$(DOMAIN).resources.dll: $lang.po
  2734. ${tab}@echo "\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$lang.po -r \$(DOMAIN)"; \
  2735. ${tab}\$(MSGFMT) -c --csharp -d "\$(srcdir)" -l $lang $srcdirpre$lang.po -r "\$(DOMAIN)" || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
  2736. EOF
  2737. done
  2738. fi
  2739. if test -n "$POMAKEFILEDEPS"; then
  2740. cat >> "$ac_file.tmp" <<EOF
  2741. Makefile: $POMAKEFILEDEPS
  2742. EOF
  2743. fi
  2744. mv "$ac_file.tmp" "$ac_file"
  2745. ])
  2746. m4trace:/usr/share/aclocal/po.m4:443: -1- AC_DEFUN([AM_XGETTEXT_OPTION_INIT], [
  2747. XGETTEXT_EXTRA_OPTIONS=
  2748. ])
  2749. m4trace:/usr/share/aclocal/po.m4:449: -1- AC_DEFUN([AM_XGETTEXT_OPTION], [
  2750. AC_REQUIRE([AM_XGETTEXT_OPTION_INIT])
  2751. XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS $1"
  2752. ])
  2753. m4trace:/usr/share/aclocal/printf-posix.m4:11: -1- AC_DEFUN([gt_PRINTF_POSIX], [
  2754. AC_REQUIRE([AC_PROG_CC])
  2755. AC_CACHE_CHECK([whether printf() supports POSIX/XSI format strings],
  2756. gt_cv_func_printf_posix,
  2757. [
  2758. AC_RUN_IFELSE(
  2759. [AC_LANG_SOURCE([[
  2760. #include <stdio.h>
  2761. #include <string.h>
  2762. /* The string "%2$d %1$d", with dollar characters protected from the shell's
  2763. dollar expansion (possibly an autoconf bug). */
  2764. static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
  2765. static char buf[100];
  2766. int main ()
  2767. {
  2768. sprintf (buf, format, 33, 55);
  2769. return (strcmp (buf, "55 33") != 0);
  2770. }]])],
  2771. [gt_cv_func_printf_posix=yes],
  2772. [gt_cv_func_printf_posix=no],
  2773. [
  2774. AC_EGREP_CPP([notposix], [
  2775. #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
  2776. notposix
  2777. #endif
  2778. ],
  2779. [gt_cv_func_printf_posix="guessing no"],
  2780. [gt_cv_func_printf_posix="guessing yes"])
  2781. ])
  2782. ])
  2783. case $gt_cv_func_printf_posix in
  2784. *yes)
  2785. AC_DEFINE([HAVE_POSIX_PRINTF], [1],
  2786. [Define if your printf() function supports format strings with positions.])
  2787. ;;
  2788. esac
  2789. ])
  2790. m4trace:/usr/share/aclocal/progtest.m4:25: -1- AC_DEFUN([AM_PATH_PROG_WITH_TEST], [
  2791. # Prepare PATH_SEPARATOR.
  2792. # The user is always right.
  2793. if test "${PATH_SEPARATOR+set}" != set; then
  2794. # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
  2795. # contains only /bin. Note that ksh looks also at the FPATH variable,
  2796. # so we have to set that as well for the test.
  2797. PATH_SEPARATOR=:
  2798. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
  2799. && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
  2800. || PATH_SEPARATOR=';'
  2801. }
  2802. fi
  2803. # Find out how to test for executable files. Don't use a zero-byte file,
  2804. # as systems may use methods other than mode bits to determine executability.
  2805. cat >conf$$.file <<_ASEOF
  2806. #! /bin/sh
  2807. exit 0
  2808. _ASEOF
  2809. chmod +x conf$$.file
  2810. if test -x conf$$.file >/dev/null 2>&1; then
  2811. ac_executable_p="test -x"
  2812. else
  2813. ac_executable_p="test -f"
  2814. fi
  2815. rm -f conf$$.file
  2816. # Extract the first word of "$2", so it can be a program name with args.
  2817. set dummy $2; ac_word=[$]2
  2818. AC_MSG_CHECKING([for $ac_word])
  2819. AC_CACHE_VAL([ac_cv_path_$1],
  2820. [case "[$]$1" in
  2821. [[\\/]]* | ?:[[\\/]]*)
  2822. ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
  2823. ;;
  2824. *)
  2825. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  2826. for ac_dir in ifelse([$5], , $PATH, [$5]); do
  2827. IFS="$ac_save_IFS"
  2828. test -z "$ac_dir" && ac_dir=.
  2829. for ac_exec_ext in '' $ac_executable_extensions; do
  2830. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  2831. echo "$as_me: trying $ac_dir/$ac_word..." >&AS_MESSAGE_LOG_FD
  2832. if [$3]; then
  2833. ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext"
  2834. break 2
  2835. fi
  2836. fi
  2837. done
  2838. done
  2839. IFS="$ac_save_IFS"
  2840. dnl If no 4th arg is given, leave the cache variable unset,
  2841. dnl so AC_PATH_PROGS will keep looking.
  2842. ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
  2843. ])dnl
  2844. ;;
  2845. esac])dnl
  2846. $1="$ac_cv_path_$1"
  2847. if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
  2848. AC_MSG_RESULT([$][$1])
  2849. else
  2850. AC_MSG_RESULT([no])
  2851. fi
  2852. AC_SUBST([$1])dnl
  2853. ])
  2854. m4trace:/usr/share/aclocal/size_max.m4:9: -1- AC_DEFUN([gl_SIZE_MAX], [
  2855. AC_CHECK_HEADERS([stdint.h])
  2856. dnl First test whether the system already has SIZE_MAX.
  2857. AC_CACHE_CHECK([for SIZE_MAX], [gl_cv_size_max], [
  2858. gl_cv_size_max=
  2859. AC_EGREP_CPP([Found it], [
  2860. #include <limits.h>
  2861. #if HAVE_STDINT_H
  2862. #include <stdint.h>
  2863. #endif
  2864. #ifdef SIZE_MAX
  2865. Found it
  2866. #endif
  2867. ], [gl_cv_size_max=yes])
  2868. if test -z "$gl_cv_size_max"; then
  2869. dnl Define it ourselves. Here we assume that the type 'size_t' is not wider
  2870. dnl than the type 'unsigned long'. Try hard to find a definition that can
  2871. dnl be used in a preprocessor #if, i.e. doesn't contain a cast.
  2872. AC_COMPUTE_INT([size_t_bits_minus_1], [sizeof (size_t) * CHAR_BIT - 1],
  2873. [#include <stddef.h>
  2874. #include <limits.h>], [size_t_bits_minus_1=])
  2875. AC_COMPUTE_INT([fits_in_uint], [sizeof (size_t) <= sizeof (unsigned int)],
  2876. [#include <stddef.h>], [fits_in_uint=])
  2877. if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
  2878. if test $fits_in_uint = 1; then
  2879. dnl Even though SIZE_MAX fits in an unsigned int, it must be of type
  2880. dnl 'unsigned long' if the type 'size_t' is the same as 'unsigned long'.
  2881. AC_COMPILE_IFELSE(
  2882. [AC_LANG_PROGRAM(
  2883. [[#include <stddef.h>
  2884. extern size_t foo;
  2885. extern unsigned long foo;
  2886. ]],
  2887. [[]])],
  2888. [fits_in_uint=0])
  2889. fi
  2890. dnl We cannot use 'expr' to simplify this expression, because 'expr'
  2891. dnl works only with 'long' integers in the host environment, while we
  2892. dnl might be cross-compiling from a 32-bit platform to a 64-bit platform.
  2893. if test $fits_in_uint = 1; then
  2894. gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
  2895. else
  2896. gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
  2897. fi
  2898. else
  2899. dnl Shouldn't happen, but who knows...
  2900. gl_cv_size_max='((size_t)~(size_t)0)'
  2901. fi
  2902. fi
  2903. ])
  2904. if test "$gl_cv_size_max" != yes; then
  2905. AC_DEFINE_UNQUOTED([SIZE_MAX], [$gl_cv_size_max],
  2906. [Define as the maximum value of type 'size_t', if the system doesn't define it.])
  2907. fi
  2908. dnl Don't redefine SIZE_MAX in config.h if config.h is re-included after
  2909. dnl <stdint.h>. Remember that the #undef in AH_VERBATIM gets replaced with
  2910. dnl #define by AC_DEFINE_UNQUOTED.
  2911. AH_VERBATIM([SIZE_MAX],
  2912. [/* Define as the maximum value of type 'size_t', if the system doesn't define
  2913. it. */
  2914. #ifndef SIZE_MAX
  2915. # undef SIZE_MAX
  2916. #endif])
  2917. ])
  2918. m4trace:/usr/share/aclocal/stdint_h.m4:12: -1- AC_DEFUN([gl_AC_HEADER_STDINT_H], [
  2919. AC_CACHE_CHECK([for stdint.h], [gl_cv_header_stdint_h],
  2920. [AC_COMPILE_IFELSE(
  2921. [AC_LANG_PROGRAM(
  2922. [[#include <sys/types.h>
  2923. #include <stdint.h>]],
  2924. [[uintmax_t i = (uintmax_t) -1; return !i;]])],
  2925. [gl_cv_header_stdint_h=yes],
  2926. [gl_cv_header_stdint_h=no])])
  2927. if test $gl_cv_header_stdint_h = yes; then
  2928. AC_DEFINE_UNQUOTED([HAVE_STDINT_H_WITH_UINTMAX], [1],
  2929. [Define if <stdint.h> exists, doesn't clash with <sys/types.h>,
  2930. and declares uintmax_t. ])
  2931. fi
  2932. ])
  2933. m4trace:/usr/share/aclocal/threadlib.m4:29: -1- AC_DEFUN([gl_THREADLIB_EARLY], [
  2934. AC_REQUIRE([gl_THREADLIB_EARLY_BODY])
  2935. ])
  2936. m4trace:/usr/share/aclocal/threadlib.m4:36: -1- AC_DEFUN([gl_THREADLIB_EARLY_BODY], [
  2937. dnl Ordering constraints: This macro modifies CPPFLAGS in a way that
  2938. dnl influences the result of the autoconf tests that test for *_unlocked
  2939. dnl declarations, on AIX 5 at least. Therefore it must come early.
  2940. AC_BEFORE([$0], [gl_FUNC_GLIBC_UNLOCKED_IO])dnl
  2941. AC_BEFORE([$0], [gl_ARGP])dnl
  2942. AC_REQUIRE([AC_CANONICAL_HOST])
  2943. dnl _GNU_SOURCE is needed for pthread_rwlock_t on glibc systems.
  2944. dnl AC_USE_SYSTEM_EXTENSIONS was introduced in autoconf 2.60 and obsoletes
  2945. dnl AC_GNU_SOURCE.
  2946. m4_ifdef([AC_USE_SYSTEM_EXTENSIONS],
  2947. [AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])],
  2948. [AC_REQUIRE([AC_GNU_SOURCE])])
  2949. dnl Check for multithreading.
  2950. m4_ifdef([gl_THREADLIB_DEFAULT_NO],
  2951. [m4_divert_text([DEFAULTS], [gl_use_threads_default=no])],
  2952. [m4_divert_text([DEFAULTS], [gl_use_threads_default=])])
  2953. AC_ARG_ENABLE([threads],
  2954. AC_HELP_STRING([--enable-threads={posix|solaris|pth|windows}], [specify multithreading API])m4_ifdef([gl_THREADLIB_DEFAULT_NO], [], [
  2955. AC_HELP_STRING([--disable-threads], [build without multithread safety])]),
  2956. [gl_use_threads=$enableval],
  2957. [if test -n "$gl_use_threads_default"; then
  2958. gl_use_threads="$gl_use_threads_default"
  2959. else
  2960. changequote(,)dnl
  2961. case "$host_os" in
  2962. dnl Disable multithreading by default on OSF/1, because it interferes
  2963. dnl with fork()/exec(): When msgexec is linked with -lpthread, its
  2964. dnl child process gets an endless segmentation fault inside execvp().
  2965. dnl Disable multithreading by default on Cygwin 1.5.x, because it has
  2966. dnl bugs that lead to endless loops or crashes. See
  2967. dnl <http://cygwin.com/ml/cygwin/2009-08/msg00283.html>.
  2968. osf*) gl_use_threads=no ;;
  2969. cygwin*)
  2970. case `uname -r` in
  2971. 1.[0-5].*) gl_use_threads=no ;;
  2972. *) gl_use_threads=yes ;;
  2973. esac
  2974. ;;
  2975. *) gl_use_threads=yes ;;
  2976. esac
  2977. changequote([,])dnl
  2978. fi
  2979. ])
  2980. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  2981. # For using <pthread.h>:
  2982. case "$host_os" in
  2983. osf*)
  2984. # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
  2985. # groks <pthread.h>. cc also understands the flag -pthread, but
  2986. # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
  2987. # 2. putting a flag into CPPFLAGS that has an effect on the linker
  2988. # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
  2989. # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
  2990. CPPFLAGS="$CPPFLAGS -D_REENTRANT"
  2991. ;;
  2992. esac
  2993. # Some systems optimize for single-threaded programs by default, and
  2994. # need special flags to disable these optimizations. For example, the
  2995. # definition of 'errno' in <errno.h>.
  2996. case "$host_os" in
  2997. aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
  2998. solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
  2999. esac
  3000. fi
  3001. ])
  3002. m4trace:/usr/share/aclocal/threadlib.m4:107: -1- AC_DEFUN([gl_THREADLIB_BODY], [
  3003. AC_REQUIRE([gl_THREADLIB_EARLY_BODY])
  3004. gl_threads_api=none
  3005. LIBTHREAD=
  3006. LTLIBTHREAD=
  3007. LIBMULTITHREAD=
  3008. LTLIBMULTITHREAD=
  3009. if test "$gl_use_threads" != no; then
  3010. dnl Check whether the compiler and linker support weak declarations.
  3011. AC_CACHE_CHECK([whether imported symbols can be declared weak],
  3012. [gl_cv_have_weak],
  3013. [gl_cv_have_weak=no
  3014. dnl First, test whether the compiler accepts it syntactically.
  3015. AC_LINK_IFELSE(
  3016. [AC_LANG_PROGRAM(
  3017. [[extern void xyzzy ();
  3018. #pragma weak xyzzy]],
  3019. [[xyzzy();]])],
  3020. [gl_cv_have_weak=maybe])
  3021. if test $gl_cv_have_weak = maybe; then
  3022. dnl Second, test whether it actually works. On Cygwin 1.7.2, with
  3023. dnl gcc 4.3, symbols declared weak always evaluate to the address 0.
  3024. AC_RUN_IFELSE(
  3025. [AC_LANG_SOURCE([[
  3026. #include <stdio.h>
  3027. #pragma weak fputs
  3028. int main ()
  3029. {
  3030. return (fputs == NULL);
  3031. }]])],
  3032. [gl_cv_have_weak=yes],
  3033. [gl_cv_have_weak=no],
  3034. [dnl When cross-compiling, assume that only ELF platforms support
  3035. dnl weak symbols.
  3036. AC_EGREP_CPP([Extensible Linking Format],
  3037. [#ifdef __ELF__
  3038. Extensible Linking Format
  3039. #endif
  3040. ],
  3041. [gl_cv_have_weak="guessing yes"],
  3042. [gl_cv_have_weak="guessing no"])
  3043. ])
  3044. fi
  3045. ])
  3046. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  3047. # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
  3048. # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
  3049. AC_CHECK_HEADER([pthread.h],
  3050. [gl_have_pthread_h=yes], [gl_have_pthread_h=no])
  3051. if test "$gl_have_pthread_h" = yes; then
  3052. # Other possible tests:
  3053. # -lpthreads (FSU threads, PCthreads)
  3054. # -lgthreads
  3055. gl_have_pthread=
  3056. # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
  3057. # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
  3058. # the second one only in libpthread, and lock.c needs it.
  3059. #
  3060. # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
  3061. # needs -pthread for some reason. See:
  3062. # http://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00023.html
  3063. save_LIBS=$LIBS
  3064. for gl_pthread in '' '-pthread'; do
  3065. LIBS="$LIBS $gl_pthread"
  3066. AC_LINK_IFELSE(
  3067. [AC_LANG_PROGRAM(
  3068. [[#include <pthread.h>
  3069. pthread_mutex_t m;
  3070. pthread_mutexattr_t ma;
  3071. ]],
  3072. [[pthread_mutex_lock (&m);
  3073. pthread_mutexattr_init (&ma);]])],
  3074. [gl_have_pthread=yes
  3075. LIBTHREAD=$gl_pthread LTLIBTHREAD=$gl_pthread
  3076. LIBMULTITHREAD=$gl_pthread LTLIBMULTITHREAD=$gl_pthread])
  3077. LIBS=$save_LIBS
  3078. test -n "$gl_have_pthread" && break
  3079. done
  3080. # Test for libpthread by looking for pthread_kill. (Not pthread_self,
  3081. # since it is defined as a macro on OSF/1.)
  3082. if test -n "$gl_have_pthread" && test -z "$LIBTHREAD"; then
  3083. # The program links fine without libpthread. But it may actually
  3084. # need to link with libpthread in order to create multiple threads.
  3085. AC_CHECK_LIB([pthread], [pthread_kill],
  3086. [LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  3087. # On Solaris and HP-UX, most pthread functions exist also in libc.
  3088. # Therefore pthread_in_use() needs to actually try to create a
  3089. # thread: pthread_create from libc will fail, whereas
  3090. # pthread_create will actually create a thread.
  3091. case "$host_os" in
  3092. solaris* | hpux*)
  3093. AC_DEFINE([PTHREAD_IN_USE_DETECTION_HARD], [1],
  3094. [Define if the pthread_in_use() detection is hard.])
  3095. esac
  3096. ])
  3097. elif test -z "$gl_have_pthread"; then
  3098. # Some library is needed. Try libpthread and libc_r.
  3099. AC_CHECK_LIB([pthread], [pthread_kill],
  3100. [gl_have_pthread=yes
  3101. LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
  3102. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread])
  3103. if test -z "$gl_have_pthread"; then
  3104. # For FreeBSD 4.
  3105. AC_CHECK_LIB([c_r], [pthread_kill],
  3106. [gl_have_pthread=yes
  3107. LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
  3108. LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r])
  3109. fi
  3110. fi
  3111. if test -n "$gl_have_pthread"; then
  3112. gl_threads_api=posix
  3113. AC_DEFINE([USE_POSIX_THREADS], [1],
  3114. [Define if the POSIX multithreading library can be used.])
  3115. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  3116. if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
  3117. AC_DEFINE([USE_POSIX_THREADS_WEAK], [1],
  3118. [Define if references to the POSIX multithreading library should be made weak.])
  3119. LIBTHREAD=
  3120. LTLIBTHREAD=
  3121. fi
  3122. fi
  3123. fi
  3124. fi
  3125. fi
  3126. if test -z "$gl_have_pthread"; then
  3127. if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
  3128. gl_have_solaristhread=
  3129. gl_save_LIBS="$LIBS"
  3130. LIBS="$LIBS -lthread"
  3131. AC_LINK_IFELSE(
  3132. [AC_LANG_PROGRAM(
  3133. [[
  3134. #include <thread.h>
  3135. #include <synch.h>
  3136. ]],
  3137. [[thr_self();]])],
  3138. [gl_have_solaristhread=yes])
  3139. LIBS="$gl_save_LIBS"
  3140. if test -n "$gl_have_solaristhread"; then
  3141. gl_threads_api=solaris
  3142. LIBTHREAD=-lthread
  3143. LTLIBTHREAD=-lthread
  3144. LIBMULTITHREAD="$LIBTHREAD"
  3145. LTLIBMULTITHREAD="$LTLIBTHREAD"
  3146. AC_DEFINE([USE_SOLARIS_THREADS], [1],
  3147. [Define if the old Solaris multithreading library can be used.])
  3148. if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
  3149. AC_DEFINE([USE_SOLARIS_THREADS_WEAK], [1],
  3150. [Define if references to the old Solaris multithreading library should be made weak.])
  3151. LIBTHREAD=
  3152. LTLIBTHREAD=
  3153. fi
  3154. fi
  3155. fi
  3156. fi
  3157. if test "$gl_use_threads" = pth; then
  3158. gl_save_CPPFLAGS="$CPPFLAGS"
  3159. AC_LIB_LINKFLAGS([pth])
  3160. gl_have_pth=
  3161. gl_save_LIBS="$LIBS"
  3162. LIBS="$LIBS $LIBPTH"
  3163. AC_LINK_IFELSE(
  3164. [AC_LANG_PROGRAM([[#include <pth.h>]], [[pth_self();]])],
  3165. [gl_have_pth=yes])
  3166. LIBS="$gl_save_LIBS"
  3167. if test -n "$gl_have_pth"; then
  3168. gl_threads_api=pth
  3169. LIBTHREAD="$LIBPTH"
  3170. LTLIBTHREAD="$LTLIBPTH"
  3171. LIBMULTITHREAD="$LIBTHREAD"
  3172. LTLIBMULTITHREAD="$LTLIBTHREAD"
  3173. AC_DEFINE([USE_PTH_THREADS], [1],
  3174. [Define if the GNU Pth multithreading library can be used.])
  3175. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  3176. if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
  3177. AC_DEFINE([USE_PTH_THREADS_WEAK], [1],
  3178. [Define if references to the GNU Pth multithreading library should be made weak.])
  3179. LIBTHREAD=
  3180. LTLIBTHREAD=
  3181. fi
  3182. fi
  3183. else
  3184. CPPFLAGS="$gl_save_CPPFLAGS"
  3185. fi
  3186. fi
  3187. if test -z "$gl_have_pthread"; then
  3188. case "$gl_use_threads" in
  3189. yes | windows | win32) # The 'win32' is for backward compatibility.
  3190. if { case "$host_os" in
  3191. mingw*) true;;
  3192. *) false;;
  3193. esac
  3194. }; then
  3195. gl_threads_api=windows
  3196. AC_DEFINE([USE_WINDOWS_THREADS], [1],
  3197. [Define if the native Windows multithreading API can be used.])
  3198. fi
  3199. ;;
  3200. esac
  3201. fi
  3202. fi
  3203. AC_MSG_CHECKING([for multithread API to use])
  3204. AC_MSG_RESULT([$gl_threads_api])
  3205. AC_SUBST([LIBTHREAD])
  3206. AC_SUBST([LTLIBTHREAD])
  3207. AC_SUBST([LIBMULTITHREAD])
  3208. AC_SUBST([LTLIBMULTITHREAD])
  3209. ])
  3210. m4trace:/usr/share/aclocal/threadlib.m4:318: -1- AC_DEFUN([gl_THREADLIB], [
  3211. AC_REQUIRE([gl_THREADLIB_EARLY])
  3212. AC_REQUIRE([gl_THREADLIB_BODY])
  3213. ])
  3214. m4trace:/usr/share/aclocal/threadlib.m4:331: -1- AC_DEFUN([gl_DISABLE_THREADS], [
  3215. m4_divert_text([INIT_PREPARE], [gl_use_threads_default=no])
  3216. ])
  3217. m4trace:/usr/share/aclocal/uintmax_t.m4:14: -1- AC_DEFUN([gl_AC_TYPE_UINTMAX_T], [
  3218. AC_REQUIRE([gl_AC_HEADER_INTTYPES_H])
  3219. AC_REQUIRE([gl_AC_HEADER_STDINT_H])
  3220. if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
  3221. AC_REQUIRE([AC_TYPE_UNSIGNED_LONG_LONG_INT])
  3222. test $ac_cv_type_unsigned_long_long_int = yes \
  3223. && ac_type='unsigned long long' \
  3224. || ac_type='unsigned long'
  3225. AC_DEFINE_UNQUOTED([uintmax_t], [$ac_type],
  3226. [Define to unsigned long or unsigned long long
  3227. if <stdint.h> and <inttypes.h> don't define.])
  3228. else
  3229. AC_DEFINE([HAVE_UINTMAX_T], [1],
  3230. [Define if you have the 'uintmax_t' type in <stdint.h> or <inttypes.h>.])
  3231. fi
  3232. ])
  3233. m4trace:/usr/share/aclocal/visibility.m4:23: -1- AC_DEFUN([gl_VISIBILITY], [
  3234. AC_REQUIRE([AC_PROG_CC])
  3235. CFLAG_VISIBILITY=
  3236. HAVE_VISIBILITY=0
  3237. if test -n "$GCC"; then
  3238. dnl First, check whether -Werror can be added to the command line, or
  3239. dnl whether it leads to an error because of some other option that the
  3240. dnl user has put into $CC $CFLAGS $CPPFLAGS.
  3241. AC_MSG_CHECKING([whether the -Werror option is usable])
  3242. AC_CACHE_VAL([gl_cv_cc_vis_werror], [
  3243. gl_save_CFLAGS="$CFLAGS"
  3244. CFLAGS="$CFLAGS -Werror"
  3245. AC_COMPILE_IFELSE(
  3246. [AC_LANG_PROGRAM([[]], [[]])],
  3247. [gl_cv_cc_vis_werror=yes],
  3248. [gl_cv_cc_vis_werror=no])
  3249. CFLAGS="$gl_save_CFLAGS"])
  3250. AC_MSG_RESULT([$gl_cv_cc_vis_werror])
  3251. dnl Now check whether visibility declarations are supported.
  3252. AC_MSG_CHECKING([for simple visibility declarations])
  3253. AC_CACHE_VAL([gl_cv_cc_visibility], [
  3254. gl_save_CFLAGS="$CFLAGS"
  3255. CFLAGS="$CFLAGS -fvisibility=hidden"
  3256. dnl We use the option -Werror and a function dummyfunc, because on some
  3257. dnl platforms (Cygwin 1.7) the use of -fvisibility triggers a warning
  3258. dnl "visibility attribute not supported in this configuration; ignored"
  3259. dnl at the first function definition in every compilation unit, and we
  3260. dnl don't want to use the option in this case.
  3261. if test $gl_cv_cc_vis_werror = yes; then
  3262. CFLAGS="$CFLAGS -Werror"
  3263. fi
  3264. AC_COMPILE_IFELSE(
  3265. [AC_LANG_PROGRAM(
  3266. [[extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  3267. extern __attribute__((__visibility__("default"))) int exportedvar;
  3268. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  3269. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  3270. void dummyfunc (void) {}
  3271. ]],
  3272. [[]])],
  3273. [gl_cv_cc_visibility=yes],
  3274. [gl_cv_cc_visibility=no])
  3275. CFLAGS="$gl_save_CFLAGS"])
  3276. AC_MSG_RESULT([$gl_cv_cc_visibility])
  3277. if test $gl_cv_cc_visibility = yes; then
  3278. CFLAG_VISIBILITY="-fvisibility=hidden"
  3279. HAVE_VISIBILITY=1
  3280. fi
  3281. fi
  3282. AC_SUBST([CFLAG_VISIBILITY])
  3283. AC_SUBST([HAVE_VISIBILITY])
  3284. AC_DEFINE_UNQUOTED([HAVE_VISIBILITY], [$HAVE_VISIBILITY],
  3285. [Define to 1 or 0, depending whether the compiler supports simple visibility declarations.])
  3286. ])
  3287. m4trace:/usr/share/aclocal/wchar_t.m4:11: -1- AC_DEFUN([gt_TYPE_WCHAR_T], [
  3288. AC_CACHE_CHECK([for wchar_t], [gt_cv_c_wchar_t],
  3289. [AC_COMPILE_IFELSE(
  3290. [AC_LANG_PROGRAM(
  3291. [[#include <stddef.h>
  3292. wchar_t foo = (wchar_t)'\0';]],
  3293. [[]])],
  3294. [gt_cv_c_wchar_t=yes],
  3295. [gt_cv_c_wchar_t=no])])
  3296. if test $gt_cv_c_wchar_t = yes; then
  3297. AC_DEFINE([HAVE_WCHAR_T], [1], [Define if you have the 'wchar_t' type.])
  3298. fi
  3299. ])
  3300. m4trace:/usr/share/aclocal/wint_t.m4:11: -1- AC_DEFUN([gt_TYPE_WINT_T], [
  3301. AC_CACHE_CHECK([for wint_t], [gt_cv_c_wint_t],
  3302. [AC_COMPILE_IFELSE(
  3303. [AC_LANG_PROGRAM(
  3304. [[
  3305. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  3306. <wchar.h>.
  3307. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
  3308. before <wchar.h>. */
  3309. #include <stddef.h>
  3310. #include <stdio.h>
  3311. #include <time.h>
  3312. #include <wchar.h>
  3313. wint_t foo = (wchar_t)'\0';]],
  3314. [[]])],
  3315. [gt_cv_c_wint_t=yes],
  3316. [gt_cv_c_wint_t=no])])
  3317. if test $gt_cv_c_wint_t = yes; then
  3318. AC_DEFINE([HAVE_WINT_T], [1], [Define if you have the 'wint_t' type.])
  3319. fi
  3320. ])
  3321. m4trace:/usr/share/aclocal/xsize.m4:7: -1- AC_DEFUN([gl_XSIZE], [
  3322. dnl Prerequisites of lib/xsize.h.
  3323. AC_REQUIRE([gl_SIZE_MAX])
  3324. AC_CHECK_HEADERS([stdint.h])
  3325. ])
  3326. m4trace:/usr/share/aclocal-1.16/mkdirp.m4:11: -1- AC_DEFUN([AM_PROG_MKDIR_P], [AC_PREREQ([2.60])dnl
  3327. AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  3328. dnl FIXME we are no longer going to remove this! adjust warning
  3329. dnl FIXME message accordingly.
  3330. AC_DIAGNOSE([obsolete],
  3331. [$0: this macro is deprecated, and will soon be removed.
  3332. You should use the Autoconf-provided 'AC][_PROG_MKDIR_P' macro instead,
  3333. and use '$(MKDIR_P)' instead of '$(mkdir_p)'in your Makefile.am files.])
  3334. dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
  3335. dnl while keeping a definition of mkdir_p for backward compatibility.
  3336. dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
  3337. dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
  3338. dnl Makefile.ins that do not define MKDIR_P, so we do our own
  3339. dnl adjustment using top_builddir (which is defined more often than
  3340. dnl MKDIR_P).
  3341. AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
  3342. case $mkdir_p in
  3343. [[\\/$]]* | ?:[[\\/]]*) ;;
  3344. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  3345. esac
  3346. ])
  3347. m4trace:configure.in:5: -1- m4_pattern_forbid([^_?A[CHUM]_])
  3348. m4trace:configure.in:5: -1- m4_pattern_forbid([_AC_])
  3349. m4trace:configure.in:5: -1- m4_pattern_forbid([^LIBOBJS$], [do not use LIBOBJS directly, use AC_LIBOBJ (see section `AC_LIBOBJ vs LIBOBJS'])
  3350. m4trace:configure.in:5: -1- m4_pattern_allow([^AS_FLAGS$])
  3351. m4trace:configure.in:5: -1- m4_pattern_forbid([^_?m4_])
  3352. m4trace:configure.in:5: -1- m4_pattern_forbid([^dnl$])
  3353. m4trace:configure.in:5: -1- m4_pattern_forbid([^_?AS_])
  3354. m4trace:configure.in:5: -1- m4_pattern_allow([^SHELL$])
  3355. m4trace:configure.in:5: -1- m4_pattern_allow([^PATH_SEPARATOR$])
  3356. m4trace:configure.in:5: -1- m4_pattern_allow([^PACKAGE_NAME$])
  3357. m4trace:configure.in:5: -1- m4_pattern_allow([^PACKAGE_TARNAME$])
  3358. m4trace:configure.in:5: -1- m4_pattern_allow([^PACKAGE_VERSION$])
  3359. m4trace:configure.in:5: -1- m4_pattern_allow([^PACKAGE_STRING$])
  3360. m4trace:configure.in:5: -1- m4_pattern_allow([^PACKAGE_BUGREPORT$])
  3361. m4trace:configure.in:5: -1- m4_pattern_allow([^PACKAGE_URL$])
  3362. m4trace:configure.in:5: -1- m4_pattern_allow([^exec_prefix$])
  3363. m4trace:configure.in:5: -1- m4_pattern_allow([^prefix$])
  3364. m4trace:configure.in:5: -1- m4_pattern_allow([^program_transform_name$])
  3365. m4trace:configure.in:5: -1- m4_pattern_allow([^bindir$])
  3366. m4trace:configure.in:5: -1- m4_pattern_allow([^sbindir$])
  3367. m4trace:configure.in:5: -1- m4_pattern_allow([^libexecdir$])
  3368. m4trace:configure.in:5: -1- m4_pattern_allow([^datarootdir$])
  3369. m4trace:configure.in:5: -1- m4_pattern_allow([^datadir$])
  3370. m4trace:configure.in:5: -1- m4_pattern_allow([^sysconfdir$])
  3371. m4trace:configure.in:5: -1- m4_pattern_allow([^sharedstatedir$])
  3372. m4trace:configure.in:5: -1- m4_pattern_allow([^localstatedir$])
  3373. m4trace:configure.in:5: -1- m4_pattern_allow([^runstatedir$])
  3374. m4trace:configure.in:5: -1- m4_pattern_allow([^includedir$])
  3375. m4trace:configure.in:5: -1- m4_pattern_allow([^oldincludedir$])
  3376. m4trace:configure.in:5: -1- m4_pattern_allow([^docdir$])
  3377. m4trace:configure.in:5: -1- m4_pattern_allow([^infodir$])
  3378. m4trace:configure.in:5: -1- m4_pattern_allow([^htmldir$])
  3379. m4trace:configure.in:5: -1- m4_pattern_allow([^dvidir$])
  3380. m4trace:configure.in:5: -1- m4_pattern_allow([^pdfdir$])
  3381. m4trace:configure.in:5: -1- m4_pattern_allow([^psdir$])
  3382. m4trace:configure.in:5: -1- m4_pattern_allow([^libdir$])
  3383. m4trace:configure.in:5: -1- m4_pattern_allow([^localedir$])
  3384. m4trace:configure.in:5: -1- m4_pattern_allow([^mandir$])
  3385. m4trace:configure.in:5: -1- m4_pattern_allow([^PACKAGE_NAME$])
  3386. m4trace:configure.in:5: -1- m4_pattern_allow([^PACKAGE_TARNAME$])
  3387. m4trace:configure.in:5: -1- m4_pattern_allow([^PACKAGE_VERSION$])
  3388. m4trace:configure.in:5: -1- m4_pattern_allow([^PACKAGE_STRING$])
  3389. m4trace:configure.in:5: -1- m4_pattern_allow([^PACKAGE_BUGREPORT$])
  3390. m4trace:configure.in:5: -1- m4_pattern_allow([^PACKAGE_URL$])
  3391. m4trace:configure.in:5: -1- m4_pattern_allow([^DEFS$])
  3392. m4trace:configure.in:5: -1- m4_pattern_allow([^ECHO_C$])
  3393. m4trace:configure.in:5: -1- m4_pattern_allow([^ECHO_N$])
  3394. m4trace:configure.in:5: -1- m4_pattern_allow([^ECHO_T$])
  3395. m4trace:configure.in:5: -1- m4_pattern_allow([^LIBS$])
  3396. m4trace:configure.in:5: -1- m4_pattern_allow([^build_alias$])
  3397. m4trace:configure.in:5: -1- m4_pattern_allow([^host_alias$])
  3398. m4trace:configure.in:5: -1- m4_pattern_allow([^target_alias$])
  3399. m4trace:configure.in:12: -1- m4_pattern_allow([^CC$])
  3400. m4trace:configure.in:12: -1- m4_pattern_allow([^CFLAGS$])
  3401. m4trace:configure.in:12: -1- m4_pattern_allow([^LDFLAGS$])
  3402. m4trace:configure.in:12: -1- m4_pattern_allow([^LIBS$])
  3403. m4trace:configure.in:12: -1- m4_pattern_allow([^CPPFLAGS$])
  3404. m4trace:configure.in:12: -1- m4_pattern_allow([^CC$])
  3405. m4trace:configure.in:12: -1- m4_pattern_allow([^CC$])
  3406. m4trace:configure.in:12: -1- m4_pattern_allow([^CC$])
  3407. m4trace:configure.in:12: -1- m4_pattern_allow([^CC$])
  3408. m4trace:configure.in:12: -1- m4_pattern_allow([^ac_ct_CC$])
  3409. m4trace:configure.in:12: -1- m4_pattern_allow([^EXEEXT$])
  3410. m4trace:configure.in:12: -1- m4_pattern_allow([^OBJEXT$])
  3411. m4trace:configure.in:13: -1- m4_pattern_allow([^CPP$])
  3412. m4trace:configure.in:13: -1- m4_pattern_allow([^CPPFLAGS$])
  3413. m4trace:configure.in:13: -1- m4_pattern_allow([^CPP$])
  3414. m4trace:configure.in:14: -1- m4_pattern_allow([^INSTALL_PROGRAM$])
  3415. m4trace:configure.in:14: -1- m4_pattern_allow([^INSTALL_SCRIPT$])
  3416. m4trace:configure.in:14: -1- m4_pattern_allow([^INSTALL_DATA$])
  3417. m4trace:configure.in:15: -1- m4_pattern_allow([^MKDIR_P$])
  3418. m4trace:configure.in:31: -1- m4_pattern_allow([^_XOPEN_SOURCE$])
  3419. m4trace:configure.in:34: -1- m4_pattern_allow([^_XOPEN_SOURCE_EXTENDED$])
  3420. m4trace:configure.in:37: -1- m4_pattern_allow([^__EXTENSIONS__$])
  3421. m4trace:configure.in:44: -1- m4_pattern_allow([^XMKMF$])
  3422. m4trace:configure.in:61: -1- m4_pattern_allow([^USE_XUTF8$])
  3423. m4trace:configure.in:68: -1- m4_pattern_allow([^GREP$])
  3424. m4trace:configure.in:68: -1- m4_pattern_allow([^EGREP$])
  3425. m4trace:configure.in:68: -1- m4_pattern_allow([^STDC_HEADERS$])
  3426. m4trace:configure.in:75: -1- m4_pattern_allow([^HAVE_X11_XLIB_H$])
  3427. m4trace:configure.in:90: -1- AC_DEFUN([JWM_PKGCONFIG_EXISTS], [
  3428. AC_MSG_CHECKING([for pkg-config])
  3429. if which pkg-config >/dev/null ; then
  3430. PKGCONFIG=pkg-config
  3431. AC_MSG_RESULT($PKGCONFIG)
  3432. else
  3433. PKGCONFIG=""
  3434. AC_MSG_RESULT([no])
  3435. fi
  3436. ])
  3437. m4trace:configure.in:102: -1- AC_DEFUN([JWM_PKGCONFIG], [
  3438. AC_REQUIRE([JWM_PKGCONFIG_EXISTS])
  3439. if test "x$PKGCONFIG" != "x" ; then
  3440. AC_MSG_CHECKING([if pkg-config knows about $2])
  3441. if `$PKGCONFIG $2` ; then
  3442. $1="yes"
  3443. else
  3444. $1="no"
  3445. fi
  3446. AC_MSG_RESULT($$1)
  3447. else
  3448. $1="no"
  3449. fi
  3450. ])
  3451. m4trace:configure.in:118: -1- JWM_PKGCONFIG([use_pkgconfig_png], [libpng])
  3452. m4trace:configure.in:118: -1- JWM_PKGCONFIG_EXISTS
  3453. m4trace:configure.in:119: -1- JWM_PKGCONFIG([use_pkgconfig_jpeg], [libjpeg])
  3454. m4trace:configure.in:120: -1- JWM_PKGCONFIG([use_pkgconfig_cairo], [cairo])
  3455. m4trace:configure.in:121: -1- JWM_PKGCONFIG([use_pkgconfig_rsvg], [librsvg-2.0])
  3456. m4trace:configure.in:122: -1- JWM_PKGCONFIG([use_pkgconfig_freetype2], [freetype2])
  3457. m4trace:configure.in:123: -1- JWM_PKGCONFIG([use_pkgconfig_xft], [xft])
  3458. m4trace:configure.in:124: -1- JWM_PKGCONFIG([use_pkgconfig_xrender], [xrender])
  3459. m4trace:configure.in:125: -1- JWM_PKGCONFIG([use_pkgconfig_fribidi], [fribidi])
  3460. m4trace:configure.in:131: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete.
  3461. You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from...
  3462. configure.in:131: the top level])
  3463. m4trace:configure.in:133: -1- m4_pattern_allow([^DISABLE_CONFIRM$])
  3464. m4trace:configure.in:142: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete.
  3465. You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from...
  3466. configure.in:142: the top level])
  3467. m4trace:configure.in:145: -1- m4_pattern_allow([^USE_ICONS$])
  3468. m4trace:configure.in:158: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete.
  3469. You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from...
  3470. configure.in:158: the top level])
  3471. m4trace:configure.in:173: -1- m4_pattern_allow([^USE_PNG$])
  3472. m4trace:configure.in:187: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete.
  3473. You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from...
  3474. configure.in:187: the top level])
  3475. m4trace:configure.in:219: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete.
  3476. You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from...
  3477. configure.in:219: the top level])
  3478. m4trace:configure.in:231: -1- m4_pattern_allow([^USE_RSVG$])
  3479. m4trace:configure.in:249: -1- m4_pattern_allow([^USE_CAIRO$])
  3480. m4trace:configure.in:256: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete.
  3481. You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from...
  3482. configure.in:256: the top level])
  3483. m4trace:configure.in:266: -1- m4_pattern_allow([^USE_JPEG$])
  3484. m4trace:configure.in:279: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete.
  3485. You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from...
  3486. configure.in:279: the top level])
  3487. m4trace:configure.in:305: -1- m4_pattern_allow([^USE_XFT$])
  3488. m4trace:configure.in:324: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete.
  3489. You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from...
  3490. configure.in:324: the top level])
  3491. m4trace:configure.in:334: -1- m4_pattern_allow([^HAVE_X11_EXTENSIONS_XRENDER_H$])
  3492. m4trace:configure.in:344: -1- m4_pattern_allow([^USE_XRENDER$])
  3493. m4trace:configure.in:358: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete.
  3494. You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from...
  3495. configure.in:358: the top level])
  3496. m4trace:configure.in:374: -1- m4_pattern_allow([^USE_FRIBIDI$])
  3497. m4trace:configure.in:388: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete.
  3498. You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from...
  3499. configure.in:388: the top level])
  3500. m4trace:configure.in:397: -1- m4_pattern_allow([^HAVE_X11_XPM_H$])
  3501. m4trace:configure.in:411: -1- m4_pattern_allow([^USE_XPM$])
  3502. m4trace:configure.in:423: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete.
  3503. You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from...
  3504. configure.in:423: the top level])
  3505. m4trace:configure.in:425: -1- m4_pattern_allow([^USE_SHAPE$])
  3506. m4trace:configure.in:439: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete.
  3507. You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from...
  3508. configure.in:439: the top level])
  3509. m4trace:configure.in:447: -1- m4_pattern_allow([^USE_XMU$])
  3510. m4trace:configure.in:459: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete.
  3511. You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from...
  3512. configure.in:459: the top level])
  3513. m4trace:configure.in:461: -1- m4_pattern_allow([^USE_XINERAMA$])
  3514. m4trace:configure.in:473: -1- m4_pattern_allow([AM_PROG_MKDIR_P])
  3515. m4trace:configure.in:474: -1- AM_GNU_GETTEXT([external])
  3516. m4trace:configure.in:474: -1- AM_GNU_GETTEXT_NEED([])
  3517. m4trace:configure.in:474: -1- AM_PO_SUBDIRS
  3518. m4trace:configure.in:474: -1- m4_pattern_allow([^SET_MAKE$])
  3519. m4trace:configure.in:474: -1- m4_pattern_allow([^SED$])
  3520. m4trace:configure.in:474: -1- AM_NLS
  3521. m4trace:configure.in:474: -1- m4_pattern_allow([^USE_NLS$])
  3522. m4trace:configure.in:474: -1- m4_pattern_allow([^GETTEXT_MACRO_VERSION$])
  3523. m4trace:configure.in:474: -1- AM_PATH_PROG_WITH_TEST([MSGFMT], [msgfmt], [$ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  3524. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], [:])
  3525. m4trace:configure.in:474: -1- m4_pattern_allow([^MSGFMT$])
  3526. m4trace:configure.in:474: -1- m4_pattern_allow([^GMSGFMT$])
  3527. m4trace:configure.in:474: -1- m4_pattern_allow([^MSGFMT_015$])
  3528. m4trace:configure.in:474: -1- m4_pattern_allow([^GMSGFMT_015$])
  3529. m4trace:configure.in:474: -1- AM_PATH_PROG_WITH_TEST([XGETTEXT], [xgettext], [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  3530. (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], [:])
  3531. m4trace:configure.in:474: -1- m4_pattern_allow([^XGETTEXT$])
  3532. m4trace:configure.in:474: -1- m4_pattern_allow([^XGETTEXT_015$])
  3533. m4trace:configure.in:474: -1- AM_PATH_PROG_WITH_TEST([MSGMERGE], [msgmerge], [$ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1], [:])
  3534. m4trace:configure.in:474: -1- m4_pattern_allow([^MSGMERGE$])
  3535. m4trace:configure.in:474: -1- m4_pattern_allow([^localedir$])
  3536. m4trace:configure.in:474: -1- m4_pattern_allow([^XGETTEXT_EXTRA_OPTIONS$])
  3537. m4trace:configure.in:474: -1- AC_LIB_PREPARE_PREFIX
  3538. m4trace:configure.in:474: -1- AC_LIB_RPATH
  3539. m4trace:configure.in:474: -1- AC_LIB_PROG_LD
  3540. m4trace:configure.in:474: -1- m4_pattern_allow([^build$])
  3541. m4trace:configure.in:474: -1- m4_pattern_allow([^build_cpu$])
  3542. m4trace:configure.in:474: -1- m4_pattern_allow([^build_vendor$])
  3543. m4trace:configure.in:474: -1- m4_pattern_allow([^build_os$])
  3544. m4trace:configure.in:474: -1- m4_pattern_allow([^host$])
  3545. m4trace:configure.in:474: -1- m4_pattern_allow([^host_cpu$])
  3546. m4trace:configure.in:474: -1- m4_pattern_allow([^host_vendor$])
  3547. m4trace:configure.in:474: -1- m4_pattern_allow([^host_os$])
  3548. m4trace:configure.in:474: -1- AC_LIB_PROG_LD_GNU
  3549. m4trace:configure.in:474: -1- AM_ICONV_LINKFLAGS_BODY
  3550. m4trace:configure.in:474: -1- AC_LIB_LINKFLAGS_BODY([iconv])
  3551. m4trace:configure.in:474: -1- AC_LIB_PREPARE_MULTILIB
  3552. m4trace:configure.in:474: -1- AC_LIB_WITH_FINAL_PREFIX([
  3553. eval additional_includedir=\"$includedir\"
  3554. eval additional_libdir=\"$libdir\"
  3555. ])
  3556. m4trace:configure.in:474: -1- AC_LIB_WITH_FINAL_PREFIX([
  3557. eval additional_includedir=\"$includedir\"
  3558. eval additional_libdir=\"$libdir\"
  3559. ])
  3560. m4trace:configure.in:474: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  3561. m4trace:configure.in:474: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  3562. m4trace:configure.in:474: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  3563. m4trace:configure.in:474: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  3564. m4trace:configure.in:474: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  3565. m4trace:configure.in:474: -1- gt_INTL_MACOSX
  3566. m4trace:configure.in:474: -1- m4_pattern_allow([^HAVE_CFPREFERENCESCOPYAPPVALUE$])
  3567. m4trace:configure.in:474: -1- m4_pattern_allow([^HAVE_CFLOCALECOPYCURRENT$])
  3568. m4trace:configure.in:474: -1- m4_pattern_allow([^INTL_MACOSX_LIBS$])
  3569. m4trace:configure.in:474: -1- AM_ICONV_LINK
  3570. m4trace:configure.in:474: -1- AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV])
  3571. m4trace:configure.in:474: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  3572. m4trace:configure.in:474: -1- m4_pattern_allow([^HAVE_ICONV$])
  3573. m4trace:configure.in:474: -1- m4_pattern_allow([^LIBICONV$])
  3574. m4trace:configure.in:474: -1- m4_pattern_allow([^LTLIBICONV$])
  3575. m4trace:configure.in:474: -1- AC_LIB_LINKFLAGS_BODY([intl])
  3576. m4trace:configure.in:474: -1- AC_LIB_WITH_FINAL_PREFIX([
  3577. eval additional_includedir=\"$includedir\"
  3578. eval additional_libdir=\"$libdir\"
  3579. ])
  3580. m4trace:configure.in:474: -1- AC_LIB_WITH_FINAL_PREFIX([
  3581. eval additional_includedir=\"$includedir\"
  3582. eval additional_libdir=\"$libdir\"
  3583. ])
  3584. m4trace:configure.in:474: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  3585. m4trace:configure.in:474: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  3586. m4trace:configure.in:474: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  3587. m4trace:configure.in:474: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  3588. m4trace:configure.in:474: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  3589. m4trace:configure.in:474: -1- m4_pattern_allow([^ENABLE_NLS$])
  3590. m4trace:configure.in:474: -1- AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL])
  3591. m4trace:configure.in:474: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  3592. m4trace:configure.in:474: -1- m4_pattern_allow([^HAVE_GETTEXT$])
  3593. m4trace:configure.in:474: -1- m4_pattern_allow([^HAVE_DCGETTEXT$])
  3594. m4trace:configure.in:474: -1- m4_pattern_allow([^INTLLIBS$])
  3595. m4trace:configure.in:474: -1- m4_pattern_allow([^LIBINTL$])
  3596. m4trace:configure.in:474: -1- m4_pattern_allow([^LTLIBINTL$])
  3597. m4trace:configure.in:474: -1- m4_pattern_allow([^POSUB$])
  3598. m4trace:configure.in:481: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete.
  3599. You should run autoupdate.], [../../lib/autoconf/general.m4:207: AC_HELP_STRING is expanded from...
  3600. configure.in:481: the top level])
  3601. m4trace:configure.in:483: -1- m4_pattern_allow([^DEBUG$])
  3602. m4trace:configure.in:523: -1- m4_pattern_allow([^SYSTEM_CONFIG$])
  3603. m4trace:configure.in:526: -1- m4_pattern_allow([^CFLAGS$])
  3604. m4trace:configure.in:527: -1- m4_pattern_allow([^LDFLAGS$])
  3605. m4trace:configure.in:528: -1- m4_pattern_allow([^VERSION$])
  3606. m4trace:configure.in:529: -1- m4_pattern_allow([^INSTVERSION$])
  3607. m4trace:configure.in:530: -1- m4_pattern_allow([^BINDIR$])
  3608. m4trace:configure.in:531: -1- m4_pattern_allow([^MANDIR$])
  3609. m4trace:configure.in:532: -1- m4_pattern_allow([^DATE$])
  3610. m4trace:configure.in:533: -1- m4_pattern_allow([^SYSCONF$])
  3611. m4trace:configure.in:534: -1- m4_pattern_allow([^PACKAGE$])
  3612. m4trace:configure.in:536: -1- _m4_warn([obsolete], [AC_OUTPUT should be used without arguments.
  3613. You should run autoupdate.], [])
  3614. m4trace:configure.in:536: -1- m4_pattern_allow([^LIB@&t@OBJS$])
  3615. m4trace:configure.in:536: -1- m4_pattern_allow([^LTLIBOBJS$])