configure 155 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test \$(( 1 + 1 )) = 2 || exit 1"
  186. if (eval "$as_required") 2>/dev/null; then :
  187. as_have_required=yes
  188. else
  189. as_have_required=no
  190. fi
  191. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  192. else
  193. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  194. as_found=false
  195. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  196. do
  197. IFS=$as_save_IFS
  198. test -z "$as_dir" && as_dir=.
  199. as_found=:
  200. case $as_dir in #(
  201. /*)
  202. for as_base in sh bash ksh sh5; do
  203. # Try only shells that exist, to save several forks.
  204. as_shell=$as_dir/$as_base
  205. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  206. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  207. CONFIG_SHELL=$as_shell as_have_required=yes
  208. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  209. break 2
  210. fi
  211. fi
  212. done;;
  213. esac
  214. as_found=false
  215. done
  216. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  217. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  218. CONFIG_SHELL=$SHELL as_have_required=yes
  219. fi; }
  220. IFS=$as_save_IFS
  221. if test "x$CONFIG_SHELL" != x; then :
  222. export CONFIG_SHELL
  223. # We cannot yet assume a decent shell, so we have to provide a
  224. # neutralization value for shells without unset; and this also
  225. # works around shells that cannot unset nonexistent variables.
  226. # Preserve -v and -x to the replacement shell.
  227. BASH_ENV=/dev/null
  228. ENV=/dev/null
  229. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  230. case $- in # ((((
  231. *v*x* | *x*v* ) as_opts=-vx ;;
  232. *v* ) as_opts=-v ;;
  233. *x* ) as_opts=-x ;;
  234. * ) as_opts= ;;
  235. esac
  236. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  237. # Admittedly, this is quite paranoid, since all the known shells bail
  238. # out after a failed `exec'.
  239. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  240. exit 255
  241. fi
  242. if test x$as_have_required = xno; then :
  243. $as_echo "$0: This script requires a shell more modern than all"
  244. $as_echo "$0: the shells that I found on your system."
  245. if test x${ZSH_VERSION+set} = xset ; then
  246. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  247. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  248. else
  249. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  250. $0: including any error possibly output before this
  251. $0: message. Then install a modern shell, or manually run
  252. $0: the script under such a shell if you do have one."
  253. fi
  254. exit 1
  255. fi
  256. fi
  257. fi
  258. SHELL=${CONFIG_SHELL-/bin/sh}
  259. export SHELL
  260. # Unset more variables known to interfere with behavior of common tools.
  261. CLICOLOR_FORCE= GREP_OPTIONS=
  262. unset CLICOLOR_FORCE GREP_OPTIONS
  263. ## --------------------- ##
  264. ## M4sh Shell Functions. ##
  265. ## --------------------- ##
  266. # as_fn_unset VAR
  267. # ---------------
  268. # Portably unset VAR.
  269. as_fn_unset ()
  270. {
  271. { eval $1=; unset $1;}
  272. }
  273. as_unset=as_fn_unset
  274. # as_fn_set_status STATUS
  275. # -----------------------
  276. # Set $? to STATUS, without forking.
  277. as_fn_set_status ()
  278. {
  279. return $1
  280. } # as_fn_set_status
  281. # as_fn_exit STATUS
  282. # -----------------
  283. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  284. as_fn_exit ()
  285. {
  286. set +e
  287. as_fn_set_status $1
  288. exit $1
  289. } # as_fn_exit
  290. # as_fn_mkdir_p
  291. # -------------
  292. # Create "$as_dir" as a directory, including parents if necessary.
  293. as_fn_mkdir_p ()
  294. {
  295. case $as_dir in #(
  296. -*) as_dir=./$as_dir;;
  297. esac
  298. test -d "$as_dir" || eval $as_mkdir_p || {
  299. as_dirs=
  300. while :; do
  301. case $as_dir in #(
  302. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  303. *) as_qdir=$as_dir;;
  304. esac
  305. as_dirs="'$as_qdir' $as_dirs"
  306. as_dir=`$as_dirname -- "$as_dir" ||
  307. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  308. X"$as_dir" : 'X\(//\)[^/]' \| \
  309. X"$as_dir" : 'X\(//\)$' \| \
  310. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  311. $as_echo X"$as_dir" |
  312. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  313. s//\1/
  314. q
  315. }
  316. /^X\(\/\/\)[^/].*/{
  317. s//\1/
  318. q
  319. }
  320. /^X\(\/\/\)$/{
  321. s//\1/
  322. q
  323. }
  324. /^X\(\/\).*/{
  325. s//\1/
  326. q
  327. }
  328. s/.*/./; q'`
  329. test -d "$as_dir" && break
  330. done
  331. test -z "$as_dirs" || eval "mkdir $as_dirs"
  332. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  333. } # as_fn_mkdir_p
  334. # as_fn_executable_p FILE
  335. # -----------------------
  336. # Test if FILE is an executable regular file.
  337. as_fn_executable_p ()
  338. {
  339. test -f "$1" && test -x "$1"
  340. } # as_fn_executable_p
  341. # as_fn_append VAR VALUE
  342. # ----------------------
  343. # Append the text in VALUE to the end of the definition contained in VAR. Take
  344. # advantage of any shell optimizations that allow amortized linear growth over
  345. # repeated appends, instead of the typical quadratic growth present in naive
  346. # implementations.
  347. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  348. eval 'as_fn_append ()
  349. {
  350. eval $1+=\$2
  351. }'
  352. else
  353. as_fn_append ()
  354. {
  355. eval $1=\$$1\$2
  356. }
  357. fi # as_fn_append
  358. # as_fn_arith ARG...
  359. # ------------------
  360. # Perform arithmetic evaluation on the ARGs, and store the result in the
  361. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  362. # must be portable across $(()) and expr.
  363. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  364. eval 'as_fn_arith ()
  365. {
  366. as_val=$(( $* ))
  367. }'
  368. else
  369. as_fn_arith ()
  370. {
  371. as_val=`expr "$@" || test $? -eq 1`
  372. }
  373. fi # as_fn_arith
  374. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  375. # ----------------------------------------
  376. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  377. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  378. # script with STATUS, using 1 if that was 0.
  379. as_fn_error ()
  380. {
  381. as_status=$1; test $as_status -eq 0 && as_status=1
  382. if test "$4"; then
  383. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  384. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  385. fi
  386. $as_echo "$as_me: error: $2" >&2
  387. as_fn_exit $as_status
  388. } # as_fn_error
  389. if expr a : '\(a\)' >/dev/null 2>&1 &&
  390. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  391. as_expr=expr
  392. else
  393. as_expr=false
  394. fi
  395. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  396. as_basename=basename
  397. else
  398. as_basename=false
  399. fi
  400. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  401. as_dirname=dirname
  402. else
  403. as_dirname=false
  404. fi
  405. as_me=`$as_basename -- "$0" ||
  406. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  407. X"$0" : 'X\(//\)$' \| \
  408. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  409. $as_echo X/"$0" |
  410. sed '/^.*\/\([^/][^/]*\)\/*$/{
  411. s//\1/
  412. q
  413. }
  414. /^X\/\(\/\/\)$/{
  415. s//\1/
  416. q
  417. }
  418. /^X\/\(\/\).*/{
  419. s//\1/
  420. q
  421. }
  422. s/.*/./; q'`
  423. # Avoid depending upon Character Ranges.
  424. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  425. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  426. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  427. as_cr_digits='0123456789'
  428. as_cr_alnum=$as_cr_Letters$as_cr_digits
  429. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  430. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  431. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  432. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  433. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  434. sed -n '
  435. p
  436. /[$]LINENO/=
  437. ' <$as_myself |
  438. sed '
  439. s/[$]LINENO.*/&-/
  440. t lineno
  441. b
  442. :lineno
  443. N
  444. :loop
  445. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  446. t loop
  447. s/-\n.*//
  448. ' >$as_me.lineno &&
  449. chmod +x "$as_me.lineno" ||
  450. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  451. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  452. # already done that, so ensure we don't try to do so again and fall
  453. # in an infinite loop. This has already happened in practice.
  454. _as_can_reexec=no; export _as_can_reexec
  455. # Don't try to exec as it changes $[0], causing all sort of problems
  456. # (the dirname of $[0] is not the place where we might find the
  457. # original and so on. Autoconf is especially sensitive to this).
  458. . "./$as_me.lineno"
  459. # Exit status is that of the last command.
  460. exit
  461. }
  462. ECHO_C= ECHO_N= ECHO_T=
  463. case `echo -n x` in #(((((
  464. -n*)
  465. case `echo 'xy\c'` in
  466. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  467. xy) ECHO_C='\c';;
  468. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  469. ECHO_T=' ';;
  470. esac;;
  471. *)
  472. ECHO_N='-n';;
  473. esac
  474. rm -f conf$$ conf$$.exe conf$$.file
  475. if test -d conf$$.dir; then
  476. rm -f conf$$.dir/conf$$.file
  477. else
  478. rm -f conf$$.dir
  479. mkdir conf$$.dir 2>/dev/null
  480. fi
  481. if (echo >conf$$.file) 2>/dev/null; then
  482. if ln -s conf$$.file conf$$ 2>/dev/null; then
  483. as_ln_s='ln -s'
  484. # ... but there are two gotchas:
  485. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  486. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  487. # In both cases, we have to default to `cp -pR'.
  488. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  489. as_ln_s='cp -pR'
  490. elif ln conf$$.file conf$$ 2>/dev/null; then
  491. as_ln_s=ln
  492. else
  493. as_ln_s='cp -pR'
  494. fi
  495. else
  496. as_ln_s='cp -pR'
  497. fi
  498. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  499. rmdir conf$$.dir 2>/dev/null
  500. if mkdir -p . 2>/dev/null; then
  501. as_mkdir_p='mkdir -p "$as_dir"'
  502. else
  503. test -d ./-p && rmdir ./-p
  504. as_mkdir_p=false
  505. fi
  506. as_test_x='test -x'
  507. as_executable_p=as_fn_executable_p
  508. # Sed expression to map a string onto a valid CPP name.
  509. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  510. # Sed expression to map a string onto a valid variable name.
  511. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  512. test -n "$DJDIR" || exec 7<&0 </dev/null
  513. exec 6>&1
  514. # Name of the host.
  515. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  516. # so uname gets run too.
  517. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  518. #
  519. # Initializations.
  520. #
  521. ac_default_prefix=/usr/local
  522. ac_clean_files=
  523. ac_config_libobj_dir=.
  524. LIBOBJS=
  525. cross_compiling=no
  526. subdirs=
  527. MFLAGS=
  528. MAKEFLAGS=
  529. # Identity of this package.
  530. PACKAGE_NAME=
  531. PACKAGE_TARNAME=
  532. PACKAGE_VERSION=
  533. PACKAGE_STRING=
  534. PACKAGE_BUGREPORT=
  535. PACKAGE_URL=
  536. ac_unique_file="jpegoptim.c"
  537. # Factoring default headers for most tests.
  538. ac_includes_default="\
  539. #include <stdio.h>
  540. #ifdef HAVE_SYS_TYPES_H
  541. # include <sys/types.h>
  542. #endif
  543. #ifdef HAVE_SYS_STAT_H
  544. # include <sys/stat.h>
  545. #endif
  546. #ifdef STDC_HEADERS
  547. # include <stdlib.h>
  548. # include <stddef.h>
  549. #else
  550. # ifdef HAVE_STDLIB_H
  551. # include <stdlib.h>
  552. # endif
  553. #endif
  554. #ifdef HAVE_STRING_H
  555. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  556. # include <memory.h>
  557. # endif
  558. # include <string.h>
  559. #endif
  560. #ifdef HAVE_STRINGS_H
  561. # include <strings.h>
  562. #endif
  563. #ifdef HAVE_INTTYPES_H
  564. # include <inttypes.h>
  565. #endif
  566. #ifdef HAVE_STDINT_H
  567. # include <stdint.h>
  568. #endif
  569. #ifdef HAVE_UNISTD_H
  570. # include <unistd.h>
  571. #endif"
  572. ac_subst_vars='LTLIBOBJS
  573. LIBOBJS
  574. GNUGETOPT
  575. EGREP
  576. GREP
  577. CPP
  578. SET_MAKE
  579. INSTALL_DATA
  580. INSTALL_SCRIPT
  581. INSTALL_PROGRAM
  582. OBJEXT
  583. EXEEXT
  584. ac_ct_CC
  585. CPPFLAGS
  586. LDFLAGS
  587. CFLAGS
  588. CC
  589. host_os
  590. host_vendor
  591. host_cpu
  592. host
  593. build_os
  594. build_vendor
  595. build_cpu
  596. build
  597. target_alias
  598. host_alias
  599. build_alias
  600. LIBS
  601. ECHO_T
  602. ECHO_N
  603. ECHO_C
  604. DEFS
  605. mandir
  606. localedir
  607. libdir
  608. psdir
  609. pdfdir
  610. dvidir
  611. htmldir
  612. infodir
  613. docdir
  614. oldincludedir
  615. includedir
  616. runstatedir
  617. localstatedir
  618. sharedstatedir
  619. sysconfdir
  620. datadir
  621. datarootdir
  622. libexecdir
  623. sbindir
  624. bindir
  625. program_transform_name
  626. prefix
  627. exec_prefix
  628. PACKAGE_URL
  629. PACKAGE_BUGREPORT
  630. PACKAGE_STRING
  631. PACKAGE_VERSION
  632. PACKAGE_TARNAME
  633. PACKAGE_NAME
  634. PATH_SEPARATOR
  635. SHELL'
  636. ac_subst_files=''
  637. ac_user_opts='
  638. enable_option_checking
  639. with_libjpeg
  640. with_arith
  641. '
  642. ac_precious_vars='build_alias
  643. host_alias
  644. target_alias
  645. CC
  646. CFLAGS
  647. LDFLAGS
  648. LIBS
  649. CPPFLAGS
  650. CPP'
  651. # Initialize some variables set by options.
  652. ac_init_help=
  653. ac_init_version=false
  654. ac_unrecognized_opts=
  655. ac_unrecognized_sep=
  656. # The variables have the same names as the options, with
  657. # dashes changed to underlines.
  658. cache_file=/dev/null
  659. exec_prefix=NONE
  660. no_create=
  661. no_recursion=
  662. prefix=NONE
  663. program_prefix=NONE
  664. program_suffix=NONE
  665. program_transform_name=s,x,x,
  666. silent=
  667. site=
  668. srcdir=
  669. verbose=
  670. x_includes=NONE
  671. x_libraries=NONE
  672. # Installation directory options.
  673. # These are left unexpanded so users can "make install exec_prefix=/foo"
  674. # and all the variables that are supposed to be based on exec_prefix
  675. # by default will actually change.
  676. # Use braces instead of parens because sh, perl, etc. also accept them.
  677. # (The list follows the same order as the GNU Coding Standards.)
  678. bindir='${exec_prefix}/bin'
  679. sbindir='${exec_prefix}/sbin'
  680. libexecdir='${exec_prefix}/libexec'
  681. datarootdir='${prefix}/share'
  682. datadir='${datarootdir}'
  683. sysconfdir='${prefix}/etc'
  684. sharedstatedir='${prefix}/com'
  685. localstatedir='${prefix}/var'
  686. runstatedir='${localstatedir}/run'
  687. includedir='${prefix}/include'
  688. oldincludedir='/usr/include'
  689. docdir='${datarootdir}/doc/${PACKAGE}'
  690. infodir='${datarootdir}/info'
  691. htmldir='${docdir}'
  692. dvidir='${docdir}'
  693. pdfdir='${docdir}'
  694. psdir='${docdir}'
  695. libdir='${exec_prefix}/lib'
  696. localedir='${datarootdir}/locale'
  697. mandir='${datarootdir}/man'
  698. ac_prev=
  699. ac_dashdash=
  700. for ac_option
  701. do
  702. # If the previous option needs an argument, assign it.
  703. if test -n "$ac_prev"; then
  704. eval $ac_prev=\$ac_option
  705. ac_prev=
  706. continue
  707. fi
  708. case $ac_option in
  709. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  710. *=) ac_optarg= ;;
  711. *) ac_optarg=yes ;;
  712. esac
  713. # Accept the important Cygnus configure options, so we can diagnose typos.
  714. case $ac_dashdash$ac_option in
  715. --)
  716. ac_dashdash=yes ;;
  717. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  718. ac_prev=bindir ;;
  719. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  720. bindir=$ac_optarg ;;
  721. -build | --build | --buil | --bui | --bu)
  722. ac_prev=build_alias ;;
  723. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  724. build_alias=$ac_optarg ;;
  725. -cache-file | --cache-file | --cache-fil | --cache-fi \
  726. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  727. ac_prev=cache_file ;;
  728. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  729. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  730. cache_file=$ac_optarg ;;
  731. --config-cache | -C)
  732. cache_file=config.cache ;;
  733. -datadir | --datadir | --datadi | --datad)
  734. ac_prev=datadir ;;
  735. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  736. datadir=$ac_optarg ;;
  737. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  738. | --dataroo | --dataro | --datar)
  739. ac_prev=datarootdir ;;
  740. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  741. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  742. datarootdir=$ac_optarg ;;
  743. -disable-* | --disable-*)
  744. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  745. # Reject names that are not valid shell variable names.
  746. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  747. as_fn_error $? "invalid feature name: $ac_useropt"
  748. ac_useropt_orig=$ac_useropt
  749. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  750. case $ac_user_opts in
  751. *"
  752. "enable_$ac_useropt"
  753. "*) ;;
  754. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  755. ac_unrecognized_sep=', ';;
  756. esac
  757. eval enable_$ac_useropt=no ;;
  758. -docdir | --docdir | --docdi | --doc | --do)
  759. ac_prev=docdir ;;
  760. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  761. docdir=$ac_optarg ;;
  762. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  763. ac_prev=dvidir ;;
  764. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  765. dvidir=$ac_optarg ;;
  766. -enable-* | --enable-*)
  767. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  768. # Reject names that are not valid shell variable names.
  769. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  770. as_fn_error $? "invalid feature name: $ac_useropt"
  771. ac_useropt_orig=$ac_useropt
  772. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  773. case $ac_user_opts in
  774. *"
  775. "enable_$ac_useropt"
  776. "*) ;;
  777. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  778. ac_unrecognized_sep=', ';;
  779. esac
  780. eval enable_$ac_useropt=\$ac_optarg ;;
  781. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  782. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  783. | --exec | --exe | --ex)
  784. ac_prev=exec_prefix ;;
  785. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  786. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  787. | --exec=* | --exe=* | --ex=*)
  788. exec_prefix=$ac_optarg ;;
  789. -gas | --gas | --ga | --g)
  790. # Obsolete; use --with-gas.
  791. with_gas=yes ;;
  792. -help | --help | --hel | --he | -h)
  793. ac_init_help=long ;;
  794. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  795. ac_init_help=recursive ;;
  796. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  797. ac_init_help=short ;;
  798. -host | --host | --hos | --ho)
  799. ac_prev=host_alias ;;
  800. -host=* | --host=* | --hos=* | --ho=*)
  801. host_alias=$ac_optarg ;;
  802. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  803. ac_prev=htmldir ;;
  804. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  805. | --ht=*)
  806. htmldir=$ac_optarg ;;
  807. -includedir | --includedir | --includedi | --included | --include \
  808. | --includ | --inclu | --incl | --inc)
  809. ac_prev=includedir ;;
  810. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  811. | --includ=* | --inclu=* | --incl=* | --inc=*)
  812. includedir=$ac_optarg ;;
  813. -infodir | --infodir | --infodi | --infod | --info | --inf)
  814. ac_prev=infodir ;;
  815. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  816. infodir=$ac_optarg ;;
  817. -libdir | --libdir | --libdi | --libd)
  818. ac_prev=libdir ;;
  819. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  820. libdir=$ac_optarg ;;
  821. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  822. | --libexe | --libex | --libe)
  823. ac_prev=libexecdir ;;
  824. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  825. | --libexe=* | --libex=* | --libe=*)
  826. libexecdir=$ac_optarg ;;
  827. -localedir | --localedir | --localedi | --localed | --locale)
  828. ac_prev=localedir ;;
  829. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  830. localedir=$ac_optarg ;;
  831. -localstatedir | --localstatedir | --localstatedi | --localstated \
  832. | --localstate | --localstat | --localsta | --localst | --locals)
  833. ac_prev=localstatedir ;;
  834. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  835. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  836. localstatedir=$ac_optarg ;;
  837. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  838. ac_prev=mandir ;;
  839. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  840. mandir=$ac_optarg ;;
  841. -nfp | --nfp | --nf)
  842. # Obsolete; use --without-fp.
  843. with_fp=no ;;
  844. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  845. | --no-cr | --no-c | -n)
  846. no_create=yes ;;
  847. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  848. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  849. no_recursion=yes ;;
  850. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  851. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  852. | --oldin | --oldi | --old | --ol | --o)
  853. ac_prev=oldincludedir ;;
  854. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  855. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  856. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  857. oldincludedir=$ac_optarg ;;
  858. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  859. ac_prev=prefix ;;
  860. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  861. prefix=$ac_optarg ;;
  862. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  863. | --program-pre | --program-pr | --program-p)
  864. ac_prev=program_prefix ;;
  865. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  866. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  867. program_prefix=$ac_optarg ;;
  868. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  869. | --program-suf | --program-su | --program-s)
  870. ac_prev=program_suffix ;;
  871. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  872. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  873. program_suffix=$ac_optarg ;;
  874. -program-transform-name | --program-transform-name \
  875. | --program-transform-nam | --program-transform-na \
  876. | --program-transform-n | --program-transform- \
  877. | --program-transform | --program-transfor \
  878. | --program-transfo | --program-transf \
  879. | --program-trans | --program-tran \
  880. | --progr-tra | --program-tr | --program-t)
  881. ac_prev=program_transform_name ;;
  882. -program-transform-name=* | --program-transform-name=* \
  883. | --program-transform-nam=* | --program-transform-na=* \
  884. | --program-transform-n=* | --program-transform-=* \
  885. | --program-transform=* | --program-transfor=* \
  886. | --program-transfo=* | --program-transf=* \
  887. | --program-trans=* | --program-tran=* \
  888. | --progr-tra=* | --program-tr=* | --program-t=*)
  889. program_transform_name=$ac_optarg ;;
  890. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  891. ac_prev=pdfdir ;;
  892. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  893. pdfdir=$ac_optarg ;;
  894. -psdir | --psdir | --psdi | --psd | --ps)
  895. ac_prev=psdir ;;
  896. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  897. psdir=$ac_optarg ;;
  898. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  899. | -silent | --silent | --silen | --sile | --sil)
  900. silent=yes ;;
  901. -runstatedir | --runstatedir | --runstatedi | --runstated \
  902. | --runstate | --runstat | --runsta | --runst | --runs \
  903. | --run | --ru | --r)
  904. ac_prev=runstatedir ;;
  905. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  906. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  907. | --run=* | --ru=* | --r=*)
  908. runstatedir=$ac_optarg ;;
  909. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  910. ac_prev=sbindir ;;
  911. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  912. | --sbi=* | --sb=*)
  913. sbindir=$ac_optarg ;;
  914. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  915. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  916. | --sharedst | --shareds | --shared | --share | --shar \
  917. | --sha | --sh)
  918. ac_prev=sharedstatedir ;;
  919. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  920. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  921. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  922. | --sha=* | --sh=*)
  923. sharedstatedir=$ac_optarg ;;
  924. -site | --site | --sit)
  925. ac_prev=site ;;
  926. -site=* | --site=* | --sit=*)
  927. site=$ac_optarg ;;
  928. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  929. ac_prev=srcdir ;;
  930. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  931. srcdir=$ac_optarg ;;
  932. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  933. | --syscon | --sysco | --sysc | --sys | --sy)
  934. ac_prev=sysconfdir ;;
  935. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  936. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  937. sysconfdir=$ac_optarg ;;
  938. -target | --target | --targe | --targ | --tar | --ta | --t)
  939. ac_prev=target_alias ;;
  940. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  941. target_alias=$ac_optarg ;;
  942. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  943. verbose=yes ;;
  944. -version | --version | --versio | --versi | --vers | -V)
  945. ac_init_version=: ;;
  946. -with-* | --with-*)
  947. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  948. # Reject names that are not valid shell variable names.
  949. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  950. as_fn_error $? "invalid package name: $ac_useropt"
  951. ac_useropt_orig=$ac_useropt
  952. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  953. case $ac_user_opts in
  954. *"
  955. "with_$ac_useropt"
  956. "*) ;;
  957. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  958. ac_unrecognized_sep=', ';;
  959. esac
  960. eval with_$ac_useropt=\$ac_optarg ;;
  961. -without-* | --without-*)
  962. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  963. # Reject names that are not valid shell variable names.
  964. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  965. as_fn_error $? "invalid package name: $ac_useropt"
  966. ac_useropt_orig=$ac_useropt
  967. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  968. case $ac_user_opts in
  969. *"
  970. "with_$ac_useropt"
  971. "*) ;;
  972. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  973. ac_unrecognized_sep=', ';;
  974. esac
  975. eval with_$ac_useropt=no ;;
  976. --x)
  977. # Obsolete; use --with-x.
  978. with_x=yes ;;
  979. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  980. | --x-incl | --x-inc | --x-in | --x-i)
  981. ac_prev=x_includes ;;
  982. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  983. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  984. x_includes=$ac_optarg ;;
  985. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  986. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  987. ac_prev=x_libraries ;;
  988. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  989. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  990. x_libraries=$ac_optarg ;;
  991. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  992. Try \`$0 --help' for more information"
  993. ;;
  994. *=*)
  995. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  996. # Reject names that are not valid shell variable names.
  997. case $ac_envvar in #(
  998. '' | [0-9]* | *[!_$as_cr_alnum]* )
  999. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1000. esac
  1001. eval $ac_envvar=\$ac_optarg
  1002. export $ac_envvar ;;
  1003. *)
  1004. # FIXME: should be removed in autoconf 3.0.
  1005. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1006. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1007. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1008. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1009. ;;
  1010. esac
  1011. done
  1012. if test -n "$ac_prev"; then
  1013. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1014. as_fn_error $? "missing argument to $ac_option"
  1015. fi
  1016. if test -n "$ac_unrecognized_opts"; then
  1017. case $enable_option_checking in
  1018. no) ;;
  1019. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1020. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1021. esac
  1022. fi
  1023. # Check all directory arguments for consistency.
  1024. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1025. datadir sysconfdir sharedstatedir localstatedir includedir \
  1026. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1027. libdir localedir mandir runstatedir
  1028. do
  1029. eval ac_val=\$$ac_var
  1030. # Remove trailing slashes.
  1031. case $ac_val in
  1032. */ )
  1033. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1034. eval $ac_var=\$ac_val;;
  1035. esac
  1036. # Be sure to have absolute directory names.
  1037. case $ac_val in
  1038. [\\/$]* | ?:[\\/]* ) continue;;
  1039. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1040. esac
  1041. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1042. done
  1043. # There might be people who depend on the old broken behavior: `$host'
  1044. # used to hold the argument of --host etc.
  1045. # FIXME: To remove some day.
  1046. build=$build_alias
  1047. host=$host_alias
  1048. target=$target_alias
  1049. # FIXME: To remove some day.
  1050. if test "x$host_alias" != x; then
  1051. if test "x$build_alias" = x; then
  1052. cross_compiling=maybe
  1053. elif test "x$build_alias" != "x$host_alias"; then
  1054. cross_compiling=yes
  1055. fi
  1056. fi
  1057. ac_tool_prefix=
  1058. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1059. test "$silent" = yes && exec 6>/dev/null
  1060. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1061. ac_ls_di=`ls -di .` &&
  1062. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1063. as_fn_error $? "working directory cannot be determined"
  1064. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1065. as_fn_error $? "pwd does not report name of working directory"
  1066. # Find the source files, if location was not specified.
  1067. if test -z "$srcdir"; then
  1068. ac_srcdir_defaulted=yes
  1069. # Try the directory containing this script, then the parent directory.
  1070. ac_confdir=`$as_dirname -- "$as_myself" ||
  1071. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1072. X"$as_myself" : 'X\(//\)[^/]' \| \
  1073. X"$as_myself" : 'X\(//\)$' \| \
  1074. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1075. $as_echo X"$as_myself" |
  1076. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1077. s//\1/
  1078. q
  1079. }
  1080. /^X\(\/\/\)[^/].*/{
  1081. s//\1/
  1082. q
  1083. }
  1084. /^X\(\/\/\)$/{
  1085. s//\1/
  1086. q
  1087. }
  1088. /^X\(\/\).*/{
  1089. s//\1/
  1090. q
  1091. }
  1092. s/.*/./; q'`
  1093. srcdir=$ac_confdir
  1094. if test ! -r "$srcdir/$ac_unique_file"; then
  1095. srcdir=..
  1096. fi
  1097. else
  1098. ac_srcdir_defaulted=no
  1099. fi
  1100. if test ! -r "$srcdir/$ac_unique_file"; then
  1101. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1102. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1103. fi
  1104. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1105. ac_abs_confdir=`(
  1106. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1107. pwd)`
  1108. # When building in place, set srcdir=.
  1109. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1110. srcdir=.
  1111. fi
  1112. # Remove unnecessary trailing slashes from srcdir.
  1113. # Double slashes in file names in object file debugging info
  1114. # mess up M-x gdb in Emacs.
  1115. case $srcdir in
  1116. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1117. esac
  1118. for ac_var in $ac_precious_vars; do
  1119. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1120. eval ac_env_${ac_var}_value=\$${ac_var}
  1121. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1122. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1123. done
  1124. #
  1125. # Report the --help message.
  1126. #
  1127. if test "$ac_init_help" = "long"; then
  1128. # Omit some internal or obsolete options to make the list less imposing.
  1129. # This message is too long to be a string in the A/UX 3.1 sh.
  1130. cat <<_ACEOF
  1131. \`configure' configures this package to adapt to many kinds of systems.
  1132. Usage: $0 [OPTION]... [VAR=VALUE]...
  1133. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1134. VAR=VALUE. See below for descriptions of some of the useful variables.
  1135. Defaults for the options are specified in brackets.
  1136. Configuration:
  1137. -h, --help display this help and exit
  1138. --help=short display options specific to this package
  1139. --help=recursive display the short help of all the included packages
  1140. -V, --version display version information and exit
  1141. -q, --quiet, --silent do not print \`checking ...' messages
  1142. --cache-file=FILE cache test results in FILE [disabled]
  1143. -C, --config-cache alias for \`--cache-file=config.cache'
  1144. -n, --no-create do not create output files
  1145. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1146. Installation directories:
  1147. --prefix=PREFIX install architecture-independent files in PREFIX
  1148. [$ac_default_prefix]
  1149. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1150. [PREFIX]
  1151. By default, \`make install' will install all the files in
  1152. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1153. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1154. for instance \`--prefix=\$HOME'.
  1155. For better control, use the options below.
  1156. Fine tuning of the installation directories:
  1157. --bindir=DIR user executables [EPREFIX/bin]
  1158. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1159. --libexecdir=DIR program executables [EPREFIX/libexec]
  1160. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1161. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1162. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1163. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1164. --libdir=DIR object code libraries [EPREFIX/lib]
  1165. --includedir=DIR C header files [PREFIX/include]
  1166. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1167. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1168. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1169. --infodir=DIR info documentation [DATAROOTDIR/info]
  1170. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1171. --mandir=DIR man documentation [DATAROOTDIR/man]
  1172. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1173. --htmldir=DIR html documentation [DOCDIR]
  1174. --dvidir=DIR dvi documentation [DOCDIR]
  1175. --pdfdir=DIR pdf documentation [DOCDIR]
  1176. --psdir=DIR ps documentation [DOCDIR]
  1177. _ACEOF
  1178. cat <<\_ACEOF
  1179. System types:
  1180. --build=BUILD configure for building on BUILD [guessed]
  1181. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1182. _ACEOF
  1183. fi
  1184. if test -n "$ac_init_help"; then
  1185. cat <<\_ACEOF
  1186. Optional Packages:
  1187. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1188. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1189. --with-libjpeg=DIR libjpeg is installed in
  1190. --with-arith Enable arithmetic coding support
  1191. Some influential environment variables:
  1192. CC C compiler command
  1193. CFLAGS C compiler flags
  1194. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1195. nonstandard directory <lib dir>
  1196. LIBS libraries to pass to the linker, e.g. -l<library>
  1197. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1198. you have headers in a nonstandard directory <include dir>
  1199. CPP C preprocessor
  1200. Use these variables to override the choices made by `configure' or to help
  1201. it to find libraries and programs with nonstandard names/locations.
  1202. Report bugs to the package provider.
  1203. _ACEOF
  1204. ac_status=$?
  1205. fi
  1206. if test "$ac_init_help" = "recursive"; then
  1207. # If there are subdirs, report their specific --help.
  1208. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1209. test -d "$ac_dir" ||
  1210. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1211. continue
  1212. ac_builddir=.
  1213. case "$ac_dir" in
  1214. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1215. *)
  1216. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1217. # A ".." for each directory in $ac_dir_suffix.
  1218. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1219. case $ac_top_builddir_sub in
  1220. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1221. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1222. esac ;;
  1223. esac
  1224. ac_abs_top_builddir=$ac_pwd
  1225. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1226. # for backward compatibility:
  1227. ac_top_builddir=$ac_top_build_prefix
  1228. case $srcdir in
  1229. .) # We are building in place.
  1230. ac_srcdir=.
  1231. ac_top_srcdir=$ac_top_builddir_sub
  1232. ac_abs_top_srcdir=$ac_pwd ;;
  1233. [\\/]* | ?:[\\/]* ) # Absolute name.
  1234. ac_srcdir=$srcdir$ac_dir_suffix;
  1235. ac_top_srcdir=$srcdir
  1236. ac_abs_top_srcdir=$srcdir ;;
  1237. *) # Relative name.
  1238. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1239. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1240. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1241. esac
  1242. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1243. cd "$ac_dir" || { ac_status=$?; continue; }
  1244. # Check for guested configure.
  1245. if test -f "$ac_srcdir/configure.gnu"; then
  1246. echo &&
  1247. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1248. elif test -f "$ac_srcdir/configure"; then
  1249. echo &&
  1250. $SHELL "$ac_srcdir/configure" --help=recursive
  1251. else
  1252. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1253. fi || ac_status=$?
  1254. cd "$ac_pwd" || { ac_status=$?; break; }
  1255. done
  1256. fi
  1257. test -n "$ac_init_help" && exit $ac_status
  1258. if $ac_init_version; then
  1259. cat <<\_ACEOF
  1260. configure
  1261. generated by GNU Autoconf 2.69
  1262. Copyright (C) 2012 Free Software Foundation, Inc.
  1263. This configure script is free software; the Free Software Foundation
  1264. gives unlimited permission to copy, distribute and modify it.
  1265. _ACEOF
  1266. exit
  1267. fi
  1268. ## ------------------------ ##
  1269. ## Autoconf initialization. ##
  1270. ## ------------------------ ##
  1271. # ac_fn_c_try_compile LINENO
  1272. # --------------------------
  1273. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1274. ac_fn_c_try_compile ()
  1275. {
  1276. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1277. rm -f conftest.$ac_objext
  1278. if { { ac_try="$ac_compile"
  1279. case "(($ac_try" in
  1280. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1281. *) ac_try_echo=$ac_try;;
  1282. esac
  1283. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1284. $as_echo "$ac_try_echo"; } >&5
  1285. (eval "$ac_compile") 2>conftest.err
  1286. ac_status=$?
  1287. if test -s conftest.err; then
  1288. grep -v '^ *+' conftest.err >conftest.er1
  1289. cat conftest.er1 >&5
  1290. mv -f conftest.er1 conftest.err
  1291. fi
  1292. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1293. test $ac_status = 0; } && {
  1294. test -z "$ac_c_werror_flag" ||
  1295. test ! -s conftest.err
  1296. } && test -s conftest.$ac_objext; then :
  1297. ac_retval=0
  1298. else
  1299. $as_echo "$as_me: failed program was:" >&5
  1300. sed 's/^/| /' conftest.$ac_ext >&5
  1301. ac_retval=1
  1302. fi
  1303. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1304. as_fn_set_status $ac_retval
  1305. } # ac_fn_c_try_compile
  1306. # ac_fn_c_try_link LINENO
  1307. # -----------------------
  1308. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1309. ac_fn_c_try_link ()
  1310. {
  1311. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1312. rm -f conftest.$ac_objext conftest$ac_exeext
  1313. if { { ac_try="$ac_link"
  1314. case "(($ac_try" in
  1315. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1316. *) ac_try_echo=$ac_try;;
  1317. esac
  1318. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1319. $as_echo "$ac_try_echo"; } >&5
  1320. (eval "$ac_link") 2>conftest.err
  1321. ac_status=$?
  1322. if test -s conftest.err; then
  1323. grep -v '^ *+' conftest.err >conftest.er1
  1324. cat conftest.er1 >&5
  1325. mv -f conftest.er1 conftest.err
  1326. fi
  1327. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1328. test $ac_status = 0; } && {
  1329. test -z "$ac_c_werror_flag" ||
  1330. test ! -s conftest.err
  1331. } && test -s conftest$ac_exeext && {
  1332. test "$cross_compiling" = yes ||
  1333. test -x conftest$ac_exeext
  1334. }; then :
  1335. ac_retval=0
  1336. else
  1337. $as_echo "$as_me: failed program was:" >&5
  1338. sed 's/^/| /' conftest.$ac_ext >&5
  1339. ac_retval=1
  1340. fi
  1341. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1342. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1343. # interfere with the next link command; also delete a directory that is
  1344. # left behind by Apple's compiler. We do this before executing the actions.
  1345. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1346. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1347. as_fn_set_status $ac_retval
  1348. } # ac_fn_c_try_link
  1349. # ac_fn_c_try_cpp LINENO
  1350. # ----------------------
  1351. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1352. ac_fn_c_try_cpp ()
  1353. {
  1354. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1355. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1356. case "(($ac_try" in
  1357. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1358. *) ac_try_echo=$ac_try;;
  1359. esac
  1360. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1361. $as_echo "$ac_try_echo"; } >&5
  1362. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1363. ac_status=$?
  1364. if test -s conftest.err; then
  1365. grep -v '^ *+' conftest.err >conftest.er1
  1366. cat conftest.er1 >&5
  1367. mv -f conftest.er1 conftest.err
  1368. fi
  1369. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1370. test $ac_status = 0; } > conftest.i && {
  1371. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1372. test ! -s conftest.err
  1373. }; then :
  1374. ac_retval=0
  1375. else
  1376. $as_echo "$as_me: failed program was:" >&5
  1377. sed 's/^/| /' conftest.$ac_ext >&5
  1378. ac_retval=1
  1379. fi
  1380. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1381. as_fn_set_status $ac_retval
  1382. } # ac_fn_c_try_cpp
  1383. # ac_fn_c_try_run LINENO
  1384. # ----------------------
  1385. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1386. # that executables *can* be run.
  1387. ac_fn_c_try_run ()
  1388. {
  1389. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1390. if { { ac_try="$ac_link"
  1391. case "(($ac_try" in
  1392. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1393. *) ac_try_echo=$ac_try;;
  1394. esac
  1395. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1396. $as_echo "$ac_try_echo"; } >&5
  1397. (eval "$ac_link") 2>&5
  1398. ac_status=$?
  1399. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1400. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1401. { { case "(($ac_try" in
  1402. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1403. *) ac_try_echo=$ac_try;;
  1404. esac
  1405. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1406. $as_echo "$ac_try_echo"; } >&5
  1407. (eval "$ac_try") 2>&5
  1408. ac_status=$?
  1409. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1410. test $ac_status = 0; }; }; then :
  1411. ac_retval=0
  1412. else
  1413. $as_echo "$as_me: program exited with status $ac_status" >&5
  1414. $as_echo "$as_me: failed program was:" >&5
  1415. sed 's/^/| /' conftest.$ac_ext >&5
  1416. ac_retval=$ac_status
  1417. fi
  1418. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1419. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1420. as_fn_set_status $ac_retval
  1421. } # ac_fn_c_try_run
  1422. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1423. # -------------------------------------------------------
  1424. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1425. # the include files in INCLUDES and setting the cache variable VAR
  1426. # accordingly.
  1427. ac_fn_c_check_header_mongrel ()
  1428. {
  1429. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1430. if eval \${$3+:} false; then :
  1431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1432. $as_echo_n "checking for $2... " >&6; }
  1433. if eval \${$3+:} false; then :
  1434. $as_echo_n "(cached) " >&6
  1435. fi
  1436. eval ac_res=\$$3
  1437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1438. $as_echo "$ac_res" >&6; }
  1439. else
  1440. # Is the header compilable?
  1441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1442. $as_echo_n "checking $2 usability... " >&6; }
  1443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1444. /* end confdefs.h. */
  1445. $4
  1446. #include <$2>
  1447. _ACEOF
  1448. if ac_fn_c_try_compile "$LINENO"; then :
  1449. ac_header_compiler=yes
  1450. else
  1451. ac_header_compiler=no
  1452. fi
  1453. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1455. $as_echo "$ac_header_compiler" >&6; }
  1456. # Is the header present?
  1457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1458. $as_echo_n "checking $2 presence... " >&6; }
  1459. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1460. /* end confdefs.h. */
  1461. #include <$2>
  1462. _ACEOF
  1463. if ac_fn_c_try_cpp "$LINENO"; then :
  1464. ac_header_preproc=yes
  1465. else
  1466. ac_header_preproc=no
  1467. fi
  1468. rm -f conftest.err conftest.i conftest.$ac_ext
  1469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1470. $as_echo "$ac_header_preproc" >&6; }
  1471. # So? What about this header?
  1472. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1473. yes:no: )
  1474. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1475. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1476. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1477. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1478. ;;
  1479. no:yes:* )
  1480. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1481. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1482. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1483. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1484. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1485. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1486. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1487. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1488. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1489. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1490. ;;
  1491. esac
  1492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1493. $as_echo_n "checking for $2... " >&6; }
  1494. if eval \${$3+:} false; then :
  1495. $as_echo_n "(cached) " >&6
  1496. else
  1497. eval "$3=\$ac_header_compiler"
  1498. fi
  1499. eval ac_res=\$$3
  1500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1501. $as_echo "$ac_res" >&6; }
  1502. fi
  1503. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1504. } # ac_fn_c_check_header_mongrel
  1505. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1506. # -------------------------------------------------------
  1507. # Tests whether HEADER exists and can be compiled using the include files in
  1508. # INCLUDES, setting the cache variable VAR accordingly.
  1509. ac_fn_c_check_header_compile ()
  1510. {
  1511. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1513. $as_echo_n "checking for $2... " >&6; }
  1514. if eval \${$3+:} false; then :
  1515. $as_echo_n "(cached) " >&6
  1516. else
  1517. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1518. /* end confdefs.h. */
  1519. $4
  1520. #include <$2>
  1521. _ACEOF
  1522. if ac_fn_c_try_compile "$LINENO"; then :
  1523. eval "$3=yes"
  1524. else
  1525. eval "$3=no"
  1526. fi
  1527. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1528. fi
  1529. eval ac_res=\$$3
  1530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1531. $as_echo "$ac_res" >&6; }
  1532. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1533. } # ac_fn_c_check_header_compile
  1534. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1535. # --------------------------------------------
  1536. # Tries to find the compile-time value of EXPR in a program that includes
  1537. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1538. # computed
  1539. ac_fn_c_compute_int ()
  1540. {
  1541. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1542. if test "$cross_compiling" = yes; then
  1543. # Depending upon the size, compute the lo and hi bounds.
  1544. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1545. /* end confdefs.h. */
  1546. $4
  1547. int
  1548. main ()
  1549. {
  1550. static int test_array [1 - 2 * !(($2) >= 0)];
  1551. test_array [0] = 0;
  1552. return test_array [0];
  1553. ;
  1554. return 0;
  1555. }
  1556. _ACEOF
  1557. if ac_fn_c_try_compile "$LINENO"; then :
  1558. ac_lo=0 ac_mid=0
  1559. while :; do
  1560. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1561. /* end confdefs.h. */
  1562. $4
  1563. int
  1564. main ()
  1565. {
  1566. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1567. test_array [0] = 0;
  1568. return test_array [0];
  1569. ;
  1570. return 0;
  1571. }
  1572. _ACEOF
  1573. if ac_fn_c_try_compile "$LINENO"; then :
  1574. ac_hi=$ac_mid; break
  1575. else
  1576. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1577. if test $ac_lo -le $ac_mid; then
  1578. ac_lo= ac_hi=
  1579. break
  1580. fi
  1581. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1582. fi
  1583. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1584. done
  1585. else
  1586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1587. /* end confdefs.h. */
  1588. $4
  1589. int
  1590. main ()
  1591. {
  1592. static int test_array [1 - 2 * !(($2) < 0)];
  1593. test_array [0] = 0;
  1594. return test_array [0];
  1595. ;
  1596. return 0;
  1597. }
  1598. _ACEOF
  1599. if ac_fn_c_try_compile "$LINENO"; then :
  1600. ac_hi=-1 ac_mid=-1
  1601. while :; do
  1602. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1603. /* end confdefs.h. */
  1604. $4
  1605. int
  1606. main ()
  1607. {
  1608. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1609. test_array [0] = 0;
  1610. return test_array [0];
  1611. ;
  1612. return 0;
  1613. }
  1614. _ACEOF
  1615. if ac_fn_c_try_compile "$LINENO"; then :
  1616. ac_lo=$ac_mid; break
  1617. else
  1618. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1619. if test $ac_mid -le $ac_hi; then
  1620. ac_lo= ac_hi=
  1621. break
  1622. fi
  1623. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1624. fi
  1625. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1626. done
  1627. else
  1628. ac_lo= ac_hi=
  1629. fi
  1630. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1631. fi
  1632. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1633. # Binary search between lo and hi bounds.
  1634. while test "x$ac_lo" != "x$ac_hi"; do
  1635. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1636. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1637. /* end confdefs.h. */
  1638. $4
  1639. int
  1640. main ()
  1641. {
  1642. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1643. test_array [0] = 0;
  1644. return test_array [0];
  1645. ;
  1646. return 0;
  1647. }
  1648. _ACEOF
  1649. if ac_fn_c_try_compile "$LINENO"; then :
  1650. ac_hi=$ac_mid
  1651. else
  1652. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1653. fi
  1654. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1655. done
  1656. case $ac_lo in #((
  1657. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1658. '') ac_retval=1 ;;
  1659. esac
  1660. else
  1661. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1662. /* end confdefs.h. */
  1663. $4
  1664. static long int longval () { return $2; }
  1665. static unsigned long int ulongval () { return $2; }
  1666. #include <stdio.h>
  1667. #include <stdlib.h>
  1668. int
  1669. main ()
  1670. {
  1671. FILE *f = fopen ("conftest.val", "w");
  1672. if (! f)
  1673. return 1;
  1674. if (($2) < 0)
  1675. {
  1676. long int i = longval ();
  1677. if (i != ($2))
  1678. return 1;
  1679. fprintf (f, "%ld", i);
  1680. }
  1681. else
  1682. {
  1683. unsigned long int i = ulongval ();
  1684. if (i != ($2))
  1685. return 1;
  1686. fprintf (f, "%lu", i);
  1687. }
  1688. /* Do not output a trailing newline, as this causes \r\n confusion
  1689. on some platforms. */
  1690. return ferror (f) || fclose (f) != 0;
  1691. ;
  1692. return 0;
  1693. }
  1694. _ACEOF
  1695. if ac_fn_c_try_run "$LINENO"; then :
  1696. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1697. else
  1698. ac_retval=1
  1699. fi
  1700. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1701. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1702. rm -f conftest.val
  1703. fi
  1704. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1705. as_fn_set_status $ac_retval
  1706. } # ac_fn_c_compute_int
  1707. # ac_fn_c_check_func LINENO FUNC VAR
  1708. # ----------------------------------
  1709. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1710. ac_fn_c_check_func ()
  1711. {
  1712. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1714. $as_echo_n "checking for $2... " >&6; }
  1715. if eval \${$3+:} false; then :
  1716. $as_echo_n "(cached) " >&6
  1717. else
  1718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1719. /* end confdefs.h. */
  1720. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1721. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1722. #define $2 innocuous_$2
  1723. /* System header to define __stub macros and hopefully few prototypes,
  1724. which can conflict with char $2 (); below.
  1725. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1726. <limits.h> exists even on freestanding compilers. */
  1727. #ifdef __STDC__
  1728. # include <limits.h>
  1729. #else
  1730. # include <assert.h>
  1731. #endif
  1732. #undef $2
  1733. /* Override any GCC internal prototype to avoid an error.
  1734. Use char because int might match the return type of a GCC
  1735. builtin and then its argument prototype would still apply. */
  1736. #ifdef __cplusplus
  1737. extern "C"
  1738. #endif
  1739. char $2 ();
  1740. /* The GNU C library defines this for functions which it implements
  1741. to always fail with ENOSYS. Some functions are actually named
  1742. something starting with __ and the normal name is an alias. */
  1743. #if defined __stub_$2 || defined __stub___$2
  1744. choke me
  1745. #endif
  1746. int
  1747. main ()
  1748. {
  1749. return $2 ();
  1750. ;
  1751. return 0;
  1752. }
  1753. _ACEOF
  1754. if ac_fn_c_try_link "$LINENO"; then :
  1755. eval "$3=yes"
  1756. else
  1757. eval "$3=no"
  1758. fi
  1759. rm -f core conftest.err conftest.$ac_objext \
  1760. conftest$ac_exeext conftest.$ac_ext
  1761. fi
  1762. eval ac_res=\$$3
  1763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1764. $as_echo "$ac_res" >&6; }
  1765. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1766. } # ac_fn_c_check_func
  1767. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  1768. # ----------------------------------------------------
  1769. # Tries to find if the field MEMBER exists in type AGGR, after including
  1770. # INCLUDES, setting cache variable VAR accordingly.
  1771. ac_fn_c_check_member ()
  1772. {
  1773. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1775. $as_echo_n "checking for $2.$3... " >&6; }
  1776. if eval \${$4+:} false; then :
  1777. $as_echo_n "(cached) " >&6
  1778. else
  1779. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1780. /* end confdefs.h. */
  1781. $5
  1782. int
  1783. main ()
  1784. {
  1785. static $2 ac_aggr;
  1786. if (ac_aggr.$3)
  1787. return 0;
  1788. ;
  1789. return 0;
  1790. }
  1791. _ACEOF
  1792. if ac_fn_c_try_compile "$LINENO"; then :
  1793. eval "$4=yes"
  1794. else
  1795. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1796. /* end confdefs.h. */
  1797. $5
  1798. int
  1799. main ()
  1800. {
  1801. static $2 ac_aggr;
  1802. if (sizeof ac_aggr.$3)
  1803. return 0;
  1804. ;
  1805. return 0;
  1806. }
  1807. _ACEOF
  1808. if ac_fn_c_try_compile "$LINENO"; then :
  1809. eval "$4=yes"
  1810. else
  1811. eval "$4=no"
  1812. fi
  1813. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1814. fi
  1815. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1816. fi
  1817. eval ac_res=\$$4
  1818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1819. $as_echo "$ac_res" >&6; }
  1820. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1821. } # ac_fn_c_check_member
  1822. cat >config.log <<_ACEOF
  1823. This file contains any messages produced by compilers while
  1824. running configure, to aid debugging if configure makes a mistake.
  1825. It was created by $as_me, which was
  1826. generated by GNU Autoconf 2.69. Invocation command line was
  1827. $ $0 $@
  1828. _ACEOF
  1829. exec 5>>config.log
  1830. {
  1831. cat <<_ASUNAME
  1832. ## --------- ##
  1833. ## Platform. ##
  1834. ## --------- ##
  1835. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1836. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1837. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1838. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1839. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1840. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1841. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1842. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1843. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1844. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1845. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1846. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1847. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1848. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1849. _ASUNAME
  1850. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1851. for as_dir in $PATH
  1852. do
  1853. IFS=$as_save_IFS
  1854. test -z "$as_dir" && as_dir=.
  1855. $as_echo "PATH: $as_dir"
  1856. done
  1857. IFS=$as_save_IFS
  1858. } >&5
  1859. cat >&5 <<_ACEOF
  1860. ## ----------- ##
  1861. ## Core tests. ##
  1862. ## ----------- ##
  1863. _ACEOF
  1864. # Keep a trace of the command line.
  1865. # Strip out --no-create and --no-recursion so they do not pile up.
  1866. # Strip out --silent because we don't want to record it for future runs.
  1867. # Also quote any args containing shell meta-characters.
  1868. # Make two passes to allow for proper duplicate-argument suppression.
  1869. ac_configure_args=
  1870. ac_configure_args0=
  1871. ac_configure_args1=
  1872. ac_must_keep_next=false
  1873. for ac_pass in 1 2
  1874. do
  1875. for ac_arg
  1876. do
  1877. case $ac_arg in
  1878. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1879. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1880. | -silent | --silent | --silen | --sile | --sil)
  1881. continue ;;
  1882. *\'*)
  1883. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1884. esac
  1885. case $ac_pass in
  1886. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1887. 2)
  1888. as_fn_append ac_configure_args1 " '$ac_arg'"
  1889. if test $ac_must_keep_next = true; then
  1890. ac_must_keep_next=false # Got value, back to normal.
  1891. else
  1892. case $ac_arg in
  1893. *=* | --config-cache | -C | -disable-* | --disable-* \
  1894. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1895. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1896. | -with-* | --with-* | -without-* | --without-* | --x)
  1897. case "$ac_configure_args0 " in
  1898. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1899. esac
  1900. ;;
  1901. -* ) ac_must_keep_next=true ;;
  1902. esac
  1903. fi
  1904. as_fn_append ac_configure_args " '$ac_arg'"
  1905. ;;
  1906. esac
  1907. done
  1908. done
  1909. { ac_configure_args0=; unset ac_configure_args0;}
  1910. { ac_configure_args1=; unset ac_configure_args1;}
  1911. # When interrupted or exit'd, cleanup temporary files, and complete
  1912. # config.log. We remove comments because anyway the quotes in there
  1913. # would cause problems or look ugly.
  1914. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1915. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1916. trap 'exit_status=$?
  1917. # Save into config.log some information that might help in debugging.
  1918. {
  1919. echo
  1920. $as_echo "## ---------------- ##
  1921. ## Cache variables. ##
  1922. ## ---------------- ##"
  1923. echo
  1924. # The following way of writing the cache mishandles newlines in values,
  1925. (
  1926. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1927. eval ac_val=\$$ac_var
  1928. case $ac_val in #(
  1929. *${as_nl}*)
  1930. case $ac_var in #(
  1931. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1932. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1933. esac
  1934. case $ac_var in #(
  1935. _ | IFS | as_nl) ;; #(
  1936. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1937. *) { eval $ac_var=; unset $ac_var;} ;;
  1938. esac ;;
  1939. esac
  1940. done
  1941. (set) 2>&1 |
  1942. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1943. *${as_nl}ac_space=\ *)
  1944. sed -n \
  1945. "s/'\''/'\''\\\\'\'''\''/g;
  1946. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1947. ;; #(
  1948. *)
  1949. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1950. ;;
  1951. esac |
  1952. sort
  1953. )
  1954. echo
  1955. $as_echo "## ----------------- ##
  1956. ## Output variables. ##
  1957. ## ----------------- ##"
  1958. echo
  1959. for ac_var in $ac_subst_vars
  1960. do
  1961. eval ac_val=\$$ac_var
  1962. case $ac_val in
  1963. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1964. esac
  1965. $as_echo "$ac_var='\''$ac_val'\''"
  1966. done | sort
  1967. echo
  1968. if test -n "$ac_subst_files"; then
  1969. $as_echo "## ------------------- ##
  1970. ## File substitutions. ##
  1971. ## ------------------- ##"
  1972. echo
  1973. for ac_var in $ac_subst_files
  1974. do
  1975. eval ac_val=\$$ac_var
  1976. case $ac_val in
  1977. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1978. esac
  1979. $as_echo "$ac_var='\''$ac_val'\''"
  1980. done | sort
  1981. echo
  1982. fi
  1983. if test -s confdefs.h; then
  1984. $as_echo "## ----------- ##
  1985. ## confdefs.h. ##
  1986. ## ----------- ##"
  1987. echo
  1988. cat confdefs.h
  1989. echo
  1990. fi
  1991. test "$ac_signal" != 0 &&
  1992. $as_echo "$as_me: caught signal $ac_signal"
  1993. $as_echo "$as_me: exit $exit_status"
  1994. } >&5
  1995. rm -f core *.core core.conftest.* &&
  1996. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1997. exit $exit_status
  1998. ' 0
  1999. for ac_signal in 1 2 13 15; do
  2000. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2001. done
  2002. ac_signal=0
  2003. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2004. rm -f -r conftest* confdefs.h
  2005. $as_echo "/* confdefs.h */" > confdefs.h
  2006. # Predefined preprocessor variables.
  2007. cat >>confdefs.h <<_ACEOF
  2008. #define PACKAGE_NAME "$PACKAGE_NAME"
  2009. _ACEOF
  2010. cat >>confdefs.h <<_ACEOF
  2011. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2012. _ACEOF
  2013. cat >>confdefs.h <<_ACEOF
  2014. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2015. _ACEOF
  2016. cat >>confdefs.h <<_ACEOF
  2017. #define PACKAGE_STRING "$PACKAGE_STRING"
  2018. _ACEOF
  2019. cat >>confdefs.h <<_ACEOF
  2020. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2021. _ACEOF
  2022. cat >>confdefs.h <<_ACEOF
  2023. #define PACKAGE_URL "$PACKAGE_URL"
  2024. _ACEOF
  2025. # Let the site file select an alternate cache file if it wants to.
  2026. # Prefer an explicitly selected file to automatically selected ones.
  2027. ac_site_file1=NONE
  2028. ac_site_file2=NONE
  2029. if test -n "$CONFIG_SITE"; then
  2030. # We do not want a PATH search for config.site.
  2031. case $CONFIG_SITE in #((
  2032. -*) ac_site_file1=./$CONFIG_SITE;;
  2033. */*) ac_site_file1=$CONFIG_SITE;;
  2034. *) ac_site_file1=./$CONFIG_SITE;;
  2035. esac
  2036. elif test "x$prefix" != xNONE; then
  2037. ac_site_file1=$prefix/share/config.site
  2038. ac_site_file2=$prefix/etc/config.site
  2039. else
  2040. ac_site_file1=$ac_default_prefix/share/config.site
  2041. ac_site_file2=$ac_default_prefix/etc/config.site
  2042. fi
  2043. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2044. do
  2045. test "x$ac_site_file" = xNONE && continue
  2046. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2047. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2048. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2049. sed 's/^/| /' "$ac_site_file" >&5
  2050. . "$ac_site_file" \
  2051. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2052. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2053. as_fn_error $? "failed to load site script $ac_site_file
  2054. See \`config.log' for more details" "$LINENO" 5; }
  2055. fi
  2056. done
  2057. if test -r "$cache_file"; then
  2058. # Some versions of bash will fail to source /dev/null (special files
  2059. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2060. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2061. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2062. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2063. case $cache_file in
  2064. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2065. *) . "./$cache_file";;
  2066. esac
  2067. fi
  2068. else
  2069. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2070. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2071. >$cache_file
  2072. fi
  2073. # Check that the precious variables saved in the cache have kept the same
  2074. # value.
  2075. ac_cache_corrupted=false
  2076. for ac_var in $ac_precious_vars; do
  2077. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2078. eval ac_new_set=\$ac_env_${ac_var}_set
  2079. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2080. eval ac_new_val=\$ac_env_${ac_var}_value
  2081. case $ac_old_set,$ac_new_set in
  2082. set,)
  2083. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2084. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2085. ac_cache_corrupted=: ;;
  2086. ,set)
  2087. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2088. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2089. ac_cache_corrupted=: ;;
  2090. ,);;
  2091. *)
  2092. if test "x$ac_old_val" != "x$ac_new_val"; then
  2093. # differences in whitespace do not lead to failure.
  2094. ac_old_val_w=`echo x $ac_old_val`
  2095. ac_new_val_w=`echo x $ac_new_val`
  2096. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2097. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2098. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2099. ac_cache_corrupted=:
  2100. else
  2101. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2102. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2103. eval $ac_var=\$ac_old_val
  2104. fi
  2105. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2106. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2107. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2108. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2109. fi;;
  2110. esac
  2111. # Pass precious variables to config.status.
  2112. if test "$ac_new_set" = set; then
  2113. case $ac_new_val in
  2114. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2115. *) ac_arg=$ac_var=$ac_new_val ;;
  2116. esac
  2117. case " $ac_configure_args " in
  2118. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2119. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2120. esac
  2121. fi
  2122. done
  2123. if $ac_cache_corrupted; then
  2124. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2125. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2126. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2127. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2128. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2129. fi
  2130. ## -------------------- ##
  2131. ## Main body of script. ##
  2132. ## -------------------- ##
  2133. ac_ext=c
  2134. ac_cpp='$CPP $CPPFLAGS'
  2135. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2136. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2137. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2138. ac_config_headers="$ac_config_headers config.h"
  2139. ac_aux_dir=
  2140. for ac_dir in tools "$srcdir"/tools; do
  2141. if test -f "$ac_dir/install-sh"; then
  2142. ac_aux_dir=$ac_dir
  2143. ac_install_sh="$ac_aux_dir/install-sh -c"
  2144. break
  2145. elif test -f "$ac_dir/install.sh"; then
  2146. ac_aux_dir=$ac_dir
  2147. ac_install_sh="$ac_aux_dir/install.sh -c"
  2148. break
  2149. elif test -f "$ac_dir/shtool"; then
  2150. ac_aux_dir=$ac_dir
  2151. ac_install_sh="$ac_aux_dir/shtool install -c"
  2152. break
  2153. fi
  2154. done
  2155. if test -z "$ac_aux_dir"; then
  2156. as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
  2157. fi
  2158. # These three variables are undocumented and unsupported,
  2159. # and are intended to be withdrawn in a future Autoconf release.
  2160. # They can cause serious problems if a builder's source tree is in a directory
  2161. # whose full name contains unusual characters.
  2162. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2163. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2164. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2165. # Make sure we can run config.sub.
  2166. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2167. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2169. $as_echo_n "checking build system type... " >&6; }
  2170. if ${ac_cv_build+:} false; then :
  2171. $as_echo_n "(cached) " >&6
  2172. else
  2173. ac_build_alias=$build_alias
  2174. test "x$ac_build_alias" = x &&
  2175. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2176. test "x$ac_build_alias" = x &&
  2177. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2178. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2179. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2180. fi
  2181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2182. $as_echo "$ac_cv_build" >&6; }
  2183. case $ac_cv_build in
  2184. *-*-*) ;;
  2185. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2186. esac
  2187. build=$ac_cv_build
  2188. ac_save_IFS=$IFS; IFS='-'
  2189. set x $ac_cv_build
  2190. shift
  2191. build_cpu=$1
  2192. build_vendor=$2
  2193. shift; shift
  2194. # Remember, the first character of IFS is used to create $*,
  2195. # except with old shells:
  2196. build_os=$*
  2197. IFS=$ac_save_IFS
  2198. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2200. $as_echo_n "checking host system type... " >&6; }
  2201. if ${ac_cv_host+:} false; then :
  2202. $as_echo_n "(cached) " >&6
  2203. else
  2204. if test "x$host_alias" = x; then
  2205. ac_cv_host=$ac_cv_build
  2206. else
  2207. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2208. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2209. fi
  2210. fi
  2211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2212. $as_echo "$ac_cv_host" >&6; }
  2213. case $ac_cv_host in
  2214. *-*-*) ;;
  2215. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2216. esac
  2217. host=$ac_cv_host
  2218. ac_save_IFS=$IFS; IFS='-'
  2219. set x $ac_cv_host
  2220. shift
  2221. host_cpu=$1
  2222. host_vendor=$2
  2223. shift; shift
  2224. # Remember, the first character of IFS is used to create $*,
  2225. # except with old shells:
  2226. host_os=$*
  2227. IFS=$ac_save_IFS
  2228. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2229. HOST_TYPE=$host
  2230. cat >>confdefs.h <<_ACEOF
  2231. #define HOST_TYPE "$host"
  2232. _ACEOF
  2233. ac_ext=c
  2234. ac_cpp='$CPP $CPPFLAGS'
  2235. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2236. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2237. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2238. if test -n "$ac_tool_prefix"; then
  2239. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2240. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2242. $as_echo_n "checking for $ac_word... " >&6; }
  2243. if ${ac_cv_prog_CC+:} false; then :
  2244. $as_echo_n "(cached) " >&6
  2245. else
  2246. if test -n "$CC"; then
  2247. ac_cv_prog_CC="$CC" # Let the user override the test.
  2248. else
  2249. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2250. for as_dir in $PATH
  2251. do
  2252. IFS=$as_save_IFS
  2253. test -z "$as_dir" && as_dir=.
  2254. for ac_exec_ext in '' $ac_executable_extensions; do
  2255. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2256. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2257. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2258. break 2
  2259. fi
  2260. done
  2261. done
  2262. IFS=$as_save_IFS
  2263. fi
  2264. fi
  2265. CC=$ac_cv_prog_CC
  2266. if test -n "$CC"; then
  2267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2268. $as_echo "$CC" >&6; }
  2269. else
  2270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2271. $as_echo "no" >&6; }
  2272. fi
  2273. fi
  2274. if test -z "$ac_cv_prog_CC"; then
  2275. ac_ct_CC=$CC
  2276. # Extract the first word of "gcc", so it can be a program name with args.
  2277. set dummy gcc; ac_word=$2
  2278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2279. $as_echo_n "checking for $ac_word... " >&6; }
  2280. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2281. $as_echo_n "(cached) " >&6
  2282. else
  2283. if test -n "$ac_ct_CC"; then
  2284. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2285. else
  2286. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2287. for as_dir in $PATH
  2288. do
  2289. IFS=$as_save_IFS
  2290. test -z "$as_dir" && as_dir=.
  2291. for ac_exec_ext in '' $ac_executable_extensions; do
  2292. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2293. ac_cv_prog_ac_ct_CC="gcc"
  2294. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2295. break 2
  2296. fi
  2297. done
  2298. done
  2299. IFS=$as_save_IFS
  2300. fi
  2301. fi
  2302. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2303. if test -n "$ac_ct_CC"; then
  2304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2305. $as_echo "$ac_ct_CC" >&6; }
  2306. else
  2307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2308. $as_echo "no" >&6; }
  2309. fi
  2310. if test "x$ac_ct_CC" = x; then
  2311. CC=""
  2312. else
  2313. case $cross_compiling:$ac_tool_warned in
  2314. yes:)
  2315. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2316. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2317. ac_tool_warned=yes ;;
  2318. esac
  2319. CC=$ac_ct_CC
  2320. fi
  2321. else
  2322. CC="$ac_cv_prog_CC"
  2323. fi
  2324. if test -z "$CC"; then
  2325. if test -n "$ac_tool_prefix"; then
  2326. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2327. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2329. $as_echo_n "checking for $ac_word... " >&6; }
  2330. if ${ac_cv_prog_CC+:} false; then :
  2331. $as_echo_n "(cached) " >&6
  2332. else
  2333. if test -n "$CC"; then
  2334. ac_cv_prog_CC="$CC" # Let the user override the test.
  2335. else
  2336. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2337. for as_dir in $PATH
  2338. do
  2339. IFS=$as_save_IFS
  2340. test -z "$as_dir" && as_dir=.
  2341. for ac_exec_ext in '' $ac_executable_extensions; do
  2342. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2343. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2344. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2345. break 2
  2346. fi
  2347. done
  2348. done
  2349. IFS=$as_save_IFS
  2350. fi
  2351. fi
  2352. CC=$ac_cv_prog_CC
  2353. if test -n "$CC"; then
  2354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2355. $as_echo "$CC" >&6; }
  2356. else
  2357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2358. $as_echo "no" >&6; }
  2359. fi
  2360. fi
  2361. fi
  2362. if test -z "$CC"; then
  2363. # Extract the first word of "cc", so it can be a program name with args.
  2364. set dummy cc; ac_word=$2
  2365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2366. $as_echo_n "checking for $ac_word... " >&6; }
  2367. if ${ac_cv_prog_CC+:} false; then :
  2368. $as_echo_n "(cached) " >&6
  2369. else
  2370. if test -n "$CC"; then
  2371. ac_cv_prog_CC="$CC" # Let the user override the test.
  2372. else
  2373. ac_prog_rejected=no
  2374. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2375. for as_dir in $PATH
  2376. do
  2377. IFS=$as_save_IFS
  2378. test -z "$as_dir" && as_dir=.
  2379. for ac_exec_ext in '' $ac_executable_extensions; do
  2380. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2381. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2382. ac_prog_rejected=yes
  2383. continue
  2384. fi
  2385. ac_cv_prog_CC="cc"
  2386. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2387. break 2
  2388. fi
  2389. done
  2390. done
  2391. IFS=$as_save_IFS
  2392. if test $ac_prog_rejected = yes; then
  2393. # We found a bogon in the path, so make sure we never use it.
  2394. set dummy $ac_cv_prog_CC
  2395. shift
  2396. if test $# != 0; then
  2397. # We chose a different compiler from the bogus one.
  2398. # However, it has the same basename, so the bogon will be chosen
  2399. # first if we set CC to just the basename; use the full file name.
  2400. shift
  2401. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2402. fi
  2403. fi
  2404. fi
  2405. fi
  2406. CC=$ac_cv_prog_CC
  2407. if test -n "$CC"; then
  2408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2409. $as_echo "$CC" >&6; }
  2410. else
  2411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2412. $as_echo "no" >&6; }
  2413. fi
  2414. fi
  2415. if test -z "$CC"; then
  2416. if test -n "$ac_tool_prefix"; then
  2417. for ac_prog in cl.exe
  2418. do
  2419. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2420. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2422. $as_echo_n "checking for $ac_word... " >&6; }
  2423. if ${ac_cv_prog_CC+:} false; then :
  2424. $as_echo_n "(cached) " >&6
  2425. else
  2426. if test -n "$CC"; then
  2427. ac_cv_prog_CC="$CC" # Let the user override the test.
  2428. else
  2429. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2430. for as_dir in $PATH
  2431. do
  2432. IFS=$as_save_IFS
  2433. test -z "$as_dir" && as_dir=.
  2434. for ac_exec_ext in '' $ac_executable_extensions; do
  2435. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2436. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2437. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2438. break 2
  2439. fi
  2440. done
  2441. done
  2442. IFS=$as_save_IFS
  2443. fi
  2444. fi
  2445. CC=$ac_cv_prog_CC
  2446. if test -n "$CC"; then
  2447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2448. $as_echo "$CC" >&6; }
  2449. else
  2450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2451. $as_echo "no" >&6; }
  2452. fi
  2453. test -n "$CC" && break
  2454. done
  2455. fi
  2456. if test -z "$CC"; then
  2457. ac_ct_CC=$CC
  2458. for ac_prog in cl.exe
  2459. do
  2460. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2461. set dummy $ac_prog; ac_word=$2
  2462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2463. $as_echo_n "checking for $ac_word... " >&6; }
  2464. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2465. $as_echo_n "(cached) " >&6
  2466. else
  2467. if test -n "$ac_ct_CC"; then
  2468. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2469. else
  2470. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2471. for as_dir in $PATH
  2472. do
  2473. IFS=$as_save_IFS
  2474. test -z "$as_dir" && as_dir=.
  2475. for ac_exec_ext in '' $ac_executable_extensions; do
  2476. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2477. ac_cv_prog_ac_ct_CC="$ac_prog"
  2478. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2479. break 2
  2480. fi
  2481. done
  2482. done
  2483. IFS=$as_save_IFS
  2484. fi
  2485. fi
  2486. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2487. if test -n "$ac_ct_CC"; then
  2488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2489. $as_echo "$ac_ct_CC" >&6; }
  2490. else
  2491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2492. $as_echo "no" >&6; }
  2493. fi
  2494. test -n "$ac_ct_CC" && break
  2495. done
  2496. if test "x$ac_ct_CC" = x; then
  2497. CC=""
  2498. else
  2499. case $cross_compiling:$ac_tool_warned in
  2500. yes:)
  2501. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2502. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2503. ac_tool_warned=yes ;;
  2504. esac
  2505. CC=$ac_ct_CC
  2506. fi
  2507. fi
  2508. fi
  2509. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2510. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2511. as_fn_error $? "no acceptable C compiler found in \$PATH
  2512. See \`config.log' for more details" "$LINENO" 5; }
  2513. # Provide some information about the compiler.
  2514. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2515. set X $ac_compile
  2516. ac_compiler=$2
  2517. for ac_option in --version -v -V -qversion; do
  2518. { { ac_try="$ac_compiler $ac_option >&5"
  2519. case "(($ac_try" in
  2520. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2521. *) ac_try_echo=$ac_try;;
  2522. esac
  2523. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2524. $as_echo "$ac_try_echo"; } >&5
  2525. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2526. ac_status=$?
  2527. if test -s conftest.err; then
  2528. sed '10a\
  2529. ... rest of stderr output deleted ...
  2530. 10q' conftest.err >conftest.er1
  2531. cat conftest.er1 >&5
  2532. fi
  2533. rm -f conftest.er1 conftest.err
  2534. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2535. test $ac_status = 0; }
  2536. done
  2537. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2538. /* end confdefs.h. */
  2539. int
  2540. main ()
  2541. {
  2542. ;
  2543. return 0;
  2544. }
  2545. _ACEOF
  2546. ac_clean_files_save=$ac_clean_files
  2547. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2548. # Try to create an executable without -o first, disregard a.out.
  2549. # It will help us diagnose broken compilers, and finding out an intuition
  2550. # of exeext.
  2551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2552. $as_echo_n "checking whether the C compiler works... " >&6; }
  2553. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2554. # The possible output files:
  2555. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2556. ac_rmfiles=
  2557. for ac_file in $ac_files
  2558. do
  2559. case $ac_file in
  2560. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2561. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2562. esac
  2563. done
  2564. rm -f $ac_rmfiles
  2565. if { { ac_try="$ac_link_default"
  2566. case "(($ac_try" in
  2567. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2568. *) ac_try_echo=$ac_try;;
  2569. esac
  2570. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2571. $as_echo "$ac_try_echo"; } >&5
  2572. (eval "$ac_link_default") 2>&5
  2573. ac_status=$?
  2574. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2575. test $ac_status = 0; }; then :
  2576. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2577. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2578. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2579. # so that the user can short-circuit this test for compilers unknown to
  2580. # Autoconf.
  2581. for ac_file in $ac_files ''
  2582. do
  2583. test -f "$ac_file" || continue
  2584. case $ac_file in
  2585. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2586. ;;
  2587. [ab].out )
  2588. # We found the default executable, but exeext='' is most
  2589. # certainly right.
  2590. break;;
  2591. *.* )
  2592. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2593. then :; else
  2594. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2595. fi
  2596. # We set ac_cv_exeext here because the later test for it is not
  2597. # safe: cross compilers may not add the suffix if given an `-o'
  2598. # argument, so we may need to know it at that point already.
  2599. # Even if this section looks crufty: it has the advantage of
  2600. # actually working.
  2601. break;;
  2602. * )
  2603. break;;
  2604. esac
  2605. done
  2606. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2607. else
  2608. ac_file=''
  2609. fi
  2610. if test -z "$ac_file"; then :
  2611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2612. $as_echo "no" >&6; }
  2613. $as_echo "$as_me: failed program was:" >&5
  2614. sed 's/^/| /' conftest.$ac_ext >&5
  2615. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2616. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2617. as_fn_error 77 "C compiler cannot create executables
  2618. See \`config.log' for more details" "$LINENO" 5; }
  2619. else
  2620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2621. $as_echo "yes" >&6; }
  2622. fi
  2623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2624. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2626. $as_echo "$ac_file" >&6; }
  2627. ac_exeext=$ac_cv_exeext
  2628. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2629. ac_clean_files=$ac_clean_files_save
  2630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2631. $as_echo_n "checking for suffix of executables... " >&6; }
  2632. if { { ac_try="$ac_link"
  2633. case "(($ac_try" in
  2634. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2635. *) ac_try_echo=$ac_try;;
  2636. esac
  2637. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2638. $as_echo "$ac_try_echo"; } >&5
  2639. (eval "$ac_link") 2>&5
  2640. ac_status=$?
  2641. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2642. test $ac_status = 0; }; then :
  2643. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2644. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2645. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2646. # `rm'.
  2647. for ac_file in conftest.exe conftest conftest.*; do
  2648. test -f "$ac_file" || continue
  2649. case $ac_file in
  2650. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2651. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2652. break;;
  2653. * ) break;;
  2654. esac
  2655. done
  2656. else
  2657. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2658. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2659. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2660. See \`config.log' for more details" "$LINENO" 5; }
  2661. fi
  2662. rm -f conftest conftest$ac_cv_exeext
  2663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2664. $as_echo "$ac_cv_exeext" >&6; }
  2665. rm -f conftest.$ac_ext
  2666. EXEEXT=$ac_cv_exeext
  2667. ac_exeext=$EXEEXT
  2668. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2669. /* end confdefs.h. */
  2670. #include <stdio.h>
  2671. int
  2672. main ()
  2673. {
  2674. FILE *f = fopen ("conftest.out", "w");
  2675. return ferror (f) || fclose (f) != 0;
  2676. ;
  2677. return 0;
  2678. }
  2679. _ACEOF
  2680. ac_clean_files="$ac_clean_files conftest.out"
  2681. # Check that the compiler produces executables we can run. If not, either
  2682. # the compiler is broken, or we cross compile.
  2683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2684. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2685. if test "$cross_compiling" != yes; then
  2686. { { ac_try="$ac_link"
  2687. case "(($ac_try" in
  2688. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2689. *) ac_try_echo=$ac_try;;
  2690. esac
  2691. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2692. $as_echo "$ac_try_echo"; } >&5
  2693. (eval "$ac_link") 2>&5
  2694. ac_status=$?
  2695. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2696. test $ac_status = 0; }
  2697. if { ac_try='./conftest$ac_cv_exeext'
  2698. { { case "(($ac_try" in
  2699. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2700. *) ac_try_echo=$ac_try;;
  2701. esac
  2702. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2703. $as_echo "$ac_try_echo"; } >&5
  2704. (eval "$ac_try") 2>&5
  2705. ac_status=$?
  2706. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2707. test $ac_status = 0; }; }; then
  2708. cross_compiling=no
  2709. else
  2710. if test "$cross_compiling" = maybe; then
  2711. cross_compiling=yes
  2712. else
  2713. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2714. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2715. as_fn_error $? "cannot run C compiled programs.
  2716. If you meant to cross compile, use \`--host'.
  2717. See \`config.log' for more details" "$LINENO" 5; }
  2718. fi
  2719. fi
  2720. fi
  2721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2722. $as_echo "$cross_compiling" >&6; }
  2723. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2724. ac_clean_files=$ac_clean_files_save
  2725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2726. $as_echo_n "checking for suffix of object files... " >&6; }
  2727. if ${ac_cv_objext+:} false; then :
  2728. $as_echo_n "(cached) " >&6
  2729. else
  2730. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2731. /* end confdefs.h. */
  2732. int
  2733. main ()
  2734. {
  2735. ;
  2736. return 0;
  2737. }
  2738. _ACEOF
  2739. rm -f conftest.o conftest.obj
  2740. if { { ac_try="$ac_compile"
  2741. case "(($ac_try" in
  2742. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2743. *) ac_try_echo=$ac_try;;
  2744. esac
  2745. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2746. $as_echo "$ac_try_echo"; } >&5
  2747. (eval "$ac_compile") 2>&5
  2748. ac_status=$?
  2749. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2750. test $ac_status = 0; }; then :
  2751. for ac_file in conftest.o conftest.obj conftest.*; do
  2752. test -f "$ac_file" || continue;
  2753. case $ac_file in
  2754. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2755. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2756. break;;
  2757. esac
  2758. done
  2759. else
  2760. $as_echo "$as_me: failed program was:" >&5
  2761. sed 's/^/| /' conftest.$ac_ext >&5
  2762. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2763. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2764. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2765. See \`config.log' for more details" "$LINENO" 5; }
  2766. fi
  2767. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2768. fi
  2769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2770. $as_echo "$ac_cv_objext" >&6; }
  2771. OBJEXT=$ac_cv_objext
  2772. ac_objext=$OBJEXT
  2773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2774. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2775. if ${ac_cv_c_compiler_gnu+:} false; then :
  2776. $as_echo_n "(cached) " >&6
  2777. else
  2778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2779. /* end confdefs.h. */
  2780. int
  2781. main ()
  2782. {
  2783. #ifndef __GNUC__
  2784. choke me
  2785. #endif
  2786. ;
  2787. return 0;
  2788. }
  2789. _ACEOF
  2790. if ac_fn_c_try_compile "$LINENO"; then :
  2791. ac_compiler_gnu=yes
  2792. else
  2793. ac_compiler_gnu=no
  2794. fi
  2795. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2796. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2797. fi
  2798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2799. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2800. if test $ac_compiler_gnu = yes; then
  2801. GCC=yes
  2802. else
  2803. GCC=
  2804. fi
  2805. ac_test_CFLAGS=${CFLAGS+set}
  2806. ac_save_CFLAGS=$CFLAGS
  2807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2808. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2809. if ${ac_cv_prog_cc_g+:} false; then :
  2810. $as_echo_n "(cached) " >&6
  2811. else
  2812. ac_save_c_werror_flag=$ac_c_werror_flag
  2813. ac_c_werror_flag=yes
  2814. ac_cv_prog_cc_g=no
  2815. CFLAGS="-g"
  2816. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2817. /* end confdefs.h. */
  2818. int
  2819. main ()
  2820. {
  2821. ;
  2822. return 0;
  2823. }
  2824. _ACEOF
  2825. if ac_fn_c_try_compile "$LINENO"; then :
  2826. ac_cv_prog_cc_g=yes
  2827. else
  2828. CFLAGS=""
  2829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2830. /* end confdefs.h. */
  2831. int
  2832. main ()
  2833. {
  2834. ;
  2835. return 0;
  2836. }
  2837. _ACEOF
  2838. if ac_fn_c_try_compile "$LINENO"; then :
  2839. else
  2840. ac_c_werror_flag=$ac_save_c_werror_flag
  2841. CFLAGS="-g"
  2842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2843. /* end confdefs.h. */
  2844. int
  2845. main ()
  2846. {
  2847. ;
  2848. return 0;
  2849. }
  2850. _ACEOF
  2851. if ac_fn_c_try_compile "$LINENO"; then :
  2852. ac_cv_prog_cc_g=yes
  2853. fi
  2854. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2855. fi
  2856. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2857. fi
  2858. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2859. ac_c_werror_flag=$ac_save_c_werror_flag
  2860. fi
  2861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2862. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2863. if test "$ac_test_CFLAGS" = set; then
  2864. CFLAGS=$ac_save_CFLAGS
  2865. elif test $ac_cv_prog_cc_g = yes; then
  2866. if test "$GCC" = yes; then
  2867. CFLAGS="-g -O2"
  2868. else
  2869. CFLAGS="-g"
  2870. fi
  2871. else
  2872. if test "$GCC" = yes; then
  2873. CFLAGS="-O2"
  2874. else
  2875. CFLAGS=
  2876. fi
  2877. fi
  2878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2879. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2880. if ${ac_cv_prog_cc_c89+:} false; then :
  2881. $as_echo_n "(cached) " >&6
  2882. else
  2883. ac_cv_prog_cc_c89=no
  2884. ac_save_CC=$CC
  2885. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2886. /* end confdefs.h. */
  2887. #include <stdarg.h>
  2888. #include <stdio.h>
  2889. struct stat;
  2890. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2891. struct buf { int x; };
  2892. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2893. static char *e (p, i)
  2894. char **p;
  2895. int i;
  2896. {
  2897. return p[i];
  2898. }
  2899. static char *f (char * (*g) (char **, int), char **p, ...)
  2900. {
  2901. char *s;
  2902. va_list v;
  2903. va_start (v,p);
  2904. s = g (p, va_arg (v,int));
  2905. va_end (v);
  2906. return s;
  2907. }
  2908. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2909. function prototypes and stuff, but not '\xHH' hex character constants.
  2910. These don't provoke an error unfortunately, instead are silently treated
  2911. as 'x'. The following induces an error, until -std is added to get
  2912. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2913. array size at least. It's necessary to write '\x00'==0 to get something
  2914. that's true only with -std. */
  2915. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2916. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2917. inside strings and character constants. */
  2918. #define FOO(x) 'x'
  2919. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2920. int test (int i, double x);
  2921. struct s1 {int (*f) (int a);};
  2922. struct s2 {int (*f) (double a);};
  2923. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2924. int argc;
  2925. char **argv;
  2926. int
  2927. main ()
  2928. {
  2929. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2930. ;
  2931. return 0;
  2932. }
  2933. _ACEOF
  2934. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2935. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2936. do
  2937. CC="$ac_save_CC $ac_arg"
  2938. if ac_fn_c_try_compile "$LINENO"; then :
  2939. ac_cv_prog_cc_c89=$ac_arg
  2940. fi
  2941. rm -f core conftest.err conftest.$ac_objext
  2942. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2943. done
  2944. rm -f conftest.$ac_ext
  2945. CC=$ac_save_CC
  2946. fi
  2947. # AC_CACHE_VAL
  2948. case "x$ac_cv_prog_cc_c89" in
  2949. x)
  2950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  2951. $as_echo "none needed" >&6; } ;;
  2952. xno)
  2953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  2954. $as_echo "unsupported" >&6; } ;;
  2955. *)
  2956. CC="$CC $ac_cv_prog_cc_c89"
  2957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  2958. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  2959. esac
  2960. if test "x$ac_cv_prog_cc_c89" != xno; then :
  2961. fi
  2962. ac_ext=c
  2963. ac_cpp='$CPP $CPPFLAGS'
  2964. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2965. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2966. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2967. # Find a good install program. We prefer a C program (faster),
  2968. # so one script is as good as another. But avoid the broken or
  2969. # incompatible versions:
  2970. # SysV /etc/install, /usr/sbin/install
  2971. # SunOS /usr/etc/install
  2972. # IRIX /sbin/install
  2973. # AIX /bin/install
  2974. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2975. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2976. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2977. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2978. # OS/2's system install, which has a completely different semantic
  2979. # ./install, which can be erroneously created by make from ./install.sh.
  2980. # Reject install programs that cannot install multiple files.
  2981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2982. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2983. if test -z "$INSTALL"; then
  2984. if ${ac_cv_path_install+:} false; then :
  2985. $as_echo_n "(cached) " >&6
  2986. else
  2987. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2988. for as_dir in $PATH
  2989. do
  2990. IFS=$as_save_IFS
  2991. test -z "$as_dir" && as_dir=.
  2992. # Account for people who put trailing slashes in PATH elements.
  2993. case $as_dir/ in #((
  2994. ./ | .// | /[cC]/* | \
  2995. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2996. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2997. /usr/ucb/* ) ;;
  2998. *)
  2999. # OSF1 and SCO ODT 3.0 have their own names for install.
  3000. # Don't use installbsd from OSF since it installs stuff as root
  3001. # by default.
  3002. for ac_prog in ginstall scoinst install; do
  3003. for ac_exec_ext in '' $ac_executable_extensions; do
  3004. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3005. if test $ac_prog = install &&
  3006. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3007. # AIX install. It has an incompatible calling convention.
  3008. :
  3009. elif test $ac_prog = install &&
  3010. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3011. # program-specific install script used by HP pwplus--don't use.
  3012. :
  3013. else
  3014. rm -rf conftest.one conftest.two conftest.dir
  3015. echo one > conftest.one
  3016. echo two > conftest.two
  3017. mkdir conftest.dir
  3018. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3019. test -s conftest.one && test -s conftest.two &&
  3020. test -s conftest.dir/conftest.one &&
  3021. test -s conftest.dir/conftest.two
  3022. then
  3023. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3024. break 3
  3025. fi
  3026. fi
  3027. fi
  3028. done
  3029. done
  3030. ;;
  3031. esac
  3032. done
  3033. IFS=$as_save_IFS
  3034. rm -rf conftest.one conftest.two conftest.dir
  3035. fi
  3036. if test "${ac_cv_path_install+set}" = set; then
  3037. INSTALL=$ac_cv_path_install
  3038. else
  3039. # As a last resort, use the slow shell script. Don't cache a
  3040. # value for INSTALL within a source directory, because that will
  3041. # break other packages using the cache if that directory is
  3042. # removed, or if the value is a relative name.
  3043. INSTALL=$ac_install_sh
  3044. fi
  3045. fi
  3046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3047. $as_echo "$INSTALL" >&6; }
  3048. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3049. # It thinks the first close brace ends the variable substitution.
  3050. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3051. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3052. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3054. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3055. set x ${MAKE-make}
  3056. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3057. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3058. $as_echo_n "(cached) " >&6
  3059. else
  3060. cat >conftest.make <<\_ACEOF
  3061. SHELL = /bin/sh
  3062. all:
  3063. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3064. _ACEOF
  3065. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3066. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3067. *@@@%%%=?*=@@@%%%*)
  3068. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3069. *)
  3070. eval ac_cv_prog_make_${ac_make}_set=no;;
  3071. esac
  3072. rm -f conftest.make
  3073. fi
  3074. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3076. $as_echo "yes" >&6; }
  3077. SET_MAKE=
  3078. else
  3079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3080. $as_echo "no" >&6; }
  3081. SET_MAKE="MAKE=${MAKE-make}"
  3082. fi
  3083. # Check whether --with-libjpeg was given.
  3084. if test "${with_libjpeg+set}" = set; then :
  3085. withval=$with_libjpeg; if test $withval != yes; then
  3086. jpeginfo_cv_libjpeg=$withval
  3087. fi
  3088. if test -d "${jpeginfo_cv_libjpeg}/lib"; then
  3089. LDFLAGS="-L${jpeginfo_cv_libjpeg}/lib $LDFLAGS"
  3090. CPPFLAGS="$CPPFLAGS -I${jpeginfo_cv_libjpeg}/include"
  3091. else
  3092. LDFLAGS="-L${jpeginfo_cv_libjpeg} $LDFLAGS"
  3093. CPPFLAGS="$CPPFLAGS -I${jpeginfo_cv_libjpeg}"
  3094. fi
  3095. fi
  3096. arith_code=0
  3097. # Check whether --with-arith was given.
  3098. if test "${with_arith+set}" = set; then :
  3099. withval=$with_arith;
  3100. if test $withval == yes; then
  3101. arith_code=1
  3102. fi
  3103. fi
  3104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
  3105. $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
  3106. if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
  3107. $as_echo_n "(cached) " >&6
  3108. else
  3109. ac_check_lib_save_LIBS=$LIBS
  3110. LIBS="-ljpeg $LIBS"
  3111. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3112. /* end confdefs.h. */
  3113. /* Override any GCC internal prototype to avoid an error.
  3114. Use char because int might match the return type of a GCC
  3115. builtin and then its argument prototype would still apply. */
  3116. #ifdef __cplusplus
  3117. extern "C"
  3118. #endif
  3119. char jpeg_read_header ();
  3120. int
  3121. main ()
  3122. {
  3123. return jpeg_read_header ();
  3124. ;
  3125. return 0;
  3126. }
  3127. _ACEOF
  3128. if ac_fn_c_try_link "$LINENO"; then :
  3129. ac_cv_lib_jpeg_jpeg_read_header=yes
  3130. else
  3131. ac_cv_lib_jpeg_jpeg_read_header=no
  3132. fi
  3133. rm -f core conftest.err conftest.$ac_objext \
  3134. conftest$ac_exeext conftest.$ac_ext
  3135. LIBS=$ac_check_lib_save_LIBS
  3136. fi
  3137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
  3138. $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
  3139. if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
  3140. cat >>confdefs.h <<_ACEOF
  3141. #define HAVE_LIBJPEG 1
  3142. _ACEOF
  3143. LIBS="-ljpeg $LIBS"
  3144. else
  3145. echo "Cannot find libjpeg or you have too old version (v6 or later required)."
  3146. exit 1
  3147. fi
  3148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
  3149. $as_echo_n "checking for floor in -lm... " >&6; }
  3150. if ${ac_cv_lib_m_floor+:} false; then :
  3151. $as_echo_n "(cached) " >&6
  3152. else
  3153. ac_check_lib_save_LIBS=$LIBS
  3154. LIBS="-lm $LIBS"
  3155. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3156. /* end confdefs.h. */
  3157. /* Override any GCC internal prototype to avoid an error.
  3158. Use char because int might match the return type of a GCC
  3159. builtin and then its argument prototype would still apply. */
  3160. #ifdef __cplusplus
  3161. extern "C"
  3162. #endif
  3163. char floor ();
  3164. int
  3165. main ()
  3166. {
  3167. return floor ();
  3168. ;
  3169. return 0;
  3170. }
  3171. _ACEOF
  3172. if ac_fn_c_try_link "$LINENO"; then :
  3173. ac_cv_lib_m_floor=yes
  3174. else
  3175. ac_cv_lib_m_floor=no
  3176. fi
  3177. rm -f core conftest.err conftest.$ac_objext \
  3178. conftest$ac_exeext conftest.$ac_ext
  3179. LIBS=$ac_check_lib_save_LIBS
  3180. fi
  3181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
  3182. $as_echo "$ac_cv_lib_m_floor" >&6; }
  3183. if test "x$ac_cv_lib_m_floor" = xyes; then :
  3184. cat >>confdefs.h <<_ACEOF
  3185. #define HAVE_LIBM 1
  3186. _ACEOF
  3187. LIBS="-lm $LIBS"
  3188. fi
  3189. ac_ext=c
  3190. ac_cpp='$CPP $CPPFLAGS'
  3191. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3192. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3193. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3195. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3196. # On Suns, sometimes $CPP names a directory.
  3197. if test -n "$CPP" && test -d "$CPP"; then
  3198. CPP=
  3199. fi
  3200. if test -z "$CPP"; then
  3201. if ${ac_cv_prog_CPP+:} false; then :
  3202. $as_echo_n "(cached) " >&6
  3203. else
  3204. # Double quotes because CPP needs to be expanded
  3205. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3206. do
  3207. ac_preproc_ok=false
  3208. for ac_c_preproc_warn_flag in '' yes
  3209. do
  3210. # Use a header file that comes with gcc, so configuring glibc
  3211. # with a fresh cross-compiler works.
  3212. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3213. # <limits.h> exists even on freestanding compilers.
  3214. # On the NeXT, cc -E runs the code through the compiler's parser,
  3215. # not just through cpp. "Syntax error" is here to catch this case.
  3216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3217. /* end confdefs.h. */
  3218. #ifdef __STDC__
  3219. # include <limits.h>
  3220. #else
  3221. # include <assert.h>
  3222. #endif
  3223. Syntax error
  3224. _ACEOF
  3225. if ac_fn_c_try_cpp "$LINENO"; then :
  3226. else
  3227. # Broken: fails on valid input.
  3228. continue
  3229. fi
  3230. rm -f conftest.err conftest.i conftest.$ac_ext
  3231. # OK, works on sane cases. Now check whether nonexistent headers
  3232. # can be detected and how.
  3233. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3234. /* end confdefs.h. */
  3235. #include <ac_nonexistent.h>
  3236. _ACEOF
  3237. if ac_fn_c_try_cpp "$LINENO"; then :
  3238. # Broken: success on invalid input.
  3239. continue
  3240. else
  3241. # Passes both tests.
  3242. ac_preproc_ok=:
  3243. break
  3244. fi
  3245. rm -f conftest.err conftest.i conftest.$ac_ext
  3246. done
  3247. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3248. rm -f conftest.i conftest.err conftest.$ac_ext
  3249. if $ac_preproc_ok; then :
  3250. break
  3251. fi
  3252. done
  3253. ac_cv_prog_CPP=$CPP
  3254. fi
  3255. CPP=$ac_cv_prog_CPP
  3256. else
  3257. ac_cv_prog_CPP=$CPP
  3258. fi
  3259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3260. $as_echo "$CPP" >&6; }
  3261. ac_preproc_ok=false
  3262. for ac_c_preproc_warn_flag in '' yes
  3263. do
  3264. # Use a header file that comes with gcc, so configuring glibc
  3265. # with a fresh cross-compiler works.
  3266. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3267. # <limits.h> exists even on freestanding compilers.
  3268. # On the NeXT, cc -E runs the code through the compiler's parser,
  3269. # not just through cpp. "Syntax error" is here to catch this case.
  3270. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3271. /* end confdefs.h. */
  3272. #ifdef __STDC__
  3273. # include <limits.h>
  3274. #else
  3275. # include <assert.h>
  3276. #endif
  3277. Syntax error
  3278. _ACEOF
  3279. if ac_fn_c_try_cpp "$LINENO"; then :
  3280. else
  3281. # Broken: fails on valid input.
  3282. continue
  3283. fi
  3284. rm -f conftest.err conftest.i conftest.$ac_ext
  3285. # OK, works on sane cases. Now check whether nonexistent headers
  3286. # can be detected and how.
  3287. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3288. /* end confdefs.h. */
  3289. #include <ac_nonexistent.h>
  3290. _ACEOF
  3291. if ac_fn_c_try_cpp "$LINENO"; then :
  3292. # Broken: success on invalid input.
  3293. continue
  3294. else
  3295. # Passes both tests.
  3296. ac_preproc_ok=:
  3297. break
  3298. fi
  3299. rm -f conftest.err conftest.i conftest.$ac_ext
  3300. done
  3301. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3302. rm -f conftest.i conftest.err conftest.$ac_ext
  3303. if $ac_preproc_ok; then :
  3304. else
  3305. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3306. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3307. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3308. See \`config.log' for more details" "$LINENO" 5; }
  3309. fi
  3310. ac_ext=c
  3311. ac_cpp='$CPP $CPPFLAGS'
  3312. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3313. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3314. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3316. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3317. if ${ac_cv_path_GREP+:} false; then :
  3318. $as_echo_n "(cached) " >&6
  3319. else
  3320. if test -z "$GREP"; then
  3321. ac_path_GREP_found=false
  3322. # Loop through the user's path and test for each of PROGNAME-LIST
  3323. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3324. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3325. do
  3326. IFS=$as_save_IFS
  3327. test -z "$as_dir" && as_dir=.
  3328. for ac_prog in grep ggrep; do
  3329. for ac_exec_ext in '' $ac_executable_extensions; do
  3330. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3331. as_fn_executable_p "$ac_path_GREP" || continue
  3332. # Check for GNU ac_path_GREP and select it if it is found.
  3333. # Check for GNU $ac_path_GREP
  3334. case `"$ac_path_GREP" --version 2>&1` in
  3335. *GNU*)
  3336. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3337. *)
  3338. ac_count=0
  3339. $as_echo_n 0123456789 >"conftest.in"
  3340. while :
  3341. do
  3342. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3343. mv "conftest.tmp" "conftest.in"
  3344. cp "conftest.in" "conftest.nl"
  3345. $as_echo 'GREP' >> "conftest.nl"
  3346. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3347. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3348. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3349. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3350. # Best one so far, save it but keep looking for a better one
  3351. ac_cv_path_GREP="$ac_path_GREP"
  3352. ac_path_GREP_max=$ac_count
  3353. fi
  3354. # 10*(2^10) chars as input seems more than enough
  3355. test $ac_count -gt 10 && break
  3356. done
  3357. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3358. esac
  3359. $ac_path_GREP_found && break 3
  3360. done
  3361. done
  3362. done
  3363. IFS=$as_save_IFS
  3364. if test -z "$ac_cv_path_GREP"; then
  3365. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3366. fi
  3367. else
  3368. ac_cv_path_GREP=$GREP
  3369. fi
  3370. fi
  3371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3372. $as_echo "$ac_cv_path_GREP" >&6; }
  3373. GREP="$ac_cv_path_GREP"
  3374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3375. $as_echo_n "checking for egrep... " >&6; }
  3376. if ${ac_cv_path_EGREP+:} false; then :
  3377. $as_echo_n "(cached) " >&6
  3378. else
  3379. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3380. then ac_cv_path_EGREP="$GREP -E"
  3381. else
  3382. if test -z "$EGREP"; then
  3383. ac_path_EGREP_found=false
  3384. # Loop through the user's path and test for each of PROGNAME-LIST
  3385. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3386. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3387. do
  3388. IFS=$as_save_IFS
  3389. test -z "$as_dir" && as_dir=.
  3390. for ac_prog in egrep; do
  3391. for ac_exec_ext in '' $ac_executable_extensions; do
  3392. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3393. as_fn_executable_p "$ac_path_EGREP" || continue
  3394. # Check for GNU ac_path_EGREP and select it if it is found.
  3395. # Check for GNU $ac_path_EGREP
  3396. case `"$ac_path_EGREP" --version 2>&1` in
  3397. *GNU*)
  3398. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3399. *)
  3400. ac_count=0
  3401. $as_echo_n 0123456789 >"conftest.in"
  3402. while :
  3403. do
  3404. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3405. mv "conftest.tmp" "conftest.in"
  3406. cp "conftest.in" "conftest.nl"
  3407. $as_echo 'EGREP' >> "conftest.nl"
  3408. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3409. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3410. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3411. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3412. # Best one so far, save it but keep looking for a better one
  3413. ac_cv_path_EGREP="$ac_path_EGREP"
  3414. ac_path_EGREP_max=$ac_count
  3415. fi
  3416. # 10*(2^10) chars as input seems more than enough
  3417. test $ac_count -gt 10 && break
  3418. done
  3419. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3420. esac
  3421. $ac_path_EGREP_found && break 3
  3422. done
  3423. done
  3424. done
  3425. IFS=$as_save_IFS
  3426. if test -z "$ac_cv_path_EGREP"; then
  3427. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3428. fi
  3429. else
  3430. ac_cv_path_EGREP=$EGREP
  3431. fi
  3432. fi
  3433. fi
  3434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3435. $as_echo "$ac_cv_path_EGREP" >&6; }
  3436. EGREP="$ac_cv_path_EGREP"
  3437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3438. $as_echo_n "checking for ANSI C header files... " >&6; }
  3439. if ${ac_cv_header_stdc+:} false; then :
  3440. $as_echo_n "(cached) " >&6
  3441. else
  3442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3443. /* end confdefs.h. */
  3444. #include <stdlib.h>
  3445. #include <stdarg.h>
  3446. #include <string.h>
  3447. #include <float.h>
  3448. int
  3449. main ()
  3450. {
  3451. ;
  3452. return 0;
  3453. }
  3454. _ACEOF
  3455. if ac_fn_c_try_compile "$LINENO"; then :
  3456. ac_cv_header_stdc=yes
  3457. else
  3458. ac_cv_header_stdc=no
  3459. fi
  3460. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3461. if test $ac_cv_header_stdc = yes; then
  3462. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3464. /* end confdefs.h. */
  3465. #include <string.h>
  3466. _ACEOF
  3467. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3468. $EGREP "memchr" >/dev/null 2>&1; then :
  3469. else
  3470. ac_cv_header_stdc=no
  3471. fi
  3472. rm -f conftest*
  3473. fi
  3474. if test $ac_cv_header_stdc = yes; then
  3475. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3476. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3477. /* end confdefs.h. */
  3478. #include <stdlib.h>
  3479. _ACEOF
  3480. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3481. $EGREP "free" >/dev/null 2>&1; then :
  3482. else
  3483. ac_cv_header_stdc=no
  3484. fi
  3485. rm -f conftest*
  3486. fi
  3487. if test $ac_cv_header_stdc = yes; then
  3488. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3489. if test "$cross_compiling" = yes; then :
  3490. :
  3491. else
  3492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3493. /* end confdefs.h. */
  3494. #include <ctype.h>
  3495. #include <stdlib.h>
  3496. #if ((' ' & 0x0FF) == 0x020)
  3497. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3498. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3499. #else
  3500. # define ISLOWER(c) \
  3501. (('a' <= (c) && (c) <= 'i') \
  3502. || ('j' <= (c) && (c) <= 'r') \
  3503. || ('s' <= (c) && (c) <= 'z'))
  3504. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3505. #endif
  3506. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3507. int
  3508. main ()
  3509. {
  3510. int i;
  3511. for (i = 0; i < 256; i++)
  3512. if (XOR (islower (i), ISLOWER (i))
  3513. || toupper (i) != TOUPPER (i))
  3514. return 2;
  3515. return 0;
  3516. }
  3517. _ACEOF
  3518. if ac_fn_c_try_run "$LINENO"; then :
  3519. else
  3520. ac_cv_header_stdc=no
  3521. fi
  3522. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3523. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3524. fi
  3525. fi
  3526. fi
  3527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3528. $as_echo "$ac_cv_header_stdc" >&6; }
  3529. if test $ac_cv_header_stdc = yes; then
  3530. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3531. fi
  3532. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3533. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3534. inttypes.h stdint.h unistd.h
  3535. do :
  3536. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3537. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3538. "
  3539. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3540. cat >>confdefs.h <<_ACEOF
  3541. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3542. _ACEOF
  3543. fi
  3544. done
  3545. for ac_header in unistd.h getopt.h string.h libgen.h math.h fcntl.h sys/wait.h
  3546. do :
  3547. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3548. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  3549. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3550. cat >>confdefs.h <<_ACEOF
  3551. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3552. _ACEOF
  3553. fi
  3554. done
  3555. for ac_header in jpeglib.h
  3556. do :
  3557. ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
  3558. if test "x$ac_cv_header_jpeglib_h" = xyes; then :
  3559. cat >>confdefs.h <<_ACEOF
  3560. #define HAVE_JPEGLIB_H 1
  3561. _ACEOF
  3562. else
  3563. echo "Cannot find jpeglib.h You need libjpeg v6 (or later)."
  3564. exit 1
  3565. fi
  3566. done
  3567. # The cast to long int works around a bug in the HP C Compiler
  3568. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  3569. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  3570. # This bug is HP SR number 8606223364.
  3571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  3572. $as_echo_n "checking size of long... " >&6; }
  3573. if ${ac_cv_sizeof_long+:} false; then :
  3574. $as_echo_n "(cached) " >&6
  3575. else
  3576. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  3577. else
  3578. if test "$ac_cv_type_long" = yes; then
  3579. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3580. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3581. as_fn_error 77 "cannot compute sizeof (long)
  3582. See \`config.log' for more details" "$LINENO" 5; }
  3583. else
  3584. ac_cv_sizeof_long=0
  3585. fi
  3586. fi
  3587. fi
  3588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  3589. $as_echo "$ac_cv_sizeof_long" >&6; }
  3590. cat >>confdefs.h <<_ACEOF
  3591. #define SIZEOF_LONG $ac_cv_sizeof_long
  3592. _ACEOF
  3593. # The cast to long int works around a bug in the HP C Compiler
  3594. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  3595. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  3596. # This bug is HP SR number 8606223364.
  3597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  3598. $as_echo_n "checking size of int... " >&6; }
  3599. if ${ac_cv_sizeof_int+:} false; then :
  3600. $as_echo_n "(cached) " >&6
  3601. else
  3602. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  3603. else
  3604. if test "$ac_cv_type_int" = yes; then
  3605. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3606. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3607. as_fn_error 77 "cannot compute sizeof (int)
  3608. See \`config.log' for more details" "$LINENO" 5; }
  3609. else
  3610. ac_cv_sizeof_int=0
  3611. fi
  3612. fi
  3613. fi
  3614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  3615. $as_echo "$ac_cv_sizeof_int" >&6; }
  3616. cat >>confdefs.h <<_ACEOF
  3617. #define SIZEOF_INT $ac_cv_sizeof_int
  3618. _ACEOF
  3619. for ac_func in getopt_long
  3620. do :
  3621. ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
  3622. if test "x$ac_cv_func_getopt_long" = xyes; then :
  3623. cat >>confdefs.h <<_ACEOF
  3624. #define HAVE_GETOPT_LONG 1
  3625. _ACEOF
  3626. break
  3627. else
  3628. GNUGETOPT="getopt.o getopt1.o"
  3629. fi
  3630. done
  3631. for ac_func in mkstemps
  3632. do :
  3633. ac_fn_c_check_func "$LINENO" "mkstemps" "ac_cv_func_mkstemps"
  3634. if test "x$ac_cv_func_mkstemps" = xyes; then :
  3635. cat >>confdefs.h <<_ACEOF
  3636. #define HAVE_MKSTEMPS 1
  3637. _ACEOF
  3638. fi
  3639. done
  3640. for ac_func in labs
  3641. do :
  3642. ac_fn_c_check_func "$LINENO" "labs" "ac_cv_func_labs"
  3643. if test "x$ac_cv_func_labs" = xyes; then :
  3644. cat >>confdefs.h <<_ACEOF
  3645. #define HAVE_LABS 1
  3646. _ACEOF
  3647. fi
  3648. done
  3649. for ac_func in fileno
  3650. do :
  3651. ac_fn_c_check_func "$LINENO" "fileno" "ac_cv_func_fileno"
  3652. if test "x$ac_cv_func_fileno" = xyes; then :
  3653. cat >>confdefs.h <<_ACEOF
  3654. #define HAVE_FILENO 1
  3655. _ACEOF
  3656. fi
  3657. done
  3658. for ac_func in utimensat
  3659. do :
  3660. ac_fn_c_check_func "$LINENO" "utimensat" "ac_cv_func_utimensat"
  3661. if test "x$ac_cv_func_utimensat" = xyes; then :
  3662. cat >>confdefs.h <<_ACEOF
  3663. #define HAVE_UTIMENSAT 1
  3664. _ACEOF
  3665. fi
  3666. done
  3667. for ac_func in fork
  3668. do :
  3669. ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
  3670. if test "x$ac_cv_func_fork" = xyes; then :
  3671. cat >>confdefs.h <<_ACEOF
  3672. #define HAVE_FORK 1
  3673. _ACEOF
  3674. fi
  3675. done
  3676. for ac_func in wait
  3677. do :
  3678. ac_fn_c_check_func "$LINENO" "wait" "ac_cv_func_wait"
  3679. if test "x$ac_cv_func_wait" = xyes; then :
  3680. cat >>confdefs.h <<_ACEOF
  3681. #define HAVE_WAIT 1
  3682. _ACEOF
  3683. fi
  3684. done
  3685. ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
  3686. if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
  3687. cat >>confdefs.h <<_ACEOF
  3688. #define HAVE_STRUCT_STAT_ST_MTIM 1
  3689. _ACEOF
  3690. fi
  3691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken jmorecfg.h (METHODDEF)" >&5
  3692. $as_echo_n "checking for broken jmorecfg.h (METHODDEF)... " >&6; }
  3693. if ${jpeginfo_cv_broken_methoddef+:} false; then :
  3694. $as_echo_n "(cached) " >&6
  3695. else
  3696. if test "$cross_compiling" = yes; then :
  3697. jpeginfo_cv_broken_methoddef=no
  3698. else
  3699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3700. /* end confdefs.h. */
  3701. #include <stdio.h>
  3702. #include <jpeglib.h>
  3703. METHODDEF(void) foo(void) { };
  3704. int main(void)
  3705. {
  3706. return 0;
  3707. }
  3708. _ACEOF
  3709. if ac_fn_c_try_run "$LINENO"; then :
  3710. jpeginfo_cv_broken_methoddef=no
  3711. else
  3712. jpeginfo_cv_broken_methoddef=yes
  3713. fi
  3714. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3715. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3716. fi
  3717. fi
  3718. if test $jpeginfo_cv_broken_methoddef = yes; then
  3719. $as_echo "#define BROKEN_METHODDEF 1" >>confdefs.h
  3720. fi
  3721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jpeginfo_cv_broken_methoddef" >&5
  3722. $as_echo "$jpeginfo_cv_broken_methoddef" >&6; }
  3723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Arithmetic Coding support in JPEG library" >&5
  3724. $as_echo_n "checking Arithmetic Coding support in JPEG library... " >&6; }
  3725. if ${jpegoptim_cv_arith_code_support+:} false; then :
  3726. $as_echo_n "(cached) " >&6
  3727. else
  3728. if test "$cross_compiling" = yes; then :
  3729. jpegoptim_cv_arith_code_support=no
  3730. else
  3731. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3732. /* end confdefs.h. */
  3733. #include <stdio.h>
  3734. #include <jpeglib.h>
  3735. int main(void)
  3736. {
  3737. struct jpeg_compress_struct cinfo;
  3738. cinfo.arith_code=TRUE;
  3739. return 0;
  3740. }
  3741. _ACEOF
  3742. if ac_fn_c_try_run "$LINENO"; then :
  3743. jpegoptim_cv_arith_code_support=yes
  3744. else
  3745. jpegoptim_cv_arith_code_support=no
  3746. fi
  3747. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3748. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3749. fi
  3750. fi
  3751. if test $arith_code == 1 -a $jpegoptim_cv_arith_code_support = yes; then
  3752. arith_code_status="Enabled"
  3753. $as_echo "#define HAVE_ARITH_CODE 1" >>confdefs.h
  3754. else
  3755. arith_code_status="Disabled"
  3756. fi
  3757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jpegoptim_cv_arith_code_support" >&5
  3758. $as_echo "$jpegoptim_cv_arith_code_support" >&6; }
  3759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Extension settings in JPEG library" >&5
  3760. $as_echo_n "checking Extension settings in JPEG library... " >&6; }
  3761. if ${jpegoptim_cv_extension_settings+:} false; then :
  3762. $as_echo_n "(cached) " >&6
  3763. else
  3764. if test "$cross_compiling" = yes; then :
  3765. jpegoptim_cv_extension_settings=no
  3766. else
  3767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3768. /* end confdefs.h. */
  3769. #include <stdio.h>
  3770. #include <jpeglib.h>
  3771. int main(void)
  3772. {
  3773. struct jpeg_compress_struct cinfo;
  3774. if (jpeg_c_int_param_supported(&cinfo, JINT_DC_SCAN_OPT_MODE))
  3775. jpeg_c_set_int_param(&cinfo, JINT_DC_SCAN_OPT_MODE, 1);
  3776. return 0;
  3777. }
  3778. _ACEOF
  3779. if ac_fn_c_try_run "$LINENO"; then :
  3780. jpegoptim_cv_extension_settings=yes
  3781. else
  3782. jpegoptim_cv_extension_settings=no
  3783. fi
  3784. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3785. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3786. fi
  3787. fi
  3788. if test $jpegoptim_cv_extension_settings = yes; then
  3789. extension_settings_status="Present"
  3790. $as_echo "#define HAVE_JINT_DC_SCAN_OPT_MODE 1" >>confdefs.h
  3791. else
  3792. extension_settings_status="Absent"
  3793. fi
  3794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jpegoptim_cv_extension_settings" >&5
  3795. $as_echo "$jpegoptim_cv_extension_settings" >&6; }
  3796. echo "--------------------------------------------------"
  3797. echo "Extension settings: $extension_settings_status"
  3798. echo "Arithmetic coding: $arith_code_status"
  3799. if test $arith_code == 0 -a "$jpegoptim_cv_arith_code_support" == "yes"; then
  3800. echo "(use --with-arith to enable Arithmetic coding support)"
  3801. fi
  3802. echo "--------------------------------------------------"
  3803. ac_config_files="$ac_config_files Makefile"
  3804. cat >confcache <<\_ACEOF
  3805. # This file is a shell script that caches the results of configure
  3806. # tests run on this system so they can be shared between configure
  3807. # scripts and configure runs, see configure's option --config-cache.
  3808. # It is not useful on other systems. If it contains results you don't
  3809. # want to keep, you may remove or edit it.
  3810. #
  3811. # config.status only pays attention to the cache file if you give it
  3812. # the --recheck option to rerun configure.
  3813. #
  3814. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3815. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3816. # following values.
  3817. _ACEOF
  3818. # The following way of writing the cache mishandles newlines in values,
  3819. # but we know of no workaround that is simple, portable, and efficient.
  3820. # So, we kill variables containing newlines.
  3821. # Ultrix sh set writes to stderr and can't be redirected directly,
  3822. # and sets the high bit in the cache file unless we assign to the vars.
  3823. (
  3824. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3825. eval ac_val=\$$ac_var
  3826. case $ac_val in #(
  3827. *${as_nl}*)
  3828. case $ac_var in #(
  3829. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  3830. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  3831. esac
  3832. case $ac_var in #(
  3833. _ | IFS | as_nl) ;; #(
  3834. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  3835. *) { eval $ac_var=; unset $ac_var;} ;;
  3836. esac ;;
  3837. esac
  3838. done
  3839. (set) 2>&1 |
  3840. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3841. *${as_nl}ac_space=\ *)
  3842. # `set' does not quote correctly, so add quotes: double-quote
  3843. # substitution turns \\\\ into \\, and sed turns \\ into \.
  3844. sed -n \
  3845. "s/'/'\\\\''/g;
  3846. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3847. ;; #(
  3848. *)
  3849. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3850. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3851. ;;
  3852. esac |
  3853. sort
  3854. ) |
  3855. sed '
  3856. /^ac_cv_env_/b end
  3857. t clear
  3858. :clear
  3859. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3860. t end
  3861. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3862. :end' >>confcache
  3863. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3864. if test -w "$cache_file"; then
  3865. if test "x$cache_file" != "x/dev/null"; then
  3866. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  3867. $as_echo "$as_me: updating cache $cache_file" >&6;}
  3868. if test ! -f "$cache_file" || test -h "$cache_file"; then
  3869. cat confcache >"$cache_file"
  3870. else
  3871. case $cache_file in #(
  3872. */* | ?:*)
  3873. mv -f confcache "$cache_file"$$ &&
  3874. mv -f "$cache_file"$$ "$cache_file" ;; #(
  3875. *)
  3876. mv -f confcache "$cache_file" ;;
  3877. esac
  3878. fi
  3879. fi
  3880. else
  3881. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  3882. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3883. fi
  3884. fi
  3885. rm -f confcache
  3886. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  3887. # Let make expand exec_prefix.
  3888. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  3889. DEFS=-DHAVE_CONFIG_H
  3890. ac_libobjs=
  3891. ac_ltlibobjs=
  3892. U=
  3893. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  3894. # 1. Remove the extension, and $U if already installed.
  3895. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  3896. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  3897. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  3898. # will be set to the directory where LIBOBJS objects are built.
  3899. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  3900. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  3901. done
  3902. LIBOBJS=$ac_libobjs
  3903. LTLIBOBJS=$ac_ltlibobjs
  3904. : "${CONFIG_STATUS=./config.status}"
  3905. ac_write_fail=0
  3906. ac_clean_files_save=$ac_clean_files
  3907. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  3908. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  3909. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  3910. as_write_fail=0
  3911. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  3912. #! $SHELL
  3913. # Generated by $as_me.
  3914. # Run this file to recreate the current configuration.
  3915. # Compiler output produced by configure, useful for debugging
  3916. # configure, is in config.log if it exists.
  3917. debug=false
  3918. ac_cs_recheck=false
  3919. ac_cs_silent=false
  3920. SHELL=\${CONFIG_SHELL-$SHELL}
  3921. export SHELL
  3922. _ASEOF
  3923. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  3924. ## -------------------- ##
  3925. ## M4sh Initialization. ##
  3926. ## -------------------- ##
  3927. # Be more Bourne compatible
  3928. DUALCASE=1; export DUALCASE # for MKS sh
  3929. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  3930. emulate sh
  3931. NULLCMD=:
  3932. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  3933. # is contrary to our usage. Disable this feature.
  3934. alias -g '${1+"$@"}'='"$@"'
  3935. setopt NO_GLOB_SUBST
  3936. else
  3937. case `(set -o) 2>/dev/null` in #(
  3938. *posix*) :
  3939. set -o posix ;; #(
  3940. *) :
  3941. ;;
  3942. esac
  3943. fi
  3944. as_nl='
  3945. '
  3946. export as_nl
  3947. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  3948. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3949. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  3950. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  3951. # Prefer a ksh shell builtin over an external printf program on Solaris,
  3952. # but without wasting forks for bash or zsh.
  3953. if test -z "$BASH_VERSION$ZSH_VERSION" \
  3954. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  3955. as_echo='print -r --'
  3956. as_echo_n='print -rn --'
  3957. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  3958. as_echo='printf %s\n'
  3959. as_echo_n='printf %s'
  3960. else
  3961. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  3962. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  3963. as_echo_n='/usr/ucb/echo -n'
  3964. else
  3965. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  3966. as_echo_n_body='eval
  3967. arg=$1;
  3968. case $arg in #(
  3969. *"$as_nl"*)
  3970. expr "X$arg" : "X\\(.*\\)$as_nl";
  3971. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  3972. esac;
  3973. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  3974. '
  3975. export as_echo_n_body
  3976. as_echo_n='sh -c $as_echo_n_body as_echo'
  3977. fi
  3978. export as_echo_body
  3979. as_echo='sh -c $as_echo_body as_echo'
  3980. fi
  3981. # The user is always right.
  3982. if test "${PATH_SEPARATOR+set}" != set; then
  3983. PATH_SEPARATOR=:
  3984. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  3985. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  3986. PATH_SEPARATOR=';'
  3987. }
  3988. fi
  3989. # IFS
  3990. # We need space, tab and new line, in precisely that order. Quoting is
  3991. # there to prevent editors from complaining about space-tab.
  3992. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  3993. # splitting by setting IFS to empty value.)
  3994. IFS=" "" $as_nl"
  3995. # Find who we are. Look in the path if we contain no directory separator.
  3996. as_myself=
  3997. case $0 in #((
  3998. *[\\/]* ) as_myself=$0 ;;
  3999. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4000. for as_dir in $PATH
  4001. do
  4002. IFS=$as_save_IFS
  4003. test -z "$as_dir" && as_dir=.
  4004. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  4005. done
  4006. IFS=$as_save_IFS
  4007. ;;
  4008. esac
  4009. # We did not find ourselves, most probably we were run as `sh COMMAND'
  4010. # in which case we are not to be found in the path.
  4011. if test "x$as_myself" = x; then
  4012. as_myself=$0
  4013. fi
  4014. if test ! -f "$as_myself"; then
  4015. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  4016. exit 1
  4017. fi
  4018. # Unset variables that we do not need and which cause bugs (e.g. in
  4019. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  4020. # suppresses any "Segmentation fault" message there. '((' could
  4021. # trigger a bug in pdksh 5.2.14.
  4022. for as_var in BASH_ENV ENV MAIL MAILPATH
  4023. do eval test x\${$as_var+set} = xset \
  4024. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  4025. done
  4026. PS1='$ '
  4027. PS2='> '
  4028. PS4='+ '
  4029. # NLS nuisances.
  4030. LC_ALL=C
  4031. export LC_ALL
  4032. LANGUAGE=C
  4033. export LANGUAGE
  4034. # CDPATH.
  4035. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  4036. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  4037. # ----------------------------------------
  4038. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  4039. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  4040. # script with STATUS, using 1 if that was 0.
  4041. as_fn_error ()
  4042. {
  4043. as_status=$1; test $as_status -eq 0 && as_status=1
  4044. if test "$4"; then
  4045. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  4046. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  4047. fi
  4048. $as_echo "$as_me: error: $2" >&2
  4049. as_fn_exit $as_status
  4050. } # as_fn_error
  4051. # as_fn_set_status STATUS
  4052. # -----------------------
  4053. # Set $? to STATUS, without forking.
  4054. as_fn_set_status ()
  4055. {
  4056. return $1
  4057. } # as_fn_set_status
  4058. # as_fn_exit STATUS
  4059. # -----------------
  4060. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  4061. as_fn_exit ()
  4062. {
  4063. set +e
  4064. as_fn_set_status $1
  4065. exit $1
  4066. } # as_fn_exit
  4067. # as_fn_unset VAR
  4068. # ---------------
  4069. # Portably unset VAR.
  4070. as_fn_unset ()
  4071. {
  4072. { eval $1=; unset $1;}
  4073. }
  4074. as_unset=as_fn_unset
  4075. # as_fn_append VAR VALUE
  4076. # ----------------------
  4077. # Append the text in VALUE to the end of the definition contained in VAR. Take
  4078. # advantage of any shell optimizations that allow amortized linear growth over
  4079. # repeated appends, instead of the typical quadratic growth present in naive
  4080. # implementations.
  4081. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  4082. eval 'as_fn_append ()
  4083. {
  4084. eval $1+=\$2
  4085. }'
  4086. else
  4087. as_fn_append ()
  4088. {
  4089. eval $1=\$$1\$2
  4090. }
  4091. fi # as_fn_append
  4092. # as_fn_arith ARG...
  4093. # ------------------
  4094. # Perform arithmetic evaluation on the ARGs, and store the result in the
  4095. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  4096. # must be portable across $(()) and expr.
  4097. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  4098. eval 'as_fn_arith ()
  4099. {
  4100. as_val=$(( $* ))
  4101. }'
  4102. else
  4103. as_fn_arith ()
  4104. {
  4105. as_val=`expr "$@" || test $? -eq 1`
  4106. }
  4107. fi # as_fn_arith
  4108. if expr a : '\(a\)' >/dev/null 2>&1 &&
  4109. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  4110. as_expr=expr
  4111. else
  4112. as_expr=false
  4113. fi
  4114. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  4115. as_basename=basename
  4116. else
  4117. as_basename=false
  4118. fi
  4119. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  4120. as_dirname=dirname
  4121. else
  4122. as_dirname=false
  4123. fi
  4124. as_me=`$as_basename -- "$0" ||
  4125. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  4126. X"$0" : 'X\(//\)$' \| \
  4127. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  4128. $as_echo X/"$0" |
  4129. sed '/^.*\/\([^/][^/]*\)\/*$/{
  4130. s//\1/
  4131. q
  4132. }
  4133. /^X\/\(\/\/\)$/{
  4134. s//\1/
  4135. q
  4136. }
  4137. /^X\/\(\/\).*/{
  4138. s//\1/
  4139. q
  4140. }
  4141. s/.*/./; q'`
  4142. # Avoid depending upon Character Ranges.
  4143. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  4144. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  4145. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  4146. as_cr_digits='0123456789'
  4147. as_cr_alnum=$as_cr_Letters$as_cr_digits
  4148. ECHO_C= ECHO_N= ECHO_T=
  4149. case `echo -n x` in #(((((
  4150. -n*)
  4151. case `echo 'xy\c'` in
  4152. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  4153. xy) ECHO_C='\c';;
  4154. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  4155. ECHO_T=' ';;
  4156. esac;;
  4157. *)
  4158. ECHO_N='-n';;
  4159. esac
  4160. rm -f conf$$ conf$$.exe conf$$.file
  4161. if test -d conf$$.dir; then
  4162. rm -f conf$$.dir/conf$$.file
  4163. else
  4164. rm -f conf$$.dir
  4165. mkdir conf$$.dir 2>/dev/null
  4166. fi
  4167. if (echo >conf$$.file) 2>/dev/null; then
  4168. if ln -s conf$$.file conf$$ 2>/dev/null; then
  4169. as_ln_s='ln -s'
  4170. # ... but there are two gotchas:
  4171. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  4172. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  4173. # In both cases, we have to default to `cp -pR'.
  4174. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  4175. as_ln_s='cp -pR'
  4176. elif ln conf$$.file conf$$ 2>/dev/null; then
  4177. as_ln_s=ln
  4178. else
  4179. as_ln_s='cp -pR'
  4180. fi
  4181. else
  4182. as_ln_s='cp -pR'
  4183. fi
  4184. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  4185. rmdir conf$$.dir 2>/dev/null
  4186. # as_fn_mkdir_p
  4187. # -------------
  4188. # Create "$as_dir" as a directory, including parents if necessary.
  4189. as_fn_mkdir_p ()
  4190. {
  4191. case $as_dir in #(
  4192. -*) as_dir=./$as_dir;;
  4193. esac
  4194. test -d "$as_dir" || eval $as_mkdir_p || {
  4195. as_dirs=
  4196. while :; do
  4197. case $as_dir in #(
  4198. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  4199. *) as_qdir=$as_dir;;
  4200. esac
  4201. as_dirs="'$as_qdir' $as_dirs"
  4202. as_dir=`$as_dirname -- "$as_dir" ||
  4203. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  4204. X"$as_dir" : 'X\(//\)[^/]' \| \
  4205. X"$as_dir" : 'X\(//\)$' \| \
  4206. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  4207. $as_echo X"$as_dir" |
  4208. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  4209. s//\1/
  4210. q
  4211. }
  4212. /^X\(\/\/\)[^/].*/{
  4213. s//\1/
  4214. q
  4215. }
  4216. /^X\(\/\/\)$/{
  4217. s//\1/
  4218. q
  4219. }
  4220. /^X\(\/\).*/{
  4221. s//\1/
  4222. q
  4223. }
  4224. s/.*/./; q'`
  4225. test -d "$as_dir" && break
  4226. done
  4227. test -z "$as_dirs" || eval "mkdir $as_dirs"
  4228. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  4229. } # as_fn_mkdir_p
  4230. if mkdir -p . 2>/dev/null; then
  4231. as_mkdir_p='mkdir -p "$as_dir"'
  4232. else
  4233. test -d ./-p && rmdir ./-p
  4234. as_mkdir_p=false
  4235. fi
  4236. # as_fn_executable_p FILE
  4237. # -----------------------
  4238. # Test if FILE is an executable regular file.
  4239. as_fn_executable_p ()
  4240. {
  4241. test -f "$1" && test -x "$1"
  4242. } # as_fn_executable_p
  4243. as_test_x='test -x'
  4244. as_executable_p=as_fn_executable_p
  4245. # Sed expression to map a string onto a valid CPP name.
  4246. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  4247. # Sed expression to map a string onto a valid variable name.
  4248. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  4249. exec 6>&1
  4250. ## ----------------------------------- ##
  4251. ## Main body of $CONFIG_STATUS script. ##
  4252. ## ----------------------------------- ##
  4253. _ASEOF
  4254. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  4255. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4256. # Save the log message, to keep $0 and so on meaningful, and to
  4257. # report actual input values of CONFIG_FILES etc. instead of their
  4258. # values after options handling.
  4259. ac_log="
  4260. This file was extended by $as_me, which was
  4261. generated by GNU Autoconf 2.69. Invocation command line was
  4262. CONFIG_FILES = $CONFIG_FILES
  4263. CONFIG_HEADERS = $CONFIG_HEADERS
  4264. CONFIG_LINKS = $CONFIG_LINKS
  4265. CONFIG_COMMANDS = $CONFIG_COMMANDS
  4266. $ $0 $@
  4267. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  4268. "
  4269. _ACEOF
  4270. case $ac_config_files in *"
  4271. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  4272. esac
  4273. case $ac_config_headers in *"
  4274. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  4275. esac
  4276. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4277. # Files that config.status was made for.
  4278. config_files="$ac_config_files"
  4279. config_headers="$ac_config_headers"
  4280. _ACEOF
  4281. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4282. ac_cs_usage="\
  4283. \`$as_me' instantiates files and other configuration actions
  4284. from templates according to the current configuration. Unless the files
  4285. and actions are specified as TAGs, all are instantiated by default.
  4286. Usage: $0 [OPTION]... [TAG]...
  4287. -h, --help print this help, then exit
  4288. -V, --version print version number and configuration settings, then exit
  4289. --config print configuration, then exit
  4290. -q, --quiet, --silent
  4291. do not print progress messages
  4292. -d, --debug don't remove temporary files
  4293. --recheck update $as_me by reconfiguring in the same conditions
  4294. --file=FILE[:TEMPLATE]
  4295. instantiate the configuration file FILE
  4296. --header=FILE[:TEMPLATE]
  4297. instantiate the configuration header FILE
  4298. Configuration files:
  4299. $config_files
  4300. Configuration headers:
  4301. $config_headers
  4302. Report bugs to the package provider."
  4303. _ACEOF
  4304. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4305. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  4306. ac_cs_version="\\
  4307. config.status
  4308. configured by $0, generated by GNU Autoconf 2.69,
  4309. with options \\"\$ac_cs_config\\"
  4310. Copyright (C) 2012 Free Software Foundation, Inc.
  4311. This config.status script is free software; the Free Software Foundation
  4312. gives unlimited permission to copy, distribute and modify it."
  4313. ac_pwd='$ac_pwd'
  4314. srcdir='$srcdir'
  4315. INSTALL='$INSTALL'
  4316. test -n "\$AWK" || AWK=awk
  4317. _ACEOF
  4318. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4319. # The default lists apply if the user does not specify any file.
  4320. ac_need_defaults=:
  4321. while test $# != 0
  4322. do
  4323. case $1 in
  4324. --*=?*)
  4325. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  4326. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  4327. ac_shift=:
  4328. ;;
  4329. --*=)
  4330. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  4331. ac_optarg=
  4332. ac_shift=:
  4333. ;;
  4334. *)
  4335. ac_option=$1
  4336. ac_optarg=$2
  4337. ac_shift=shift
  4338. ;;
  4339. esac
  4340. case $ac_option in
  4341. # Handling of the options.
  4342. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  4343. ac_cs_recheck=: ;;
  4344. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  4345. $as_echo "$ac_cs_version"; exit ;;
  4346. --config | --confi | --conf | --con | --co | --c )
  4347. $as_echo "$ac_cs_config"; exit ;;
  4348. --debug | --debu | --deb | --de | --d | -d )
  4349. debug=: ;;
  4350. --file | --fil | --fi | --f )
  4351. $ac_shift
  4352. case $ac_optarg in
  4353. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  4354. '') as_fn_error $? "missing file argument" ;;
  4355. esac
  4356. as_fn_append CONFIG_FILES " '$ac_optarg'"
  4357. ac_need_defaults=false;;
  4358. --header | --heade | --head | --hea )
  4359. $ac_shift
  4360. case $ac_optarg in
  4361. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  4362. esac
  4363. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  4364. ac_need_defaults=false;;
  4365. --he | --h)
  4366. # Conflict between --help and --header
  4367. as_fn_error $? "ambiguous option: \`$1'
  4368. Try \`$0 --help' for more information.";;
  4369. --help | --hel | -h )
  4370. $as_echo "$ac_cs_usage"; exit ;;
  4371. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  4372. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  4373. ac_cs_silent=: ;;
  4374. # This is an error.
  4375. -*) as_fn_error $? "unrecognized option: \`$1'
  4376. Try \`$0 --help' for more information." ;;
  4377. *) as_fn_append ac_config_targets " $1"
  4378. ac_need_defaults=false ;;
  4379. esac
  4380. shift
  4381. done
  4382. ac_configure_extra_args=
  4383. if $ac_cs_silent; then
  4384. exec 6>/dev/null
  4385. ac_configure_extra_args="$ac_configure_extra_args --silent"
  4386. fi
  4387. _ACEOF
  4388. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4389. if \$ac_cs_recheck; then
  4390. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  4391. shift
  4392. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  4393. CONFIG_SHELL='$SHELL'
  4394. export CONFIG_SHELL
  4395. exec "\$@"
  4396. fi
  4397. _ACEOF
  4398. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4399. exec 5>>config.log
  4400. {
  4401. echo
  4402. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  4403. ## Running $as_me. ##
  4404. _ASBOX
  4405. $as_echo "$ac_log"
  4406. } >&5
  4407. _ACEOF
  4408. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4409. _ACEOF
  4410. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4411. # Handling of arguments.
  4412. for ac_config_target in $ac_config_targets
  4413. do
  4414. case $ac_config_target in
  4415. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  4416. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  4417. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  4418. esac
  4419. done
  4420. # If the user did not use the arguments to specify the items to instantiate,
  4421. # then the envvar interface is used. Set only those that are not.
  4422. # We use the long form for the default assignment because of an extremely
  4423. # bizarre bug on SunOS 4.1.3.
  4424. if $ac_need_defaults; then
  4425. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  4426. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  4427. fi
  4428. # Have a temporary directory for convenience. Make it in the build tree
  4429. # simply because there is no reason against having it here, and in addition,
  4430. # creating and moving files from /tmp can sometimes cause problems.
  4431. # Hook for its removal unless debugging.
  4432. # Note that there is a small window in which the directory will not be cleaned:
  4433. # after its creation but before its name has been assigned to `$tmp'.
  4434. $debug ||
  4435. {
  4436. tmp= ac_tmp=
  4437. trap 'exit_status=$?
  4438. : "${ac_tmp:=$tmp}"
  4439. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  4440. ' 0
  4441. trap 'as_fn_exit 1' 1 2 13 15
  4442. }
  4443. # Create a (secure) tmp directory for tmp files.
  4444. {
  4445. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  4446. test -d "$tmp"
  4447. } ||
  4448. {
  4449. tmp=./conf$$-$RANDOM
  4450. (umask 077 && mkdir "$tmp")
  4451. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  4452. ac_tmp=$tmp
  4453. # Set up the scripts for CONFIG_FILES section.
  4454. # No need to generate them if there are no CONFIG_FILES.
  4455. # This happens for instance with `./config.status config.h'.
  4456. if test -n "$CONFIG_FILES"; then
  4457. ac_cr=`echo X | tr X '\015'`
  4458. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  4459. # But we know of no other shell where ac_cr would be empty at this
  4460. # point, so we can use a bashism as a fallback.
  4461. if test "x$ac_cr" = x; then
  4462. eval ac_cr=\$\'\\r\'
  4463. fi
  4464. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  4465. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  4466. ac_cs_awk_cr='\\r'
  4467. else
  4468. ac_cs_awk_cr=$ac_cr
  4469. fi
  4470. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  4471. _ACEOF
  4472. {
  4473. echo "cat >conf$$subs.awk <<_ACEOF" &&
  4474. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  4475. echo "_ACEOF"
  4476. } >conf$$subs.sh ||
  4477. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  4478. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  4479. ac_delim='%!_!# '
  4480. for ac_last_try in false false false false false :; do
  4481. . ./conf$$subs.sh ||
  4482. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  4483. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  4484. if test $ac_delim_n = $ac_delim_num; then
  4485. break
  4486. elif $ac_last_try; then
  4487. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  4488. else
  4489. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  4490. fi
  4491. done
  4492. rm -f conf$$subs.sh
  4493. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4494. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  4495. _ACEOF
  4496. sed -n '
  4497. h
  4498. s/^/S["/; s/!.*/"]=/
  4499. p
  4500. g
  4501. s/^[^!]*!//
  4502. :repl
  4503. t repl
  4504. s/'"$ac_delim"'$//
  4505. t delim
  4506. :nl
  4507. h
  4508. s/\(.\{148\}\)..*/\1/
  4509. t more1
  4510. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  4511. p
  4512. n
  4513. b repl
  4514. :more1
  4515. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  4516. p
  4517. g
  4518. s/.\{148\}//
  4519. t nl
  4520. :delim
  4521. h
  4522. s/\(.\{148\}\)..*/\1/
  4523. t more2
  4524. s/["\\]/\\&/g; s/^/"/; s/$/"/
  4525. p
  4526. b
  4527. :more2
  4528. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  4529. p
  4530. g
  4531. s/.\{148\}//
  4532. t delim
  4533. ' <conf$$subs.awk | sed '
  4534. /^[^""]/{
  4535. N
  4536. s/\n//
  4537. }
  4538. ' >>$CONFIG_STATUS || ac_write_fail=1
  4539. rm -f conf$$subs.awk
  4540. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4541. _ACAWK
  4542. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  4543. for (key in S) S_is_set[key] = 1
  4544. FS = ""
  4545. }
  4546. {
  4547. line = $ 0
  4548. nfields = split(line, field, "@")
  4549. substed = 0
  4550. len = length(field[1])
  4551. for (i = 2; i < nfields; i++) {
  4552. key = field[i]
  4553. keylen = length(key)
  4554. if (S_is_set[key]) {
  4555. value = S[key]
  4556. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  4557. len += length(value) + length(field[++i])
  4558. substed = 1
  4559. } else
  4560. len += 1 + keylen
  4561. }
  4562. print line
  4563. }
  4564. _ACAWK
  4565. _ACEOF
  4566. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4567. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  4568. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  4569. else
  4570. cat
  4571. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  4572. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  4573. _ACEOF
  4574. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  4575. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  4576. # trailing colons and then remove the whole line if VPATH becomes empty
  4577. # (actually we leave an empty line to preserve line numbers).
  4578. if test "x$srcdir" = x.; then
  4579. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  4580. h
  4581. s///
  4582. s/^/:/
  4583. s/[ ]*$/:/
  4584. s/:\$(srcdir):/:/g
  4585. s/:\${srcdir}:/:/g
  4586. s/:@srcdir@:/:/g
  4587. s/^:*//
  4588. s/:*$//
  4589. x
  4590. s/\(=[ ]*\).*/\1/
  4591. G
  4592. s/\n//
  4593. s/^[^=]*=[ ]*$//
  4594. }'
  4595. fi
  4596. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4597. fi # test -n "$CONFIG_FILES"
  4598. # Set up the scripts for CONFIG_HEADERS section.
  4599. # No need to generate them if there are no CONFIG_HEADERS.
  4600. # This happens for instance with `./config.status Makefile'.
  4601. if test -n "$CONFIG_HEADERS"; then
  4602. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  4603. BEGIN {
  4604. _ACEOF
  4605. # Transform confdefs.h into an awk script `defines.awk', embedded as
  4606. # here-document in config.status, that substitutes the proper values into
  4607. # config.h.in to produce config.h.
  4608. # Create a delimiter string that does not exist in confdefs.h, to ease
  4609. # handling of long lines.
  4610. ac_delim='%!_!# '
  4611. for ac_last_try in false false :; do
  4612. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  4613. if test -z "$ac_tt"; then
  4614. break
  4615. elif $ac_last_try; then
  4616. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  4617. else
  4618. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  4619. fi
  4620. done
  4621. # For the awk script, D is an array of macro values keyed by name,
  4622. # likewise P contains macro parameters if any. Preserve backslash
  4623. # newline sequences.
  4624. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  4625. sed -n '
  4626. s/.\{148\}/&'"$ac_delim"'/g
  4627. t rset
  4628. :rset
  4629. s/^[ ]*#[ ]*define[ ][ ]*/ /
  4630. t def
  4631. d
  4632. :def
  4633. s/\\$//
  4634. t bsnl
  4635. s/["\\]/\\&/g
  4636. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  4637. D["\1"]=" \3"/p
  4638. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  4639. d
  4640. :bsnl
  4641. s/["\\]/\\&/g
  4642. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  4643. D["\1"]=" \3\\\\\\n"\\/p
  4644. t cont
  4645. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  4646. t cont
  4647. d
  4648. :cont
  4649. n
  4650. s/.\{148\}/&'"$ac_delim"'/g
  4651. t clear
  4652. :clear
  4653. s/\\$//
  4654. t bsnlc
  4655. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  4656. d
  4657. :bsnlc
  4658. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  4659. b cont
  4660. ' <confdefs.h | sed '
  4661. s/'"$ac_delim"'/"\\\
  4662. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  4663. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4664. for (key in D) D_is_set[key] = 1
  4665. FS = ""
  4666. }
  4667. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  4668. line = \$ 0
  4669. split(line, arg, " ")
  4670. if (arg[1] == "#") {
  4671. defundef = arg[2]
  4672. mac1 = arg[3]
  4673. } else {
  4674. defundef = substr(arg[1], 2)
  4675. mac1 = arg[2]
  4676. }
  4677. split(mac1, mac2, "(") #)
  4678. macro = mac2[1]
  4679. prefix = substr(line, 1, index(line, defundef) - 1)
  4680. if (D_is_set[macro]) {
  4681. # Preserve the white space surrounding the "#".
  4682. print prefix "define", macro P[macro] D[macro]
  4683. next
  4684. } else {
  4685. # Replace #undef with comments. This is necessary, for example,
  4686. # in the case of _POSIX_SOURCE, which is predefined and required
  4687. # on some systems where configure will not decide to define it.
  4688. if (defundef == "undef") {
  4689. print "/*", prefix defundef, macro, "*/"
  4690. next
  4691. }
  4692. }
  4693. }
  4694. { print }
  4695. _ACAWK
  4696. _ACEOF
  4697. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4698. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  4699. fi # test -n "$CONFIG_HEADERS"
  4700. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  4701. shift
  4702. for ac_tag
  4703. do
  4704. case $ac_tag in
  4705. :[FHLC]) ac_mode=$ac_tag; continue;;
  4706. esac
  4707. case $ac_mode$ac_tag in
  4708. :[FHL]*:*);;
  4709. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  4710. :[FH]-) ac_tag=-:-;;
  4711. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  4712. esac
  4713. ac_save_IFS=$IFS
  4714. IFS=:
  4715. set x $ac_tag
  4716. IFS=$ac_save_IFS
  4717. shift
  4718. ac_file=$1
  4719. shift
  4720. case $ac_mode in
  4721. :L) ac_source=$1;;
  4722. :[FH])
  4723. ac_file_inputs=
  4724. for ac_f
  4725. do
  4726. case $ac_f in
  4727. -) ac_f="$ac_tmp/stdin";;
  4728. *) # Look for the file first in the build tree, then in the source tree
  4729. # (if the path is not absolute). The absolute path cannot be DOS-style,
  4730. # because $ac_f cannot contain `:'.
  4731. test -f "$ac_f" ||
  4732. case $ac_f in
  4733. [\\/$]*) false;;
  4734. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  4735. esac ||
  4736. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  4737. esac
  4738. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  4739. as_fn_append ac_file_inputs " '$ac_f'"
  4740. done
  4741. # Let's still pretend it is `configure' which instantiates (i.e., don't
  4742. # use $as_me), people would be surprised to read:
  4743. # /* config.h. Generated by config.status. */
  4744. configure_input='Generated from '`
  4745. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  4746. `' by configure.'
  4747. if test x"$ac_file" != x-; then
  4748. configure_input="$ac_file. $configure_input"
  4749. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  4750. $as_echo "$as_me: creating $ac_file" >&6;}
  4751. fi
  4752. # Neutralize special characters interpreted by sed in replacement strings.
  4753. case $configure_input in #(
  4754. *\&* | *\|* | *\\* )
  4755. ac_sed_conf_input=`$as_echo "$configure_input" |
  4756. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  4757. *) ac_sed_conf_input=$configure_input;;
  4758. esac
  4759. case $ac_tag in
  4760. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  4761. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  4762. esac
  4763. ;;
  4764. esac
  4765. ac_dir=`$as_dirname -- "$ac_file" ||
  4766. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  4767. X"$ac_file" : 'X\(//\)[^/]' \| \
  4768. X"$ac_file" : 'X\(//\)$' \| \
  4769. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  4770. $as_echo X"$ac_file" |
  4771. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  4772. s//\1/
  4773. q
  4774. }
  4775. /^X\(\/\/\)[^/].*/{
  4776. s//\1/
  4777. q
  4778. }
  4779. /^X\(\/\/\)$/{
  4780. s//\1/
  4781. q
  4782. }
  4783. /^X\(\/\).*/{
  4784. s//\1/
  4785. q
  4786. }
  4787. s/.*/./; q'`
  4788. as_dir="$ac_dir"; as_fn_mkdir_p
  4789. ac_builddir=.
  4790. case "$ac_dir" in
  4791. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  4792. *)
  4793. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  4794. # A ".." for each directory in $ac_dir_suffix.
  4795. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  4796. case $ac_top_builddir_sub in
  4797. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  4798. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  4799. esac ;;
  4800. esac
  4801. ac_abs_top_builddir=$ac_pwd
  4802. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  4803. # for backward compatibility:
  4804. ac_top_builddir=$ac_top_build_prefix
  4805. case $srcdir in
  4806. .) # We are building in place.
  4807. ac_srcdir=.
  4808. ac_top_srcdir=$ac_top_builddir_sub
  4809. ac_abs_top_srcdir=$ac_pwd ;;
  4810. [\\/]* | ?:[\\/]* ) # Absolute name.
  4811. ac_srcdir=$srcdir$ac_dir_suffix;
  4812. ac_top_srcdir=$srcdir
  4813. ac_abs_top_srcdir=$srcdir ;;
  4814. *) # Relative name.
  4815. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  4816. ac_top_srcdir=$ac_top_build_prefix$srcdir
  4817. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  4818. esac
  4819. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  4820. case $ac_mode in
  4821. :F)
  4822. #
  4823. # CONFIG_FILE
  4824. #
  4825. case $INSTALL in
  4826. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  4827. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  4828. esac
  4829. _ACEOF
  4830. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4831. # If the template does not know about datarootdir, expand it.
  4832. # FIXME: This hack should be removed a few years after 2.60.
  4833. ac_datarootdir_hack=; ac_datarootdir_seen=
  4834. ac_sed_dataroot='
  4835. /datarootdir/ {
  4836. p
  4837. q
  4838. }
  4839. /@datadir@/p
  4840. /@docdir@/p
  4841. /@infodir@/p
  4842. /@localedir@/p
  4843. /@mandir@/p'
  4844. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  4845. *datarootdir*) ac_datarootdir_seen=yes;;
  4846. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  4847. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  4848. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  4849. _ACEOF
  4850. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4851. ac_datarootdir_hack='
  4852. s&@datadir@&$datadir&g
  4853. s&@docdir@&$docdir&g
  4854. s&@infodir@&$infodir&g
  4855. s&@localedir@&$localedir&g
  4856. s&@mandir@&$mandir&g
  4857. s&\\\${datarootdir}&$datarootdir&g' ;;
  4858. esac
  4859. _ACEOF
  4860. # Neutralize VPATH when `$srcdir' = `.'.
  4861. # Shell code in configure.ac might set extrasub.
  4862. # FIXME: do we really want to maintain this feature?
  4863. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4864. ac_sed_extra="$ac_vpsub
  4865. $extrasub
  4866. _ACEOF
  4867. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4868. :t
  4869. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  4870. s|@configure_input@|$ac_sed_conf_input|;t t
  4871. s&@top_builddir@&$ac_top_builddir_sub&;t t
  4872. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  4873. s&@srcdir@&$ac_srcdir&;t t
  4874. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  4875. s&@top_srcdir@&$ac_top_srcdir&;t t
  4876. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  4877. s&@builddir@&$ac_builddir&;t t
  4878. s&@abs_builddir@&$ac_abs_builddir&;t t
  4879. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  4880. s&@INSTALL@&$ac_INSTALL&;t t
  4881. $ac_datarootdir_hack
  4882. "
  4883. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  4884. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  4885. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  4886. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  4887. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  4888. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  4889. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  4890. which seems to be undefined. Please make sure it is defined" >&5
  4891. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  4892. which seems to be undefined. Please make sure it is defined" >&2;}
  4893. rm -f "$ac_tmp/stdin"
  4894. case $ac_file in
  4895. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  4896. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  4897. esac \
  4898. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  4899. ;;
  4900. :H)
  4901. #
  4902. # CONFIG_HEADER
  4903. #
  4904. if test x"$ac_file" != x-; then
  4905. {
  4906. $as_echo "/* $configure_input */" \
  4907. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  4908. } >"$ac_tmp/config.h" \
  4909. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  4910. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  4911. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  4912. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  4913. else
  4914. rm -f "$ac_file"
  4915. mv "$ac_tmp/config.h" "$ac_file" \
  4916. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  4917. fi
  4918. else
  4919. $as_echo "/* $configure_input */" \
  4920. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  4921. || as_fn_error $? "could not create -" "$LINENO" 5
  4922. fi
  4923. ;;
  4924. esac
  4925. done # for ac_tag
  4926. as_fn_exit 0
  4927. _ACEOF
  4928. ac_clean_files=$ac_clean_files_save
  4929. test $ac_write_fail = 0 ||
  4930. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  4931. # configure is writing to config.log, and then calls config.status.
  4932. # config.status does its own redirection, appending to config.log.
  4933. # Unfortunately, on DOS this fails, as config.log is still kept open
  4934. # by configure, so config.status won't be able to write to it; its
  4935. # output is simply discarded. So we exec the FD to /dev/null,
  4936. # effectively closing config.log, so it can be properly (re)opened and
  4937. # appended to by config.status. When coming back to configure, we
  4938. # need to make the FD available again.
  4939. if test "$no_create" != yes; then
  4940. ac_cs_success=:
  4941. ac_config_status_args=
  4942. test "$silent" = yes &&
  4943. ac_config_status_args="$ac_config_status_args --quiet"
  4944. exec 5>/dev/null
  4945. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  4946. exec 5>>config.log
  4947. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  4948. # would make configure fail if this is the last instruction.
  4949. $ac_cs_success || as_fn_exit 1
  4950. fi
  4951. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  4952. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  4953. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  4954. fi