configure 103 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9. ## --------------------- ##
  10. ## M4sh Initialization. ##
  11. ## --------------------- ##
  12. # Be more Bourne compatible
  13. DUALCASE=1; export DUALCASE # for MKS sh
  14. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15. emulate sh
  16. NULLCMD=:
  17. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  18. # is contrary to our usage. Disable this feature.
  19. alias -g '${1+"$@"}'='"$@"'
  20. setopt NO_GLOB_SUBST
  21. else
  22. case `(set -o) 2>/dev/null` in
  23. *posix*) set -o posix ;;
  24. esac
  25. fi
  26. # PATH needs CR
  27. # Avoid depending upon Character Ranges.
  28. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  29. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  30. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  31. as_cr_digits='0123456789'
  32. as_cr_alnum=$as_cr_Letters$as_cr_digits
  33. # The user is always right.
  34. if test "${PATH_SEPARATOR+set}" != set; then
  35. echo "#! /bin/sh" >conf$$.sh
  36. echo "exit 0" >>conf$$.sh
  37. chmod +x conf$$.sh
  38. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  39. PATH_SEPARATOR=';'
  40. else
  41. PATH_SEPARATOR=:
  42. fi
  43. rm -f conf$$.sh
  44. fi
  45. # Support unset when possible.
  46. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  47. as_unset=unset
  48. else
  49. as_unset=false
  50. fi
  51. # IFS
  52. # We need space, tab and new line, in precisely that order. Quoting is
  53. # there to prevent editors from complaining about space-tab.
  54. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  55. # splitting by setting IFS to empty value.)
  56. as_nl='
  57. '
  58. IFS=" "" $as_nl"
  59. # Find who we are. Look in the path if we contain no directory separator.
  60. case $0 in
  61. *[\\/]* ) as_myself=$0 ;;
  62. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  63. for as_dir in $PATH
  64. do
  65. IFS=$as_save_IFS
  66. test -z "$as_dir" && as_dir=.
  67. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  68. done
  69. IFS=$as_save_IFS
  70. ;;
  71. esac
  72. # We did not find ourselves, most probably we were run as `sh COMMAND'
  73. # in which case we are not to be found in the path.
  74. if test "x$as_myself" = x; then
  75. as_myself=$0
  76. fi
  77. if test ! -f "$as_myself"; then
  78. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  79. { (exit 1); exit 1; }
  80. fi
  81. # Work around bugs in pre-3.0 UWIN ksh.
  82. for as_var in ENV MAIL MAILPATH
  83. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  84. done
  85. PS1='$ '
  86. PS2='> '
  87. PS4='+ '
  88. # NLS nuisances.
  89. for as_var in \
  90. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  91. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  92. LC_TELEPHONE LC_TIME
  93. do
  94. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  95. eval $as_var=C; export $as_var
  96. else
  97. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  98. fi
  99. done
  100. # Required to use basename.
  101. if expr a : '\(a\)' >/dev/null 2>&1 &&
  102. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  103. as_expr=expr
  104. else
  105. as_expr=false
  106. fi
  107. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  108. as_basename=basename
  109. else
  110. as_basename=false
  111. fi
  112. # Name of the executable.
  113. as_me=`$as_basename -- "$0" ||
  114. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  115. X"$0" : 'X\(//\)$' \| \
  116. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  117. echo X/"$0" |
  118. sed '/^.*\/\([^/][^/]*\)\/*$/{
  119. s//\1/
  120. q
  121. }
  122. /^X\/\(\/\/\)$/{
  123. s//\1/
  124. q
  125. }
  126. /^X\/\(\/\).*/{
  127. s//\1/
  128. q
  129. }
  130. s/.*/./; q'`
  131. # CDPATH.
  132. $as_unset CDPATH
  133. if test "x$CONFIG_SHELL" = x; then
  134. if (eval ":") 2>/dev/null; then
  135. as_have_required=yes
  136. else
  137. as_have_required=no
  138. fi
  139. if test $as_have_required = yes && (eval ":
  140. (as_func_return () {
  141. (exit \$1)
  142. }
  143. as_func_success () {
  144. as_func_return 0
  145. }
  146. as_func_failure () {
  147. as_func_return 1
  148. }
  149. as_func_ret_success () {
  150. return 0
  151. }
  152. as_func_ret_failure () {
  153. return 1
  154. }
  155. exitcode=0
  156. if as_func_success; then
  157. :
  158. else
  159. exitcode=1
  160. echo as_func_success failed.
  161. fi
  162. if as_func_failure; then
  163. exitcode=1
  164. echo as_func_failure succeeded.
  165. fi
  166. if as_func_ret_success; then
  167. :
  168. else
  169. exitcode=1
  170. echo as_func_ret_success failed.
  171. fi
  172. if as_func_ret_failure; then
  173. exitcode=1
  174. echo as_func_ret_failure succeeded.
  175. fi
  176. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  177. :
  178. else
  179. exitcode=1
  180. echo positional parameters were not saved.
  181. fi
  182. test \$exitcode = 0) || { (exit 1); exit 1; }
  183. (
  184. as_lineno_1=\$LINENO
  185. as_lineno_2=\$LINENO
  186. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  187. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  188. ") 2> /dev/null; then
  189. :
  190. else
  191. as_candidate_shells=
  192. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  193. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  194. do
  195. IFS=$as_save_IFS
  196. test -z "$as_dir" && as_dir=.
  197. case $as_dir in
  198. /*)
  199. for as_base in sh bash ksh sh5; do
  200. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  201. done;;
  202. esac
  203. done
  204. IFS=$as_save_IFS
  205. for as_shell in $as_candidate_shells $SHELL; do
  206. # Try only shells that exist, to save several forks.
  207. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  208. { ("$as_shell") 2> /dev/null <<\_ASEOF
  209. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  210. emulate sh
  211. NULLCMD=:
  212. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  213. # is contrary to our usage. Disable this feature.
  214. alias -g '${1+"$@"}'='"$@"'
  215. setopt NO_GLOB_SUBST
  216. else
  217. case `(set -o) 2>/dev/null` in
  218. *posix*) set -o posix ;;
  219. esac
  220. fi
  221. :
  222. _ASEOF
  223. }; then
  224. CONFIG_SHELL=$as_shell
  225. as_have_required=yes
  226. if { "$as_shell" 2> /dev/null <<\_ASEOF
  227. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  228. emulate sh
  229. NULLCMD=:
  230. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  231. # is contrary to our usage. Disable this feature.
  232. alias -g '${1+"$@"}'='"$@"'
  233. setopt NO_GLOB_SUBST
  234. else
  235. case `(set -o) 2>/dev/null` in
  236. *posix*) set -o posix ;;
  237. esac
  238. fi
  239. :
  240. (as_func_return () {
  241. (exit $1)
  242. }
  243. as_func_success () {
  244. as_func_return 0
  245. }
  246. as_func_failure () {
  247. as_func_return 1
  248. }
  249. as_func_ret_success () {
  250. return 0
  251. }
  252. as_func_ret_failure () {
  253. return 1
  254. }
  255. exitcode=0
  256. if as_func_success; then
  257. :
  258. else
  259. exitcode=1
  260. echo as_func_success failed.
  261. fi
  262. if as_func_failure; then
  263. exitcode=1
  264. echo as_func_failure succeeded.
  265. fi
  266. if as_func_ret_success; then
  267. :
  268. else
  269. exitcode=1
  270. echo as_func_ret_success failed.
  271. fi
  272. if as_func_ret_failure; then
  273. exitcode=1
  274. echo as_func_ret_failure succeeded.
  275. fi
  276. if ( set x; as_func_ret_success y && test x = "$1" ); then
  277. :
  278. else
  279. exitcode=1
  280. echo positional parameters were not saved.
  281. fi
  282. test $exitcode = 0) || { (exit 1); exit 1; }
  283. (
  284. as_lineno_1=$LINENO
  285. as_lineno_2=$LINENO
  286. test "x$as_lineno_1" != "x$as_lineno_2" &&
  287. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  288. _ASEOF
  289. }; then
  290. break
  291. fi
  292. fi
  293. done
  294. if test "x$CONFIG_SHELL" != x; then
  295. for as_var in BASH_ENV ENV
  296. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  297. done
  298. export CONFIG_SHELL
  299. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  300. fi
  301. if test $as_have_required = no; then
  302. echo This script requires a shell more modern than all the
  303. echo shells that I found on your system. Please install a
  304. echo modern shell, or manually run the script under such a
  305. echo shell if you do have one.
  306. { (exit 1); exit 1; }
  307. fi
  308. fi
  309. fi
  310. (eval "as_func_return () {
  311. (exit \$1)
  312. }
  313. as_func_success () {
  314. as_func_return 0
  315. }
  316. as_func_failure () {
  317. as_func_return 1
  318. }
  319. as_func_ret_success () {
  320. return 0
  321. }
  322. as_func_ret_failure () {
  323. return 1
  324. }
  325. exitcode=0
  326. if as_func_success; then
  327. :
  328. else
  329. exitcode=1
  330. echo as_func_success failed.
  331. fi
  332. if as_func_failure; then
  333. exitcode=1
  334. echo as_func_failure succeeded.
  335. fi
  336. if as_func_ret_success; then
  337. :
  338. else
  339. exitcode=1
  340. echo as_func_ret_success failed.
  341. fi
  342. if as_func_ret_failure; then
  343. exitcode=1
  344. echo as_func_ret_failure succeeded.
  345. fi
  346. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  347. :
  348. else
  349. exitcode=1
  350. echo positional parameters were not saved.
  351. fi
  352. test \$exitcode = 0") || {
  353. echo No shell found that supports shell functions.
  354. echo Please tell autoconf@gnu.org about your system,
  355. echo including any error possibly output before this
  356. echo message
  357. }
  358. as_lineno_1=$LINENO
  359. as_lineno_2=$LINENO
  360. test "x$as_lineno_1" != "x$as_lineno_2" &&
  361. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  362. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  363. # uniformly replaced by the line number. The first 'sed' inserts a
  364. # line-number line after each line using $LINENO; the second 'sed'
  365. # does the real work. The second script uses 'N' to pair each
  366. # line-number line with the line containing $LINENO, and appends
  367. # trailing '-' during substitution so that $LINENO is not a special
  368. # case at line end.
  369. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  370. # scripts with optimization help from Paolo Bonzini. Blame Lee
  371. # E. McMahon (1931-1989) for sed's syntax. :-)
  372. sed -n '
  373. p
  374. /[$]LINENO/=
  375. ' <$as_myself |
  376. sed '
  377. s/[$]LINENO.*/&-/
  378. t lineno
  379. b
  380. :lineno
  381. N
  382. :loop
  383. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  384. t loop
  385. s/-\n.*//
  386. ' >$as_me.lineno &&
  387. chmod +x "$as_me.lineno" ||
  388. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  389. { (exit 1); exit 1; }; }
  390. # Don't try to exec as it changes $[0], causing all sort of problems
  391. # (the dirname of $[0] is not the place where we might find the
  392. # original and so on. Autoconf is especially sensitive to this).
  393. . "./$as_me.lineno"
  394. # Exit status is that of the last command.
  395. exit
  396. }
  397. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  398. as_dirname=dirname
  399. else
  400. as_dirname=false
  401. fi
  402. ECHO_C= ECHO_N= ECHO_T=
  403. case `echo -n x` in
  404. -n*)
  405. case `echo 'x\c'` in
  406. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  407. *) ECHO_C='\c';;
  408. esac;;
  409. *)
  410. ECHO_N='-n';;
  411. esac
  412. if expr a : '\(a\)' >/dev/null 2>&1 &&
  413. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  414. as_expr=expr
  415. else
  416. as_expr=false
  417. fi
  418. rm -f conf$$ conf$$.exe conf$$.file
  419. if test -d conf$$.dir; then
  420. rm -f conf$$.dir/conf$$.file
  421. else
  422. rm -f conf$$.dir
  423. mkdir conf$$.dir
  424. fi
  425. echo >conf$$.file
  426. if ln -s conf$$.file conf$$ 2>/dev/null; then
  427. as_ln_s='ln -s'
  428. # ... but there are two gotchas:
  429. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  430. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  431. # In both cases, we have to default to `cp -p'.
  432. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  433. as_ln_s='cp -p'
  434. elif ln conf$$.file conf$$ 2>/dev/null; then
  435. as_ln_s=ln
  436. else
  437. as_ln_s='cp -p'
  438. fi
  439. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  440. rmdir conf$$.dir 2>/dev/null
  441. if mkdir -p . 2>/dev/null; then
  442. as_mkdir_p=:
  443. else
  444. test -d ./-p && rmdir ./-p
  445. as_mkdir_p=false
  446. fi
  447. if test -x / >/dev/null 2>&1; then
  448. as_test_x='test -x'
  449. else
  450. if ls -dL / >/dev/null 2>&1; then
  451. as_ls_L_option=L
  452. else
  453. as_ls_L_option=
  454. fi
  455. as_test_x='
  456. eval sh -c '\''
  457. if test -d "$1"; then
  458. test -d "$1/.";
  459. else
  460. case $1 in
  461. -*)set "./$1";;
  462. esac;
  463. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  464. ???[sx]*):;;*)false;;esac;fi
  465. '\'' sh
  466. '
  467. fi
  468. as_executable_p=$as_test_x
  469. # Sed expression to map a string onto a valid CPP name.
  470. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  471. # Sed expression to map a string onto a valid variable name.
  472. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  473. exec 7<&0 </dev/null 6>&1
  474. # Name of the host.
  475. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  476. # so uname gets run too.
  477. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  478. #
  479. # Initializations.
  480. #
  481. ac_default_prefix=/usr/local
  482. ac_clean_files=
  483. ac_config_libobj_dir=.
  484. LIBOBJS=
  485. cross_compiling=no
  486. subdirs=
  487. MFLAGS=
  488. MAKEFLAGS=
  489. SHELL=${CONFIG_SHELL-/bin/sh}
  490. # Identity of this package.
  491. PACKAGE_NAME=
  492. PACKAGE_TARNAME=
  493. PACKAGE_VERSION=
  494. PACKAGE_STRING=
  495. PACKAGE_BUGREPORT=
  496. ac_unique_file="./tools/configure.in"
  497. ac_subst_vars='SHELL
  498. PATH_SEPARATOR
  499. PACKAGE_NAME
  500. PACKAGE_TARNAME
  501. PACKAGE_VERSION
  502. PACKAGE_STRING
  503. PACKAGE_BUGREPORT
  504. exec_prefix
  505. prefix
  506. program_transform_name
  507. bindir
  508. sbindir
  509. libexecdir
  510. datarootdir
  511. datadir
  512. sysconfdir
  513. sharedstatedir
  514. localstatedir
  515. includedir
  516. oldincludedir
  517. docdir
  518. infodir
  519. htmldir
  520. dvidir
  521. pdfdir
  522. psdir
  523. libdir
  524. localedir
  525. mandir
  526. DEFS
  527. ECHO_C
  528. ECHO_N
  529. ECHO_T
  530. LIBS
  531. build_alias
  532. host_alias
  533. target_alias
  534. CXX
  535. CXXFLAGS
  536. LDFLAGS
  537. CPPFLAGS
  538. ac_ct_CXX
  539. EXEEXT
  540. OBJEXT
  541. LIBOBJS
  542. LTLIBOBJS'
  543. ac_subst_files=''
  544. ac_precious_vars='build_alias
  545. host_alias
  546. target_alias
  547. CXX
  548. CXXFLAGS
  549. LDFLAGS
  550. LIBS
  551. CPPFLAGS
  552. CCC'
  553. # Initialize some variables set by options.
  554. ac_init_help=
  555. ac_init_version=false
  556. # The variables have the same names as the options, with
  557. # dashes changed to underlines.
  558. cache_file=/dev/null
  559. exec_prefix=NONE
  560. no_create=
  561. no_recursion=
  562. prefix=NONE
  563. program_prefix=NONE
  564. program_suffix=NONE
  565. program_transform_name=s,x,x,
  566. silent=
  567. site=
  568. srcdir=
  569. verbose=
  570. x_includes=NONE
  571. x_libraries=NONE
  572. # Installation directory options.
  573. # These are left unexpanded so users can "make install exec_prefix=/foo"
  574. # and all the variables that are supposed to be based on exec_prefix
  575. # by default will actually change.
  576. # Use braces instead of parens because sh, perl, etc. also accept them.
  577. # (The list follows the same order as the GNU Coding Standards.)
  578. bindir='${exec_prefix}/bin'
  579. sbindir='${exec_prefix}/sbin'
  580. libexecdir='${exec_prefix}/libexec'
  581. datarootdir='${prefix}/share'
  582. datadir='${datarootdir}'
  583. sysconfdir='${prefix}/etc'
  584. sharedstatedir='${prefix}/com'
  585. localstatedir='${prefix}/var'
  586. includedir='${prefix}/include'
  587. oldincludedir='/usr/include'
  588. docdir='${datarootdir}/doc/${PACKAGE}'
  589. infodir='${datarootdir}/info'
  590. htmldir='${docdir}'
  591. dvidir='${docdir}'
  592. pdfdir='${docdir}'
  593. psdir='${docdir}'
  594. libdir='${exec_prefix}/lib'
  595. localedir='${datarootdir}/locale'
  596. mandir='${datarootdir}/man'
  597. ac_prev=
  598. ac_dashdash=
  599. for ac_option
  600. do
  601. # If the previous option needs an argument, assign it.
  602. if test -n "$ac_prev"; then
  603. eval $ac_prev=\$ac_option
  604. ac_prev=
  605. continue
  606. fi
  607. case $ac_option in
  608. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  609. *) ac_optarg=yes ;;
  610. esac
  611. # Accept the important Cygnus configure options, so we can diagnose typos.
  612. case $ac_dashdash$ac_option in
  613. --)
  614. ac_dashdash=yes ;;
  615. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  616. ac_prev=bindir ;;
  617. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  618. bindir=$ac_optarg ;;
  619. -build | --build | --buil | --bui | --bu)
  620. ac_prev=build_alias ;;
  621. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  622. build_alias=$ac_optarg ;;
  623. -cache-file | --cache-file | --cache-fil | --cache-fi \
  624. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  625. ac_prev=cache_file ;;
  626. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  627. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  628. cache_file=$ac_optarg ;;
  629. --config-cache | -C)
  630. cache_file=config.cache ;;
  631. -datadir | --datadir | --datadi | --datad)
  632. ac_prev=datadir ;;
  633. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  634. datadir=$ac_optarg ;;
  635. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  636. | --dataroo | --dataro | --datar)
  637. ac_prev=datarootdir ;;
  638. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  639. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  640. datarootdir=$ac_optarg ;;
  641. -disable-* | --disable-*)
  642. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  643. # Reject names that are not valid shell variable names.
  644. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  645. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  646. { (exit 1); exit 1; }; }
  647. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  648. eval enable_$ac_feature=no ;;
  649. -docdir | --docdir | --docdi | --doc | --do)
  650. ac_prev=docdir ;;
  651. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  652. docdir=$ac_optarg ;;
  653. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  654. ac_prev=dvidir ;;
  655. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  656. dvidir=$ac_optarg ;;
  657. -enable-* | --enable-*)
  658. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  659. # Reject names that are not valid shell variable names.
  660. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  661. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  662. { (exit 1); exit 1; }; }
  663. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  664. eval enable_$ac_feature=\$ac_optarg ;;
  665. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  666. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  667. | --exec | --exe | --ex)
  668. ac_prev=exec_prefix ;;
  669. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  670. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  671. | --exec=* | --exe=* | --ex=*)
  672. exec_prefix=$ac_optarg ;;
  673. -gas | --gas | --ga | --g)
  674. # Obsolete; use --with-gas.
  675. with_gas=yes ;;
  676. -help | --help | --hel | --he | -h)
  677. ac_init_help=long ;;
  678. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  679. ac_init_help=recursive ;;
  680. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  681. ac_init_help=short ;;
  682. -host | --host | --hos | --ho)
  683. ac_prev=host_alias ;;
  684. -host=* | --host=* | --hos=* | --ho=*)
  685. host_alias=$ac_optarg ;;
  686. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  687. ac_prev=htmldir ;;
  688. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  689. | --ht=*)
  690. htmldir=$ac_optarg ;;
  691. -includedir | --includedir | --includedi | --included | --include \
  692. | --includ | --inclu | --incl | --inc)
  693. ac_prev=includedir ;;
  694. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  695. | --includ=* | --inclu=* | --incl=* | --inc=*)
  696. includedir=$ac_optarg ;;
  697. -infodir | --infodir | --infodi | --infod | --info | --inf)
  698. ac_prev=infodir ;;
  699. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  700. infodir=$ac_optarg ;;
  701. -libdir | --libdir | --libdi | --libd)
  702. ac_prev=libdir ;;
  703. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  704. libdir=$ac_optarg ;;
  705. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  706. | --libexe | --libex | --libe)
  707. ac_prev=libexecdir ;;
  708. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  709. | --libexe=* | --libex=* | --libe=*)
  710. libexecdir=$ac_optarg ;;
  711. -localedir | --localedir | --localedi | --localed | --locale)
  712. ac_prev=localedir ;;
  713. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  714. localedir=$ac_optarg ;;
  715. -localstatedir | --localstatedir | --localstatedi | --localstated \
  716. | --localstate | --localstat | --localsta | --localst | --locals)
  717. ac_prev=localstatedir ;;
  718. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  719. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  720. localstatedir=$ac_optarg ;;
  721. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  722. ac_prev=mandir ;;
  723. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  724. mandir=$ac_optarg ;;
  725. -nfp | --nfp | --nf)
  726. # Obsolete; use --without-fp.
  727. with_fp=no ;;
  728. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  729. | --no-cr | --no-c | -n)
  730. no_create=yes ;;
  731. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  732. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  733. no_recursion=yes ;;
  734. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  735. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  736. | --oldin | --oldi | --old | --ol | --o)
  737. ac_prev=oldincludedir ;;
  738. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  739. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  740. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  741. oldincludedir=$ac_optarg ;;
  742. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  743. ac_prev=prefix ;;
  744. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  745. prefix=$ac_optarg ;;
  746. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  747. | --program-pre | --program-pr | --program-p)
  748. ac_prev=program_prefix ;;
  749. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  750. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  751. program_prefix=$ac_optarg ;;
  752. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  753. | --program-suf | --program-su | --program-s)
  754. ac_prev=program_suffix ;;
  755. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  756. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  757. program_suffix=$ac_optarg ;;
  758. -program-transform-name | --program-transform-name \
  759. | --program-transform-nam | --program-transform-na \
  760. | --program-transform-n | --program-transform- \
  761. | --program-transform | --program-transfor \
  762. | --program-transfo | --program-transf \
  763. | --program-trans | --program-tran \
  764. | --progr-tra | --program-tr | --program-t)
  765. ac_prev=program_transform_name ;;
  766. -program-transform-name=* | --program-transform-name=* \
  767. | --program-transform-nam=* | --program-transform-na=* \
  768. | --program-transform-n=* | --program-transform-=* \
  769. | --program-transform=* | --program-transfor=* \
  770. | --program-transfo=* | --program-transf=* \
  771. | --program-trans=* | --program-tran=* \
  772. | --progr-tra=* | --program-tr=* | --program-t=*)
  773. program_transform_name=$ac_optarg ;;
  774. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  775. ac_prev=pdfdir ;;
  776. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  777. pdfdir=$ac_optarg ;;
  778. -psdir | --psdir | --psdi | --psd | --ps)
  779. ac_prev=psdir ;;
  780. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  781. psdir=$ac_optarg ;;
  782. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  783. | -silent | --silent | --silen | --sile | --sil)
  784. silent=yes ;;
  785. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  786. ac_prev=sbindir ;;
  787. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  788. | --sbi=* | --sb=*)
  789. sbindir=$ac_optarg ;;
  790. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  791. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  792. | --sharedst | --shareds | --shared | --share | --shar \
  793. | --sha | --sh)
  794. ac_prev=sharedstatedir ;;
  795. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  796. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  797. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  798. | --sha=* | --sh=*)
  799. sharedstatedir=$ac_optarg ;;
  800. -site | --site | --sit)
  801. ac_prev=site ;;
  802. -site=* | --site=* | --sit=*)
  803. site=$ac_optarg ;;
  804. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  805. ac_prev=srcdir ;;
  806. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  807. srcdir=$ac_optarg ;;
  808. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  809. | --syscon | --sysco | --sysc | --sys | --sy)
  810. ac_prev=sysconfdir ;;
  811. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  812. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  813. sysconfdir=$ac_optarg ;;
  814. -target | --target | --targe | --targ | --tar | --ta | --t)
  815. ac_prev=target_alias ;;
  816. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  817. target_alias=$ac_optarg ;;
  818. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  819. verbose=yes ;;
  820. -version | --version | --versio | --versi | --vers | -V)
  821. ac_init_version=: ;;
  822. -with-* | --with-*)
  823. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  824. # Reject names that are not valid shell variable names.
  825. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  826. { echo "$as_me: error: invalid package name: $ac_package" >&2
  827. { (exit 1); exit 1; }; }
  828. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  829. eval with_$ac_package=\$ac_optarg ;;
  830. -without-* | --without-*)
  831. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  832. # Reject names that are not valid shell variable names.
  833. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  834. { echo "$as_me: error: invalid package name: $ac_package" >&2
  835. { (exit 1); exit 1; }; }
  836. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  837. eval with_$ac_package=no ;;
  838. --x)
  839. # Obsolete; use --with-x.
  840. with_x=yes ;;
  841. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  842. | --x-incl | --x-inc | --x-in | --x-i)
  843. ac_prev=x_includes ;;
  844. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  845. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  846. x_includes=$ac_optarg ;;
  847. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  848. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  849. ac_prev=x_libraries ;;
  850. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  851. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  852. x_libraries=$ac_optarg ;;
  853. -*) { echo "$as_me: error: unrecognized option: $ac_option
  854. Try \`$0 --help' for more information." >&2
  855. { (exit 1); exit 1; }; }
  856. ;;
  857. *=*)
  858. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  859. # Reject names that are not valid shell variable names.
  860. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  861. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  862. { (exit 1); exit 1; }; }
  863. eval $ac_envvar=\$ac_optarg
  864. export $ac_envvar ;;
  865. *)
  866. # FIXME: should be removed in autoconf 3.0.
  867. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  868. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  869. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  870. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  871. ;;
  872. esac
  873. done
  874. if test -n "$ac_prev"; then
  875. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  876. { echo "$as_me: error: missing argument to $ac_option" >&2
  877. { (exit 1); exit 1; }; }
  878. fi
  879. # Be sure to have absolute directory names.
  880. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  881. datadir sysconfdir sharedstatedir localstatedir includedir \
  882. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  883. libdir localedir mandir
  884. do
  885. eval ac_val=\$$ac_var
  886. case $ac_val in
  887. [\\/$]* | ?:[\\/]* ) continue;;
  888. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  889. esac
  890. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  891. { (exit 1); exit 1; }; }
  892. done
  893. # There might be people who depend on the old broken behavior: `$host'
  894. # used to hold the argument of --host etc.
  895. # FIXME: To remove some day.
  896. build=$build_alias
  897. host=$host_alias
  898. target=$target_alias
  899. # FIXME: To remove some day.
  900. if test "x$host_alias" != x; then
  901. if test "x$build_alias" = x; then
  902. cross_compiling=maybe
  903. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  904. If a cross compiler is detected then cross compile mode will be used." >&2
  905. elif test "x$build_alias" != "x$host_alias"; then
  906. cross_compiling=yes
  907. fi
  908. fi
  909. ac_tool_prefix=
  910. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  911. test "$silent" = yes && exec 6>/dev/null
  912. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  913. ac_ls_di=`ls -di .` &&
  914. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  915. { echo "$as_me: error: Working directory cannot be determined" >&2
  916. { (exit 1); exit 1; }; }
  917. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  918. { echo "$as_me: error: pwd does not report name of working directory" >&2
  919. { (exit 1); exit 1; }; }
  920. # Find the source files, if location was not specified.
  921. if test -z "$srcdir"; then
  922. ac_srcdir_defaulted=yes
  923. # Try the directory containing this script, then the parent directory.
  924. ac_confdir=`$as_dirname -- "$0" ||
  925. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  926. X"$0" : 'X\(//\)[^/]' \| \
  927. X"$0" : 'X\(//\)$' \| \
  928. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  929. echo X"$0" |
  930. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  931. s//\1/
  932. q
  933. }
  934. /^X\(\/\/\)[^/].*/{
  935. s//\1/
  936. q
  937. }
  938. /^X\(\/\/\)$/{
  939. s//\1/
  940. q
  941. }
  942. /^X\(\/\).*/{
  943. s//\1/
  944. q
  945. }
  946. s/.*/./; q'`
  947. srcdir=$ac_confdir
  948. if test ! -r "$srcdir/$ac_unique_file"; then
  949. srcdir=..
  950. fi
  951. else
  952. ac_srcdir_defaulted=no
  953. fi
  954. if test ! -r "$srcdir/$ac_unique_file"; then
  955. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  956. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  957. { (exit 1); exit 1; }; }
  958. fi
  959. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  960. ac_abs_confdir=`(
  961. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  962. { (exit 1); exit 1; }; }
  963. pwd)`
  964. # When building in place, set srcdir=.
  965. if test "$ac_abs_confdir" = "$ac_pwd"; then
  966. srcdir=.
  967. fi
  968. # Remove unnecessary trailing slashes from srcdir.
  969. # Double slashes in file names in object file debugging info
  970. # mess up M-x gdb in Emacs.
  971. case $srcdir in
  972. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  973. esac
  974. for ac_var in $ac_precious_vars; do
  975. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  976. eval ac_env_${ac_var}_value=\$${ac_var}
  977. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  978. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  979. done
  980. #
  981. # Report the --help message.
  982. #
  983. if test "$ac_init_help" = "long"; then
  984. # Omit some internal or obsolete options to make the list less imposing.
  985. # This message is too long to be a string in the A/UX 3.1 sh.
  986. cat <<_ACEOF
  987. \`configure' configures this package to adapt to many kinds of systems.
  988. Usage: $0 [OPTION]... [VAR=VALUE]...
  989. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  990. VAR=VALUE. See below for descriptions of some of the useful variables.
  991. Defaults for the options are specified in brackets.
  992. Configuration:
  993. -h, --help display this help and exit
  994. --help=short display options specific to this package
  995. --help=recursive display the short help of all the included packages
  996. -V, --version display version information and exit
  997. -q, --quiet, --silent do not print \`checking...' messages
  998. --cache-file=FILE cache test results in FILE [disabled]
  999. -C, --config-cache alias for \`--cache-file=config.cache'
  1000. -n, --no-create do not create output files
  1001. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1002. Installation directories:
  1003. --prefix=PREFIX install architecture-independent files in PREFIX
  1004. [$ac_default_prefix]
  1005. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1006. [PREFIX]
  1007. By default, \`make install' will install all the files in
  1008. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1009. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1010. for instance \`--prefix=\$HOME'.
  1011. For better control, use the options below.
  1012. Fine tuning of the installation directories:
  1013. --bindir=DIR user executables [EPREFIX/bin]
  1014. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1015. --libexecdir=DIR program executables [EPREFIX/libexec]
  1016. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1017. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1018. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1019. --libdir=DIR object code libraries [EPREFIX/lib]
  1020. --includedir=DIR C header files [PREFIX/include]
  1021. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1022. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1023. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1024. --infodir=DIR info documentation [DATAROOTDIR/info]
  1025. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1026. --mandir=DIR man documentation [DATAROOTDIR/man]
  1027. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1028. --htmldir=DIR html documentation [DOCDIR]
  1029. --dvidir=DIR dvi documentation [DOCDIR]
  1030. --pdfdir=DIR pdf documentation [DOCDIR]
  1031. --psdir=DIR ps documentation [DOCDIR]
  1032. _ACEOF
  1033. cat <<\_ACEOF
  1034. _ACEOF
  1035. fi
  1036. if test -n "$ac_init_help"; then
  1037. cat <<\_ACEOF
  1038. Optional Features:
  1039. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1040. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1041. --enable-test tests current settings rather than defining new ones
  1042. --enable-extension=<ext>
  1043. Optional Packages:
  1044. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1045. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1046. --with-boost=DIR path to the boost main tree
  1047. Some influential environment variables:
  1048. CXX C++ compiler command
  1049. CXXFLAGS C++ compiler flags
  1050. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1051. nonstandard directory <lib dir>
  1052. LIBS libraries to pass to the linker, e.g. -l<library>
  1053. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1054. you have headers in a nonstandard directory <include dir>
  1055. Use these variables to override the choices made by `configure' or to help
  1056. it to find libraries and programs with nonstandard names/locations.
  1057. _ACEOF
  1058. ac_status=$?
  1059. fi
  1060. if test "$ac_init_help" = "recursive"; then
  1061. # If there are subdirs, report their specific --help.
  1062. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1063. test -d "$ac_dir" || continue
  1064. ac_builddir=.
  1065. case "$ac_dir" in
  1066. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1067. *)
  1068. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1069. # A ".." for each directory in $ac_dir_suffix.
  1070. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1071. case $ac_top_builddir_sub in
  1072. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1073. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1074. esac ;;
  1075. esac
  1076. ac_abs_top_builddir=$ac_pwd
  1077. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1078. # for backward compatibility:
  1079. ac_top_builddir=$ac_top_build_prefix
  1080. case $srcdir in
  1081. .) # We are building in place.
  1082. ac_srcdir=.
  1083. ac_top_srcdir=$ac_top_builddir_sub
  1084. ac_abs_top_srcdir=$ac_pwd ;;
  1085. [\\/]* | ?:[\\/]* ) # Absolute name.
  1086. ac_srcdir=$srcdir$ac_dir_suffix;
  1087. ac_top_srcdir=$srcdir
  1088. ac_abs_top_srcdir=$srcdir ;;
  1089. *) # Relative name.
  1090. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1091. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1092. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1093. esac
  1094. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1095. cd "$ac_dir" || { ac_status=$?; continue; }
  1096. # Check for guested configure.
  1097. if test -f "$ac_srcdir/configure.gnu"; then
  1098. echo &&
  1099. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1100. elif test -f "$ac_srcdir/configure"; then
  1101. echo &&
  1102. $SHELL "$ac_srcdir/configure" --help=recursive
  1103. else
  1104. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1105. fi || ac_status=$?
  1106. cd "$ac_pwd" || { ac_status=$?; break; }
  1107. done
  1108. fi
  1109. test -n "$ac_init_help" && exit $ac_status
  1110. if $ac_init_version; then
  1111. cat <<\_ACEOF
  1112. configure
  1113. generated by GNU Autoconf 2.61
  1114. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1115. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1116. This configure script is free software; the Free Software Foundation
  1117. gives unlimited permission to copy, distribute and modify it.
  1118. _ACEOF
  1119. exit
  1120. fi
  1121. cat >config.log <<_ACEOF
  1122. This file contains any messages produced by compilers while
  1123. running configure, to aid debugging if configure makes a mistake.
  1124. It was created by $as_me, which was
  1125. generated by GNU Autoconf 2.61. Invocation command line was
  1126. $ $0 $@
  1127. _ACEOF
  1128. exec 5>>config.log
  1129. {
  1130. cat <<_ASUNAME
  1131. ## --------- ##
  1132. ## Platform. ##
  1133. ## --------- ##
  1134. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1135. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1136. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1137. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1138. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1139. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1140. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1141. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1142. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1143. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1144. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1145. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1146. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1147. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1148. _ASUNAME
  1149. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1150. for as_dir in $PATH
  1151. do
  1152. IFS=$as_save_IFS
  1153. test -z "$as_dir" && as_dir=.
  1154. echo "PATH: $as_dir"
  1155. done
  1156. IFS=$as_save_IFS
  1157. } >&5
  1158. cat >&5 <<_ACEOF
  1159. ## ----------- ##
  1160. ## Core tests. ##
  1161. ## ----------- ##
  1162. _ACEOF
  1163. # Keep a trace of the command line.
  1164. # Strip out --no-create and --no-recursion so they do not pile up.
  1165. # Strip out --silent because we don't want to record it for future runs.
  1166. # Also quote any args containing shell meta-characters.
  1167. # Make two passes to allow for proper duplicate-argument suppression.
  1168. ac_configure_args=
  1169. ac_configure_args0=
  1170. ac_configure_args1=
  1171. ac_must_keep_next=false
  1172. for ac_pass in 1 2
  1173. do
  1174. for ac_arg
  1175. do
  1176. case $ac_arg in
  1177. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1178. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1179. | -silent | --silent | --silen | --sile | --sil)
  1180. continue ;;
  1181. *\'*)
  1182. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1183. esac
  1184. case $ac_pass in
  1185. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1186. 2)
  1187. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1188. if test $ac_must_keep_next = true; then
  1189. ac_must_keep_next=false # Got value, back to normal.
  1190. else
  1191. case $ac_arg in
  1192. *=* | --config-cache | -C | -disable-* | --disable-* \
  1193. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1194. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1195. | -with-* | --with-* | -without-* | --without-* | --x)
  1196. case "$ac_configure_args0 " in
  1197. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1198. esac
  1199. ;;
  1200. -* ) ac_must_keep_next=true ;;
  1201. esac
  1202. fi
  1203. ac_configure_args="$ac_configure_args '$ac_arg'"
  1204. ;;
  1205. esac
  1206. done
  1207. done
  1208. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1209. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1210. # When interrupted or exit'd, cleanup temporary files, and complete
  1211. # config.log. We remove comments because anyway the quotes in there
  1212. # would cause problems or look ugly.
  1213. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1214. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1215. trap 'exit_status=$?
  1216. # Save into config.log some information that might help in debugging.
  1217. {
  1218. echo
  1219. cat <<\_ASBOX
  1220. ## ---------------- ##
  1221. ## Cache variables. ##
  1222. ## ---------------- ##
  1223. _ASBOX
  1224. echo
  1225. # The following way of writing the cache mishandles newlines in values,
  1226. (
  1227. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1228. eval ac_val=\$$ac_var
  1229. case $ac_val in #(
  1230. *${as_nl}*)
  1231. case $ac_var in #(
  1232. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1233. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1234. esac
  1235. case $ac_var in #(
  1236. _ | IFS | as_nl) ;; #(
  1237. *) $as_unset $ac_var ;;
  1238. esac ;;
  1239. esac
  1240. done
  1241. (set) 2>&1 |
  1242. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1243. *${as_nl}ac_space=\ *)
  1244. sed -n \
  1245. "s/'\''/'\''\\\\'\'''\''/g;
  1246. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1247. ;; #(
  1248. *)
  1249. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1250. ;;
  1251. esac |
  1252. sort
  1253. )
  1254. echo
  1255. cat <<\_ASBOX
  1256. ## ----------------- ##
  1257. ## Output variables. ##
  1258. ## ----------------- ##
  1259. _ASBOX
  1260. echo
  1261. for ac_var in $ac_subst_vars
  1262. do
  1263. eval ac_val=\$$ac_var
  1264. case $ac_val in
  1265. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1266. esac
  1267. echo "$ac_var='\''$ac_val'\''"
  1268. done | sort
  1269. echo
  1270. if test -n "$ac_subst_files"; then
  1271. cat <<\_ASBOX
  1272. ## ------------------- ##
  1273. ## File substitutions. ##
  1274. ## ------------------- ##
  1275. _ASBOX
  1276. echo
  1277. for ac_var in $ac_subst_files
  1278. do
  1279. eval ac_val=\$$ac_var
  1280. case $ac_val in
  1281. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1282. esac
  1283. echo "$ac_var='\''$ac_val'\''"
  1284. done | sort
  1285. echo
  1286. fi
  1287. if test -s confdefs.h; then
  1288. cat <<\_ASBOX
  1289. ## ----------- ##
  1290. ## confdefs.h. ##
  1291. ## ----------- ##
  1292. _ASBOX
  1293. echo
  1294. cat confdefs.h
  1295. echo
  1296. fi
  1297. test "$ac_signal" != 0 &&
  1298. echo "$as_me: caught signal $ac_signal"
  1299. echo "$as_me: exit $exit_status"
  1300. } >&5
  1301. rm -f core *.core core.conftest.* &&
  1302. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1303. exit $exit_status
  1304. ' 0
  1305. for ac_signal in 1 2 13 15; do
  1306. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1307. done
  1308. ac_signal=0
  1309. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1310. rm -f -r conftest* confdefs.h
  1311. # Predefined preprocessor variables.
  1312. cat >>confdefs.h <<_ACEOF
  1313. #define PACKAGE_NAME "$PACKAGE_NAME"
  1314. _ACEOF
  1315. cat >>confdefs.h <<_ACEOF
  1316. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1317. _ACEOF
  1318. cat >>confdefs.h <<_ACEOF
  1319. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1320. _ACEOF
  1321. cat >>confdefs.h <<_ACEOF
  1322. #define PACKAGE_STRING "$PACKAGE_STRING"
  1323. _ACEOF
  1324. cat >>confdefs.h <<_ACEOF
  1325. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1326. _ACEOF
  1327. # Let the site file select an alternate cache file if it wants to.
  1328. # Prefer explicitly selected file to automatically selected ones.
  1329. if test -n "$CONFIG_SITE"; then
  1330. set x "$CONFIG_SITE"
  1331. elif test "x$prefix" != xNONE; then
  1332. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1333. else
  1334. set x "$ac_default_prefix/share/config.site" \
  1335. "$ac_default_prefix/etc/config.site"
  1336. fi
  1337. shift
  1338. for ac_site_file
  1339. do
  1340. if test -r "$ac_site_file"; then
  1341. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1342. echo "$as_me: loading site script $ac_site_file" >&6;}
  1343. sed 's/^/| /' "$ac_site_file" >&5
  1344. . "$ac_site_file"
  1345. fi
  1346. done
  1347. # Check that the precious variables saved in the cache have kept the same
  1348. # value.
  1349. ac_cache_corrupted=false
  1350. for ac_var in $ac_precious_vars; do
  1351. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1352. eval ac_new_set=\$ac_env_${ac_var}_set
  1353. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1354. eval ac_new_val=\$ac_env_${ac_var}_value
  1355. case $ac_old_set,$ac_new_set in
  1356. set,)
  1357. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1358. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1359. ac_cache_corrupted=: ;;
  1360. ,set)
  1361. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1362. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1363. ac_cache_corrupted=: ;;
  1364. ,);;
  1365. *)
  1366. if test "x$ac_old_val" != "x$ac_new_val"; then
  1367. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1368. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1369. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1370. echo "$as_me: former value: $ac_old_val" >&2;}
  1371. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1372. echo "$as_me: current value: $ac_new_val" >&2;}
  1373. ac_cache_corrupted=:
  1374. fi;;
  1375. esac
  1376. # Pass precious variables to config.status.
  1377. if test "$ac_new_set" = set; then
  1378. case $ac_new_val in
  1379. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1380. *) ac_arg=$ac_var=$ac_new_val ;;
  1381. esac
  1382. case " $ac_configure_args " in
  1383. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1384. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1385. esac
  1386. fi
  1387. done
  1388. if $ac_cache_corrupted; then
  1389. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1390. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1391. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1392. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1393. { (exit 1); exit 1; }; }
  1394. fi
  1395. ac_ext=c
  1396. ac_cpp='$CPP $CPPFLAGS'
  1397. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1398. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1399. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1400. # Check whether --enable-test was given.
  1401. if test "${enable_test+set}" = set; then
  1402. enableval=$enable_test;
  1403. fi
  1404. if test "foo"$enable_test = "foo"; then
  1405. enable_test="no"
  1406. fi
  1407. cat << EOF
  1408. *** $0: boost configuration utility ***
  1409. Please stand by while exploring compiler capabilities...
  1410. Be patient - this could take some time...
  1411. Note that this test script only gives an approximate
  1412. configuration - you will need to test the results carefully
  1413. using the boost regression test suite before using the results.
  1414. EOF
  1415. if test $enable_test = 'yes'; then
  1416. cat << EOF
  1417. This script reports only the difference between the detected
  1418. configuration, and the existing boost configuration. Its
  1419. primary aim is to quickly report how well boost is configured
  1420. for one compiler.
  1421. ***
  1422. EOF
  1423. else
  1424. cat << EOF
  1425. ***
  1426. EOF
  1427. fi
  1428. # Check whether --enable-extension was given.
  1429. if test "${enable_extension+set}" = set; then
  1430. enableval=$enable_extension;
  1431. case "$enableval" in
  1432. no) { echo "$as_me:$LINENO: result: Info :.cpp used as extension for tests" >&5
  1433. echo "${ECHO_T}Info :.cpp used as extension for tests" >&6; }
  1434. ac_ext=cpp
  1435. ;;
  1436. *) { echo "$as_me:$LINENO: result: Argument : .$enableval used as extension" >&5
  1437. echo "${ECHO_T}Argument : .$enableval used as extension" >&6; }
  1438. ac_ext=$enableval
  1439. esac
  1440. else
  1441. { echo "$as_me:$LINENO: result: Info : .cpp used as extension for tests" >&5
  1442. echo "${ECHO_T}Info : .cpp used as extension for tests" >&6; }
  1443. ac_ext=cpp
  1444. fi
  1445. if test -f /bin/sed ; then
  1446. SED=/bin/sed
  1447. else
  1448. if test -f /usr/bin/sed ; then
  1449. SED=/usr/bin/sed
  1450. else
  1451. SED=sed
  1452. fi
  1453. fi
  1454. { echo "$as_me:$LINENO: checking for boost main tree" >&5
  1455. echo $ECHO_N "checking for boost main tree... $ECHO_C" >&6; }
  1456. boost_base=
  1457. # Check whether --with-boost was given.
  1458. if test "${with_boost+set}" = set; then
  1459. withval=$with_boost;
  1460. #echo "--with boost is set"
  1461. if test "x$withval" != "x"; then
  1462. if test "x$withval" != no; then
  1463. boost_base=`echo "$withval" | $SED 's,//*,/,g' | $SED 's,/$,,'`
  1464. #echo boost_base=$boost_base
  1465. if test -f "$boost_base/boost/config.hpp"; then
  1466. if test -f "$boost_base/libs/config/configure"; then :; else
  1467. boost_base=
  1468. #echo "$boost_base/libs/config/configure" not found
  1469. fi
  1470. else
  1471. #echo "$boost_base/boost/config.hpp" not found
  1472. boost_base=
  1473. fi
  1474. fi
  1475. fi
  1476. fi
  1477. if test "x$boost_base" = "x"; then
  1478. #echo '$0 = ' $0
  1479. boost_base=`expr "x$0" : 'x\(.*\)/[/]*' \| '.'`
  1480. boost_base="$boost_base/../.."
  1481. #echo boost_base=$boost_base
  1482. if test -f "$boost_base/boost/config.hpp"; then
  1483. if test -f "$boost_base/libs/config/configure"; then :; else
  1484. boost_base=
  1485. fi
  1486. else
  1487. boost_base=
  1488. fi
  1489. fi
  1490. if test "x$boost_base" != "x"; then
  1491. { echo "$as_me:$LINENO: result: $boost_base" >&5
  1492. echo "${ECHO_T}$boost_base" >&6; }
  1493. else
  1494. { echo "$as_me:$LINENO: result: not found" >&5
  1495. echo "${ECHO_T}not found" >&6; }
  1496. { { echo "$as_me:$LINENO: error: The boost main tree was not found.
  1497. Specify its location by the --with-boost option." >&5
  1498. echo "$as_me: error: The boost main tree was not found.
  1499. Specify its location by the --with-boost option." >&2;}
  1500. { (exit 1); exit 1; }; }
  1501. fi
  1502. # Save that, as it is being redefined several times
  1503. use_ac_ext=$ac_ext
  1504. ac_ext=cpp
  1505. ac_cpp='$CXXCPP $CPPFLAGS'
  1506. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1507. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1508. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1509. if test -z "$CXX"; then
  1510. if test -n "$CCC"; then
  1511. CXX=$CCC
  1512. else
  1513. if test -n "$ac_tool_prefix"; then
  1514. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  1515. do
  1516. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1517. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1518. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1519. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1520. if test "${ac_cv_prog_CXX+set}" = set; then
  1521. echo $ECHO_N "(cached) $ECHO_C" >&6
  1522. else
  1523. if test -n "$CXX"; then
  1524. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1525. else
  1526. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1527. for as_dir in $PATH
  1528. do
  1529. IFS=$as_save_IFS
  1530. test -z "$as_dir" && as_dir=.
  1531. for ac_exec_ext in '' $ac_executable_extensions; do
  1532. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1533. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  1534. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1535. break 2
  1536. fi
  1537. done
  1538. done
  1539. IFS=$as_save_IFS
  1540. fi
  1541. fi
  1542. CXX=$ac_cv_prog_CXX
  1543. if test -n "$CXX"; then
  1544. { echo "$as_me:$LINENO: result: $CXX" >&5
  1545. echo "${ECHO_T}$CXX" >&6; }
  1546. else
  1547. { echo "$as_me:$LINENO: result: no" >&5
  1548. echo "${ECHO_T}no" >&6; }
  1549. fi
  1550. test -n "$CXX" && break
  1551. done
  1552. fi
  1553. if test -z "$CXX"; then
  1554. ac_ct_CXX=$CXX
  1555. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  1556. do
  1557. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1558. set dummy $ac_prog; ac_word=$2
  1559. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1560. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1561. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  1562. echo $ECHO_N "(cached) $ECHO_C" >&6
  1563. else
  1564. if test -n "$ac_ct_CXX"; then
  1565. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  1566. else
  1567. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1568. for as_dir in $PATH
  1569. do
  1570. IFS=$as_save_IFS
  1571. test -z "$as_dir" && as_dir=.
  1572. for ac_exec_ext in '' $ac_executable_extensions; do
  1573. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1574. ac_cv_prog_ac_ct_CXX="$ac_prog"
  1575. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1576. break 2
  1577. fi
  1578. done
  1579. done
  1580. IFS=$as_save_IFS
  1581. fi
  1582. fi
  1583. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  1584. if test -n "$ac_ct_CXX"; then
  1585. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  1586. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  1587. else
  1588. { echo "$as_me:$LINENO: result: no" >&5
  1589. echo "${ECHO_T}no" >&6; }
  1590. fi
  1591. test -n "$ac_ct_CXX" && break
  1592. done
  1593. if test "x$ac_ct_CXX" = x; then
  1594. CXX="g++"
  1595. else
  1596. case $cross_compiling:$ac_tool_warned in
  1597. yes:)
  1598. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  1599. whose name does not start with the host triplet. If you think this
  1600. configuration is useful to you, please write to autoconf@gnu.org." >&5
  1601. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  1602. whose name does not start with the host triplet. If you think this
  1603. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  1604. ac_tool_warned=yes ;;
  1605. esac
  1606. CXX=$ac_ct_CXX
  1607. fi
  1608. fi
  1609. fi
  1610. fi
  1611. # Provide some information about the compiler.
  1612. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  1613. ac_compiler=`set X $ac_compile; echo $2`
  1614. { (ac_try="$ac_compiler --version >&5"
  1615. case "(($ac_try" in
  1616. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1617. *) ac_try_echo=$ac_try;;
  1618. esac
  1619. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1620. (eval "$ac_compiler --version >&5") 2>&5
  1621. ac_status=$?
  1622. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1623. (exit $ac_status); }
  1624. { (ac_try="$ac_compiler -v >&5"
  1625. case "(($ac_try" in
  1626. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1627. *) ac_try_echo=$ac_try;;
  1628. esac
  1629. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1630. (eval "$ac_compiler -v >&5") 2>&5
  1631. ac_status=$?
  1632. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1633. (exit $ac_status); }
  1634. { (ac_try="$ac_compiler -V >&5"
  1635. case "(($ac_try" in
  1636. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1637. *) ac_try_echo=$ac_try;;
  1638. esac
  1639. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1640. (eval "$ac_compiler -V >&5") 2>&5
  1641. ac_status=$?
  1642. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1643. (exit $ac_status); }
  1644. cat >conftest.$ac_ext <<_ACEOF
  1645. /* confdefs.h. */
  1646. _ACEOF
  1647. cat confdefs.h >>conftest.$ac_ext
  1648. cat >>conftest.$ac_ext <<_ACEOF
  1649. /* end confdefs.h. */
  1650. int
  1651. main ()
  1652. {
  1653. ;
  1654. return 0;
  1655. }
  1656. _ACEOF
  1657. ac_clean_files_save=$ac_clean_files
  1658. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1659. # Try to create an executable without -o first, disregard a.out.
  1660. # It will help us diagnose broken compilers, and finding out an intuition
  1661. # of exeext.
  1662. { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  1663. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
  1664. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1665. #
  1666. # List of possible output files, starting from the most likely.
  1667. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  1668. # only as a last resort. b.out is created by i960 compilers.
  1669. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  1670. #
  1671. # The IRIX 6 linker writes into existing files which may not be
  1672. # executable, retaining their permissions. Remove them first so a
  1673. # subsequent execution test works.
  1674. ac_rmfiles=
  1675. for ac_file in $ac_files
  1676. do
  1677. case $ac_file in
  1678. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  1679. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  1680. esac
  1681. done
  1682. rm -f $ac_rmfiles
  1683. if { (ac_try="$ac_link_default"
  1684. case "(($ac_try" in
  1685. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1686. *) ac_try_echo=$ac_try;;
  1687. esac
  1688. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1689. (eval "$ac_link_default") 2>&5
  1690. ac_status=$?
  1691. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1692. (exit $ac_status); }; then
  1693. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  1694. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  1695. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  1696. # so that the user can short-circuit this test for compilers unknown to
  1697. # Autoconf.
  1698. for ac_file in $ac_files ''
  1699. do
  1700. test -f "$ac_file" || continue
  1701. case $ac_file in
  1702. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  1703. ;;
  1704. [ab].out )
  1705. # We found the default executable, but exeext='' is most
  1706. # certainly right.
  1707. break;;
  1708. *.* )
  1709. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  1710. then :; else
  1711. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1712. fi
  1713. # We set ac_cv_exeext here because the later test for it is not
  1714. # safe: cross compilers may not add the suffix if given an `-o'
  1715. # argument, so we may need to know it at that point already.
  1716. # Even if this section looks crufty: it has the advantage of
  1717. # actually working.
  1718. break;;
  1719. * )
  1720. break;;
  1721. esac
  1722. done
  1723. test "$ac_cv_exeext" = no && ac_cv_exeext=
  1724. else
  1725. ac_file=''
  1726. fi
  1727. { echo "$as_me:$LINENO: result: $ac_file" >&5
  1728. echo "${ECHO_T}$ac_file" >&6; }
  1729. if test -z "$ac_file"; then
  1730. echo "$as_me: failed program was:" >&5
  1731. sed 's/^/| /' conftest.$ac_ext >&5
  1732. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  1733. See \`config.log' for more details." >&5
  1734. echo "$as_me: error: C++ compiler cannot create executables
  1735. See \`config.log' for more details." >&2;}
  1736. { (exit 77); exit 77; }; }
  1737. fi
  1738. ac_exeext=$ac_cv_exeext
  1739. # Check that the compiler produces executables we can run. If not, either
  1740. # the compiler is broken, or we cross compile.
  1741. { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  1742. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
  1743. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1744. # If not cross compiling, check that we can run a simple program.
  1745. if test "$cross_compiling" != yes; then
  1746. if { ac_try='./$ac_file'
  1747. { (case "(($ac_try" in
  1748. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1749. *) ac_try_echo=$ac_try;;
  1750. esac
  1751. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1752. (eval "$ac_try") 2>&5
  1753. ac_status=$?
  1754. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1755. (exit $ac_status); }; }; then
  1756. cross_compiling=no
  1757. else
  1758. if test "$cross_compiling" = maybe; then
  1759. cross_compiling=yes
  1760. else
  1761. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  1762. If you meant to cross compile, use \`--host'.
  1763. See \`config.log' for more details." >&5
  1764. echo "$as_me: error: cannot run C++ compiled programs.
  1765. If you meant to cross compile, use \`--host'.
  1766. See \`config.log' for more details." >&2;}
  1767. { (exit 1); exit 1; }; }
  1768. fi
  1769. fi
  1770. fi
  1771. { echo "$as_me:$LINENO: result: yes" >&5
  1772. echo "${ECHO_T}yes" >&6; }
  1773. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1774. ac_clean_files=$ac_clean_files_save
  1775. # Check that the compiler produces executables we can run. If not, either
  1776. # the compiler is broken, or we cross compile.
  1777. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1778. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  1779. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1780. echo "${ECHO_T}$cross_compiling" >&6; }
  1781. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1782. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  1783. if { (ac_try="$ac_link"
  1784. case "(($ac_try" in
  1785. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1786. *) ac_try_echo=$ac_try;;
  1787. esac
  1788. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1789. (eval "$ac_link") 2>&5
  1790. ac_status=$?
  1791. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1792. (exit $ac_status); }; then
  1793. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1794. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1795. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1796. # `rm'.
  1797. for ac_file in conftest.exe conftest conftest.*; do
  1798. test -f "$ac_file" || continue
  1799. case $ac_file in
  1800. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  1801. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1802. break;;
  1803. * ) break;;
  1804. esac
  1805. done
  1806. else
  1807. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1808. See \`config.log' for more details." >&5
  1809. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1810. See \`config.log' for more details." >&2;}
  1811. { (exit 1); exit 1; }; }
  1812. fi
  1813. rm -f conftest$ac_cv_exeext
  1814. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1815. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  1816. rm -f conftest.$ac_ext
  1817. EXEEXT=$ac_cv_exeext
  1818. ac_exeext=$EXEEXT
  1819. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1820. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  1821. if test "${ac_cv_objext+set}" = set; then
  1822. echo $ECHO_N "(cached) $ECHO_C" >&6
  1823. else
  1824. cat >conftest.$ac_ext <<_ACEOF
  1825. /* confdefs.h. */
  1826. _ACEOF
  1827. cat confdefs.h >>conftest.$ac_ext
  1828. cat >>conftest.$ac_ext <<_ACEOF
  1829. /* end confdefs.h. */
  1830. int
  1831. main ()
  1832. {
  1833. ;
  1834. return 0;
  1835. }
  1836. _ACEOF
  1837. rm -f conftest.o conftest.obj
  1838. if { (ac_try="$ac_compile"
  1839. case "(($ac_try" in
  1840. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1841. *) ac_try_echo=$ac_try;;
  1842. esac
  1843. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1844. (eval "$ac_compile") 2>&5
  1845. ac_status=$?
  1846. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1847. (exit $ac_status); }; then
  1848. for ac_file in conftest.o conftest.obj conftest.*; do
  1849. test -f "$ac_file" || continue;
  1850. case $ac_file in
  1851. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  1852. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1853. break;;
  1854. esac
  1855. done
  1856. else
  1857. echo "$as_me: failed program was:" >&5
  1858. sed 's/^/| /' conftest.$ac_ext >&5
  1859. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1860. See \`config.log' for more details." >&5
  1861. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1862. See \`config.log' for more details." >&2;}
  1863. { (exit 1); exit 1; }; }
  1864. fi
  1865. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1866. fi
  1867. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1868. echo "${ECHO_T}$ac_cv_objext" >&6; }
  1869. OBJEXT=$ac_cv_objext
  1870. ac_objext=$OBJEXT
  1871. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  1872. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  1873. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  1874. echo $ECHO_N "(cached) $ECHO_C" >&6
  1875. else
  1876. cat >conftest.$ac_ext <<_ACEOF
  1877. /* confdefs.h. */
  1878. _ACEOF
  1879. cat confdefs.h >>conftest.$ac_ext
  1880. cat >>conftest.$ac_ext <<_ACEOF
  1881. /* end confdefs.h. */
  1882. int
  1883. main ()
  1884. {
  1885. #ifndef __GNUC__
  1886. choke me
  1887. #endif
  1888. ;
  1889. return 0;
  1890. }
  1891. _ACEOF
  1892. rm -f conftest.$ac_objext
  1893. if { (ac_try="$ac_compile"
  1894. case "(($ac_try" in
  1895. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1896. *) ac_try_echo=$ac_try;;
  1897. esac
  1898. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1899. (eval "$ac_compile") 2>conftest.er1
  1900. ac_status=$?
  1901. grep -v '^ *+' conftest.er1 >conftest.err
  1902. rm -f conftest.er1
  1903. cat conftest.err >&5
  1904. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1905. (exit $ac_status); } && {
  1906. test -z "$ac_cxx_werror_flag" ||
  1907. test ! -s conftest.err
  1908. } && test -s conftest.$ac_objext; then
  1909. ac_compiler_gnu=yes
  1910. else
  1911. echo "$as_me: failed program was:" >&5
  1912. sed 's/^/| /' conftest.$ac_ext >&5
  1913. ac_compiler_gnu=no
  1914. fi
  1915. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1916. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  1917. fi
  1918. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  1919. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  1920. GXX=`test $ac_compiler_gnu = yes && echo yes`
  1921. ac_test_CXXFLAGS=${CXXFLAGS+set}
  1922. ac_save_CXXFLAGS=$CXXFLAGS
  1923. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  1924. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  1925. if test "${ac_cv_prog_cxx_g+set}" = set; then
  1926. echo $ECHO_N "(cached) $ECHO_C" >&6
  1927. else
  1928. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  1929. ac_cxx_werror_flag=yes
  1930. ac_cv_prog_cxx_g=no
  1931. CXXFLAGS="-g"
  1932. cat >conftest.$ac_ext <<_ACEOF
  1933. /* confdefs.h. */
  1934. _ACEOF
  1935. cat confdefs.h >>conftest.$ac_ext
  1936. cat >>conftest.$ac_ext <<_ACEOF
  1937. /* end confdefs.h. */
  1938. int
  1939. main ()
  1940. {
  1941. ;
  1942. return 0;
  1943. }
  1944. _ACEOF
  1945. rm -f conftest.$ac_objext
  1946. if { (ac_try="$ac_compile"
  1947. case "(($ac_try" in
  1948. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1949. *) ac_try_echo=$ac_try;;
  1950. esac
  1951. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1952. (eval "$ac_compile") 2>conftest.er1
  1953. ac_status=$?
  1954. grep -v '^ *+' conftest.er1 >conftest.err
  1955. rm -f conftest.er1
  1956. cat conftest.err >&5
  1957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1958. (exit $ac_status); } && {
  1959. test -z "$ac_cxx_werror_flag" ||
  1960. test ! -s conftest.err
  1961. } && test -s conftest.$ac_objext; then
  1962. ac_cv_prog_cxx_g=yes
  1963. else
  1964. echo "$as_me: failed program was:" >&5
  1965. sed 's/^/| /' conftest.$ac_ext >&5
  1966. CXXFLAGS=""
  1967. cat >conftest.$ac_ext <<_ACEOF
  1968. /* confdefs.h. */
  1969. _ACEOF
  1970. cat confdefs.h >>conftest.$ac_ext
  1971. cat >>conftest.$ac_ext <<_ACEOF
  1972. /* end confdefs.h. */
  1973. int
  1974. main ()
  1975. {
  1976. ;
  1977. return 0;
  1978. }
  1979. _ACEOF
  1980. rm -f conftest.$ac_objext
  1981. if { (ac_try="$ac_compile"
  1982. case "(($ac_try" in
  1983. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1984. *) ac_try_echo=$ac_try;;
  1985. esac
  1986. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1987. (eval "$ac_compile") 2>conftest.er1
  1988. ac_status=$?
  1989. grep -v '^ *+' conftest.er1 >conftest.err
  1990. rm -f conftest.er1
  1991. cat conftest.err >&5
  1992. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1993. (exit $ac_status); } && {
  1994. test -z "$ac_cxx_werror_flag" ||
  1995. test ! -s conftest.err
  1996. } && test -s conftest.$ac_objext; then
  1997. :
  1998. else
  1999. echo "$as_me: failed program was:" >&5
  2000. sed 's/^/| /' conftest.$ac_ext >&5
  2001. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2002. CXXFLAGS="-g"
  2003. cat >conftest.$ac_ext <<_ACEOF
  2004. /* confdefs.h. */
  2005. _ACEOF
  2006. cat confdefs.h >>conftest.$ac_ext
  2007. cat >>conftest.$ac_ext <<_ACEOF
  2008. /* end confdefs.h. */
  2009. int
  2010. main ()
  2011. {
  2012. ;
  2013. return 0;
  2014. }
  2015. _ACEOF
  2016. rm -f conftest.$ac_objext
  2017. if { (ac_try="$ac_compile"
  2018. case "(($ac_try" in
  2019. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2020. *) ac_try_echo=$ac_try;;
  2021. esac
  2022. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2023. (eval "$ac_compile") 2>conftest.er1
  2024. ac_status=$?
  2025. grep -v '^ *+' conftest.er1 >conftest.err
  2026. rm -f conftest.er1
  2027. cat conftest.err >&5
  2028. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2029. (exit $ac_status); } && {
  2030. test -z "$ac_cxx_werror_flag" ||
  2031. test ! -s conftest.err
  2032. } && test -s conftest.$ac_objext; then
  2033. ac_cv_prog_cxx_g=yes
  2034. else
  2035. echo "$as_me: failed program was:" >&5
  2036. sed 's/^/| /' conftest.$ac_ext >&5
  2037. fi
  2038. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2039. fi
  2040. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2041. fi
  2042. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2043. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2044. fi
  2045. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2046. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  2047. if test "$ac_test_CXXFLAGS" = set; then
  2048. CXXFLAGS=$ac_save_CXXFLAGS
  2049. elif test $ac_cv_prog_cxx_g = yes; then
  2050. if test "$GXX" = yes; then
  2051. CXXFLAGS="-g -O2"
  2052. else
  2053. CXXFLAGS="-g"
  2054. fi
  2055. else
  2056. if test "$GXX" = yes; then
  2057. CXXFLAGS="-O2"
  2058. else
  2059. CXXFLAGS=
  2060. fi
  2061. fi
  2062. ac_ext=c
  2063. ac_cpp='$CPP $CPPFLAGS'
  2064. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2065. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2066. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2067. ac_ext=$use_ac_ext
  2068. ac_ext=cpp
  2069. ac_cpp='$CXXCPP $CPPFLAGS'
  2070. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2071. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2072. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2073. OLD_CXXFLAGS="$CXXFLAGS"
  2074. if test $enable_test = 'yes'; then
  2075. CXXFLAGS="-I$boost_base -I$boost_base/libs/config/test $CXXFLAGS"
  2076. else
  2077. CXXFLAGS="-I$boost_base -I$boost_base/libs/config/test $CXXFLAGS -DBOOST_NO_CONFIG"
  2078. fi
  2079. # add the -AA conformance option to CXXFLAGS for HP aCC only
  2080. if test $CXX = 'aCC'; then
  2081. CXXFLAGS="-AA $CXXFLAGS"
  2082. fi
  2083. { echo "$as_me:$LINENO: checking for pthread_exit in -lpthread" >&5
  2084. echo $ECHO_N "checking for pthread_exit in -lpthread... $ECHO_C" >&6; }
  2085. if test "${ac_cv_lib_pthread_pthread_exit+set}" = set; then
  2086. echo $ECHO_N "(cached) $ECHO_C" >&6
  2087. else
  2088. ac_check_lib_save_LIBS=$LIBS
  2089. LIBS="-lpthread $LIBS"
  2090. cat >conftest.$ac_ext <<_ACEOF
  2091. /* confdefs.h. */
  2092. _ACEOF
  2093. cat confdefs.h >>conftest.$ac_ext
  2094. cat >>conftest.$ac_ext <<_ACEOF
  2095. /* end confdefs.h. */
  2096. /* Override any GCC internal prototype to avoid an error.
  2097. Use char because int might match the return type of a GCC
  2098. builtin and then its argument prototype would still apply. */
  2099. #ifdef __cplusplus
  2100. extern "C"
  2101. #endif
  2102. char pthread_exit ();
  2103. int
  2104. main ()
  2105. {
  2106. return pthread_exit ();
  2107. ;
  2108. return 0;
  2109. }
  2110. _ACEOF
  2111. rm -f conftest.$ac_objext conftest$ac_exeext
  2112. if { (ac_try="$ac_link"
  2113. case "(($ac_try" in
  2114. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2115. *) ac_try_echo=$ac_try;;
  2116. esac
  2117. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2118. (eval "$ac_link") 2>conftest.er1
  2119. ac_status=$?
  2120. grep -v '^ *+' conftest.er1 >conftest.err
  2121. rm -f conftest.er1
  2122. cat conftest.err >&5
  2123. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2124. (exit $ac_status); } && {
  2125. test -z "$ac_cxx_werror_flag" ||
  2126. test ! -s conftest.err
  2127. } && test -s conftest$ac_exeext &&
  2128. $as_test_x conftest$ac_exeext; then
  2129. ac_cv_lib_pthread_pthread_exit=yes
  2130. else
  2131. echo "$as_me: failed program was:" >&5
  2132. sed 's/^/| /' conftest.$ac_ext >&5
  2133. ac_cv_lib_pthread_pthread_exit=no
  2134. fi
  2135. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  2136. conftest$ac_exeext conftest.$ac_ext
  2137. LIBS=$ac_check_lib_save_LIBS
  2138. fi
  2139. { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_exit" >&5
  2140. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_exit" >&6; }
  2141. if test $ac_cv_lib_pthread_pthread_exit = yes; then
  2142. cat >>confdefs.h <<_ACEOF
  2143. #define HAVE_LIBPTHREAD 1
  2144. _ACEOF
  2145. LIBS="-lpthread $LIBS"
  2146. fi
  2147. { echo "$as_me:$LINENO: checking for cos in -lm" >&5
  2148. echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6; }
  2149. if test "${ac_cv_lib_m_cos+set}" = set; then
  2150. echo $ECHO_N "(cached) $ECHO_C" >&6
  2151. else
  2152. ac_check_lib_save_LIBS=$LIBS
  2153. LIBS="-lm $LIBS"
  2154. cat >conftest.$ac_ext <<_ACEOF
  2155. /* confdefs.h. */
  2156. _ACEOF
  2157. cat confdefs.h >>conftest.$ac_ext
  2158. cat >>conftest.$ac_ext <<_ACEOF
  2159. /* end confdefs.h. */
  2160. /* Override any GCC internal prototype to avoid an error.
  2161. Use char because int might match the return type of a GCC
  2162. builtin and then its argument prototype would still apply. */
  2163. #ifdef __cplusplus
  2164. extern "C"
  2165. #endif
  2166. char cos ();
  2167. int
  2168. main ()
  2169. {
  2170. return cos ();
  2171. ;
  2172. return 0;
  2173. }
  2174. _ACEOF
  2175. rm -f conftest.$ac_objext conftest$ac_exeext
  2176. if { (ac_try="$ac_link"
  2177. case "(($ac_try" in
  2178. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2179. *) ac_try_echo=$ac_try;;
  2180. esac
  2181. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2182. (eval "$ac_link") 2>conftest.er1
  2183. ac_status=$?
  2184. grep -v '^ *+' conftest.er1 >conftest.err
  2185. rm -f conftest.er1
  2186. cat conftest.err >&5
  2187. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2188. (exit $ac_status); } && {
  2189. test -z "$ac_cxx_werror_flag" ||
  2190. test ! -s conftest.err
  2191. } && test -s conftest$ac_exeext &&
  2192. $as_test_x conftest$ac_exeext; then
  2193. ac_cv_lib_m_cos=yes
  2194. else
  2195. echo "$as_me: failed program was:" >&5
  2196. sed 's/^/| /' conftest.$ac_ext >&5
  2197. ac_cv_lib_m_cos=no
  2198. fi
  2199. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  2200. conftest$ac_exeext conftest.$ac_ext
  2201. LIBS=$ac_check_lib_save_LIBS
  2202. fi
  2203. { echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
  2204. echo "${ECHO_T}$ac_cv_lib_m_cos" >&6; }
  2205. if test $ac_cv_lib_m_cos = yes; then
  2206. cat >>confdefs.h <<_ACEOF
  2207. #define HAVE_LIBM 1
  2208. _ACEOF
  2209. LIBS="-lm $LIBS"
  2210. fi
  2211. { echo "$as_me:$LINENO: checking for clock in -lrt" >&5
  2212. echo $ECHO_N "checking for clock in -lrt... $ECHO_C" >&6; }
  2213. if test "${ac_cv_lib_rt_clock+set}" = set; then
  2214. echo $ECHO_N "(cached) $ECHO_C" >&6
  2215. else
  2216. ac_check_lib_save_LIBS=$LIBS
  2217. LIBS="-lrt $LIBS"
  2218. cat >conftest.$ac_ext <<_ACEOF
  2219. /* confdefs.h. */
  2220. _ACEOF
  2221. cat confdefs.h >>conftest.$ac_ext
  2222. cat >>conftest.$ac_ext <<_ACEOF
  2223. /* end confdefs.h. */
  2224. /* Override any GCC internal prototype to avoid an error.
  2225. Use char because int might match the return type of a GCC
  2226. builtin and then its argument prototype would still apply. */
  2227. #ifdef __cplusplus
  2228. extern "C"
  2229. #endif
  2230. char clock ();
  2231. int
  2232. main ()
  2233. {
  2234. return clock ();
  2235. ;
  2236. return 0;
  2237. }
  2238. _ACEOF
  2239. rm -f conftest.$ac_objext conftest$ac_exeext
  2240. if { (ac_try="$ac_link"
  2241. case "(($ac_try" in
  2242. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2243. *) ac_try_echo=$ac_try;;
  2244. esac
  2245. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2246. (eval "$ac_link") 2>conftest.er1
  2247. ac_status=$?
  2248. grep -v '^ *+' conftest.er1 >conftest.err
  2249. rm -f conftest.er1
  2250. cat conftest.err >&5
  2251. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2252. (exit $ac_status); } && {
  2253. test -z "$ac_cxx_werror_flag" ||
  2254. test ! -s conftest.err
  2255. } && test -s conftest$ac_exeext &&
  2256. $as_test_x conftest$ac_exeext; then
  2257. ac_cv_lib_rt_clock=yes
  2258. else
  2259. echo "$as_me: failed program was:" >&5
  2260. sed 's/^/| /' conftest.$ac_ext >&5
  2261. ac_cv_lib_rt_clock=no
  2262. fi
  2263. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  2264. conftest$ac_exeext conftest.$ac_ext
  2265. LIBS=$ac_check_lib_save_LIBS
  2266. fi
  2267. { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock" >&5
  2268. echo "${ECHO_T}$ac_cv_lib_rt_clock" >&6; }
  2269. if test $ac_cv_lib_rt_clock = yes; then
  2270. cat >>confdefs.h <<_ACEOF
  2271. #define HAVE_LIBRT 1
  2272. _ACEOF
  2273. LIBS="-lrt $LIBS"
  2274. fi
  2275. #
  2276. # enumerate test files and test each one:
  2277. #
  2278. for file in $boost_base/libs/config/test/boost_no*.ipp; do
  2279. basename=`echo $file | $SED 's/.*boost_\(.*\)\.ipp/\1/'`
  2280. macroname=`cat $file | grep '^//[ ]*MACRO:' | $SED 's/.*MACRO:[ ]*\([_A-Z0-9]*\).*/\1/'`
  2281. title=`cat $file | grep '^//[ ]*TITLE:' | $SED 's/.*TITLE:[ ]*\([^ ].*\)/\1/'`
  2282. namespace=`echo $macroname | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
  2283. #echo file = $file
  2284. #echo basename = $basename
  2285. #echo macroname = $macroname
  2286. #echo title = $title
  2287. #echo namespace = $namespace
  2288. ac_ext=$use_ac_ext
  2289. if test $enable_test = 'yes'; then
  2290. { echo "$as_me:$LINENO: checking $title (pass expected) " >&5
  2291. echo $ECHO_N "checking $title (pass expected) ... $ECHO_C" >&6; }
  2292. else
  2293. { echo "$as_me:$LINENO: checking $title " >&5
  2294. echo $ECHO_N "checking $title ... $ECHO_C" >&6; }
  2295. fi
  2296. if test "$cross_compiling" = yes; then
  2297. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  2298. See \`config.log' for more details." >&5
  2299. echo "$as_me: error: cannot run test program while cross compiling
  2300. See \`config.log' for more details." >&2;}
  2301. { (exit 1); exit 1; }; }
  2302. else
  2303. cat >conftest.$ac_ext <<_ACEOF
  2304. /* confdefs.h. */
  2305. _ACEOF
  2306. cat confdefs.h >>conftest.$ac_ext
  2307. cat >>conftest.$ac_ext <<_ACEOF
  2308. /* end confdefs.h. */
  2309. #include <boost/config.hpp>
  2310. #include "test.hpp"
  2311. #if !defined($macroname) || defined(BOOST_NO_CONFIG)
  2312. #include "boost_$basename.ipp"
  2313. #else
  2314. namespace ${namespace} = empty_boost;
  2315. #endif
  2316. int main(){ return ${namespace}::test(); }
  2317. _ACEOF
  2318. rm -f conftest$ac_exeext
  2319. if { (ac_try="$ac_link"
  2320. case "(($ac_try" in
  2321. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2322. *) ac_try_echo=$ac_try;;
  2323. esac
  2324. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2325. (eval "$ac_link") 2>&5
  2326. ac_status=$?
  2327. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2328. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2329. { (case "(($ac_try" in
  2330. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2331. *) ac_try_echo=$ac_try;;
  2332. esac
  2333. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2334. (eval "$ac_try") 2>&5
  2335. ac_status=$?
  2336. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2337. (exit $ac_status); }; }; then
  2338. { echo "$as_me:$LINENO: result: OK" >&5
  2339. echo "${ECHO_T}OK" >&6; }
  2340. else
  2341. echo "$as_me: program exited with status $ac_status" >&5
  2342. echo "$as_me: failed program was:" >&5
  2343. sed 's/^/| /' conftest.$ac_ext >&5
  2344. ( exit $ac_status )
  2345. { echo "$as_me:$LINENO: result: Failed" >&5
  2346. echo "${ECHO_T}Failed" >&6; }
  2347. required_defs="$macroname $required_defs"
  2348. fi
  2349. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2350. fi
  2351. if test $enable_test = 'yes'; then
  2352. ac_ext=$use_ac_ext
  2353. { echo "$as_me:$LINENO: checking $title (fail expected) " >&5
  2354. echo $ECHO_N "checking $title (fail expected) ... $ECHO_C" >&6; }
  2355. if test "$cross_compiling" = yes; then
  2356. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  2357. See \`config.log' for more details." >&5
  2358. echo "$as_me: error: cannot run test program while cross compiling
  2359. See \`config.log' for more details." >&2;}
  2360. { (exit 1); exit 1; }; }
  2361. else
  2362. cat >conftest.$ac_ext <<_ACEOF
  2363. /* confdefs.h. */
  2364. _ACEOF
  2365. cat confdefs.h >>conftest.$ac_ext
  2366. cat >>conftest.$ac_ext <<_ACEOF
  2367. /* end confdefs.h. */
  2368. #include <boost/config.hpp>
  2369. #include "test.hpp"
  2370. #ifdef $macroname
  2371. #include "boost_$basename.ipp"
  2372. #else
  2373. #error "this file should not compile"
  2374. #endif
  2375. int main() { return ${namespace}::test(); }
  2376. _ACEOF
  2377. rm -f conftest$ac_exeext
  2378. if { (ac_try="$ac_link"
  2379. case "(($ac_try" in
  2380. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2381. *) ac_try_echo=$ac_try;;
  2382. esac
  2383. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2384. (eval "$ac_link") 2>&5
  2385. ac_status=$?
  2386. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2387. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2388. { (case "(($ac_try" in
  2389. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2390. *) ac_try_echo=$ac_try;;
  2391. esac
  2392. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2393. (eval "$ac_try") 2>&5
  2394. ac_status=$?
  2395. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2396. (exit $ac_status); }; }; then
  2397. { echo "$as_me:$LINENO: result: failed" >&5
  2398. echo "${ECHO_T}failed" >&6; }
  2399. required_undefs="$macroname $required_undefs"
  2400. else
  2401. echo "$as_me: program exited with status $ac_status" >&5
  2402. echo "$as_me: failed program was:" >&5
  2403. sed 's/^/| /' conftest.$ac_ext >&5
  2404. ( exit $ac_status )
  2405. { echo "$as_me:$LINENO: result: OK" >&5
  2406. echo "${ECHO_T}OK" >&6; }
  2407. fi
  2408. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2409. fi
  2410. fi
  2411. done
  2412. #
  2413. # enumerate optional test files and test each one:
  2414. #
  2415. for file in $boost_base/libs/config/test/boost_has*.ipp; do
  2416. basename=`echo $file | $SED 's/.*boost_\(.*\)\.ipp/\1/'`
  2417. macroname=`cat $file | grep '^//[ ]*MACRO:' | $SED 's/.*MACRO:[ ]*\([_A-Z0-9]*\).*/\1/'`
  2418. title=`cat $file | grep '^//[ ]*TITLE:' | $SED 's/.*TITLE:[ ]*\([^ ].*\)/\1/'`
  2419. namespace=`echo $macroname | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
  2420. # echo $file
  2421. # echo $basename
  2422. # echo $macroname
  2423. # echo $title
  2424. ac_ext=$use_ac_ext
  2425. if test $enable_test = 'yes'; then
  2426. { echo "$as_me:$LINENO: checking $title (pass expected) " >&5
  2427. echo $ECHO_N "checking $title (pass expected) ... $ECHO_C" >&6; }
  2428. if test "$cross_compiling" = yes; then
  2429. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  2430. See \`config.log' for more details." >&5
  2431. echo "$as_me: error: cannot run test program while cross compiling
  2432. See \`config.log' for more details." >&2;}
  2433. { (exit 1); exit 1; }; }
  2434. else
  2435. cat >conftest.$ac_ext <<_ACEOF
  2436. /* confdefs.h. */
  2437. _ACEOF
  2438. cat confdefs.h >>conftest.$ac_ext
  2439. cat >>conftest.$ac_ext <<_ACEOF
  2440. /* end confdefs.h. */
  2441. #include <boost/config.hpp>
  2442. #include "test.hpp"
  2443. #ifdef $macroname
  2444. #include "boost_$basename.ipp"
  2445. #else
  2446. namespace ${namespace} = empty_boost;
  2447. #endif
  2448. int main(){ return ${namespace}::test(); }
  2449. _ACEOF
  2450. rm -f conftest$ac_exeext
  2451. if { (ac_try="$ac_link"
  2452. case "(($ac_try" in
  2453. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2454. *) ac_try_echo=$ac_try;;
  2455. esac
  2456. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2457. (eval "$ac_link") 2>&5
  2458. ac_status=$?
  2459. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2460. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2461. { (case "(($ac_try" in
  2462. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2463. *) ac_try_echo=$ac_try;;
  2464. esac
  2465. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2466. (eval "$ac_try") 2>&5
  2467. ac_status=$?
  2468. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2469. (exit $ac_status); }; }; then
  2470. { echo "$as_me:$LINENO: result: OK" >&5
  2471. echo "${ECHO_T}OK" >&6; }
  2472. else
  2473. echo "$as_me: program exited with status $ac_status" >&5
  2474. echo "$as_me: failed program was:" >&5
  2475. sed 's/^/| /' conftest.$ac_ext >&5
  2476. ( exit $ac_status )
  2477. { echo "$as_me:$LINENO: result: Failed" >&5
  2478. echo "${ECHO_T}Failed" >&6; }
  2479. required_undefs="$macroname $required_undefs"
  2480. fi
  2481. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2482. fi
  2483. { echo "$as_me:$LINENO: checking $title (fail expected) " >&5
  2484. echo $ECHO_N "checking $title (fail expected) ... $ECHO_C" >&6; }
  2485. if test "$cross_compiling" = yes; then
  2486. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  2487. See \`config.log' for more details." >&5
  2488. echo "$as_me: error: cannot run test program while cross compiling
  2489. See \`config.log' for more details." >&2;}
  2490. { (exit 1); exit 1; }; }
  2491. else
  2492. cat >conftest.$ac_ext <<_ACEOF
  2493. /* confdefs.h. */
  2494. _ACEOF
  2495. cat confdefs.h >>conftest.$ac_ext
  2496. cat >>conftest.$ac_ext <<_ACEOF
  2497. /* end confdefs.h. */
  2498. #include <boost/config.hpp>
  2499. #include "test.hpp"
  2500. #ifndef $macroname
  2501. #include "boost_$basename.ipp"
  2502. #else
  2503. #error "this file should not compile"
  2504. #endif
  2505. int main(){ return ${namespace}::test(); }
  2506. _ACEOF
  2507. rm -f conftest$ac_exeext
  2508. if { (ac_try="$ac_link"
  2509. case "(($ac_try" in
  2510. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2511. *) ac_try_echo=$ac_try;;
  2512. esac
  2513. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2514. (eval "$ac_link") 2>&5
  2515. ac_status=$?
  2516. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2517. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2518. { (case "(($ac_try" in
  2519. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2520. *) ac_try_echo=$ac_try;;
  2521. esac
  2522. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2523. (eval "$ac_try") 2>&5
  2524. ac_status=$?
  2525. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2526. (exit $ac_status); }; }; then
  2527. { echo "$as_me:$LINENO: result: failed" >&5
  2528. echo "${ECHO_T}failed" >&6; }
  2529. required_defs="$macroname $required_defs"
  2530. else
  2531. echo "$as_me: program exited with status $ac_status" >&5
  2532. echo "$as_me: failed program was:" >&5
  2533. sed 's/^/| /' conftest.$ac_ext >&5
  2534. ( exit $ac_status )
  2535. { echo "$as_me:$LINENO: result: OK" >&5
  2536. echo "${ECHO_T}OK" >&6; }
  2537. fi
  2538. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2539. fi
  2540. else
  2541. ac_ext=$use_ac_ext
  2542. { echo "$as_me:$LINENO: checking $title" >&5
  2543. echo $ECHO_N "checking $title... $ECHO_C" >&6; }
  2544. if test "$cross_compiling" = yes; then
  2545. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  2546. See \`config.log' for more details." >&5
  2547. echo "$as_me: error: cannot run test program while cross compiling
  2548. See \`config.log' for more details." >&2;}
  2549. { (exit 1); exit 1; }; }
  2550. else
  2551. cat >conftest.$ac_ext <<_ACEOF
  2552. /* confdefs.h. */
  2553. _ACEOF
  2554. cat confdefs.h >>conftest.$ac_ext
  2555. cat >>conftest.$ac_ext <<_ACEOF
  2556. /* end confdefs.h. */
  2557. #include <boost/config.hpp>
  2558. #include "test.hpp"
  2559. #include "boost_$basename.ipp"
  2560. int main(){ return ${namespace}::test(); }
  2561. _ACEOF
  2562. rm -f conftest$ac_exeext
  2563. if { (ac_try="$ac_link"
  2564. case "(($ac_try" in
  2565. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2566. *) ac_try_echo=$ac_try;;
  2567. esac
  2568. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2569. (eval "$ac_link") 2>&5
  2570. ac_status=$?
  2571. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2572. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2573. { (case "(($ac_try" in
  2574. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2575. *) ac_try_echo=$ac_try;;
  2576. esac
  2577. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2578. (eval "$ac_try") 2>&5
  2579. ac_status=$?
  2580. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2581. (exit $ac_status); }; }; then
  2582. { echo "$as_me:$LINENO: result: Yes" >&5
  2583. echo "${ECHO_T}Yes" >&6; }
  2584. required_defs="$macroname $required_defs"
  2585. else
  2586. echo "$as_me: program exited with status $ac_status" >&5
  2587. echo "$as_me: failed program was:" >&5
  2588. sed 's/^/| /' conftest.$ac_ext >&5
  2589. ( exit $ac_status )
  2590. { echo "$as_me:$LINENO: result: no" >&5
  2591. echo "${ECHO_T}no" >&6; }
  2592. fi
  2593. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2594. fi
  2595. fi
  2596. done
  2597. #echo $required_defs
  2598. #echo $required_undefs
  2599. if test $enable_test = 'yes'; then
  2600. if test "$required_defs" = ""; then
  2601. echo no boost macros need to be defined
  2602. echo no boost macros need to be defined >&5
  2603. else
  2604. echo the following macros need to be defined
  2605. echo $required_defs
  2606. echo the following macros need to be defined >&5
  2607. echo $required_defs >&5
  2608. fi
  2609. if test "$required_undefs" = ""; then
  2610. echo no boost macros need to be undefined
  2611. echo no boost macros need to be undefined >&5
  2612. else
  2613. echo "the following macros need to be undef'ed"
  2614. echo $required_undefs
  2615. echo "the following macros need to be undef'ed" >&5
  2616. echo $required_undefs >&5
  2617. fi
  2618. else
  2619. date_string=`date`
  2620. echo boost_base=$boost_base
  2621. cat > user.hpp << EOF
  2622. // (C) Copyright Boost.org 2001.
  2623. // Do not check in modified versions of this file,
  2624. // This file may be customised by the end user, but not by boost.
  2625. //
  2626. // Use this file to define a site and compiler specific
  2627. // configuration policy, this version was auto-generated by
  2628. // configure on ${date_string}
  2629. // With the following options:
  2630. // CXX = ${CXX}
  2631. // CXXFLAGS = ${CXXFLAGS}
  2632. // LDFLAGS = ${LDFLAGS}
  2633. // LIBS = ${LIBS}
  2634. //
  2635. // define this to disable all config options,
  2636. // excluding the user config. Use if your
  2637. // setup is fully ISO complient, and has no
  2638. // useful extentions, or for autoconf generated
  2639. // setups:
  2640. #ifndef BOOST_NO_CONFIG
  2641. # define BOOST_NO_CONFIG
  2642. #endif
  2643. // define if you want to disable threading support, even
  2644. // when available:
  2645. // #define BOOST_DISABLE_THREADS
  2646. // define if you want the regex library to use the C locale
  2647. // even on Win32:
  2648. // #define BOOST_REGEX_USE_C_LOCALE
  2649. // define this is you want the regex library to use the C++
  2650. // locale:
  2651. // #define BOOST_REGEX_USE_CPP_LOCALE
  2652. //
  2653. // options added by configure:
  2654. //
  2655. EOF
  2656. for name in $required_defs; do
  2657. echo '#define '"$name" >> user.hpp
  2658. done
  2659. cat_conts=`cat user.hpp`
  2660. #
  2661. # post configuration step:
  2662. #
  2663. { echo "$as_me:$LINENO: checking original configuration " >&5
  2664. echo $ECHO_N "checking original configuration ... $ECHO_C" >&6; }
  2665. rm -f conftest$ac_exeext
  2666. $CXX -I$boost_base $OLD_CXXFLAGS -DBOOST_NO_USER_CONFIG -o conftest$ac_exeext $LDFLAGS $boost_base/libs/config/test/config_info.cpp $LIBS >&5 2>&1
  2667. ./conftest >&5 2>&1
  2668. { echo "$as_me:$LINENO: result: done" >&5
  2669. echo "${ECHO_T}done" >&6; }
  2670. { echo "$as_me:$LINENO: checking new configuration " >&5
  2671. echo $ECHO_N "checking new configuration ... $ECHO_C" >&6; }
  2672. rm -f conftest$ac_exeext
  2673. $CXX -I$boost_base -I$boost_base/libs/config $OLD_CXXFLAGS -DBOOST_USER_CONFIG='"user.hpp"' -o conftest$ac_exeext $LDFLAGS $boost_base/libs/config/test/config_info.cpp $LIBS >&5 2>&1
  2674. ./conftest >&5 2>&1
  2675. { echo "$as_me:$LINENO: result: done" >&5
  2676. echo "${ECHO_T}done" >&6; }
  2677. ac_config_commands="$ac_config_commands default"
  2678. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  2679. # Let make expand exec_prefix.
  2680. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  2681. # Transform confdefs.h into DEFS.
  2682. # Protect against shell expansion while executing Makefile rules.
  2683. # Protect against Makefile macro expansion.
  2684. #
  2685. # If the first sed substitution is executed (which looks for macros that
  2686. # take arguments), then branch to the quote section. Otherwise,
  2687. # look for a macro that doesn't take arguments.
  2688. ac_script='
  2689. t clear
  2690. :clear
  2691. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  2692. t quote
  2693. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  2694. t quote
  2695. b any
  2696. :quote
  2697. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  2698. s/\[/\\&/g
  2699. s/\]/\\&/g
  2700. s/\$/$$/g
  2701. H
  2702. :any
  2703. ${
  2704. g
  2705. s/^\n//
  2706. s/\n/ /g
  2707. p
  2708. }
  2709. '
  2710. DEFS=`sed -n "$ac_script" confdefs.h`
  2711. ac_libobjs=
  2712. ac_ltlibobjs=
  2713. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  2714. # 1. Remove the extension, and $U if already installed.
  2715. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  2716. ac_i=`echo "$ac_i" | sed "$ac_script"`
  2717. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  2718. # will be set to the directory where LIBOBJS objects are built.
  2719. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  2720. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  2721. done
  2722. LIBOBJS=$ac_libobjs
  2723. LTLIBOBJS=$ac_ltlibobjs
  2724. : ${CONFIG_STATUS=./config.status}
  2725. ac_clean_files_save=$ac_clean_files
  2726. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  2727. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  2728. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  2729. cat >$CONFIG_STATUS <<_ACEOF
  2730. #! $SHELL
  2731. # Generated by $as_me.
  2732. # Run this file to recreate the current configuration.
  2733. # Compiler output produced by configure, useful for debugging
  2734. # configure, is in config.log if it exists.
  2735. debug=false
  2736. ac_cs_recheck=false
  2737. ac_cs_silent=false
  2738. SHELL=\${CONFIG_SHELL-$SHELL}
  2739. _ACEOF
  2740. cat >>$CONFIG_STATUS <<\_ACEOF
  2741. ## --------------------- ##
  2742. ## M4sh Initialization. ##
  2743. ## --------------------- ##
  2744. # Be more Bourne compatible
  2745. DUALCASE=1; export DUALCASE # for MKS sh
  2746. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  2747. emulate sh
  2748. NULLCMD=:
  2749. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  2750. # is contrary to our usage. Disable this feature.
  2751. alias -g '${1+"$@"}'='"$@"'
  2752. setopt NO_GLOB_SUBST
  2753. else
  2754. case `(set -o) 2>/dev/null` in
  2755. *posix*) set -o posix ;;
  2756. esac
  2757. fi
  2758. # PATH needs CR
  2759. # Avoid depending upon Character Ranges.
  2760. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  2761. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  2762. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  2763. as_cr_digits='0123456789'
  2764. as_cr_alnum=$as_cr_Letters$as_cr_digits
  2765. # The user is always right.
  2766. if test "${PATH_SEPARATOR+set}" != set; then
  2767. echo "#! /bin/sh" >conf$$.sh
  2768. echo "exit 0" >>conf$$.sh
  2769. chmod +x conf$$.sh
  2770. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  2771. PATH_SEPARATOR=';'
  2772. else
  2773. PATH_SEPARATOR=:
  2774. fi
  2775. rm -f conf$$.sh
  2776. fi
  2777. # Support unset when possible.
  2778. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  2779. as_unset=unset
  2780. else
  2781. as_unset=false
  2782. fi
  2783. # IFS
  2784. # We need space, tab and new line, in precisely that order. Quoting is
  2785. # there to prevent editors from complaining about space-tab.
  2786. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  2787. # splitting by setting IFS to empty value.)
  2788. as_nl='
  2789. '
  2790. IFS=" "" $as_nl"
  2791. # Find who we are. Look in the path if we contain no directory separator.
  2792. case $0 in
  2793. *[\\/]* ) as_myself=$0 ;;
  2794. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2795. for as_dir in $PATH
  2796. do
  2797. IFS=$as_save_IFS
  2798. test -z "$as_dir" && as_dir=.
  2799. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  2800. done
  2801. IFS=$as_save_IFS
  2802. ;;
  2803. esac
  2804. # We did not find ourselves, most probably we were run as `sh COMMAND'
  2805. # in which case we are not to be found in the path.
  2806. if test "x$as_myself" = x; then
  2807. as_myself=$0
  2808. fi
  2809. if test ! -f "$as_myself"; then
  2810. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  2811. { (exit 1); exit 1; }
  2812. fi
  2813. # Work around bugs in pre-3.0 UWIN ksh.
  2814. for as_var in ENV MAIL MAILPATH
  2815. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  2816. done
  2817. PS1='$ '
  2818. PS2='> '
  2819. PS4='+ '
  2820. # NLS nuisances.
  2821. for as_var in \
  2822. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  2823. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  2824. LC_TELEPHONE LC_TIME
  2825. do
  2826. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  2827. eval $as_var=C; export $as_var
  2828. else
  2829. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  2830. fi
  2831. done
  2832. # Required to use basename.
  2833. if expr a : '\(a\)' >/dev/null 2>&1 &&
  2834. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  2835. as_expr=expr
  2836. else
  2837. as_expr=false
  2838. fi
  2839. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  2840. as_basename=basename
  2841. else
  2842. as_basename=false
  2843. fi
  2844. # Name of the executable.
  2845. as_me=`$as_basename -- "$0" ||
  2846. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  2847. X"$0" : 'X\(//\)$' \| \
  2848. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  2849. echo X/"$0" |
  2850. sed '/^.*\/\([^/][^/]*\)\/*$/{
  2851. s//\1/
  2852. q
  2853. }
  2854. /^X\/\(\/\/\)$/{
  2855. s//\1/
  2856. q
  2857. }
  2858. /^X\/\(\/\).*/{
  2859. s//\1/
  2860. q
  2861. }
  2862. s/.*/./; q'`
  2863. # CDPATH.
  2864. $as_unset CDPATH
  2865. as_lineno_1=$LINENO
  2866. as_lineno_2=$LINENO
  2867. test "x$as_lineno_1" != "x$as_lineno_2" &&
  2868. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  2869. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  2870. # uniformly replaced by the line number. The first 'sed' inserts a
  2871. # line-number line after each line using $LINENO; the second 'sed'
  2872. # does the real work. The second script uses 'N' to pair each
  2873. # line-number line with the line containing $LINENO, and appends
  2874. # trailing '-' during substitution so that $LINENO is not a special
  2875. # case at line end.
  2876. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  2877. # scripts with optimization help from Paolo Bonzini. Blame Lee
  2878. # E. McMahon (1931-1989) for sed's syntax. :-)
  2879. sed -n '
  2880. p
  2881. /[$]LINENO/=
  2882. ' <$as_myself |
  2883. sed '
  2884. s/[$]LINENO.*/&-/
  2885. t lineno
  2886. b
  2887. :lineno
  2888. N
  2889. :loop
  2890. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  2891. t loop
  2892. s/-\n.*//
  2893. ' >$as_me.lineno &&
  2894. chmod +x "$as_me.lineno" ||
  2895. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  2896. { (exit 1); exit 1; }; }
  2897. # Don't try to exec as it changes $[0], causing all sort of problems
  2898. # (the dirname of $[0] is not the place where we might find the
  2899. # original and so on. Autoconf is especially sensitive to this).
  2900. . "./$as_me.lineno"
  2901. # Exit status is that of the last command.
  2902. exit
  2903. }
  2904. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  2905. as_dirname=dirname
  2906. else
  2907. as_dirname=false
  2908. fi
  2909. ECHO_C= ECHO_N= ECHO_T=
  2910. case `echo -n x` in
  2911. -n*)
  2912. case `echo 'x\c'` in
  2913. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  2914. *) ECHO_C='\c';;
  2915. esac;;
  2916. *)
  2917. ECHO_N='-n';;
  2918. esac
  2919. if expr a : '\(a\)' >/dev/null 2>&1 &&
  2920. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  2921. as_expr=expr
  2922. else
  2923. as_expr=false
  2924. fi
  2925. rm -f conf$$ conf$$.exe conf$$.file
  2926. if test -d conf$$.dir; then
  2927. rm -f conf$$.dir/conf$$.file
  2928. else
  2929. rm -f conf$$.dir
  2930. mkdir conf$$.dir
  2931. fi
  2932. echo >conf$$.file
  2933. if ln -s conf$$.file conf$$ 2>/dev/null; then
  2934. as_ln_s='ln -s'
  2935. # ... but there are two gotchas:
  2936. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  2937. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  2938. # In both cases, we have to default to `cp -p'.
  2939. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  2940. as_ln_s='cp -p'
  2941. elif ln conf$$.file conf$$ 2>/dev/null; then
  2942. as_ln_s=ln
  2943. else
  2944. as_ln_s='cp -p'
  2945. fi
  2946. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  2947. rmdir conf$$.dir 2>/dev/null
  2948. if mkdir -p . 2>/dev/null; then
  2949. as_mkdir_p=:
  2950. else
  2951. test -d ./-p && rmdir ./-p
  2952. as_mkdir_p=false
  2953. fi
  2954. if test -x / >/dev/null 2>&1; then
  2955. as_test_x='test -x'
  2956. else
  2957. if ls -dL / >/dev/null 2>&1; then
  2958. as_ls_L_option=L
  2959. else
  2960. as_ls_L_option=
  2961. fi
  2962. as_test_x='
  2963. eval sh -c '\''
  2964. if test -d "$1"; then
  2965. test -d "$1/.";
  2966. else
  2967. case $1 in
  2968. -*)set "./$1";;
  2969. esac;
  2970. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  2971. ???[sx]*):;;*)false;;esac;fi
  2972. '\'' sh
  2973. '
  2974. fi
  2975. as_executable_p=$as_test_x
  2976. # Sed expression to map a string onto a valid CPP name.
  2977. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  2978. # Sed expression to map a string onto a valid variable name.
  2979. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  2980. exec 6>&1
  2981. # Save the log message, to keep $[0] and so on meaningful, and to
  2982. # report actual input values of CONFIG_FILES etc. instead of their
  2983. # values after options handling.
  2984. ac_log="
  2985. This file was extended by $as_me, which was
  2986. generated by GNU Autoconf 2.61. Invocation command line was
  2987. CONFIG_FILES = $CONFIG_FILES
  2988. CONFIG_HEADERS = $CONFIG_HEADERS
  2989. CONFIG_LINKS = $CONFIG_LINKS
  2990. CONFIG_COMMANDS = $CONFIG_COMMANDS
  2991. $ $0 $@
  2992. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  2993. "
  2994. _ACEOF
  2995. cat >>$CONFIG_STATUS <<_ACEOF
  2996. # Files that config.status was made for.
  2997. config_commands="$ac_config_commands"
  2998. _ACEOF
  2999. cat >>$CONFIG_STATUS <<\_ACEOF
  3000. ac_cs_usage="\
  3001. \`$as_me' instantiates files from templates according to the
  3002. current configuration.
  3003. Usage: $0 [OPTIONS] [FILE]...
  3004. -h, --help print this help, then exit
  3005. -V, --version print version number and configuration settings, then exit
  3006. -q, --quiet do not print progress messages
  3007. -d, --debug don't remove temporary files
  3008. --recheck update $as_me by reconfiguring in the same conditions
  3009. Configuration commands:
  3010. $config_commands
  3011. Report bugs to <bug-autoconf@gnu.org>."
  3012. _ACEOF
  3013. cat >>$CONFIG_STATUS <<_ACEOF
  3014. ac_cs_version="\\
  3015. config.status
  3016. configured by $0, generated by GNU Autoconf 2.61,
  3017. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  3018. Copyright (C) 2006 Free Software Foundation, Inc.
  3019. This config.status script is free software; the Free Software Foundation
  3020. gives unlimited permission to copy, distribute and modify it."
  3021. ac_pwd='$ac_pwd'
  3022. srcdir='$srcdir'
  3023. _ACEOF
  3024. cat >>$CONFIG_STATUS <<\_ACEOF
  3025. # If no file are specified by the user, then we need to provide default
  3026. # value. By we need to know if files were specified by the user.
  3027. ac_need_defaults=:
  3028. while test $# != 0
  3029. do
  3030. case $1 in
  3031. --*=*)
  3032. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  3033. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  3034. ac_shift=:
  3035. ;;
  3036. *)
  3037. ac_option=$1
  3038. ac_optarg=$2
  3039. ac_shift=shift
  3040. ;;
  3041. esac
  3042. case $ac_option in
  3043. # Handling of the options.
  3044. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  3045. ac_cs_recheck=: ;;
  3046. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  3047. echo "$ac_cs_version"; exit ;;
  3048. --debug | --debu | --deb | --de | --d | -d )
  3049. debug=: ;;
  3050. --he | --h | --help | --hel | -h )
  3051. echo "$ac_cs_usage"; exit ;;
  3052. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  3053. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  3054. ac_cs_silent=: ;;
  3055. # This is an error.
  3056. -*) { echo "$as_me: error: unrecognized option: $1
  3057. Try \`$0 --help' for more information." >&2
  3058. { (exit 1); exit 1; }; } ;;
  3059. *) ac_config_targets="$ac_config_targets $1"
  3060. ac_need_defaults=false ;;
  3061. esac
  3062. shift
  3063. done
  3064. ac_configure_extra_args=
  3065. if $ac_cs_silent; then
  3066. exec 6>/dev/null
  3067. ac_configure_extra_args="$ac_configure_extra_args --silent"
  3068. fi
  3069. _ACEOF
  3070. cat >>$CONFIG_STATUS <<_ACEOF
  3071. if \$ac_cs_recheck; then
  3072. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  3073. CONFIG_SHELL=$SHELL
  3074. export CONFIG_SHELL
  3075. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  3076. fi
  3077. _ACEOF
  3078. cat >>$CONFIG_STATUS <<\_ACEOF
  3079. exec 5>>config.log
  3080. {
  3081. echo
  3082. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  3083. ## Running $as_me. ##
  3084. _ASBOX
  3085. echo "$ac_log"
  3086. } >&5
  3087. _ACEOF
  3088. cat >>$CONFIG_STATUS <<_ACEOF
  3089. #
  3090. # INIT-COMMANDS
  3091. #
  3092. cat_conts="$cat_conts"
  3093. _ACEOF
  3094. cat >>$CONFIG_STATUS <<\_ACEOF
  3095. # Handling of arguments.
  3096. for ac_config_target in $ac_config_targets
  3097. do
  3098. case $ac_config_target in
  3099. "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
  3100. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  3101. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  3102. { (exit 1); exit 1; }; };;
  3103. esac
  3104. done
  3105. # If the user did not use the arguments to specify the items to instantiate,
  3106. # then the envvar interface is used. Set only those that are not.
  3107. # We use the long form for the default assignment because of an extremely
  3108. # bizarre bug on SunOS 4.1.3.
  3109. if $ac_need_defaults; then
  3110. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  3111. fi
  3112. # Have a temporary directory for convenience. Make it in the build tree
  3113. # simply because there is no reason against having it here, and in addition,
  3114. # creating and moving files from /tmp can sometimes cause problems.
  3115. # Hook for its removal unless debugging.
  3116. # Note that there is a small window in which the directory will not be cleaned:
  3117. # after its creation but before its name has been assigned to `$tmp'.
  3118. $debug ||
  3119. {
  3120. tmp=
  3121. trap 'exit_status=$?
  3122. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  3123. ' 0
  3124. trap '{ (exit 1); exit 1; }' 1 2 13 15
  3125. }
  3126. # Create a (secure) tmp directory for tmp files.
  3127. {
  3128. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  3129. test -n "$tmp" && test -d "$tmp"
  3130. } ||
  3131. {
  3132. tmp=./conf$$-$RANDOM
  3133. (umask 077 && mkdir "$tmp")
  3134. } ||
  3135. {
  3136. echo "$me: cannot create a temporary directory in ." >&2
  3137. { (exit 1); exit 1; }
  3138. }
  3139. for ac_tag in :C $CONFIG_COMMANDS
  3140. do
  3141. case $ac_tag in
  3142. :[FHLC]) ac_mode=$ac_tag; continue;;
  3143. esac
  3144. case $ac_mode$ac_tag in
  3145. :[FHL]*:*);;
  3146. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  3147. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  3148. { (exit 1); exit 1; }; };;
  3149. :[FH]-) ac_tag=-:-;;
  3150. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  3151. esac
  3152. ac_save_IFS=$IFS
  3153. IFS=:
  3154. set x $ac_tag
  3155. IFS=$ac_save_IFS
  3156. shift
  3157. ac_file=$1
  3158. shift
  3159. case $ac_mode in
  3160. :L) ac_source=$1;;
  3161. :[FH])
  3162. ac_file_inputs=
  3163. for ac_f
  3164. do
  3165. case $ac_f in
  3166. -) ac_f="$tmp/stdin";;
  3167. *) # Look for the file first in the build tree, then in the source tree
  3168. # (if the path is not absolute). The absolute path cannot be DOS-style,
  3169. # because $ac_f cannot contain `:'.
  3170. test -f "$ac_f" ||
  3171. case $ac_f in
  3172. [\\/$]*) false;;
  3173. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  3174. esac ||
  3175. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  3176. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  3177. { (exit 1); exit 1; }; };;
  3178. esac
  3179. ac_file_inputs="$ac_file_inputs $ac_f"
  3180. done
  3181. # Let's still pretend it is `configure' which instantiates (i.e., don't
  3182. # use $as_me), people would be surprised to read:
  3183. # /* config.h. Generated by config.status. */
  3184. configure_input="Generated from "`IFS=:
  3185. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  3186. if test x"$ac_file" != x-; then
  3187. configure_input="$ac_file. $configure_input"
  3188. { echo "$as_me:$LINENO: creating $ac_file" >&5
  3189. echo "$as_me: creating $ac_file" >&6;}
  3190. fi
  3191. case $ac_tag in
  3192. *:-:* | *:-) cat >"$tmp/stdin";;
  3193. esac
  3194. ;;
  3195. esac
  3196. ac_dir=`$as_dirname -- "$ac_file" ||
  3197. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  3198. X"$ac_file" : 'X\(//\)[^/]' \| \
  3199. X"$ac_file" : 'X\(//\)$' \| \
  3200. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  3201. echo X"$ac_file" |
  3202. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  3203. s//\1/
  3204. q
  3205. }
  3206. /^X\(\/\/\)[^/].*/{
  3207. s//\1/
  3208. q
  3209. }
  3210. /^X\(\/\/\)$/{
  3211. s//\1/
  3212. q
  3213. }
  3214. /^X\(\/\).*/{
  3215. s//\1/
  3216. q
  3217. }
  3218. s/.*/./; q'`
  3219. { as_dir="$ac_dir"
  3220. case $as_dir in #(
  3221. -*) as_dir=./$as_dir;;
  3222. esac
  3223. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  3224. as_dirs=
  3225. while :; do
  3226. case $as_dir in #(
  3227. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  3228. *) as_qdir=$as_dir;;
  3229. esac
  3230. as_dirs="'$as_qdir' $as_dirs"
  3231. as_dir=`$as_dirname -- "$as_dir" ||
  3232. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  3233. X"$as_dir" : 'X\(//\)[^/]' \| \
  3234. X"$as_dir" : 'X\(//\)$' \| \
  3235. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  3236. echo X"$as_dir" |
  3237. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  3238. s//\1/
  3239. q
  3240. }
  3241. /^X\(\/\/\)[^/].*/{
  3242. s//\1/
  3243. q
  3244. }
  3245. /^X\(\/\/\)$/{
  3246. s//\1/
  3247. q
  3248. }
  3249. /^X\(\/\).*/{
  3250. s//\1/
  3251. q
  3252. }
  3253. s/.*/./; q'`
  3254. test -d "$as_dir" && break
  3255. done
  3256. test -z "$as_dirs" || eval "mkdir $as_dirs"
  3257. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  3258. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  3259. { (exit 1); exit 1; }; }; }
  3260. ac_builddir=.
  3261. case "$ac_dir" in
  3262. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  3263. *)
  3264. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  3265. # A ".." for each directory in $ac_dir_suffix.
  3266. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  3267. case $ac_top_builddir_sub in
  3268. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  3269. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  3270. esac ;;
  3271. esac
  3272. ac_abs_top_builddir=$ac_pwd
  3273. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  3274. # for backward compatibility:
  3275. ac_top_builddir=$ac_top_build_prefix
  3276. case $srcdir in
  3277. .) # We are building in place.
  3278. ac_srcdir=.
  3279. ac_top_srcdir=$ac_top_builddir_sub
  3280. ac_abs_top_srcdir=$ac_pwd ;;
  3281. [\\/]* | ?:[\\/]* ) # Absolute name.
  3282. ac_srcdir=$srcdir$ac_dir_suffix;
  3283. ac_top_srcdir=$srcdir
  3284. ac_abs_top_srcdir=$srcdir ;;
  3285. *) # Relative name.
  3286. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  3287. ac_top_srcdir=$ac_top_build_prefix$srcdir
  3288. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  3289. esac
  3290. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  3291. case $ac_mode in
  3292. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  3293. echo "$as_me: executing $ac_file commands" >&6;}
  3294. ;;
  3295. esac
  3296. case $ac_file$ac_mode in
  3297. "default":C)
  3298. cat > user.hpp << EEEOF
  3299. ${cat_conts}
  3300. EEEOF
  3301. cat << EEEOF
  3302. Adjustments to boost configuration have been written to
  3303. user.hpp. Copy this to boost/config/user.hpp to use "as is",
  3304. or define BOOST_SITE_CONFIG to point to its location.
  3305. TREAT THIS FILE WITH CARE.
  3306. Autoconf generated options are not infallible!
  3307. EEEOF
  3308. ;;
  3309. esac
  3310. done # for ac_tag
  3311. { (exit 0); exit 0; }
  3312. _ACEOF
  3313. chmod +x $CONFIG_STATUS
  3314. ac_clean_files=$ac_clean_files_save
  3315. # configure is writing to config.log, and then calls config.status.
  3316. # config.status does its own redirection, appending to config.log.
  3317. # Unfortunately, on DOS this fails, as config.log is still kept open
  3318. # by configure, so config.status won't be able to write to it; its
  3319. # output is simply discarded. So we exec the FD to /dev/null,
  3320. # effectively closing config.log, so it can be properly (re)opened and
  3321. # appended to by config.status. When coming back to configure, we
  3322. # need to make the FD available again.
  3323. if test "$no_create" != yes; then
  3324. ac_cs_success=:
  3325. ac_config_status_args=
  3326. test "$silent" = yes &&
  3327. ac_config_status_args="$ac_config_status_args --quiet"
  3328. exec 5>/dev/null
  3329. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  3330. exec 5>>config.log
  3331. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  3332. # would make configure fail if this is the last instruction.
  3333. $ac_cs_success || { (exit 1); exit 1; }
  3334. fi
  3335. fi