configure 372 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated automatically using autoconf version 2.13
  4. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  5. #
  6. # This configure script is free software; the Free Software Foundation
  7. # gives unlimited permission to copy, distribute and modify it.
  8. # Defaults:
  9. ac_help=
  10. ac_default_prefix=/usr/local
  11. # Any additions from configure.in:
  12. ac_default_prefix=/usr/local
  13. ac_help="$ac_help
  14. --enable-macosx-app create a MacOSX application"
  15. ac_help="$ac_help
  16. --enable-shared build and link with shared libraries [--enable-shared]"
  17. ac_help="$ac_help
  18. --enable-w11 use W11 library for Windows X11 emulation"
  19. ac_help="$ac_help
  20. --with-cxx support C++ functionality (default: yes)"
  21. ac_help="$ac_help
  22. --with-macosx-archs[=arch list]
  23. compile multiple architectures on MacOSX, ie.
  24. universal. Valid architectures are i386, ppc,
  25. x86_64 and ppc64. (default: no [native])"
  26. ac_help="$ac_help
  27. --with-macosx-sdk[=path/sdk]
  28. compile with a system SDK on MacOSX. (default: no)"
  29. ac_help="$ac_help
  30. --with-tiff support TIFF functionality (default: yes)"
  31. ac_help="$ac_help
  32. --with-png support PNG functionality (default: yes)"
  33. ac_help="$ac_help
  34. --with-postgres support PostgreSQL functionality (default: no)"
  35. ac_help="$ac_help
  36. --with-mysql support MySQL functionality (default: no)"
  37. ac_help="$ac_help
  38. --with-sqlite support SQLite functionality (default: no)"
  39. ac_help="$ac_help
  40. --with-ffmpeg support FFMPEG functionality (default: no)"
  41. ac_help="$ac_help
  42. --with-opengl support OpenGL functionality (default: yes)"
  43. ac_help="$ac_help
  44. --with-odbc support ODBC functionality (default: no)"
  45. ac_help="$ac_help
  46. --with-fftw support FFTW functionality (default: yes)"
  47. ac_help="$ac_help
  48. --with-blas support BLAS functionality (default: no)"
  49. ac_help="$ac_help
  50. --with-lapack support LAPACK functionality (default: no)"
  51. ac_help="$ac_help
  52. --with-cairo support Cairo functionality (default: yes)"
  53. ac_help="$ac_help
  54. --with-freetype support FreeType functionality (default: yes)"
  55. ac_help="$ac_help
  56. --with-nls support NLS functionality (default: no)"
  57. ac_help="$ac_help
  58. --with-readline support Readline functionality (default: no)"
  59. ac_help="$ac_help
  60. --with-opendwg support openDWG functionality (default: no)"
  61. ac_help="$ac_help
  62. --with-regex support regex functionality (default: yes)"
  63. ac_help="$ac_help
  64. --with-pthread support POSIX threads functionality (default: no)"
  65. ac_help="$ac_help
  66. --with-openmp support OpenMP functionality (default: no)"
  67. ac_help="$ac_help
  68. --with-opencl support OpenCL functionality (default: no)"
  69. ac_help="$ac_help
  70. --with-gdal[=path/gdal-config]
  71. enable GDAL/OGR support (gdal-config with path,
  72. e.g. '--with-gdal=/usr/local/bin/gdal-config')"
  73. ac_help="$ac_help
  74. --with-liblas[=path/liblas-config]
  75. enable libLAS support (liblas-config with path,
  76. e.g. '--with-liblas=/usr/local/bin/liblas-config',
  77. default: no)"
  78. ac_help="$ac_help
  79. --with-wxwidgets[=path/wx-config]
  80. enable wxWidgets support (wx-config with path,
  81. e.g. '--with-wxwidgets=/usr/local/bin/wx-config',
  82. default: no)"
  83. ac_help="$ac_help
  84. --with-netcdf[=path/nc-config]
  85. enable NetCDF support (nc-config with path,
  86. e.g. '--with-nc=/usr/local/bin/nc-config',
  87. default: no)"
  88. ac_help="$ac_help
  89. --with-geos[=path/geos-config]
  90. enable GEOS support (geos-config with path,
  91. e.g. '--with-geos=/usr/local/bin/geos-config',
  92. default: no)"
  93. ac_help="$ac_help
  94. --with-includes=DIRS site include files are in DIRS"
  95. ac_help="$ac_help
  96. --with-libs=DIRS site library files are in DIRS"
  97. ac_help="$ac_help
  98. --with-zlib-includes=DIRS
  99. zlib include files are in DIRS"
  100. ac_help="$ac_help
  101. --with-zlib-libs=DIRS zlib library files are in DIRS"
  102. ac_help="$ac_help
  103. --with-readline-includes=DIRS
  104. Readline include files are in DIRS"
  105. ac_help="$ac_help
  106. --with-readline-libs=DIRS
  107. Readline library files are in DIRS"
  108. ac_help="$ac_help
  109. --with-tiff-includes=DIRS
  110. TIFF include files are in DIRS"
  111. ac_help="$ac_help
  112. --with-tiff-libs=DIRS TIFF library files are in DIRS"
  113. ac_help="$ac_help
  114. --with-png-includes=DIRS
  115. PNG include files are in DIRS"
  116. ac_help="$ac_help
  117. --with-png-libs=DIRS PNG library files are in DIRS"
  118. ac_help="$ac_help
  119. --with-postgres-includes=DIRS
  120. PostgreSQL include files are in DIRS"
  121. ac_help="$ac_help
  122. --with-postgres-libs=DIRS
  123. PostgreSQL library files are in DIRS"
  124. ac_help="$ac_help
  125. --with-mysql-includes=DIRS
  126. MySQL include files are in DIRS"
  127. ac_help="$ac_help
  128. --with-mysql-libs=DIRS MySQL library files are in DIRS"
  129. ac_help="$ac_help
  130. --with-sqlite-includes=DIRS
  131. SQLite include files are in DIRS"
  132. ac_help="$ac_help
  133. --with-sqlite-libs=DIRS SQLite library files are in DIRS"
  134. ac_help="$ac_help
  135. --with-ffmpeg-includes=DIRS
  136. FFMPEG include files are in DIRS"
  137. ac_help="$ac_help
  138. --with-ffmpeg-libs=DIRS FFMPEG library files are in DIRS"
  139. ac_help="$ac_help
  140. --with-opengl-includes=DIRS
  141. OpenGL include files are in DIRS"
  142. ac_help="$ac_help
  143. --with-opengl-libs=DIRS OpenGL library files are in DIRS"
  144. ac_help="$ac_help
  145. --with-opengl-framework=DIR
  146. OpenGL framework is in DIR"
  147. ac_help="$ac_help
  148. --with-odbc-includes=DIRS
  149. ODBC include files are in DIRS"
  150. ac_help="$ac_help
  151. --with-odbc-libs=DIRS ODBC library files are in DIRS"
  152. ac_help="$ac_help
  153. --with-fftw-includes=DIRS
  154. FFTW include files are in DIRS"
  155. ac_help="$ac_help
  156. --with-fftw-libs=DIRS FFTW library files are in DIRS"
  157. ac_help="$ac_help
  158. --with-blas-includes=DIRS
  159. BLAS include files are in DIRS"
  160. ac_help="$ac_help
  161. --with-blas-libs=DIRS BLAS library files are in DIRS"
  162. ac_help="$ac_help
  163. --with-lapack-includes=DIRS
  164. LAPACK include files are in DIRS"
  165. ac_help="$ac_help
  166. --with-lapack-libs=DIRS LAPACK library files are in DIRS"
  167. ac_help="$ac_help
  168. --with-cairo-includes=DIRS
  169. cairo include files are in DIRS"
  170. ac_help="$ac_help
  171. --with-cairo-libs=DIRS cairo library files are in DIRS"
  172. ac_help="$ac_help
  173. --with-cairo-ldflags=FLAGS
  174. cairo needs FLAGS when linking"
  175. ac_help="$ac_help
  176. --with-freetype-includes=DIRS
  177. FreeType include files are in DIRS"
  178. ac_help="$ac_help
  179. --with-freetype-libs=DIRS
  180. FreeType library files are in DIRS"
  181. ac_help="$ac_help
  182. --with-proj-includes=DIRS
  183. External PROJ.4 include files are in DIRS"
  184. ac_help="$ac_help
  185. --with-proj-libs=DIRS External PROJ.4 library files are in DIRS"
  186. ac_help="$ac_help
  187. --with-proj-share=DIR External PROJ.4 data files are in DIR"
  188. ac_help="$ac_help
  189. --with-opendwg-includes=DIRS
  190. openDWG include files are in DIRS"
  191. ac_help="$ac_help
  192. --with-opendwg-libs=DIRS
  193. openDWG library files are in DIRS"
  194. ac_help="$ac_help
  195. --with-regex-includes=DIRS
  196. regex include files are in DIRS"
  197. ac_help="$ac_help
  198. --with-regex-libs=DIRS regex library files are in DIRS"
  199. ac_help="$ac_help
  200. --with-pthread-includes=DIRS
  201. POSIX threads include files are in DIRS"
  202. ac_help="$ac_help
  203. --with-pthread-libs=DIRS
  204. POSIX threads library files are in DIRS"
  205. ac_help="$ac_help
  206. --with-openmp-includes=DIRS
  207. OpenMP include files are in DIRS"
  208. ac_help="$ac_help
  209. --with-openmp-libs=DIRS OpenMP library files are in DIRS"
  210. ac_help="$ac_help
  211. --with-opencl-includes=DIRS
  212. OpenCL include files are in DIRS"
  213. ac_help="$ac_help
  214. --with-opencl-libs=DIRS OpenCL library files are in DIRS"
  215. ac_help="$ac_help
  216. --with-x use the X Window System"
  217. ac_help="$ac_help
  218. --disable-largefile omit support for large files (LFS)"
  219. # Initialize some variables set by options.
  220. # The variables have the same names as the options, with
  221. # dashes changed to underlines.
  222. build=NONE
  223. cache_file=./config.cache
  224. exec_prefix=NONE
  225. host=NONE
  226. no_create=
  227. nonopt=NONE
  228. no_recursion=
  229. prefix=NONE
  230. program_prefix=NONE
  231. program_suffix=NONE
  232. program_transform_name=s,x,x,
  233. silent=
  234. site=
  235. srcdir=
  236. target=NONE
  237. verbose=
  238. x_includes=NONE
  239. x_libraries=NONE
  240. bindir='${exec_prefix}/bin'
  241. sbindir='${exec_prefix}/sbin'
  242. libexecdir='${exec_prefix}/libexec'
  243. datadir='${prefix}/share'
  244. sysconfdir='${prefix}/etc'
  245. sharedstatedir='${prefix}/com'
  246. localstatedir='${prefix}/var'
  247. libdir='${exec_prefix}/lib'
  248. includedir='${prefix}/include'
  249. oldincludedir='/usr/include'
  250. infodir='${prefix}/info'
  251. mandir='${prefix}/man'
  252. # Initialize some other variables.
  253. subdirs=
  254. MFLAGS= MAKEFLAGS=
  255. SHELL=${CONFIG_SHELL-/bin/sh}
  256. # Maximum number of lines to put in a shell here document.
  257. ac_max_here_lines=12
  258. ac_prev=
  259. for ac_option
  260. do
  261. # If the previous option needs an argument, assign it.
  262. if test -n "$ac_prev"; then
  263. eval "$ac_prev=\$ac_option"
  264. ac_prev=
  265. continue
  266. fi
  267. case "$ac_option" in
  268. -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  269. *) ac_optarg= ;;
  270. esac
  271. # Accept the important Cygnus configure options, so we can diagnose typos.
  272. case "$ac_option" in
  273. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  274. ac_prev=bindir ;;
  275. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  276. bindir="$ac_optarg" ;;
  277. -build | --build | --buil | --bui | --bu)
  278. ac_prev=build ;;
  279. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  280. build="$ac_optarg" ;;
  281. -cache-file | --cache-file | --cache-fil | --cache-fi \
  282. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  283. ac_prev=cache_file ;;
  284. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  285. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  286. cache_file="$ac_optarg" ;;
  287. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  288. ac_prev=datadir ;;
  289. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  290. | --da=*)
  291. datadir="$ac_optarg" ;;
  292. -disable-* | --disable-*)
  293. ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  294. # Reject names that are not valid shell variable names.
  295. if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  296. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  297. fi
  298. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  299. eval "enable_${ac_feature}=no" ;;
  300. -enable-* | --enable-*)
  301. ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  302. # Reject names that are not valid shell variable names.
  303. if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  304. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  305. fi
  306. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  307. case "$ac_option" in
  308. *=*) ;;
  309. *) ac_optarg=yes ;;
  310. esac
  311. eval "enable_${ac_feature}='$ac_optarg'" ;;
  312. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  313. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  314. | --exec | --exe | --ex)
  315. ac_prev=exec_prefix ;;
  316. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  317. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  318. | --exec=* | --exe=* | --ex=*)
  319. exec_prefix="$ac_optarg" ;;
  320. -gas | --gas | --ga | --g)
  321. # Obsolete; use --with-gas.
  322. with_gas=yes ;;
  323. -help | --help | --hel | --he)
  324. # Omit some internal or obsolete options to make the list less imposing.
  325. # This message is too long to be a string in the A/UX 3.1 sh.
  326. cat << EOF
  327. Usage: configure [options] [host]
  328. Options: [defaults in brackets after descriptions]
  329. Configuration:
  330. --cache-file=FILE cache test results in FILE
  331. --help print this message
  332. --no-create do not create output files
  333. --quiet, --silent do not print \`checking...' messages
  334. --version print the version of autoconf that created configure
  335. Directory and file names:
  336. --prefix=PREFIX install architecture-independent files in PREFIX
  337. [$ac_default_prefix]
  338. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  339. [same as prefix]
  340. --bindir=DIR user executables in DIR [EPREFIX/bin]
  341. --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
  342. --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
  343. --datadir=DIR read-only architecture-independent data in DIR
  344. [PREFIX/share]
  345. --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
  346. --sharedstatedir=DIR modifiable architecture-independent data in DIR
  347. [PREFIX/com]
  348. --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
  349. --libdir=DIR object code libraries in DIR [EPREFIX/lib]
  350. --includedir=DIR C header files in DIR [PREFIX/include]
  351. --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
  352. --infodir=DIR info documentation in DIR [PREFIX/info]
  353. --mandir=DIR man documentation in DIR [PREFIX/man]
  354. --srcdir=DIR find the sources in DIR [configure dir or ..]
  355. --program-prefix=PREFIX prepend PREFIX to installed program names
  356. --program-suffix=SUFFIX append SUFFIX to installed program names
  357. --program-transform-name=PROGRAM
  358. run sed PROGRAM on installed program names
  359. EOF
  360. cat << EOF
  361. Host type:
  362. --build=BUILD configure for building on BUILD [BUILD=HOST]
  363. --host=HOST configure for HOST [guessed]
  364. --target=TARGET configure for TARGET [TARGET=HOST]
  365. Features and packages:
  366. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  367. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  368. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  369. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  370. --x-includes=DIR X include files are in DIR
  371. --x-libraries=DIR X library files are in DIR
  372. EOF
  373. if test -n "$ac_help"; then
  374. echo "--enable and --with options recognized:$ac_help"
  375. fi
  376. exit 0 ;;
  377. -host | --host | --hos | --ho)
  378. ac_prev=host ;;
  379. -host=* | --host=* | --hos=* | --ho=*)
  380. host="$ac_optarg" ;;
  381. -includedir | --includedir | --includedi | --included | --include \
  382. | --includ | --inclu | --incl | --inc)
  383. ac_prev=includedir ;;
  384. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  385. | --includ=* | --inclu=* | --incl=* | --inc=*)
  386. includedir="$ac_optarg" ;;
  387. -infodir | --infodir | --infodi | --infod | --info | --inf)
  388. ac_prev=infodir ;;
  389. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  390. infodir="$ac_optarg" ;;
  391. -libdir | --libdir | --libdi | --libd)
  392. ac_prev=libdir ;;
  393. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  394. libdir="$ac_optarg" ;;
  395. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  396. | --libexe | --libex | --libe)
  397. ac_prev=libexecdir ;;
  398. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  399. | --libexe=* | --libex=* | --libe=*)
  400. libexecdir="$ac_optarg" ;;
  401. -localstatedir | --localstatedir | --localstatedi | --localstated \
  402. | --localstate | --localstat | --localsta | --localst \
  403. | --locals | --local | --loca | --loc | --lo)
  404. ac_prev=localstatedir ;;
  405. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  406. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  407. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  408. localstatedir="$ac_optarg" ;;
  409. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  410. ac_prev=mandir ;;
  411. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  412. mandir="$ac_optarg" ;;
  413. -nfp | --nfp | --nf)
  414. # Obsolete; use --without-fp.
  415. with_fp=no ;;
  416. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  417. | --no-cr | --no-c)
  418. no_create=yes ;;
  419. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  420. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  421. no_recursion=yes ;;
  422. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  423. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  424. | --oldin | --oldi | --old | --ol | --o)
  425. ac_prev=oldincludedir ;;
  426. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  427. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  428. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  429. oldincludedir="$ac_optarg" ;;
  430. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  431. ac_prev=prefix ;;
  432. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  433. prefix="$ac_optarg" ;;
  434. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  435. | --program-pre | --program-pr | --program-p)
  436. ac_prev=program_prefix ;;
  437. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  438. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  439. program_prefix="$ac_optarg" ;;
  440. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  441. | --program-suf | --program-su | --program-s)
  442. ac_prev=program_suffix ;;
  443. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  444. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  445. program_suffix="$ac_optarg" ;;
  446. -program-transform-name | --program-transform-name \
  447. | --program-transform-nam | --program-transform-na \
  448. | --program-transform-n | --program-transform- \
  449. | --program-transform | --program-transfor \
  450. | --program-transfo | --program-transf \
  451. | --program-trans | --program-tran \
  452. | --progr-tra | --program-tr | --program-t)
  453. ac_prev=program_transform_name ;;
  454. -program-transform-name=* | --program-transform-name=* \
  455. | --program-transform-nam=* | --program-transform-na=* \
  456. | --program-transform-n=* | --program-transform-=* \
  457. | --program-transform=* | --program-transfor=* \
  458. | --program-transfo=* | --program-transf=* \
  459. | --program-trans=* | --program-tran=* \
  460. | --progr-tra=* | --program-tr=* | --program-t=*)
  461. program_transform_name="$ac_optarg" ;;
  462. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  463. | -silent | --silent | --silen | --sile | --sil)
  464. silent=yes ;;
  465. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  466. ac_prev=sbindir ;;
  467. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  468. | --sbi=* | --sb=*)
  469. sbindir="$ac_optarg" ;;
  470. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  471. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  472. | --sharedst | --shareds | --shared | --share | --shar \
  473. | --sha | --sh)
  474. ac_prev=sharedstatedir ;;
  475. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  476. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  477. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  478. | --sha=* | --sh=*)
  479. sharedstatedir="$ac_optarg" ;;
  480. -site | --site | --sit)
  481. ac_prev=site ;;
  482. -site=* | --site=* | --sit=*)
  483. site="$ac_optarg" ;;
  484. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  485. ac_prev=srcdir ;;
  486. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  487. srcdir="$ac_optarg" ;;
  488. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  489. | --syscon | --sysco | --sysc | --sys | --sy)
  490. ac_prev=sysconfdir ;;
  491. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  492. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  493. sysconfdir="$ac_optarg" ;;
  494. -target | --target | --targe | --targ | --tar | --ta | --t)
  495. ac_prev=target ;;
  496. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  497. target="$ac_optarg" ;;
  498. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  499. verbose=yes ;;
  500. -version | --version | --versio | --versi | --vers)
  501. echo "configure generated by autoconf version 2.13"
  502. exit 0 ;;
  503. -with-* | --with-*)
  504. ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  505. # Reject names that are not valid shell variable names.
  506. if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  507. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  508. fi
  509. ac_package=`echo $ac_package| sed 's/-/_/g'`
  510. case "$ac_option" in
  511. *=*) ;;
  512. *) ac_optarg=yes ;;
  513. esac
  514. eval "with_${ac_package}='$ac_optarg'" ;;
  515. -without-* | --without-*)
  516. ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  517. # Reject names that are not valid shell variable names.
  518. if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  519. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  520. fi
  521. ac_package=`echo $ac_package| sed 's/-/_/g'`
  522. eval "with_${ac_package}=no" ;;
  523. --x)
  524. # Obsolete; use --with-x.
  525. with_x=yes ;;
  526. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  527. | --x-incl | --x-inc | --x-in | --x-i)
  528. ac_prev=x_includes ;;
  529. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  530. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  531. x_includes="$ac_optarg" ;;
  532. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  533. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  534. ac_prev=x_libraries ;;
  535. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  536. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  537. x_libraries="$ac_optarg" ;;
  538. -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  539. ;;
  540. *)
  541. if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  542. echo "configure: warning: $ac_option: invalid host type" 1>&2
  543. fi
  544. if test "x$nonopt" != xNONE; then
  545. { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  546. fi
  547. nonopt="$ac_option"
  548. ;;
  549. esac
  550. done
  551. if test -n "$ac_prev"; then
  552. { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  553. fi
  554. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  555. # File descriptor usage:
  556. # 0 standard input
  557. # 1 file creation
  558. # 2 errors and warnings
  559. # 3 some systems may open it to /dev/tty
  560. # 4 used on the Kubota Titan
  561. # 6 checking for... messages and results
  562. # 5 compiler messages saved in config.log
  563. if test "$silent" = yes; then
  564. exec 6>/dev/null
  565. else
  566. exec 6>&1
  567. fi
  568. exec 5>./config.log
  569. echo "\
  570. This file contains any messages produced by compilers while
  571. running configure, to aid debugging if configure makes a mistake.
  572. " 1>&5
  573. # Strip out --no-create and --no-recursion so they do not pile up.
  574. # Also quote any args containing shell metacharacters.
  575. ac_configure_args=
  576. for ac_arg
  577. do
  578. case "$ac_arg" in
  579. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  580. | --no-cr | --no-c) ;;
  581. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  582. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  583. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  584. ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  585. *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  586. esac
  587. done
  588. # NLS nuisances.
  589. # Only set these to C if already set. These must not be set unconditionally
  590. # because not all systems understand e.g. LANG=C (notably SCO).
  591. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  592. # Non-C LC_CTYPE values break the ctype check.
  593. if test "${LANG+set}" = set; then LANG=C; export LANG; fi
  594. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  595. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  596. if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
  597. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  598. rm -rf conftest* confdefs.h
  599. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  600. echo > confdefs.h
  601. # A filename unique to this package, relative to the directory that
  602. # configure is in, which we can look for to find out if srcdir is correct.
  603. ac_unique_file=configure.in
  604. # Find the source files, if location was not specified.
  605. if test -z "$srcdir"; then
  606. ac_srcdir_defaulted=yes
  607. # Try the directory containing this script, then its parent.
  608. ac_prog=$0
  609. ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  610. test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  611. srcdir=$ac_confdir
  612. if test ! -r $srcdir/$ac_unique_file; then
  613. srcdir=..
  614. fi
  615. else
  616. ac_srcdir_defaulted=no
  617. fi
  618. if test ! -r $srcdir/$ac_unique_file; then
  619. if test "$ac_srcdir_defaulted" = yes; then
  620. { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  621. else
  622. { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  623. fi
  624. fi
  625. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  626. # Prefer explicitly selected file to automatically selected ones.
  627. if test -z "$CONFIG_SITE"; then
  628. if test "x$prefix" != xNONE; then
  629. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  630. else
  631. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  632. fi
  633. fi
  634. for ac_site_file in $CONFIG_SITE; do
  635. if test -r "$ac_site_file"; then
  636. echo "loading site script $ac_site_file"
  637. . "$ac_site_file"
  638. fi
  639. done
  640. ac_ext=c
  641. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  642. ac_cpp='$CPP $CPPFLAGS'
  643. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  644. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  645. cross_compiling=$ac_cv_prog_cc_cross
  646. ac_exeext=
  647. ac_objext=o
  648. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  649. # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  650. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  651. ac_n= ac_c='
  652. ' ac_t=' '
  653. else
  654. ac_n=-n ac_c= ac_t=
  655. fi
  656. else
  657. ac_n= ac_c='\c' ac_t=
  658. fi
  659. ac_aux_dir=
  660. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  661. if test -f $ac_dir/install-sh; then
  662. ac_aux_dir=$ac_dir
  663. ac_install_sh="$ac_aux_dir/install-sh -c"
  664. break
  665. elif test -f $ac_dir/install.sh; then
  666. ac_aux_dir=$ac_dir
  667. ac_install_sh="$ac_aux_dir/install.sh -c"
  668. break
  669. fi
  670. done
  671. if test -z "$ac_aux_dir"; then
  672. { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  673. fi
  674. ac_config_guess=$ac_aux_dir/config.guess
  675. ac_config_sub=$ac_aux_dir/config.sub
  676. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  677. # Make sure we can run config.sub.
  678. if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
  679. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  680. fi
  681. echo $ac_n "checking host system type""... $ac_c" 1>&6
  682. echo "configure:754: checking host system type" >&5
  683. host_alias=$host
  684. case "$host_alias" in
  685. NONE)
  686. case $nonopt in
  687. NONE)
  688. if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
  689. else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  690. fi ;;
  691. *) host_alias=$nonopt ;;
  692. esac ;;
  693. esac
  694. host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
  695. host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  696. host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  697. host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  698. echo "$ac_t""$host" 1>&6
  699. # Extract the first word of "gcc", so it can be a program name with args.
  700. set dummy gcc; ac_word=$2
  701. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  702. echo "configure:777: checking for $ac_word" >&5
  703. if test -n "$CC"; then
  704. ac_cv_prog_CC="$CC" # Let the user override the test.
  705. else
  706. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  707. ac_dummy="$PATH"
  708. for ac_dir in $ac_dummy; do
  709. test -z "$ac_dir" && ac_dir=.
  710. if test -f $ac_dir/$ac_word; then
  711. ac_cv_prog_CC="gcc"
  712. break
  713. fi
  714. done
  715. IFS="$ac_save_ifs"
  716. fi
  717. CC="$ac_cv_prog_CC"
  718. if test -n "$CC"; then
  719. echo "$ac_t""$CC" 1>&6
  720. else
  721. echo "$ac_t""no" 1>&6
  722. fi
  723. if test -z "$CC"; then
  724. # Extract the first word of "cc", so it can be a program name with args.
  725. set dummy cc; ac_word=$2
  726. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  727. echo "configure:804: checking for $ac_word" >&5
  728. if test -n "$CC"; then
  729. ac_cv_prog_CC="$CC" # Let the user override the test.
  730. else
  731. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  732. ac_prog_rejected=no
  733. ac_dummy="$PATH"
  734. for ac_dir in $ac_dummy; do
  735. test -z "$ac_dir" && ac_dir=.
  736. if test -f $ac_dir/$ac_word; then
  737. if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  738. ac_prog_rejected=yes
  739. continue
  740. fi
  741. ac_cv_prog_CC="cc"
  742. break
  743. fi
  744. done
  745. IFS="$ac_save_ifs"
  746. if test $ac_prog_rejected = yes; then
  747. # We found a bogon in the path, so make sure we never use it.
  748. set dummy $ac_cv_prog_CC
  749. shift
  750. if test $# -gt 0; then
  751. # We chose a different compiler from the bogus one.
  752. # However, it has the same basename, so the bogon will be chosen
  753. # first if we set CC to just the basename; use the full file name.
  754. shift
  755. set dummy "$ac_dir/$ac_word" "$@"
  756. shift
  757. ac_cv_prog_CC="$@"
  758. fi
  759. fi
  760. fi
  761. CC="$ac_cv_prog_CC"
  762. if test -n "$CC"; then
  763. echo "$ac_t""$CC" 1>&6
  764. else
  765. echo "$ac_t""no" 1>&6
  766. fi
  767. if test -z "$CC"; then
  768. case "`uname -s`" in
  769. *win32* | *WIN32*)
  770. # Extract the first word of "cl", so it can be a program name with args.
  771. set dummy cl; ac_word=$2
  772. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  773. echo "configure:852: checking for $ac_word" >&5
  774. if test -n "$CC"; then
  775. ac_cv_prog_CC="$CC" # Let the user override the test.
  776. else
  777. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  778. ac_dummy="$PATH"
  779. for ac_dir in $ac_dummy; do
  780. test -z "$ac_dir" && ac_dir=.
  781. if test -f $ac_dir/$ac_word; then
  782. ac_cv_prog_CC="cl"
  783. break
  784. fi
  785. done
  786. IFS="$ac_save_ifs"
  787. fi
  788. CC="$ac_cv_prog_CC"
  789. if test -n "$CC"; then
  790. echo "$ac_t""$CC" 1>&6
  791. else
  792. echo "$ac_t""no" 1>&6
  793. fi
  794. ;;
  795. esac
  796. fi
  797. test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  798. fi
  799. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  800. echo "configure:881: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  801. ac_ext=c
  802. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  803. ac_cpp='$CPP $CPPFLAGS'
  804. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  805. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  806. cross_compiling=$ac_cv_prog_cc_cross
  807. cat > conftest.$ac_ext << EOF
  808. #line 892 "configure"
  809. #include "confdefs.h"
  810. main(){return(0);}
  811. EOF
  812. if { (eval echo configure:897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  813. ac_cv_prog_cc_works=yes
  814. # If we can't run a trivial program, we are probably using a cross compiler.
  815. if (./conftest; exit) 2>/dev/null; then
  816. ac_cv_prog_cc_cross=no
  817. else
  818. ac_cv_prog_cc_cross=yes
  819. fi
  820. else
  821. echo "configure: failed program was:" >&5
  822. cat conftest.$ac_ext >&5
  823. ac_cv_prog_cc_works=no
  824. fi
  825. rm -fr conftest*
  826. ac_ext=c
  827. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  828. ac_cpp='$CPP $CPPFLAGS'
  829. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  830. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  831. cross_compiling=$ac_cv_prog_cc_cross
  832. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  833. if test $ac_cv_prog_cc_works = no; then
  834. { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  835. fi
  836. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  837. echo "configure:923: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  838. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  839. cross_compiling=$ac_cv_prog_cc_cross
  840. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  841. echo "configure:928: checking whether we are using GNU C" >&5
  842. cat > conftest.c <<EOF
  843. #ifdef __GNUC__
  844. yes;
  845. #endif
  846. EOF
  847. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  848. ac_cv_prog_gcc=yes
  849. else
  850. ac_cv_prog_gcc=no
  851. fi
  852. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  853. if test $ac_cv_prog_gcc = yes; then
  854. GCC=yes
  855. else
  856. GCC=
  857. fi
  858. ac_test_CFLAGS="${CFLAGS+set}"
  859. ac_save_CFLAGS="$CFLAGS"
  860. CFLAGS=
  861. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  862. echo "configure:953: checking whether ${CC-cc} accepts -g" >&5
  863. echo 'void f(){}' > conftest.c
  864. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  865. ac_cv_prog_cc_g=yes
  866. else
  867. ac_cv_prog_cc_g=no
  868. fi
  869. rm -f conftest*
  870. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  871. if test "$ac_test_CFLAGS" = set; then
  872. CFLAGS="$ac_save_CFLAGS"
  873. elif test $ac_cv_prog_cc_g = yes; then
  874. if test "$GCC" = yes; then
  875. CFLAGS="-g -O2"
  876. else
  877. CFLAGS="-g"
  878. fi
  879. else
  880. if test "$GCC" = yes; then
  881. CFLAGS="-O2"
  882. else
  883. CFLAGS=
  884. fi
  885. fi
  886. echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
  887. echo "configure:982: checking for Cygwin environment" >&5
  888. cat > conftest.$ac_ext <<EOF
  889. #line 985 "configure"
  890. #include "confdefs.h"
  891. int main() {
  892. #ifndef __CYGWIN__
  893. #define __CYGWIN__ __CYGWIN32__
  894. #endif
  895. return __CYGWIN__;
  896. ; return 0; }
  897. EOF
  898. if { (eval echo configure:996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  899. rm -rf conftest*
  900. ac_cv_cygwin=yes
  901. else
  902. echo "configure: failed program was:" >&5
  903. cat conftest.$ac_ext >&5
  904. rm -rf conftest*
  905. ac_cv_cygwin=no
  906. fi
  907. rm -f conftest*
  908. rm -f conftest*
  909. echo "$ac_t""$ac_cv_cygwin" 1>&6
  910. CYGWIN=
  911. test "$ac_cv_cygwin" = yes && CYGWIN=yes
  912. echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
  913. echo "configure:1012: checking for mingw32 environment" >&5
  914. cat > conftest.$ac_ext <<EOF
  915. #line 1015 "configure"
  916. #include "confdefs.h"
  917. int main() {
  918. return __MINGW32__;
  919. ; return 0; }
  920. EOF
  921. if { (eval echo configure:1022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  922. rm -rf conftest*
  923. ac_cv_mingw32=yes
  924. else
  925. echo "configure: failed program was:" >&5
  926. cat conftest.$ac_ext >&5
  927. rm -rf conftest*
  928. ac_cv_mingw32=no
  929. fi
  930. rm -f conftest*
  931. rm -f conftest*
  932. echo "$ac_t""$ac_cv_mingw32" 1>&6
  933. MINGW32=
  934. test "$ac_cv_mingw32" = yes && MINGW32=yes
  935. echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
  936. echo "configure:1040: checking for executable suffix" >&5
  937. if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
  938. ac_cv_exeext=.exe
  939. else
  940. ac_cv_exeext=no
  941. fi
  942. EXEEXT=""
  943. test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
  944. echo "$ac_t""${ac_cv_exeext}" 1>&6
  945. ac_exeext=$EXEEXT
  946. # Check for full floating-point support, including Infinity and NaN
  947. IEEEFLAG=
  948. echo $ac_n "checking for full floating-point support""... $ac_c" 1>&6
  949. echo "configure:1059: checking for full floating-point support" >&5
  950. if test "$cross_compiling" = yes; then
  951. echo "$ac_t""unknown (cross-compiling)" 1>&6
  952. echo $ac_n "checking whether "cc -mieee" works""... $ac_c" 1>&6
  953. echo "configure:1064: checking whether "cc -mieee" works" >&5
  954. ac_save_cflags=${CFLAGS}
  955. CFLAGS="$CFLAGS -mieee"
  956. cat > conftest.$ac_ext <<EOF
  957. #line 1068 "configure"
  958. #include "confdefs.h"
  959. int main() {
  960. ; return 0; }
  961. EOF
  962. if { (eval echo configure:1075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  963. rm -rf conftest*
  964. echo "$ac_t""yes" 1>&6
  965. IEEEFLAG="-mieee"
  966. else
  967. echo "configure: failed program was:" >&5
  968. cat conftest.$ac_ext >&5
  969. rm -rf conftest*
  970. echo "$ac_t""no" 1>&6
  971. fi
  972. rm -f conftest*
  973. CFLAGS=${ac_save_cflags}
  974. else
  975. cat > conftest.$ac_ext <<EOF
  976. #line 1091 "configure"
  977. #include "confdefs.h"
  978. #include <float.h>
  979. int main(void) {
  980. double one = 1.0;
  981. double zero = 0.0;
  982. if (one/zero > DBL_MAX) /* infinity */
  983. if (zero/zero != zero/zero) /* NaN */
  984. return 0;
  985. return 1;
  986. }
  987. EOF
  988. if { (eval echo configure:1105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  989. then
  990. echo "$ac_t""yes" 1>&6
  991. else
  992. echo "configure: failed program was:" >&5
  993. cat conftest.$ac_ext >&5
  994. rm -fr conftest*
  995. echo "$ac_t""no" 1>&6
  996. ac_save_cflags=${CFLAGS}
  997. CFLAGS=-mieee
  998. echo $ac_n "checking for full floating-point support with -mieee""... $ac_c" 1>&6
  999. echo "configure:1118: checking for full floating-point support with -mieee" >&5
  1000. if test "$cross_compiling" = yes; then
  1001. echo "$ac_t""unknown (cross-compiling)" 1>&6
  1002. { echo "configure: error: *** INTERNAL CONFIGURE ERROR" 1>&2; exit 1; }
  1003. else
  1004. cat > conftest.$ac_ext <<EOF
  1005. #line 1125 "configure"
  1006. #include "confdefs.h"
  1007. #include <float.h>
  1008. int main(void) {
  1009. double one = 1.0;
  1010. double zero = 0.0;
  1011. if (one/zero > DBL_MAX) /* infinity */
  1012. if (zero/zero != zero/zero) /* NaN */
  1013. return 0;
  1014. return 1;
  1015. }
  1016. EOF
  1017. if { (eval echo configure:1139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1018. then
  1019. echo "$ac_t""yes" 1>&6
  1020. IEEEFLAG="-mieee"
  1021. else
  1022. echo "configure: failed program was:" >&5
  1023. cat conftest.$ac_ext >&5
  1024. rm -fr conftest*
  1025. echo "$ac_t""no" 1>&6
  1026. echo "configure: warning: *** Incomplete floating-point support." 1>&2
  1027. fi
  1028. rm -fr conftest*
  1029. fi
  1030. CFLAGS=${ac_save_cflags}
  1031. fi
  1032. rm -fr conftest*
  1033. fi
  1034. CFLAGS="$CFLAGS $IEEEFLAG"
  1035. # Set BINDIR
  1036. if test -n "${bindir}"; then
  1037. BINDIR="${bindir}"
  1038. else
  1039. BINDIR=/usr/local/bin
  1040. fi
  1041. # Set SRCDIR and DSTDIR
  1042. # Extract the first word of "pwd", so it can be a program name with args.
  1043. set dummy pwd; ac_word=$2
  1044. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1045. echo "configure:1176: checking for $ac_word" >&5
  1046. case "$pwd" in
  1047. /*)
  1048. ac_cv_path_pwd="$pwd" # Let the user override the test with a path.
  1049. ;;
  1050. ?:/*)
  1051. ac_cv_path_pwd="$pwd" # Let the user override the test with a dos path.
  1052. ;;
  1053. *)
  1054. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1055. ac_dummy="$PATH"
  1056. for ac_dir in $ac_dummy; do
  1057. test -z "$ac_dir" && ac_dir=.
  1058. if test -f $ac_dir/$ac_word; then
  1059. ac_cv_path_pwd="$ac_dir/$ac_word"
  1060. break
  1061. fi
  1062. done
  1063. IFS="$ac_save_ifs"
  1064. test -z "$ac_cv_path_pwd" && ac_cv_path_pwd="pwd"
  1065. ;;
  1066. esac
  1067. pwd="$ac_cv_path_pwd"
  1068. if test -n "$pwd"; then
  1069. echo "$ac_t""$pwd" 1>&6
  1070. else
  1071. echo "$ac_t""no" 1>&6
  1072. fi
  1073. if test "$MINGW32" = yes ; then
  1074. winpwd="$pwd -W"
  1075. else
  1076. winpwd="$pwd"
  1077. fi
  1078. echo $ac_n "checking for source directory""... $ac_c" 1>&6
  1079. echo "configure:1214: checking for source directory" >&5
  1080. if test -z "$srcdir" ; then
  1081. SRCDIR=`$pwd`
  1082. else
  1083. SRCDIR=`(cd "$srcdir" ; $pwd)`
  1084. fi
  1085. echo "$ac_t"""$SRCDIR"" 1>&6
  1086. echo $ac_n "checking for build directory""... $ac_c" 1>&6
  1087. echo "configure:1225: checking for build directory" >&5
  1088. DSTDIR=`$pwd`
  1089. WINDSTDIR=`$winpwd`
  1090. echo "$ac_t"""$DSTDIR"" 1>&6
  1091. # Set ARCH
  1092. ARCH=
  1093. if test -z "${host}"; then
  1094. ARCH="unknown"
  1095. else
  1096. ARCH="${host}"
  1097. fi
  1098. # Use absolute path for aux directory so that install-sh works
  1099. ac_aux_dir=
  1100. for ac_dir in "$SRCDIR" $srcdir/"$SRCDIR"; do
  1101. if test -f $ac_dir/install-sh; then
  1102. ac_aux_dir=$ac_dir
  1103. ac_install_sh="$ac_aux_dir/install-sh -c"
  1104. break
  1105. elif test -f $ac_dir/install.sh; then
  1106. ac_aux_dir=$ac_dir
  1107. ac_install_sh="$ac_aux_dir/install.sh -c"
  1108. break
  1109. fi
  1110. done
  1111. if test -z "$ac_aux_dir"; then
  1112. { echo "configure: error: can not find install-sh or install.sh in "$SRCDIR" $srcdir/"$SRCDIR"" 1>&2; exit 1; }
  1113. fi
  1114. ac_config_guess=$ac_aux_dir/config.guess
  1115. ac_config_sub=$ac_aux_dir/config.sub
  1116. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  1117. # Set GISBASE and GRASS_BIN
  1118. GISBASE="${WINDSTDIR}/dist.${ARCH}"
  1119. GRASS_BIN="${DSTDIR}/bin.${ARCH}"
  1120. # Set GRASS_VERSION_*
  1121. GRASS_VERSION_FILE=include/VERSION
  1122. GRASS_VERSION_MAJOR=`sed -n 1p "${GRASS_VERSION_FILE}"`
  1123. GRASS_VERSION_MINOR=`sed -n 2p "${GRASS_VERSION_FILE}"`
  1124. GRASS_VERSION_RELEASE=`sed -n 3p "${GRASS_VERSION_FILE}"`
  1125. GRASS_VERSION_DATE=`sed -n 4p "${GRASS_VERSION_FILE}"`
  1126. GRASS_VERSION_NUMBER=`echo ${GRASS_VERSION_MAJOR}.${GRASS_VERSION_MINOR}.${GRASS_VERSION_RELEASE}`
  1127. NAME_VER=`echo ${GRASS_VERSION_NUMBER} | sed 's/\..*//'`
  1128. LIB_VER=`echo ${GRASS_VERSION_NUMBER} | sed 's/^\([0-9.]*\).*$/\1/'`
  1129. GRASS_VERSION_SVN=
  1130. # Extract the first word of "svnversion", so it can be a program name with args.
  1131. set dummy svnversion; ac_word=$2
  1132. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1133. echo "configure:1293: checking for $ac_word" >&5
  1134. case "$SVN_VERSION" in
  1135. /*)
  1136. ac_cv_path_SVN_VERSION="$SVN_VERSION" # Let the user override the test with a path.
  1137. ;;
  1138. ?:/*)
  1139. ac_cv_path_SVN_VERSION="$SVN_VERSION" # Let the user override the test with a dos path.
  1140. ;;
  1141. *)
  1142. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1143. ac_dummy="$PATH"
  1144. for ac_dir in $ac_dummy; do
  1145. test -z "$ac_dir" && ac_dir=.
  1146. if test -f $ac_dir/$ac_word; then
  1147. ac_cv_path_SVN_VERSION="$ac_dir/$ac_word"
  1148. break
  1149. fi
  1150. done
  1151. IFS="$ac_save_ifs"
  1152. test -z "$ac_cv_path_SVN_VERSION" && ac_cv_path_SVN_VERSION="no"
  1153. ;;
  1154. esac
  1155. SVN_VERSION="$ac_cv_path_SVN_VERSION"
  1156. if test -n "$SVN_VERSION"; then
  1157. echo "$ac_t""$SVN_VERSION" 1>&6
  1158. else
  1159. echo "$ac_t""no" 1>&6
  1160. fi
  1161. if test "$SVN_VERSION" != "no" ; then
  1162. GRASS_VERSION_SVN=`$SVN_VERSION -c | cut -f2 -d:`
  1163. if test "$GRASS_VERSION_SVN" = "exported" -o "$GRASS_VERSION_SVN" = "Unversioned directory" ; then
  1164. GRASS_VERSION_SVN=
  1165. fi
  1166. fi
  1167. # Check for MacOSX App
  1168. # Check whether --enable-macosx-app or --disable-macosx-app was given.
  1169. if test "${enable_macosx_app+set}" = set; then
  1170. enableval="$enable_macosx_app"
  1171. :
  1172. else
  1173. enable_macosx_app=no
  1174. fi
  1175. echo $ac_n "checking for MacOSX App""... $ac_c" 1>&6
  1176. echo "configure:1352: checking for MacOSX App" >&5
  1177. case "$enable_macosx_app" in
  1178. yes) MACOSX_APP=1 ;;
  1179. no) MACOSX_APP= ;;
  1180. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  1181. esac
  1182. echo "$ac_t"""$enable_macosx_app"" 1>&6
  1183. # Check for MacOSX archs
  1184. echo $ac_n "checking for MacOSX architectures""... $ac_c" 1>&6
  1185. echo "configure:1364: checking for MacOSX architectures" >&5
  1186. MACOSX_ARCHS=
  1187. if test -z "$with_macosx_archs" ; then
  1188. echo "$ac_t""no" 1>&6
  1189. else
  1190. for a in $with_macosx_archs
  1191. do
  1192. # check if valid arch?
  1193. case "$a" in
  1194. i386|ppc|x86_64|ppc64)
  1195. MACOSX_ARCHS="$MACOSX_ARCHS -arch $a"
  1196. ;;
  1197. esac
  1198. done
  1199. echo "$ac_t""$MACOSX_ARCHS" 1>&6
  1200. LDFLAGS="$LDFLAGS $MACOSX_ARCHS"
  1201. CFLAGS="$CFLAGS $MACOSX_ARCHS"
  1202. CXXFLAGS="$CXXFLAGS $MACOSX_ARCHS"
  1203. fi
  1204. # Done checking MacOSX archs
  1205. # Check for MacOSX SDK
  1206. echo $ac_n "checking for MacOSX SDK""... $ac_c" 1>&6
  1207. echo "configure:1393: checking for MacOSX SDK" >&5
  1208. MACOSX_SDK=
  1209. if test -z "$with_macosx_sdk" ; then
  1210. echo "$ac_t""no" 1>&6
  1211. else
  1212. ac_safe=`echo "$with_macosx_sdk/SDKSettings.plist" | sed 'y%./+-%__p_%'`
  1213. echo $ac_n "checking for $with_macosx_sdk/SDKSettings.plist""... $ac_c" 1>&6
  1214. echo "configure:1403: checking for $with_macosx_sdk/SDKSettings.plist" >&5
  1215. if test "$cross_compiling" = yes; then
  1216. { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
  1217. else
  1218. if test -r $with_macosx_sdk/SDKSettings.plist; then
  1219. eval "ac_cv_file_$ac_safe=yes"
  1220. else
  1221. eval "ac_cv_file_$ac_safe=no"
  1222. fi
  1223. fi
  1224. if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
  1225. echo "$ac_t""yes" 1>&6
  1226. MACOSX_SDK="-isysroot $with_macosx_sdk"
  1227. else
  1228. echo "$ac_t""no" 1>&6
  1229. { echo "configure: error: *** specified SDK does not exist or is not a SDK" 1>&2; exit 1; }
  1230. fi
  1231. LDFLAGS="$LDFLAGS $MACOSX_SDK"
  1232. CFLAGS="$CFLAGS $MACOSX_SDK"
  1233. CXXFLAGS="$CXXFLAGS $MACOSX_SDK"
  1234. fi
  1235. # Done checking MacOSX SDK
  1236. # Set INST_DIR
  1237. if test -n "$MACOSX_APP" ; then
  1238. INSTDIR='${prefix}'"/GRASS-${GRASS_VERSION_MAJOR}.${GRASS_VERSION_MINOR}.app/Contents/MacOS"
  1239. else
  1240. INSTDIR='${prefix}'"/grass-${GRASS_VERSION_MAJOR}.${GRASS_VERSION_MINOR}.${GRASS_VERSION_RELEASE}"
  1241. fi
  1242. # Get flags for building shared libraries
  1243. echo $ac_n "checking how to build libraries""... $ac_c" 1>&6
  1244. echo "configure:1447: checking how to build libraries" >&5
  1245. # Check whether --enable-shared or --disable-shared was given.
  1246. if test "${enable_shared+set}" = set; then
  1247. enableval="$enable_shared"
  1248. shared_ok=$enableval
  1249. else
  1250. shared_ok=yes
  1251. fi
  1252. if test "${enable_shared+set}" = set; then
  1253. enableval="$enable_shared"
  1254. shared_ok=$enableval
  1255. else
  1256. shared_ok=yes
  1257. fi
  1258. if test "$shared_ok" = "yes" ; then
  1259. echo "$ac_t""shared" 1>&6
  1260. SHARED_BUILD=1
  1261. GRASS_LIBRARY_TYPE='shlib'
  1262. else
  1263. echo "$ac_t""static" 1>&6
  1264. SHARED_BUILD=0
  1265. cat >> confdefs.h <<\EOF
  1266. #define STATIC_BUILD 1
  1267. EOF
  1268. GRASS_LIBRARY_TYPE='stlib'
  1269. fi
  1270. ac_save_ldflags="$LDFLAGS"
  1271. SHLIB_CFLAGS=""
  1272. SHLIB_LD_FLAGS=""
  1273. SHLIB_SUFFIX=""
  1274. SHLIB_LD=""
  1275. STLIB_LD='${AR} cr'
  1276. STLIB_SUFFIX='.a'
  1277. GRASS_TRIM_DOTS='`echo ${LIB_VER} | tr -d .`'
  1278. GRASS_LIB_VERSIONS_OK=ok
  1279. LDFLAGS=""
  1280. LD_SEARCH_FLAGS=""
  1281. LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
  1282. case $host in
  1283. *-linux-*)
  1284. SHLIB_CFLAGS="-fPIC"
  1285. SHLIB_LD_FLAGS=""
  1286. SHLIB_SUFFIX=".so"
  1287. SHLIB_LD="${CC} -shared"
  1288. LDFLAGS="-Wl,--export-dynamic"
  1289. LD_SEARCH_FLAGS='-Wl,-rpath-link,${LIB_RUNTIME_DIR}'
  1290. LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
  1291. ;;
  1292. *-pc-cygwin)
  1293. SHLIB_SUFFIX=".dll"
  1294. SHLIB_LD="${CC} -shared"
  1295. LDFLAGS="-Wl,--export-dynamic"
  1296. LD_LIBRARY_PATH_VAR="PATH"
  1297. ;;
  1298. *-pc-mingw32 | *-pc-msys)
  1299. SHLIB_SUFFIX=".dll"
  1300. SHLIB_LD="${CC} -shared"
  1301. LDFLAGS="-Wl,--export-dynamic,--enable-runtime-pseudo-reloc"
  1302. LD_LIBRARY_PATH_VAR="PATH"
  1303. ;;
  1304. *-apple-darwin*)
  1305. SHLIB_CFLAGS="-fno-common"
  1306. SHLIB_SUFFIX=".dylib"
  1307. SHLIB_LD="cc -dynamiclib -compatibility_version \${GRASS_VERSION_MAJOR}.\${GRASS_VERSION_MINOR} -current_version \${GRASS_VERSION_MAJOR}.\${GRASS_VERSION_MINOR} -install_name \${INST_DIR}/lib/lib\${LIB_NAME}\${SHLIB_SUFFIX}"
  1308. LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH"
  1309. ;;
  1310. *-sun-solaris*)
  1311. # Note: If _REENTRANT isn't defined, then Solaris
  1312. # won't define thread-safe library routines.
  1313. cat >> confdefs.h <<\EOF
  1314. #define _REENTRANT 1
  1315. EOF
  1316. cat >> confdefs.h <<\EOF
  1317. #define _POSIX_PTHREAD_SEMANTICS 1
  1318. EOF
  1319. # Note: need the LIBS below, otherwise Tk won't find Tcl's
  1320. # symbols when dynamically loaded into tclsh.
  1321. if test "$GCC" = "yes" ; then
  1322. SHLIB_CFLAGS="-fPIC"
  1323. SHLIB_LD="$CC -shared"
  1324. LD_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
  1325. else
  1326. SHLIB_CFLAGS="-KPIC"
  1327. SHLIB_LD="/usr/ccs/bin/ld -G -z text"
  1328. LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
  1329. fi
  1330. SHLIB_SUFFIX=".so"
  1331. LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
  1332. ;;
  1333. *-solaris2*)
  1334. # Note: Solaris is as of 2010 Oracle Solaris, not Sun Solaris
  1335. # Oracle Solaris derives from Solaris 2
  1336. # derives from SunOS 5
  1337. # derives from UNIX System V Release 4
  1338. # Note: If _REENTRANT isn't defined, then Solaris
  1339. # won't define thread-safe library routines.
  1340. cat >> confdefs.h <<\EOF
  1341. #define _REENTRANT 1
  1342. EOF
  1343. cat >> confdefs.h <<\EOF
  1344. #define _POSIX_PTHREAD_SEMANTICS 1
  1345. EOF
  1346. # Note: need the LIBS below, otherwise Tk won't find Tcl's
  1347. # symbols when dynamically loaded into tclsh.
  1348. if test "$GCC" = "yes" ; then
  1349. SHLIB_CFLAGS="-fPIC"
  1350. SHLIB_LD="$CC -shared"
  1351. LD_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
  1352. else
  1353. SHLIB_CFLAGS="-KPIC"
  1354. SHLIB_LD="/usr/ccs/bin/ld -G -z text"
  1355. LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
  1356. fi
  1357. SHLIB_SUFFIX=".so"
  1358. LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
  1359. ;;
  1360. *-freebsd*)
  1361. # NOTE: only FreeBSD 4+ is supported
  1362. # FreeBSD 3.* and greater have ELF.
  1363. SHLIB_CFLAGS="-fPIC"
  1364. #SHLIB_LD="ld -Bshareable -x"
  1365. SHLIB_LD="${CC} -shared"
  1366. SHLIB_SUFFIX=".so"
  1367. LDFLAGS="-export-dynamic"
  1368. #LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
  1369. LD_SEARCH_FLAGS='-Wl,-rpath-link,${LIB_RUNTIME_DIR}'
  1370. # TODO: add optional pthread support with any combination of:
  1371. # CFLAGS="$CFLAGS -pthread"
  1372. # LDFLAGS="$LDFLAGS -lpthread"
  1373. # AC_DEFINE(_REENTRANT)
  1374. # AC_DEFINE(_POSIX_PTHREAD_SEMANTICS)
  1375. ;;
  1376. *-netbsd*)
  1377. # NetBSD has ELF.
  1378. SHLIB_CFLAGS="-fPIC"
  1379. SHLIB_LD="${CC} -shared"
  1380. SHLIB_LD_LIBS="${LIBS}"
  1381. LDFLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR} -export-dynamic'
  1382. SHLIB_LD_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR} -export-dynamic'
  1383. LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR} -L${LIB_RUNTIME_DIR}'
  1384. # some older NetBSD versions do not handle version numbers with dots.
  1385. #STLIB_SUFFIX='${GRASS_TRIM_DOTS}.a'
  1386. #SHLIB_SUFFIX='${GRASS_TRIM_DOTS}.so'
  1387. #GRASS_LIB_VERSIONS_OK=nodots
  1388. # NetBSD 6 does handle version numbers with dots.
  1389. STLIB_SUFFIX=".a"
  1390. SHLIB_SUFFIX=".so"
  1391. # TODO: add optional pthread support with any combination of:
  1392. # CFLAGS="$CFLAGS -pthread"
  1393. # LDFLAGS="$LDFLAGS -lpthread"
  1394. # AC_DEFINE(_REENTRANT)
  1395. # AC_DEFINE(_POSIX_PTHREAD_SEMANTICS)
  1396. ;;
  1397. *aix*)
  1398. # NOTE: do we need to support aix < 6 ?
  1399. LIBS="$LIBS -lc"
  1400. SHLIB_CFLAGS=""
  1401. LDFLAGS=""
  1402. if test "$GCC" = "yes" ; then
  1403. SHLIB_CFLAGS="-fPIC"
  1404. SHLIB_LD="$CC -shared"
  1405. LD_SEARCH_FLAGS='-Wl,-bsvr4,-R,${LIB_RUNTIME_DIR}'
  1406. else
  1407. # assume xlc
  1408. SHLIB_CFLAGS="-qmkshrobj"
  1409. SHLIB_LD="$CC -shared"
  1410. LD_SEARCH_FLAGS='-Wl,-bsvr4,-R,${LIB_RUNTIME_DIR}'
  1411. fi
  1412. SHLIB_SUFFIX=".so"
  1413. LD_LIBRARY_PATH_VAR="LIBPATH"
  1414. GRASS_NEEDS_EXP_FILE=1
  1415. GRASS_EXPORT_FILE_SUFFIX='${LIB_VER}.exp'
  1416. ;;
  1417. *)
  1418. { echo "configure: error: ***Unknown platform: $host***" 1>&2; exit 1; }
  1419. ;;
  1420. esac
  1421. LDFLAGS="${ac_save_ldflags} $LDFLAGS"
  1422. # Enable options
  1423. # Check whether --enable-w11 or --disable-w11 was given.
  1424. if test "${enable_w11+set}" = set; then
  1425. enableval="$enable_w11"
  1426. :
  1427. else
  1428. enable_w11=no
  1429. fi
  1430. # With options
  1431. # Check whether --with-cxx or --without-cxx was given.
  1432. if test "${with_cxx+set}" = set; then
  1433. withval="$with_cxx"
  1434. :
  1435. else
  1436. with_cxx=yes
  1437. fi
  1438. #LOC_ARG_WITH(g77, GNU Fortran 77, no)
  1439. # Check whether --with-macosx-archs or --without-macosx-archs was given.
  1440. if test "${with_macosx_archs+set}" = set; then
  1441. withval="$with_macosx_archs"
  1442. :
  1443. else
  1444. with_macosx_archs="no"
  1445. fi
  1446. # Check whether --with-macosx-sdk or --without-macosx-sdk was given.
  1447. if test "${with_macosx_sdk+set}" = set; then
  1448. withval="$with_macosx_sdk"
  1449. :
  1450. else
  1451. with_macosx_sdk="no"
  1452. fi
  1453. # Check whether --with-tiff or --without-tiff was given.
  1454. if test "${with_tiff+set}" = set; then
  1455. withval="$with_tiff"
  1456. :
  1457. else
  1458. with_tiff=yes
  1459. fi
  1460. # Check whether --with-png or --without-png was given.
  1461. if test "${with_png+set}" = set; then
  1462. withval="$with_png"
  1463. :
  1464. else
  1465. with_png=yes
  1466. fi
  1467. # Check whether --with-postgres or --without-postgres was given.
  1468. if test "${with_postgres+set}" = set; then
  1469. withval="$with_postgres"
  1470. :
  1471. else
  1472. with_postgres=no
  1473. fi
  1474. # Check whether --with-mysql or --without-mysql was given.
  1475. if test "${with_mysql+set}" = set; then
  1476. withval="$with_mysql"
  1477. :
  1478. else
  1479. with_mysql=no
  1480. fi
  1481. # Check whether --with-sqlite or --without-sqlite was given.
  1482. if test "${with_sqlite+set}" = set; then
  1483. withval="$with_sqlite"
  1484. :
  1485. else
  1486. with_sqlite=no
  1487. fi
  1488. # Check whether --with-ffmpeg or --without-ffmpeg was given.
  1489. if test "${with_ffmpeg+set}" = set; then
  1490. withval="$with_ffmpeg"
  1491. :
  1492. else
  1493. with_ffmpeg=no
  1494. fi
  1495. # Check whether --with-opengl or --without-opengl was given.
  1496. if test "${with_opengl+set}" = set; then
  1497. withval="$with_opengl"
  1498. :
  1499. else
  1500. with_opengl=yes
  1501. fi
  1502. # Check whether --with-odbc or --without-odbc was given.
  1503. if test "${with_odbc+set}" = set; then
  1504. withval="$with_odbc"
  1505. :
  1506. else
  1507. with_odbc=no
  1508. fi
  1509. # Check whether --with-fftw or --without-fftw was given.
  1510. if test "${with_fftw+set}" = set; then
  1511. withval="$with_fftw"
  1512. :
  1513. else
  1514. with_fftw=yes
  1515. fi
  1516. # Check whether --with-blas or --without-blas was given.
  1517. if test "${with_blas+set}" = set; then
  1518. withval="$with_blas"
  1519. :
  1520. else
  1521. with_blas=no
  1522. fi
  1523. # Check whether --with-lapack or --without-lapack was given.
  1524. if test "${with_lapack+set}" = set; then
  1525. withval="$with_lapack"
  1526. :
  1527. else
  1528. with_lapack=no
  1529. fi
  1530. # Check whether --with-cairo or --without-cairo was given.
  1531. if test "${with_cairo+set}" = set; then
  1532. withval="$with_cairo"
  1533. :
  1534. else
  1535. with_cairo=yes
  1536. fi
  1537. # Check whether --with-freetype or --without-freetype was given.
  1538. if test "${with_freetype+set}" = set; then
  1539. withval="$with_freetype"
  1540. :
  1541. else
  1542. with_freetype=yes
  1543. fi
  1544. # Check whether --with-nls or --without-nls was given.
  1545. if test "${with_nls+set}" = set; then
  1546. withval="$with_nls"
  1547. :
  1548. else
  1549. with_nls=no
  1550. fi
  1551. # Check whether --with-readline or --without-readline was given.
  1552. if test "${with_readline+set}" = set; then
  1553. withval="$with_readline"
  1554. :
  1555. else
  1556. with_readline=no
  1557. fi
  1558. # Check whether --with-opendwg or --without-opendwg was given.
  1559. if test "${with_opendwg+set}" = set; then
  1560. withval="$with_opendwg"
  1561. :
  1562. else
  1563. with_opendwg=no
  1564. fi
  1565. # Check whether --with-regex or --without-regex was given.
  1566. if test "${with_regex+set}" = set; then
  1567. withval="$with_regex"
  1568. :
  1569. else
  1570. with_regex=yes
  1571. fi
  1572. # Check whether --with-pthread or --without-pthread was given.
  1573. if test "${with_pthread+set}" = set; then
  1574. withval="$with_pthread"
  1575. :
  1576. else
  1577. with_pthread=no
  1578. fi
  1579. # Check whether --with-openmp or --without-openmp was given.
  1580. if test "${with_openmp+set}" = set; then
  1581. withval="$with_openmp"
  1582. :
  1583. else
  1584. with_openmp=no
  1585. fi
  1586. # Check whether --with-opencl or --without-opencl was given.
  1587. if test "${with_opencl+set}" = set; then
  1588. withval="$with_opencl"
  1589. :
  1590. else
  1591. with_opencl=no
  1592. fi
  1593. # Check whether --with-gdal or --without-gdal was given.
  1594. if test "${with_gdal+set}" = set; then
  1595. withval="$with_gdal"
  1596. :
  1597. fi
  1598. # Check whether --with-liblas or --without-liblas was given.
  1599. if test "${with_liblas+set}" = set; then
  1600. withval="$with_liblas"
  1601. :
  1602. else
  1603. with_liblas="no"
  1604. fi
  1605. # Check whether --with-wxwidgets or --without-wxwidgets was given.
  1606. if test "${with_wxwidgets+set}" = set; then
  1607. withval="$with_wxwidgets"
  1608. :
  1609. else
  1610. with_wxwidgets="no"
  1611. fi
  1612. # Check whether --with-netcdf or --without-netcdf was given.
  1613. if test "${with_netcdf+set}" = set; then
  1614. withval="$with_netcdf"
  1615. :
  1616. else
  1617. with_netcdf="no"
  1618. fi
  1619. # With includes and libs options
  1620. # Check whether --with-geos or --without-geos was given.
  1621. if test "${with_geos+set}" = set; then
  1622. withval="$with_geos"
  1623. :
  1624. else
  1625. with_geos="no"
  1626. fi
  1627. # Check whether --with-includes or --without-includes was given.
  1628. if test "${with_includes+set}" = set; then
  1629. withval="$with_includes"
  1630. :
  1631. fi
  1632. # Check whether --with-libs or --without-libs was given.
  1633. if test "${with_libs+set}" = set; then
  1634. withval="$with_libs"
  1635. :
  1636. fi
  1637. # Check whether --with-zlib-includes or --without-zlib-includes was given.
  1638. if test "${with_zlib_includes+set}" = set; then
  1639. withval="$with_zlib_includes"
  1640. :
  1641. fi
  1642. # Check whether --with-zlib-libs or --without-zlib-libs was given.
  1643. if test "${with_zlib_libs+set}" = set; then
  1644. withval="$with_zlib_libs"
  1645. :
  1646. fi
  1647. # Check whether --with-readline-includes or --without-readline-includes was given.
  1648. if test "${with_readline_includes+set}" = set; then
  1649. withval="$with_readline_includes"
  1650. :
  1651. fi
  1652. # Check whether --with-readline-libs or --without-readline-libs was given.
  1653. if test "${with_readline_libs+set}" = set; then
  1654. withval="$with_readline_libs"
  1655. :
  1656. fi
  1657. # Check whether --with-tiff-includes or --without-tiff-includes was given.
  1658. if test "${with_tiff_includes+set}" = set; then
  1659. withval="$with_tiff_includes"
  1660. :
  1661. fi
  1662. # Check whether --with-tiff-libs or --without-tiff-libs was given.
  1663. if test "${with_tiff_libs+set}" = set; then
  1664. withval="$with_tiff_libs"
  1665. :
  1666. fi
  1667. # Check whether --with-png-includes or --without-png-includes was given.
  1668. if test "${with_png_includes+set}" = set; then
  1669. withval="$with_png_includes"
  1670. :
  1671. fi
  1672. # Check whether --with-png-libs or --without-png-libs was given.
  1673. if test "${with_png_libs+set}" = set; then
  1674. withval="$with_png_libs"
  1675. :
  1676. fi
  1677. # Check whether --with-postgres-includes or --without-postgres-includes was given.
  1678. if test "${with_postgres_includes+set}" = set; then
  1679. withval="$with_postgres_includes"
  1680. :
  1681. fi
  1682. # Check whether --with-postgres-libs or --without-postgres-libs was given.
  1683. if test "${with_postgres_libs+set}" = set; then
  1684. withval="$with_postgres_libs"
  1685. :
  1686. fi
  1687. # Check whether --with-mysql-includes or --without-mysql-includes was given.
  1688. if test "${with_mysql_includes+set}" = set; then
  1689. withval="$with_mysql_includes"
  1690. :
  1691. fi
  1692. # Check whether --with-mysql-libs or --without-mysql-libs was given.
  1693. if test "${with_mysql_libs+set}" = set; then
  1694. withval="$with_mysql_libs"
  1695. :
  1696. fi
  1697. # Check whether --with-sqlite-includes or --without-sqlite-includes was given.
  1698. if test "${with_sqlite_includes+set}" = set; then
  1699. withval="$with_sqlite_includes"
  1700. :
  1701. fi
  1702. # Check whether --with-sqlite-libs or --without-sqlite-libs was given.
  1703. if test "${with_sqlite_libs+set}" = set; then
  1704. withval="$with_sqlite_libs"
  1705. :
  1706. fi
  1707. # Check whether --with-ffmpeg-includes or --without-ffmpeg-includes was given.
  1708. if test "${with_ffmpeg_includes+set}" = set; then
  1709. withval="$with_ffmpeg_includes"
  1710. :
  1711. fi
  1712. # Check whether --with-ffmpeg-libs or --without-ffmpeg-libs was given.
  1713. if test "${with_ffmpeg_libs+set}" = set; then
  1714. withval="$with_ffmpeg_libs"
  1715. :
  1716. fi
  1717. # Check whether --with-opengl-includes or --without-opengl-includes was given.
  1718. if test "${with_opengl_includes+set}" = set; then
  1719. withval="$with_opengl_includes"
  1720. :
  1721. fi
  1722. # Check whether --with-opengl-libs or --without-opengl-libs was given.
  1723. if test "${with_opengl_libs+set}" = set; then
  1724. withval="$with_opengl_libs"
  1725. :
  1726. fi
  1727. # Check whether --with-opengl-framework or --without-opengl-framework was given.
  1728. if test "${with_opengl_framework+set}" = set; then
  1729. withval="$with_opengl_framework"
  1730. :
  1731. fi
  1732. # Check whether --with-odbc-includes or --without-odbc-includes was given.
  1733. if test "${with_odbc_includes+set}" = set; then
  1734. withval="$with_odbc_includes"
  1735. :
  1736. fi
  1737. # Check whether --with-odbc-libs or --without-odbc-libs was given.
  1738. if test "${with_odbc_libs+set}" = set; then
  1739. withval="$with_odbc_libs"
  1740. :
  1741. fi
  1742. # Check whether --with-fftw-includes or --without-fftw-includes was given.
  1743. if test "${with_fftw_includes+set}" = set; then
  1744. withval="$with_fftw_includes"
  1745. :
  1746. fi
  1747. # Check whether --with-fftw-libs or --without-fftw-libs was given.
  1748. if test "${with_fftw_libs+set}" = set; then
  1749. withval="$with_fftw_libs"
  1750. :
  1751. fi
  1752. # Check whether --with-blas-includes or --without-blas-includes was given.
  1753. if test "${with_blas_includes+set}" = set; then
  1754. withval="$with_blas_includes"
  1755. :
  1756. fi
  1757. # Check whether --with-blas-libs or --without-blas-libs was given.
  1758. if test "${with_blas_libs+set}" = set; then
  1759. withval="$with_blas_libs"
  1760. :
  1761. fi
  1762. # Check whether --with-lapack-includes or --without-lapack-includes was given.
  1763. if test "${with_lapack_includes+set}" = set; then
  1764. withval="$with_lapack_includes"
  1765. :
  1766. fi
  1767. # Check whether --with-lapack-libs or --without-lapack-libs was given.
  1768. if test "${with_lapack_libs+set}" = set; then
  1769. withval="$with_lapack_libs"
  1770. :
  1771. fi
  1772. # Check whether --with-cairo-includes or --without-cairo-includes was given.
  1773. if test "${with_cairo_includes+set}" = set; then
  1774. withval="$with_cairo_includes"
  1775. :
  1776. fi
  1777. # Check whether --with-cairo-libs or --without-cairo-libs was given.
  1778. if test "${with_cairo_libs+set}" = set; then
  1779. withval="$with_cairo_libs"
  1780. :
  1781. fi
  1782. # Check whether --with-cairo-ldflags or --without-cairo-ldflags was given.
  1783. if test "${with_cairo_ldflags+set}" = set; then
  1784. withval="$with_cairo_ldflags"
  1785. :
  1786. fi
  1787. # Check whether --with-freetype-includes or --without-freetype-includes was given.
  1788. if test "${with_freetype_includes+set}" = set; then
  1789. withval="$with_freetype_includes"
  1790. :
  1791. fi
  1792. # Check whether --with-freetype-libs or --without-freetype-libs was given.
  1793. if test "${with_freetype_libs+set}" = set; then
  1794. withval="$with_freetype_libs"
  1795. :
  1796. fi
  1797. # Check whether --with-proj-includes or --without-proj-includes was given.
  1798. if test "${with_proj_includes+set}" = set; then
  1799. withval="$with_proj_includes"
  1800. :
  1801. fi
  1802. # Check whether --with-proj-libs or --without-proj-libs was given.
  1803. if test "${with_proj_libs+set}" = set; then
  1804. withval="$with_proj_libs"
  1805. :
  1806. fi
  1807. # Check whether --with-proj-share or --without-proj-share was given.
  1808. if test "${with_proj_share+set}" = set; then
  1809. withval="$with_proj_share"
  1810. :
  1811. fi
  1812. # Check whether --with-opendwg-includes or --without-opendwg-includes was given.
  1813. if test "${with_opendwg_includes+set}" = set; then
  1814. withval="$with_opendwg_includes"
  1815. :
  1816. fi
  1817. # Check whether --with-opendwg-libs or --without-opendwg-libs was given.
  1818. if test "${with_opendwg_libs+set}" = set; then
  1819. withval="$with_opendwg_libs"
  1820. :
  1821. fi
  1822. # Check whether --with-regex-includes or --without-regex-includes was given.
  1823. if test "${with_regex_includes+set}" = set; then
  1824. withval="$with_regex_includes"
  1825. :
  1826. fi
  1827. # Check whether --with-regex-libs or --without-regex-libs was given.
  1828. if test "${with_regex_libs+set}" = set; then
  1829. withval="$with_regex_libs"
  1830. :
  1831. fi
  1832. # Check whether --with-pthread-includes or --without-pthread-includes was given.
  1833. if test "${with_pthread_includes+set}" = set; then
  1834. withval="$with_pthread_includes"
  1835. :
  1836. fi
  1837. # Check whether --with-pthread-libs or --without-pthread-libs was given.
  1838. if test "${with_pthread_libs+set}" = set; then
  1839. withval="$with_pthread_libs"
  1840. :
  1841. fi
  1842. # Check whether --with-openmp-includes or --without-openmp-includes was given.
  1843. if test "${with_openmp_includes+set}" = set; then
  1844. withval="$with_openmp_includes"
  1845. :
  1846. fi
  1847. # Check whether --with-openmp-libs or --without-openmp-libs was given.
  1848. if test "${with_openmp_libs+set}" = set; then
  1849. withval="$with_openmp_libs"
  1850. :
  1851. fi
  1852. # Check whether --with-opencl-includes or --without-opencl-includes was given.
  1853. if test "${with_opencl_includes+set}" = set; then
  1854. withval="$with_opencl_includes"
  1855. :
  1856. fi
  1857. # Check whether --with-opencl-libs or --without-opencl-libs was given.
  1858. if test "${with_opencl_libs+set}" = set; then
  1859. withval="$with_opencl_libs"
  1860. :
  1861. fi
  1862. #LOC_ARG_WITH_FRAMEWORK(opencl, OpenCL)
  1863. # Put this early on so CPPFLAGS and LDFLAGS have any additional dirs
  1864. # With includes option
  1865. # Handle Fortran compiler choice
  1866. #LOC_CHECK_USE(g77, GNU Fortran 77, USE_G77)
  1867. # Done checking fortran
  1868. echo $ac_n "checking for additional include dirs""... $ac_c" 1>&6
  1869. echo "configure:2344: checking for additional include dirs" >&5
  1870. case "$with_includes" in
  1871. y | ye | yes | n | no)
  1872. { echo "configure: error: *** You must supply a directory to list --with-includes." 1>&2; exit 1; }
  1873. ;;
  1874. esac
  1875. echo "$ac_t""$with_includes" 1>&6
  1876. if test -n "$with_includes"; then
  1877. for dir in $with_includes; do
  1878. if test -d "$dir"; then
  1879. INCLUDE_DIRS="$INCLUDE_DIRS -I$dir"
  1880. else
  1881. { echo "configure: error: *** Include directory $dir does not exist." 1>&2; exit 1; }
  1882. fi
  1883. done
  1884. CPPFLAGS="$CPPFLAGS $INCLUDE_DIRS"
  1885. fi
  1886. # With libs option
  1887. echo $ac_n "checking for additional library dirs""... $ac_c" 1>&6
  1888. echo "configure:2367: checking for additional library dirs" >&5
  1889. case "$with_libs" in
  1890. y | ye | yes | n | no)
  1891. { echo "configure: error: *** You must supply a directory list to --with-libs." 1>&2; exit 1; }
  1892. ;;
  1893. esac
  1894. echo "$ac_t""$with_libs" 1>&6
  1895. if test -n "$with_libs"; then
  1896. for dir in $with_libs; do
  1897. if test -d "$dir"; then
  1898. LIBRARY_DIRS="$LIBRARY_DIRS -L$dir"
  1899. else
  1900. { echo "configure: error: *** Library directory $dir does not exist." 1>&2; exit 1; }
  1901. fi
  1902. done
  1903. LDFLAGS="$LDFLAGS $LIBRARY_DIRS"
  1904. fi
  1905. # Programs and standard headers, libraries, functions
  1906. # Find a good install program. We prefer a C program (faster),
  1907. # so one script is as good as another. But avoid the broken or
  1908. # incompatible versions:
  1909. # SysV /etc/install, /usr/sbin/install
  1910. # SunOS /usr/etc/install
  1911. # IRIX /sbin/install
  1912. # AIX /bin/install
  1913. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1914. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1915. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1916. # ./install, which can be erroneously created by make from ./install.sh.
  1917. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  1918. echo "configure:2401: checking for a BSD compatible install" >&5
  1919. if test -z "$INSTALL"; then
  1920. IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
  1921. for ac_dir in $PATH; do
  1922. # Account for people who put trailing slashes in PATH elements.
  1923. case "$ac_dir/" in
  1924. /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  1925. *)
  1926. # OSF1 and SCO ODT 3.0 have their own names for install.
  1927. # Don't use installbsd from OSF since it installs stuff as root
  1928. # by default.
  1929. for ac_prog in ginstall scoinst install; do
  1930. if test -f $ac_dir/$ac_prog; then
  1931. if test $ac_prog = install &&
  1932. grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  1933. # AIX install. It has an incompatible calling convention.
  1934. :
  1935. else
  1936. ac_cv_path_install="$ac_dir/$ac_prog -c"
  1937. break 2
  1938. fi
  1939. fi
  1940. done
  1941. ;;
  1942. esac
  1943. done
  1944. IFS="$ac_save_IFS"
  1945. if test "${ac_cv_path_install+set}" = set; then
  1946. INSTALL="$ac_cv_path_install"
  1947. else
  1948. # As a last resort, use the slow shell script. We don't cache a
  1949. # path for INSTALL within a source directory, because that will
  1950. # break other packages using the cache if that directory is
  1951. # removed, or if the path is relative.
  1952. INSTALL="$ac_install_sh"
  1953. fi
  1954. fi
  1955. echo "$ac_t""$INSTALL" 1>&6
  1956. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1957. # It thinks the first close brace ends the variable substitution.
  1958. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1959. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  1960. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1961. # Extract the first word of "flex", so it can be a program name with args.
  1962. set dummy flex; ac_word=$2
  1963. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1964. echo "configure:2454: checking for $ac_word" >&5
  1965. if test -n "$LEX"; then
  1966. ac_cv_prog_LEX="$LEX" # Let the user override the test.
  1967. else
  1968. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1969. ac_dummy="$PATH"
  1970. for ac_dir in $ac_dummy; do
  1971. test -z "$ac_dir" && ac_dir=.
  1972. if test -f $ac_dir/$ac_word; then
  1973. ac_cv_prog_LEX="flex"
  1974. break
  1975. fi
  1976. done
  1977. IFS="$ac_save_ifs"
  1978. test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
  1979. fi
  1980. LEX="$ac_cv_prog_LEX"
  1981. if test -n "$LEX"; then
  1982. echo "$ac_t""$LEX" 1>&6
  1983. else
  1984. echo "$ac_t""no" 1>&6
  1985. fi
  1986. if test -z "$LEXLIB"
  1987. then
  1988. case "$LEX" in
  1989. flex*) ac_lib=fl ;;
  1990. *) ac_lib=l ;;
  1991. esac
  1992. echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
  1993. echo "configure:2485: checking for yywrap in -l$ac_lib" >&5
  1994. ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
  1995. ac_save_LIBS="$LIBS"
  1996. LIBS="-l$ac_lib $LIBS"
  1997. cat > conftest.$ac_ext <<EOF
  1998. #line 2491 "configure"
  1999. #include "confdefs.h"
  2000. /* Override any gcc2 internal prototype to avoid an error. */
  2001. /* We use char because int might match the return type of a gcc2
  2002. builtin and then its argument prototype would still apply. */
  2003. char yywrap();
  2004. int main() {
  2005. yywrap()
  2006. ; return 0; }
  2007. EOF
  2008. if { (eval echo configure:2502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2009. rm -rf conftest*
  2010. eval "ac_cv_lib_$ac_lib_var=yes"
  2011. else
  2012. echo "configure: failed program was:" >&5
  2013. cat conftest.$ac_ext >&5
  2014. rm -rf conftest*
  2015. eval "ac_cv_lib_$ac_lib_var=no"
  2016. fi
  2017. rm -f conftest*
  2018. LIBS="$ac_save_LIBS"
  2019. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2020. echo "$ac_t""yes" 1>&6
  2021. LEXLIB="-l$ac_lib"
  2022. else
  2023. echo "$ac_t""no" 1>&6
  2024. fi
  2025. fi
  2026. if test "$LEX" = "lex"; then
  2027. # Extract the first word of "lex", so it can be a program name with args.
  2028. set dummy lex; ac_word=$2
  2029. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2030. echo "configure:2527: checking for $ac_word" >&5
  2031. case "$LEXPATH" in
  2032. /*)
  2033. ac_cv_path_LEXPATH="$LEXPATH" # Let the user override the test with a path.
  2034. ;;
  2035. ?:/*)
  2036. ac_cv_path_LEXPATH="$LEXPATH" # Let the user override the test with a dos path.
  2037. ;;
  2038. *)
  2039. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2040. ac_dummy="$PATH"
  2041. for ac_dir in $ac_dummy; do
  2042. test -z "$ac_dir" && ac_dir=.
  2043. if test -f $ac_dir/$ac_word; then
  2044. ac_cv_path_LEXPATH="$ac_dir/$ac_word"
  2045. break
  2046. fi
  2047. done
  2048. IFS="$ac_save_ifs"
  2049. test -z "$ac_cv_path_LEXPATH" && ac_cv_path_LEXPATH="no"
  2050. ;;
  2051. esac
  2052. LEXPATH="$ac_cv_path_LEXPATH"
  2053. if test -n "$LEXPATH"; then
  2054. echo "$ac_t""$LEXPATH" 1>&6
  2055. else
  2056. echo "$ac_t""no" 1>&6
  2057. fi
  2058. if test "$LEXPATH" = "no"; then
  2059. { echo "configure: error: *** Unable to locate lex." 1>&2; exit 1; }
  2060. fi
  2061. fi
  2062. for ac_prog in 'bison -y' byacc
  2063. do
  2064. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2065. set dummy $ac_prog; ac_word=$2
  2066. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2067. echo "configure:2567: checking for $ac_word" >&5
  2068. if test -n "$YACC"; then
  2069. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  2070. else
  2071. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2072. ac_dummy="$PATH"
  2073. for ac_dir in $ac_dummy; do
  2074. test -z "$ac_dir" && ac_dir=.
  2075. if test -f $ac_dir/$ac_word; then
  2076. ac_cv_prog_YACC="$ac_prog"
  2077. break
  2078. fi
  2079. done
  2080. IFS="$ac_save_ifs"
  2081. fi
  2082. YACC="$ac_cv_prog_YACC"
  2083. if test -n "$YACC"; then
  2084. echo "$ac_t""$YACC" 1>&6
  2085. else
  2086. echo "$ac_t""no" 1>&6
  2087. fi
  2088. test -n "$YACC" && break
  2089. done
  2090. test -n "$YACC" || YACC="yacc"
  2091. if test "$YACC" = "yacc"; then
  2092. # Extract the first word of "yacc", so it can be a program name with args.
  2093. set dummy yacc; ac_word=$2
  2094. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2095. echo "configure:2598: checking for $ac_word" >&5
  2096. case "$YACCPATH" in
  2097. /*)
  2098. ac_cv_path_YACCPATH="$YACCPATH" # Let the user override the test with a path.
  2099. ;;
  2100. ?:/*)
  2101. ac_cv_path_YACCPATH="$YACCPATH" # Let the user override the test with a dos path.
  2102. ;;
  2103. *)
  2104. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2105. ac_dummy="$PATH"
  2106. for ac_dir in $ac_dummy; do
  2107. test -z "$ac_dir" && ac_dir=.
  2108. if test -f $ac_dir/$ac_word; then
  2109. ac_cv_path_YACCPATH="$ac_dir/$ac_word"
  2110. break
  2111. fi
  2112. done
  2113. IFS="$ac_save_ifs"
  2114. test -z "$ac_cv_path_YACCPATH" && ac_cv_path_YACCPATH="no"
  2115. ;;
  2116. esac
  2117. YACCPATH="$ac_cv_path_YACCPATH"
  2118. if test -n "$YACCPATH"; then
  2119. echo "$ac_t""$YACCPATH" 1>&6
  2120. else
  2121. echo "$ac_t""no" 1>&6
  2122. fi
  2123. if test "$YACCPATH" = "no"; then
  2124. { echo "configure: error: *** Unable to locate yacc." 1>&2; exit 1; }
  2125. fi
  2126. fi
  2127. # Extract the first word of "ranlib", so it can be a program name with args.
  2128. set dummy ranlib; ac_word=$2
  2129. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2130. echo "configure:2636: checking for $ac_word" >&5
  2131. if test -n "$RANLIB"; then
  2132. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  2133. else
  2134. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2135. ac_dummy="$PATH"
  2136. for ac_dir in $ac_dummy; do
  2137. test -z "$ac_dir" && ac_dir=.
  2138. if test -f $ac_dir/$ac_word; then
  2139. ac_cv_prog_RANLIB="ranlib"
  2140. break
  2141. fi
  2142. done
  2143. IFS="$ac_save_ifs"
  2144. test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  2145. fi
  2146. RANLIB="$ac_cv_prog_RANLIB"
  2147. if test -n "$RANLIB"; then
  2148. echo "$ac_t""$RANLIB" 1>&6
  2149. else
  2150. echo "$ac_t""no" 1>&6
  2151. fi
  2152. for ac_prog in ar
  2153. do
  2154. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2155. set dummy $ac_prog; ac_word=$2
  2156. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2157. echo "configure:2665: checking for $ac_word" >&5
  2158. if test -n "$AR"; then
  2159. ac_cv_prog_AR="$AR" # Let the user override the test.
  2160. else
  2161. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2162. ac_dummy="$PATH"
  2163. for ac_dir in $ac_dummy; do
  2164. test -z "$ac_dir" && ac_dir=.
  2165. if test -f $ac_dir/$ac_word; then
  2166. ac_cv_prog_AR="$ac_prog"
  2167. break
  2168. fi
  2169. done
  2170. IFS="$ac_save_ifs"
  2171. fi
  2172. AR="$ac_cv_prog_AR"
  2173. if test -n "$AR"; then
  2174. echo "$ac_t""$AR" 1>&6
  2175. else
  2176. echo "$ac_t""no" 1>&6
  2177. fi
  2178. test -n "$AR" && break
  2179. done
  2180. for ac_prog in env
  2181. do
  2182. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2183. set dummy $ac_prog; ac_word=$2
  2184. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2185. echo "configure:2696: checking for $ac_word" >&5
  2186. if test -n "$ENV"; then
  2187. ac_cv_prog_ENV="$ENV" # Let the user override the test.
  2188. else
  2189. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2190. ac_dummy="$PATH"
  2191. for ac_dir in $ac_dummy; do
  2192. test -z "$ac_dir" && ac_dir=.
  2193. if test -f $ac_dir/$ac_word; then
  2194. ac_cv_prog_ENV="$ac_prog"
  2195. break
  2196. fi
  2197. done
  2198. IFS="$ac_save_ifs"
  2199. fi
  2200. ENV="$ac_cv_prog_ENV"
  2201. if test -n "$ENV"; then
  2202. echo "$ac_t""$ENV" 1>&6
  2203. else
  2204. echo "$ac_t""no" 1>&6
  2205. fi
  2206. test -n "$ENV" && break
  2207. done
  2208. # Extract the first word of "perl", so it can be a program name with args.
  2209. set dummy perl; ac_word=$2
  2210. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2211. echo "configure:2725: checking for $ac_word" >&5
  2212. case "$PERL" in
  2213. /*)
  2214. ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  2215. ;;
  2216. ?:/*)
  2217. ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
  2218. ;;
  2219. *)
  2220. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2221. ac_dummy="$PATH"
  2222. for ac_dir in $ac_dummy; do
  2223. test -z "$ac_dir" && ac_dir=.
  2224. if test -f $ac_dir/$ac_word; then
  2225. ac_cv_path_PERL="$ac_dir/$ac_word"
  2226. break
  2227. fi
  2228. done
  2229. IFS="$ac_save_ifs"
  2230. test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
  2231. ;;
  2232. esac
  2233. PERL="$ac_cv_path_PERL"
  2234. if test -n "$PERL"; then
  2235. echo "$ac_t""$PERL" 1>&6
  2236. else
  2237. echo "$ac_t""no" 1>&6
  2238. fi
  2239. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  2240. echo "configure:2756: checking how to run the C preprocessor" >&5
  2241. # On Suns, sometimes $CPP names a directory.
  2242. if test -n "$CPP" && test -d "$CPP"; then
  2243. CPP=
  2244. fi
  2245. if test -z "$CPP"; then
  2246. # This must be in double quotes, not single quotes, because CPP may get
  2247. # substituted into the Makefile and "${CC-cc}" will confuse make.
  2248. CPP="${CC-cc} -E"
  2249. # On the NeXT, cc -E runs the code through the compiler's parser,
  2250. # not just through cpp.
  2251. cat > conftest.$ac_ext <<EOF
  2252. #line 2769 "configure"
  2253. #include "confdefs.h"
  2254. #include <assert.h>
  2255. Syntax Error
  2256. EOF
  2257. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2258. { (eval echo configure:2775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2259. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2260. if test -z "$ac_err"; then
  2261. :
  2262. else
  2263. echo "$ac_err" >&5
  2264. echo "configure: failed program was:" >&5
  2265. cat conftest.$ac_ext >&5
  2266. rm -rf conftest*
  2267. CPP="${CC-cc} -E -traditional-cpp"
  2268. cat > conftest.$ac_ext <<EOF
  2269. #line 2786 "configure"
  2270. #include "confdefs.h"
  2271. #include <assert.h>
  2272. Syntax Error
  2273. EOF
  2274. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2275. { (eval echo configure:2792: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2276. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2277. if test -z "$ac_err"; then
  2278. :
  2279. else
  2280. echo "$ac_err" >&5
  2281. echo "configure: failed program was:" >&5
  2282. cat conftest.$ac_ext >&5
  2283. rm -rf conftest*
  2284. CPP="${CC-cc} -nologo -E"
  2285. cat > conftest.$ac_ext <<EOF
  2286. #line 2803 "configure"
  2287. #include "confdefs.h"
  2288. #include <assert.h>
  2289. Syntax Error
  2290. EOF
  2291. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2292. { (eval echo configure:2809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2293. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2294. if test -z "$ac_err"; then
  2295. :
  2296. else
  2297. echo "$ac_err" >&5
  2298. echo "configure: failed program was:" >&5
  2299. cat conftest.$ac_ext >&5
  2300. rm -rf conftest*
  2301. CPP=/lib/cpp
  2302. fi
  2303. rm -f conftest*
  2304. fi
  2305. rm -f conftest*
  2306. fi
  2307. rm -f conftest*
  2308. ac_cv_prog_CPP="$CPP"
  2309. CPP="$ac_cv_prog_CPP"
  2310. else
  2311. ac_cv_prog_CPP="$CPP"
  2312. fi
  2313. echo "$ac_t""$CPP" 1>&6
  2314. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  2315. echo "configure:2833: checking for ANSI C header files" >&5
  2316. cat > conftest.$ac_ext <<EOF
  2317. #line 2836 "configure"
  2318. #include "confdefs.h"
  2319. #include <stdlib.h>
  2320. #include <stdarg.h>
  2321. #include <string.h>
  2322. #include <float.h>
  2323. EOF
  2324. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2325. { (eval echo configure:2844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2326. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2327. if test -z "$ac_err"; then
  2328. rm -rf conftest*
  2329. ac_cv_header_stdc=yes
  2330. else
  2331. echo "$ac_err" >&5
  2332. echo "configure: failed program was:" >&5
  2333. cat conftest.$ac_ext >&5
  2334. rm -rf conftest*
  2335. ac_cv_header_stdc=no
  2336. fi
  2337. rm -f conftest*
  2338. if test $ac_cv_header_stdc = yes; then
  2339. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2340. cat > conftest.$ac_ext <<EOF
  2341. #line 2861 "configure"
  2342. #include "confdefs.h"
  2343. #include <string.h>
  2344. EOF
  2345. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2346. egrep "memchr" >/dev/null 2>&1; then
  2347. :
  2348. else
  2349. rm -rf conftest*
  2350. ac_cv_header_stdc=no
  2351. fi
  2352. rm -f conftest*
  2353. fi
  2354. if test $ac_cv_header_stdc = yes; then
  2355. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2356. cat > conftest.$ac_ext <<EOF
  2357. #line 2879 "configure"
  2358. #include "confdefs.h"
  2359. #include <stdlib.h>
  2360. EOF
  2361. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2362. egrep "free" >/dev/null 2>&1; then
  2363. :
  2364. else
  2365. rm -rf conftest*
  2366. ac_cv_header_stdc=no
  2367. fi
  2368. rm -f conftest*
  2369. fi
  2370. if test $ac_cv_header_stdc = yes; then
  2371. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2372. if test "$cross_compiling" = yes; then
  2373. :
  2374. else
  2375. cat > conftest.$ac_ext <<EOF
  2376. #line 2900 "configure"
  2377. #include "confdefs.h"
  2378. #include <ctype.h>
  2379. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2380. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2381. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2382. int main () { int i; for (i = 0; i < 256; i++)
  2383. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  2384. exit (0); }
  2385. EOF
  2386. if { (eval echo configure:2911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2387. then
  2388. :
  2389. else
  2390. echo "configure: failed program was:" >&5
  2391. cat conftest.$ac_ext >&5
  2392. rm -fr conftest*
  2393. ac_cv_header_stdc=no
  2394. fi
  2395. rm -fr conftest*
  2396. fi
  2397. fi
  2398. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  2399. if test $ac_cv_header_stdc = yes; then
  2400. cat >> confdefs.h <<\EOF
  2401. #define STDC_HEADERS 1
  2402. EOF
  2403. fi
  2404. #AC_CHECK_HEADERS(curses.h limits.h termio.h termios.h unistd.h values.h)
  2405. for ac_hdr in limits.h termio.h termios.h unistd.h values.h f2c.h g2c.h
  2406. do
  2407. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2408. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2409. echo "configure:2938: checking for $ac_hdr" >&5
  2410. cat > conftest.$ac_ext <<EOF
  2411. #line 2941 "configure"
  2412. #include "confdefs.h"
  2413. #include <$ac_hdr>
  2414. EOF
  2415. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2416. { (eval echo configure:2946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2417. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2418. if test -z "$ac_err"; then
  2419. rm -rf conftest*
  2420. eval "ac_cv_header_$ac_safe=yes"
  2421. else
  2422. echo "$ac_err" >&5
  2423. echo "configure: failed program was:" >&5
  2424. cat conftest.$ac_ext >&5
  2425. rm -rf conftest*
  2426. eval "ac_cv_header_$ac_safe=no"
  2427. fi
  2428. rm -f conftest*
  2429. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2430. echo "$ac_t""yes" 1>&6
  2431. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2432. cat >> confdefs.h <<EOF
  2433. #define $ac_tr_hdr 1
  2434. EOF
  2435. else
  2436. echo "$ac_t""no" 1>&6
  2437. fi
  2438. done
  2439. for ac_hdr in sys/ioctl.h sys/mtio.h sys/resource.h sys/time.h
  2440. do
  2441. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2442. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2443. echo "configure:2975: checking for $ac_hdr" >&5
  2444. cat > conftest.$ac_ext <<EOF
  2445. #line 2978 "configure"
  2446. #include "confdefs.h"
  2447. #include <$ac_hdr>
  2448. EOF
  2449. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2450. { (eval echo configure:2983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2451. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2452. if test -z "$ac_err"; then
  2453. rm -rf conftest*
  2454. eval "ac_cv_header_$ac_safe=yes"
  2455. else
  2456. echo "$ac_err" >&5
  2457. echo "configure: failed program was:" >&5
  2458. cat conftest.$ac_ext >&5
  2459. rm -rf conftest*
  2460. eval "ac_cv_header_$ac_safe=no"
  2461. fi
  2462. rm -f conftest*
  2463. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2464. echo "$ac_t""yes" 1>&6
  2465. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2466. cat >> confdefs.h <<EOF
  2467. #define $ac_tr_hdr 1
  2468. EOF
  2469. else
  2470. echo "$ac_t""no" 1>&6
  2471. fi
  2472. done
  2473. for ac_hdr in sys/timeb.h sys/types.h sys/utsname.h
  2474. do
  2475. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2476. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2477. echo "configure:3012: checking for $ac_hdr" >&5
  2478. cat > conftest.$ac_ext <<EOF
  2479. #line 3015 "configure"
  2480. #include "confdefs.h"
  2481. #include <$ac_hdr>
  2482. EOF
  2483. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2484. { (eval echo configure:3020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2485. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2486. if test -z "$ac_err"; then
  2487. rm -rf conftest*
  2488. eval "ac_cv_header_$ac_safe=yes"
  2489. else
  2490. echo "$ac_err" >&5
  2491. echo "configure: failed program was:" >&5
  2492. cat conftest.$ac_ext >&5
  2493. rm -rf conftest*
  2494. eval "ac_cv_header_$ac_safe=no"
  2495. fi
  2496. rm -f conftest*
  2497. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2498. echo "$ac_t""yes" 1>&6
  2499. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2500. cat >> confdefs.h <<EOF
  2501. #define $ac_tr_hdr 1
  2502. EOF
  2503. else
  2504. echo "$ac_t""no" 1>&6
  2505. fi
  2506. done
  2507. for ac_hdr in libintl.h iconv.h
  2508. do
  2509. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2510. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2511. echo "configure:3049: checking for $ac_hdr" >&5
  2512. cat > conftest.$ac_ext <<EOF
  2513. #line 3052 "configure"
  2514. #include "confdefs.h"
  2515. #include <$ac_hdr>
  2516. EOF
  2517. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2518. { (eval echo configure:3057: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2519. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2520. if test -z "$ac_err"; then
  2521. rm -rf conftest*
  2522. eval "ac_cv_header_$ac_safe=yes"
  2523. else
  2524. echo "$ac_err" >&5
  2525. echo "configure: failed program was:" >&5
  2526. cat conftest.$ac_ext >&5
  2527. rm -rf conftest*
  2528. eval "ac_cv_header_$ac_safe=no"
  2529. fi
  2530. rm -f conftest*
  2531. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2532. echo "$ac_t""yes" 1>&6
  2533. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2534. cat >> confdefs.h <<EOF
  2535. #define $ac_tr_hdr 1
  2536. EOF
  2537. else
  2538. echo "$ac_t""no" 1>&6
  2539. fi
  2540. done
  2541. for ac_hdr in langinfo.h
  2542. do
  2543. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2544. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2545. echo "configure:3086: checking for $ac_hdr" >&5
  2546. cat > conftest.$ac_ext <<EOF
  2547. #line 3089 "configure"
  2548. #include "confdefs.h"
  2549. #include <$ac_hdr>
  2550. EOF
  2551. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2552. { (eval echo configure:3094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2553. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2554. if test -z "$ac_err"; then
  2555. rm -rf conftest*
  2556. eval "ac_cv_header_$ac_safe=yes"
  2557. else
  2558. echo "$ac_err" >&5
  2559. echo "configure: failed program was:" >&5
  2560. cat conftest.$ac_ext >&5
  2561. rm -rf conftest*
  2562. eval "ac_cv_header_$ac_safe=no"
  2563. fi
  2564. rm -f conftest*
  2565. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2566. echo "$ac_t""yes" 1>&6
  2567. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2568. cat >> confdefs.h <<EOF
  2569. #define $ac_tr_hdr 1
  2570. EOF
  2571. else
  2572. echo "$ac_t""no" 1>&6
  2573. fi
  2574. done
  2575. echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
  2576. echo "configure:3120: checking whether time.h and sys/time.h may both be included" >&5
  2577. cat > conftest.$ac_ext <<EOF
  2578. #line 3123 "configure"
  2579. #include "confdefs.h"
  2580. #include <sys/types.h>
  2581. #include <sys/time.h>
  2582. #include <time.h>
  2583. int main() {
  2584. struct tm *tp;
  2585. ; return 0; }
  2586. EOF
  2587. if { (eval echo configure:3132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2588. rm -rf conftest*
  2589. ac_cv_header_time=yes
  2590. else
  2591. echo "configure: failed program was:" >&5
  2592. cat conftest.$ac_ext >&5
  2593. rm -rf conftest*
  2594. ac_cv_header_time=no
  2595. fi
  2596. rm -f conftest*
  2597. echo "$ac_t""$ac_cv_header_time" 1>&6
  2598. if test $ac_cv_header_time = yes; then
  2599. cat >> confdefs.h <<\EOF
  2600. #define TIME_WITH_SYS_TIME 1
  2601. EOF
  2602. fi
  2603. echo $ac_n "checking for off_t""... $ac_c" 1>&6
  2604. echo "configure:3152: checking for off_t" >&5
  2605. cat > conftest.$ac_ext <<EOF
  2606. #line 3155 "configure"
  2607. #include "confdefs.h"
  2608. #include <sys/types.h>
  2609. #if STDC_HEADERS
  2610. #include <stdlib.h>
  2611. #include <stddef.h>
  2612. #endif
  2613. EOF
  2614. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2615. egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  2616. rm -rf conftest*
  2617. ac_cv_type_off_t=yes
  2618. else
  2619. rm -rf conftest*
  2620. ac_cv_type_off_t=no
  2621. fi
  2622. rm -f conftest*
  2623. echo "$ac_t""$ac_cv_type_off_t" 1>&6
  2624. if test $ac_cv_type_off_t = no; then
  2625. cat >> confdefs.h <<\EOF
  2626. #define off_t long
  2627. EOF
  2628. fi
  2629. echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
  2630. echo "configure:3182: checking for uid_t in sys/types.h" >&5
  2631. cat > conftest.$ac_ext <<EOF
  2632. #line 3185 "configure"
  2633. #include "confdefs.h"
  2634. #include <sys/types.h>
  2635. EOF
  2636. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2637. egrep "uid_t" >/dev/null 2>&1; then
  2638. rm -rf conftest*
  2639. ac_cv_type_uid_t=yes
  2640. else
  2641. rm -rf conftest*
  2642. ac_cv_type_uid_t=no
  2643. fi
  2644. rm -f conftest*
  2645. echo "$ac_t""$ac_cv_type_uid_t" 1>&6
  2646. if test $ac_cv_type_uid_t = no; then
  2647. cat >> confdefs.h <<\EOF
  2648. #define uid_t int
  2649. EOF
  2650. cat >> confdefs.h <<\EOF
  2651. #define gid_t int
  2652. EOF
  2653. fi
  2654. echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
  2655. echo "configure:3213: checking return type of signal handlers" >&5
  2656. cat > conftest.$ac_ext <<EOF
  2657. #line 3216 "configure"
  2658. #include "confdefs.h"
  2659. #include <sys/types.h>
  2660. #include <signal.h>
  2661. #ifdef signal
  2662. #undef signal
  2663. #endif
  2664. #ifdef __cplusplus
  2665. extern "C" void (*signal (int, void (*)(int)))(int);
  2666. #else
  2667. void (*signal ()) ();
  2668. #endif
  2669. int main() {
  2670. int i;
  2671. ; return 0; }
  2672. EOF
  2673. if { (eval echo configure:3233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2674. rm -rf conftest*
  2675. ac_cv_type_signal=void
  2676. else
  2677. echo "configure: failed program was:" >&5
  2678. cat conftest.$ac_ext >&5
  2679. rm -rf conftest*
  2680. ac_cv_type_signal=int
  2681. fi
  2682. rm -f conftest*
  2683. echo "$ac_t""$ac_cv_type_signal" 1>&6
  2684. cat >> confdefs.h <<EOF
  2685. #define RETSIGTYPE $ac_cv_type_signal
  2686. EOF
  2687. echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
  2688. echo "configure:3251: checking for Cygwin environment" >&5
  2689. cat > conftest.$ac_ext <<EOF
  2690. #line 3254 "configure"
  2691. #include "confdefs.h"
  2692. int main() {
  2693. #ifndef __CYGWIN__
  2694. #define __CYGWIN__ __CYGWIN32__
  2695. #endif
  2696. return __CYGWIN__;
  2697. ; return 0; }
  2698. EOF
  2699. if { (eval echo configure:3265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2700. rm -rf conftest*
  2701. ac_cv_cygwin=yes
  2702. else
  2703. echo "configure: failed program was:" >&5
  2704. cat conftest.$ac_ext >&5
  2705. rm -rf conftest*
  2706. ac_cv_cygwin=no
  2707. fi
  2708. rm -f conftest*
  2709. rm -f conftest*
  2710. echo "$ac_t""$ac_cv_cygwin" 1>&6
  2711. CYGWIN=
  2712. test "$ac_cv_cygwin" = yes && CYGWIN=yes
  2713. for ac_func in ftime gethostname gettimeofday lseek nice time uname
  2714. do
  2715. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2716. echo "configure:3283: checking for $ac_func" >&5
  2717. cat > conftest.$ac_ext <<EOF
  2718. #line 3286 "configure"
  2719. #include "confdefs.h"
  2720. /* System header to define __stub macros and hopefully few prototypes,
  2721. which can conflict with char $ac_func(); below. */
  2722. #include <assert.h>
  2723. /* Override any gcc2 internal prototype to avoid an error. */
  2724. /* We use char because int might match the return type of a gcc2
  2725. builtin and then its argument prototype would still apply. */
  2726. char $ac_func();
  2727. int main() {
  2728. /* The GNU C library defines this for functions which it implements
  2729. to always fail with ENOSYS. Some functions are actually named
  2730. something starting with __ and the normal name is an alias. */
  2731. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2732. choke me
  2733. #else
  2734. $ac_func();
  2735. #endif
  2736. ; return 0; }
  2737. EOF
  2738. if { (eval echo configure:3309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2739. rm -rf conftest*
  2740. eval "ac_cv_func_$ac_func=yes"
  2741. else
  2742. echo "configure: failed program was:" >&5
  2743. cat conftest.$ac_ext >&5
  2744. rm -rf conftest*
  2745. eval "ac_cv_func_$ac_func=no"
  2746. fi
  2747. rm -f conftest*
  2748. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2749. echo "$ac_t""yes" 1>&6
  2750. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2751. cat >> confdefs.h <<EOF
  2752. #define $ac_tr_func 1
  2753. EOF
  2754. else
  2755. echo "$ac_t""no" 1>&6
  2756. fi
  2757. done
  2758. for ac_func in seteuid setpriority setreuid setruid
  2759. do
  2760. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2761. echo "configure:3335: checking for $ac_func" >&5
  2762. cat > conftest.$ac_ext <<EOF
  2763. #line 3338 "configure"
  2764. #include "confdefs.h"
  2765. /* System header to define __stub macros and hopefully few prototypes,
  2766. which can conflict with char $ac_func(); below. */
  2767. #include <assert.h>
  2768. /* Override any gcc2 internal prototype to avoid an error. */
  2769. /* We use char because int might match the return type of a gcc2
  2770. builtin and then its argument prototype would still apply. */
  2771. char $ac_func();
  2772. int main() {
  2773. /* The GNU C library defines this for functions which it implements
  2774. to always fail with ENOSYS. Some functions are actually named
  2775. something starting with __ and the normal name is an alias. */
  2776. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2777. choke me
  2778. #else
  2779. $ac_func();
  2780. #endif
  2781. ; return 0; }
  2782. EOF
  2783. if { (eval echo configure:3361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2784. rm -rf conftest*
  2785. eval "ac_cv_func_$ac_func=yes"
  2786. else
  2787. echo "configure: failed program was:" >&5
  2788. cat conftest.$ac_ext >&5
  2789. rm -rf conftest*
  2790. eval "ac_cv_func_$ac_func=no"
  2791. fi
  2792. rm -f conftest*
  2793. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2794. echo "$ac_t""yes" 1>&6
  2795. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2796. cat >> confdefs.h <<EOF
  2797. #define $ac_tr_func 1
  2798. EOF
  2799. else
  2800. echo "$ac_t""no" 1>&6
  2801. fi
  2802. done
  2803. for ac_func in drand48
  2804. do
  2805. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2806. echo "configure:3387: checking for $ac_func" >&5
  2807. cat > conftest.$ac_ext <<EOF
  2808. #line 3390 "configure"
  2809. #include "confdefs.h"
  2810. /* System header to define __stub macros and hopefully few prototypes,
  2811. which can conflict with char $ac_func(); below. */
  2812. #include <assert.h>
  2813. /* Override any gcc2 internal prototype to avoid an error. */
  2814. /* We use char because int might match the return type of a gcc2
  2815. builtin and then its argument prototype would still apply. */
  2816. char $ac_func();
  2817. int main() {
  2818. /* The GNU C library defines this for functions which it implements
  2819. to always fail with ENOSYS. Some functions are actually named
  2820. something starting with __ and the normal name is an alias. */
  2821. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2822. choke me
  2823. #else
  2824. $ac_func();
  2825. #endif
  2826. ; return 0; }
  2827. EOF
  2828. if { (eval echo configure:3413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2829. rm -rf conftest*
  2830. eval "ac_cv_func_$ac_func=yes"
  2831. else
  2832. echo "configure: failed program was:" >&5
  2833. cat conftest.$ac_ext >&5
  2834. rm -rf conftest*
  2835. eval "ac_cv_func_$ac_func=no"
  2836. fi
  2837. rm -f conftest*
  2838. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2839. echo "$ac_t""yes" 1>&6
  2840. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2841. cat >> confdefs.h <<EOF
  2842. #define $ac_tr_func 1
  2843. EOF
  2844. else
  2845. echo "$ac_t""no" 1>&6
  2846. fi
  2847. done
  2848. for ac_func in putenv setenv
  2849. do
  2850. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2851. echo "configure:3439: checking for $ac_func" >&5
  2852. cat > conftest.$ac_ext <<EOF
  2853. #line 3442 "configure"
  2854. #include "confdefs.h"
  2855. /* System header to define __stub macros and hopefully few prototypes,
  2856. which can conflict with char $ac_func(); below. */
  2857. #include <assert.h>
  2858. /* Override any gcc2 internal prototype to avoid an error. */
  2859. /* We use char because int might match the return type of a gcc2
  2860. builtin and then its argument prototype would still apply. */
  2861. char $ac_func();
  2862. int main() {
  2863. /* The GNU C library defines this for functions which it implements
  2864. to always fail with ENOSYS. Some functions are actually named
  2865. something starting with __ and the normal name is an alias. */
  2866. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2867. choke me
  2868. #else
  2869. $ac_func();
  2870. #endif
  2871. ; return 0; }
  2872. EOF
  2873. if { (eval echo configure:3465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2874. rm -rf conftest*
  2875. eval "ac_cv_func_$ac_func=yes"
  2876. else
  2877. echo "configure: failed program was:" >&5
  2878. cat conftest.$ac_ext >&5
  2879. rm -rf conftest*
  2880. eval "ac_cv_func_$ac_func=no"
  2881. fi
  2882. rm -f conftest*
  2883. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2884. echo "$ac_t""yes" 1>&6
  2885. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2886. cat >> confdefs.h <<EOF
  2887. #define $ac_tr_func 1
  2888. EOF
  2889. else
  2890. echo "$ac_t""no" 1>&6
  2891. fi
  2892. done
  2893. for ac_func in nanosleep
  2894. do
  2895. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2896. echo "configure:3491: checking for $ac_func" >&5
  2897. cat > conftest.$ac_ext <<EOF
  2898. #line 3494 "configure"
  2899. #include "confdefs.h"
  2900. /* System header to define __stub macros and hopefully few prototypes,
  2901. which can conflict with char $ac_func(); below. */
  2902. #include <assert.h>
  2903. /* Override any gcc2 internal prototype to avoid an error. */
  2904. /* We use char because int might match the return type of a gcc2
  2905. builtin and then its argument prototype would still apply. */
  2906. char $ac_func();
  2907. int main() {
  2908. /* The GNU C library defines this for functions which it implements
  2909. to always fail with ENOSYS. Some functions are actually named
  2910. something starting with __ and the normal name is an alias. */
  2911. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2912. choke me
  2913. #else
  2914. $ac_func();
  2915. #endif
  2916. ; return 0; }
  2917. EOF
  2918. if { (eval echo configure:3517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2919. rm -rf conftest*
  2920. eval "ac_cv_func_$ac_func=yes"
  2921. else
  2922. echo "configure: failed program was:" >&5
  2923. cat conftest.$ac_ext >&5
  2924. rm -rf conftest*
  2925. eval "ac_cv_func_$ac_func=no"
  2926. fi
  2927. rm -f conftest*
  2928. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2929. echo "$ac_t""yes" 1>&6
  2930. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2931. cat >> confdefs.h <<EOF
  2932. #define $ac_tr_func 1
  2933. EOF
  2934. else
  2935. echo "$ac_t""no" 1>&6
  2936. fi
  2937. done
  2938. if test "$cross_compiling" != "yes" ; then
  2939. echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
  2940. echo "configure:3542: checking whether setpgrp takes no argument" >&5
  2941. if test "$cross_compiling" = yes; then
  2942. { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
  2943. else
  2944. cat > conftest.$ac_ext <<EOF
  2945. #line 3548 "configure"
  2946. #include "confdefs.h"
  2947. #ifdef HAVE_UNISTD_H
  2948. #include <unistd.h>
  2949. #endif
  2950. /*
  2951. * If this system has a BSD-style setpgrp, which takes arguments, exit
  2952. * successfully.
  2953. */
  2954. main()
  2955. {
  2956. if (setpgrp(1,1) == -1)
  2957. exit(0);
  2958. else
  2959. exit(1);
  2960. }
  2961. EOF
  2962. if { (eval echo configure:3568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2963. then
  2964. ac_cv_func_setpgrp_void=no
  2965. else
  2966. echo "configure: failed program was:" >&5
  2967. cat conftest.$ac_ext >&5
  2968. rm -fr conftest*
  2969. ac_cv_func_setpgrp_void=yes
  2970. fi
  2971. rm -fr conftest*
  2972. fi
  2973. echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
  2974. if test $ac_cv_func_setpgrp_void = yes; then
  2975. cat >> confdefs.h <<\EOF
  2976. #define SETPGRP_VOID 1
  2977. EOF
  2978. fi
  2979. else
  2980. CROSS_COMPILING=1
  2981. fi
  2982. echo $ac_n "checking for long long int""... $ac_c" 1>&6
  2983. echo "configure:3596: checking for long long int" >&5
  2984. cat > conftest.$ac_ext <<EOF
  2985. #line 3598 "configure"
  2986. #include "confdefs.h"
  2987. int main() {
  2988. long long int x;
  2989. ; return 0; }
  2990. EOF
  2991. if { (eval echo configure:3605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2992. rm -rf conftest*
  2993. echo "$ac_t""yes" 1>&6
  2994. cat >> confdefs.h <<\EOF
  2995. #define HAVE_LONG_LONG_INT 1
  2996. EOF
  2997. else
  2998. echo "configure: failed program was:" >&5
  2999. cat conftest.$ac_ext >&5
  3000. rm -rf conftest*
  3001. echo "$ac_t""no" 1>&6
  3002. fi
  3003. rm -f conftest*
  3004. echo $ac_n "checking for W11""... $ac_c" 1>&6
  3005. echo "configure:3625: checking for W11" >&5
  3006. case "$enable_w11" in
  3007. yes|no) echo "$ac_t"""$enable_w11"" 1>&6 ;;
  3008. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  3009. esac
  3010. USE_X11=
  3011. USE_W11=
  3012. XLIB=
  3013. XTLIB=
  3014. if test "$enable_w11" = "yes" ; then
  3015. X_CFLAGS=-I${SRCDIR}/display/drivers/windows/libW11
  3016. X_LIBS='-L$(LIBDIR)'
  3017. USE_W11="1"
  3018. USE_X11="1"
  3019. XLIB=-lX11
  3020. CFLAGS="$CFLAGS -D__W98__"
  3021. else
  3022. # If we find X, set shell vars x_includes and x_libraries to the
  3023. # paths, otherwise set no_x=yes.
  3024. # Uses ac_ vars as temps to allow command line to override cache and checks.
  3025. # --without-x overrides everything else, but does not touch the cache.
  3026. echo $ac_n "checking for X""... $ac_c" 1>&6
  3027. echo "configure:3653: checking for X" >&5
  3028. # Check whether --with-x or --without-x was given.
  3029. if test "${with_x+set}" = set; then
  3030. withval="$with_x"
  3031. :
  3032. fi
  3033. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  3034. if test "x$with_x" = xno; then
  3035. # The user explicitly disabled X.
  3036. have_x=disabled
  3037. else
  3038. if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
  3039. # Both variables are already set.
  3040. have_x=yes
  3041. else
  3042. # One or both of the vars are not set, and there is no cached value.
  3043. ac_x_includes=NO ac_x_libraries=NO
  3044. rm -fr conftestdir
  3045. if mkdir conftestdir; then
  3046. cd conftestdir
  3047. # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  3048. cat > Imakefile <<'EOF'
  3049. acfindx:
  3050. @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
  3051. EOF
  3052. if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  3053. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3054. eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
  3055. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  3056. for ac_extension in a so sl; do
  3057. if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
  3058. test -f $ac_im_libdir/libX11.$ac_extension; then
  3059. ac_im_usrlibdir=$ac_im_libdir; break
  3060. fi
  3061. done
  3062. # Screen out bogus values from the imake configuration. They are
  3063. # bogus both because they are the default anyway, and because
  3064. # using them would break gcc on systems where it needs fixed includes.
  3065. case "$ac_im_incroot" in
  3066. /usr/include) ;;
  3067. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
  3068. esac
  3069. case "$ac_im_usrlibdir" in
  3070. /usr/lib | /lib) ;;
  3071. *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
  3072. esac
  3073. fi
  3074. cd ..
  3075. rm -fr conftestdir
  3076. fi
  3077. if test "$ac_x_includes" = NO; then
  3078. # Guess where to find include files, by looking for this one X11 .h file.
  3079. test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
  3080. # First, try using that file with no special directory specified.
  3081. cat > conftest.$ac_ext <<EOF
  3082. #line 3713 "configure"
  3083. #include "confdefs.h"
  3084. #include <$x_direct_test_include>
  3085. EOF
  3086. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3087. { (eval echo configure:3718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3088. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  3089. if test -z "$ac_err"; then
  3090. rm -rf conftest*
  3091. # We can compile using X headers with no special include directory.
  3092. ac_x_includes=
  3093. else
  3094. echo "$ac_err" >&5
  3095. echo "configure: failed program was:" >&5
  3096. cat conftest.$ac_ext >&5
  3097. rm -rf conftest*
  3098. # Look for the header file in a standard set of common directories.
  3099. # Check X11 before X11Rn because it is often a symlink to the current release.
  3100. for ac_dir in \
  3101. /usr/X11/include \
  3102. /usr/X11R6/include \
  3103. /usr/X11R5/include \
  3104. /usr/X11R4/include \
  3105. \
  3106. /usr/include/X11 \
  3107. /usr/include/X11R6 \
  3108. /usr/include/X11R5 \
  3109. /usr/include/X11R4 \
  3110. \
  3111. /usr/local/X11/include \
  3112. /usr/local/X11R6/include \
  3113. /usr/local/X11R5/include \
  3114. /usr/local/X11R4/include \
  3115. \
  3116. /usr/local/include/X11 \
  3117. /usr/local/include/X11R6 \
  3118. /usr/local/include/X11R5 \
  3119. /usr/local/include/X11R4 \
  3120. \
  3121. /usr/X386/include \
  3122. /usr/x386/include \
  3123. /usr/XFree86/include/X11 \
  3124. \
  3125. /usr/include \
  3126. /usr/local/include \
  3127. /usr/unsupported/include \
  3128. /usr/athena/include \
  3129. /usr/local/x11r5/include \
  3130. /usr/lpp/Xamples/include \
  3131. \
  3132. /usr/openwin/include \
  3133. /usr/openwin/share/include \
  3134. ; \
  3135. do
  3136. if test -r "$ac_dir/$x_direct_test_include"; then
  3137. ac_x_includes=$ac_dir
  3138. break
  3139. fi
  3140. done
  3141. fi
  3142. rm -f conftest*
  3143. fi # $ac_x_includes = NO
  3144. if test "$ac_x_libraries" = NO; then
  3145. # Check for the libraries.
  3146. test -z "$x_direct_test_library" && x_direct_test_library=Xt
  3147. test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
  3148. # See if we find them without any special options.
  3149. # Don't add to $LIBS permanently.
  3150. ac_save_LIBS="$LIBS"
  3151. LIBS="-l$x_direct_test_library $LIBS"
  3152. cat > conftest.$ac_ext <<EOF
  3153. #line 3787 "configure"
  3154. #include "confdefs.h"
  3155. int main() {
  3156. ${x_direct_test_function}()
  3157. ; return 0; }
  3158. EOF
  3159. if { (eval echo configure:3794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3160. rm -rf conftest*
  3161. LIBS="$ac_save_LIBS"
  3162. # We can link X programs with no special library path.
  3163. ac_x_libraries=
  3164. else
  3165. echo "configure: failed program was:" >&5
  3166. cat conftest.$ac_ext >&5
  3167. rm -rf conftest*
  3168. LIBS="$ac_save_LIBS"
  3169. # First see if replacing the include by lib works.
  3170. # Check X11 before X11Rn because it is often a symlink to the current release.
  3171. for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
  3172. /usr/X11/lib \
  3173. /usr/X11R6/lib \
  3174. /usr/X11R5/lib \
  3175. /usr/X11R4/lib \
  3176. \
  3177. /usr/lib/X11 \
  3178. /usr/lib/X11R6 \
  3179. /usr/lib/X11R5 \
  3180. /usr/lib/X11R4 \
  3181. \
  3182. /usr/local/X11/lib \
  3183. /usr/local/X11R6/lib \
  3184. /usr/local/X11R5/lib \
  3185. /usr/local/X11R4/lib \
  3186. \
  3187. /usr/local/lib/X11 \
  3188. /usr/local/lib/X11R6 \
  3189. /usr/local/lib/X11R5 \
  3190. /usr/local/lib/X11R4 \
  3191. \
  3192. /usr/X386/lib \
  3193. /usr/x386/lib \
  3194. /usr/XFree86/lib/X11 \
  3195. \
  3196. /usr/lib \
  3197. /usr/local/lib \
  3198. /usr/unsupported/lib \
  3199. /usr/athena/lib \
  3200. /usr/local/x11r5/lib \
  3201. /usr/lpp/Xamples/lib \
  3202. /lib/usr/lib/X11 \
  3203. \
  3204. /usr/openwin/lib \
  3205. /usr/openwin/share/lib \
  3206. ; \
  3207. do
  3208. for ac_extension in a so sl; do
  3209. if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
  3210. ac_x_libraries=$ac_dir
  3211. break 2
  3212. fi
  3213. done
  3214. done
  3215. fi
  3216. rm -f conftest*
  3217. fi # $ac_x_libraries = NO
  3218. if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
  3219. # Didn't find X anywhere. Cache the known absence of X.
  3220. ac_cv_have_x="have_x=no"
  3221. else
  3222. # Record where we found X for the cache.
  3223. ac_cv_have_x="have_x=yes \
  3224. ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
  3225. fi
  3226. fi
  3227. eval "$ac_cv_have_x"
  3228. fi # $with_x != no
  3229. if test "$have_x" != yes; then
  3230. echo "$ac_t""$have_x" 1>&6
  3231. no_x=yes
  3232. else
  3233. # If each of the values was on the command line, it overrides each guess.
  3234. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  3235. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  3236. # Update the cache value to reflect the command line values.
  3237. ac_cv_have_x="have_x=yes \
  3238. ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  3239. echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
  3240. fi
  3241. if test "$no_x" = yes; then
  3242. # Not all programs may use this symbol, but it does not hurt to define it.
  3243. cat >> confdefs.h <<\EOF
  3244. #define X_DISPLAY_MISSING 1
  3245. EOF
  3246. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  3247. else
  3248. if test -n "$x_includes"; then
  3249. X_CFLAGS="$X_CFLAGS -I$x_includes"
  3250. fi
  3251. # It would also be nice to do this for all -L options, not just this one.
  3252. if test -n "$x_libraries"; then
  3253. X_LIBS="$X_LIBS -L$x_libraries"
  3254. # For Solaris; some versions of Sun CC require a space after -R and
  3255. # others require no space. Words are not sufficient . . . .
  3256. case "`(uname -sr) 2>/dev/null`" in
  3257. "SunOS 5"*)
  3258. echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
  3259. echo "configure:3899: checking whether -R must be followed by a space" >&5
  3260. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
  3261. cat > conftest.$ac_ext <<EOF
  3262. #line 3902 "configure"
  3263. #include "confdefs.h"
  3264. int main() {
  3265. ; return 0; }
  3266. EOF
  3267. if { (eval echo configure:3909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3268. rm -rf conftest*
  3269. ac_R_nospace=yes
  3270. else
  3271. echo "configure: failed program was:" >&5
  3272. cat conftest.$ac_ext >&5
  3273. rm -rf conftest*
  3274. ac_R_nospace=no
  3275. fi
  3276. rm -f conftest*
  3277. if test $ac_R_nospace = yes; then
  3278. echo "$ac_t""no" 1>&6
  3279. X_LIBS="$X_LIBS -R$x_libraries"
  3280. else
  3281. LIBS="$ac_xsave_LIBS -R $x_libraries"
  3282. cat > conftest.$ac_ext <<EOF
  3283. #line 3925 "configure"
  3284. #include "confdefs.h"
  3285. int main() {
  3286. ; return 0; }
  3287. EOF
  3288. if { (eval echo configure:3932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3289. rm -rf conftest*
  3290. ac_R_space=yes
  3291. else
  3292. echo "configure: failed program was:" >&5
  3293. cat conftest.$ac_ext >&5
  3294. rm -rf conftest*
  3295. ac_R_space=no
  3296. fi
  3297. rm -f conftest*
  3298. if test $ac_R_space = yes; then
  3299. echo "$ac_t""yes" 1>&6
  3300. X_LIBS="$X_LIBS -R $x_libraries"
  3301. else
  3302. echo "$ac_t""neither works" 1>&6
  3303. fi
  3304. fi
  3305. LIBS="$ac_xsave_LIBS"
  3306. esac
  3307. fi
  3308. # Check for system-dependent libraries X programs must link with.
  3309. # Do this before checking for the system-independent R6 libraries
  3310. # (-lICE), since we may need -lsocket or whatever for X linking.
  3311. if test "$ISC" = yes; then
  3312. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  3313. else
  3314. # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
  3315. # libraries were built with DECnet support. And karl@cs.umb.edu says
  3316. # the Alpha needs dnet_stub (dnet does not exist).
  3317. echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
  3318. echo "configure:3964: checking for dnet_ntoa in -ldnet" >&5
  3319. ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
  3320. ac_save_LIBS="$LIBS"
  3321. LIBS="-ldnet $LIBS"
  3322. cat > conftest.$ac_ext <<EOF
  3323. #line 3970 "configure"
  3324. #include "confdefs.h"
  3325. /* Override any gcc2 internal prototype to avoid an error. */
  3326. /* We use char because int might match the return type of a gcc2
  3327. builtin and then its argument prototype would still apply. */
  3328. char dnet_ntoa();
  3329. int main() {
  3330. dnet_ntoa()
  3331. ; return 0; }
  3332. EOF
  3333. if { (eval echo configure:3981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3334. rm -rf conftest*
  3335. eval "ac_cv_lib_$ac_lib_var=yes"
  3336. else
  3337. echo "configure: failed program was:" >&5
  3338. cat conftest.$ac_ext >&5
  3339. rm -rf conftest*
  3340. eval "ac_cv_lib_$ac_lib_var=no"
  3341. fi
  3342. rm -f conftest*
  3343. LIBS="$ac_save_LIBS"
  3344. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3345. echo "$ac_t""yes" 1>&6
  3346. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  3347. else
  3348. echo "$ac_t""no" 1>&6
  3349. fi
  3350. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  3351. echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
  3352. echo "configure:4002: checking for dnet_ntoa in -ldnet_stub" >&5
  3353. ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
  3354. ac_save_LIBS="$LIBS"
  3355. LIBS="-ldnet_stub $LIBS"
  3356. cat > conftest.$ac_ext <<EOF
  3357. #line 4008 "configure"
  3358. #include "confdefs.h"
  3359. /* Override any gcc2 internal prototype to avoid an error. */
  3360. /* We use char because int might match the return type of a gcc2
  3361. builtin and then its argument prototype would still apply. */
  3362. char dnet_ntoa();
  3363. int main() {
  3364. dnet_ntoa()
  3365. ; return 0; }
  3366. EOF
  3367. if { (eval echo configure:4019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3368. rm -rf conftest*
  3369. eval "ac_cv_lib_$ac_lib_var=yes"
  3370. else
  3371. echo "configure: failed program was:" >&5
  3372. cat conftest.$ac_ext >&5
  3373. rm -rf conftest*
  3374. eval "ac_cv_lib_$ac_lib_var=no"
  3375. fi
  3376. rm -f conftest*
  3377. LIBS="$ac_save_LIBS"
  3378. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3379. echo "$ac_t""yes" 1>&6
  3380. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  3381. else
  3382. echo "$ac_t""no" 1>&6
  3383. fi
  3384. fi
  3385. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  3386. # to get the SysV transport functions.
  3387. # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
  3388. # needs -lnsl.
  3389. # The nsl library prevents programs from opening the X display
  3390. # on Irix 5.2, according to dickey@clark.net.
  3391. echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
  3392. echo "configure:4047: checking for gethostbyname" >&5
  3393. cat > conftest.$ac_ext <<EOF
  3394. #line 4050 "configure"
  3395. #include "confdefs.h"
  3396. /* System header to define __stub macros and hopefully few prototypes,
  3397. which can conflict with char gethostbyname(); below. */
  3398. #include <assert.h>
  3399. /* Override any gcc2 internal prototype to avoid an error. */
  3400. /* We use char because int might match the return type of a gcc2
  3401. builtin and then its argument prototype would still apply. */
  3402. char gethostbyname();
  3403. int main() {
  3404. /* The GNU C library defines this for functions which it implements
  3405. to always fail with ENOSYS. Some functions are actually named
  3406. something starting with __ and the normal name is an alias. */
  3407. #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
  3408. choke me
  3409. #else
  3410. gethostbyname();
  3411. #endif
  3412. ; return 0; }
  3413. EOF
  3414. if { (eval echo configure:4073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3415. rm -rf conftest*
  3416. eval "ac_cv_func_gethostbyname=yes"
  3417. else
  3418. echo "configure: failed program was:" >&5
  3419. cat conftest.$ac_ext >&5
  3420. rm -rf conftest*
  3421. eval "ac_cv_func_gethostbyname=no"
  3422. fi
  3423. rm -f conftest*
  3424. if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
  3425. echo "$ac_t""yes" 1>&6
  3426. :
  3427. else
  3428. echo "$ac_t""no" 1>&6
  3429. fi
  3430. if test $ac_cv_func_gethostbyname = no; then
  3431. echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
  3432. echo "configure:4093: checking for gethostbyname in -lnsl" >&5
  3433. ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
  3434. ac_save_LIBS="$LIBS"
  3435. LIBS="-lnsl $LIBS"
  3436. cat > conftest.$ac_ext <<EOF
  3437. #line 4099 "configure"
  3438. #include "confdefs.h"
  3439. /* Override any gcc2 internal prototype to avoid an error. */
  3440. /* We use char because int might match the return type of a gcc2
  3441. builtin and then its argument prototype would still apply. */
  3442. char gethostbyname();
  3443. int main() {
  3444. gethostbyname()
  3445. ; return 0; }
  3446. EOF
  3447. if { (eval echo configure:4110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3448. rm -rf conftest*
  3449. eval "ac_cv_lib_$ac_lib_var=yes"
  3450. else
  3451. echo "configure: failed program was:" >&5
  3452. cat conftest.$ac_ext >&5
  3453. rm -rf conftest*
  3454. eval "ac_cv_lib_$ac_lib_var=no"
  3455. fi
  3456. rm -f conftest*
  3457. LIBS="$ac_save_LIBS"
  3458. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3459. echo "$ac_t""yes" 1>&6
  3460. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  3461. else
  3462. echo "$ac_t""no" 1>&6
  3463. fi
  3464. fi
  3465. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  3466. # socket/setsockopt and other routines are undefined under SCO ODT
  3467. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  3468. # on later versions), says simon@lia.di.epfl.ch: it contains
  3469. # gethostby* variants that don't use the nameserver (or something).
  3470. # -lsocket must be given before -lnsl if both are needed.
  3471. # We assume that if connect needs -lnsl, so does gethostbyname.
  3472. echo $ac_n "checking for connect""... $ac_c" 1>&6
  3473. echo "configure:4139: checking for connect" >&5
  3474. cat > conftest.$ac_ext <<EOF
  3475. #line 4142 "configure"
  3476. #include "confdefs.h"
  3477. /* System header to define __stub macros and hopefully few prototypes,
  3478. which can conflict with char connect(); below. */
  3479. #include <assert.h>
  3480. /* Override any gcc2 internal prototype to avoid an error. */
  3481. /* We use char because int might match the return type of a gcc2
  3482. builtin and then its argument prototype would still apply. */
  3483. char connect();
  3484. int main() {
  3485. /* The GNU C library defines this for functions which it implements
  3486. to always fail with ENOSYS. Some functions are actually named
  3487. something starting with __ and the normal name is an alias. */
  3488. #if defined (__stub_connect) || defined (__stub___connect)
  3489. choke me
  3490. #else
  3491. connect();
  3492. #endif
  3493. ; return 0; }
  3494. EOF
  3495. if { (eval echo configure:4165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3496. rm -rf conftest*
  3497. eval "ac_cv_func_connect=yes"
  3498. else
  3499. echo "configure: failed program was:" >&5
  3500. cat conftest.$ac_ext >&5
  3501. rm -rf conftest*
  3502. eval "ac_cv_func_connect=no"
  3503. fi
  3504. rm -f conftest*
  3505. if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
  3506. echo "$ac_t""yes" 1>&6
  3507. :
  3508. else
  3509. echo "$ac_t""no" 1>&6
  3510. fi
  3511. if test $ac_cv_func_connect = no; then
  3512. echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
  3513. echo "configure:4185: checking for connect in -lsocket" >&5
  3514. ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
  3515. ac_save_LIBS="$LIBS"
  3516. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  3517. cat > conftest.$ac_ext <<EOF
  3518. #line 4191 "configure"
  3519. #include "confdefs.h"
  3520. /* Override any gcc2 internal prototype to avoid an error. */
  3521. /* We use char because int might match the return type of a gcc2
  3522. builtin and then its argument prototype would still apply. */
  3523. char connect();
  3524. int main() {
  3525. connect()
  3526. ; return 0; }
  3527. EOF
  3528. if { (eval echo configure:4202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3529. rm -rf conftest*
  3530. eval "ac_cv_lib_$ac_lib_var=yes"
  3531. else
  3532. echo "configure: failed program was:" >&5
  3533. cat conftest.$ac_ext >&5
  3534. rm -rf conftest*
  3535. eval "ac_cv_lib_$ac_lib_var=no"
  3536. fi
  3537. rm -f conftest*
  3538. LIBS="$ac_save_LIBS"
  3539. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3540. echo "$ac_t""yes" 1>&6
  3541. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  3542. else
  3543. echo "$ac_t""no" 1>&6
  3544. fi
  3545. fi
  3546. # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
  3547. echo $ac_n "checking for remove""... $ac_c" 1>&6
  3548. echo "configure:4225: checking for remove" >&5
  3549. cat > conftest.$ac_ext <<EOF
  3550. #line 4228 "configure"
  3551. #include "confdefs.h"
  3552. /* System header to define __stub macros and hopefully few prototypes,
  3553. which can conflict with char remove(); below. */
  3554. #include <assert.h>
  3555. /* Override any gcc2 internal prototype to avoid an error. */
  3556. /* We use char because int might match the return type of a gcc2
  3557. builtin and then its argument prototype would still apply. */
  3558. char remove();
  3559. int main() {
  3560. /* The GNU C library defines this for functions which it implements
  3561. to always fail with ENOSYS. Some functions are actually named
  3562. something starting with __ and the normal name is an alias. */
  3563. #if defined (__stub_remove) || defined (__stub___remove)
  3564. choke me
  3565. #else
  3566. remove();
  3567. #endif
  3568. ; return 0; }
  3569. EOF
  3570. if { (eval echo configure:4251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3571. rm -rf conftest*
  3572. eval "ac_cv_func_remove=yes"
  3573. else
  3574. echo "configure: failed program was:" >&5
  3575. cat conftest.$ac_ext >&5
  3576. rm -rf conftest*
  3577. eval "ac_cv_func_remove=no"
  3578. fi
  3579. rm -f conftest*
  3580. if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
  3581. echo "$ac_t""yes" 1>&6
  3582. :
  3583. else
  3584. echo "$ac_t""no" 1>&6
  3585. fi
  3586. if test $ac_cv_func_remove = no; then
  3587. echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
  3588. echo "configure:4271: checking for remove in -lposix" >&5
  3589. ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
  3590. ac_save_LIBS="$LIBS"
  3591. LIBS="-lposix $LIBS"
  3592. cat > conftest.$ac_ext <<EOF
  3593. #line 4277 "configure"
  3594. #include "confdefs.h"
  3595. /* Override any gcc2 internal prototype to avoid an error. */
  3596. /* We use char because int might match the return type of a gcc2
  3597. builtin and then its argument prototype would still apply. */
  3598. char remove();
  3599. int main() {
  3600. remove()
  3601. ; return 0; }
  3602. EOF
  3603. if { (eval echo configure:4288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3604. rm -rf conftest*
  3605. eval "ac_cv_lib_$ac_lib_var=yes"
  3606. else
  3607. echo "configure: failed program was:" >&5
  3608. cat conftest.$ac_ext >&5
  3609. rm -rf conftest*
  3610. eval "ac_cv_lib_$ac_lib_var=no"
  3611. fi
  3612. rm -f conftest*
  3613. LIBS="$ac_save_LIBS"
  3614. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3615. echo "$ac_t""yes" 1>&6
  3616. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  3617. else
  3618. echo "$ac_t""no" 1>&6
  3619. fi
  3620. fi
  3621. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  3622. echo $ac_n "checking for shmat""... $ac_c" 1>&6
  3623. echo "configure:4311: checking for shmat" >&5
  3624. cat > conftest.$ac_ext <<EOF
  3625. #line 4314 "configure"
  3626. #include "confdefs.h"
  3627. /* System header to define __stub macros and hopefully few prototypes,
  3628. which can conflict with char shmat(); below. */
  3629. #include <assert.h>
  3630. /* Override any gcc2 internal prototype to avoid an error. */
  3631. /* We use char because int might match the return type of a gcc2
  3632. builtin and then its argument prototype would still apply. */
  3633. char shmat();
  3634. int main() {
  3635. /* The GNU C library defines this for functions which it implements
  3636. to always fail with ENOSYS. Some functions are actually named
  3637. something starting with __ and the normal name is an alias. */
  3638. #if defined (__stub_shmat) || defined (__stub___shmat)
  3639. choke me
  3640. #else
  3641. shmat();
  3642. #endif
  3643. ; return 0; }
  3644. EOF
  3645. if { (eval echo configure:4337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3646. rm -rf conftest*
  3647. eval "ac_cv_func_shmat=yes"
  3648. else
  3649. echo "configure: failed program was:" >&5
  3650. cat conftest.$ac_ext >&5
  3651. rm -rf conftest*
  3652. eval "ac_cv_func_shmat=no"
  3653. fi
  3654. rm -f conftest*
  3655. if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
  3656. echo "$ac_t""yes" 1>&6
  3657. :
  3658. else
  3659. echo "$ac_t""no" 1>&6
  3660. fi
  3661. if test $ac_cv_func_shmat = no; then
  3662. echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
  3663. echo "configure:4357: checking for shmat in -lipc" >&5
  3664. ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
  3665. ac_save_LIBS="$LIBS"
  3666. LIBS="-lipc $LIBS"
  3667. cat > conftest.$ac_ext <<EOF
  3668. #line 4363 "configure"
  3669. #include "confdefs.h"
  3670. /* Override any gcc2 internal prototype to avoid an error. */
  3671. /* We use char because int might match the return type of a gcc2
  3672. builtin and then its argument prototype would still apply. */
  3673. char shmat();
  3674. int main() {
  3675. shmat()
  3676. ; return 0; }
  3677. EOF
  3678. if { (eval echo configure:4374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3679. rm -rf conftest*
  3680. eval "ac_cv_lib_$ac_lib_var=yes"
  3681. else
  3682. echo "configure: failed program was:" >&5
  3683. cat conftest.$ac_ext >&5
  3684. rm -rf conftest*
  3685. eval "ac_cv_lib_$ac_lib_var=no"
  3686. fi
  3687. rm -f conftest*
  3688. LIBS="$ac_save_LIBS"
  3689. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3690. echo "$ac_t""yes" 1>&6
  3691. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  3692. else
  3693. echo "$ac_t""no" 1>&6
  3694. fi
  3695. fi
  3696. fi
  3697. # Check for libraries that X11R6 Xt/Xaw programs need.
  3698. ac_save_LDFLAGS="$LDFLAGS"
  3699. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  3700. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  3701. # check for ICE first), but we must link in the order -lSM -lICE or
  3702. # we get undefined symbols. So assume we have SM if we have ICE.
  3703. # These have to be linked with before -lX11, unlike the other
  3704. # libraries we check for below, so use a different variable.
  3705. # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
  3706. echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
  3707. echo "configure:4406: checking for IceConnectionNumber in -lICE" >&5
  3708. ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
  3709. ac_save_LIBS="$LIBS"
  3710. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  3711. cat > conftest.$ac_ext <<EOF
  3712. #line 4412 "configure"
  3713. #include "confdefs.h"
  3714. /* Override any gcc2 internal prototype to avoid an error. */
  3715. /* We use char because int might match the return type of a gcc2
  3716. builtin and then its argument prototype would still apply. */
  3717. char IceConnectionNumber();
  3718. int main() {
  3719. IceConnectionNumber()
  3720. ; return 0; }
  3721. EOF
  3722. if { (eval echo configure:4423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3723. rm -rf conftest*
  3724. eval "ac_cv_lib_$ac_lib_var=yes"
  3725. else
  3726. echo "configure: failed program was:" >&5
  3727. cat conftest.$ac_ext >&5
  3728. rm -rf conftest*
  3729. eval "ac_cv_lib_$ac_lib_var=no"
  3730. fi
  3731. rm -f conftest*
  3732. LIBS="$ac_save_LIBS"
  3733. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3734. echo "$ac_t""yes" 1>&6
  3735. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  3736. else
  3737. echo "$ac_t""no" 1>&6
  3738. fi
  3739. LDFLAGS="$ac_save_LDFLAGS"
  3740. fi
  3741. if test "$no_x" != "yes"; then
  3742. USE_X11="1"
  3743. XLIB=-lX11
  3744. XTLIB=-lXt
  3745. fi
  3746. fi
  3747. # Note that some systems (FreeBSD for example) need an extra library for
  3748. # cuserid
  3749. ac_save_libs="$LIBS"
  3750. LIBS=""
  3751. echo $ac_n "checking for library containing cuserid""... $ac_c" 1>&6
  3752. echo "configure:4463: checking for library containing cuserid" >&5
  3753. ac_func_search_save_LIBS="$LIBS"
  3754. ac_cv_search_cuserid="no"
  3755. cat > conftest.$ac_ext <<EOF
  3756. #line 4468 "configure"
  3757. #include "confdefs.h"
  3758. /* Override any gcc2 internal prototype to avoid an error. */
  3759. /* We use char because int might match the return type of a gcc2
  3760. builtin and then its argument prototype would still apply. */
  3761. char cuserid();
  3762. int main() {
  3763. cuserid()
  3764. ; return 0; }
  3765. EOF
  3766. if { (eval echo configure:4479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3767. rm -rf conftest*
  3768. ac_cv_search_cuserid="none required"
  3769. else
  3770. echo "configure: failed program was:" >&5
  3771. cat conftest.$ac_ext >&5
  3772. fi
  3773. rm -f conftest*
  3774. test "$ac_cv_search_cuserid" = "no" && for i in compat; do
  3775. LIBS="-l$i $ac_func_search_save_LIBS"
  3776. cat > conftest.$ac_ext <<EOF
  3777. #line 4490 "configure"
  3778. #include "confdefs.h"
  3779. /* Override any gcc2 internal prototype to avoid an error. */
  3780. /* We use char because int might match the return type of a gcc2
  3781. builtin and then its argument prototype would still apply. */
  3782. char cuserid();
  3783. int main() {
  3784. cuserid()
  3785. ; return 0; }
  3786. EOF
  3787. if { (eval echo configure:4501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3788. rm -rf conftest*
  3789. ac_cv_search_cuserid="-l$i"
  3790. break
  3791. else
  3792. echo "configure: failed program was:" >&5
  3793. cat conftest.$ac_ext >&5
  3794. fi
  3795. rm -f conftest*
  3796. done
  3797. LIBS="$ac_func_search_save_LIBS"
  3798. echo "$ac_t""$ac_cv_search_cuserid" 1>&6
  3799. if test "$ac_cv_search_cuserid" != "no"; then
  3800. test "$ac_cv_search_cuserid" = "none required" || LIBS="$ac_cv_search_cuserid $LIBS"
  3801. else :
  3802. fi
  3803. DBMIEXTRALIB="$LIBS"
  3804. LIBS="$ac_save_libs"
  3805. for ac_func in asprintf
  3806. do
  3807. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3808. echo "configure:4527: checking for $ac_func" >&5
  3809. cat > conftest.$ac_ext <<EOF
  3810. #line 4530 "configure"
  3811. #include "confdefs.h"
  3812. /* System header to define __stub macros and hopefully few prototypes,
  3813. which can conflict with char $ac_func(); below. */
  3814. #include <assert.h>
  3815. /* Override any gcc2 internal prototype to avoid an error. */
  3816. /* We use char because int might match the return type of a gcc2
  3817. builtin and then its argument prototype would still apply. */
  3818. char $ac_func();
  3819. int main() {
  3820. /* The GNU C library defines this for functions which it implements
  3821. to always fail with ENOSYS. Some functions are actually named
  3822. something starting with __ and the normal name is an alias. */
  3823. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3824. choke me
  3825. #else
  3826. $ac_func();
  3827. #endif
  3828. ; return 0; }
  3829. EOF
  3830. if { (eval echo configure:4553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3831. rm -rf conftest*
  3832. eval "ac_cv_func_$ac_func=yes"
  3833. else
  3834. echo "configure: failed program was:" >&5
  3835. cat conftest.$ac_ext >&5
  3836. rm -rf conftest*
  3837. eval "ac_cv_func_$ac_func=no"
  3838. fi
  3839. rm -f conftest*
  3840. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3841. echo "$ac_t""yes" 1>&6
  3842. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  3843. cat >> confdefs.h <<EOF
  3844. #define $ac_tr_func 1
  3845. EOF
  3846. else
  3847. echo "$ac_t""no" 1>&6
  3848. fi
  3849. done
  3850. # Test if mathlib needs -lm flag or is included with libc
  3851. echo $ac_n "checking for atan""... $ac_c" 1>&6
  3852. echo "configure:4580: checking for atan" >&5
  3853. cat > conftest.$ac_ext <<EOF
  3854. #line 4583 "configure"
  3855. #include "confdefs.h"
  3856. /* System header to define __stub macros and hopefully few prototypes,
  3857. which can conflict with char atan(); below. */
  3858. #include <assert.h>
  3859. /* Override any gcc2 internal prototype to avoid an error. */
  3860. /* We use char because int might match the return type of a gcc2
  3861. builtin and then its argument prototype would still apply. */
  3862. char atan();
  3863. int main() {
  3864. /* The GNU C library defines this for functions which it implements
  3865. to always fail with ENOSYS. Some functions are actually named
  3866. something starting with __ and the normal name is an alias. */
  3867. #if defined (__stub_atan) || defined (__stub___atan)
  3868. choke me
  3869. #else
  3870. atan();
  3871. #endif
  3872. ; return 0; }
  3873. EOF
  3874. if { (eval echo configure:4606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3875. rm -rf conftest*
  3876. eval "ac_cv_func_atan=yes"
  3877. else
  3878. echo "configure: failed program was:" >&5
  3879. cat conftest.$ac_ext >&5
  3880. rm -rf conftest*
  3881. eval "ac_cv_func_atan=no"
  3882. fi
  3883. rm -f conftest*
  3884. if eval "test \"`echo '$ac_cv_func_'atan`\" = yes"; then
  3885. echo "$ac_t""yes" 1>&6
  3886. MATHLIB=
  3887. else
  3888. echo "$ac_t""no" 1>&6
  3889. echo $ac_n "checking for atan in -lm""... $ac_c" 1>&6
  3890. echo "configure:4624: checking for atan in -lm" >&5
  3891. ac_lib_var=`echo m'_'atan | sed 'y%./+-%__p_%'`
  3892. ac_save_LIBS="$LIBS"
  3893. LIBS="-lm $LIBS"
  3894. cat > conftest.$ac_ext <<EOF
  3895. #line 4630 "configure"
  3896. #include "confdefs.h"
  3897. /* Override any gcc2 internal prototype to avoid an error. */
  3898. /* We use char because int might match the return type of a gcc2
  3899. builtin and then its argument prototype would still apply. */
  3900. char atan();
  3901. int main() {
  3902. atan()
  3903. ; return 0; }
  3904. EOF
  3905. if { (eval echo configure:4641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3906. rm -rf conftest*
  3907. eval "ac_cv_lib_$ac_lib_var=yes"
  3908. else
  3909. echo "configure: failed program was:" >&5
  3910. cat conftest.$ac_ext >&5
  3911. rm -rf conftest*
  3912. eval "ac_cv_lib_$ac_lib_var=no"
  3913. fi
  3914. rm -f conftest*
  3915. LIBS="$ac_save_LIBS"
  3916. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3917. echo "$ac_t""yes" 1>&6
  3918. MATHLIB=-lm
  3919. else
  3920. echo "$ac_t""no" 1>&6
  3921. { echo "configure: error: *** Failed check for math library." 1>&2; exit 1; }
  3922. fi
  3923. fi
  3924. echo $ac_n "checking for dlsym""... $ac_c" 1>&6
  3925. echo "configure:4668: checking for dlsym" >&5
  3926. cat > conftest.$ac_ext <<EOF
  3927. #line 4671 "configure"
  3928. #include "confdefs.h"
  3929. /* System header to define __stub macros and hopefully few prototypes,
  3930. which can conflict with char dlsym(); below. */
  3931. #include <assert.h>
  3932. /* Override any gcc2 internal prototype to avoid an error. */
  3933. /* We use char because int might match the return type of a gcc2
  3934. builtin and then its argument prototype would still apply. */
  3935. char dlsym();
  3936. int main() {
  3937. /* The GNU C library defines this for functions which it implements
  3938. to always fail with ENOSYS. Some functions are actually named
  3939. something starting with __ and the normal name is an alias. */
  3940. #if defined (__stub_dlsym) || defined (__stub___dlsym)
  3941. choke me
  3942. #else
  3943. dlsym();
  3944. #endif
  3945. ; return 0; }
  3946. EOF
  3947. if { (eval echo configure:4694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3948. rm -rf conftest*
  3949. eval "ac_cv_func_dlsym=yes"
  3950. else
  3951. echo "configure: failed program was:" >&5
  3952. cat conftest.$ac_ext >&5
  3953. rm -rf conftest*
  3954. eval "ac_cv_func_dlsym=no"
  3955. fi
  3956. rm -f conftest*
  3957. if eval "test \"`echo '$ac_cv_func_'dlsym`\" = yes"; then
  3958. echo "$ac_t""yes" 1>&6
  3959. DLLIB=
  3960. else
  3961. echo "$ac_t""no" 1>&6
  3962. echo $ac_n "checking for dlsym in -ldl""... $ac_c" 1>&6
  3963. echo "configure:4712: checking for dlsym in -ldl" >&5
  3964. ac_lib_var=`echo dl'_'dlsym | sed 'y%./+-%__p_%'`
  3965. ac_save_LIBS="$LIBS"
  3966. LIBS="-ldl $LIBS"
  3967. cat > conftest.$ac_ext <<EOF
  3968. #line 4718 "configure"
  3969. #include "confdefs.h"
  3970. /* Override any gcc2 internal prototype to avoid an error. */
  3971. /* We use char because int might match the return type of a gcc2
  3972. builtin and then its argument prototype would still apply. */
  3973. char dlsym();
  3974. int main() {
  3975. dlsym()
  3976. ; return 0; }
  3977. EOF
  3978. if { (eval echo configure:4729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3979. rm -rf conftest*
  3980. eval "ac_cv_lib_$ac_lib_var=yes"
  3981. else
  3982. echo "configure: failed program was:" >&5
  3983. cat conftest.$ac_ext >&5
  3984. rm -rf conftest*
  3985. eval "ac_cv_lib_$ac_lib_var=no"
  3986. fi
  3987. rm -f conftest*
  3988. LIBS="$ac_save_LIBS"
  3989. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3990. echo "$ac_t""yes" 1>&6
  3991. DLLIB=-ldl
  3992. else
  3993. echo "$ac_t""no" 1>&6
  3994. DLLIB=
  3995. fi
  3996. fi
  3997. echo $ac_n "checking for iconv""... $ac_c" 1>&6
  3998. echo "configure:4756: checking for iconv" >&5
  3999. cat > conftest.$ac_ext <<EOF
  4000. #line 4759 "configure"
  4001. #include "confdefs.h"
  4002. /* System header to define __stub macros and hopefully few prototypes,
  4003. which can conflict with char iconv(); below. */
  4004. #include <assert.h>
  4005. /* Override any gcc2 internal prototype to avoid an error. */
  4006. /* We use char because int might match the return type of a gcc2
  4007. builtin and then its argument prototype would still apply. */
  4008. char iconv();
  4009. int main() {
  4010. /* The GNU C library defines this for functions which it implements
  4011. to always fail with ENOSYS. Some functions are actually named
  4012. something starting with __ and the normal name is an alias. */
  4013. #if defined (__stub_iconv) || defined (__stub___iconv)
  4014. choke me
  4015. #else
  4016. iconv();
  4017. #endif
  4018. ; return 0; }
  4019. EOF
  4020. if { (eval echo configure:4782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4021. rm -rf conftest*
  4022. eval "ac_cv_func_iconv=yes"
  4023. else
  4024. echo "configure: failed program was:" >&5
  4025. cat conftest.$ac_ext >&5
  4026. rm -rf conftest*
  4027. eval "ac_cv_func_iconv=no"
  4028. fi
  4029. rm -f conftest*
  4030. if eval "test \"`echo '$ac_cv_func_'iconv`\" = yes"; then
  4031. echo "$ac_t""yes" 1>&6
  4032. ICONVLIB=
  4033. else
  4034. echo "$ac_t""no" 1>&6
  4035. echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
  4036. echo "configure:4800: checking for iconv in -liconv" >&5
  4037. ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
  4038. ac_save_LIBS="$LIBS"
  4039. LIBS="-liconv $LIBS"
  4040. cat > conftest.$ac_ext <<EOF
  4041. #line 4806 "configure"
  4042. #include "confdefs.h"
  4043. /* Override any gcc2 internal prototype to avoid an error. */
  4044. /* We use char because int might match the return type of a gcc2
  4045. builtin and then its argument prototype would still apply. */
  4046. char iconv();
  4047. int main() {
  4048. iconv()
  4049. ; return 0; }
  4050. EOF
  4051. if { (eval echo configure:4817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4052. rm -rf conftest*
  4053. eval "ac_cv_lib_$ac_lib_var=yes"
  4054. else
  4055. echo "configure: failed program was:" >&5
  4056. cat conftest.$ac_ext >&5
  4057. rm -rf conftest*
  4058. eval "ac_cv_lib_$ac_lib_var=no"
  4059. fi
  4060. rm -f conftest*
  4061. LIBS="$ac_save_LIBS"
  4062. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4063. echo "$ac_t""yes" 1>&6
  4064. ICONVLIB=-liconv
  4065. else
  4066. echo "$ac_t""no" 1>&6
  4067. echo $ac_n "checking for iconv in -lgiconv""... $ac_c" 1>&6
  4068. echo "configure:4836: checking for iconv in -lgiconv" >&5
  4069. ac_lib_var=`echo giconv'_'iconv | sed 'y%./+-%__p_%'`
  4070. ac_save_LIBS="$LIBS"
  4071. LIBS="-lgiconv $LIBS"
  4072. cat > conftest.$ac_ext <<EOF
  4073. #line 4842 "configure"
  4074. #include "confdefs.h"
  4075. /* Override any gcc2 internal prototype to avoid an error. */
  4076. /* We use char because int might match the return type of a gcc2
  4077. builtin and then its argument prototype would still apply. */
  4078. char iconv();
  4079. int main() {
  4080. iconv()
  4081. ; return 0; }
  4082. EOF
  4083. if { (eval echo configure:4853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4084. rm -rf conftest*
  4085. eval "ac_cv_lib_$ac_lib_var=yes"
  4086. else
  4087. echo "configure: failed program was:" >&5
  4088. cat conftest.$ac_ext >&5
  4089. rm -rf conftest*
  4090. eval "ac_cv_lib_$ac_lib_var=no"
  4091. fi
  4092. rm -f conftest*
  4093. LIBS="$ac_save_LIBS"
  4094. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4095. echo "$ac_t""yes" 1>&6
  4096. ICONVLIB=-lgiconv
  4097. else
  4098. echo "$ac_t""no" 1>&6
  4099. echo $ac_n "checking for libiconv""... $ac_c" 1>&6
  4100. echo "configure:4872: checking for libiconv" >&5
  4101. cat > conftest.$ac_ext <<EOF
  4102. #line 4875 "configure"
  4103. #include "confdefs.h"
  4104. /* System header to define __stub macros and hopefully few prototypes,
  4105. which can conflict with char libiconv(); below. */
  4106. #include <assert.h>
  4107. /* Override any gcc2 internal prototype to avoid an error. */
  4108. /* We use char because int might match the return type of a gcc2
  4109. builtin and then its argument prototype would still apply. */
  4110. char libiconv();
  4111. int main() {
  4112. /* The GNU C library defines this for functions which it implements
  4113. to always fail with ENOSYS. Some functions are actually named
  4114. something starting with __ and the normal name is an alias. */
  4115. #if defined (__stub_libiconv) || defined (__stub___libiconv)
  4116. choke me
  4117. #else
  4118. libiconv();
  4119. #endif
  4120. ; return 0; }
  4121. EOF
  4122. if { (eval echo configure:4898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4123. rm -rf conftest*
  4124. eval "ac_cv_func_libiconv=yes"
  4125. else
  4126. echo "configure: failed program was:" >&5
  4127. cat conftest.$ac_ext >&5
  4128. rm -rf conftest*
  4129. eval "ac_cv_func_libiconv=no"
  4130. fi
  4131. rm -f conftest*
  4132. if eval "test \"`echo '$ac_cv_func_'libiconv`\" = yes"; then
  4133. echo "$ac_t""yes" 1>&6
  4134. ICONVLIB=
  4135. else
  4136. echo "$ac_t""no" 1>&6
  4137. echo $ac_n "checking for libiconv in -liconv""... $ac_c" 1>&6
  4138. echo "configure:4916: checking for libiconv in -liconv" >&5
  4139. ac_lib_var=`echo iconv'_'libiconv | sed 'y%./+-%__p_%'`
  4140. ac_save_LIBS="$LIBS"
  4141. LIBS="-liconv $LIBS"
  4142. cat > conftest.$ac_ext <<EOF
  4143. #line 4922 "configure"
  4144. #include "confdefs.h"
  4145. /* Override any gcc2 internal prototype to avoid an error. */
  4146. /* We use char because int might match the return type of a gcc2
  4147. builtin and then its argument prototype would still apply. */
  4148. char libiconv();
  4149. int main() {
  4150. libiconv()
  4151. ; return 0; }
  4152. EOF
  4153. if { (eval echo configure:4933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4154. rm -rf conftest*
  4155. eval "ac_cv_lib_$ac_lib_var=yes"
  4156. else
  4157. echo "configure: failed program was:" >&5
  4158. cat conftest.$ac_ext >&5
  4159. rm -rf conftest*
  4160. eval "ac_cv_lib_$ac_lib_var=no"
  4161. fi
  4162. rm -f conftest*
  4163. LIBS="$ac_save_LIBS"
  4164. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4165. echo "$ac_t""yes" 1>&6
  4166. ICONVLIB=-liconv
  4167. else
  4168. echo "$ac_t""no" 1>&6
  4169. echo $ac_n "checking for libiconv in -lgiconv""... $ac_c" 1>&6
  4170. echo "configure:4952: checking for libiconv in -lgiconv" >&5
  4171. ac_lib_var=`echo giconv'_'libiconv | sed 'y%./+-%__p_%'`
  4172. ac_save_LIBS="$LIBS"
  4173. LIBS="-lgiconv $LIBS"
  4174. cat > conftest.$ac_ext <<EOF
  4175. #line 4958 "configure"
  4176. #include "confdefs.h"
  4177. /* Override any gcc2 internal prototype to avoid an error. */
  4178. /* We use char because int might match the return type of a gcc2
  4179. builtin and then its argument prototype would still apply. */
  4180. char libiconv();
  4181. int main() {
  4182. libiconv()
  4183. ; return 0; }
  4184. EOF
  4185. if { (eval echo configure:4969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4186. rm -rf conftest*
  4187. eval "ac_cv_lib_$ac_lib_var=yes"
  4188. else
  4189. echo "configure: failed program was:" >&5
  4190. cat conftest.$ac_ext >&5
  4191. rm -rf conftest*
  4192. eval "ac_cv_lib_$ac_lib_var=no"
  4193. fi
  4194. rm -f conftest*
  4195. LIBS="$ac_save_LIBS"
  4196. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4197. echo "$ac_t""yes" 1>&6
  4198. ICONVLIB=-lgiconv
  4199. else
  4200. echo "$ac_t""no" 1>&6
  4201. echo "configure: warning: *** Unable to locate iconv() function." 1>&2
  4202. ICONVLIB=
  4203. fi
  4204. fi
  4205. fi
  4206. fi
  4207. fi
  4208. fi
  4209. have_socket=1
  4210. echo $ac_n "checking for socket""... $ac_c" 1>&6
  4211. echo "configure:5006: checking for socket" >&5
  4212. cat > conftest.$ac_ext <<EOF
  4213. #line 5009 "configure"
  4214. #include "confdefs.h"
  4215. /* System header to define __stub macros and hopefully few prototypes,
  4216. which can conflict with char socket(); below. */
  4217. #include <assert.h>
  4218. /* Override any gcc2 internal prototype to avoid an error. */
  4219. /* We use char because int might match the return type of a gcc2
  4220. builtin and then its argument prototype would still apply. */
  4221. char socket();
  4222. int main() {
  4223. /* The GNU C library defines this for functions which it implements
  4224. to always fail with ENOSYS. Some functions are actually named
  4225. something starting with __ and the normal name is an alias. */
  4226. #if defined (__stub_socket) || defined (__stub___socket)
  4227. choke me
  4228. #else
  4229. socket();
  4230. #endif
  4231. ; return 0; }
  4232. EOF
  4233. if { (eval echo configure:5032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4234. rm -rf conftest*
  4235. eval "ac_cv_func_socket=yes"
  4236. else
  4237. echo "configure: failed program was:" >&5
  4238. cat conftest.$ac_ext >&5
  4239. rm -rf conftest*
  4240. eval "ac_cv_func_socket=no"
  4241. fi
  4242. rm -f conftest*
  4243. if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
  4244. echo "$ac_t""yes" 1>&6
  4245. SOCKLIB=
  4246. else
  4247. echo "$ac_t""no" 1>&6
  4248. echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
  4249. echo "configure:5050: checking for socket in -lsocket" >&5
  4250. ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
  4251. ac_save_LIBS="$LIBS"
  4252. LIBS="-lsocket $LIBS"
  4253. cat > conftest.$ac_ext <<EOF
  4254. #line 5056 "configure"
  4255. #include "confdefs.h"
  4256. /* Override any gcc2 internal prototype to avoid an error. */
  4257. /* We use char because int might match the return type of a gcc2
  4258. builtin and then its argument prototype would still apply. */
  4259. char socket();
  4260. int main() {
  4261. socket()
  4262. ; return 0; }
  4263. EOF
  4264. if { (eval echo configure:5067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4265. rm -rf conftest*
  4266. eval "ac_cv_lib_$ac_lib_var=yes"
  4267. else
  4268. echo "configure: failed program was:" >&5
  4269. cat conftest.$ac_ext >&5
  4270. rm -rf conftest*
  4271. eval "ac_cv_lib_$ac_lib_var=no"
  4272. fi
  4273. rm -f conftest*
  4274. LIBS="$ac_save_LIBS"
  4275. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4276. echo "$ac_t""yes" 1>&6
  4277. SOCKLIB=-lsocket
  4278. else
  4279. echo "$ac_t""no" 1>&6
  4280. have_socket=0
  4281. echo "configure: warning: *** Unable to locate socket() function." 1>&2
  4282. fi
  4283. fi
  4284. if test "$have_socket" = 1 ; then
  4285. HAVE_SOCKET=1
  4286. cat >> confdefs.h <<\EOF
  4287. #define HAVE_SOCKET 1
  4288. EOF
  4289. else
  4290. HAVE_SOCKET=
  4291. fi
  4292. # Mandatory zlib dependency
  4293. ZLIBLIBPATH=
  4294. ZLIBINCPATH=
  4295. ZLIB=
  4296. # With zlib includes directory
  4297. echo $ac_n "checking for location of zlib includes""... $ac_c" 1>&6
  4298. echo "configure:5115: checking for location of zlib includes" >&5
  4299. case "$with_zlib_includes" in
  4300. y | ye | yes | n | no)
  4301. { echo "configure: error: *** You must supply a directory to --with-zlib-includes." 1>&2; exit 1; }
  4302. ;;
  4303. esac
  4304. echo "$ac_t""$with_zlib_includes" 1>&6
  4305. if test -n "$with_zlib_includes" ; then
  4306. for dir in $with_zlib_includes; do
  4307. if test -d "$dir"; then
  4308. ZLIBINCPATH="$ZLIBINCPATH -I$dir"
  4309. else
  4310. { echo "configure: error: *** zlib includes directory $dir does not exist." 1>&2; exit 1; }
  4311. fi
  4312. done
  4313. fi
  4314. ac_save_cppflags="$CPPFLAGS"
  4315. CPPFLAGS="$ZLIBINCPATH $CPPFLAGS"
  4316. for ac_hdr in zlib.h
  4317. do
  4318. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4319. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4320. echo "configure:5141: checking for $ac_hdr" >&5
  4321. cat > conftest.$ac_ext <<EOF
  4322. #line 5144 "configure"
  4323. #include "confdefs.h"
  4324. #include <$ac_hdr>
  4325. EOF
  4326. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4327. { (eval echo configure:5149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4328. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4329. if test -z "$ac_err"; then
  4330. rm -rf conftest*
  4331. eval "ac_cv_header_$ac_safe=yes"
  4332. else
  4333. echo "$ac_err" >&5
  4334. echo "configure: failed program was:" >&5
  4335. cat conftest.$ac_ext >&5
  4336. rm -rf conftest*
  4337. eval "ac_cv_header_$ac_safe=no"
  4338. fi
  4339. rm -f conftest*
  4340. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4341. echo "$ac_t""yes" 1>&6
  4342. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4343. cat >> confdefs.h <<EOF
  4344. #define $ac_tr_hdr 1
  4345. EOF
  4346. else
  4347. echo "$ac_t""no" 1>&6
  4348. { echo "configure: error: *** Unable to locate zlib includes." 1>&2; exit 1; }
  4349. fi
  4350. done
  4351. CPPFLAGS=$ac_save_cppflags
  4352. # With zlib library directory
  4353. echo $ac_n "checking for location of zlib library""... $ac_c" 1>&6
  4354. echo "configure:5183: checking for location of zlib library" >&5
  4355. case "$with_zlib_libs" in
  4356. y | ye | yes | n | no)
  4357. { echo "configure: error: *** You must supply a directory to --with-zlib-libs." 1>&2; exit 1; }
  4358. ;;
  4359. esac
  4360. echo "$ac_t""$with_zlib_libs" 1>&6
  4361. if test -n "$with_zlib_libs"; then
  4362. for dir in $with_zlib_libs; do
  4363. if test -d "$dir"; then
  4364. ZLIBLIBPATH="$ZLIBLIBPATH -L$dir"
  4365. else
  4366. { echo "configure: error: *** zlib library directory $dir does not exist." 1>&2; exit 1; }
  4367. fi
  4368. done
  4369. fi
  4370. ac_save_ldflags="$LDFLAGS"
  4371. LDFLAGS="$ZLIBLIBPATH $LDFLAGS"
  4372. echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
  4373. echo "configure:5208: checking for deflate in -lz" >&5
  4374. ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
  4375. ac_save_LIBS="$LIBS"
  4376. LIBS="-lz $LIBS"
  4377. cat > conftest.$ac_ext <<EOF
  4378. #line 5214 "configure"
  4379. #include "confdefs.h"
  4380. /* Override any gcc2 internal prototype to avoid an error. */
  4381. /* We use char because int might match the return type of a gcc2
  4382. builtin and then its argument prototype would still apply. */
  4383. char deflate();
  4384. int main() {
  4385. deflate()
  4386. ; return 0; }
  4387. EOF
  4388. if { (eval echo configure:5225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4389. rm -rf conftest*
  4390. eval "ac_cv_lib_$ac_lib_var=yes"
  4391. else
  4392. echo "configure: failed program was:" >&5
  4393. cat conftest.$ac_ext >&5
  4394. rm -rf conftest*
  4395. eval "ac_cv_lib_$ac_lib_var=no"
  4396. fi
  4397. rm -f conftest*
  4398. LIBS="$ac_save_LIBS"
  4399. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4400. echo "$ac_t""yes" 1>&6
  4401. ZLIB="$ZLIB -lz "
  4402. else
  4403. echo "$ac_t""no" 1>&6
  4404. LDFLAGS=${ac_save_ldflags}
  4405. { echo "configure: error: *** Unable to locate zlib library." 1>&2; exit 1; }
  4406. fi
  4407. LDFLAGS=${ac_save_ldflags}
  4408. #
  4409. # Done checking zlib
  4410. # Mandatory PROJ dependency
  4411. PROJINC=
  4412. PROJLIB=
  4413. PROJSHARE=
  4414. # With PROJ includes directory
  4415. echo $ac_n "checking for location of External PROJ.4 includes""... $ac_c" 1>&6
  4416. echo "configure:5273: checking for location of External PROJ.4 includes" >&5
  4417. case "$with_proj_includes" in
  4418. y | ye | yes | n | no)
  4419. { echo "configure: error: *** You must supply a directory to --with-proj-includes." 1>&2; exit 1; }
  4420. ;;
  4421. esac
  4422. echo "$ac_t""$with_proj_includes" 1>&6
  4423. if test -n "$with_proj_includes" ; then
  4424. for dir in $with_proj_includes; do
  4425. if test -d "$dir"; then
  4426. PROJINC="$PROJINC -I$dir"
  4427. else
  4428. { echo "configure: error: *** External PROJ.4 includes directory $dir does not exist." 1>&2; exit 1; }
  4429. fi
  4430. done
  4431. fi
  4432. ac_save_cppflags="$CPPFLAGS"
  4433. CPPFLAGS="$PROJINC $CPPFLAGS"
  4434. for ac_hdr in proj_api.h
  4435. do
  4436. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4437. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4438. echo "configure:5299: checking for $ac_hdr" >&5
  4439. cat > conftest.$ac_ext <<EOF
  4440. #line 5302 "configure"
  4441. #include "confdefs.h"
  4442. #include <$ac_hdr>
  4443. EOF
  4444. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4445. { (eval echo configure:5307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4446. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4447. if test -z "$ac_err"; then
  4448. rm -rf conftest*
  4449. eval "ac_cv_header_$ac_safe=yes"
  4450. else
  4451. echo "$ac_err" >&5
  4452. echo "configure: failed program was:" >&5
  4453. cat conftest.$ac_ext >&5
  4454. rm -rf conftest*
  4455. eval "ac_cv_header_$ac_safe=no"
  4456. fi
  4457. rm -f conftest*
  4458. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4459. echo "$ac_t""yes" 1>&6
  4460. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4461. cat >> confdefs.h <<EOF
  4462. #define $ac_tr_hdr 1
  4463. EOF
  4464. else
  4465. echo "$ac_t""no" 1>&6
  4466. { echo "configure: error: *** Unable to locate External PROJ.4 includes." 1>&2; exit 1; }
  4467. fi
  4468. done
  4469. CPPFLAGS=$ac_save_cppflags
  4470. # PROJ version check
  4471. if test "$cross_compiling" = yes; then
  4472. echo "configure: warning: *** Cannot check PROJ.4 version (cross-compiling)." 1>&2
  4473. else
  4474. echo $ac_n "checking External PROJ.4 version""... $ac_c" 1>&6
  4475. echo "configure:5344: checking External PROJ.4 version" >&5
  4476. ac_save_cppflags="$CPPFLAGS"
  4477. CPPFLAGS="$PROJINC $CPPFLAGS"
  4478. if test "$cross_compiling" = yes; then
  4479. proj_ver=0
  4480. echo "$ac_t""unknown (cross-compiling)" 1>&6
  4481. else
  4482. cat > conftest.$ac_ext <<EOF
  4483. #line 5352 "configure"
  4484. #include "confdefs.h"
  4485. #include <stdio.h>
  4486. #include <proj_api.h>
  4487. int main(void) {
  4488. FILE *fp = fopen("conftestdata","w");
  4489. fprintf(fp, "%d", PJ_VERSION);
  4490. return 0;
  4491. }
  4492. EOF
  4493. if { (eval echo configure:5364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  4494. then
  4495. proj_ver=`cat conftestdata`
  4496. echo "$ac_t""$proj_ver" 1>&6
  4497. else
  4498. echo "configure: failed program was:" >&5
  4499. cat conftest.$ac_ext >&5
  4500. rm -fr conftest*
  4501. { echo "configure: error: *** Could not determine External PROJ.4 version." 1>&2; exit 1; }
  4502. fi
  4503. rm -fr conftest*
  4504. fi
  4505. CPPFLAGS=$ac_save_cppflags
  4506. if test `expr "$proj_ver" \< 446` = 1 ; then
  4507. { echo "configure: error: *** PROJ.4.4.6 or later is required." 1>&2; exit 1; }
  4508. fi
  4509. fi
  4510. # With PROJ library directory
  4511. echo $ac_n "checking for location of External PROJ.4 library""... $ac_c" 1>&6
  4512. echo "configure:5389: checking for location of External PROJ.4 library" >&5
  4513. case "$with_proj_libs" in
  4514. y | ye | yes | n | no)
  4515. { echo "configure: error: *** You must supply a directory to --with-proj-libs." 1>&2; exit 1; }
  4516. ;;
  4517. esac
  4518. echo "$ac_t""$with_proj_libs" 1>&6
  4519. if test -n "$with_proj_libs"; then
  4520. for dir in $with_proj_libs; do
  4521. if test -d "$dir"; then
  4522. PROJLIB="$PROJLIB -L$dir"
  4523. else
  4524. { echo "configure: error: *** External PROJ.4 library directory $dir does not exist." 1>&2; exit 1; }
  4525. fi
  4526. done
  4527. fi
  4528. ac_save_ldflags="$LDFLAGS"
  4529. LDFLAGS="$PROJLIB $LDFLAGS"
  4530. echo $ac_n "checking for pj_get_def in -lproj""... $ac_c" 1>&6
  4531. echo "configure:5414: checking for pj_get_def in -lproj" >&5
  4532. ac_lib_var=`echo proj'_'pj_get_def | sed 'y%./+-%__p_%'`
  4533. ac_save_LIBS="$LIBS"
  4534. LIBS="-lproj $LIBS"
  4535. cat > conftest.$ac_ext <<EOF
  4536. #line 5420 "configure"
  4537. #include "confdefs.h"
  4538. /* Override any gcc2 internal prototype to avoid an error. */
  4539. /* We use char because int might match the return type of a gcc2
  4540. builtin and then its argument prototype would still apply. */
  4541. char pj_get_def();
  4542. int main() {
  4543. pj_get_def()
  4544. ; return 0; }
  4545. EOF
  4546. if { (eval echo configure:5431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4547. rm -rf conftest*
  4548. eval "ac_cv_lib_$ac_lib_var=yes"
  4549. else
  4550. echo "configure: failed program was:" >&5
  4551. cat conftest.$ac_ext >&5
  4552. rm -rf conftest*
  4553. eval "ac_cv_lib_$ac_lib_var=no"
  4554. fi
  4555. rm -f conftest*
  4556. LIBS="$ac_save_LIBS"
  4557. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4558. echo "$ac_t""yes" 1>&6
  4559. PROJLIB="$PROJLIB -lproj "
  4560. else
  4561. echo "$ac_t""no" 1>&6
  4562. LDFLAGS=${ac_save_ldflags}
  4563. { echo "configure: error: *** Unable to locate External PROJ.4 library." 1>&2; exit 1; }
  4564. fi
  4565. LDFLAGS=${ac_save_ldflags}
  4566. # With PROJ share directory
  4567. echo $ac_n "checking for location of External PROJ.4 data files""... $ac_c" 1>&6
  4568. echo "configure:5465: checking for location of External PROJ.4 data files" >&5
  4569. case "$with_proj_share" in
  4570. y | ye | yes | n | no)
  4571. { echo "configure: error: *** You must supply a directory to --with-proj-share." 1>&2; exit 1; }
  4572. ;;
  4573. esac
  4574. echo "$ac_t""$with_proj_share" 1>&6
  4575. if test -n "$with_proj_share" ; then
  4576. if test -d "$with_proj_share"; then
  4577. PROJSHARE="$with_proj_share"
  4578. else
  4579. { echo "configure: error: *** External PROJ.4 data directory $dir does not exist." 1>&2; exit 1; }
  4580. fi
  4581. fi
  4582. if test -z "$PROJSHARE" ; then
  4583. echo "configure: warning: *** External PROJ.4 directory not specified; default will be used" 1>&2
  4584. PROJSHARE=/usr/local/share/proj
  4585. fi
  4586. # LOC_CHECK_SHARE does not work when cross compiling
  4587. if test "$cross_compiling" = "yes" ; then
  4588. echo $ac_n "checking for epsg""... $ac_c" 1>&6
  4589. echo "configure:5489: checking for epsg" >&5
  4590. echo "$ac_t""unknown (cross-compiling)" 1>&6
  4591. else
  4592. ac_safe=`echo "$PROJSHARE/epsg" | sed 'y%./+-%__p_%'`
  4593. echo $ac_n "checking for $PROJSHARE/epsg""... $ac_c" 1>&6
  4594. echo "configure:5496: checking for $PROJSHARE/epsg" >&5
  4595. if test "$cross_compiling" = yes; then
  4596. { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
  4597. else
  4598. if test -r $PROJSHARE/epsg; then
  4599. eval "ac_cv_file_$ac_safe=yes"
  4600. else
  4601. eval "ac_cv_file_$ac_safe=no"
  4602. fi
  4603. fi
  4604. if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
  4605. echo "$ac_t""yes" 1>&6
  4606. :
  4607. else
  4608. echo "$ac_t""no" 1>&6
  4609. echo "configure: warning: *** Unable to locate PROJ data files." 1>&2
  4610. fi
  4611. fi
  4612. # nad2bin needs to be in path for installing datum gridshift files
  4613. # Extract the first word of "nad2bin", so it can be a program name with args.
  4614. set dummy nad2bin; ac_word=$2
  4615. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  4616. echo "configure:5528: checking for $ac_word" >&5
  4617. case "$NAD2BIN" in
  4618. /*)
  4619. ac_cv_path_NAD2BIN="$NAD2BIN" # Let the user override the test with a path.
  4620. ;;
  4621. ?:/*)
  4622. ac_cv_path_NAD2BIN="$NAD2BIN" # Let the user override the test with a dos path.
  4623. ;;
  4624. *)
  4625. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  4626. ac_dummy="$PATH"
  4627. for ac_dir in $ac_dummy; do
  4628. test -z "$ac_dir" && ac_dir=.
  4629. if test -f $ac_dir/$ac_word; then
  4630. ac_cv_path_NAD2BIN="$ac_dir/$ac_word"
  4631. break
  4632. fi
  4633. done
  4634. IFS="$ac_save_ifs"
  4635. test -z "$ac_cv_path_NAD2BIN" && ac_cv_path_NAD2BIN="no"
  4636. ;;
  4637. esac
  4638. NAD2BIN="$ac_cv_path_NAD2BIN"
  4639. if test -n "$NAD2BIN"; then
  4640. echo "$ac_t""$NAD2BIN" 1>&6
  4641. else
  4642. echo "$ac_t""no" 1>&6
  4643. fi
  4644. if test "$NAD2BIN" = "no"; then
  4645. { echo "configure: error: *** Unable to locate nad2bin (needs to be in PATH)." 1>&2; exit 1; }
  4646. fi
  4647. # Done checking PROJ
  4648. # Enable regex option
  4649. echo $ac_n "checking whether to use regex""... $ac_c" 1>&6
  4650. echo "configure:5568: checking whether to use regex" >&5
  4651. echo "$ac_t"""$with_regex"" 1>&6
  4652. case "$with_regex" in
  4653. "no") USE_REGEX= ;;
  4654. "yes") USE_REGEX="1" ;;
  4655. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  4656. esac
  4657. REGEXINCPATH=
  4658. REGEXLIBPATH=
  4659. REGEXLIB=
  4660. if test -n "$USE_REGEX"; then
  4661. # With regex includes directory
  4662. echo $ac_n "checking for location of regex includes""... $ac_c" 1>&6
  4663. echo "configure:5588: checking for location of regex includes" >&5
  4664. case "$with_regex_includes" in
  4665. y | ye | yes | n | no)
  4666. { echo "configure: error: *** You must supply a directory to --with-regex-includes." 1>&2; exit 1; }
  4667. ;;
  4668. esac
  4669. echo "$ac_t""$with_regex_includes" 1>&6
  4670. if test -n "$with_regex_includes" ; then
  4671. for dir in $with_regex_includes; do
  4672. if test -d "$dir"; then
  4673. REGEXINCPATH="$REGEXINCPATH -I$dir"
  4674. else
  4675. { echo "configure: error: *** regex includes directory $dir does not exist." 1>&2; exit 1; }
  4676. fi
  4677. done
  4678. fi
  4679. ac_save_cppflags="$CPPFLAGS"
  4680. CPPFLAGS="$REGEXINCPATH $CPPFLAGS"
  4681. for ac_hdr in regex.h
  4682. do
  4683. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4684. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4685. echo "configure:5614: checking for $ac_hdr" >&5
  4686. cat > conftest.$ac_ext <<EOF
  4687. #line 5617 "configure"
  4688. #include "confdefs.h"
  4689. #include <$ac_hdr>
  4690. EOF
  4691. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4692. { (eval echo configure:5622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4693. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4694. if test -z "$ac_err"; then
  4695. rm -rf conftest*
  4696. eval "ac_cv_header_$ac_safe=yes"
  4697. else
  4698. echo "$ac_err" >&5
  4699. echo "configure: failed program was:" >&5
  4700. cat conftest.$ac_ext >&5
  4701. rm -rf conftest*
  4702. eval "ac_cv_header_$ac_safe=no"
  4703. fi
  4704. rm -f conftest*
  4705. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4706. echo "$ac_t""yes" 1>&6
  4707. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4708. cat >> confdefs.h <<EOF
  4709. #define $ac_tr_hdr 1
  4710. EOF
  4711. else
  4712. echo "$ac_t""no" 1>&6
  4713. { echo "configure: error: *** Unable to locate regex includes." 1>&2; exit 1; }
  4714. fi
  4715. done
  4716. CPPFLAGS=$ac_save_cppflags
  4717. # With regex library directory
  4718. echo $ac_n "checking for location of regex library""... $ac_c" 1>&6
  4719. echo "configure:5656: checking for location of regex library" >&5
  4720. case "$with_regex_libs" in
  4721. y | ye | yes | n | no)
  4722. { echo "configure: error: *** You must supply a directory to --with-regex-libs." 1>&2; exit 1; }
  4723. ;;
  4724. esac
  4725. echo "$ac_t""$with_regex_libs" 1>&6
  4726. if test -n "$with_regex_libs"; then
  4727. for dir in $with_regex_libs; do
  4728. if test -d "$dir"; then
  4729. REGEXLIBPATH="$REGEXLIBPATH -L$dir"
  4730. else
  4731. { echo "configure: error: *** regex library directory $dir does not exist." 1>&2; exit 1; }
  4732. fi
  4733. done
  4734. fi
  4735. ac_save_libs="$LIBS"
  4736. ac_save_ldflags="$LDFLAGS"
  4737. LIBS=" $LIBS"
  4738. LDFLAGS=" $LDFLAGS"
  4739. echo $ac_n "checking for regcomp""... $ac_c" 1>&6
  4740. echo "configure:5681: checking for regcomp" >&5
  4741. cat > conftest.$ac_ext <<EOF
  4742. #line 5684 "configure"
  4743. #include "confdefs.h"
  4744. /* System header to define __stub macros and hopefully few prototypes,
  4745. which can conflict with char regcomp(); below. */
  4746. #include <assert.h>
  4747. /* Override any gcc2 internal prototype to avoid an error. */
  4748. /* We use char because int might match the return type of a gcc2
  4749. builtin and then its argument prototype would still apply. */
  4750. char regcomp();
  4751. int main() {
  4752. /* The GNU C library defines this for functions which it implements
  4753. to always fail with ENOSYS. Some functions are actually named
  4754. something starting with __ and the normal name is an alias. */
  4755. #if defined (__stub_regcomp) || defined (__stub___regcomp)
  4756. choke me
  4757. #else
  4758. regcomp();
  4759. #endif
  4760. ; return 0; }
  4761. EOF
  4762. if { (eval echo configure:5707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4763. rm -rf conftest*
  4764. eval "ac_cv_func_regcomp=yes"
  4765. else
  4766. echo "configure: failed program was:" >&5
  4767. cat conftest.$ac_ext >&5
  4768. rm -rf conftest*
  4769. eval "ac_cv_func_regcomp=no"
  4770. fi
  4771. rm -f conftest*
  4772. if eval "test \"`echo '$ac_cv_func_'regcomp`\" = yes"; then
  4773. echo "$ac_t""yes" 1>&6
  4774. REGEXLIB="$REGEXLIB "
  4775. else
  4776. echo "$ac_t""no" 1>&6
  4777. ac_save_ldflags="$LDFLAGS"
  4778. LDFLAGS="$REGEXLIBPATH $LDFLAGS"
  4779. echo $ac_n "checking for regcomp in -lregex""... $ac_c" 1>&6
  4780. echo "configure:5734: checking for regcomp in -lregex" >&5
  4781. ac_lib_var=`echo regex'_'regcomp | sed 'y%./+-%__p_%'`
  4782. ac_save_LIBS="$LIBS"
  4783. LIBS="-lregex $LIBS"
  4784. cat > conftest.$ac_ext <<EOF
  4785. #line 5740 "configure"
  4786. #include "confdefs.h"
  4787. /* Override any gcc2 internal prototype to avoid an error. */
  4788. /* We use char because int might match the return type of a gcc2
  4789. builtin and then its argument prototype would still apply. */
  4790. char regcomp();
  4791. int main() {
  4792. regcomp()
  4793. ; return 0; }
  4794. EOF
  4795. if { (eval echo configure:5751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4796. rm -rf conftest*
  4797. eval "ac_cv_lib_$ac_lib_var=yes"
  4798. else
  4799. echo "configure: failed program was:" >&5
  4800. cat conftest.$ac_ext >&5
  4801. rm -rf conftest*
  4802. eval "ac_cv_lib_$ac_lib_var=no"
  4803. fi
  4804. rm -f conftest*
  4805. LIBS="$ac_save_LIBS"
  4806. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4807. echo "$ac_t""yes" 1>&6
  4808. REGEXLIB="$REGEXLIB -lregex "
  4809. else
  4810. echo "$ac_t""no" 1>&6
  4811. LDFLAGS=${ac_save_ldflags}
  4812. { echo "configure: error: *** Unable to locate regex library." 1>&2; exit 1; }
  4813. fi
  4814. LDFLAGS=${ac_save_ldflags}
  4815. fi
  4816. LIBS=${ac_save_libs}
  4817. LDFLAGS=${ac_save_ldflags}
  4818. fi # $USE_REGEX
  4819. # Done checking regex
  4820. # Enable Readline option
  4821. echo $ac_n "checking whether to use Readline""... $ac_c" 1>&6
  4822. echo "configure:5801: checking whether to use Readline" >&5
  4823. echo "$ac_t"""$with_readline"" 1>&6
  4824. case "$with_readline" in
  4825. "no") USE_READLINE= ;;
  4826. "yes") USE_READLINE="1" ;;
  4827. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  4828. esac
  4829. READLINEINCPATH=
  4830. READLINELIBPATH=
  4831. READLINELIB=
  4832. HISTORYLIB=
  4833. if test -n "$USE_READLINE"; then
  4834. # With Readline includes directory
  4835. echo $ac_n "checking for location of Readline includes""... $ac_c" 1>&6
  4836. echo "configure:5822: checking for location of Readline includes" >&5
  4837. case "$with_readline_includes" in
  4838. y | ye | yes | n | no)
  4839. { echo "configure: error: *** You must supply a directory to --with-readline-includes." 1>&2; exit 1; }
  4840. ;;
  4841. esac
  4842. echo "$ac_t""$with_readline_includes" 1>&6
  4843. if test -n "$with_readline_includes" ; then
  4844. for dir in $with_readline_includes; do
  4845. if test -d "$dir"; then
  4846. READLINEINCPATH="$READLINEINCPATH -I$dir"
  4847. else
  4848. { echo "configure: error: *** Readline includes directory $dir does not exist." 1>&2; exit 1; }
  4849. fi
  4850. done
  4851. fi
  4852. ac_save_cppflags="$CPPFLAGS"
  4853. CPPFLAGS="$READLINEINCPATH $CPPFLAGS"
  4854. for ac_hdr in readline/readline.h
  4855. do
  4856. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4857. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4858. echo "configure:5848: checking for $ac_hdr" >&5
  4859. cat > conftest.$ac_ext <<EOF
  4860. #line 5851 "configure"
  4861. #include "confdefs.h"
  4862. #include <$ac_hdr>
  4863. EOF
  4864. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4865. { (eval echo configure:5856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4866. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4867. if test -z "$ac_err"; then
  4868. rm -rf conftest*
  4869. eval "ac_cv_header_$ac_safe=yes"
  4870. else
  4871. echo "$ac_err" >&5
  4872. echo "configure: failed program was:" >&5
  4873. cat conftest.$ac_ext >&5
  4874. rm -rf conftest*
  4875. eval "ac_cv_header_$ac_safe=no"
  4876. fi
  4877. rm -f conftest*
  4878. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4879. echo "$ac_t""yes" 1>&6
  4880. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4881. cat >> confdefs.h <<EOF
  4882. #define $ac_tr_hdr 1
  4883. EOF
  4884. else
  4885. echo "$ac_t""no" 1>&6
  4886. { echo "configure: error: *** Unable to locate Readline includes." 1>&2; exit 1; }
  4887. fi
  4888. done
  4889. CPPFLAGS=$ac_save_cppflags
  4890. ac_save_cppflags="$CPPFLAGS"
  4891. CPPFLAGS="$READLINEINCPATH $CPPFLAGS"
  4892. for ac_hdr in readline/history.h
  4893. do
  4894. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4895. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4896. echo "configure:5892: checking for $ac_hdr" >&5
  4897. cat > conftest.$ac_ext <<EOF
  4898. #line 5895 "configure"
  4899. #include "confdefs.h"
  4900. #include <$ac_hdr>
  4901. EOF
  4902. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4903. { (eval echo configure:5900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4904. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4905. if test -z "$ac_err"; then
  4906. rm -rf conftest*
  4907. eval "ac_cv_header_$ac_safe=yes"
  4908. else
  4909. echo "$ac_err" >&5
  4910. echo "configure: failed program was:" >&5
  4911. cat conftest.$ac_ext >&5
  4912. rm -rf conftest*
  4913. eval "ac_cv_header_$ac_safe=no"
  4914. fi
  4915. rm -f conftest*
  4916. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4917. echo "$ac_t""yes" 1>&6
  4918. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4919. cat >> confdefs.h <<EOF
  4920. #define $ac_tr_hdr 1
  4921. EOF
  4922. else
  4923. echo "$ac_t""no" 1>&6
  4924. { echo "configure: error: *** Unable to locate Readline includes." 1>&2; exit 1; }
  4925. fi
  4926. done
  4927. CPPFLAGS=$ac_save_cppflags
  4928. # With Readline library directory
  4929. echo $ac_n "checking for location of Readline library""... $ac_c" 1>&6
  4930. echo "configure:5934: checking for location of Readline library" >&5
  4931. case "$with_readline_libs" in
  4932. y | ye | yes | n | no)
  4933. { echo "configure: error: *** You must supply a directory to --with-readline-libs." 1>&2; exit 1; }
  4934. ;;
  4935. esac
  4936. echo "$ac_t""$with_readline_libs" 1>&6
  4937. if test -n "$with_readline_libs"; then
  4938. for dir in $with_readline_libs; do
  4939. if test -d "$dir"; then
  4940. READLINELIBPATH="$READLINELIBPATH -L$dir"
  4941. else
  4942. { echo "configure: error: *** Readline library directory $dir does not exist." 1>&2; exit 1; }
  4943. fi
  4944. done
  4945. fi
  4946. ac_save_ldflags="$LDFLAGS"
  4947. LDFLAGS="$READLINELIBPATH $LDFLAGS"
  4948. echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
  4949. echo "configure:5959: checking for readline in -lreadline" >&5
  4950. ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
  4951. ac_save_LIBS="$LIBS"
  4952. LIBS="-lreadline $LIBS"
  4953. cat > conftest.$ac_ext <<EOF
  4954. #line 5965 "configure"
  4955. #include "confdefs.h"
  4956. /* Override any gcc2 internal prototype to avoid an error. */
  4957. /* We use char because int might match the return type of a gcc2
  4958. builtin and then its argument prototype would still apply. */
  4959. char readline();
  4960. int main() {
  4961. readline()
  4962. ; return 0; }
  4963. EOF
  4964. if { (eval echo configure:5976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4965. rm -rf conftest*
  4966. eval "ac_cv_lib_$ac_lib_var=yes"
  4967. else
  4968. echo "configure: failed program was:" >&5
  4969. cat conftest.$ac_ext >&5
  4970. rm -rf conftest*
  4971. eval "ac_cv_lib_$ac_lib_var=no"
  4972. fi
  4973. rm -f conftest*
  4974. LIBS="$ac_save_LIBS"
  4975. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4976. echo "$ac_t""yes" 1>&6
  4977. READLINELIB="$READLINELIB -lreadline "
  4978. else
  4979. echo "$ac_t""no" 1>&6
  4980. LDFLAGS=${ac_save_ldflags}
  4981. { echo "configure: error: *** Unable to locate Readline library." 1>&2; exit 1; }
  4982. fi
  4983. LDFLAGS=${ac_save_ldflags}
  4984. ac_save_ldflags="$LDFLAGS"
  4985. LDFLAGS="$READLINELIBPATH $LDFLAGS"
  4986. echo $ac_n "checking for add_history in -lhistory""... $ac_c" 1>&6
  4987. echo "configure:6011: checking for add_history in -lhistory" >&5
  4988. ac_lib_var=`echo history'_'add_history | sed 'y%./+-%__p_%'`
  4989. ac_save_LIBS="$LIBS"
  4990. LIBS="-lhistory $LIBS"
  4991. cat > conftest.$ac_ext <<EOF
  4992. #line 6017 "configure"
  4993. #include "confdefs.h"
  4994. /* Override any gcc2 internal prototype to avoid an error. */
  4995. /* We use char because int might match the return type of a gcc2
  4996. builtin and then its argument prototype would still apply. */
  4997. char add_history();
  4998. int main() {
  4999. add_history()
  5000. ; return 0; }
  5001. EOF
  5002. if { (eval echo configure:6028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5003. rm -rf conftest*
  5004. eval "ac_cv_lib_$ac_lib_var=yes"
  5005. else
  5006. echo "configure: failed program was:" >&5
  5007. cat conftest.$ac_ext >&5
  5008. rm -rf conftest*
  5009. eval "ac_cv_lib_$ac_lib_var=no"
  5010. fi
  5011. rm -f conftest*
  5012. LIBS="$ac_save_LIBS"
  5013. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5014. echo "$ac_t""yes" 1>&6
  5015. HISTORYLIB="$HISTORYLIB -lhistory "
  5016. else
  5017. echo "$ac_t""no" 1>&6
  5018. LDFLAGS=${ac_save_ldflags}
  5019. { echo "configure: error: *** Unable to locate History library." 1>&2; exit 1; }
  5020. fi
  5021. LDFLAGS=${ac_save_ldflags}
  5022. fi # $USE_READLINE
  5023. # Done checking Readline
  5024. # GDAL option
  5025. echo $ac_n "checking whether to use GDAL""... $ac_c" 1>&6
  5026. echo "configure:6070: checking whether to use GDAL" >&5
  5027. GDAL_LIBS=
  5028. GDAL_CFLAGS=
  5029. USE_GDAL=
  5030. USE_OGR=
  5031. if test "`basename xx/$with_gdal`" = "gdal-config" ; then
  5032. GDAL_CONFIG="$with_gdal"
  5033. fi
  5034. if test "$with_gdal" = "no" ; then
  5035. echo "$ac_t""no" 1>&6
  5036. else
  5037. echo "$ac_t""yes" 1>&6
  5038. # Extract the first word of "gdal-config", so it can be a program name with args.
  5039. set dummy gdal-config; ac_word=$2
  5040. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5041. echo "configure:6088: checking for $ac_word" >&5
  5042. case "$GDAL_CONFIG" in
  5043. /*)
  5044. ac_cv_path_GDAL_CONFIG="$GDAL_CONFIG" # Let the user override the test with a path.
  5045. ;;
  5046. ?:/*)
  5047. ac_cv_path_GDAL_CONFIG="$GDAL_CONFIG" # Let the user override the test with a dos path.
  5048. ;;
  5049. *)
  5050. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  5051. ac_dummy="$PATH"
  5052. for ac_dir in $ac_dummy; do
  5053. test -z "$ac_dir" && ac_dir=.
  5054. if test -f $ac_dir/$ac_word; then
  5055. ac_cv_path_GDAL_CONFIG="$ac_dir/$ac_word"
  5056. break
  5057. fi
  5058. done
  5059. IFS="$ac_save_ifs"
  5060. test -z "$ac_cv_path_GDAL_CONFIG" && ac_cv_path_GDAL_CONFIG="no"
  5061. ;;
  5062. esac
  5063. GDAL_CONFIG="$ac_cv_path_GDAL_CONFIG"
  5064. if test -n "$GDAL_CONFIG"; then
  5065. echo "$ac_t""$GDAL_CONFIG" 1>&6
  5066. else
  5067. echo "$ac_t""no" 1>&6
  5068. fi
  5069. if test "$GDAL_CONFIG" = "no" ; then
  5070. { echo "configure: error: *** couldn't find gdal-config" 1>&2; exit 1; }
  5071. fi
  5072. if test "$GDAL_CONFIG" != "" ; then
  5073. GDAL_LIBS=`"$GDAL_CONFIG" --libs`
  5074. GDAL_DEP_LIBS=`"$GDAL_CONFIG" --dep-libs`
  5075. GDAL_CFLAGS=`"$GDAL_CONFIG" --cflags`
  5076. USE_GDAL=1
  5077. if test `"$GDAL_CONFIG" --ogr-enabled` = "yes" ; then
  5078. cat >> confdefs.h <<\EOF
  5079. #define HAVE_OGR 1
  5080. EOF
  5081. USE_OGR=1
  5082. fi
  5083. fi
  5084. GDAL=
  5085. ac_save_libs="$LIBS"
  5086. ac_save_cflags="$CFLAGS"
  5087. LIBS="$LIBS $GDAL_LIBS"
  5088. CFLAGS="$CFLAGS $GDAL_CFLAGS"
  5089. cat > conftest.$ac_ext <<EOF
  5090. #line 6143 "configure"
  5091. #include "confdefs.h"
  5092. #include <gdal.h>
  5093. int main() {
  5094. GDALOpen("foo", GA_ReadOnly);
  5095. ; return 0; }
  5096. EOF
  5097. if { (eval echo configure:6150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5098. :
  5099. else
  5100. echo "configure: failed program was:" >&5
  5101. cat conftest.$ac_ext >&5
  5102. rm -rf conftest*
  5103. LIBS="$LIBS $GDAL_DEP_LIBS"
  5104. cat > conftest.$ac_ext <<EOF
  5105. #line 6159 "configure"
  5106. #include "confdefs.h"
  5107. #include <gdal.h>
  5108. int main() {
  5109. GDALOpen("foo", GA_ReadOnly);
  5110. ; return 0; }
  5111. EOF
  5112. if { (eval echo configure:6166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5113. rm -rf conftest*
  5114. GDAL_LIBS="$GDAL_LIBS $GDAL_DEP_LIBS"
  5115. else
  5116. echo "configure: failed program was:" >&5
  5117. cat conftest.$ac_ext >&5
  5118. rm -rf conftest*
  5119. { echo "configure: error: *** Unable to locate GDAL library." 1>&2; exit 1; }
  5120. fi
  5121. rm -f conftest*
  5122. fi
  5123. rm -f conftest*
  5124. LIBS=${ac_save_libs}
  5125. CFLAGS=${ac_save_cflags}
  5126. cat >> confdefs.h <<\EOF
  5127. #define HAVE_GDAL 1
  5128. EOF
  5129. fi
  5130. # libLAS option
  5131. echo $ac_n "checking whether to use libLAS""... $ac_c" 1>&6
  5132. echo "configure:6198: checking whether to use libLAS" >&5
  5133. LIBLAS_LIBS=
  5134. LIBLAS_CFLAGS=
  5135. USE_LIBLAS=
  5136. if test "`basename xx/$with_liblas`" = "liblas-config" ; then
  5137. LIBLAS_CONFIG="$with_liblas"
  5138. fi
  5139. if test "$with_liblas" = "no" ; then
  5140. echo "$ac_t""no" 1>&6
  5141. else
  5142. echo "$ac_t""yes" 1>&6
  5143. # Extract the first word of "liblas-config", so it can be a program name with args.
  5144. set dummy liblas-config; ac_word=$2
  5145. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5146. echo "configure:6215: checking for $ac_word" >&5
  5147. case "$LIBLAS_CONFIG" in
  5148. /*)
  5149. ac_cv_path_LIBLAS_CONFIG="$LIBLAS_CONFIG" # Let the user override the test with a path.
  5150. ;;
  5151. ?:/*)
  5152. ac_cv_path_LIBLAS_CONFIG="$LIBLAS_CONFIG" # Let the user override the test with a dos path.
  5153. ;;
  5154. *)
  5155. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  5156. ac_dummy="$PATH"
  5157. for ac_dir in $ac_dummy; do
  5158. test -z "$ac_dir" && ac_dir=.
  5159. if test -f $ac_dir/$ac_word; then
  5160. ac_cv_path_LIBLAS_CONFIG="$ac_dir/$ac_word"
  5161. break
  5162. fi
  5163. done
  5164. IFS="$ac_save_ifs"
  5165. test -z "$ac_cv_path_LIBLAS_CONFIG" && ac_cv_path_LIBLAS_CONFIG="no"
  5166. ;;
  5167. esac
  5168. LIBLAS_CONFIG="$ac_cv_path_LIBLAS_CONFIG"
  5169. if test -n "$LIBLAS_CONFIG"; then
  5170. echo "$ac_t""$LIBLAS_CONFIG" 1>&6
  5171. else
  5172. echo "$ac_t""no" 1>&6
  5173. fi
  5174. if test "$LIBLAS_CONFIG" = "no" ; then
  5175. { echo "configure: error: *** couldn't find liblas-config" 1>&2; exit 1; }
  5176. fi
  5177. if test "$LIBLAS_CONFIG" != "" ; then
  5178. LIBLAS_LIBS=`"$LIBLAS_CONFIG" --libs`
  5179. LIBLAS_CFLAGS=`"$LIBLAS_CONFIG" --cflags`
  5180. LIBLAS_INC=`"$LIBLAS_CONFIG" --includes`
  5181. USE_LIBLAS=1
  5182. fi
  5183. LIBLAS=
  5184. ac_save_libs="$LIBS"
  5185. ac_save_cflags="$CFLAGS"
  5186. ac_save_cppflags="$CPPFLAGS"
  5187. LIBS="$LIBS $LIBLAS_LIBS"
  5188. CFLAGS="$CFLAGS $LIBLAS_CFLAGS"
  5189. CPPFLAGS="$CPPFLAGS $LIBLAS_INC"
  5190. cat > conftest.$ac_ext <<EOF
  5191. #line 6265 "configure"
  5192. #include "confdefs.h"
  5193. #include <liblas/capi/liblas.h>
  5194. int main() {
  5195. LASReader_Create("foo");
  5196. ; return 0; }
  5197. EOF
  5198. if { (eval echo configure:6272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5199. :
  5200. else
  5201. echo "configure: failed program was:" >&5
  5202. cat conftest.$ac_ext >&5
  5203. rm -rf conftest*
  5204. cat > conftest.$ac_ext <<EOF
  5205. #line 6280 "configure"
  5206. #include "confdefs.h"
  5207. #include <liblas/capi/liblas.h>
  5208. int main() {
  5209. LASReader_Create("foo");
  5210. ; return 0; }
  5211. EOF
  5212. if { (eval echo configure:6287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5213. rm -rf conftest*
  5214. LAS_LIBS="$LAS_LIBS"
  5215. else
  5216. echo "configure: failed program was:" >&5
  5217. cat conftest.$ac_ext >&5
  5218. rm -rf conftest*
  5219. { echo "configure: error: *** Unable to locate libLAS library." 1>&2; exit 1; }
  5220. fi
  5221. rm -f conftest*
  5222. fi
  5223. rm -f conftest*
  5224. LIBS=${ac_save_libs}
  5225. CFLAGS=${ac_save_cflags}
  5226. CPPFLAGS=${ac_save_cppflags}
  5227. cat >> confdefs.h <<\EOF
  5228. #define HAVE_LIBLAS 1
  5229. EOF
  5230. fi
  5231. # NetCDF option
  5232. echo $ac_n "checking whether to use NetCDF""... $ac_c" 1>&6
  5233. echo "configure:6320: checking whether to use NetCDF" >&5
  5234. NETCDF_LIBS=
  5235. NETCDF_CFLAGS=
  5236. USE_NETCDF=
  5237. if test "`basename xx/$with_netcdf`" = "nc-config" ; then
  5238. NETCDF_CONFIG="$with_netcdf"
  5239. fi
  5240. if test "$with_netcdf" = "no" ; then
  5241. echo "$ac_t""no" 1>&6
  5242. else
  5243. echo "$ac_t""yes" 1>&6
  5244. # Extract the first word of "nc-config", so it can be a program name with args.
  5245. set dummy nc-config; ac_word=$2
  5246. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5247. echo "configure:6337: checking for $ac_word" >&5
  5248. case "$NETCDF_CONFIG" in
  5249. /*)
  5250. ac_cv_path_NETCDF_CONFIG="$NETCDF_CONFIG" # Let the user override the test with a path.
  5251. ;;
  5252. ?:/*)
  5253. ac_cv_path_NETCDF_CONFIG="$NETCDF_CONFIG" # Let the user override the test with a dos path.
  5254. ;;
  5255. *)
  5256. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  5257. ac_dummy="$PATH"
  5258. for ac_dir in $ac_dummy; do
  5259. test -z "$ac_dir" && ac_dir=.
  5260. if test -f $ac_dir/$ac_word; then
  5261. ac_cv_path_NETCDF_CONFIG="$ac_dir/$ac_word"
  5262. break
  5263. fi
  5264. done
  5265. IFS="$ac_save_ifs"
  5266. test -z "$ac_cv_path_NETCDF_CONFIG" && ac_cv_path_NETCDF_CONFIG="no"
  5267. ;;
  5268. esac
  5269. NETCDF_CONFIG="$ac_cv_path_NETCDF_CONFIG"
  5270. if test -n "$NETCDF_CONFIG"; then
  5271. echo "$ac_t""$NETCDF_CONFIG" 1>&6
  5272. else
  5273. echo "$ac_t""no" 1>&6
  5274. fi
  5275. if test "$NETCDF_CONFIG" = "no" ; then
  5276. { echo "configure: error: *** couldn't find nc-config" 1>&2; exit 1; }
  5277. fi
  5278. if test "$NETCDF_CONFIG" != "" ; then
  5279. NETCDF_LIBS=`"$NETCDF_CONFIG" --libs`
  5280. NETCDF_CFLAGS=`"$NETCDF_CONFIG" --cflags`
  5281. USE_NETCDF=1
  5282. fi
  5283. NETCDF=
  5284. ac_save_libs="$LIBS"
  5285. ac_save_cflags="$CFLAGS"
  5286. LIBS="$LIBS $NETCDF_LIBS"
  5287. CFLAGS="$CFLAGS $NETCDF_CFLAGS"
  5288. cat > conftest.$ac_ext <<EOF
  5289. #line 6384 "configure"
  5290. #include "confdefs.h"
  5291. #include <netcdf.h>
  5292. int main() {
  5293. nc_create("foo", NC_CLOBBER, NULL);
  5294. ; return 0; }
  5295. EOF
  5296. if { (eval echo configure:6391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5297. :
  5298. else
  5299. echo "configure: failed program was:" >&5
  5300. cat conftest.$ac_ext >&5
  5301. rm -rf conftest*
  5302. cat > conftest.$ac_ext <<EOF
  5303. #line 6399 "configure"
  5304. #include "confdefs.h"
  5305. #include <netcdf.h>
  5306. int main() {
  5307. nc_create("foo", NC_CLOBBER, NULL);
  5308. ; return 0; }
  5309. EOF
  5310. if { (eval echo configure:6406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5311. rm -rf conftest*
  5312. NETCDF_LIBS="$NETCDF_LIBS"
  5313. else
  5314. echo "configure: failed program was:" >&5
  5315. cat conftest.$ac_ext >&5
  5316. rm -rf conftest*
  5317. { echo "configure: error: *** Unable to locate NetCDF library." 1>&2; exit 1; }
  5318. fi
  5319. rm -f conftest*
  5320. fi
  5321. rm -f conftest*
  5322. LIBS=${ac_save_libs}
  5323. CFLAGS=${ac_save_cflags}
  5324. cat >> confdefs.h <<\EOF
  5325. #define HAVE_NETCDF 1
  5326. EOF
  5327. fi
  5328. # GEOS option
  5329. echo $ac_n "checking whether to use GEOS""... $ac_c" 1>&6
  5330. echo "configure:6437: checking whether to use GEOS" >&5
  5331. GEOS_LIBS=
  5332. GEOS_CFLAGS=
  5333. USE_GEOS=
  5334. # FIXME: "quote" $with_geos ?
  5335. if test "`basename xx/$with_geos`" = "geos-config" ; then
  5336. GEOS_CONFIG="$with_geos"
  5337. fi
  5338. if test "$with_geos" = "no" ; then
  5339. echo "$ac_t""no" 1>&6
  5340. else
  5341. echo "$ac_t""yes" 1>&6
  5342. # Extract the first word of "geos-config", so it can be a program name with args.
  5343. set dummy geos-config; ac_word=$2
  5344. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5345. echo "configure:6455: checking for $ac_word" >&5
  5346. case "$GEOS_CONFIG" in
  5347. /*)
  5348. ac_cv_path_GEOS_CONFIG="$GEOS_CONFIG" # Let the user override the test with a path.
  5349. ;;
  5350. ?:/*)
  5351. ac_cv_path_GEOS_CONFIG="$GEOS_CONFIG" # Let the user override the test with a dos path.
  5352. ;;
  5353. *)
  5354. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  5355. ac_dummy="$PATH"
  5356. for ac_dir in $ac_dummy; do
  5357. test -z "$ac_dir" && ac_dir=.
  5358. if test -f $ac_dir/$ac_word; then
  5359. ac_cv_path_GEOS_CONFIG="$ac_dir/$ac_word"
  5360. break
  5361. fi
  5362. done
  5363. IFS="$ac_save_ifs"
  5364. test -z "$ac_cv_path_GEOS_CONFIG" && ac_cv_path_GEOS_CONFIG="no"
  5365. ;;
  5366. esac
  5367. GEOS_CONFIG="$ac_cv_path_GEOS_CONFIG"
  5368. if test -n "$GEOS_CONFIG"; then
  5369. echo "$ac_t""$GEOS_CONFIG" 1>&6
  5370. else
  5371. echo "$ac_t""no" 1>&6
  5372. fi
  5373. if test "$GEOS_CONFIG" = "no" ; then
  5374. { echo "configure: error: *** couldn't find geos-config" 1>&2; exit 1; }
  5375. fi
  5376. if test "$GEOS_CONFIG" != "" ; then
  5377. GEOS_LIBS=`"$GEOS_CONFIG" --libs`
  5378. GEOS_CFLAGS=`"$GEOS_CONFIG" --cflags`
  5379. USE_GEOS=1
  5380. fi
  5381. ac_save_cppflags="$CPPFLAGS"
  5382. CPPFLAGS="$GEOS_CFLAGS $CPPFLAGS"
  5383. for ac_hdr in geos_c.h
  5384. do
  5385. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5386. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5387. echo "configure:6503: checking for $ac_hdr" >&5
  5388. cat > conftest.$ac_ext <<EOF
  5389. #line 6506 "configure"
  5390. #include "confdefs.h"
  5391. #include <$ac_hdr>
  5392. EOF
  5393. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5394. { (eval echo configure:6511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5395. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5396. if test -z "$ac_err"; then
  5397. rm -rf conftest*
  5398. eval "ac_cv_header_$ac_safe=yes"
  5399. else
  5400. echo "$ac_err" >&5
  5401. echo "configure: failed program was:" >&5
  5402. cat conftest.$ac_ext >&5
  5403. rm -rf conftest*
  5404. eval "ac_cv_header_$ac_safe=no"
  5405. fi
  5406. rm -f conftest*
  5407. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5408. echo "$ac_t""yes" 1>&6
  5409. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5410. cat >> confdefs.h <<EOF
  5411. #define $ac_tr_hdr 1
  5412. EOF
  5413. else
  5414. echo "$ac_t""no" 1>&6
  5415. { echo "configure: error: *** Unable to locate GEOS includes." 1>&2; exit 1; }
  5416. fi
  5417. done
  5418. CPPFLAGS=$ac_save_cppflags
  5419. ### geos 3.3.6 installs geos_c.lib, see http://osgeo-org.1560.n6.nabble.com/osgeo4w-329-update-geos-to-3-3-6-td5024605.html
  5420. # if test "$MINGW32" = yes ; then
  5421. # LOC_CHECK_LIBS(geos_c_i,initGEOS,GEOS,$GEOS_LIBS,GEOS_LIBS)
  5422. # else
  5423. ac_save_ldflags="$LDFLAGS"
  5424. LDFLAGS="$GEOS_LIBS $LDFLAGS"
  5425. echo $ac_n "checking for initGEOS in -lgeos_c""... $ac_c" 1>&6
  5426. echo "configure:6550: checking for initGEOS in -lgeos_c" >&5
  5427. ac_lib_var=`echo geos_c'_'initGEOS | sed 'y%./+-%__p_%'`
  5428. ac_save_LIBS="$LIBS"
  5429. LIBS="-lgeos_c $LIBS"
  5430. cat > conftest.$ac_ext <<EOF
  5431. #line 6556 "configure"
  5432. #include "confdefs.h"
  5433. /* Override any gcc2 internal prototype to avoid an error. */
  5434. /* We use char because int might match the return type of a gcc2
  5435. builtin and then its argument prototype would still apply. */
  5436. char initGEOS();
  5437. int main() {
  5438. initGEOS()
  5439. ; return 0; }
  5440. EOF
  5441. if { (eval echo configure:6567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5442. rm -rf conftest*
  5443. eval "ac_cv_lib_$ac_lib_var=yes"
  5444. else
  5445. echo "configure: failed program was:" >&5
  5446. cat conftest.$ac_ext >&5
  5447. rm -rf conftest*
  5448. eval "ac_cv_lib_$ac_lib_var=no"
  5449. fi
  5450. rm -f conftest*
  5451. LIBS="$ac_save_LIBS"
  5452. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5453. echo "$ac_t""yes" 1>&6
  5454. GEOS_LIBS="$GEOS_LIBS -lgeos_c "
  5455. else
  5456. echo "$ac_t""no" 1>&6
  5457. LDFLAGS=${ac_save_ldflags}
  5458. { echo "configure: error: *** Unable to locate GEOS library." 1>&2; exit 1; }
  5459. fi
  5460. LDFLAGS=${ac_save_ldflags}
  5461. # fi
  5462. cat >> confdefs.h <<\EOF
  5463. #define HAVE_GEOS 1
  5464. EOF
  5465. fi
  5466. # Enable TIFF option
  5467. echo $ac_n "checking whether to use TIFF""... $ac_c" 1>&6
  5468. echo "configure:6611: checking whether to use TIFF" >&5
  5469. echo "$ac_t"""$with_tiff"" 1>&6
  5470. case "$with_tiff" in
  5471. "no") USE_TIFF= ;;
  5472. "yes") USE_TIFF="1" ;;
  5473. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  5474. esac
  5475. TIFF_INCLUDE_DIRS=
  5476. TIFF_LIBRARY_DIRS=
  5477. TIFFLIB=
  5478. if test -n "$USE_TIFF"; then
  5479. # With TIFF includes directory
  5480. echo $ac_n "checking for location of TIFF includes""... $ac_c" 1>&6
  5481. echo "configure:6631: checking for location of TIFF includes" >&5
  5482. case "$with_tiff_includes" in
  5483. y | ye | yes | n | no)
  5484. { echo "configure: error: *** You must supply a directory to --with-tiff-includes." 1>&2; exit 1; }
  5485. ;;
  5486. esac
  5487. echo "$ac_t""$with_tiff_includes" 1>&6
  5488. if test -n "$with_tiff_includes" ; then
  5489. for dir in $with_tiff_includes; do
  5490. if test -d "$dir"; then
  5491. TIFF_INCLUDE_DIRS="$TIFF_INCLUDE_DIRS -I$dir"
  5492. else
  5493. { echo "configure: error: *** TIFF includes directory $dir does not exist." 1>&2; exit 1; }
  5494. fi
  5495. done
  5496. fi
  5497. ac_save_cppflags="$CPPFLAGS"
  5498. CPPFLAGS="$TIFF_INCLUDE_DIRS $CPPFLAGS"
  5499. for ac_hdr in tiffio.h
  5500. do
  5501. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5502. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5503. echo "configure:6657: checking for $ac_hdr" >&5
  5504. cat > conftest.$ac_ext <<EOF
  5505. #line 6660 "configure"
  5506. #include "confdefs.h"
  5507. #include <$ac_hdr>
  5508. EOF
  5509. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5510. { (eval echo configure:6665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5511. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5512. if test -z "$ac_err"; then
  5513. rm -rf conftest*
  5514. eval "ac_cv_header_$ac_safe=yes"
  5515. else
  5516. echo "$ac_err" >&5
  5517. echo "configure: failed program was:" >&5
  5518. cat conftest.$ac_ext >&5
  5519. rm -rf conftest*
  5520. eval "ac_cv_header_$ac_safe=no"
  5521. fi
  5522. rm -f conftest*
  5523. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5524. echo "$ac_t""yes" 1>&6
  5525. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5526. cat >> confdefs.h <<EOF
  5527. #define $ac_tr_hdr 1
  5528. EOF
  5529. else
  5530. echo "$ac_t""no" 1>&6
  5531. { echo "configure: error: *** Unable to locate TIFF includes." 1>&2; exit 1; }
  5532. fi
  5533. done
  5534. CPPFLAGS=$ac_save_cppflags
  5535. # With TIFF library directory
  5536. echo $ac_n "checking for location of TIFF library""... $ac_c" 1>&6
  5537. echo "configure:6699: checking for location of TIFF library" >&5
  5538. case "$with_tiff_libs" in
  5539. y | ye | yes | n | no)
  5540. { echo "configure: error: *** You must supply a directory to --with-tiff-libs." 1>&2; exit 1; }
  5541. ;;
  5542. esac
  5543. echo "$ac_t""$with_tiff_libs" 1>&6
  5544. if test -n "$with_tiff_libs"; then
  5545. for dir in $with_tiff_libs; do
  5546. if test -d "$dir"; then
  5547. TIFF_LIBRARY_DIRS="$TIFF_LIBRARY_DIRS -L$dir"
  5548. else
  5549. { echo "configure: error: *** TIFF library directory $dir does not exist." 1>&2; exit 1; }
  5550. fi
  5551. done
  5552. fi
  5553. ac_save_ldflags="$LDFLAGS"
  5554. LDFLAGS="$TIFF_LIBRARY_DIRS $LDFLAGS"
  5555. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5556. echo "configure:6730: checking for TIFFOpen in -ltiff" >&5
  5557. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5558. ac_save_LIBS="$LIBS"
  5559. LIBS="-ltiff $LIBS"
  5560. cat > conftest.$ac_ext <<EOF
  5561. #line 6736 "configure"
  5562. #include "confdefs.h"
  5563. /* Override any gcc2 internal prototype to avoid an error. */
  5564. /* We use char because int might match the return type of a gcc2
  5565. builtin and then its argument prototype would still apply. */
  5566. char TIFFOpen();
  5567. int main() {
  5568. TIFFOpen()
  5569. ; return 0; }
  5570. EOF
  5571. if { (eval echo configure:6747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5572. rm -rf conftest*
  5573. eval "ac_cv_lib_$ac_lib_var=yes"
  5574. else
  5575. echo "configure: failed program was:" >&5
  5576. cat conftest.$ac_ext >&5
  5577. rm -rf conftest*
  5578. eval "ac_cv_lib_$ac_lib_var=no"
  5579. fi
  5580. rm -f conftest*
  5581. LIBS="$ac_save_LIBS"
  5582. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5583. echo "$ac_t""yes" 1>&6
  5584. TIFFLIB="$TIFFLIB -ltiff "
  5585. else
  5586. echo "$ac_t""no" 1>&6
  5587. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5588. echo "configure:6766: checking for TIFFOpen in -ltiff" >&5
  5589. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5590. ac_save_LIBS="$LIBS"
  5591. LIBS="-ltiff $MATHLIB $LIBS"
  5592. cat > conftest.$ac_ext <<EOF
  5593. #line 6772 "configure"
  5594. #include "confdefs.h"
  5595. /* Override any gcc2 internal prototype to avoid an error. */
  5596. /* We use char because int might match the return type of a gcc2
  5597. builtin and then its argument prototype would still apply. */
  5598. char TIFFOpen();
  5599. int main() {
  5600. TIFFOpen()
  5601. ; return 0; }
  5602. EOF
  5603. if { (eval echo configure:6783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5604. rm -rf conftest*
  5605. eval "ac_cv_lib_$ac_lib_var=yes"
  5606. else
  5607. echo "configure: failed program was:" >&5
  5608. cat conftest.$ac_ext >&5
  5609. rm -rf conftest*
  5610. eval "ac_cv_lib_$ac_lib_var=no"
  5611. fi
  5612. rm -f conftest*
  5613. LIBS="$ac_save_LIBS"
  5614. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5615. echo "$ac_t""yes" 1>&6
  5616. TIFFLIB="$TIFFLIB -ltiff $MATHLIB"
  5617. else
  5618. echo "$ac_t""no" 1>&6
  5619. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5620. echo "configure:6802: checking for TIFFOpen in -ltiff" >&5
  5621. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5622. ac_save_LIBS="$LIBS"
  5623. LIBS="-ltiff $ZLIB $LIBS"
  5624. cat > conftest.$ac_ext <<EOF
  5625. #line 6808 "configure"
  5626. #include "confdefs.h"
  5627. /* Override any gcc2 internal prototype to avoid an error. */
  5628. /* We use char because int might match the return type of a gcc2
  5629. builtin and then its argument prototype would still apply. */
  5630. char TIFFOpen();
  5631. int main() {
  5632. TIFFOpen()
  5633. ; return 0; }
  5634. EOF
  5635. if { (eval echo configure:6819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5636. rm -rf conftest*
  5637. eval "ac_cv_lib_$ac_lib_var=yes"
  5638. else
  5639. echo "configure: failed program was:" >&5
  5640. cat conftest.$ac_ext >&5
  5641. rm -rf conftest*
  5642. eval "ac_cv_lib_$ac_lib_var=no"
  5643. fi
  5644. rm -f conftest*
  5645. LIBS="$ac_save_LIBS"
  5646. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5647. echo "$ac_t""yes" 1>&6
  5648. TIFFLIB="$TIFFLIB -ltiff $ZLIB"
  5649. else
  5650. echo "$ac_t""no" 1>&6
  5651. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5652. echo "configure:6838: checking for TIFFOpen in -ltiff" >&5
  5653. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5654. ac_save_LIBS="$LIBS"
  5655. LIBS="-ltiff $ZLIB $MATHLIB $LIBS"
  5656. cat > conftest.$ac_ext <<EOF
  5657. #line 6844 "configure"
  5658. #include "confdefs.h"
  5659. /* Override any gcc2 internal prototype to avoid an error. */
  5660. /* We use char because int might match the return type of a gcc2
  5661. builtin and then its argument prototype would still apply. */
  5662. char TIFFOpen();
  5663. int main() {
  5664. TIFFOpen()
  5665. ; return 0; }
  5666. EOF
  5667. if { (eval echo configure:6855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5668. rm -rf conftest*
  5669. eval "ac_cv_lib_$ac_lib_var=yes"
  5670. else
  5671. echo "configure: failed program was:" >&5
  5672. cat conftest.$ac_ext >&5
  5673. rm -rf conftest*
  5674. eval "ac_cv_lib_$ac_lib_var=no"
  5675. fi
  5676. rm -f conftest*
  5677. LIBS="$ac_save_LIBS"
  5678. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5679. echo "$ac_t""yes" 1>&6
  5680. TIFFLIB="$TIFFLIB -ltiff $ZLIB $MATHLIB"
  5681. else
  5682. echo "$ac_t""no" 1>&6
  5683. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5684. echo "configure:6874: checking for TIFFOpen in -ltiff" >&5
  5685. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5686. ac_save_LIBS="$LIBS"
  5687. LIBS="-ltiff -ljpeg $LIBS"
  5688. cat > conftest.$ac_ext <<EOF
  5689. #line 6880 "configure"
  5690. #include "confdefs.h"
  5691. /* Override any gcc2 internal prototype to avoid an error. */
  5692. /* We use char because int might match the return type of a gcc2
  5693. builtin and then its argument prototype would still apply. */
  5694. char TIFFOpen();
  5695. int main() {
  5696. TIFFOpen()
  5697. ; return 0; }
  5698. EOF
  5699. if { (eval echo configure:6891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5700. rm -rf conftest*
  5701. eval "ac_cv_lib_$ac_lib_var=yes"
  5702. else
  5703. echo "configure: failed program was:" >&5
  5704. cat conftest.$ac_ext >&5
  5705. rm -rf conftest*
  5706. eval "ac_cv_lib_$ac_lib_var=no"
  5707. fi
  5708. rm -f conftest*
  5709. LIBS="$ac_save_LIBS"
  5710. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5711. echo "$ac_t""yes" 1>&6
  5712. TIFFLIB="$TIFFLIB -ltiff -ljpeg"
  5713. else
  5714. echo "$ac_t""no" 1>&6
  5715. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5716. echo "configure:6910: checking for TIFFOpen in -ltiff" >&5
  5717. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5718. ac_save_LIBS="$LIBS"
  5719. LIBS="-ltiff -ljpeg $MATHLIB $LIBS"
  5720. cat > conftest.$ac_ext <<EOF
  5721. #line 6916 "configure"
  5722. #include "confdefs.h"
  5723. /* Override any gcc2 internal prototype to avoid an error. */
  5724. /* We use char because int might match the return type of a gcc2
  5725. builtin and then its argument prototype would still apply. */
  5726. char TIFFOpen();
  5727. int main() {
  5728. TIFFOpen()
  5729. ; return 0; }
  5730. EOF
  5731. if { (eval echo configure:6927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5732. rm -rf conftest*
  5733. eval "ac_cv_lib_$ac_lib_var=yes"
  5734. else
  5735. echo "configure: failed program was:" >&5
  5736. cat conftest.$ac_ext >&5
  5737. rm -rf conftest*
  5738. eval "ac_cv_lib_$ac_lib_var=no"
  5739. fi
  5740. rm -f conftest*
  5741. LIBS="$ac_save_LIBS"
  5742. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5743. echo "$ac_t""yes" 1>&6
  5744. TIFFLIB="$TIFFLIB -ltiff -ljpeg $MATHLIB"
  5745. else
  5746. echo "$ac_t""no" 1>&6
  5747. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5748. echo "configure:6946: checking for TIFFOpen in -ltiff" >&5
  5749. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5750. ac_save_LIBS="$LIBS"
  5751. LIBS="-ltiff -ljpeg $ZLIB $LIBS"
  5752. cat > conftest.$ac_ext <<EOF
  5753. #line 6952 "configure"
  5754. #include "confdefs.h"
  5755. /* Override any gcc2 internal prototype to avoid an error. */
  5756. /* We use char because int might match the return type of a gcc2
  5757. builtin and then its argument prototype would still apply. */
  5758. char TIFFOpen();
  5759. int main() {
  5760. TIFFOpen()
  5761. ; return 0; }
  5762. EOF
  5763. if { (eval echo configure:6963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5764. rm -rf conftest*
  5765. eval "ac_cv_lib_$ac_lib_var=yes"
  5766. else
  5767. echo "configure: failed program was:" >&5
  5768. cat conftest.$ac_ext >&5
  5769. rm -rf conftest*
  5770. eval "ac_cv_lib_$ac_lib_var=no"
  5771. fi
  5772. rm -f conftest*
  5773. LIBS="$ac_save_LIBS"
  5774. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5775. echo "$ac_t""yes" 1>&6
  5776. TIFFLIB="$TIFFLIB -ltiff -ljpeg $ZLIB"
  5777. else
  5778. echo "$ac_t""no" 1>&6
  5779. echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  5780. echo "configure:6982: checking for TIFFOpen in -ltiff" >&5
  5781. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  5782. ac_save_LIBS="$LIBS"
  5783. LIBS="-ltiff -ljpeg $ZLIB $MATHLIB $LIBS"
  5784. cat > conftest.$ac_ext <<EOF
  5785. #line 6988 "configure"
  5786. #include "confdefs.h"
  5787. /* Override any gcc2 internal prototype to avoid an error. */
  5788. /* We use char because int might match the return type of a gcc2
  5789. builtin and then its argument prototype would still apply. */
  5790. char TIFFOpen();
  5791. int main() {
  5792. TIFFOpen()
  5793. ; return 0; }
  5794. EOF
  5795. if { (eval echo configure:6999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5796. rm -rf conftest*
  5797. eval "ac_cv_lib_$ac_lib_var=yes"
  5798. else
  5799. echo "configure: failed program was:" >&5
  5800. cat conftest.$ac_ext >&5
  5801. rm -rf conftest*
  5802. eval "ac_cv_lib_$ac_lib_var=no"
  5803. fi
  5804. rm -f conftest*
  5805. LIBS="$ac_save_LIBS"
  5806. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5807. echo "$ac_t""yes" 1>&6
  5808. TIFFLIB="$TIFFLIB -ltiff -ljpeg $ZLIB $MATHLIB"
  5809. else
  5810. echo "$ac_t""no" 1>&6
  5811. LDFLAGS=${ac_save_ldflags}
  5812. { echo "configure: error: *** Unable to locate TIFF library." 1>&2; exit 1; }
  5813. fi
  5814. fi
  5815. fi
  5816. fi
  5817. fi
  5818. fi
  5819. fi
  5820. fi
  5821. LDFLAGS=${ac_save_ldflags}
  5822. fi # $USE_TIFF
  5823. # Done checking TIFF
  5824. # Enable PNG option
  5825. echo $ac_n "checking whether to use PNG""... $ac_c" 1>&6
  5826. echo "configure:7097: checking whether to use PNG" >&5
  5827. echo "$ac_t"""$with_png"" 1>&6
  5828. case "$with_png" in
  5829. "no") USE_PNG= ;;
  5830. "yes") USE_PNG="1" ;;
  5831. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  5832. esac
  5833. PNGINC=
  5834. PNGLIB=
  5835. if test -n "$USE_PNG"; then
  5836. # With PNG includes directory
  5837. echo $ac_n "checking for location of PNG includes""... $ac_c" 1>&6
  5838. echo "configure:7116: checking for location of PNG includes" >&5
  5839. case "$with_png_includes" in
  5840. y | ye | yes | n | no)
  5841. { echo "configure: error: *** You must supply a directory to --with-png-includes." 1>&2; exit 1; }
  5842. ;;
  5843. esac
  5844. echo "$ac_t""$with_png_includes" 1>&6
  5845. if test -n "$with_png_includes" ; then
  5846. for dir in $with_png_includes; do
  5847. if test -d "$dir"; then
  5848. PNGINC="$PNGINC -I$dir"
  5849. else
  5850. { echo "configure: error: *** PNG includes directory $dir does not exist." 1>&2; exit 1; }
  5851. fi
  5852. done
  5853. fi
  5854. ac_save_cppflags="$CPPFLAGS"
  5855. CPPFLAGS="$PNGINC $CPPFLAGS"
  5856. for ac_hdr in png.h
  5857. do
  5858. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5859. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5860. echo "configure:7142: checking for $ac_hdr" >&5
  5861. cat > conftest.$ac_ext <<EOF
  5862. #line 7145 "configure"
  5863. #include "confdefs.h"
  5864. #include <$ac_hdr>
  5865. EOF
  5866. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5867. { (eval echo configure:7150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5868. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5869. if test -z "$ac_err"; then
  5870. rm -rf conftest*
  5871. eval "ac_cv_header_$ac_safe=yes"
  5872. else
  5873. echo "$ac_err" >&5
  5874. echo "configure: failed program was:" >&5
  5875. cat conftest.$ac_ext >&5
  5876. rm -rf conftest*
  5877. eval "ac_cv_header_$ac_safe=no"
  5878. fi
  5879. rm -f conftest*
  5880. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5881. echo "$ac_t""yes" 1>&6
  5882. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5883. cat >> confdefs.h <<EOF
  5884. #define $ac_tr_hdr 1
  5885. EOF
  5886. else
  5887. echo "$ac_t""no" 1>&6
  5888. { echo "configure: error: *** Unable to locate PNG includes." 1>&2; exit 1; }
  5889. fi
  5890. done
  5891. CPPFLAGS=$ac_save_cppflags
  5892. # With PNG library directory
  5893. echo $ac_n "checking for location of PNG library""... $ac_c" 1>&6
  5894. echo "configure:7184: checking for location of PNG library" >&5
  5895. case "$with_png_libs" in
  5896. y | ye | yes | n | no)
  5897. { echo "configure: error: *** You must supply a directory to --with-png-libs." 1>&2; exit 1; }
  5898. ;;
  5899. esac
  5900. echo "$ac_t""$with_png_libs" 1>&6
  5901. if test -n "$with_png_libs"; then
  5902. for dir in $with_png_libs; do
  5903. if test -d "$dir"; then
  5904. PNGLIB="$PNGLIB -L$dir"
  5905. else
  5906. { echo "configure: error: *** PNG library directory $dir does not exist." 1>&2; exit 1; }
  5907. fi
  5908. done
  5909. fi
  5910. ac_save_ldflags="$LDFLAGS"
  5911. LDFLAGS="$PNGLIB $LDFLAGS"
  5912. echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
  5913. echo "configure:7209: checking for png_read_image in -lpng" >&5
  5914. ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
  5915. ac_save_LIBS="$LIBS"
  5916. LIBS="-lpng $ZLIB $MATHLIB $LIBS"
  5917. cat > conftest.$ac_ext <<EOF
  5918. #line 7215 "configure"
  5919. #include "confdefs.h"
  5920. /* Override any gcc2 internal prototype to avoid an error. */
  5921. /* We use char because int might match the return type of a gcc2
  5922. builtin and then its argument prototype would still apply. */
  5923. char png_read_image();
  5924. int main() {
  5925. png_read_image()
  5926. ; return 0; }
  5927. EOF
  5928. if { (eval echo configure:7226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5929. rm -rf conftest*
  5930. eval "ac_cv_lib_$ac_lib_var=yes"
  5931. else
  5932. echo "configure: failed program was:" >&5
  5933. cat conftest.$ac_ext >&5
  5934. rm -rf conftest*
  5935. eval "ac_cv_lib_$ac_lib_var=no"
  5936. fi
  5937. rm -f conftest*
  5938. LIBS="$ac_save_LIBS"
  5939. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5940. echo "$ac_t""yes" 1>&6
  5941. PNGLIB="$PNGLIB -lpng $ZLIB $MATHLIB"
  5942. else
  5943. echo "$ac_t""no" 1>&6
  5944. LDFLAGS=${ac_save_ldflags}
  5945. { echo "configure: error: *** Unable to locate PNG library." 1>&2; exit 1; }
  5946. fi
  5947. LDFLAGS=${ac_save_ldflags}
  5948. fi # $USE_PNG
  5949. # Done checking PNG
  5950. # Enable PostgreSQL option
  5951. echo $ac_n "checking whether to use PostgreSQL""... $ac_c" 1>&6
  5952. echo "configure:7268: checking whether to use PostgreSQL" >&5
  5953. echo "$ac_t"""$with_postgres"" 1>&6
  5954. case "$with_postgres" in
  5955. "no") USE_POSTGRES= ;;
  5956. "yes") USE_POSTGRES="1" ;;
  5957. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  5958. esac
  5959. if test -n "$USE_POSTGRES"; then
  5960. cat >> confdefs.h <<\EOF
  5961. #define HAVE_POSTGRES 1
  5962. EOF
  5963. fi # $USE_POSTGRES
  5964. PQINCPATH=
  5965. PQLIBPATH=
  5966. PQLIB=
  5967. if test -n "$USE_POSTGRES"; then
  5968. # With PostgreSQL includes directory
  5969. echo $ac_n "checking for location of PostgreSQL includes""... $ac_c" 1>&6
  5970. echo "configure:7295: checking for location of PostgreSQL includes" >&5
  5971. case "$with_postgres_includes" in
  5972. y | ye | yes | n | no)
  5973. { echo "configure: error: *** You must supply a directory to --with-postgres-includes." 1>&2; exit 1; }
  5974. ;;
  5975. esac
  5976. echo "$ac_t""$with_postgres_includes" 1>&6
  5977. if test -n "$with_postgres_includes" ; then
  5978. for dir in $with_postgres_includes; do
  5979. if test -d "$dir"; then
  5980. PQINCPATH="$PQINCPATH -I$dir"
  5981. else
  5982. { echo "configure: error: *** PostgreSQL includes directory $dir does not exist." 1>&2; exit 1; }
  5983. fi
  5984. done
  5985. fi
  5986. ac_save_cppflags="$CPPFLAGS"
  5987. CPPFLAGS="$PQINCPATH $CPPFLAGS"
  5988. for ac_hdr in libpq-fe.h
  5989. do
  5990. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5991. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5992. echo "configure:7321: checking for $ac_hdr" >&5
  5993. cat > conftest.$ac_ext <<EOF
  5994. #line 7324 "configure"
  5995. #include "confdefs.h"
  5996. #include <$ac_hdr>
  5997. EOF
  5998. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5999. { (eval echo configure:7329: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6000. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6001. if test -z "$ac_err"; then
  6002. rm -rf conftest*
  6003. eval "ac_cv_header_$ac_safe=yes"
  6004. else
  6005. echo "$ac_err" >&5
  6006. echo "configure: failed program was:" >&5
  6007. cat conftest.$ac_ext >&5
  6008. rm -rf conftest*
  6009. eval "ac_cv_header_$ac_safe=no"
  6010. fi
  6011. rm -f conftest*
  6012. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  6013. echo "$ac_t""yes" 1>&6
  6014. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  6015. cat >> confdefs.h <<EOF
  6016. #define $ac_tr_hdr 1
  6017. EOF
  6018. else
  6019. echo "$ac_t""no" 1>&6
  6020. { echo "configure: error: *** Unable to locate PostgreSQL includes." 1>&2; exit 1; }
  6021. fi
  6022. done
  6023. CPPFLAGS=$ac_save_cppflags
  6024. fi # $USE_POSTGRES
  6025. if test -n "$USE_POSTGRES"; then
  6026. # With PostgreSQL library directory
  6027. echo $ac_n "checking for location of PostgreSQL library""... $ac_c" 1>&6
  6028. echo "configure:7367: checking for location of PostgreSQL library" >&5
  6029. case "$with_postgres_libs" in
  6030. y | ye | yes | n | no)
  6031. { echo "configure: error: *** You must supply a directory to --with-postgres-libs." 1>&2; exit 1; }
  6032. ;;
  6033. esac
  6034. echo "$ac_t""$with_postgres_libs" 1>&6
  6035. if test -n "$with_postgres_libs"; then
  6036. for dir in $with_postgres_libs; do
  6037. if test -d "$dir"; then
  6038. PQLIBPATH="$PQLIBPATH -L$dir"
  6039. else
  6040. { echo "configure: error: *** PostgreSQL library directory $dir does not exist." 1>&2; exit 1; }
  6041. fi
  6042. done
  6043. fi
  6044. ac_save_ldflags="$LDFLAGS"
  6045. LDFLAGS="$PQLIBPATH $LDFLAGS"
  6046. echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
  6047. echo "configure:7396: checking for PQsetdbLogin in -lpq" >&5
  6048. ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
  6049. ac_save_LIBS="$LIBS"
  6050. LIBS="-lpq $LIBS"
  6051. cat > conftest.$ac_ext <<EOF
  6052. #line 7402 "configure"
  6053. #include "confdefs.h"
  6054. /* Override any gcc2 internal prototype to avoid an error. */
  6055. /* We use char because int might match the return type of a gcc2
  6056. builtin and then its argument prototype would still apply. */
  6057. char PQsetdbLogin();
  6058. int main() {
  6059. PQsetdbLogin()
  6060. ; return 0; }
  6061. EOF
  6062. if { (eval echo configure:7413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6063. rm -rf conftest*
  6064. eval "ac_cv_lib_$ac_lib_var=yes"
  6065. else
  6066. echo "configure: failed program was:" >&5
  6067. cat conftest.$ac_ext >&5
  6068. rm -rf conftest*
  6069. eval "ac_cv_lib_$ac_lib_var=no"
  6070. fi
  6071. rm -f conftest*
  6072. LIBS="$ac_save_LIBS"
  6073. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6074. echo "$ac_t""yes" 1>&6
  6075. PQLIB="$PQLIB -lpq "
  6076. else
  6077. echo "$ac_t""no" 1>&6
  6078. echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
  6079. echo "configure:7432: checking for PQsetdbLogin in -lpq" >&5
  6080. ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
  6081. ac_save_LIBS="$LIBS"
  6082. LIBS="-lpq -lssl -lcrypto $LIBS"
  6083. cat > conftest.$ac_ext <<EOF
  6084. #line 7438 "configure"
  6085. #include "confdefs.h"
  6086. /* Override any gcc2 internal prototype to avoid an error. */
  6087. /* We use char because int might match the return type of a gcc2
  6088. builtin and then its argument prototype would still apply. */
  6089. char PQsetdbLogin();
  6090. int main() {
  6091. PQsetdbLogin()
  6092. ; return 0; }
  6093. EOF
  6094. if { (eval echo configure:7449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6095. rm -rf conftest*
  6096. eval "ac_cv_lib_$ac_lib_var=yes"
  6097. else
  6098. echo "configure: failed program was:" >&5
  6099. cat conftest.$ac_ext >&5
  6100. rm -rf conftest*
  6101. eval "ac_cv_lib_$ac_lib_var=no"
  6102. fi
  6103. rm -f conftest*
  6104. LIBS="$ac_save_LIBS"
  6105. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6106. echo "$ac_t""yes" 1>&6
  6107. PQLIB="$PQLIB -lpq -lssl -lcrypto"
  6108. else
  6109. echo "$ac_t""no" 1>&6
  6110. echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
  6111. echo "configure:7468: checking for PQsetdbLogin in -lpq" >&5
  6112. ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
  6113. ac_save_LIBS="$LIBS"
  6114. LIBS="-lpq -lcrypt $LIBS"
  6115. cat > conftest.$ac_ext <<EOF
  6116. #line 7474 "configure"
  6117. #include "confdefs.h"
  6118. /* Override any gcc2 internal prototype to avoid an error. */
  6119. /* We use char because int might match the return type of a gcc2
  6120. builtin and then its argument prototype would still apply. */
  6121. char PQsetdbLogin();
  6122. int main() {
  6123. PQsetdbLogin()
  6124. ; return 0; }
  6125. EOF
  6126. if { (eval echo configure:7485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6127. rm -rf conftest*
  6128. eval "ac_cv_lib_$ac_lib_var=yes"
  6129. else
  6130. echo "configure: failed program was:" >&5
  6131. cat conftest.$ac_ext >&5
  6132. rm -rf conftest*
  6133. eval "ac_cv_lib_$ac_lib_var=no"
  6134. fi
  6135. rm -f conftest*
  6136. LIBS="$ac_save_LIBS"
  6137. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6138. echo "$ac_t""yes" 1>&6
  6139. PQLIB="$PQLIB -lpq -lcrypt"
  6140. else
  6141. echo "$ac_t""no" 1>&6
  6142. echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
  6143. echo "configure:7504: checking for PQsetdbLogin in -lpq" >&5
  6144. ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
  6145. ac_save_LIBS="$LIBS"
  6146. LIBS="-lpq -lcrypt -lssl -lcrypto $LIBS"
  6147. cat > conftest.$ac_ext <<EOF
  6148. #line 7510 "configure"
  6149. #include "confdefs.h"
  6150. /* Override any gcc2 internal prototype to avoid an error. */
  6151. /* We use char because int might match the return type of a gcc2
  6152. builtin and then its argument prototype would still apply. */
  6153. char PQsetdbLogin();
  6154. int main() {
  6155. PQsetdbLogin()
  6156. ; return 0; }
  6157. EOF
  6158. if { (eval echo configure:7521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6159. rm -rf conftest*
  6160. eval "ac_cv_lib_$ac_lib_var=yes"
  6161. else
  6162. echo "configure: failed program was:" >&5
  6163. cat conftest.$ac_ext >&5
  6164. rm -rf conftest*
  6165. eval "ac_cv_lib_$ac_lib_var=no"
  6166. fi
  6167. rm -f conftest*
  6168. LIBS="$ac_save_LIBS"
  6169. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6170. echo "$ac_t""yes" 1>&6
  6171. PQLIB="$PQLIB -lpq -lcrypt -lssl -lcrypto"
  6172. else
  6173. echo "$ac_t""no" 1>&6
  6174. LDFLAGS=${ac_save_ldflags}
  6175. { echo "configure: error: *** Unable to locate PostgreSQL library." 1>&2; exit 1; }
  6176. fi
  6177. fi
  6178. fi
  6179. fi
  6180. LDFLAGS=${ac_save_ldflags}
  6181. ac_save_ldflags="$LDFLAGS"
  6182. LDFLAGS="$LDFLAGS $PQLIBPATH"
  6183. echo $ac_n "checking for PQcmdTuples in -lpq""... $ac_c" 1>&6
  6184. echo "configure:7578: checking for PQcmdTuples in -lpq" >&5
  6185. ac_lib_var=`echo pq'_'PQcmdTuples | sed 'y%./+-%__p_%'`
  6186. ac_save_LIBS="$LIBS"
  6187. LIBS="-lpq $LIBS"
  6188. cat > conftest.$ac_ext <<EOF
  6189. #line 7584 "configure"
  6190. #include "confdefs.h"
  6191. /* Override any gcc2 internal prototype to avoid an error. */
  6192. /* We use char because int might match the return type of a gcc2
  6193. builtin and then its argument prototype would still apply. */
  6194. char PQcmdTuples();
  6195. int main() {
  6196. PQcmdTuples()
  6197. ; return 0; }
  6198. EOF
  6199. if { (eval echo configure:7595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6200. rm -rf conftest*
  6201. eval "ac_cv_lib_$ac_lib_var=yes"
  6202. else
  6203. echo "configure: failed program was:" >&5
  6204. cat conftest.$ac_ext >&5
  6205. rm -rf conftest*
  6206. eval "ac_cv_lib_$ac_lib_var=no"
  6207. fi
  6208. rm -f conftest*
  6209. LIBS="$ac_save_LIBS"
  6210. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6211. echo "$ac_t""yes" 1>&6
  6212. cat >> confdefs.h <<\EOF
  6213. #define HAVE_PQCMDTUPLES 1
  6214. EOF
  6215. else
  6216. echo "$ac_t""no" 1>&6
  6217. echo $ac_n "checking for PQcmdTuples in -lpq""... $ac_c" 1>&6
  6218. echo "configure:7617: checking for PQcmdTuples in -lpq" >&5
  6219. ac_lib_var=`echo pq'_'PQcmdTuples | sed 'y%./+-%__p_%'`
  6220. ac_save_LIBS="$LIBS"
  6221. LIBS="-lpq -lcrypt $LIBS"
  6222. cat > conftest.$ac_ext <<EOF
  6223. #line 7623 "configure"
  6224. #include "confdefs.h"
  6225. /* Override any gcc2 internal prototype to avoid an error. */
  6226. /* We use char because int might match the return type of a gcc2
  6227. builtin and then its argument prototype would still apply. */
  6228. char PQcmdTuples();
  6229. int main() {
  6230. PQcmdTuples()
  6231. ; return 0; }
  6232. EOF
  6233. if { (eval echo configure:7634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6234. rm -rf conftest*
  6235. eval "ac_cv_lib_$ac_lib_var=yes"
  6236. else
  6237. echo "configure: failed program was:" >&5
  6238. cat conftest.$ac_ext >&5
  6239. rm -rf conftest*
  6240. eval "ac_cv_lib_$ac_lib_var=no"
  6241. fi
  6242. rm -f conftest*
  6243. LIBS="$ac_save_LIBS"
  6244. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6245. echo "$ac_t""yes" 1>&6
  6246. cat >> confdefs.h <<\EOF
  6247. #define HAVE_PQCMDTUPLES 1
  6248. EOF
  6249. else
  6250. echo "$ac_t""no" 1>&6
  6251. fi
  6252. fi
  6253. LDFLAGS="${ac_save_ldflags}"
  6254. fi # $USE_POSTGRES
  6255. # Done checking PostgreSQL
  6256. # Enable MySQL option
  6257. echo $ac_n "checking whether to use MySQL""... $ac_c" 1>&6
  6258. echo "configure:7677: checking whether to use MySQL" >&5
  6259. echo "$ac_t"""$with_mysql"" 1>&6
  6260. case "$with_mysql" in
  6261. "no") USE_MYSQL= ;;
  6262. "yes") USE_MYSQL="1" ;;
  6263. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  6264. esac
  6265. MYSQLINCPATH=
  6266. MYSQLLIBPATH=
  6267. MYSQLLIB=
  6268. if test -n "$USE_MYSQL"; then
  6269. # With MySQL includes directory
  6270. echo $ac_n "checking for location of MySQL includes""... $ac_c" 1>&6
  6271. echo "configure:7697: checking for location of MySQL includes" >&5
  6272. case "$with_mysql_includes" in
  6273. y | ye | yes | n | no)
  6274. { echo "configure: error: *** You must supply a directory to --with-mysql-includes." 1>&2; exit 1; }
  6275. ;;
  6276. esac
  6277. echo "$ac_t""$with_mysql_includes" 1>&6
  6278. if test -n "$with_mysql_includes" ; then
  6279. for dir in $with_mysql_includes; do
  6280. if test -d "$dir"; then
  6281. MYSQLINCPATH="$MYSQLINCPATH -I$dir"
  6282. else
  6283. { echo "configure: error: *** MySQL includes directory $dir does not exist." 1>&2; exit 1; }
  6284. fi
  6285. done
  6286. fi
  6287. ac_save_cppflags="$CPPFLAGS"
  6288. CPPFLAGS="$MYSQLINCPATH $CPPFLAGS"
  6289. for ac_hdr in mysql.h
  6290. do
  6291. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  6292. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  6293. echo "configure:7723: checking for $ac_hdr" >&5
  6294. cat > conftest.$ac_ext <<EOF
  6295. #line 7726 "configure"
  6296. #include "confdefs.h"
  6297. #include <$ac_hdr>
  6298. EOF
  6299. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6300. { (eval echo configure:7731: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6301. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6302. if test -z "$ac_err"; then
  6303. rm -rf conftest*
  6304. eval "ac_cv_header_$ac_safe=yes"
  6305. else
  6306. echo "$ac_err" >&5
  6307. echo "configure: failed program was:" >&5
  6308. cat conftest.$ac_ext >&5
  6309. rm -rf conftest*
  6310. eval "ac_cv_header_$ac_safe=no"
  6311. fi
  6312. rm -f conftest*
  6313. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  6314. echo "$ac_t""yes" 1>&6
  6315. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  6316. cat >> confdefs.h <<EOF
  6317. #define $ac_tr_hdr 1
  6318. EOF
  6319. else
  6320. echo "$ac_t""no" 1>&6
  6321. { echo "configure: error: *** Unable to locate MySQL includes." 1>&2; exit 1; }
  6322. fi
  6323. done
  6324. CPPFLAGS=$ac_save_cppflags
  6325. fi # $USE_MYSQL
  6326. if test -n "$USE_MYSQL"; then
  6327. # With MySQL library directory
  6328. echo $ac_n "checking for location of MySQL library""... $ac_c" 1>&6
  6329. echo "configure:7768: checking for location of MySQL library" >&5
  6330. case "$with_mysql_libs" in
  6331. y | ye | yes | n | no)
  6332. { echo "configure: error: *** You must supply a directory to --with-mysql-libs." 1>&2; exit 1; }
  6333. ;;
  6334. esac
  6335. echo "$ac_t""$with_mysql_libs" 1>&6
  6336. if test -n "$with_mysql_libs"; then
  6337. for dir in $with_mysql_libs; do
  6338. if test -d "$dir"; then
  6339. MYSQLLIBPATH="$MYSQLLIBPATH -L$dir"
  6340. else
  6341. { echo "configure: error: *** MySQL library directory $dir does not exist." 1>&2; exit 1; }
  6342. fi
  6343. done
  6344. fi
  6345. ac_save_ldflags="$LDFLAGS"
  6346. LDFLAGS="$MYSQLLIBPATH $LDFLAGS"
  6347. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6348. echo "configure:7799: checking for mysql_query in -lmysqlclient" >&5
  6349. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6350. ac_save_LIBS="$LIBS"
  6351. LIBS="-lmysqlclient $LIBS"
  6352. cat > conftest.$ac_ext <<EOF
  6353. #line 7805 "configure"
  6354. #include "confdefs.h"
  6355. /* Override any gcc2 internal prototype to avoid an error. */
  6356. /* We use char because int might match the return type of a gcc2
  6357. builtin and then its argument prototype would still apply. */
  6358. char mysql_query();
  6359. int main() {
  6360. mysql_query()
  6361. ; return 0; }
  6362. EOF
  6363. if { (eval echo configure:7816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6364. rm -rf conftest*
  6365. eval "ac_cv_lib_$ac_lib_var=yes"
  6366. else
  6367. echo "configure: failed program was:" >&5
  6368. cat conftest.$ac_ext >&5
  6369. rm -rf conftest*
  6370. eval "ac_cv_lib_$ac_lib_var=no"
  6371. fi
  6372. rm -f conftest*
  6373. LIBS="$ac_save_LIBS"
  6374. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6375. echo "$ac_t""yes" 1>&6
  6376. MYSQLLIB="$MYSQLLIB -lmysqlclient "
  6377. else
  6378. echo "$ac_t""no" 1>&6
  6379. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6380. echo "configure:7835: checking for mysql_query in -lmysqlclient" >&5
  6381. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6382. ac_save_LIBS="$LIBS"
  6383. LIBS="-lmysqlclient $MATHLIB $LIBS"
  6384. cat > conftest.$ac_ext <<EOF
  6385. #line 7841 "configure"
  6386. #include "confdefs.h"
  6387. /* Override any gcc2 internal prototype to avoid an error. */
  6388. /* We use char because int might match the return type of a gcc2
  6389. builtin and then its argument prototype would still apply. */
  6390. char mysql_query();
  6391. int main() {
  6392. mysql_query()
  6393. ; return 0; }
  6394. EOF
  6395. if { (eval echo configure:7852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6396. rm -rf conftest*
  6397. eval "ac_cv_lib_$ac_lib_var=yes"
  6398. else
  6399. echo "configure: failed program was:" >&5
  6400. cat conftest.$ac_ext >&5
  6401. rm -rf conftest*
  6402. eval "ac_cv_lib_$ac_lib_var=no"
  6403. fi
  6404. rm -f conftest*
  6405. LIBS="$ac_save_LIBS"
  6406. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6407. echo "$ac_t""yes" 1>&6
  6408. MYSQLLIB="$MYSQLLIB -lmysqlclient $MATHLIB"
  6409. else
  6410. echo "$ac_t""no" 1>&6
  6411. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6412. echo "configure:7871: checking for mysql_query in -lmysqlclient" >&5
  6413. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6414. ac_save_LIBS="$LIBS"
  6415. LIBS="-lmysqlclient $SOCKLIB $LIBS"
  6416. cat > conftest.$ac_ext <<EOF
  6417. #line 7877 "configure"
  6418. #include "confdefs.h"
  6419. /* Override any gcc2 internal prototype to avoid an error. */
  6420. /* We use char because int might match the return type of a gcc2
  6421. builtin and then its argument prototype would still apply. */
  6422. char mysql_query();
  6423. int main() {
  6424. mysql_query()
  6425. ; return 0; }
  6426. EOF
  6427. if { (eval echo configure:7888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6428. rm -rf conftest*
  6429. eval "ac_cv_lib_$ac_lib_var=yes"
  6430. else
  6431. echo "configure: failed program was:" >&5
  6432. cat conftest.$ac_ext >&5
  6433. rm -rf conftest*
  6434. eval "ac_cv_lib_$ac_lib_var=no"
  6435. fi
  6436. rm -f conftest*
  6437. LIBS="$ac_save_LIBS"
  6438. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6439. echo "$ac_t""yes" 1>&6
  6440. MYSQLLIB="$MYSQLLIB -lmysqlclient $SOCKLIB"
  6441. else
  6442. echo "$ac_t""no" 1>&6
  6443. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6444. echo "configure:7907: checking for mysql_query in -lmysqlclient" >&5
  6445. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6446. ac_save_LIBS="$LIBS"
  6447. LIBS="-lmysqlclient $SOCKLIB $MATHLIB $LIBS"
  6448. cat > conftest.$ac_ext <<EOF
  6449. #line 7913 "configure"
  6450. #include "confdefs.h"
  6451. /* Override any gcc2 internal prototype to avoid an error. */
  6452. /* We use char because int might match the return type of a gcc2
  6453. builtin and then its argument prototype would still apply. */
  6454. char mysql_query();
  6455. int main() {
  6456. mysql_query()
  6457. ; return 0; }
  6458. EOF
  6459. if { (eval echo configure:7924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6460. rm -rf conftest*
  6461. eval "ac_cv_lib_$ac_lib_var=yes"
  6462. else
  6463. echo "configure: failed program was:" >&5
  6464. cat conftest.$ac_ext >&5
  6465. rm -rf conftest*
  6466. eval "ac_cv_lib_$ac_lib_var=no"
  6467. fi
  6468. rm -f conftest*
  6469. LIBS="$ac_save_LIBS"
  6470. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6471. echo "$ac_t""yes" 1>&6
  6472. MYSQLLIB="$MYSQLLIB -lmysqlclient $SOCKLIB $MATHLIB"
  6473. else
  6474. echo "$ac_t""no" 1>&6
  6475. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6476. echo "configure:7943: checking for mysql_query in -lmysqlclient" >&5
  6477. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6478. ac_save_LIBS="$LIBS"
  6479. LIBS="-lmysqlclient $ZLIB $LIBS"
  6480. cat > conftest.$ac_ext <<EOF
  6481. #line 7949 "configure"
  6482. #include "confdefs.h"
  6483. /* Override any gcc2 internal prototype to avoid an error. */
  6484. /* We use char because int might match the return type of a gcc2
  6485. builtin and then its argument prototype would still apply. */
  6486. char mysql_query();
  6487. int main() {
  6488. mysql_query()
  6489. ; return 0; }
  6490. EOF
  6491. if { (eval echo configure:7960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6492. rm -rf conftest*
  6493. eval "ac_cv_lib_$ac_lib_var=yes"
  6494. else
  6495. echo "configure: failed program was:" >&5
  6496. cat conftest.$ac_ext >&5
  6497. rm -rf conftest*
  6498. eval "ac_cv_lib_$ac_lib_var=no"
  6499. fi
  6500. rm -f conftest*
  6501. LIBS="$ac_save_LIBS"
  6502. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6503. echo "$ac_t""yes" 1>&6
  6504. MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB"
  6505. else
  6506. echo "$ac_t""no" 1>&6
  6507. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6508. echo "configure:7979: checking for mysql_query in -lmysqlclient" >&5
  6509. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6510. ac_save_LIBS="$LIBS"
  6511. LIBS="-lmysqlclient $ZLIB $MATHLIB $LIBS"
  6512. cat > conftest.$ac_ext <<EOF
  6513. #line 7985 "configure"
  6514. #include "confdefs.h"
  6515. /* Override any gcc2 internal prototype to avoid an error. */
  6516. /* We use char because int might match the return type of a gcc2
  6517. builtin and then its argument prototype would still apply. */
  6518. char mysql_query();
  6519. int main() {
  6520. mysql_query()
  6521. ; return 0; }
  6522. EOF
  6523. if { (eval echo configure:7996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6524. rm -rf conftest*
  6525. eval "ac_cv_lib_$ac_lib_var=yes"
  6526. else
  6527. echo "configure: failed program was:" >&5
  6528. cat conftest.$ac_ext >&5
  6529. rm -rf conftest*
  6530. eval "ac_cv_lib_$ac_lib_var=no"
  6531. fi
  6532. rm -f conftest*
  6533. LIBS="$ac_save_LIBS"
  6534. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6535. echo "$ac_t""yes" 1>&6
  6536. MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB $MATHLIB"
  6537. else
  6538. echo "$ac_t""no" 1>&6
  6539. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6540. echo "configure:8015: checking for mysql_query in -lmysqlclient" >&5
  6541. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6542. ac_save_LIBS="$LIBS"
  6543. LIBS="-lmysqlclient $ZLIB $SOCKLIB $LIBS"
  6544. cat > conftest.$ac_ext <<EOF
  6545. #line 8021 "configure"
  6546. #include "confdefs.h"
  6547. /* Override any gcc2 internal prototype to avoid an error. */
  6548. /* We use char because int might match the return type of a gcc2
  6549. builtin and then its argument prototype would still apply. */
  6550. char mysql_query();
  6551. int main() {
  6552. mysql_query()
  6553. ; return 0; }
  6554. EOF
  6555. if { (eval echo configure:8032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6556. rm -rf conftest*
  6557. eval "ac_cv_lib_$ac_lib_var=yes"
  6558. else
  6559. echo "configure: failed program was:" >&5
  6560. cat conftest.$ac_ext >&5
  6561. rm -rf conftest*
  6562. eval "ac_cv_lib_$ac_lib_var=no"
  6563. fi
  6564. rm -f conftest*
  6565. LIBS="$ac_save_LIBS"
  6566. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6567. echo "$ac_t""yes" 1>&6
  6568. MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB $SOCKLIB"
  6569. else
  6570. echo "$ac_t""no" 1>&6
  6571. echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
  6572. echo "configure:8051: checking for mysql_query in -lmysqlclient" >&5
  6573. ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
  6574. ac_save_LIBS="$LIBS"
  6575. LIBS="-lmysqlclient $ZLIB $SOCKLIB $MATHLIB $LIBS"
  6576. cat > conftest.$ac_ext <<EOF
  6577. #line 8057 "configure"
  6578. #include "confdefs.h"
  6579. /* Override any gcc2 internal prototype to avoid an error. */
  6580. /* We use char because int might match the return type of a gcc2
  6581. builtin and then its argument prototype would still apply. */
  6582. char mysql_query();
  6583. int main() {
  6584. mysql_query()
  6585. ; return 0; }
  6586. EOF
  6587. if { (eval echo configure:8068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6588. rm -rf conftest*
  6589. eval "ac_cv_lib_$ac_lib_var=yes"
  6590. else
  6591. echo "configure: failed program was:" >&5
  6592. cat conftest.$ac_ext >&5
  6593. rm -rf conftest*
  6594. eval "ac_cv_lib_$ac_lib_var=no"
  6595. fi
  6596. rm -f conftest*
  6597. LIBS="$ac_save_LIBS"
  6598. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6599. echo "$ac_t""yes" 1>&6
  6600. MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB $SOCKLIB $MATHLIB"
  6601. else
  6602. echo "$ac_t""no" 1>&6
  6603. LDFLAGS=${ac_save_ldflags}
  6604. { echo "configure: error: *** Unable to locate MySQL library." 1>&2; exit 1; }
  6605. fi
  6606. fi
  6607. fi
  6608. fi
  6609. fi
  6610. fi
  6611. fi
  6612. fi
  6613. LDFLAGS=${ac_save_ldflags}
  6614. # Check for libmysqld (for embeded version of the driver)
  6615. # Extract the first word of "mysql_config", so it can be a program name with args.
  6616. set dummy mysql_config; ac_word=$2
  6617. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  6618. echo "configure:8158: checking for $ac_word" >&5
  6619. case "$MYSQLD_CONFIG" in
  6620. /*)
  6621. ac_cv_path_MYSQLD_CONFIG="$MYSQLD_CONFIG" # Let the user override the test with a path.
  6622. ;;
  6623. ?:/*)
  6624. ac_cv_path_MYSQLD_CONFIG="$MYSQLD_CONFIG" # Let the user override the test with a dos path.
  6625. ;;
  6626. *)
  6627. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  6628. ac_dummy="$PATH"
  6629. for ac_dir in $ac_dummy; do
  6630. test -z "$ac_dir" && ac_dir=.
  6631. if test -f $ac_dir/$ac_word; then
  6632. ac_cv_path_MYSQLD_CONFIG="$ac_dir/$ac_word"
  6633. break
  6634. fi
  6635. done
  6636. IFS="$ac_save_ifs"
  6637. test -z "$ac_cv_path_MYSQLD_CONFIG" && ac_cv_path_MYSQLD_CONFIG="no"
  6638. ;;
  6639. esac
  6640. MYSQLD_CONFIG="$ac_cv_path_MYSQLD_CONFIG"
  6641. if test -n "$MYSQLD_CONFIG"; then
  6642. echo "$ac_t""$MYSQLD_CONFIG" 1>&6
  6643. else
  6644. echo "$ac_t""no" 1>&6
  6645. fi
  6646. if test "$MYSQLD_CONFIG" = "no" ; then
  6647. { echo "configure: error: *** couldn't find mysql_config" 1>&2; exit 1; }
  6648. fi
  6649. if test "$MYSQLD_CONFIG" != "" ; then
  6650. ac_ext=C
  6651. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  6652. ac_cpp='$CXXCPP $CPPFLAGS'
  6653. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  6654. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  6655. cross_compiling=$ac_cv_prog_cxx_cross
  6656. ac_save_libs="$LIBS"
  6657. MYSQLDLIB=`"$MYSQLD_CONFIG" --libmysqld-libs`
  6658. LIBS="$MYSQLDLIB $LIBS"
  6659. echo $ac_n "checking for mysql_server_init""... $ac_c" 1>&6
  6660. echo "configure:8207: checking for mysql_server_init" >&5
  6661. cat > conftest.$ac_ext <<EOF
  6662. #line 8210 "configure"
  6663. #include "confdefs.h"
  6664. /* System header to define __stub macros and hopefully few prototypes,
  6665. which can conflict with char mysql_server_init(); below. */
  6666. #include <assert.h>
  6667. /* Override any gcc2 internal prototype to avoid an error. */
  6668. #ifdef __cplusplus
  6669. extern "C"
  6670. #endif
  6671. /* We use char because int might match the return type of a gcc2
  6672. builtin and then its argument prototype would still apply. */
  6673. char mysql_server_init();
  6674. int main() {
  6675. /* The GNU C library defines this for functions which it implements
  6676. to always fail with ENOSYS. Some functions are actually named
  6677. something starting with __ and the normal name is an alias. */
  6678. #if defined (__stub_mysql_server_init) || defined (__stub___mysql_server_init)
  6679. choke me
  6680. #else
  6681. mysql_server_init();
  6682. #endif
  6683. ; return 0; }
  6684. EOF
  6685. if { (eval echo configure:8236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6686. rm -rf conftest*
  6687. eval "ac_cv_func_mysql_server_init=yes"
  6688. else
  6689. echo "configure: failed program was:" >&5
  6690. cat conftest.$ac_ext >&5
  6691. rm -rf conftest*
  6692. eval "ac_cv_func_mysql_server_init=no"
  6693. fi
  6694. rm -f conftest*
  6695. if eval "test \"`echo '$ac_cv_func_'mysql_server_init`\" = yes"; then
  6696. echo "$ac_t""yes" 1>&6
  6697. :
  6698. else
  6699. echo "$ac_t""no" 1>&6
  6700. MYSQLDLIB="";
  6701. echo "configure: warning: libmysqld not found" 1>&2
  6702. fi
  6703. LIBS=$ac_save_libs
  6704. ac_ext=c
  6705. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  6706. ac_cpp='$CPP $CPPFLAGS'
  6707. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  6708. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  6709. cross_compiling=$ac_cv_prog_cc_cross
  6710. ac_ext=c
  6711. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  6712. ac_cpp='$CPP $CPPFLAGS'
  6713. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  6714. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  6715. cross_compiling=$ac_cv_prog_cc_cross
  6716. fi
  6717. fi # $USE_MYSQL
  6718. # Done checking MySQL
  6719. # Enable SQLite option
  6720. echo $ac_n "checking whether to use SQLite""... $ac_c" 1>&6
  6721. echo "configure:8288: checking whether to use SQLite" >&5
  6722. echo "$ac_t"""$with_sqlite"" 1>&6
  6723. case "$with_sqlite" in
  6724. "no") USE_SQLITE= ;;
  6725. "yes") USE_SQLITE="1" ;;
  6726. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  6727. esac
  6728. SQLITEINCPATH=
  6729. SQLITELIBPATH=
  6730. SQLITELIB=
  6731. if test -n "$USE_SQLITE"; then
  6732. # With SQLite includes directory
  6733. echo $ac_n "checking for location of SQLite includes""... $ac_c" 1>&6
  6734. echo "configure:8308: checking for location of SQLite includes" >&5
  6735. case "$with_sqlite_includes" in
  6736. y | ye | yes | n | no)
  6737. { echo "configure: error: *** You must supply a directory to --with-sqlite-includes." 1>&2; exit 1; }
  6738. ;;
  6739. esac
  6740. echo "$ac_t""$with_sqlite_includes" 1>&6
  6741. if test -n "$with_sqlite_includes" ; then
  6742. for dir in $with_sqlite_includes; do
  6743. if test -d "$dir"; then
  6744. SQLITEINCPATH="$SQLITEINCPATH -I$dir"
  6745. else
  6746. { echo "configure: error: *** SQLite includes directory $dir does not exist." 1>&2; exit 1; }
  6747. fi
  6748. done
  6749. fi
  6750. ac_save_cppflags="$CPPFLAGS"
  6751. CPPFLAGS="$SQLITEINCPATH $CPPFLAGS"
  6752. for ac_hdr in sqlite3.h
  6753. do
  6754. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  6755. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  6756. echo "configure:8334: checking for $ac_hdr" >&5
  6757. cat > conftest.$ac_ext <<EOF
  6758. #line 8337 "configure"
  6759. #include "confdefs.h"
  6760. #include <$ac_hdr>
  6761. EOF
  6762. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6763. { (eval echo configure:8342: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6764. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6765. if test -z "$ac_err"; then
  6766. rm -rf conftest*
  6767. eval "ac_cv_header_$ac_safe=yes"
  6768. else
  6769. echo "$ac_err" >&5
  6770. echo "configure: failed program was:" >&5
  6771. cat conftest.$ac_ext >&5
  6772. rm -rf conftest*
  6773. eval "ac_cv_header_$ac_safe=no"
  6774. fi
  6775. rm -f conftest*
  6776. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  6777. echo "$ac_t""yes" 1>&6
  6778. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  6779. cat >> confdefs.h <<EOF
  6780. #define $ac_tr_hdr 1
  6781. EOF
  6782. else
  6783. echo "$ac_t""no" 1>&6
  6784. { echo "configure: error: *** Unable to locate SQLite includes." 1>&2; exit 1; }
  6785. fi
  6786. done
  6787. CPPFLAGS=$ac_save_cppflags
  6788. cat >> confdefs.h <<\EOF
  6789. #define HAVE_SQLITE 1
  6790. EOF
  6791. fi # $USE_SQLITE
  6792. if test -n "$USE_SQLITE"; then
  6793. # With SQLite library directory
  6794. echo $ac_n "checking for location of SQLite library""... $ac_c" 1>&6
  6795. echo "configure:8385: checking for location of SQLite library" >&5
  6796. case "$with_sqlite_libs" in
  6797. y | ye | yes | n | no)
  6798. { echo "configure: error: *** You must supply a directory to --with-sqlite-libs." 1>&2; exit 1; }
  6799. ;;
  6800. esac
  6801. echo "$ac_t""$with_sqlite_libs" 1>&6
  6802. if test -n "$with_sqlite_libs"; then
  6803. for dir in $with_sqlite_libs; do
  6804. if test -d "$dir"; then
  6805. SQLITELIBPATH="$SQLITELIBPATH -L$dir"
  6806. else
  6807. { echo "configure: error: *** SQLite library directory $dir does not exist." 1>&2; exit 1; }
  6808. fi
  6809. done
  6810. fi
  6811. ac_save_ldflags="$LDFLAGS"
  6812. LDFLAGS="$SQLITELIBPATH $LDFLAGS"
  6813. echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
  6814. echo "configure:8414: checking for sqlite3_open in -lsqlite3" >&5
  6815. ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
  6816. ac_save_LIBS="$LIBS"
  6817. LIBS="-lsqlite3 $LIBS"
  6818. cat > conftest.$ac_ext <<EOF
  6819. #line 8420 "configure"
  6820. #include "confdefs.h"
  6821. /* Override any gcc2 internal prototype to avoid an error. */
  6822. /* We use char because int might match the return type of a gcc2
  6823. builtin and then its argument prototype would still apply. */
  6824. char sqlite3_open();
  6825. int main() {
  6826. sqlite3_open()
  6827. ; return 0; }
  6828. EOF
  6829. if { (eval echo configure:8431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6830. rm -rf conftest*
  6831. eval "ac_cv_lib_$ac_lib_var=yes"
  6832. else
  6833. echo "configure: failed program was:" >&5
  6834. cat conftest.$ac_ext >&5
  6835. rm -rf conftest*
  6836. eval "ac_cv_lib_$ac_lib_var=no"
  6837. fi
  6838. rm -f conftest*
  6839. LIBS="$ac_save_LIBS"
  6840. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6841. echo "$ac_t""yes" 1>&6
  6842. SQLITELIB="$SQLITELIB -lsqlite3 "
  6843. else
  6844. echo "$ac_t""no" 1>&6
  6845. echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
  6846. echo "configure:8450: checking for sqlite3_open in -lsqlite3" >&5
  6847. ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
  6848. ac_save_LIBS="$LIBS"
  6849. LIBS="-lsqlite3 $DLLIB $LIBS"
  6850. cat > conftest.$ac_ext <<EOF
  6851. #line 8456 "configure"
  6852. #include "confdefs.h"
  6853. /* Override any gcc2 internal prototype to avoid an error. */
  6854. /* We use char because int might match the return type of a gcc2
  6855. builtin and then its argument prototype would still apply. */
  6856. char sqlite3_open();
  6857. int main() {
  6858. sqlite3_open()
  6859. ; return 0; }
  6860. EOF
  6861. if { (eval echo configure:8467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6862. rm -rf conftest*
  6863. eval "ac_cv_lib_$ac_lib_var=yes"
  6864. else
  6865. echo "configure: failed program was:" >&5
  6866. cat conftest.$ac_ext >&5
  6867. rm -rf conftest*
  6868. eval "ac_cv_lib_$ac_lib_var=no"
  6869. fi
  6870. rm -f conftest*
  6871. LIBS="$ac_save_LIBS"
  6872. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6873. echo "$ac_t""yes" 1>&6
  6874. SQLITELIB="$SQLITELIB -lsqlite3 $DLLIB"
  6875. else
  6876. echo "$ac_t""no" 1>&6
  6877. echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
  6878. echo "configure:8486: checking for sqlite3_open in -lsqlite3" >&5
  6879. ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
  6880. ac_save_LIBS="$LIBS"
  6881. LIBS="-lsqlite3 $MATHLIB $LIBS"
  6882. cat > conftest.$ac_ext <<EOF
  6883. #line 8492 "configure"
  6884. #include "confdefs.h"
  6885. /* Override any gcc2 internal prototype to avoid an error. */
  6886. /* We use char because int might match the return type of a gcc2
  6887. builtin and then its argument prototype would still apply. */
  6888. char sqlite3_open();
  6889. int main() {
  6890. sqlite3_open()
  6891. ; return 0; }
  6892. EOF
  6893. if { (eval echo configure:8503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6894. rm -rf conftest*
  6895. eval "ac_cv_lib_$ac_lib_var=yes"
  6896. else
  6897. echo "configure: failed program was:" >&5
  6898. cat conftest.$ac_ext >&5
  6899. rm -rf conftest*
  6900. eval "ac_cv_lib_$ac_lib_var=no"
  6901. fi
  6902. rm -f conftest*
  6903. LIBS="$ac_save_LIBS"
  6904. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6905. echo "$ac_t""yes" 1>&6
  6906. SQLITELIB="$SQLITELIB -lsqlite3 $MATHLIB"
  6907. else
  6908. echo "$ac_t""no" 1>&6
  6909. echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
  6910. echo "configure:8522: checking for sqlite3_open in -lsqlite3" >&5
  6911. ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
  6912. ac_save_LIBS="$LIBS"
  6913. LIBS="-lsqlite3 $MATHLIB $DLLIB $LIBS"
  6914. cat > conftest.$ac_ext <<EOF
  6915. #line 8528 "configure"
  6916. #include "confdefs.h"
  6917. /* Override any gcc2 internal prototype to avoid an error. */
  6918. /* We use char because int might match the return type of a gcc2
  6919. builtin and then its argument prototype would still apply. */
  6920. char sqlite3_open();
  6921. int main() {
  6922. sqlite3_open()
  6923. ; return 0; }
  6924. EOF
  6925. if { (eval echo configure:8539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6926. rm -rf conftest*
  6927. eval "ac_cv_lib_$ac_lib_var=yes"
  6928. else
  6929. echo "configure: failed program was:" >&5
  6930. cat conftest.$ac_ext >&5
  6931. rm -rf conftest*
  6932. eval "ac_cv_lib_$ac_lib_var=no"
  6933. fi
  6934. rm -f conftest*
  6935. LIBS="$ac_save_LIBS"
  6936. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6937. echo "$ac_t""yes" 1>&6
  6938. SQLITELIB="$SQLITELIB -lsqlite3 $MATHLIB $DLLIB"
  6939. else
  6940. echo "$ac_t""no" 1>&6
  6941. LDFLAGS=${ac_save_ldflags}
  6942. { echo "configure: error: *** Unable to locate SQLite library." 1>&2; exit 1; }
  6943. fi
  6944. fi
  6945. fi
  6946. fi
  6947. LDFLAGS=${ac_save_ldflags}
  6948. fi # $USE_SQLITE
  6949. # Done checking SQLite
  6950. # Enable FFMPEG option
  6951. echo $ac_n "checking whether to use FFMPEG""... $ac_c" 1>&6
  6952. echo "configure:8608: checking whether to use FFMPEG" >&5
  6953. echo "$ac_t"""$with_ffmpeg"" 1>&6
  6954. case "$with_ffmpeg" in
  6955. "no") USE_FFMPEG= ;;
  6956. "yes") USE_FFMPEG="1" ;;
  6957. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  6958. esac
  6959. FFMPEGINCPATH=
  6960. FFMPEGLIBPATH=
  6961. FFMPEGLIB=
  6962. if test -n "$USE_FFMPEG"; then
  6963. # With FFMPEG includes directory
  6964. echo $ac_n "checking for location of FFMPEG includes""... $ac_c" 1>&6
  6965. echo "configure:8628: checking for location of FFMPEG includes" >&5
  6966. case "$with_ffmpeg_includes" in
  6967. y | ye | yes | n | no)
  6968. { echo "configure: error: *** You must supply a directory to --with-ffmpeg-includes." 1>&2; exit 1; }
  6969. ;;
  6970. esac
  6971. echo "$ac_t""$with_ffmpeg_includes" 1>&6
  6972. if test -n "$with_ffmpeg_includes" ; then
  6973. for dir in $with_ffmpeg_includes; do
  6974. if test -d "$dir"; then
  6975. FFMPEGINCPATH="$FFMPEGINCPATH -I$dir"
  6976. else
  6977. { echo "configure: error: *** FFMPEG includes directory $dir does not exist." 1>&2; exit 1; }
  6978. fi
  6979. done
  6980. fi
  6981. ac_save_cppflags="$CPPFLAGS"
  6982. CPPFLAGS="$FFMPEGINCPATH $CPPFLAGS"
  6983. for ac_hdr in avcodec.h
  6984. do
  6985. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  6986. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  6987. echo "configure:8654: checking for $ac_hdr" >&5
  6988. cat > conftest.$ac_ext <<EOF
  6989. #line 8657 "configure"
  6990. #include "confdefs.h"
  6991. #include <$ac_hdr>
  6992. EOF
  6993. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6994. { (eval echo configure:8662: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6995. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6996. if test -z "$ac_err"; then
  6997. rm -rf conftest*
  6998. eval "ac_cv_header_$ac_safe=yes"
  6999. else
  7000. echo "$ac_err" >&5
  7001. echo "configure: failed program was:" >&5
  7002. cat conftest.$ac_ext >&5
  7003. rm -rf conftest*
  7004. eval "ac_cv_header_$ac_safe=no"
  7005. fi
  7006. rm -f conftest*
  7007. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7008. echo "$ac_t""yes" 1>&6
  7009. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7010. cat >> confdefs.h <<EOF
  7011. #define $ac_tr_hdr 1
  7012. EOF
  7013. else
  7014. echo "$ac_t""no" 1>&6
  7015. { echo "configure: error: *** Unable to locate FFMPEG includes." 1>&2; exit 1; }
  7016. fi
  7017. done
  7018. CPPFLAGS=$ac_save_cppflags
  7019. ac_save_cppflags="$CPPFLAGS"
  7020. CPPFLAGS="$FFMPEGINCPATH $CPPFLAGS"
  7021. for ac_hdr in avformat.h
  7022. do
  7023. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7024. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7025. echo "configure:8698: checking for $ac_hdr" >&5
  7026. cat > conftest.$ac_ext <<EOF
  7027. #line 8701 "configure"
  7028. #include "confdefs.h"
  7029. #include <$ac_hdr>
  7030. EOF
  7031. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7032. { (eval echo configure:8706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7033. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7034. if test -z "$ac_err"; then
  7035. rm -rf conftest*
  7036. eval "ac_cv_header_$ac_safe=yes"
  7037. else
  7038. echo "$ac_err" >&5
  7039. echo "configure: failed program was:" >&5
  7040. cat conftest.$ac_ext >&5
  7041. rm -rf conftest*
  7042. eval "ac_cv_header_$ac_safe=no"
  7043. fi
  7044. rm -f conftest*
  7045. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7046. echo "$ac_t""yes" 1>&6
  7047. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7048. cat >> confdefs.h <<EOF
  7049. #define $ac_tr_hdr 1
  7050. EOF
  7051. else
  7052. echo "$ac_t""no" 1>&6
  7053. { echo "configure: error: *** Unable to locate FFMPEG includes." 1>&2; exit 1; }
  7054. fi
  7055. done
  7056. CPPFLAGS=$ac_save_cppflags
  7057. ac_save_cppflags="$CPPFLAGS"
  7058. CPPFLAGS="$FFMPEGINCPATH $CPPFLAGS"
  7059. for ac_hdr in swscale.h
  7060. do
  7061. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7062. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7063. echo "configure:8742: checking for $ac_hdr" >&5
  7064. cat > conftest.$ac_ext <<EOF
  7065. #line 8745 "configure"
  7066. #include "confdefs.h"
  7067. #include <$ac_hdr>
  7068. EOF
  7069. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7070. { (eval echo configure:8750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7071. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7072. if test -z "$ac_err"; then
  7073. rm -rf conftest*
  7074. eval "ac_cv_header_$ac_safe=yes"
  7075. else
  7076. echo "$ac_err" >&5
  7077. echo "configure: failed program was:" >&5
  7078. cat conftest.$ac_ext >&5
  7079. rm -rf conftest*
  7080. eval "ac_cv_header_$ac_safe=no"
  7081. fi
  7082. rm -f conftest*
  7083. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7084. echo "$ac_t""yes" 1>&6
  7085. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7086. cat >> confdefs.h <<EOF
  7087. #define $ac_tr_hdr 1
  7088. EOF
  7089. else
  7090. echo "$ac_t""no" 1>&6
  7091. { echo "configure: error: *** Unable to locate FFMPEG includes." 1>&2; exit 1; }
  7092. fi
  7093. done
  7094. CPPFLAGS=$ac_save_cppflags
  7095. cat >> confdefs.h <<\EOF
  7096. #define HAVE_FFMPEG 1
  7097. EOF
  7098. fi # $USE_FFMPEG
  7099. if test -n "$USE_FFMPEG"; then
  7100. # With FFMPEG library directory
  7101. echo $ac_n "checking for location of FFMPEG library""... $ac_c" 1>&6
  7102. echo "configure:8793: checking for location of FFMPEG library" >&5
  7103. case "$with_ffmpeg_libs" in
  7104. y | ye | yes | n | no)
  7105. { echo "configure: error: *** You must supply a directory to --with-ffmpeg-libs." 1>&2; exit 1; }
  7106. ;;
  7107. esac
  7108. echo "$ac_t""$with_ffmpeg_libs" 1>&6
  7109. if test -n "$with_ffmpeg_libs"; then
  7110. for dir in $with_ffmpeg_libs; do
  7111. if test -d "$dir"; then
  7112. FFMPEGLIBPATH="$FFMPEGLIBPATH -L$dir"
  7113. else
  7114. { echo "configure: error: *** FFMPEG library directory $dir does not exist." 1>&2; exit 1; }
  7115. fi
  7116. done
  7117. fi
  7118. ac_save_ldflags="$LDFLAGS"
  7119. LDFLAGS="$FFMPEGLIBPATH $LDFLAGS"
  7120. echo $ac_n "checking for av_free in -lavutil""... $ac_c" 1>&6
  7121. echo "configure:8820: checking for av_free in -lavutil" >&5
  7122. ac_lib_var=`echo avutil'_'av_free | sed 'y%./+-%__p_%'`
  7123. ac_save_LIBS="$LIBS"
  7124. LIBS="-lavutil $LIBS"
  7125. cat > conftest.$ac_ext <<EOF
  7126. #line 8826 "configure"
  7127. #include "confdefs.h"
  7128. /* Override any gcc2 internal prototype to avoid an error. */
  7129. /* We use char because int might match the return type of a gcc2
  7130. builtin and then its argument prototype would still apply. */
  7131. char av_free();
  7132. int main() {
  7133. av_free()
  7134. ; return 0; }
  7135. EOF
  7136. if { (eval echo configure:8837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7137. rm -rf conftest*
  7138. eval "ac_cv_lib_$ac_lib_var=yes"
  7139. else
  7140. echo "configure: failed program was:" >&5
  7141. cat conftest.$ac_ext >&5
  7142. rm -rf conftest*
  7143. eval "ac_cv_lib_$ac_lib_var=no"
  7144. fi
  7145. rm -f conftest*
  7146. LIBS="$ac_save_LIBS"
  7147. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7148. echo "$ac_t""yes" 1>&6
  7149. FFMPEGLIB="$FFMPEGLIB -lavutil "
  7150. else
  7151. echo "$ac_t""no" 1>&6
  7152. echo $ac_n "checking for av_free in -lavutil""... $ac_c" 1>&6
  7153. echo "configure:8856: checking for av_free in -lavutil" >&5
  7154. ac_lib_var=`echo avutil'_'av_free | sed 'y%./+-%__p_%'`
  7155. ac_save_LIBS="$LIBS"
  7156. LIBS="-lavutil $MATHLIB $LIBS"
  7157. cat > conftest.$ac_ext <<EOF
  7158. #line 8862 "configure"
  7159. #include "confdefs.h"
  7160. /* Override any gcc2 internal prototype to avoid an error. */
  7161. /* We use char because int might match the return type of a gcc2
  7162. builtin and then its argument prototype would still apply. */
  7163. char av_free();
  7164. int main() {
  7165. av_free()
  7166. ; return 0; }
  7167. EOF
  7168. if { (eval echo configure:8873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7169. rm -rf conftest*
  7170. eval "ac_cv_lib_$ac_lib_var=yes"
  7171. else
  7172. echo "configure: failed program was:" >&5
  7173. cat conftest.$ac_ext >&5
  7174. rm -rf conftest*
  7175. eval "ac_cv_lib_$ac_lib_var=no"
  7176. fi
  7177. rm -f conftest*
  7178. LIBS="$ac_save_LIBS"
  7179. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7180. echo "$ac_t""yes" 1>&6
  7181. FFMPEGLIB="$FFMPEGLIB -lavutil $MATHLIB"
  7182. else
  7183. echo "$ac_t""no" 1>&6
  7184. LDFLAGS=${ac_save_ldflags}
  7185. { echo "configure: error: *** Unable to locate FFMPEG library." 1>&2; exit 1; }
  7186. fi
  7187. fi
  7188. LDFLAGS=${ac_save_ldflags}
  7189. ac_save_ldflags="$LDFLAGS"
  7190. LDFLAGS="$FFMPEGLIBPATH $LDFLAGS"
  7191. echo $ac_n "checking for avcodec_register in -lavcodec""... $ac_c" 1>&6
  7192. echo "configure:8918: checking for avcodec_register in -lavcodec" >&5
  7193. ac_lib_var=`echo avcodec'_'avcodec_register | sed 'y%./+-%__p_%'`
  7194. ac_save_LIBS="$LIBS"
  7195. LIBS="-lavcodec $FFMPEGLIB $LIBS"
  7196. cat > conftest.$ac_ext <<EOF
  7197. #line 8924 "configure"
  7198. #include "confdefs.h"
  7199. /* Override any gcc2 internal prototype to avoid an error. */
  7200. /* We use char because int might match the return type of a gcc2
  7201. builtin and then its argument prototype would still apply. */
  7202. char avcodec_register();
  7203. int main() {
  7204. avcodec_register()
  7205. ; return 0; }
  7206. EOF
  7207. if { (eval echo configure:8935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7208. rm -rf conftest*
  7209. eval "ac_cv_lib_$ac_lib_var=yes"
  7210. else
  7211. echo "configure: failed program was:" >&5
  7212. cat conftest.$ac_ext >&5
  7213. rm -rf conftest*
  7214. eval "ac_cv_lib_$ac_lib_var=no"
  7215. fi
  7216. rm -f conftest*
  7217. LIBS="$ac_save_LIBS"
  7218. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7219. echo "$ac_t""yes" 1>&6
  7220. FFMPEGLIB="$FFMPEGLIB -lavcodec "
  7221. else
  7222. echo "$ac_t""no" 1>&6
  7223. echo $ac_n "checking for avcodec_register in -lavcodec""... $ac_c" 1>&6
  7224. echo "configure:8954: checking for avcodec_register in -lavcodec" >&5
  7225. ac_lib_var=`echo avcodec'_'avcodec_register | sed 'y%./+-%__p_%'`
  7226. ac_save_LIBS="$LIBS"
  7227. LIBS="-lavcodec $FFMPEGLIB $MATHLIB $LIBS"
  7228. cat > conftest.$ac_ext <<EOF
  7229. #line 8960 "configure"
  7230. #include "confdefs.h"
  7231. /* Override any gcc2 internal prototype to avoid an error. */
  7232. /* We use char because int might match the return type of a gcc2
  7233. builtin and then its argument prototype would still apply. */
  7234. char avcodec_register();
  7235. int main() {
  7236. avcodec_register()
  7237. ; return 0; }
  7238. EOF
  7239. if { (eval echo configure:8971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7240. rm -rf conftest*
  7241. eval "ac_cv_lib_$ac_lib_var=yes"
  7242. else
  7243. echo "configure: failed program was:" >&5
  7244. cat conftest.$ac_ext >&5
  7245. rm -rf conftest*
  7246. eval "ac_cv_lib_$ac_lib_var=no"
  7247. fi
  7248. rm -f conftest*
  7249. LIBS="$ac_save_LIBS"
  7250. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7251. echo "$ac_t""yes" 1>&6
  7252. FFMPEGLIB="$FFMPEGLIB -lavcodec $MATHLIB"
  7253. else
  7254. echo "$ac_t""no" 1>&6
  7255. LDFLAGS=${ac_save_ldflags}
  7256. { echo "configure: error: *** Unable to locate FFMPEG library." 1>&2; exit 1; }
  7257. fi
  7258. fi
  7259. LDFLAGS=${ac_save_ldflags}
  7260. ac_save_ldflags="$LDFLAGS"
  7261. LDFLAGS="$FFMPEGLIBPATH $LDFLAGS"
  7262. echo $ac_n "checking for avformat_alloc_context in -lavformat""... $ac_c" 1>&6
  7263. echo "configure:9016: checking for avformat_alloc_context in -lavformat" >&5
  7264. ac_lib_var=`echo avformat'_'avformat_alloc_context | sed 'y%./+-%__p_%'`
  7265. ac_save_LIBS="$LIBS"
  7266. LIBS="-lavformat $FFMPEGLIB $LIBS"
  7267. cat > conftest.$ac_ext <<EOF
  7268. #line 9022 "configure"
  7269. #include "confdefs.h"
  7270. /* Override any gcc2 internal prototype to avoid an error. */
  7271. /* We use char because int might match the return type of a gcc2
  7272. builtin and then its argument prototype would still apply. */
  7273. char avformat_alloc_context();
  7274. int main() {
  7275. avformat_alloc_context()
  7276. ; return 0; }
  7277. EOF
  7278. if { (eval echo configure:9033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7279. rm -rf conftest*
  7280. eval "ac_cv_lib_$ac_lib_var=yes"
  7281. else
  7282. echo "configure: failed program was:" >&5
  7283. cat conftest.$ac_ext >&5
  7284. rm -rf conftest*
  7285. eval "ac_cv_lib_$ac_lib_var=no"
  7286. fi
  7287. rm -f conftest*
  7288. LIBS="$ac_save_LIBS"
  7289. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7290. echo "$ac_t""yes" 1>&6
  7291. FFMPEGLIB="$FFMPEGLIB -lavformat "
  7292. else
  7293. echo "$ac_t""no" 1>&6
  7294. echo $ac_n "checking for avformat_alloc_context in -lavformat""... $ac_c" 1>&6
  7295. echo "configure:9052: checking for avformat_alloc_context in -lavformat" >&5
  7296. ac_lib_var=`echo avformat'_'avformat_alloc_context | sed 'y%./+-%__p_%'`
  7297. ac_save_LIBS="$LIBS"
  7298. LIBS="-lavformat $FFMPEGLIB $MATHLIB $LIBS"
  7299. cat > conftest.$ac_ext <<EOF
  7300. #line 9058 "configure"
  7301. #include "confdefs.h"
  7302. /* Override any gcc2 internal prototype to avoid an error. */
  7303. /* We use char because int might match the return type of a gcc2
  7304. builtin and then its argument prototype would still apply. */
  7305. char avformat_alloc_context();
  7306. int main() {
  7307. avformat_alloc_context()
  7308. ; return 0; }
  7309. EOF
  7310. if { (eval echo configure:9069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7311. rm -rf conftest*
  7312. eval "ac_cv_lib_$ac_lib_var=yes"
  7313. else
  7314. echo "configure: failed program was:" >&5
  7315. cat conftest.$ac_ext >&5
  7316. rm -rf conftest*
  7317. eval "ac_cv_lib_$ac_lib_var=no"
  7318. fi
  7319. rm -f conftest*
  7320. LIBS="$ac_save_LIBS"
  7321. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7322. echo "$ac_t""yes" 1>&6
  7323. FFMPEGLIB="$FFMPEGLIB -lavformat $MATHLIB"
  7324. else
  7325. echo "$ac_t""no" 1>&6
  7326. LDFLAGS=${ac_save_ldflags}
  7327. { echo "configure: error: *** Unable to locate FFMPEG library." 1>&2; exit 1; }
  7328. fi
  7329. fi
  7330. LDFLAGS=${ac_save_ldflags}
  7331. fi # $USE_FFMPEG
  7332. # Done checking FFMPEG
  7333. # Enable OpenGL option
  7334. OPENGLINC=
  7335. OPENGLLIB=
  7336. OPENGLULIB=
  7337. USE_OPENGL=
  7338. OPENGL_X11=
  7339. OPENGL_AQUA=
  7340. OPENGL_WINDOWS=
  7341. echo $ac_n "checking whether to use OpenGL""... $ac_c" 1>&6
  7342. echo "configure:9128: checking whether to use OpenGL" >&5
  7343. echo "$ac_t"""$with_opengl"" 1>&6
  7344. case "$with_opengl" in
  7345. n|no)
  7346. OPENGL_TYPE=none
  7347. ;;
  7348. y|yes|x|x11|glx)
  7349. OPENGL_TYPE=X11
  7350. USE_OPENGL=1
  7351. OPENGL_X11=1
  7352. ;;
  7353. aqua|mac|osx|macosx|agl)
  7354. OPENGL_TYPE=Aqua
  7355. USE_OPENGL=1
  7356. OPENGL_AQUA=1
  7357. ;;
  7358. win|windows|mswin|wgl)
  7359. OPENGL_TYPE=Windows
  7360. USE_OPENGL=1
  7361. OPENGL_WINDOWS=1
  7362. ;;
  7363. *)
  7364. { echo "configure: error: *** Valid arguments for --with-opengl= are yes,no,x11,aqua,windows." 1>&2; exit 1; }
  7365. ;;
  7366. esac
  7367. if test -n "$USE_OPENGL" ; then
  7368. if test "$OPENGL_X11" = 1 ; then
  7369. # With OpenGL includes directory
  7370. echo $ac_n "checking for location of OpenGL includes""... $ac_c" 1>&6
  7371. echo "configure:9162: checking for location of OpenGL includes" >&5
  7372. case "$with_opengl_includes" in
  7373. y | ye | yes | n | no)
  7374. { echo "configure: error: *** You must supply a directory to --with-opengl-includes." 1>&2; exit 1; }
  7375. ;;
  7376. esac
  7377. echo "$ac_t""$with_opengl_includes" 1>&6
  7378. if test -n "$with_opengl_includes" ; then
  7379. for dir in $with_opengl_includes; do
  7380. if test -d "$dir"; then
  7381. OPENGLINC="$OPENGLINC -I$dir"
  7382. else
  7383. { echo "configure: error: *** OpenGL includes directory $dir does not exist." 1>&2; exit 1; }
  7384. fi
  7385. done
  7386. fi
  7387. ac_save_cppflags="$CPPFLAGS"
  7388. CPPFLAGS="$OPENGLINC $X_CFLAGS $CPPFLAGS"
  7389. for ac_hdr in GL/gl.h GL/glu.h
  7390. do
  7391. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7392. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7393. echo "configure:9188: checking for $ac_hdr" >&5
  7394. cat > conftest.$ac_ext <<EOF
  7395. #line 9191 "configure"
  7396. #include "confdefs.h"
  7397. #include <$ac_hdr>
  7398. EOF
  7399. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7400. { (eval echo configure:9196: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7401. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7402. if test -z "$ac_err"; then
  7403. rm -rf conftest*
  7404. eval "ac_cv_header_$ac_safe=yes"
  7405. else
  7406. echo "$ac_err" >&5
  7407. echo "configure: failed program was:" >&5
  7408. cat conftest.$ac_ext >&5
  7409. rm -rf conftest*
  7410. eval "ac_cv_header_$ac_safe=no"
  7411. fi
  7412. rm -f conftest*
  7413. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7414. echo "$ac_t""yes" 1>&6
  7415. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7416. cat >> confdefs.h <<EOF
  7417. #define $ac_tr_hdr 1
  7418. EOF
  7419. else
  7420. echo "$ac_t""no" 1>&6
  7421. { echo "configure: error: *** Unable to locate OpenGL includes." 1>&2; exit 1; }
  7422. fi
  7423. done
  7424. CPPFLAGS=$ac_save_cppflags
  7425. # With OpenGL library directory
  7426. echo $ac_n "checking for location of OpenGL library""... $ac_c" 1>&6
  7427. echo "configure:9230: checking for location of OpenGL library" >&5
  7428. case "$with_opengl_libs" in
  7429. y | ye | yes | n | no)
  7430. { echo "configure: error: *** You must supply a directory to --with-opengl-libs." 1>&2; exit 1; }
  7431. ;;
  7432. esac
  7433. echo "$ac_t""$with_opengl_libs" 1>&6
  7434. if test -n "$with_opengl_libs"; then
  7435. for dir in $with_opengl_libs; do
  7436. if test -d "$dir"; then
  7437. OPENGL_LIB_PATH="$OPENGL_LIB_PATH -L$dir"
  7438. else
  7439. { echo "configure: error: *** OpenGL library directory $dir does not exist." 1>&2; exit 1; }
  7440. fi
  7441. done
  7442. fi
  7443. ac_save_ldflags="$LDFLAGS"
  7444. LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
  7445. echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
  7446. echo "configure:9259: checking for glBegin in -lGL" >&5
  7447. ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
  7448. ac_save_LIBS="$LIBS"
  7449. LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB $LIBS"
  7450. cat > conftest.$ac_ext <<EOF
  7451. #line 9265 "configure"
  7452. #include "confdefs.h"
  7453. /* Override any gcc2 internal prototype to avoid an error. */
  7454. /* We use char because int might match the return type of a gcc2
  7455. builtin and then its argument prototype would still apply. */
  7456. char glBegin();
  7457. int main() {
  7458. glBegin()
  7459. ; return 0; }
  7460. EOF
  7461. if { (eval echo configure:9276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7462. rm -rf conftest*
  7463. eval "ac_cv_lib_$ac_lib_var=yes"
  7464. else
  7465. echo "configure: failed program was:" >&5
  7466. cat conftest.$ac_ext >&5
  7467. rm -rf conftest*
  7468. eval "ac_cv_lib_$ac_lib_var=no"
  7469. fi
  7470. rm -f conftest*
  7471. LIBS="$ac_save_LIBS"
  7472. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7473. echo "$ac_t""yes" 1>&6
  7474. OPENGLLIB="$OPENGLLIB -lGL "
  7475. else
  7476. echo "$ac_t""no" 1>&6
  7477. echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
  7478. echo "configure:9295: checking for glBegin in -lGL" >&5
  7479. ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
  7480. ac_save_LIBS="$LIBS"
  7481. LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lXext $LIBS"
  7482. cat > conftest.$ac_ext <<EOF
  7483. #line 9301 "configure"
  7484. #include "confdefs.h"
  7485. /* Override any gcc2 internal prototype to avoid an error. */
  7486. /* We use char because int might match the return type of a gcc2
  7487. builtin and then its argument prototype would still apply. */
  7488. char glBegin();
  7489. int main() {
  7490. glBegin()
  7491. ; return 0; }
  7492. EOF
  7493. if { (eval echo configure:9312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7494. rm -rf conftest*
  7495. eval "ac_cv_lib_$ac_lib_var=yes"
  7496. else
  7497. echo "configure: failed program was:" >&5
  7498. cat conftest.$ac_ext >&5
  7499. rm -rf conftest*
  7500. eval "ac_cv_lib_$ac_lib_var=no"
  7501. fi
  7502. rm -f conftest*
  7503. LIBS="$ac_save_LIBS"
  7504. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7505. echo "$ac_t""yes" 1>&6
  7506. OPENGLLIB="$OPENGLLIB -lGL -lXext"
  7507. else
  7508. echo "$ac_t""no" 1>&6
  7509. echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
  7510. echo "configure:9331: checking for glBegin in -lGL" >&5
  7511. ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
  7512. ac_save_LIBS="$LIBS"
  7513. LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lpthread $LIBS"
  7514. cat > conftest.$ac_ext <<EOF
  7515. #line 9337 "configure"
  7516. #include "confdefs.h"
  7517. /* Override any gcc2 internal prototype to avoid an error. */
  7518. /* We use char because int might match the return type of a gcc2
  7519. builtin and then its argument prototype would still apply. */
  7520. char glBegin();
  7521. int main() {
  7522. glBegin()
  7523. ; return 0; }
  7524. EOF
  7525. if { (eval echo configure:9348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7526. rm -rf conftest*
  7527. eval "ac_cv_lib_$ac_lib_var=yes"
  7528. else
  7529. echo "configure: failed program was:" >&5
  7530. cat conftest.$ac_ext >&5
  7531. rm -rf conftest*
  7532. eval "ac_cv_lib_$ac_lib_var=no"
  7533. fi
  7534. rm -f conftest*
  7535. LIBS="$ac_save_LIBS"
  7536. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7537. echo "$ac_t""yes" 1>&6
  7538. OPENGLLIB="$OPENGLLIB -lGL -lpthread"
  7539. else
  7540. echo "$ac_t""no" 1>&6
  7541. echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
  7542. echo "configure:9367: checking for glBegin in -lGL" >&5
  7543. ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
  7544. ac_save_LIBS="$LIBS"
  7545. LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lpthread -lXext $LIBS"
  7546. cat > conftest.$ac_ext <<EOF
  7547. #line 9373 "configure"
  7548. #include "confdefs.h"
  7549. /* Override any gcc2 internal prototype to avoid an error. */
  7550. /* We use char because int might match the return type of a gcc2
  7551. builtin and then its argument prototype would still apply. */
  7552. char glBegin();
  7553. int main() {
  7554. glBegin()
  7555. ; return 0; }
  7556. EOF
  7557. if { (eval echo configure:9384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7558. rm -rf conftest*
  7559. eval "ac_cv_lib_$ac_lib_var=yes"
  7560. else
  7561. echo "configure: failed program was:" >&5
  7562. cat conftest.$ac_ext >&5
  7563. rm -rf conftest*
  7564. eval "ac_cv_lib_$ac_lib_var=no"
  7565. fi
  7566. rm -f conftest*
  7567. LIBS="$ac_save_LIBS"
  7568. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7569. echo "$ac_t""yes" 1>&6
  7570. OPENGLLIB="$OPENGLLIB -lGL -lpthread -lXext"
  7571. else
  7572. echo "$ac_t""no" 1>&6
  7573. LDFLAGS=${ac_save_ldflags}
  7574. { echo "configure: error: *** Unable to locate OpenGL library." 1>&2; exit 1; }
  7575. fi
  7576. fi
  7577. fi
  7578. fi
  7579. LDFLAGS=${ac_save_ldflags}
  7580. ac_save_ldflags="$LDFLAGS"
  7581. LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
  7582. echo $ac_n "checking for gluBeginCurve in -lGLU""... $ac_c" 1>&6
  7583. echo "configure:9446: checking for gluBeginCurve in -lGLU" >&5
  7584. ac_lib_var=`echo GLU'_'gluBeginCurve | sed 'y%./+-%__p_%'`
  7585. ac_save_LIBS="$LIBS"
  7586. LIBS="-lGLU $OPENGLLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB $LIBS"
  7587. cat > conftest.$ac_ext <<EOF
  7588. #line 9452 "configure"
  7589. #include "confdefs.h"
  7590. /* Override any gcc2 internal prototype to avoid an error. */
  7591. /* We use char because int might match the return type of a gcc2
  7592. builtin and then its argument prototype would still apply. */
  7593. char gluBeginCurve();
  7594. int main() {
  7595. gluBeginCurve()
  7596. ; return 0; }
  7597. EOF
  7598. if { (eval echo configure:9463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7599. rm -rf conftest*
  7600. eval "ac_cv_lib_$ac_lib_var=yes"
  7601. else
  7602. echo "configure: failed program was:" >&5
  7603. cat conftest.$ac_ext >&5
  7604. rm -rf conftest*
  7605. eval "ac_cv_lib_$ac_lib_var=no"
  7606. fi
  7607. rm -f conftest*
  7608. LIBS="$ac_save_LIBS"
  7609. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7610. echo "$ac_t""yes" 1>&6
  7611. OPENGLULIB="$OPENGLULIB -lGLU "
  7612. else
  7613. echo "$ac_t""no" 1>&6
  7614. echo $ac_n "checking for gluBeginCurve in -lGLU""... $ac_c" 1>&6
  7615. echo "configure:9482: checking for gluBeginCurve in -lGLU" >&5
  7616. ac_lib_var=`echo GLU'_'gluBeginCurve | sed 'y%./+-%__p_%'`
  7617. ac_save_LIBS="$LIBS"
  7618. LIBS="-lGLU $OPENGLLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lstdc++ $LIBS"
  7619. cat > conftest.$ac_ext <<EOF
  7620. #line 9488 "configure"
  7621. #include "confdefs.h"
  7622. /* Override any gcc2 internal prototype to avoid an error. */
  7623. /* We use char because int might match the return type of a gcc2
  7624. builtin and then its argument prototype would still apply. */
  7625. char gluBeginCurve();
  7626. int main() {
  7627. gluBeginCurve()
  7628. ; return 0; }
  7629. EOF
  7630. if { (eval echo configure:9499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7631. rm -rf conftest*
  7632. eval "ac_cv_lib_$ac_lib_var=yes"
  7633. else
  7634. echo "configure: failed program was:" >&5
  7635. cat conftest.$ac_ext >&5
  7636. rm -rf conftest*
  7637. eval "ac_cv_lib_$ac_lib_var=no"
  7638. fi
  7639. rm -f conftest*
  7640. LIBS="$ac_save_LIBS"
  7641. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7642. echo "$ac_t""yes" 1>&6
  7643. OPENGLULIB="$OPENGLULIB -lGLU -lstdc++"
  7644. else
  7645. echo "$ac_t""no" 1>&6
  7646. LDFLAGS=${ac_save_ldflags}
  7647. { echo "configure: error: *** Unable to locate GLU library." 1>&2; exit 1; }
  7648. fi
  7649. fi
  7650. LDFLAGS=${ac_save_ldflags}
  7651. OPENGLLIB="$OPENGL_LIB_PATH $OPENGLLIB"
  7652. OPENGLULIB="$OPENGL_LIB_PATH $OPENGLULIB"
  7653. ac_save_libs="$LIBS"
  7654. ac_save_ldflags="$LDFLAGS"
  7655. LIBS=" $OPENGLLIB $LIBS"
  7656. LDFLAGS=" $LDFLAGS"
  7657. echo $ac_n "checking for glXCreatePbuffer""... $ac_c" 1>&6
  7658. echo "configure:9546: checking for glXCreatePbuffer" >&5
  7659. cat > conftest.$ac_ext <<EOF
  7660. #line 9549 "configure"
  7661. #include "confdefs.h"
  7662. /* System header to define __stub macros and hopefully few prototypes,
  7663. which can conflict with char glXCreatePbuffer(); below. */
  7664. #include <assert.h>
  7665. /* Override any gcc2 internal prototype to avoid an error. */
  7666. /* We use char because int might match the return type of a gcc2
  7667. builtin and then its argument prototype would still apply. */
  7668. char glXCreatePbuffer();
  7669. int main() {
  7670. /* The GNU C library defines this for functions which it implements
  7671. to always fail with ENOSYS. Some functions are actually named
  7672. something starting with __ and the normal name is an alias. */
  7673. #if defined (__stub_glXCreatePbuffer) || defined (__stub___glXCreatePbuffer)
  7674. choke me
  7675. #else
  7676. glXCreatePbuffer();
  7677. #endif
  7678. ; return 0; }
  7679. EOF
  7680. if { (eval echo configure:9572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7681. rm -rf conftest*
  7682. eval "ac_cv_func_glXCreatePbuffer=yes"
  7683. else
  7684. echo "configure: failed program was:" >&5
  7685. cat conftest.$ac_ext >&5
  7686. rm -rf conftest*
  7687. eval "ac_cv_func_glXCreatePbuffer=no"
  7688. fi
  7689. rm -f conftest*
  7690. if eval "test \"`echo '$ac_cv_func_'glXCreatePbuffer`\" = yes"; then
  7691. echo "$ac_t""yes" 1>&6
  7692. cat >> confdefs.h <<\EOF
  7693. #define HAVE_PBUFFERS 1
  7694. EOF
  7695. else
  7696. echo "$ac_t""no" 1>&6
  7697. { echo "configure: error: *** Unable to locate glXCreatePbuffer." 1>&2; exit 1; }
  7698. fi
  7699. LIBS=${ac_save_libs}
  7700. LDFLAGS=${ac_save_ldflags}
  7701. ac_save_libs="$LIBS"
  7702. ac_save_ldflags="$LDFLAGS"
  7703. LIBS=" $OPENGLLIB $LIBS"
  7704. LDFLAGS=" $LDFLAGS"
  7705. echo $ac_n "checking for glXCreateGLXPixmap""... $ac_c" 1>&6
  7706. echo "configure:9609: checking for glXCreateGLXPixmap" >&5
  7707. cat > conftest.$ac_ext <<EOF
  7708. #line 9612 "configure"
  7709. #include "confdefs.h"
  7710. /* System header to define __stub macros and hopefully few prototypes,
  7711. which can conflict with char glXCreateGLXPixmap(); below. */
  7712. #include <assert.h>
  7713. /* Override any gcc2 internal prototype to avoid an error. */
  7714. /* We use char because int might match the return type of a gcc2
  7715. builtin and then its argument prototype would still apply. */
  7716. char glXCreateGLXPixmap();
  7717. int main() {
  7718. /* The GNU C library defines this for functions which it implements
  7719. to always fail with ENOSYS. Some functions are actually named
  7720. something starting with __ and the normal name is an alias. */
  7721. #if defined (__stub_glXCreateGLXPixmap) || defined (__stub___glXCreateGLXPixmap)
  7722. choke me
  7723. #else
  7724. glXCreateGLXPixmap();
  7725. #endif
  7726. ; return 0; }
  7727. EOF
  7728. if { (eval echo configure:9635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7729. rm -rf conftest*
  7730. eval "ac_cv_func_glXCreateGLXPixmap=yes"
  7731. else
  7732. echo "configure: failed program was:" >&5
  7733. cat conftest.$ac_ext >&5
  7734. rm -rf conftest*
  7735. eval "ac_cv_func_glXCreateGLXPixmap=no"
  7736. fi
  7737. rm -f conftest*
  7738. if eval "test \"`echo '$ac_cv_func_'glXCreateGLXPixmap`\" = yes"; then
  7739. echo "$ac_t""yes" 1>&6
  7740. cat >> confdefs.h <<\EOF
  7741. #define HAVE_PIXMAPS 1
  7742. EOF
  7743. else
  7744. echo "$ac_t""no" 1>&6
  7745. { echo "configure: error: *** Unable to locate glXCreateGLXPixmap." 1>&2; exit 1; }
  7746. fi
  7747. LIBS=${ac_save_libs}
  7748. LDFLAGS=${ac_save_ldflags}
  7749. cat >> confdefs.h <<\EOF
  7750. #define OPENGL_X11 1
  7751. EOF
  7752. fi # $OPENGL_X11
  7753. if test "$OPENGL_AQUA" = 1 ; then
  7754. echo $ac_n "checking for location of OpenGL framework""... $ac_c" 1>&6
  7755. echo "configure:9678: checking for location of OpenGL framework" >&5
  7756. case "$with_opengl_framework" in
  7757. y | ye | yes | n | no)
  7758. { echo "configure: error: *** You must supply a directory to --with-opengl-framework." 1>&2; exit 1; }
  7759. ;;
  7760. esac
  7761. echo "$ac_t""$with_opengl_framework" 1>&6
  7762. if test -n "$with_opengl_framework"; then
  7763. if test -d $with_opengl_framework; then
  7764. OPENGLPATH="$OPENGLPATH -F$with_opengl_framework"
  7765. else
  7766. { echo "configure: error: *** OpenGL framework directory $dir does not exist." 1>&2; exit 1; }
  7767. fi
  7768. fi
  7769. ac_save_cppflags="$CPPFLAGS"
  7770. CPPFLAGS="$OPENGLPATH $CPPFLAGS"
  7771. for ac_hdr in OpenGL/gl.h OpenGL/glu.h
  7772. do
  7773. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7774. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7775. echo "configure:9702: checking for $ac_hdr" >&5
  7776. cat > conftest.$ac_ext <<EOF
  7777. #line 9705 "configure"
  7778. #include "confdefs.h"
  7779. #include <$ac_hdr>
  7780. EOF
  7781. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7782. { (eval echo configure:9710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7783. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7784. if test -z "$ac_err"; then
  7785. rm -rf conftest*
  7786. eval "ac_cv_header_$ac_safe=yes"
  7787. else
  7788. echo "$ac_err" >&5
  7789. echo "configure: failed program was:" >&5
  7790. cat conftest.$ac_ext >&5
  7791. rm -rf conftest*
  7792. eval "ac_cv_header_$ac_safe=no"
  7793. fi
  7794. rm -f conftest*
  7795. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7796. echo "$ac_t""yes" 1>&6
  7797. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7798. cat >> confdefs.h <<EOF
  7799. #define $ac_tr_hdr 1
  7800. EOF
  7801. else
  7802. echo "$ac_t""no" 1>&6
  7803. { echo "configure: error: *** Unable to locate OpenGL includes." 1>&2; exit 1; }
  7804. fi
  7805. done
  7806. CPPFLAGS=$ac_save_cppflags
  7807. ac_save_libs="$LIBS"
  7808. ac_save_ldflags="$LDFLAGS"
  7809. LIBS="-framework OpenGL -framework AGL -framework ApplicationServices $LIBS"
  7810. LDFLAGS="$OPENGLPATH $LDFLAGS"
  7811. echo $ac_n "checking for glBegin""... $ac_c" 1>&6
  7812. echo "configure:9746: checking for glBegin" >&5
  7813. cat > conftest.$ac_ext <<EOF
  7814. #line 9749 "configure"
  7815. #include "confdefs.h"
  7816. /* System header to define __stub macros and hopefully few prototypes,
  7817. which can conflict with char glBegin(); below. */
  7818. #include <assert.h>
  7819. /* Override any gcc2 internal prototype to avoid an error. */
  7820. /* We use char because int might match the return type of a gcc2
  7821. builtin and then its argument prototype would still apply. */
  7822. char glBegin();
  7823. int main() {
  7824. /* The GNU C library defines this for functions which it implements
  7825. to always fail with ENOSYS. Some functions are actually named
  7826. something starting with __ and the normal name is an alias. */
  7827. #if defined (__stub_glBegin) || defined (__stub___glBegin)
  7828. choke me
  7829. #else
  7830. glBegin();
  7831. #endif
  7832. ; return 0; }
  7833. EOF
  7834. if { (eval echo configure:9772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7835. rm -rf conftest*
  7836. eval "ac_cv_func_glBegin=yes"
  7837. else
  7838. echo "configure: failed program was:" >&5
  7839. cat conftest.$ac_ext >&5
  7840. rm -rf conftest*
  7841. eval "ac_cv_func_glBegin=no"
  7842. fi
  7843. rm -f conftest*
  7844. if eval "test \"`echo '$ac_cv_func_'glBegin`\" = yes"; then
  7845. echo "$ac_t""yes" 1>&6
  7846. OPENGLLIB="$OPENGLLIB -framework OpenGL -framework AGL -framework ApplicationServices"
  7847. else
  7848. echo "$ac_t""no" 1>&6
  7849. { echo "configure: error: *** Unable to locate OpenGL library." 1>&2; exit 1; }
  7850. fi
  7851. LIBS=${ac_save_libs}
  7852. LDFLAGS=${ac_save_ldflags}
  7853. ac_save_libs="$LIBS"
  7854. ac_save_ldflags="$LDFLAGS"
  7855. LIBS=" $OPENGLLIB $LIBS"
  7856. LDFLAGS="$OPENGLPATH $LDFLAGS"
  7857. echo $ac_n "checking for gluBeginCurve""... $ac_c" 1>&6
  7858. echo "configure:9809: checking for gluBeginCurve" >&5
  7859. cat > conftest.$ac_ext <<EOF
  7860. #line 9812 "configure"
  7861. #include "confdefs.h"
  7862. /* System header to define __stub macros and hopefully few prototypes,
  7863. which can conflict with char gluBeginCurve(); below. */
  7864. #include <assert.h>
  7865. /* Override any gcc2 internal prototype to avoid an error. */
  7866. /* We use char because int might match the return type of a gcc2
  7867. builtin and then its argument prototype would still apply. */
  7868. char gluBeginCurve();
  7869. int main() {
  7870. /* The GNU C library defines this for functions which it implements
  7871. to always fail with ENOSYS. Some functions are actually named
  7872. something starting with __ and the normal name is an alias. */
  7873. #if defined (__stub_gluBeginCurve) || defined (__stub___gluBeginCurve)
  7874. choke me
  7875. #else
  7876. gluBeginCurve();
  7877. #endif
  7878. ; return 0; }
  7879. EOF
  7880. if { (eval echo configure:9835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7881. rm -rf conftest*
  7882. eval "ac_cv_func_gluBeginCurve=yes"
  7883. else
  7884. echo "configure: failed program was:" >&5
  7885. cat conftest.$ac_ext >&5
  7886. rm -rf conftest*
  7887. eval "ac_cv_func_gluBeginCurve=no"
  7888. fi
  7889. rm -f conftest*
  7890. if eval "test \"`echo '$ac_cv_func_'gluBeginCurve`\" = yes"; then
  7891. echo "$ac_t""yes" 1>&6
  7892. OPENGLLIB="$OPENGLLIB "
  7893. else
  7894. echo "$ac_t""no" 1>&6
  7895. { echo "configure: error: *** Unable to locate GLU library." 1>&2; exit 1; }
  7896. fi
  7897. LIBS=${ac_save_libs}
  7898. LDFLAGS=${ac_save_ldflags}
  7899. OPENGLINC="$OPENGLPATH"
  7900. OPENGLLIBPATH="$OPENGLPATH"
  7901. cat >> confdefs.h <<\EOF
  7902. #define OPENGL_AQUA 1
  7903. EOF
  7904. fi # $OPENGL_AQUA
  7905. if test "$OPENGL_WINDOWS" = 1 ; then
  7906. # With OpenGL includes directory
  7907. echo $ac_n "checking for location of OpenGL includes""... $ac_c" 1>&6
  7908. echo "configure:9883: checking for location of OpenGL includes" >&5
  7909. case "$with_opengl_includes" in
  7910. y | ye | yes | n | no)
  7911. { echo "configure: error: *** You must supply a directory to --with-opengl-includes." 1>&2; exit 1; }
  7912. ;;
  7913. esac
  7914. echo "$ac_t""$with_opengl_includes" 1>&6
  7915. if test -n "$with_opengl_includes" ; then
  7916. for dir in $with_opengl_includes; do
  7917. if test -d "$dir"; then
  7918. OPENGLINC="$OPENGLINC -I$dir"
  7919. else
  7920. { echo "configure: error: *** OpenGL includes directory $dir does not exist." 1>&2; exit 1; }
  7921. fi
  7922. done
  7923. fi
  7924. ac_save_cppflags="$CPPFLAGS"
  7925. CPPFLAGS="$OPENGLINC $CPPFLAGS"
  7926. for ac_hdr in GL/gl.h GL/glu.h
  7927. do
  7928. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7929. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7930. echo "configure:9909: checking for $ac_hdr" >&5
  7931. cat > conftest.$ac_ext <<EOF
  7932. #line 9912 "configure"
  7933. #include "confdefs.h"
  7934. #include <$ac_hdr>
  7935. EOF
  7936. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7937. { (eval echo configure:9917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7938. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7939. if test -z "$ac_err"; then
  7940. rm -rf conftest*
  7941. eval "ac_cv_header_$ac_safe=yes"
  7942. else
  7943. echo "$ac_err" >&5
  7944. echo "configure: failed program was:" >&5
  7945. cat conftest.$ac_ext >&5
  7946. rm -rf conftest*
  7947. eval "ac_cv_header_$ac_safe=no"
  7948. fi
  7949. rm -f conftest*
  7950. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7951. echo "$ac_t""yes" 1>&6
  7952. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7953. cat >> confdefs.h <<EOF
  7954. #define $ac_tr_hdr 1
  7955. EOF
  7956. else
  7957. echo "$ac_t""no" 1>&6
  7958. { echo "configure: error: *** Unable to locate OpenGL includes." 1>&2; exit 1; }
  7959. fi
  7960. done
  7961. CPPFLAGS=$ac_save_cppflags
  7962. # With OpenGL library directory
  7963. echo $ac_n "checking for location of OpenGL library""... $ac_c" 1>&6
  7964. echo "configure:9951: checking for location of OpenGL library" >&5
  7965. case "$with_opengl_libs" in
  7966. y | ye | yes | n | no)
  7967. { echo "configure: error: *** You must supply a directory to --with-opengl-libs." 1>&2; exit 1; }
  7968. ;;
  7969. esac
  7970. echo "$ac_t""$with_opengl_libs" 1>&6
  7971. if test -n "$with_opengl_libs"; then
  7972. for dir in $with_opengl_libs; do
  7973. if test -d "$dir"; then
  7974. OPENGL_LIB_PATH="$OPENGL_LIB_PATH -L$dir"
  7975. else
  7976. { echo "configure: error: *** OpenGL library directory $dir does not exist." 1>&2; exit 1; }
  7977. fi
  7978. done
  7979. fi
  7980. ac_save_cflags="$CFLAGS"
  7981. CFLAGS="$CFLAGS $OPENGLINC"
  7982. ac_save_ldflags="$LDFLAGS"
  7983. ac_save_libs="$LIBS"
  7984. echo $ac_n "checking for OpenGL library""... $ac_c" 1>&6
  7985. echo "configure:9976: checking for OpenGL library" >&5
  7986. LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
  7987. LIBS="-lopengl32 "
  7988. cat > conftest.$ac_ext <<EOF
  7989. #line 9980 "configure"
  7990. #include "confdefs.h"
  7991. #include <GL/gl.h>
  7992. int main() {
  7993. glEnd();
  7994. ; return 0; }
  7995. EOF
  7996. if { (eval echo configure:9987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7997. rm -rf conftest*
  7998. echo "$ac_t""found" 1>&6
  7999. OPENGLLIB="$OPENGLLIB -lopengl32 "
  8000. else
  8001. echo "configure: failed program was:" >&5
  8002. cat conftest.$ac_ext >&5
  8003. rm -rf conftest*
  8004. { echo "configure: error: *** Unable to locate OpenGL library." 1>&2; exit 1; }
  8005. fi
  8006. rm -f conftest*
  8007. LIBS=${ac_save_libs}
  8008. LDFLAGS=${ac_save_ldflags}
  8009. ac_save_ldflags="$LDFLAGS"
  8010. ac_save_libs="$LIBS"
  8011. echo $ac_n "checking for GLU library""... $ac_c" 1>&6
  8012. echo "configure:10011: checking for GLU library" >&5
  8013. LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
  8014. LIBS="-lglu32 $OPENGLLIB "
  8015. cat > conftest.$ac_ext <<EOF
  8016. #line 10015 "configure"
  8017. #include "confdefs.h"
  8018. #include <GL/glu.h>
  8019. int main() {
  8020. gluNewQuadric();
  8021. ; return 0; }
  8022. EOF
  8023. if { (eval echo configure:10022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8024. rm -rf conftest*
  8025. echo "$ac_t""found" 1>&6
  8026. OPENGLULIB="$OPENGLULIB -lglu32 "
  8027. else
  8028. echo "configure: failed program was:" >&5
  8029. cat conftest.$ac_ext >&5
  8030. rm -rf conftest*
  8031. { echo "configure: error: *** Unable to locate GLU library." 1>&2; exit 1; }
  8032. fi
  8033. rm -f conftest*
  8034. LIBS=${ac_save_libs}
  8035. LDFLAGS=${ac_save_ldflags}
  8036. CFLAGS="${ac_save_cflags}"
  8037. OPENGLLIB="$OPENGL_LIB_PATH $OPENGLLIB"
  8038. OPENGLULIB="$OPENGL_LIB_PATH $OPENGLULIB"
  8039. cat >> confdefs.h <<\EOF
  8040. #define OPENGL_WINDOWS 1
  8041. EOF
  8042. fi # $OPENGL_WINDOWS
  8043. fi # $USE_OPENGL
  8044. # Done checking OpenGL
  8045. # Enable ODBC option
  8046. echo $ac_n "checking whether to use ODBC""... $ac_c" 1>&6
  8047. echo "configure:10071: checking whether to use ODBC" >&5
  8048. echo "$ac_t"""$with_odbc"" 1>&6
  8049. case "$with_odbc" in
  8050. "no") USE_ODBC= ;;
  8051. "yes") USE_ODBC="1" ;;
  8052. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  8053. esac
  8054. ODBCINC=
  8055. ODBCLIB=
  8056. if test -n "$USE_ODBC"; then
  8057. # With ODBC includes directory
  8058. echo $ac_n "checking for location of ODBC includes""... $ac_c" 1>&6
  8059. echo "configure:10090: checking for location of ODBC includes" >&5
  8060. case "$with_odbc_includes" in
  8061. y | ye | yes | n | no)
  8062. { echo "configure: error: *** You must supply a directory to --with-odbc-includes." 1>&2; exit 1; }
  8063. ;;
  8064. esac
  8065. echo "$ac_t""$with_odbc_includes" 1>&6
  8066. if test -n "$with_odbc_includes" ; then
  8067. for dir in $with_odbc_includes; do
  8068. if test -d "$dir"; then
  8069. ODBCINC="$ODBCINC -I$dir"
  8070. else
  8071. { echo "configure: error: *** ODBC includes directory $dir does not exist." 1>&2; exit 1; }
  8072. fi
  8073. done
  8074. fi
  8075. ac_save_cppflags="$CPPFLAGS"
  8076. CPPFLAGS="$ODBCINC $CPPFLAGS"
  8077. for ac_hdr in sql.h
  8078. do
  8079. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8080. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8081. echo "configure:10116: checking for $ac_hdr" >&5
  8082. cat > conftest.$ac_ext <<EOF
  8083. #line 10119 "configure"
  8084. #include "confdefs.h"
  8085. #include <$ac_hdr>
  8086. EOF
  8087. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8088. { (eval echo configure:10124: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8089. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8090. if test -z "$ac_err"; then
  8091. rm -rf conftest*
  8092. eval "ac_cv_header_$ac_safe=yes"
  8093. else
  8094. echo "$ac_err" >&5
  8095. echo "configure: failed program was:" >&5
  8096. cat conftest.$ac_ext >&5
  8097. rm -rf conftest*
  8098. eval "ac_cv_header_$ac_safe=no"
  8099. fi
  8100. rm -f conftest*
  8101. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8102. echo "$ac_t""yes" 1>&6
  8103. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8104. cat >> confdefs.h <<EOF
  8105. #define $ac_tr_hdr 1
  8106. EOF
  8107. else
  8108. echo "$ac_t""no" 1>&6
  8109. { echo "configure: error: *** Unable to locate ODBC includes." 1>&2; exit 1; }
  8110. fi
  8111. done
  8112. CPPFLAGS=$ac_save_cppflags
  8113. # With ODBC library directory
  8114. echo $ac_n "checking for location of ODBC library""... $ac_c" 1>&6
  8115. echo "configure:10158: checking for location of ODBC library" >&5
  8116. case "$with_odbc_libs" in
  8117. y | ye | yes | n | no)
  8118. { echo "configure: error: *** You must supply a directory to --with-odbc-libs." 1>&2; exit 1; }
  8119. ;;
  8120. esac
  8121. echo "$ac_t""$with_odbc_libs" 1>&6
  8122. if test -n "$with_odbc_libs"; then
  8123. for dir in $with_odbc_libs; do
  8124. if test -d "$dir"; then
  8125. ODBCLIB="$ODBCLIB -L$dir"
  8126. else
  8127. { echo "configure: error: *** ODBC library directory $dir does not exist." 1>&2; exit 1; }
  8128. fi
  8129. done
  8130. fi
  8131. ac_save_ldflags="$LDFLAGS"
  8132. LDFLAGS="$ODBCLIB $LDFLAGS"
  8133. echo $ac_n "checking for SQLConnect in -lodbc""... $ac_c" 1>&6
  8134. echo "configure:10183: checking for SQLConnect in -lodbc" >&5
  8135. ac_lib_var=`echo odbc'_'SQLConnect | sed 'y%./+-%__p_%'`
  8136. ac_save_LIBS="$LIBS"
  8137. LIBS="-lodbc $ICONVLIB $LIBS"
  8138. cat > conftest.$ac_ext <<EOF
  8139. #line 10189 "configure"
  8140. #include "confdefs.h"
  8141. /* Override any gcc2 internal prototype to avoid an error. */
  8142. /* We use char because int might match the return type of a gcc2
  8143. builtin and then its argument prototype would still apply. */
  8144. char SQLConnect();
  8145. int main() {
  8146. SQLConnect()
  8147. ; return 0; }
  8148. EOF
  8149. if { (eval echo configure:10200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8150. rm -rf conftest*
  8151. eval "ac_cv_lib_$ac_lib_var=yes"
  8152. else
  8153. echo "configure: failed program was:" >&5
  8154. cat conftest.$ac_ext >&5
  8155. rm -rf conftest*
  8156. eval "ac_cv_lib_$ac_lib_var=no"
  8157. fi
  8158. rm -f conftest*
  8159. LIBS="$ac_save_LIBS"
  8160. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8161. echo "$ac_t""yes" 1>&6
  8162. ODBCLIB="$ODBCLIB -lodbc "
  8163. else
  8164. echo "$ac_t""no" 1>&6
  8165. LDFLAGS=${ac_save_ldflags}
  8166. ac_save_ldflags="$LDFLAGS"
  8167. LDFLAGS="$ODBCLIB $LDFLAGS"
  8168. echo $ac_n "checking for SQLConnect in -liodbc""... $ac_c" 1>&6
  8169. echo "configure:10225: checking for SQLConnect in -liodbc" >&5
  8170. ac_lib_var=`echo iodbc'_'SQLConnect | sed 'y%./+-%__p_%'`
  8171. ac_save_LIBS="$LIBS"
  8172. LIBS="-liodbc $LIBS"
  8173. cat > conftest.$ac_ext <<EOF
  8174. #line 10231 "configure"
  8175. #include "confdefs.h"
  8176. /* Override any gcc2 internal prototype to avoid an error. */
  8177. /* We use char because int might match the return type of a gcc2
  8178. builtin and then its argument prototype would still apply. */
  8179. char SQLConnect();
  8180. int main() {
  8181. SQLConnect()
  8182. ; return 0; }
  8183. EOF
  8184. if { (eval echo configure:10242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8185. rm -rf conftest*
  8186. eval "ac_cv_lib_$ac_lib_var=yes"
  8187. else
  8188. echo "configure: failed program was:" >&5
  8189. cat conftest.$ac_ext >&5
  8190. rm -rf conftest*
  8191. eval "ac_cv_lib_$ac_lib_var=no"
  8192. fi
  8193. rm -f conftest*
  8194. LIBS="$ac_save_LIBS"
  8195. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8196. echo "$ac_t""yes" 1>&6
  8197. ODBCLIB="$ODBCLIB -liodbc "
  8198. else
  8199. echo "$ac_t""no" 1>&6
  8200. LDFLAGS=${ac_save_ldflags}
  8201. ac_save_cflags="$CFLAGS"
  8202. CFLAGS="$CFLAGS $ODBCINC"
  8203. ac_save_ldflags="$LDFLAGS"
  8204. ac_save_libs="$LIBS"
  8205. echo $ac_n "checking for ODBC library""... $ac_c" 1>&6
  8206. echo "configure:10267: checking for ODBC library" >&5
  8207. LDFLAGS="$ODBCLIB $LDFLAGS"
  8208. LIBS="-lodbc32 "
  8209. cat > conftest.$ac_ext <<EOF
  8210. #line 10271 "configure"
  8211. #include "confdefs.h"
  8212. #include <windows.h>
  8213. #include <sql.h>
  8214. int main() {
  8215. SQLAllocEnv((SQLHENV *)0);
  8216. ; return 0; }
  8217. EOF
  8218. if { (eval echo configure:10279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8219. rm -rf conftest*
  8220. echo "$ac_t""found" 1>&6
  8221. ODBCLIB="$ODBCLIB -lodbc32 "
  8222. else
  8223. echo "configure: failed program was:" >&5
  8224. cat conftest.$ac_ext >&5
  8225. rm -rf conftest*
  8226. { echo "configure: error: *** Unable to locate ODBC library." 1>&2; exit 1; }
  8227. fi
  8228. rm -f conftest*
  8229. LIBS=${ac_save_libs}
  8230. LDFLAGS=${ac_save_ldflags}
  8231. CFLAGS="${ac_save_cflags}"
  8232. fi
  8233. LDFLAGS=${ac_save_ldflags}
  8234. fi
  8235. LDFLAGS=${ac_save_ldflags}
  8236. fi # $USE_ODBC
  8237. # Done checking ODBC
  8238. # Enable FFTW option
  8239. echo $ac_n "checking whether to use FFTW""... $ac_c" 1>&6
  8240. echo "configure:10328: checking whether to use FFTW" >&5
  8241. echo "$ac_t"""$with_fftw"" 1>&6
  8242. case "$with_fftw" in
  8243. "no") USE_FFTW= ;;
  8244. "yes") USE_FFTW="1" ;;
  8245. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  8246. esac
  8247. FFTWINC=
  8248. FFTWLIB=
  8249. if test -n "$USE_FFTW"; then
  8250. # With FFTW includes directory
  8251. echo $ac_n "checking for location of FFTW includes""... $ac_c" 1>&6
  8252. echo "configure:10347: checking for location of FFTW includes" >&5
  8253. case "$with_fftw_includes" in
  8254. y | ye | yes | n | no)
  8255. { echo "configure: error: *** You must supply a directory to --with-fftw-includes." 1>&2; exit 1; }
  8256. ;;
  8257. esac
  8258. echo "$ac_t""$with_fftw_includes" 1>&6
  8259. if test -n "$with_fftw_includes" ; then
  8260. for dir in $with_fftw_includes; do
  8261. if test -d "$dir"; then
  8262. FFTWINC="$FFTWINC -I$dir"
  8263. else
  8264. { echo "configure: error: *** FFTW includes directory $dir does not exist." 1>&2; exit 1; }
  8265. fi
  8266. done
  8267. fi
  8268. ac_save_cppflags="$CPPFLAGS"
  8269. CPPFLAGS="$FFTWINC $CPPFLAGS"
  8270. for ac_hdr in fftw3.h
  8271. do
  8272. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8273. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8274. echo "configure:10373: checking for $ac_hdr" >&5
  8275. cat > conftest.$ac_ext <<EOF
  8276. #line 10376 "configure"
  8277. #include "confdefs.h"
  8278. #include <$ac_hdr>
  8279. EOF
  8280. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8281. { (eval echo configure:10381: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8282. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8283. if test -z "$ac_err"; then
  8284. rm -rf conftest*
  8285. eval "ac_cv_header_$ac_safe=yes"
  8286. else
  8287. echo "$ac_err" >&5
  8288. echo "configure: failed program was:" >&5
  8289. cat conftest.$ac_ext >&5
  8290. rm -rf conftest*
  8291. eval "ac_cv_header_$ac_safe=no"
  8292. fi
  8293. rm -f conftest*
  8294. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8295. echo "$ac_t""yes" 1>&6
  8296. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8297. cat >> confdefs.h <<EOF
  8298. #define $ac_tr_hdr 1
  8299. EOF
  8300. else
  8301. echo "$ac_t""no" 1>&6
  8302. ac_save_cppflags="$CPPFLAGS"
  8303. CPPFLAGS=" $CPPFLAGS"
  8304. for ac_hdr in fftw.h
  8305. do
  8306. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8307. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8308. echo "configure:10409: checking for $ac_hdr" >&5
  8309. cat > conftest.$ac_ext <<EOF
  8310. #line 10412 "configure"
  8311. #include "confdefs.h"
  8312. #include <$ac_hdr>
  8313. EOF
  8314. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8315. { (eval echo configure:10417: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8316. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8317. if test -z "$ac_err"; then
  8318. rm -rf conftest*
  8319. eval "ac_cv_header_$ac_safe=yes"
  8320. else
  8321. echo "$ac_err" >&5
  8322. echo "configure: failed program was:" >&5
  8323. cat conftest.$ac_ext >&5
  8324. rm -rf conftest*
  8325. eval "ac_cv_header_$ac_safe=no"
  8326. fi
  8327. rm -f conftest*
  8328. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8329. echo "$ac_t""yes" 1>&6
  8330. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8331. cat >> confdefs.h <<EOF
  8332. #define $ac_tr_hdr 1
  8333. EOF
  8334. else
  8335. echo "$ac_t""no" 1>&6
  8336. ac_save_cppflags="$CPPFLAGS"
  8337. CPPFLAGS=" $CPPFLAGS"
  8338. for ac_hdr in dfftw.h
  8339. do
  8340. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8341. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8342. echo "configure:10445: checking for $ac_hdr" >&5
  8343. cat > conftest.$ac_ext <<EOF
  8344. #line 10448 "configure"
  8345. #include "confdefs.h"
  8346. #include <$ac_hdr>
  8347. EOF
  8348. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8349. { (eval echo configure:10453: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8350. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8351. if test -z "$ac_err"; then
  8352. rm -rf conftest*
  8353. eval "ac_cv_header_$ac_safe=yes"
  8354. else
  8355. echo "$ac_err" >&5
  8356. echo "configure: failed program was:" >&5
  8357. cat conftest.$ac_ext >&5
  8358. rm -rf conftest*
  8359. eval "ac_cv_header_$ac_safe=no"
  8360. fi
  8361. rm -f conftest*
  8362. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8363. echo "$ac_t""yes" 1>&6
  8364. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8365. cat >> confdefs.h <<EOF
  8366. #define $ac_tr_hdr 1
  8367. EOF
  8368. else
  8369. echo "$ac_t""no" 1>&6
  8370. { echo "configure: error: *** Unable to locate FFTW includes." 1>&2; exit 1; }
  8371. fi
  8372. done
  8373. CPPFLAGS=$ac_save_cppflags
  8374. fi
  8375. done
  8376. CPPFLAGS=$ac_save_cppflags
  8377. fi
  8378. done
  8379. CPPFLAGS=$ac_save_cppflags
  8380. # With FFTW library directory
  8381. echo $ac_n "checking for location of FFTW library""... $ac_c" 1>&6
  8382. echo "configure:10499: checking for location of FFTW library" >&5
  8383. case "$with_fftw_libs" in
  8384. y | ye | yes | n | no)
  8385. { echo "configure: error: *** You must supply a directory to --with-fftw-libs." 1>&2; exit 1; }
  8386. ;;
  8387. esac
  8388. echo "$ac_t""$with_fftw_libs" 1>&6
  8389. if test -n "$with_fftw_libs"; then
  8390. for dir in $with_fftw_libs; do
  8391. if test -d "$dir"; then
  8392. FFTWLIB="$FFTWLIB -L$dir"
  8393. else
  8394. { echo "configure: error: *** FFTW library directory $dir does not exist." 1>&2; exit 1; }
  8395. fi
  8396. done
  8397. fi
  8398. ac_save_ldflags="$LDFLAGS"
  8399. LDFLAGS="$FFTWLIB $LDFLAGS"
  8400. echo $ac_n "checking for fftw_execute in -lfftw3""... $ac_c" 1>&6
  8401. echo "configure:10524: checking for fftw_execute in -lfftw3" >&5
  8402. ac_lib_var=`echo fftw3'_'fftw_execute | sed 'y%./+-%__p_%'`
  8403. ac_save_LIBS="$LIBS"
  8404. LIBS="-lfftw3 $MATHLIB $LIBS"
  8405. cat > conftest.$ac_ext <<EOF
  8406. #line 10530 "configure"
  8407. #include "confdefs.h"
  8408. /* Override any gcc2 internal prototype to avoid an error. */
  8409. /* We use char because int might match the return type of a gcc2
  8410. builtin and then its argument prototype would still apply. */
  8411. char fftw_execute();
  8412. int main() {
  8413. fftw_execute()
  8414. ; return 0; }
  8415. EOF
  8416. if { (eval echo configure:10541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8417. rm -rf conftest*
  8418. eval "ac_cv_lib_$ac_lib_var=yes"
  8419. else
  8420. echo "configure: failed program was:" >&5
  8421. cat conftest.$ac_ext >&5
  8422. rm -rf conftest*
  8423. eval "ac_cv_lib_$ac_lib_var=no"
  8424. fi
  8425. rm -f conftest*
  8426. LIBS="$ac_save_LIBS"
  8427. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8428. echo "$ac_t""yes" 1>&6
  8429. FFTWLIB="$FFTWLIB -lfftw3 $MATHLIB"
  8430. else
  8431. echo "$ac_t""no" 1>&6
  8432. LDFLAGS=${ac_save_ldflags}
  8433. ac_save_ldflags="$LDFLAGS"
  8434. LDFLAGS="$FFTWLIB $LDFLAGS"
  8435. echo $ac_n "checking for fftwnd_one in -lfftw""... $ac_c" 1>&6
  8436. echo "configure:10566: checking for fftwnd_one in -lfftw" >&5
  8437. ac_lib_var=`echo fftw'_'fftwnd_one | sed 'y%./+-%__p_%'`
  8438. ac_save_LIBS="$LIBS"
  8439. LIBS="-lfftw $MATHLIB $LIBS"
  8440. cat > conftest.$ac_ext <<EOF
  8441. #line 10572 "configure"
  8442. #include "confdefs.h"
  8443. /* Override any gcc2 internal prototype to avoid an error. */
  8444. /* We use char because int might match the return type of a gcc2
  8445. builtin and then its argument prototype would still apply. */
  8446. char fftwnd_one();
  8447. int main() {
  8448. fftwnd_one()
  8449. ; return 0; }
  8450. EOF
  8451. if { (eval echo configure:10583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8452. rm -rf conftest*
  8453. eval "ac_cv_lib_$ac_lib_var=yes"
  8454. else
  8455. echo "configure: failed program was:" >&5
  8456. cat conftest.$ac_ext >&5
  8457. rm -rf conftest*
  8458. eval "ac_cv_lib_$ac_lib_var=no"
  8459. fi
  8460. rm -f conftest*
  8461. LIBS="$ac_save_LIBS"
  8462. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8463. echo "$ac_t""yes" 1>&6
  8464. FFTWLIB="$FFTWLIB -lfftw $MATHLIB"
  8465. else
  8466. echo "$ac_t""no" 1>&6
  8467. LDFLAGS=${ac_save_ldflags}
  8468. ac_save_ldflags="$LDFLAGS"
  8469. LDFLAGS="$FFTWLIB $LDFLAGS"
  8470. echo $ac_n "checking for fftwnd_one in -ldfftw""... $ac_c" 1>&6
  8471. echo "configure:10608: checking for fftwnd_one in -ldfftw" >&5
  8472. ac_lib_var=`echo dfftw'_'fftwnd_one | sed 'y%./+-%__p_%'`
  8473. ac_save_LIBS="$LIBS"
  8474. LIBS="-ldfftw $MATHLIB $LIBS"
  8475. cat > conftest.$ac_ext <<EOF
  8476. #line 10614 "configure"
  8477. #include "confdefs.h"
  8478. /* Override any gcc2 internal prototype to avoid an error. */
  8479. /* We use char because int might match the return type of a gcc2
  8480. builtin and then its argument prototype would still apply. */
  8481. char fftwnd_one();
  8482. int main() {
  8483. fftwnd_one()
  8484. ; return 0; }
  8485. EOF
  8486. if { (eval echo configure:10625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8487. rm -rf conftest*
  8488. eval "ac_cv_lib_$ac_lib_var=yes"
  8489. else
  8490. echo "configure: failed program was:" >&5
  8491. cat conftest.$ac_ext >&5
  8492. rm -rf conftest*
  8493. eval "ac_cv_lib_$ac_lib_var=no"
  8494. fi
  8495. rm -f conftest*
  8496. LIBS="$ac_save_LIBS"
  8497. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8498. echo "$ac_t""yes" 1>&6
  8499. FFTWLIB="$FFTWLIB -ldfftw $MATHLIB"
  8500. else
  8501. echo "$ac_t""no" 1>&6
  8502. LDFLAGS=${ac_save_ldflags}
  8503. { echo "configure: error: *** Unable to locate FFTW library." 1>&2; exit 1; }
  8504. fi
  8505. LDFLAGS=${ac_save_ldflags}
  8506. fi
  8507. LDFLAGS=${ac_save_ldflags}
  8508. fi
  8509. LDFLAGS=${ac_save_ldflags}
  8510. fi # $USE_FFTW
  8511. # Done checking FFTW
  8512. # Enable BLAS option
  8513. echo $ac_n "checking whether to use BLAS""... $ac_c" 1>&6
  8514. echo "configure:10682: checking whether to use BLAS" >&5
  8515. echo "$ac_t"""$with_blas"" 1>&6
  8516. case "$with_blas" in
  8517. "no") USE_BLAS= ;;
  8518. "yes") USE_BLAS="1" ;;
  8519. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  8520. esac
  8521. BLASLIB=
  8522. BLASINC=
  8523. if test -n "$USE_BLAS"; then
  8524. # With BLAS includes directory
  8525. # BLAS doesn't have includes (FORTRAN library)
  8526. # With BLAS library directory
  8527. echo $ac_n "checking for location of BLAS includes""... $ac_c" 1>&6
  8528. echo "configure:10703: checking for location of BLAS includes" >&5
  8529. case "$with_blas_includes" in
  8530. y | ye | yes | n | no)
  8531. { echo "configure: error: *** You must supply a directory to --with-blas-includes." 1>&2; exit 1; }
  8532. ;;
  8533. esac
  8534. echo "$ac_t""$with_blas_includes" 1>&6
  8535. if test -n "$with_blas_includes" ; then
  8536. for dir in $with_blas_includes; do
  8537. if test -d "$dir"; then
  8538. BLASINC="$BLASINC -I$dir"
  8539. else
  8540. { echo "configure: error: *** BLAS includes directory $dir does not exist." 1>&2; exit 1; }
  8541. fi
  8542. done
  8543. fi
  8544. echo $ac_n "checking for location of BLAS library""... $ac_c" 1>&6
  8545. echo "configure:10723: checking for location of BLAS library" >&5
  8546. case "$with_blas_libs" in
  8547. y | ye | yes | n | no)
  8548. { echo "configure: error: *** You must supply a directory to --with-blas-libs." 1>&2; exit 1; }
  8549. ;;
  8550. esac
  8551. echo "$ac_t""$with_blas_libs" 1>&6
  8552. if test -n "$with_blas_libs"; then
  8553. for dir in $with_blas_libs; do
  8554. if test -d "$dir"; then
  8555. BLASLIB="$BLASLIB -L$dir"
  8556. else
  8557. { echo "configure: error: *** BLAS library directory $dir does not exist." 1>&2; exit 1; }
  8558. fi
  8559. done
  8560. fi
  8561. # See if cblas.h exists (CBLAS,ATLAS,others)
  8562. save_CPPFLAGS="$CPPFLAGS"
  8563. CPPFLAGS="$BLASINC $CPPFLAGS"
  8564. for ac_hdr in cblas.h
  8565. do
  8566. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8567. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8568. echo "configure:10749: checking for $ac_hdr" >&5
  8569. cat > conftest.$ac_ext <<EOF
  8570. #line 10752 "configure"
  8571. #include "confdefs.h"
  8572. #include <$ac_hdr>
  8573. EOF
  8574. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8575. { (eval echo configure:10757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8576. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8577. if test -z "$ac_err"; then
  8578. rm -rf conftest*
  8579. eval "ac_cv_header_$ac_safe=yes"
  8580. else
  8581. echo "$ac_err" >&5
  8582. echo "configure: failed program was:" >&5
  8583. cat conftest.$ac_ext >&5
  8584. rm -rf conftest*
  8585. eval "ac_cv_header_$ac_safe=no"
  8586. fi
  8587. rm -f conftest*
  8588. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8589. echo "$ac_t""yes" 1>&6
  8590. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8591. cat >> confdefs.h <<EOF
  8592. #define $ac_tr_hdr 1
  8593. EOF
  8594. else
  8595. echo "$ac_t""no" 1>&6
  8596. fi
  8597. done
  8598. CPPFLAGS="$save_CPPFLAGS"
  8599. ac_save_ldflags="$LDFLAGS"
  8600. LDFLAGS="$BLASLIB $LDFLAGS"
  8601. echo $ac_n "checking for dnrm2_ in -lblas""... $ac_c" 1>&6
  8602. echo "configure:10792: checking for dnrm2_ in -lblas" >&5
  8603. ac_lib_var=`echo blas'_'dnrm2_ | sed 'y%./+-%__p_%'`
  8604. ac_save_LIBS="$LIBS"
  8605. LIBS="-lblas $MATHLIB $LIBS"
  8606. cat > conftest.$ac_ext <<EOF
  8607. #line 10798 "configure"
  8608. #include "confdefs.h"
  8609. /* Override any gcc2 internal prototype to avoid an error. */
  8610. /* We use char because int might match the return type of a gcc2
  8611. builtin and then its argument prototype would still apply. */
  8612. char dnrm2_();
  8613. int main() {
  8614. dnrm2_()
  8615. ; return 0; }
  8616. EOF
  8617. if { (eval echo configure:10809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8618. rm -rf conftest*
  8619. eval "ac_cv_lib_$ac_lib_var=yes"
  8620. else
  8621. echo "configure: failed program was:" >&5
  8622. cat conftest.$ac_ext >&5
  8623. rm -rf conftest*
  8624. eval "ac_cv_lib_$ac_lib_var=no"
  8625. fi
  8626. rm -f conftest*
  8627. LIBS="$ac_save_LIBS"
  8628. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8629. echo "$ac_t""yes" 1>&6
  8630. BLASLIB="$BLASLIB -lblas "
  8631. else
  8632. echo "$ac_t""no" 1>&6
  8633. echo $ac_n "checking for dnrm2_ in -lblas""... $ac_c" 1>&6
  8634. echo "configure:10828: checking for dnrm2_ in -lblas" >&5
  8635. ac_lib_var=`echo blas'_'dnrm2_ | sed 'y%./+-%__p_%'`
  8636. ac_save_LIBS="$LIBS"
  8637. LIBS="-lblas $MATHLIB -lg2c $LIBS"
  8638. cat > conftest.$ac_ext <<EOF
  8639. #line 10834 "configure"
  8640. #include "confdefs.h"
  8641. /* Override any gcc2 internal prototype to avoid an error. */
  8642. /* We use char because int might match the return type of a gcc2
  8643. builtin and then its argument prototype would still apply. */
  8644. char dnrm2_();
  8645. int main() {
  8646. dnrm2_()
  8647. ; return 0; }
  8648. EOF
  8649. if { (eval echo configure:10845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8650. rm -rf conftest*
  8651. eval "ac_cv_lib_$ac_lib_var=yes"
  8652. else
  8653. echo "configure: failed program was:" >&5
  8654. cat conftest.$ac_ext >&5
  8655. rm -rf conftest*
  8656. eval "ac_cv_lib_$ac_lib_var=no"
  8657. fi
  8658. rm -f conftest*
  8659. LIBS="$ac_save_LIBS"
  8660. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8661. echo "$ac_t""yes" 1>&6
  8662. BLASLIB="$BLASLIB -lblas -lg2c"
  8663. else
  8664. echo "$ac_t""no" 1>&6
  8665. LDFLAGS=${ac_save_ldflags}
  8666. { echo "configure: error: *** Unable to locate BLAS library." 1>&2; exit 1; }
  8667. fi
  8668. fi
  8669. LDFLAGS=${ac_save_ldflags}
  8670. blas_ok=no
  8671. # Check for ATLAS
  8672. save_LDFLAGS="$LDFLAGS"
  8673. LDFLAGS="$BLASLIB $LDFLAGS"
  8674. echo $ac_n "checking for ATL_xerbla in -latlas""... $ac_c" 1>&6
  8675. echo "configure:10889: checking for ATL_xerbla in -latlas" >&5
  8676. ac_lib_var=`echo atlas'_'ATL_xerbla | sed 'y%./+-%__p_%'`
  8677. ac_save_LIBS="$LIBS"
  8678. LIBS="-latlas $LIBS"
  8679. cat > conftest.$ac_ext <<EOF
  8680. #line 10895 "configure"
  8681. #include "confdefs.h"
  8682. /* Override any gcc2 internal prototype to avoid an error. */
  8683. /* We use char because int might match the return type of a gcc2
  8684. builtin and then its argument prototype would still apply. */
  8685. char ATL_xerbla();
  8686. int main() {
  8687. ATL_xerbla()
  8688. ; return 0; }
  8689. EOF
  8690. if { (eval echo configure:10906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8691. rm -rf conftest*
  8692. eval "ac_cv_lib_$ac_lib_var=yes"
  8693. else
  8694. echo "configure: failed program was:" >&5
  8695. cat conftest.$ac_ext >&5
  8696. rm -rf conftest*
  8697. eval "ac_cv_lib_$ac_lib_var=no"
  8698. fi
  8699. rm -f conftest*
  8700. LIBS="$ac_save_LIBS"
  8701. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8702. echo "$ac_t""yes" 1>&6
  8703. echo $ac_n "checking for sgemm_ in -lf77blas""... $ac_c" 1>&6
  8704. echo "configure:10921: checking for sgemm_ in -lf77blas" >&5
  8705. ac_lib_var=`echo f77blas'_'sgemm_ | sed 'y%./+-%__p_%'`
  8706. ac_save_LIBS="$LIBS"
  8707. LIBS="-lf77blas -latlas $LIBS"
  8708. cat > conftest.$ac_ext <<EOF
  8709. #line 10927 "configure"
  8710. #include "confdefs.h"
  8711. /* Override any gcc2 internal prototype to avoid an error. */
  8712. /* We use char because int might match the return type of a gcc2
  8713. builtin and then its argument prototype would still apply. */
  8714. char sgemm_();
  8715. int main() {
  8716. sgemm_()
  8717. ; return 0; }
  8718. EOF
  8719. if { (eval echo configure:10938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8720. rm -rf conftest*
  8721. eval "ac_cv_lib_$ac_lib_var=yes"
  8722. else
  8723. echo "configure: failed program was:" >&5
  8724. cat conftest.$ac_ext >&5
  8725. rm -rf conftest*
  8726. eval "ac_cv_lib_$ac_lib_var=no"
  8727. fi
  8728. rm -f conftest*
  8729. LIBS="$ac_save_LIBS"
  8730. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8731. echo "$ac_t""yes" 1>&6
  8732. echo $ac_n "checking for cblas_dgemm in -lcblas""... $ac_c" 1>&6
  8733. echo "configure:10953: checking for cblas_dgemm in -lcblas" >&5
  8734. ac_lib_var=`echo cblas'_'cblas_dgemm | sed 'y%./+-%__p_%'`
  8735. ac_save_LIBS="$LIBS"
  8736. LIBS="-lcblas -lf77blas -latlas $LIBS"
  8737. cat > conftest.$ac_ext <<EOF
  8738. #line 10959 "configure"
  8739. #include "confdefs.h"
  8740. /* Override any gcc2 internal prototype to avoid an error. */
  8741. /* We use char because int might match the return type of a gcc2
  8742. builtin and then its argument prototype would still apply. */
  8743. char cblas_dgemm();
  8744. int main() {
  8745. cblas_dgemm()
  8746. ; return 0; }
  8747. EOF
  8748. if { (eval echo configure:10970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8749. rm -rf conftest*
  8750. eval "ac_cv_lib_$ac_lib_var=yes"
  8751. else
  8752. echo "configure: failed program was:" >&5
  8753. cat conftest.$ac_ext >&5
  8754. rm -rf conftest*
  8755. eval "ac_cv_lib_$ac_lib_var=no"
  8756. fi
  8757. rm -f conftest*
  8758. LIBS="$ac_save_LIBS"
  8759. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8760. echo "$ac_t""yes" 1>&6
  8761. blas_ok=yes; BLASLIB="-lcblas -lf77blas -latlas"
  8762. else
  8763. echo "$ac_t""no" 1>&6
  8764. fi
  8765. else
  8766. echo "$ac_t""no" 1>&6
  8767. fi
  8768. else
  8769. echo "$ac_t""no" 1>&6
  8770. fi
  8771. LDFLAGS="$save_LDFLAGS"
  8772. # Do we have ATLAS?
  8773. if test $blas_ok = yes; then
  8774. cat >> confdefs.h <<\EOF
  8775. #define HAVE_LIBATLAS 1
  8776. EOF
  8777. fi
  8778. # BLAS in Apple vecLib framework? (Mac OS-X)
  8779. # not dependent on APP build
  8780. #if test -n "$MACOSX_APP"; then
  8781. if test $blas_ok = no; then
  8782. vlib_flags="-framework vecLib"
  8783. save_LIBS="$LIBS"
  8784. LIBS="$vlib_flags $LIBS"
  8785. echo $ac_n "checking for sgemm in $vlib_flags""... $ac_c" 1>&6
  8786. echo "configure:11016: checking for sgemm in $vlib_flags" >&5
  8787. cat > conftest.$ac_ext <<EOF
  8788. #line 11018 "configure"
  8789. #include "confdefs.h"
  8790. int main() {
  8791. sgemm
  8792. ; return 0; }
  8793. EOF
  8794. if { (eval echo configure:11025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8795. rm -rf conftest*
  8796. blas_ok=yes; BLASLIB="$vlib_flags"
  8797. else
  8798. echo "configure: failed program was:" >&5
  8799. cat conftest.$ac_ext >&5
  8800. rm -rf conftest*
  8801. BLASLIB=""
  8802. fi
  8803. rm -f conftest*
  8804. echo "$ac_t""$blas_ok" 1>&6
  8805. LIBS="$save_LIBS"
  8806. fi
  8807. #fi # $MACOSX_APP
  8808. # BLAS in PhiPACK libraries? (requires generic BLAS, too)
  8809. if test $blas_ok = no; then
  8810. echo $ac_n "checking for sgemm_ in -lblas""... $ac_c" 1>&6
  8811. echo "configure:11043: checking for sgemm_ in -lblas" >&5
  8812. ac_lib_var=`echo blas'_'sgemm_ | sed 'y%./+-%__p_%'`
  8813. ac_save_LIBS="$LIBS"
  8814. LIBS="-lblas $LIBS"
  8815. cat > conftest.$ac_ext <<EOF
  8816. #line 11049 "configure"
  8817. #include "confdefs.h"
  8818. /* Override any gcc2 internal prototype to avoid an error. */
  8819. /* We use char because int might match the return type of a gcc2
  8820. builtin and then its argument prototype would still apply. */
  8821. char sgemm_();
  8822. int main() {
  8823. sgemm_()
  8824. ; return 0; }
  8825. EOF
  8826. if { (eval echo configure:11060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8827. rm -rf conftest*
  8828. eval "ac_cv_lib_$ac_lib_var=yes"
  8829. else
  8830. echo "configure: failed program was:" >&5
  8831. cat conftest.$ac_ext >&5
  8832. rm -rf conftest*
  8833. eval "ac_cv_lib_$ac_lib_var=no"
  8834. fi
  8835. rm -f conftest*
  8836. LIBS="$ac_save_LIBS"
  8837. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8838. echo "$ac_t""yes" 1>&6
  8839. echo $ac_n "checking for dgemm_ in -ldgemm""... $ac_c" 1>&6
  8840. echo "configure:11075: checking for dgemm_ in -ldgemm" >&5
  8841. ac_lib_var=`echo dgemm'_'dgemm_ | sed 'y%./+-%__p_%'`
  8842. ac_save_LIBS="$LIBS"
  8843. LIBS="-ldgemm -lblas $LIBS"
  8844. cat > conftest.$ac_ext <<EOF
  8845. #line 11081 "configure"
  8846. #include "confdefs.h"
  8847. /* Override any gcc2 internal prototype to avoid an error. */
  8848. /* We use char because int might match the return type of a gcc2
  8849. builtin and then its argument prototype would still apply. */
  8850. char dgemm_();
  8851. int main() {
  8852. dgemm_()
  8853. ; return 0; }
  8854. EOF
  8855. if { (eval echo configure:11092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8856. rm -rf conftest*
  8857. eval "ac_cv_lib_$ac_lib_var=yes"
  8858. else
  8859. echo "configure: failed program was:" >&5
  8860. cat conftest.$ac_ext >&5
  8861. rm -rf conftest*
  8862. eval "ac_cv_lib_$ac_lib_var=no"
  8863. fi
  8864. rm -f conftest*
  8865. LIBS="$ac_save_LIBS"
  8866. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8867. echo "$ac_t""yes" 1>&6
  8868. echo $ac_n "checking for sgemm_ in -lsgemm""... $ac_c" 1>&6
  8869. echo "configure:11107: checking for sgemm_ in -lsgemm" >&5
  8870. ac_lib_var=`echo sgemm'_'sgemm_ | sed 'y%./+-%__p_%'`
  8871. ac_save_LIBS="$LIBS"
  8872. LIBS="-lsgemm -lblas $LIBS"
  8873. cat > conftest.$ac_ext <<EOF
  8874. #line 11113 "configure"
  8875. #include "confdefs.h"
  8876. /* Override any gcc2 internal prototype to avoid an error. */
  8877. /* We use char because int might match the return type of a gcc2
  8878. builtin and then its argument prototype would still apply. */
  8879. char sgemm_();
  8880. int main() {
  8881. sgemm_()
  8882. ; return 0; }
  8883. EOF
  8884. if { (eval echo configure:11124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8885. rm -rf conftest*
  8886. eval "ac_cv_lib_$ac_lib_var=yes"
  8887. else
  8888. echo "configure: failed program was:" >&5
  8889. cat conftest.$ac_ext >&5
  8890. rm -rf conftest*
  8891. eval "ac_cv_lib_$ac_lib_var=no"
  8892. fi
  8893. rm -f conftest*
  8894. LIBS="$ac_save_LIBS"
  8895. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8896. echo "$ac_t""yes" 1>&6
  8897. blas_ok=yes; BLASLIB="-lsgemm -ldgemm -lblas"
  8898. else
  8899. echo "$ac_t""no" 1>&6
  8900. fi
  8901. else
  8902. echo "$ac_t""no" 1>&6
  8903. fi
  8904. else
  8905. echo "$ac_t""no" 1>&6
  8906. fi
  8907. fi
  8908. # BLAS in Sun Performance library?
  8909. if test $blas_ok = no; then
  8910. if test "x$GCC" != xyes; then # only works with Sun CC
  8911. echo $ac_n "checking for acosp in -lsunmath""... $ac_c" 1>&6
  8912. echo "configure:11158: checking for acosp in -lsunmath" >&5
  8913. ac_lib_var=`echo sunmath'_'acosp | sed 'y%./+-%__p_%'`
  8914. ac_save_LIBS="$LIBS"
  8915. LIBS="-lsunmath $LIBS"
  8916. cat > conftest.$ac_ext <<EOF
  8917. #line 11164 "configure"
  8918. #include "confdefs.h"
  8919. /* Override any gcc2 internal prototype to avoid an error. */
  8920. /* We use char because int might match the return type of a gcc2
  8921. builtin and then its argument prototype would still apply. */
  8922. char acosp();
  8923. int main() {
  8924. acosp()
  8925. ; return 0; }
  8926. EOF
  8927. if { (eval echo configure:11175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8928. rm -rf conftest*
  8929. eval "ac_cv_lib_$ac_lib_var=yes"
  8930. else
  8931. echo "configure: failed program was:" >&5
  8932. cat conftest.$ac_ext >&5
  8933. rm -rf conftest*
  8934. eval "ac_cv_lib_$ac_lib_var=no"
  8935. fi
  8936. rm -f conftest*
  8937. LIBS="$ac_save_LIBS"
  8938. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8939. echo "$ac_t""yes" 1>&6
  8940. echo $ac_n "checking for sgemm_ in -lsunperf""... $ac_c" 1>&6
  8941. echo "configure:11190: checking for sgemm_ in -lsunperf" >&5
  8942. ac_lib_var=`echo sunperf'_'sgemm_ | sed 'y%./+-%__p_%'`
  8943. ac_save_LIBS="$LIBS"
  8944. LIBS="-lsunperf -lsunmath $LIBS"
  8945. cat > conftest.$ac_ext <<EOF
  8946. #line 11196 "configure"
  8947. #include "confdefs.h"
  8948. /* Override any gcc2 internal prototype to avoid an error. */
  8949. /* We use char because int might match the return type of a gcc2
  8950. builtin and then its argument prototype would still apply. */
  8951. char sgemm_();
  8952. int main() {
  8953. sgemm_()
  8954. ; return 0; }
  8955. EOF
  8956. if { (eval echo configure:11207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8957. rm -rf conftest*
  8958. eval "ac_cv_lib_$ac_lib_var=yes"
  8959. else
  8960. echo "configure: failed program was:" >&5
  8961. cat conftest.$ac_ext >&5
  8962. rm -rf conftest*
  8963. eval "ac_cv_lib_$ac_lib_var=no"
  8964. fi
  8965. rm -f conftest*
  8966. LIBS="$ac_save_LIBS"
  8967. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8968. echo "$ac_t""yes" 1>&6
  8969. blas_ok=yes; BLASLIB="-xlic_lib=sunperf -lsunmath"
  8970. else
  8971. echo "$ac_t""no" 1>&6
  8972. fi
  8973. else
  8974. echo "$ac_t""no" 1>&6
  8975. fi
  8976. fi
  8977. fi
  8978. # Generic BLAS library
  8979. if test $blas_ok = no; then
  8980. echo $ac_n "checking for sgemm_ in -lblas""... $ac_c" 1>&6
  8981. echo "configure:11237: checking for sgemm_ in -lblas" >&5
  8982. ac_lib_var=`echo blas'_'sgemm_ | sed 'y%./+-%__p_%'`
  8983. ac_save_LIBS="$LIBS"
  8984. LIBS="-lblas $LIBS"
  8985. cat > conftest.$ac_ext <<EOF
  8986. #line 11243 "configure"
  8987. #include "confdefs.h"
  8988. /* Override any gcc2 internal prototype to avoid an error. */
  8989. /* We use char because int might match the return type of a gcc2
  8990. builtin and then its argument prototype would still apply. */
  8991. char sgemm_();
  8992. int main() {
  8993. sgemm_()
  8994. ; return 0; }
  8995. EOF
  8996. if { (eval echo configure:11254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8997. rm -rf conftest*
  8998. eval "ac_cv_lib_$ac_lib_var=yes"
  8999. else
  9000. echo "configure: failed program was:" >&5
  9001. cat conftest.$ac_ext >&5
  9002. rm -rf conftest*
  9003. eval "ac_cv_lib_$ac_lib_var=no"
  9004. fi
  9005. rm -f conftest*
  9006. LIBS="$ac_save_LIBS"
  9007. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9008. echo "$ac_t""yes" 1>&6
  9009. blas_ok=yes; BLASLIB="-lblas"
  9010. else
  9011. echo "$ac_t""no" 1>&6
  9012. fi
  9013. fi
  9014. if test $blas_ok = yes; then
  9015. cat >> confdefs.h <<\EOF
  9016. #define HAVE_LIBBLAS 1
  9017. EOF
  9018. fi
  9019. fi # $USE_BLAS
  9020. # Done checking BLAS
  9021. # Enable LAPACK option
  9022. echo $ac_n "checking whether to use LAPACK""... $ac_c" 1>&6
  9023. echo "configure:11293: checking whether to use LAPACK" >&5
  9024. echo "$ac_t"""$with_lapack"" 1>&6
  9025. case "$with_lapack" in
  9026. "no") USE_LAPACK= ;;
  9027. "yes") USE_LAPACK="1" ;;
  9028. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9029. esac
  9030. LAPACKLIB=
  9031. LAPACKINC=
  9032. # LAPACK is useless without BLAS
  9033. if test -n "$USE_BLAS"; then
  9034. if test -n "$USE_LAPACK"; then
  9035. # With LAPACK includes directory
  9036. # LAPACK doesn't have includes (FORTRAN library)
  9037. # With LAPACK library directory
  9038. lapack_ok=no
  9039. echo $ac_n "checking for location of LAPACK includes""... $ac_c" 1>&6
  9040. echo "configure:11318: checking for location of LAPACK includes" >&5
  9041. case "$with_lapack_includes" in
  9042. y | ye | yes | n | no)
  9043. { echo "configure: error: *** You must supply a directory to --with-lapack-includes." 1>&2; exit 1; }
  9044. ;;
  9045. esac
  9046. echo "$ac_t""$with_lapack_includes" 1>&6
  9047. if test -n "$with_lapack_includes" ; then
  9048. for dir in $with_lapack_includes; do
  9049. if test -d "$dir"; then
  9050. LAPACKINC="$LAPACKINC -I$dir"
  9051. else
  9052. { echo "configure: error: *** LAPACK includes directory $dir does not exist." 1>&2; exit 1; }
  9053. fi
  9054. done
  9055. fi
  9056. echo $ac_n "checking for location of LAPACK library""... $ac_c" 1>&6
  9057. echo "configure:11338: checking for location of LAPACK library" >&5
  9058. case "$with_lapack_libs" in
  9059. y | ye | yes | n | no)
  9060. { echo "configure: error: *** You must supply a directory to --with-lapack-libs." 1>&2; exit 1; }
  9061. ;;
  9062. esac
  9063. echo "$ac_t""$with_lapack_libs" 1>&6
  9064. if test -n "$with_lapack_libs"; then
  9065. for dir in $with_lapack_libs; do
  9066. if test -d "$dir"; then
  9067. LAPACKLIB="$LAPACKLIB -L$dir"
  9068. else
  9069. { echo "configure: error: *** LAPACK library directory $dir does not exist." 1>&2; exit 1; }
  9070. fi
  9071. done
  9072. fi
  9073. # See if clapack.h exists (ATLAS)
  9074. save_CPPFLAGS="$CPPFLAGS"
  9075. CPPFLAGS="$LAPACKINC $CPPFLAGS"
  9076. for ac_hdr in clapack.h
  9077. do
  9078. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  9079. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  9080. echo "configure:11364: checking for $ac_hdr" >&5
  9081. cat > conftest.$ac_ext <<EOF
  9082. #line 11367 "configure"
  9083. #include "confdefs.h"
  9084. #include <$ac_hdr>
  9085. EOF
  9086. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9087. { (eval echo configure:11372: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9088. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9089. if test -z "$ac_err"; then
  9090. rm -rf conftest*
  9091. eval "ac_cv_header_$ac_safe=yes"
  9092. else
  9093. echo "$ac_err" >&5
  9094. echo "configure: failed program was:" >&5
  9095. cat conftest.$ac_ext >&5
  9096. rm -rf conftest*
  9097. eval "ac_cv_header_$ac_safe=no"
  9098. fi
  9099. rm -f conftest*
  9100. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  9101. echo "$ac_t""yes" 1>&6
  9102. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  9103. cat >> confdefs.h <<EOF
  9104. #define $ac_tr_hdr 1
  9105. EOF
  9106. else
  9107. echo "$ac_t""no" 1>&6
  9108. fi
  9109. done
  9110. CPPFLAGS="$save_CPPFLAGS"
  9111. # LAPACK linked to by default?
  9112. if test lapack_ok=no; then
  9113. save_LIBS="$LIBS"; LIBS="$LIBS $BLASLIB $MATHLIB $FLIBS"
  9114. save_LDFLAGS="$LDFLAGS"; LDFLAGS="$LAPACKLIB $LDFLAGS"
  9115. echo $ac_n "checking for dsegv_""... $ac_c" 1>&6
  9116. echo "configure:11404: checking for dsegv_" >&5
  9117. cat > conftest.$ac_ext <<EOF
  9118. #line 11407 "configure"
  9119. #include "confdefs.h"
  9120. /* System header to define __stub macros and hopefully few prototypes,
  9121. which can conflict with char dsegv_(); below. */
  9122. #include <assert.h>
  9123. /* Override any gcc2 internal prototype to avoid an error. */
  9124. /* We use char because int might match the return type of a gcc2
  9125. builtin and then its argument prototype would still apply. */
  9126. char dsegv_();
  9127. int main() {
  9128. /* The GNU C library defines this for functions which it implements
  9129. to always fail with ENOSYS. Some functions are actually named
  9130. something starting with __ and the normal name is an alias. */
  9131. #if defined (__stub_dsegv_) || defined (__stub___dsegv_)
  9132. choke me
  9133. #else
  9134. dsegv_();
  9135. #endif
  9136. ; return 0; }
  9137. EOF
  9138. if { (eval echo configure:11430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9139. rm -rf conftest*
  9140. eval "ac_cv_func_dsegv_=yes"
  9141. else
  9142. echo "configure: failed program was:" >&5
  9143. cat conftest.$ac_ext >&5
  9144. rm -rf conftest*
  9145. eval "ac_cv_func_dsegv_=no"
  9146. fi
  9147. rm -f conftest*
  9148. if eval "test \"`echo '$ac_cv_func_'dsegv_`\" = yes"; then
  9149. echo "$ac_t""yes" 1>&6
  9150. lapack_ok=yes
  9151. else
  9152. echo "$ac_t""no" 1>&6
  9153. fi
  9154. LIBS="$save_LIBS"
  9155. LDFLAGS="$save_LDFLAGS"
  9156. fi
  9157. # Generic LAPACK library?
  9158. if test $lapack_ok = no; then
  9159. save_libs="$LIBS"; LIBS="$BLASLIB $MATHLIB $LIBS"
  9160. save_LDFLAGS="$LDFLAGS"; LDFLAGS="$LAPACKLIB $LDFLAGS"
  9161. echo $ac_n "checking for desgv_ in -llapack""... $ac_c" 1>&6
  9162. echo "configure:11457: checking for desgv_ in -llapack" >&5
  9163. ac_lib_var=`echo lapack'_'desgv_ | sed 'y%./+-%__p_%'`
  9164. ac_save_LIBS="$LIBS"
  9165. LIBS="-llapack $FLIBS $LIBS"
  9166. cat > conftest.$ac_ext <<EOF
  9167. #line 11463 "configure"
  9168. #include "confdefs.h"
  9169. /* Override any gcc2 internal prototype to avoid an error. */
  9170. /* We use char because int might match the return type of a gcc2
  9171. builtin and then its argument prototype would still apply. */
  9172. char desgv_();
  9173. int main() {
  9174. desgv_()
  9175. ; return 0; }
  9176. EOF
  9177. if { (eval echo configure:11474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9178. rm -rf conftest*
  9179. eval "ac_cv_lib_$ac_lib_var=yes"
  9180. else
  9181. echo "configure: failed program was:" >&5
  9182. cat conftest.$ac_ext >&5
  9183. rm -rf conftest*
  9184. eval "ac_cv_lib_$ac_lib_var=no"
  9185. fi
  9186. rm -f conftest*
  9187. LIBS="$ac_save_LIBS"
  9188. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9189. echo "$ac_t""yes" 1>&6
  9190. lapack_ok=yes; LAPACKLIB="-llapack"
  9191. else
  9192. echo "$ac_t""no" 1>&6
  9193. fi
  9194. LIBS="$save_LIBS"
  9195. LDFLAGS="$save_LDFLAGS"
  9196. fi
  9197. if test $lapack_ok = no; then
  9198. ac_save_ldflags="$LDFLAGS"
  9199. LDFLAGS="$LAPACKLIB $LDFLAGS"
  9200. echo $ac_n "checking for dgesv_ in -llapack""... $ac_c" 1>&6
  9201. echo "configure:11506: checking for dgesv_ in -llapack" >&5
  9202. ac_lib_var=`echo lapack'_'dgesv_ | sed 'y%./+-%__p_%'`
  9203. ac_save_LIBS="$LIBS"
  9204. LIBS="-llapack $BLASLIB $MATHLIB $LIBS"
  9205. cat > conftest.$ac_ext <<EOF
  9206. #line 11512 "configure"
  9207. #include "confdefs.h"
  9208. /* Override any gcc2 internal prototype to avoid an error. */
  9209. /* We use char because int might match the return type of a gcc2
  9210. builtin and then its argument prototype would still apply. */
  9211. char dgesv_();
  9212. int main() {
  9213. dgesv_()
  9214. ; return 0; }
  9215. EOF
  9216. if { (eval echo configure:11523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9217. rm -rf conftest*
  9218. eval "ac_cv_lib_$ac_lib_var=yes"
  9219. else
  9220. echo "configure: failed program was:" >&5
  9221. cat conftest.$ac_ext >&5
  9222. rm -rf conftest*
  9223. eval "ac_cv_lib_$ac_lib_var=no"
  9224. fi
  9225. rm -f conftest*
  9226. LIBS="$ac_save_LIBS"
  9227. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9228. echo "$ac_t""yes" 1>&6
  9229. LAPACKLIB="$LAPACKLIB -llapack "
  9230. else
  9231. echo "$ac_t""no" 1>&6
  9232. echo $ac_n "checking for dgesv_ in -llapack""... $ac_c" 1>&6
  9233. echo "configure:11542: checking for dgesv_ in -llapack" >&5
  9234. ac_lib_var=`echo lapack'_'dgesv_ | sed 'y%./+-%__p_%'`
  9235. ac_save_LIBS="$LIBS"
  9236. LIBS="-llapack $BLASLIB $MATHLIB -lg2c $LIBS"
  9237. cat > conftest.$ac_ext <<EOF
  9238. #line 11548 "configure"
  9239. #include "confdefs.h"
  9240. /* Override any gcc2 internal prototype to avoid an error. */
  9241. /* We use char because int might match the return type of a gcc2
  9242. builtin and then its argument prototype would still apply. */
  9243. char dgesv_();
  9244. int main() {
  9245. dgesv_()
  9246. ; return 0; }
  9247. EOF
  9248. if { (eval echo configure:11559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9249. rm -rf conftest*
  9250. eval "ac_cv_lib_$ac_lib_var=yes"
  9251. else
  9252. echo "configure: failed program was:" >&5
  9253. cat conftest.$ac_ext >&5
  9254. rm -rf conftest*
  9255. eval "ac_cv_lib_$ac_lib_var=no"
  9256. fi
  9257. rm -f conftest*
  9258. LIBS="$ac_save_LIBS"
  9259. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9260. echo "$ac_t""yes" 1>&6
  9261. LAPACKLIB="$LAPACKLIB -llapack -lg2c"
  9262. else
  9263. echo "$ac_t""no" 1>&6
  9264. LDFLAGS=${ac_save_ldflags}
  9265. { echo "configure: error: *** Unable to locate LAPACK library." 1>&2; exit 1; }
  9266. fi
  9267. fi
  9268. LDFLAGS=${ac_save_ldflags}
  9269. fi
  9270. cat >> confdefs.h <<\EOF
  9271. #define HAVE_LIBLAPACK 1
  9272. EOF
  9273. fi # $USE_LAPACK
  9274. fi # $USE_BLAS
  9275. # Done checking LAPACK
  9276. # Enable Cairo display driver option
  9277. echo $ac_n "checking whether to use Cairo""... $ac_c" 1>&6
  9278. echo "configure:11615: checking whether to use Cairo" >&5
  9279. echo "$ac_t"""$with_cairo"" 1>&6
  9280. case "$with_cairo" in
  9281. "no") USE_CAIRO= ;;
  9282. "yes") USE_CAIRO="1" ;;
  9283. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9284. esac
  9285. CAIROINC=
  9286. CAIROLIB=
  9287. if test -n "$USE_CAIRO"; then
  9288. cairo="cairo"
  9289. pkgs="cairo-ft cairo-fc cairo-pdf cairo-ps cairo-svg fontconfig"
  9290. if test -n "$USE_X11"; then
  9291. pkgs="$pkgs cairo-xlib cairo-xlib-xrender"
  9292. fi
  9293. for pkg in $pkgs ; do
  9294. if pkg-config --exists $pkg ; then
  9295. cairo="$cairo $pkg"
  9296. fi
  9297. done
  9298. # With Cairo includes directory
  9299. #FIXME: somehow quote dirs with spaces in $cairo ?
  9300. CAIROINC=`pkg-config --cflags $cairo`
  9301. echo $ac_n "checking for location of cairo includes""... $ac_c" 1>&6
  9302. echo "configure:11647: checking for location of cairo includes" >&5
  9303. case "$with_cairo_includes" in
  9304. y | ye | yes | n | no)
  9305. { echo "configure: error: *** You must supply a directory to --with-cairo-includes." 1>&2; exit 1; }
  9306. ;;
  9307. esac
  9308. echo "$ac_t""$with_cairo_includes" 1>&6
  9309. if test -n "$with_cairo_includes" ; then
  9310. for dir in $with_cairo_includes; do
  9311. if test -d "$dir"; then
  9312. CAIROINC="$CAIROINC -I$dir"
  9313. else
  9314. { echo "configure: error: *** cairo includes directory $dir does not exist." 1>&2; exit 1; }
  9315. fi
  9316. done
  9317. fi
  9318. ac_save_cppflags="$CPPFLAGS"
  9319. CPPFLAGS="$CAIROINC $CPPFLAGS"
  9320. for ac_hdr in cairo.h
  9321. do
  9322. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  9323. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  9324. echo "configure:11673: checking for $ac_hdr" >&5
  9325. cat > conftest.$ac_ext <<EOF
  9326. #line 11676 "configure"
  9327. #include "confdefs.h"
  9328. #include <$ac_hdr>
  9329. EOF
  9330. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9331. { (eval echo configure:11681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9332. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9333. if test -z "$ac_err"; then
  9334. rm -rf conftest*
  9335. eval "ac_cv_header_$ac_safe=yes"
  9336. else
  9337. echo "$ac_err" >&5
  9338. echo "configure: failed program was:" >&5
  9339. cat conftest.$ac_ext >&5
  9340. rm -rf conftest*
  9341. eval "ac_cv_header_$ac_safe=no"
  9342. fi
  9343. rm -f conftest*
  9344. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  9345. echo "$ac_t""yes" 1>&6
  9346. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  9347. cat >> confdefs.h <<EOF
  9348. #define $ac_tr_hdr 1
  9349. EOF
  9350. else
  9351. echo "$ac_t""no" 1>&6
  9352. { echo "configure: error: *** Unable to locate Cairo includes." 1>&2; exit 1; }
  9353. fi
  9354. done
  9355. CPPFLAGS=$ac_save_cppflags
  9356. # With Cairo library directory
  9357. CAIROLIB=`pkg-config --libs $cairo`
  9358. echo $ac_n "checking for location of cairo library""... $ac_c" 1>&6
  9359. echo "configure:11717: checking for location of cairo library" >&5
  9360. case "$with_cairo_libs" in
  9361. y | ye | yes | n | no)
  9362. { echo "configure: error: *** You must supply a directory to --with-cairo-libs." 1>&2; exit 1; }
  9363. ;;
  9364. esac
  9365. echo "$ac_t""$with_cairo_libs" 1>&6
  9366. if test -n "$with_cairo_libs"; then
  9367. for dir in $with_cairo_libs; do
  9368. if test -d "$dir"; then
  9369. CAIROLIB="$CAIROLIB -L$dir"
  9370. else
  9371. { echo "configure: error: *** cairo library directory $dir does not exist." 1>&2; exit 1; }
  9372. fi
  9373. done
  9374. fi
  9375. echo $ac_n "checking for cairo linking flags""... $ac_c" 1>&6
  9376. echo "configure:11737: checking for cairo linking flags" >&5
  9377. case "$with_cairo_ldflags" in
  9378. y | ye | yes | n | no)
  9379. { echo "configure: error: *** You must supply a directory to --with-cairo-ldflags." 1>&2; exit 1; }
  9380. ;;
  9381. esac
  9382. echo "$ac_t""$with_cairo_ldflags" 1>&6
  9383. CAIROLIB="$CAIROLIB $with_cairo_ldflags"
  9384. ac_save_libs="$LIBS"
  9385. ac_save_ldflags="$LDFLAGS"
  9386. LIBS=" $CAIROLIB $LIBS"
  9387. LDFLAGS=" $LDFLAGS"
  9388. echo $ac_n "checking for cairo_create""... $ac_c" 1>&6
  9389. echo "configure:11753: checking for cairo_create" >&5
  9390. cat > conftest.$ac_ext <<EOF
  9391. #line 11756 "configure"
  9392. #include "confdefs.h"
  9393. /* System header to define __stub macros and hopefully few prototypes,
  9394. which can conflict with char cairo_create(); below. */
  9395. #include <assert.h>
  9396. /* Override any gcc2 internal prototype to avoid an error. */
  9397. /* We use char because int might match the return type of a gcc2
  9398. builtin and then its argument prototype would still apply. */
  9399. char cairo_create();
  9400. int main() {
  9401. /* The GNU C library defines this for functions which it implements
  9402. to always fail with ENOSYS. Some functions are actually named
  9403. something starting with __ and the normal name is an alias. */
  9404. #if defined (__stub_cairo_create) || defined (__stub___cairo_create)
  9405. choke me
  9406. #else
  9407. cairo_create();
  9408. #endif
  9409. ; return 0; }
  9410. EOF
  9411. if { (eval echo configure:11779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9412. rm -rf conftest*
  9413. eval "ac_cv_func_cairo_create=yes"
  9414. else
  9415. echo "configure: failed program was:" >&5
  9416. cat conftest.$ac_ext >&5
  9417. rm -rf conftest*
  9418. eval "ac_cv_func_cairo_create=no"
  9419. fi
  9420. rm -f conftest*
  9421. if eval "test \"`echo '$ac_cv_func_'cairo_create`\" = yes"; then
  9422. echo "$ac_t""yes" 1>&6
  9423. :
  9424. else
  9425. echo "$ac_t""no" 1>&6
  9426. { echo "configure: error: *** Unable to locate cairo_create." 1>&2; exit 1; }
  9427. fi
  9428. LIBS=${ac_save_libs}
  9429. LDFLAGS=${ac_save_ldflags}
  9430. ac_save_libs="$LIBS"
  9431. ac_save_ldflags="$LDFLAGS"
  9432. LIBS=" $CAIROLIB $LIBS"
  9433. LDFLAGS=" $LDFLAGS"
  9434. echo $ac_n "checking for cairo_xlib_surface_create_with_xrender_format""... $ac_c" 1>&6
  9435. echo "configure:11813: checking for cairo_xlib_surface_create_with_xrender_format" >&5
  9436. cat > conftest.$ac_ext <<EOF
  9437. #line 11816 "configure"
  9438. #include "confdefs.h"
  9439. /* System header to define __stub macros and hopefully few prototypes,
  9440. which can conflict with char cairo_xlib_surface_create_with_xrender_format(); below. */
  9441. #include <assert.h>
  9442. /* Override any gcc2 internal prototype to avoid an error. */
  9443. /* We use char because int might match the return type of a gcc2
  9444. builtin and then its argument prototype would still apply. */
  9445. char cairo_xlib_surface_create_with_xrender_format();
  9446. int main() {
  9447. /* The GNU C library defines this for functions which it implements
  9448. to always fail with ENOSYS. Some functions are actually named
  9449. something starting with __ and the normal name is an alias. */
  9450. #if defined (__stub_cairo_xlib_surface_create_with_xrender_format) || defined (__stub___cairo_xlib_surface_create_with_xrender_format)
  9451. choke me
  9452. #else
  9453. cairo_xlib_surface_create_with_xrender_format();
  9454. #endif
  9455. ; return 0; }
  9456. EOF
  9457. if { (eval echo configure:11839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9458. rm -rf conftest*
  9459. eval "ac_cv_func_cairo_xlib_surface_create_with_xrender_format=yes"
  9460. else
  9461. echo "configure: failed program was:" >&5
  9462. cat conftest.$ac_ext >&5
  9463. rm -rf conftest*
  9464. eval "ac_cv_func_cairo_xlib_surface_create_with_xrender_format=no"
  9465. fi
  9466. rm -f conftest*
  9467. if eval "test \"`echo '$ac_cv_func_'cairo_xlib_surface_create_with_xrender_format`\" = yes"; then
  9468. echo "$ac_t""yes" 1>&6
  9469. CAIRO_HAS_XRENDER=1
  9470. else
  9471. echo "$ac_t""no" 1>&6
  9472. CAIRO_HAS_XRENDER=
  9473. fi
  9474. LIBS=${ac_save_libs}
  9475. LDFLAGS=${ac_save_ldflags}
  9476. ac_save_libs="$LIBS"
  9477. ac_save_ldflags="$LDFLAGS"
  9478. LIBS=" $CAIROLIB $LIBS"
  9479. LDFLAGS=" $LDFLAGS"
  9480. echo $ac_n "checking for cairo_xlib_surface_get_xrender_format""... $ac_c" 1>&6
  9481. echo "configure:11872: checking for cairo_xlib_surface_get_xrender_format" >&5
  9482. cat > conftest.$ac_ext <<EOF
  9483. #line 11875 "configure"
  9484. #include "confdefs.h"
  9485. /* System header to define __stub macros and hopefully few prototypes,
  9486. which can conflict with char cairo_xlib_surface_get_xrender_format(); below. */
  9487. #include <assert.h>
  9488. /* Override any gcc2 internal prototype to avoid an error. */
  9489. /* We use char because int might match the return type of a gcc2
  9490. builtin and then its argument prototype would still apply. */
  9491. char cairo_xlib_surface_get_xrender_format();
  9492. int main() {
  9493. /* The GNU C library defines this for functions which it implements
  9494. to always fail with ENOSYS. Some functions are actually named
  9495. something starting with __ and the normal name is an alias. */
  9496. #if defined (__stub_cairo_xlib_surface_get_xrender_format) || defined (__stub___cairo_xlib_surface_get_xrender_format)
  9497. choke me
  9498. #else
  9499. cairo_xlib_surface_get_xrender_format();
  9500. #endif
  9501. ; return 0; }
  9502. EOF
  9503. if { (eval echo configure:11898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9504. rm -rf conftest*
  9505. eval "ac_cv_func_cairo_xlib_surface_get_xrender_format=yes"
  9506. else
  9507. echo "configure: failed program was:" >&5
  9508. cat conftest.$ac_ext >&5
  9509. rm -rf conftest*
  9510. eval "ac_cv_func_cairo_xlib_surface_get_xrender_format=no"
  9511. fi
  9512. rm -f conftest*
  9513. if eval "test \"`echo '$ac_cv_func_'cairo_xlib_surface_get_xrender_format`\" = yes"; then
  9514. echo "$ac_t""yes" 1>&6
  9515. CAIRO_HAS_XRENDER_SURFACE=1
  9516. else
  9517. echo "$ac_t""no" 1>&6
  9518. CAIRO_HAS_XRENDER_SURFACE=
  9519. fi
  9520. LIBS=${ac_save_libs}
  9521. LDFLAGS=${ac_save_ldflags}
  9522. CAIROLIB="$CAIROLIB $CAIROLDFLAGS"
  9523. fi # $USE_CAIRO
  9524. # Done checking Cairo
  9525. # Enable FreeType option
  9526. echo $ac_n "checking whether to use FreeType""... $ac_c" 1>&6
  9527. echo "configure:11940: checking whether to use FreeType" >&5
  9528. echo "$ac_t"""$with_freetype"" 1>&6
  9529. case "$with_freetype" in
  9530. "no") USE_FREETYPE= ;;
  9531. "yes") USE_FREETYPE="1" ;;
  9532. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9533. esac
  9534. FTINC=
  9535. FTLIB=
  9536. if test -n "$USE_FREETYPE"; then
  9537. # With FreeType includes directory
  9538. echo $ac_n "checking for location of FreeType includes""... $ac_c" 1>&6
  9539. echo "configure:11959: checking for location of FreeType includes" >&5
  9540. case "$with_freetype_includes" in
  9541. y | ye | yes | n | no)
  9542. { echo "configure: error: *** You must supply a directory to --with-freetype-includes." 1>&2; exit 1; }
  9543. ;;
  9544. esac
  9545. echo "$ac_t""$with_freetype_includes" 1>&6
  9546. if test -n "$with_freetype_includes" ; then
  9547. for dir in $with_freetype_includes; do
  9548. if test -d "$dir"; then
  9549. FTINC="$FTINC -I$dir"
  9550. else
  9551. { echo "configure: error: *** FreeType includes directory $dir does not exist." 1>&2; exit 1; }
  9552. fi
  9553. done
  9554. fi
  9555. ac_save_cppflags="$CPPFLAGS"
  9556. CPPFLAGS="$FTINC $CPPFLAGS"
  9557. for ac_hdr in ft2build.h
  9558. do
  9559. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  9560. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  9561. echo "configure:11985: checking for $ac_hdr" >&5
  9562. cat > conftest.$ac_ext <<EOF
  9563. #line 11988 "configure"
  9564. #include "confdefs.h"
  9565. #include <$ac_hdr>
  9566. EOF
  9567. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9568. { (eval echo configure:11993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9569. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9570. if test -z "$ac_err"; then
  9571. rm -rf conftest*
  9572. eval "ac_cv_header_$ac_safe=yes"
  9573. else
  9574. echo "$ac_err" >&5
  9575. echo "configure: failed program was:" >&5
  9576. cat conftest.$ac_ext >&5
  9577. rm -rf conftest*
  9578. eval "ac_cv_header_$ac_safe=no"
  9579. fi
  9580. rm -f conftest*
  9581. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  9582. echo "$ac_t""yes" 1>&6
  9583. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  9584. cat >> confdefs.h <<EOF
  9585. #define $ac_tr_hdr 1
  9586. EOF
  9587. else
  9588. echo "$ac_t""no" 1>&6
  9589. { echo "configure: error: *** Unable to locate FreeType includes." 1>&2; exit 1; }
  9590. fi
  9591. done
  9592. CPPFLAGS=$ac_save_cppflags
  9593. # With FreeType library directory
  9594. echo $ac_n "checking for location of FreeType library""... $ac_c" 1>&6
  9595. echo "configure:12027: checking for location of FreeType library" >&5
  9596. case "$with_freetype_libs" in
  9597. y | ye | yes | n | no)
  9598. { echo "configure: error: *** You must supply a directory to --with-freetype-libs." 1>&2; exit 1; }
  9599. ;;
  9600. esac
  9601. echo "$ac_t""$with_freetype_libs" 1>&6
  9602. if test -n "$with_freetype_libs"; then
  9603. for dir in $with_freetype_libs; do
  9604. if test -d "$dir"; then
  9605. FTLIB="$FTLIB -L$dir"
  9606. else
  9607. { echo "configure: error: *** FreeType library directory $dir does not exist." 1>&2; exit 1; }
  9608. fi
  9609. done
  9610. fi
  9611. ac_save_ldflags="$LDFLAGS"
  9612. LDFLAGS="$FTLIB $LDFLAGS"
  9613. echo $ac_n "checking for FT_Init_FreeType in -lfreetype""... $ac_c" 1>&6
  9614. echo "configure:12052: checking for FT_Init_FreeType in -lfreetype" >&5
  9615. ac_lib_var=`echo freetype'_'FT_Init_FreeType | sed 'y%./+-%__p_%'`
  9616. ac_save_LIBS="$LIBS"
  9617. LIBS="-lfreetype $LIBS"
  9618. cat > conftest.$ac_ext <<EOF
  9619. #line 12058 "configure"
  9620. #include "confdefs.h"
  9621. /* Override any gcc2 internal prototype to avoid an error. */
  9622. /* We use char because int might match the return type of a gcc2
  9623. builtin and then its argument prototype would still apply. */
  9624. char FT_Init_FreeType();
  9625. int main() {
  9626. FT_Init_FreeType()
  9627. ; return 0; }
  9628. EOF
  9629. if { (eval echo configure:12069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9630. rm -rf conftest*
  9631. eval "ac_cv_lib_$ac_lib_var=yes"
  9632. else
  9633. echo "configure: failed program was:" >&5
  9634. cat conftest.$ac_ext >&5
  9635. rm -rf conftest*
  9636. eval "ac_cv_lib_$ac_lib_var=no"
  9637. fi
  9638. rm -f conftest*
  9639. LIBS="$ac_save_LIBS"
  9640. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9641. echo "$ac_t""yes" 1>&6
  9642. FTLIB="$FTLIB -lfreetype "
  9643. else
  9644. echo "$ac_t""no" 1>&6
  9645. LDFLAGS=${ac_save_ldflags}
  9646. { echo "configure: error: *** Unable to locate FreeType library." 1>&2; exit 1; }
  9647. fi
  9648. LDFLAGS=${ac_save_ldflags}
  9649. fi # $USE_FREETYPE
  9650. # Done checking FreeType
  9651. # Enable NLS option
  9652. echo $ac_n "checking whether to use NLS""... $ac_c" 1>&6
  9653. echo "configure:12110: checking whether to use NLS" >&5
  9654. echo "$ac_t"""$with_nls"" 1>&6
  9655. case "$with_nls" in
  9656. "no") USE_NLS= ;;
  9657. "yes") USE_NLS="1" ;;
  9658. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9659. esac
  9660. INTLLIB=
  9661. HAVE_NLS=
  9662. if test -n "${USE_NLS}" ; then
  9663. cat >> confdefs.h <<\EOF
  9664. #define USE_NLS 1
  9665. EOF
  9666. echo $ac_n "checking for gettext""... $ac_c" 1>&6
  9667. echo "configure:12130: checking for gettext" >&5
  9668. cat > conftest.$ac_ext <<EOF
  9669. #line 12133 "configure"
  9670. #include "confdefs.h"
  9671. /* System header to define __stub macros and hopefully few prototypes,
  9672. which can conflict with char gettext(); below. */
  9673. #include <assert.h>
  9674. /* Override any gcc2 internal prototype to avoid an error. */
  9675. /* We use char because int might match the return type of a gcc2
  9676. builtin and then its argument prototype would still apply. */
  9677. char gettext();
  9678. int main() {
  9679. /* The GNU C library defines this for functions which it implements
  9680. to always fail with ENOSYS. Some functions are actually named
  9681. something starting with __ and the normal name is an alias. */
  9682. #if defined (__stub_gettext) || defined (__stub___gettext)
  9683. choke me
  9684. #else
  9685. gettext();
  9686. #endif
  9687. ; return 0; }
  9688. EOF
  9689. if { (eval echo configure:12156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9690. rm -rf conftest*
  9691. eval "ac_cv_func_gettext=yes"
  9692. else
  9693. echo "configure: failed program was:" >&5
  9694. cat conftest.$ac_ext >&5
  9695. rm -rf conftest*
  9696. eval "ac_cv_func_gettext=no"
  9697. fi
  9698. rm -f conftest*
  9699. if eval "test \"`echo '$ac_cv_func_'gettext`\" = yes"; then
  9700. echo "$ac_t""yes" 1>&6
  9701. INTLLIB=
  9702. else
  9703. echo "$ac_t""no" 1>&6
  9704. echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
  9705. echo "configure:12174: checking for gettext in -lintl" >&5
  9706. ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
  9707. ac_save_LIBS="$LIBS"
  9708. LIBS="-lintl $LIBS"
  9709. cat > conftest.$ac_ext <<EOF
  9710. #line 12180 "configure"
  9711. #include "confdefs.h"
  9712. /* Override any gcc2 internal prototype to avoid an error. */
  9713. /* We use char because int might match the return type of a gcc2
  9714. builtin and then its argument prototype would still apply. */
  9715. char gettext();
  9716. int main() {
  9717. gettext()
  9718. ; return 0; }
  9719. EOF
  9720. if { (eval echo configure:12191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9721. rm -rf conftest*
  9722. eval "ac_cv_lib_$ac_lib_var=yes"
  9723. else
  9724. echo "configure: failed program was:" >&5
  9725. cat conftest.$ac_ext >&5
  9726. rm -rf conftest*
  9727. eval "ac_cv_lib_$ac_lib_var=no"
  9728. fi
  9729. rm -f conftest*
  9730. LIBS="$ac_save_LIBS"
  9731. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9732. echo "$ac_t""yes" 1>&6
  9733. INTLLIB=-lintl
  9734. else
  9735. echo "$ac_t""no" 1>&6
  9736. { echo "configure: error: *** Unable to locate gettext() function." 1>&2; exit 1; }
  9737. fi
  9738. fi
  9739. HAVE_NLS=1
  9740. fi
  9741. # Enable C++ option
  9742. echo $ac_n "checking whether to use C++""... $ac_c" 1>&6
  9743. echo "configure:12226: checking whether to use C++" >&5
  9744. echo "$ac_t"""$with_cxx"" 1>&6
  9745. case "$with_cxx" in
  9746. "no") USE_CXX= ;;
  9747. "yes") USE_CXX="1" ;;
  9748. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9749. esac
  9750. if test -n "$USE_CXX"; then
  9751. for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
  9752. do
  9753. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9754. set dummy $ac_prog; ac_word=$2
  9755. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  9756. echo "configure:12242: checking for $ac_word" >&5
  9757. if test -n "$CXX"; then
  9758. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  9759. else
  9760. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  9761. ac_dummy="$PATH"
  9762. for ac_dir in $ac_dummy; do
  9763. test -z "$ac_dir" && ac_dir=.
  9764. if test -f $ac_dir/$ac_word; then
  9765. ac_cv_prog_CXX="$ac_prog"
  9766. break
  9767. fi
  9768. done
  9769. IFS="$ac_save_ifs"
  9770. fi
  9771. CXX="$ac_cv_prog_CXX"
  9772. if test -n "$CXX"; then
  9773. echo "$ac_t""$CXX" 1>&6
  9774. else
  9775. echo "$ac_t""no" 1>&6
  9776. fi
  9777. test -n "$CXX" && break
  9778. done
  9779. test -n "$CXX" || CXX="gcc"
  9780. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  9781. echo "configure:12271: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
  9782. ac_ext=C
  9783. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  9784. ac_cpp='$CXXCPP $CPPFLAGS'
  9785. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  9786. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  9787. cross_compiling=$ac_cv_prog_cxx_cross
  9788. cat > conftest.$ac_ext << EOF
  9789. #line 12282 "configure"
  9790. #include "confdefs.h"
  9791. int main(){return(0);}
  9792. EOF
  9793. if { (eval echo configure:12287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9794. ac_cv_prog_cxx_works=yes
  9795. # If we can't run a trivial program, we are probably using a cross compiler.
  9796. if (./conftest; exit) 2>/dev/null; then
  9797. ac_cv_prog_cxx_cross=no
  9798. else
  9799. ac_cv_prog_cxx_cross=yes
  9800. fi
  9801. else
  9802. echo "configure: failed program was:" >&5
  9803. cat conftest.$ac_ext >&5
  9804. ac_cv_prog_cxx_works=no
  9805. fi
  9806. rm -fr conftest*
  9807. ac_ext=c
  9808. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  9809. ac_cpp='$CPP $CPPFLAGS'
  9810. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  9811. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  9812. cross_compiling=$ac_cv_prog_cc_cross
  9813. echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
  9814. if test $ac_cv_prog_cxx_works = no; then
  9815. { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
  9816. fi
  9817. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  9818. echo "configure:12313: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
  9819. echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
  9820. cross_compiling=$ac_cv_prog_cxx_cross
  9821. echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
  9822. echo "configure:12318: checking whether we are using GNU C++" >&5
  9823. cat > conftest.C <<EOF
  9824. #ifdef __GNUC__
  9825. yes;
  9826. #endif
  9827. EOF
  9828. if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:12325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  9829. ac_cv_prog_gxx=yes
  9830. else
  9831. ac_cv_prog_gxx=no
  9832. fi
  9833. echo "$ac_t""$ac_cv_prog_gxx" 1>&6
  9834. if test $ac_cv_prog_gxx = yes; then
  9835. GXX=yes
  9836. else
  9837. GXX=
  9838. fi
  9839. ac_test_CXXFLAGS="${CXXFLAGS+set}"
  9840. ac_save_CXXFLAGS="$CXXFLAGS"
  9841. CXXFLAGS=
  9842. echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
  9843. echo "configure:12343: checking whether ${CXX-g++} accepts -g" >&5
  9844. echo 'void f(){}' > conftest.cc
  9845. if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
  9846. ac_cv_prog_cxx_g=yes
  9847. else
  9848. ac_cv_prog_cxx_g=no
  9849. fi
  9850. rm -f conftest*
  9851. echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
  9852. if test "$ac_test_CXXFLAGS" = set; then
  9853. CXXFLAGS="$ac_save_CXXFLAGS"
  9854. elif test $ac_cv_prog_cxx_g = yes; then
  9855. if test "$GXX" = yes; then
  9856. CXXFLAGS="-g -O2"
  9857. else
  9858. CXXFLAGS="-g"
  9859. fi
  9860. else
  9861. if test "$GXX" = yes; then
  9862. CXXFLAGS="-O2"
  9863. else
  9864. CXXFLAGS=
  9865. fi
  9866. fi
  9867. else
  9868. CXX=
  9869. CXXFLAGS=
  9870. fi
  9871. # Done checking C++
  9872. # Enable openDWG option
  9873. echo $ac_n "checking whether to use openDWG""... $ac_c" 1>&6
  9874. echo "configure:12384: checking whether to use openDWG" >&5
  9875. echo "$ac_t"""$with_opendwg"" 1>&6
  9876. case "$with_opendwg" in
  9877. "no") USE_OPENDWG= ;;
  9878. "yes") USE_OPENDWG="1" ;;
  9879. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9880. esac
  9881. OPENDWGINCPATH=
  9882. OPENDWGLIBPATH=
  9883. OPENDWGLIB=
  9884. if test -n "${USE_OPENDWG}"; then
  9885. # With OPENDWG includes directory
  9886. echo $ac_n "checking for location of openDGW includes""... $ac_c" 1>&6
  9887. echo "configure:12404: checking for location of openDGW includes" >&5
  9888. case "$with_opendwg_includes" in
  9889. y | ye | yes | n | no)
  9890. { echo "configure: error: *** You must supply a directory to --with-opendwg-includes." 1>&2; exit 1; }
  9891. ;;
  9892. esac
  9893. echo "$ac_t""$with_opendwg_includes" 1>&6
  9894. if test -n "$with_opendwg_includes" ; then
  9895. for dir in $with_opendwg_includes; do
  9896. if test -d "$dir"; then
  9897. OPENDWGINCPATH="$OPENDWGINCPATH -I$dir"
  9898. else
  9899. { echo "configure: error: *** openDGW includes directory $dir does not exist." 1>&2; exit 1; }
  9900. fi
  9901. done
  9902. fi
  9903. ac_save_cppflags="$CPPFLAGS"
  9904. CPPFLAGS="$OPENDWGINCPATH $CPPFLAGS"
  9905. for ac_hdr in ad2.h
  9906. do
  9907. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  9908. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  9909. echo "configure:12430: checking for $ac_hdr" >&5
  9910. cat > conftest.$ac_ext <<EOF
  9911. #line 12433 "configure"
  9912. #include "confdefs.h"
  9913. #include <$ac_hdr>
  9914. EOF
  9915. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9916. { (eval echo configure:12438: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9917. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9918. if test -z "$ac_err"; then
  9919. rm -rf conftest*
  9920. eval "ac_cv_header_$ac_safe=yes"
  9921. else
  9922. echo "$ac_err" >&5
  9923. echo "configure: failed program was:" >&5
  9924. cat conftest.$ac_ext >&5
  9925. rm -rf conftest*
  9926. eval "ac_cv_header_$ac_safe=no"
  9927. fi
  9928. rm -f conftest*
  9929. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  9930. echo "$ac_t""yes" 1>&6
  9931. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  9932. cat >> confdefs.h <<EOF
  9933. #define $ac_tr_hdr 1
  9934. EOF
  9935. else
  9936. echo "$ac_t""no" 1>&6
  9937. { echo "configure: error: *** Unable to locate openDWG includes." 1>&2; exit 1; }
  9938. fi
  9939. done
  9940. CPPFLAGS=$ac_save_cppflags
  9941. # With OPENDWG library directory
  9942. echo $ac_n "checking for location of openDWG library""... $ac_c" 1>&6
  9943. echo "configure:12472: checking for location of openDWG library" >&5
  9944. case "$with_opendwg_libs" in
  9945. y | ye | yes | n | no)
  9946. { echo "configure: error: *** You must supply a directory to --with-opendwg-libs." 1>&2; exit 1; }
  9947. ;;
  9948. esac
  9949. echo "$ac_t""$with_opendwg_libs" 1>&6
  9950. if test -n "$with_opendwg_libs"; then
  9951. for dir in $with_opendwg_libs; do
  9952. if test -d "$dir"; then
  9953. OPENDWGLIBPATH="$OPENDWGLIBPATH -L$dir"
  9954. else
  9955. { echo "configure: error: *** openDWG library directory $dir does not exist." 1>&2; exit 1; }
  9956. fi
  9957. done
  9958. fi
  9959. #search for ad2.a, ad3.a ... in openDWG toolkit directory:
  9960. #FIX ME how to program this test??
  9961. #LOC_CHECK_LIBS(ad?.a,adSeekLayer,openDWG,$OPENDWGLIBPATH,OPENDWGLIB,,)
  9962. #
  9963. #for now hack (but working):
  9964. TRUEOPENDWGLIBPATH=`echo "$OPENDWGLIBPATH" | cut -b3-`
  9965. adlib=`ls -1 "$TRUEOPENDWGLIBPATH"/ad?.a | tail -1`
  9966. OPENDWGLIB="$adlib"
  9967. fi # $USE_OPENDWG
  9968. # Done checking OPENDWG
  9969. # Enable pthread option
  9970. echo $ac_n "checking whether to use POSIX threads""... $ac_c" 1>&6
  9971. echo "configure:12513: checking whether to use POSIX threads" >&5
  9972. echo "$ac_t"""$with_pthread"" 1>&6
  9973. case "$with_pthread" in
  9974. "no") USE_PTHREAD= ;;
  9975. "yes") USE_PTHREAD="1" ;;
  9976. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  9977. esac
  9978. PTHREADINCPATH=
  9979. PTHREADLIBPATH=
  9980. PTHREADLIB=
  9981. if test -n "$USE_PTHREAD"; then
  9982. # With pthread includes directory
  9983. echo $ac_n "checking for location of POSIX threads includes""... $ac_c" 1>&6
  9984. echo "configure:12533: checking for location of POSIX threads includes" >&5
  9985. case "$with_pthread_includes" in
  9986. y | ye | yes | n | no)
  9987. { echo "configure: error: *** You must supply a directory to --with-pthread-includes." 1>&2; exit 1; }
  9988. ;;
  9989. esac
  9990. echo "$ac_t""$with_pthread_includes" 1>&6
  9991. if test -n "$with_pthread_includes" ; then
  9992. for dir in $with_pthread_includes; do
  9993. if test -d "$dir"; then
  9994. PTHREADINCPATH="$PTHREADINCPATH -I$dir"
  9995. else
  9996. { echo "configure: error: *** POSIX threads includes directory $dir does not exist." 1>&2; exit 1; }
  9997. fi
  9998. done
  9999. fi
  10000. ac_save_cppflags="$CPPFLAGS"
  10001. CPPFLAGS="$PTHREADINCPATH $CPPFLAGS"
  10002. for ac_hdr in pthread.h
  10003. do
  10004. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  10005. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  10006. echo "configure:12559: checking for $ac_hdr" >&5
  10007. cat > conftest.$ac_ext <<EOF
  10008. #line 12562 "configure"
  10009. #include "confdefs.h"
  10010. #include <$ac_hdr>
  10011. EOF
  10012. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10013. { (eval echo configure:12567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10014. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10015. if test -z "$ac_err"; then
  10016. rm -rf conftest*
  10017. eval "ac_cv_header_$ac_safe=yes"
  10018. else
  10019. echo "$ac_err" >&5
  10020. echo "configure: failed program was:" >&5
  10021. cat conftest.$ac_ext >&5
  10022. rm -rf conftest*
  10023. eval "ac_cv_header_$ac_safe=no"
  10024. fi
  10025. rm -f conftest*
  10026. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10027. echo "$ac_t""yes" 1>&6
  10028. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10029. cat >> confdefs.h <<EOF
  10030. #define $ac_tr_hdr 1
  10031. EOF
  10032. else
  10033. echo "$ac_t""no" 1>&6
  10034. { echo "configure: error: *** Unable to locate POSIX threads includes." 1>&2; exit 1; }
  10035. fi
  10036. done
  10037. CPPFLAGS=$ac_save_cppflags
  10038. # With pthread library directory
  10039. echo $ac_n "checking for location of POSIX threads library""... $ac_c" 1>&6
  10040. echo "configure:12601: checking for location of POSIX threads library" >&5
  10041. case "$with_pthread_libs" in
  10042. y | ye | yes | n | no)
  10043. { echo "configure: error: *** You must supply a directory to --with-pthread-libs." 1>&2; exit 1; }
  10044. ;;
  10045. esac
  10046. echo "$ac_t""$with_pthread_libs" 1>&6
  10047. if test -n "$with_pthread_libs"; then
  10048. for dir in $with_pthread_libs; do
  10049. if test -d "$dir"; then
  10050. PTHREADLIBPATH="$PTHREADLIBPATH -L$dir"
  10051. else
  10052. { echo "configure: error: *** POSIX threads library directory $dir does not exist." 1>&2; exit 1; }
  10053. fi
  10054. done
  10055. fi
  10056. ac_save_libs="$LIBS"
  10057. ac_save_ldflags="$LDFLAGS"
  10058. LIBS=" $LIBS"
  10059. LDFLAGS=" $LDFLAGS"
  10060. echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
  10061. echo "configure:12626: checking for pthread_create" >&5
  10062. cat > conftest.$ac_ext <<EOF
  10063. #line 12629 "configure"
  10064. #include "confdefs.h"
  10065. /* System header to define __stub macros and hopefully few prototypes,
  10066. which can conflict with char pthread_create(); below. */
  10067. #include <assert.h>
  10068. /* Override any gcc2 internal prototype to avoid an error. */
  10069. /* We use char because int might match the return type of a gcc2
  10070. builtin and then its argument prototype would still apply. */
  10071. char pthread_create();
  10072. int main() {
  10073. /* The GNU C library defines this for functions which it implements
  10074. to always fail with ENOSYS. Some functions are actually named
  10075. something starting with __ and the normal name is an alias. */
  10076. #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
  10077. choke me
  10078. #else
  10079. pthread_create();
  10080. #endif
  10081. ; return 0; }
  10082. EOF
  10083. if { (eval echo configure:12652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10084. rm -rf conftest*
  10085. eval "ac_cv_func_pthread_create=yes"
  10086. else
  10087. echo "configure: failed program was:" >&5
  10088. cat conftest.$ac_ext >&5
  10089. rm -rf conftest*
  10090. eval "ac_cv_func_pthread_create=no"
  10091. fi
  10092. rm -f conftest*
  10093. if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
  10094. echo "$ac_t""yes" 1>&6
  10095. PTHREADLIB="$PTHREADLIB "
  10096. else
  10097. echo "$ac_t""no" 1>&6
  10098. ac_save_ldflags="$LDFLAGS"
  10099. LDFLAGS="$PTHREADLIBPATH $LDFLAGS"
  10100. echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
  10101. echo "configure:12679: checking for pthread_create in -lpthread" >&5
  10102. ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
  10103. ac_save_LIBS="$LIBS"
  10104. LIBS="-lpthread $LIBS"
  10105. cat > conftest.$ac_ext <<EOF
  10106. #line 12685 "configure"
  10107. #include "confdefs.h"
  10108. /* Override any gcc2 internal prototype to avoid an error. */
  10109. /* We use char because int might match the return type of a gcc2
  10110. builtin and then its argument prototype would still apply. */
  10111. char pthread_create();
  10112. int main() {
  10113. pthread_create()
  10114. ; return 0; }
  10115. EOF
  10116. if { (eval echo configure:12696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10117. rm -rf conftest*
  10118. eval "ac_cv_lib_$ac_lib_var=yes"
  10119. else
  10120. echo "configure: failed program was:" >&5
  10121. cat conftest.$ac_ext >&5
  10122. rm -rf conftest*
  10123. eval "ac_cv_lib_$ac_lib_var=no"
  10124. fi
  10125. rm -f conftest*
  10126. LIBS="$ac_save_LIBS"
  10127. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  10128. echo "$ac_t""yes" 1>&6
  10129. PTHREADLIB="$PTHREADLIB -lpthread "
  10130. else
  10131. echo "$ac_t""no" 1>&6
  10132. LDFLAGS=${ac_save_ldflags}
  10133. { echo "configure: error: *** Unable to locate POSIX threads library." 1>&2; exit 1; }
  10134. fi
  10135. LDFLAGS=${ac_save_ldflags}
  10136. fi
  10137. LIBS=${ac_save_libs}
  10138. LDFLAGS=${ac_save_ldflags}
  10139. fi # $USE_PTHREAD
  10140. # Done checking pthread
  10141. # Enable OpenMP option
  10142. echo $ac_n "checking whether to use OpenMP""... $ac_c" 1>&6
  10143. echo "configure:12746: checking whether to use OpenMP" >&5
  10144. echo "$ac_t"""$with_openmp"" 1>&6
  10145. case "$with_openmp" in
  10146. "no") USE_OPENMP= ;;
  10147. "yes") USE_OPENMP="1" ;;
  10148. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  10149. esac
  10150. OMPINCPATH=
  10151. OMPLIBPATH=
  10152. OMPLIB=
  10153. OMPCFLAGS=
  10154. if test -n "$USE_OPENMP"; then
  10155. # With OpenMP includes directory
  10156. echo $ac_n "checking for location of OpenMP includes""... $ac_c" 1>&6
  10157. echo "configure:12767: checking for location of OpenMP includes" >&5
  10158. case "$with_openmp_includes" in
  10159. y | ye | yes | n | no)
  10160. { echo "configure: error: *** You must supply a directory to --with-openmp-includes." 1>&2; exit 1; }
  10161. ;;
  10162. esac
  10163. echo "$ac_t""$with_openmp_includes" 1>&6
  10164. if test -n "$with_openmp_includes" ; then
  10165. for dir in $with_openmp_includes; do
  10166. if test -d "$dir"; then
  10167. OMPINCPATH="$OMPINCPATH -I$dir"
  10168. else
  10169. { echo "configure: error: *** OpenMP includes directory $dir does not exist." 1>&2; exit 1; }
  10170. fi
  10171. done
  10172. fi
  10173. ac_save_cppflags="$CPPFLAGS"
  10174. CPPFLAGS="$OMPINCPATH $CPPFLAGS"
  10175. for ac_hdr in omp.h
  10176. do
  10177. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  10178. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  10179. echo "configure:12793: checking for $ac_hdr" >&5
  10180. cat > conftest.$ac_ext <<EOF
  10181. #line 12796 "configure"
  10182. #include "confdefs.h"
  10183. #include <$ac_hdr>
  10184. EOF
  10185. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10186. { (eval echo configure:12801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10187. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10188. if test -z "$ac_err"; then
  10189. rm -rf conftest*
  10190. eval "ac_cv_header_$ac_safe=yes"
  10191. else
  10192. echo "$ac_err" >&5
  10193. echo "configure: failed program was:" >&5
  10194. cat conftest.$ac_ext >&5
  10195. rm -rf conftest*
  10196. eval "ac_cv_header_$ac_safe=no"
  10197. fi
  10198. rm -f conftest*
  10199. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10200. echo "$ac_t""yes" 1>&6
  10201. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10202. cat >> confdefs.h <<EOF
  10203. #define $ac_tr_hdr 1
  10204. EOF
  10205. else
  10206. echo "$ac_t""no" 1>&6
  10207. { echo "configure: error: *** Unable to locate OpenMP includes." 1>&2; exit 1; }
  10208. fi
  10209. done
  10210. CPPFLAGS=$ac_save_cppflags
  10211. # With OpenMP library directory
  10212. # GCC et al.: -lgomp
  10213. # Solaris cc: -lmtsk
  10214. # AIX xlc: -lxlsmp
  10215. # SGI IRIX 6.5 MIPSpro C/C++: -lmp
  10216. echo $ac_n "checking for location of OpenMP library""... $ac_c" 1>&6
  10217. echo "configure:12839: checking for location of OpenMP library" >&5
  10218. case "$with_openmp_libs" in
  10219. y | ye | yes | n | no)
  10220. { echo "configure: error: *** You must supply a directory to --with-openmp-libs." 1>&2; exit 1; }
  10221. ;;
  10222. esac
  10223. echo "$ac_t""$with_openmp_libs" 1>&6
  10224. if test -n "$with_openmp_libs"; then
  10225. for dir in $with_openmp_libs; do
  10226. if test -d "$dir"; then
  10227. OMPLIBPATH="$OMPLIBPATH -L$dir"
  10228. else
  10229. { echo "configure: error: *** OpenMP library directory $dir does not exist." 1>&2; exit 1; }
  10230. fi
  10231. done
  10232. fi
  10233. ac_save_libs="$LIBS"
  10234. ac_save_ldflags="$LDFLAGS"
  10235. LIBS=" $LIBS"
  10236. LDFLAGS=" $LDFLAGS"
  10237. echo $ac_n "checking for GOMP_parallel_start""... $ac_c" 1>&6
  10238. echo "configure:12864: checking for GOMP_parallel_start" >&5
  10239. cat > conftest.$ac_ext <<EOF
  10240. #line 12867 "configure"
  10241. #include "confdefs.h"
  10242. /* System header to define __stub macros and hopefully few prototypes,
  10243. which can conflict with char GOMP_parallel_start(); below. */
  10244. #include <assert.h>
  10245. /* Override any gcc2 internal prototype to avoid an error. */
  10246. /* We use char because int might match the return type of a gcc2
  10247. builtin and then its argument prototype would still apply. */
  10248. char GOMP_parallel_start();
  10249. int main() {
  10250. /* The GNU C library defines this for functions which it implements
  10251. to always fail with ENOSYS. Some functions are actually named
  10252. something starting with __ and the normal name is an alias. */
  10253. #if defined (__stub_GOMP_parallel_start) || defined (__stub___GOMP_parallel_start)
  10254. choke me
  10255. #else
  10256. GOMP_parallel_start();
  10257. #endif
  10258. ; return 0; }
  10259. EOF
  10260. if { (eval echo configure:12890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10261. rm -rf conftest*
  10262. eval "ac_cv_func_GOMP_parallel_start=yes"
  10263. else
  10264. echo "configure: failed program was:" >&5
  10265. cat conftest.$ac_ext >&5
  10266. rm -rf conftest*
  10267. eval "ac_cv_func_GOMP_parallel_start=no"
  10268. fi
  10269. rm -f conftest*
  10270. if eval "test \"`echo '$ac_cv_func_'GOMP_parallel_start`\" = yes"; then
  10271. echo "$ac_t""yes" 1>&6
  10272. OMPLIB="$OMPLIB "
  10273. else
  10274. echo "$ac_t""no" 1>&6
  10275. ac_save_ldflags="$LDFLAGS"
  10276. LDFLAGS="$OMPLIBPATH $LDFLAGS"
  10277. echo $ac_n "checking for GOMP_parallel_start in -lgomp""... $ac_c" 1>&6
  10278. echo "configure:12917: checking for GOMP_parallel_start in -lgomp" >&5
  10279. ac_lib_var=`echo gomp'_'GOMP_parallel_start | sed 'y%./+-%__p_%'`
  10280. ac_save_LIBS="$LIBS"
  10281. LIBS="-lgomp $LIBS"
  10282. cat > conftest.$ac_ext <<EOF
  10283. #line 12923 "configure"
  10284. #include "confdefs.h"
  10285. /* Override any gcc2 internal prototype to avoid an error. */
  10286. /* We use char because int might match the return type of a gcc2
  10287. builtin and then its argument prototype would still apply. */
  10288. char GOMP_parallel_start();
  10289. int main() {
  10290. GOMP_parallel_start()
  10291. ; return 0; }
  10292. EOF
  10293. if { (eval echo configure:12934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10294. rm -rf conftest*
  10295. eval "ac_cv_lib_$ac_lib_var=yes"
  10296. else
  10297. echo "configure: failed program was:" >&5
  10298. cat conftest.$ac_ext >&5
  10299. rm -rf conftest*
  10300. eval "ac_cv_lib_$ac_lib_var=no"
  10301. fi
  10302. rm -f conftest*
  10303. LIBS="$ac_save_LIBS"
  10304. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  10305. echo "$ac_t""yes" 1>&6
  10306. OMPLIB="$OMPLIB -lgomp "
  10307. else
  10308. echo "$ac_t""no" 1>&6
  10309. LDFLAGS=${ac_save_ldflags}
  10310. { echo "configure: error: *** Unable to locate OpenMP library." 1>&2; exit 1; }
  10311. fi
  10312. LDFLAGS=${ac_save_ldflags}
  10313. fi
  10314. LIBS=${ac_save_libs}
  10315. LDFLAGS=${ac_save_ldflags}
  10316. # compiler dependent
  10317. #if test ${CC} = "gcc" ; then
  10318. if test x$GCC = xyes ; then
  10319. # GNU C compiler (>= 4.2.1)
  10320. OMPCFLAGS=-fopenmp
  10321. elif test ${CC} = "icc" ; then
  10322. # Intel compiler
  10323. OMPCFLAGS=-openmp
  10324. elif test ${CC} = "opencc" ; then
  10325. # AMD's x86 Open64 compiler
  10326. OMPCFLAGS=-mp
  10327. elif test ${CC} = "pgcc" ; then
  10328. # Portland Group's compiler
  10329. OMPCFLAGS=-mp
  10330. # ... anybody else?
  10331. fi
  10332. # try to build a test program with "$CC $OMPCLFAGS" to confirm it works
  10333. #...how?
  10334. #echo "int main() {return 0;}" > test.c
  10335. #$CC $OMPCLFAGS test.c -o test
  10336. fi # $USE_OPENMP
  10337. # Done checking OpenMP
  10338. # Enable OpenCL option
  10339. echo $ac_n "checking whether to use OpenCL""... $ac_c" 1>&6
  10340. echo "configure:13007: checking whether to use OpenCL" >&5
  10341. echo "$ac_t"""$with_opencl"" 1>&6
  10342. case "$with_opencl" in
  10343. "no") USE_OPENCL= ;;
  10344. "yes") USE_OPENCL="1" ;;
  10345. *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
  10346. esac
  10347. OCLINCPATH=
  10348. OCLLIBPATH=
  10349. OCLLIB=
  10350. if test -n "$USE_OPENCL"; then
  10351. # With OpenCL includes directory
  10352. echo $ac_n "checking for location of OpenCL includes""... $ac_c" 1>&6
  10353. echo "configure:13027: checking for location of OpenCL includes" >&5
  10354. case "$with_opencl_includes" in
  10355. y | ye | yes | n | no)
  10356. { echo "configure: error: *** You must supply a directory to --with-opencl-includes." 1>&2; exit 1; }
  10357. ;;
  10358. esac
  10359. echo "$ac_t""$with_opencl_includes" 1>&6
  10360. if test -n "$with_opencl_includes" ; then
  10361. for dir in $with_opencl_includes; do
  10362. if test -d "$dir"; then
  10363. OCLINCPATH="$OCLINCPATH -I$dir"
  10364. else
  10365. { echo "configure: error: *** OpenCL includes directory $dir does not exist." 1>&2; exit 1; }
  10366. fi
  10367. done
  10368. fi
  10369. if test -n "$MACOSX_APP" ; then
  10370. ac_save_cppflags="$CPPFLAGS"
  10371. CPPFLAGS="$OCLINCPATH $CPPFLAGS"
  10372. for ac_hdr in OpenCL/opencl.h
  10373. do
  10374. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  10375. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  10376. echo "configure:13054: checking for $ac_hdr" >&5
  10377. cat > conftest.$ac_ext <<EOF
  10378. #line 13057 "configure"
  10379. #include "confdefs.h"
  10380. #include <$ac_hdr>
  10381. EOF
  10382. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10383. { (eval echo configure:13062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10384. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10385. if test -z "$ac_err"; then
  10386. rm -rf conftest*
  10387. eval "ac_cv_header_$ac_safe=yes"
  10388. else
  10389. echo "$ac_err" >&5
  10390. echo "configure: failed program was:" >&5
  10391. cat conftest.$ac_ext >&5
  10392. rm -rf conftest*
  10393. eval "ac_cv_header_$ac_safe=no"
  10394. fi
  10395. rm -f conftest*
  10396. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10397. echo "$ac_t""yes" 1>&6
  10398. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10399. cat >> confdefs.h <<EOF
  10400. #define $ac_tr_hdr 1
  10401. EOF
  10402. else
  10403. echo "$ac_t""no" 1>&6
  10404. { echo "configure: error: *** Unable to locate OpenCL includes." 1>&2; exit 1; }
  10405. fi
  10406. done
  10407. CPPFLAGS=$ac_save_cppflags
  10408. # With OpenCL library directory
  10409. ### FIXME: ###
  10410. #LOC_CHECK_FRAMEWORK_PATH(opencl,OpenCL,OPENCLPATH)
  10411. # last term in following would become ',$OPENCLPATH)' if above is uncommented
  10412. ac_save_libs="$LIBS"
  10413. ac_save_ldflags="$LDFLAGS"
  10414. LIBS="-framework OpenCL $LIBS"
  10415. LDFLAGS=" $LDFLAGS"
  10416. echo $ac_n "checking for clGetPlatformInfo""... $ac_c" 1>&6
  10417. echo "configure:13102: checking for clGetPlatformInfo" >&5
  10418. cat > conftest.$ac_ext <<EOF
  10419. #line 13105 "configure"
  10420. #include "confdefs.h"
  10421. /* System header to define __stub macros and hopefully few prototypes,
  10422. which can conflict with char clGetPlatformInfo(); below. */
  10423. #include <assert.h>
  10424. /* Override any gcc2 internal prototype to avoid an error. */
  10425. /* We use char because int might match the return type of a gcc2
  10426. builtin and then its argument prototype would still apply. */
  10427. char clGetPlatformInfo();
  10428. int main() {
  10429. /* The GNU C library defines this for functions which it implements
  10430. to always fail with ENOSYS. Some functions are actually named
  10431. something starting with __ and the normal name is an alias. */
  10432. #if defined (__stub_clGetPlatformInfo) || defined (__stub___clGetPlatformInfo)
  10433. choke me
  10434. #else
  10435. clGetPlatformInfo();
  10436. #endif
  10437. ; return 0; }
  10438. EOF
  10439. if { (eval echo configure:13128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10440. rm -rf conftest*
  10441. eval "ac_cv_func_clGetPlatformInfo=yes"
  10442. else
  10443. echo "configure: failed program was:" >&5
  10444. cat conftest.$ac_ext >&5
  10445. rm -rf conftest*
  10446. eval "ac_cv_func_clGetPlatformInfo=no"
  10447. fi
  10448. rm -f conftest*
  10449. if eval "test \"`echo '$ac_cv_func_'clGetPlatformInfo`\" = yes"; then
  10450. echo "$ac_t""yes" 1>&6
  10451. OCLLIB="$OCLLIB -framework OpenCL"
  10452. else
  10453. echo "$ac_t""no" 1>&6
  10454. { echo "configure: error: *** Unable to locate OpenCL library." 1>&2; exit 1; }
  10455. fi
  10456. LIBS=${ac_save_libs}
  10457. LDFLAGS=${ac_save_ldflags}
  10458. else
  10459. ac_save_cppflags="$CPPFLAGS"
  10460. CPPFLAGS="$OCLINCPATH $CPPFLAGS"
  10461. for ac_hdr in CL/cl.h
  10462. do
  10463. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  10464. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  10465. echo "configure:13167: checking for $ac_hdr" >&5
  10466. cat > conftest.$ac_ext <<EOF
  10467. #line 13170 "configure"
  10468. #include "confdefs.h"
  10469. #include <$ac_hdr>
  10470. EOF
  10471. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10472. { (eval echo configure:13175: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10473. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10474. if test -z "$ac_err"; then
  10475. rm -rf conftest*
  10476. eval "ac_cv_header_$ac_safe=yes"
  10477. else
  10478. echo "$ac_err" >&5
  10479. echo "configure: failed program was:" >&5
  10480. cat conftest.$ac_ext >&5
  10481. rm -rf conftest*
  10482. eval "ac_cv_header_$ac_safe=no"
  10483. fi
  10484. rm -f conftest*
  10485. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10486. echo "$ac_t""yes" 1>&6
  10487. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10488. cat >> confdefs.h <<EOF
  10489. #define $ac_tr_hdr 1
  10490. EOF
  10491. else
  10492. echo "$ac_t""no" 1>&6
  10493. { echo "configure: error: *** Unable to locate OpenCL includes." 1>&2; exit 1; }
  10494. fi
  10495. done
  10496. CPPFLAGS=$ac_save_cppflags
  10497. # With OpenCL library directory
  10498. echo $ac_n "checking for location of OpenCL library""... $ac_c" 1>&6
  10499. echo "configure:13208: checking for location of OpenCL library" >&5
  10500. case "$with_opencl_libs" in
  10501. y | ye | yes | n | no)
  10502. { echo "configure: error: *** You must supply a directory to --with-opencl-libs." 1>&2; exit 1; }
  10503. ;;
  10504. esac
  10505. echo "$ac_t""$with_opencl_libs" 1>&6
  10506. if test -n "$with_opencl_libs"; then
  10507. for dir in $with_opencl_libs; do
  10508. if test -d "$dir"; then
  10509. OCLLIBPATH="$OCLLIBPATH -L$dir"
  10510. else
  10511. { echo "configure: error: *** OpenCL library directory $dir does not exist." 1>&2; exit 1; }
  10512. fi
  10513. done
  10514. fi
  10515. ac_save_ldflags="$LDFLAGS"
  10516. LDFLAGS="$OCLLIBPATH $LDFLAGS"
  10517. echo $ac_n "checking for clGetPlatformInfo in -lOpenCL""... $ac_c" 1>&6
  10518. echo "configure:13232: checking for clGetPlatformInfo in -lOpenCL" >&5
  10519. ac_lib_var=`echo OpenCL'_'clGetPlatformInfo | sed 'y%./+-%__p_%'`
  10520. ac_save_LIBS="$LIBS"
  10521. LIBS="-lOpenCL $LIBS"
  10522. cat > conftest.$ac_ext <<EOF
  10523. #line 13238 "configure"
  10524. #include "confdefs.h"
  10525. /* Override any gcc2 internal prototype to avoid an error. */
  10526. /* We use char because int might match the return type of a gcc2
  10527. builtin and then its argument prototype would still apply. */
  10528. char clGetPlatformInfo();
  10529. int main() {
  10530. clGetPlatformInfo()
  10531. ; return 0; }
  10532. EOF
  10533. if { (eval echo configure:13249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10534. rm -rf conftest*
  10535. eval "ac_cv_lib_$ac_lib_var=yes"
  10536. else
  10537. echo "configure: failed program was:" >&5
  10538. cat conftest.$ac_ext >&5
  10539. rm -rf conftest*
  10540. eval "ac_cv_lib_$ac_lib_var=no"
  10541. fi
  10542. rm -f conftest*
  10543. LIBS="$ac_save_LIBS"
  10544. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  10545. echo "$ac_t""yes" 1>&6
  10546. OCLLIB="$OCLLIB -lOpenCL "
  10547. else
  10548. echo "$ac_t""no" 1>&6
  10549. LDFLAGS=${ac_save_ldflags}
  10550. { echo "configure: error: *** Unable to locate OpenCL library." 1>&2; exit 1; }
  10551. fi
  10552. LDFLAGS=${ac_save_ldflags}
  10553. # expanded symbol check: yes? no?
  10554. #LOC_CHECK_FUNC(clGetPlatformInfo,OpenCL functions,OCLLIB,,,,,[
  10555. #LOC_CHECK_LIBS(OpenCL,clGetPlatformInfo,OpenCL,$OCLLIBPATH,OCLLIB,,,)
  10556. #])
  10557. fi
  10558. fi # $USE_OPENCL
  10559. # Done checking OpenCL
  10560. # Enable LFS (from cdr-tools, tar, and autoconf 2.68)
  10561. # Check whether --enable-largefile or --disable-largefile was given.
  10562. if test "${enable_largefile+set}" = set; then
  10563. enableval="$enable_largefile"
  10564. :
  10565. fi
  10566. LFS_CFLAGS=
  10567. if test "$enable_largefile" != no; then
  10568. ac_save_cflags=$CFLAGS
  10569. if test "`which getconf 2>&5`" ; then
  10570. LFS_CFLAGS=`getconf LFS_CFLAGS 2>&5`
  10571. CFLAGS="$LFS_CFLAGS $ac_save_cflags"
  10572. fi
  10573. echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6
  10574. echo "configure:13309: checking for special C compiler options needed for large files" >&5
  10575. ac_cv_sys_largefile_CC=no
  10576. largefile_cc_opt=""
  10577. if test "$GCC" != yes; then
  10578. # IRIX 6.2 and later do not support large files by default,
  10579. # so use the C compiler's -n32 option if that helps.
  10580. cat > conftest.$ac_ext <<EOF
  10581. #line 13317 "configure"
  10582. #include "confdefs.h"
  10583. #include <sys/types.h>
  10584. /* Check that off_t can represent 2**63 - 1 correctly.
  10585. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10586. since some C++ compilers masquerading as C compilers
  10587. incorrectly reject 9223372036854775807. */
  10588. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10589. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10590. && LARGE_OFF_T % 2147483647 == 1)
  10591. ? 1 : -1];
  10592. int main() {
  10593. ; return 0; }
  10594. EOF
  10595. if { (eval echo configure:13333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10596. :
  10597. else
  10598. echo "configure: failed program was:" >&5
  10599. cat conftest.$ac_ext >&5
  10600. rm -rf conftest*
  10601. ac_save_CC="${CC-cc}"
  10602. CC="$CC -n32"
  10603. cat > conftest.$ac_ext <<EOF
  10604. #line 13342 "configure"
  10605. #include "confdefs.h"
  10606. #include <sys/types.h>
  10607. /* Check that off_t can represent 2**63 - 1 correctly.
  10608. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10609. since some C++ compilers masquerading as C compilers
  10610. incorrectly reject 9223372036854775807. */
  10611. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10612. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10613. && LARGE_OFF_T % 2147483647 == 1)
  10614. ? 1 : -1];
  10615. int main() {
  10616. ; return 0; }
  10617. EOF
  10618. if { (eval echo configure:13358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10619. rm -rf conftest*
  10620. ac_cv_sys_largefile_CC=' -n32'
  10621. else
  10622. echo "configure: failed program was:" >&5
  10623. cat conftest.$ac_ext >&5
  10624. fi
  10625. rm -f conftest*
  10626. CC="$ac_save_CC"
  10627. fi
  10628. rm -f conftest*
  10629. fi
  10630. echo "$ac_t""$ac_cv_sys_largefile_CC" 1>&6
  10631. if test "$ac_cv_sys_largefile_CC" != no; then
  10632. CC="$CC$ac_cv_sys_largefile_CC"
  10633. largefile_cc_opt="$ac_cv_sys_largefile_CC"
  10634. if test "$LFS_CFLAGS" ; then
  10635. LFS_CFLAGS="$LFS_CFLAGS $ac_cv_sys_largefile_CC"
  10636. else
  10637. LFS_CFLAGS="$ac_cv_sys_largefile_CC"
  10638. CFLAGS="$LFS_CFLAGS $ac_save_cflags"
  10639. fi
  10640. fi
  10641. echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
  10642. echo "configure:13385: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  10643. ac_cv_sys_file_offset_bits=no
  10644. cat > conftest.$ac_ext <<EOF
  10645. #line 13389 "configure"
  10646. #include "confdefs.h"
  10647. #include <sys/types.h>
  10648. /* Check that off_t can represent 2**63 - 1 correctly.
  10649. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10650. since some C++ compilers masquerading as C compilers
  10651. incorrectly reject 9223372036854775807. */
  10652. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10653. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10654. && LARGE_OFF_T % 2147483647 == 1)
  10655. ? 1 : -1];
  10656. int main() {
  10657. ; return 0; }
  10658. EOF
  10659. if { (eval echo configure:13405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10660. :
  10661. else
  10662. echo "configure: failed program was:" >&5
  10663. cat conftest.$ac_ext >&5
  10664. rm -rf conftest*
  10665. cat > conftest.$ac_ext <<EOF
  10666. #line 13412 "configure"
  10667. #include "confdefs.h"
  10668. #define _FILE_OFFSET_BITS 64
  10669. #include <sys/types.h>
  10670. /* Check that off_t can represent 2**63 - 1 correctly.
  10671. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10672. since some C++ compilers masquerading as C compilers
  10673. incorrectly reject 9223372036854775807. */
  10674. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10675. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10676. && LARGE_OFF_T % 2147483647 == 1)
  10677. ? 1 : -1];
  10678. int main() {
  10679. ; return 0; }
  10680. EOF
  10681. if { (eval echo configure:13430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10682. rm -rf conftest*
  10683. ac_cv_sys_file_offset_bits=64
  10684. else
  10685. echo "configure: failed program was:" >&5
  10686. cat conftest.$ac_ext >&5
  10687. fi
  10688. rm -f conftest*
  10689. fi
  10690. rm -f conftest*
  10691. echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
  10692. if test "$ac_cv_sys_file_offset_bits" != no; then
  10693. cat >> confdefs.h <<EOF
  10694. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  10695. EOF
  10696. if test "$LFS_CFLAGS" ; then
  10697. LFS_CFLAGS="$LFS_CFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
  10698. else
  10699. LFS_CFLAGS="-D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
  10700. fi
  10701. fi
  10702. echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
  10703. echo "configure:13456: checking for _LARGE_FILES value needed for large files" >&5
  10704. ac_cv_sys_large_files=no
  10705. cat > conftest.$ac_ext <<EOF
  10706. #line 13460 "configure"
  10707. #include "confdefs.h"
  10708. #include <sys/types.h>
  10709. /* Check that off_t can represent 2**63 - 1 correctly.
  10710. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10711. since some C++ compilers masquerading as C compilers
  10712. incorrectly reject 9223372036854775807. */
  10713. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10714. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10715. && LARGE_OFF_T % 2147483647 == 1)
  10716. ? 1 : -1];
  10717. int main() {
  10718. ; return 0; }
  10719. EOF
  10720. if { (eval echo configure:13476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10721. :
  10722. else
  10723. echo "configure: failed program was:" >&5
  10724. cat conftest.$ac_ext >&5
  10725. rm -rf conftest*
  10726. cat > conftest.$ac_ext <<EOF
  10727. #line 13483 "configure"
  10728. #include "confdefs.h"
  10729. #define _LARGE_FILES 1
  10730. #include <sys/types.h>
  10731. /* Check that off_t can represent 2**63 - 1 correctly.
  10732. We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10733. since some C++ compilers masquerading as C compilers
  10734. incorrectly reject 9223372036854775807. */
  10735. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10736. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10737. && LARGE_OFF_T % 2147483647 == 1)
  10738. ? 1 : -1];
  10739. int main() {
  10740. ; return 0; }
  10741. EOF
  10742. if { (eval echo configure:13501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10743. rm -rf conftest*
  10744. ac_cv_sys_large_files=1
  10745. else
  10746. echo "configure: failed program was:" >&5
  10747. cat conftest.$ac_ext >&5
  10748. fi
  10749. rm -f conftest*
  10750. fi
  10751. rm -f conftest*
  10752. echo "$ac_t""$ac_cv_sys_large_files" 1>&6
  10753. if test "$ac_cv_sys_large_files" != no; then
  10754. cat >> confdefs.h <<EOF
  10755. #define _LARGE_FILES $ac_cv_sys_large_files
  10756. EOF
  10757. if test "$LFS_CFLAGS" ; then
  10758. LFS_CFLAGS="$LFS_CFLAGS -D_LARGE_FILES=$ac_cv_sys_large_files"
  10759. else
  10760. LFS_CFLAGS="-D_LARGE_FILES=$ac_cv_sys_large_files"
  10761. fi
  10762. fi
  10763. echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6
  10764. echo "configure:13527: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  10765. ac_cv_sys_largefile_source=no
  10766. cat > conftest.$ac_ext <<EOF
  10767. #line 13531 "configure"
  10768. #include "confdefs.h"
  10769. #include <stdio.h>
  10770. int main() {
  10771. return !fseeko;
  10772. ; return 0; }
  10773. EOF
  10774. if { (eval echo configure:13538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10775. :
  10776. else
  10777. echo "configure: failed program was:" >&5
  10778. cat conftest.$ac_ext >&5
  10779. rm -rf conftest*
  10780. cat > conftest.$ac_ext <<EOF
  10781. #line 13545 "configure"
  10782. #include "confdefs.h"
  10783. #define _LARGEFILE_SOURCE 1
  10784. #include <stdio.h>
  10785. int main() {
  10786. return !fseeko;
  10787. ; return 0; }
  10788. EOF
  10789. if { (eval echo configure:13554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10790. rm -rf conftest*
  10791. ac_cv_sys_largefile_source=1
  10792. else
  10793. echo "configure: failed program was:" >&5
  10794. cat conftest.$ac_ext >&5
  10795. fi
  10796. rm -f conftest*
  10797. fi
  10798. rm -f conftest*
  10799. echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6
  10800. if test "$ac_cv_sys_largefile_source" != no; then
  10801. cat >> confdefs.h <<EOF
  10802. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  10803. EOF
  10804. if test "$LFS_CFLAGS" ; then
  10805. LFS_CFLAGS="$LFS_CFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
  10806. else
  10807. LFS_CFLAGS="-D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
  10808. fi
  10809. fi
  10810. CFLAGS=$ac_save_cflags
  10811. fi
  10812. ac_save_cflags=${CFLAGS}
  10813. CFLAGS="$LFS_CFLAGS ${ac_save_cflags}"
  10814. echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6
  10815. echo "configure:13586: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  10816. ac_cv_sys_largefile_source=no
  10817. cat > conftest.$ac_ext <<EOF
  10818. #line 13590 "configure"
  10819. #include "confdefs.h"
  10820. #include <stdio.h>
  10821. int main() {
  10822. return !fseeko;
  10823. ; return 0; }
  10824. EOF
  10825. if { (eval echo configure:13597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10826. :
  10827. else
  10828. echo "configure: failed program was:" >&5
  10829. cat conftest.$ac_ext >&5
  10830. rm -rf conftest*
  10831. cat > conftest.$ac_ext <<EOF
  10832. #line 13604 "configure"
  10833. #include "confdefs.h"
  10834. #define _LARGEFILE_SOURCE 1
  10835. #include <stdio.h>
  10836. int main() {
  10837. return !fseeko;
  10838. ; return 0; }
  10839. EOF
  10840. if { (eval echo configure:13613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10841. rm -rf conftest*
  10842. ac_cv_sys_largefile_source=1
  10843. else
  10844. echo "configure: failed program was:" >&5
  10845. cat conftest.$ac_ext >&5
  10846. fi
  10847. rm -f conftest*
  10848. fi
  10849. rm -f conftest*
  10850. echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6
  10851. if test "$ac_cv_sys_largefile_source" != no; then
  10852. cat >> confdefs.h <<EOF
  10853. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  10854. EOF
  10855. if test "$LFS_CFLAGS" ; then
  10856. LFS_CFLAGS="$LFS_CFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
  10857. else
  10858. LFS_CFLAGS="-D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
  10859. fi
  10860. fi
  10861. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  10862. # in glibc 2.1.3, but that breaks too many other things.
  10863. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  10864. echo $ac_n "checking for fseeko""... $ac_c" 1>&6
  10865. echo "configure:13643: checking for fseeko" >&5
  10866. ac_cv_func_fseeko=no
  10867. cat > conftest.$ac_ext <<EOF
  10868. #line 13647 "configure"
  10869. #include "confdefs.h"
  10870. #include <stdio.h>
  10871. int main() {
  10872. return fseeko && fseeko (stdin, 0, 0);
  10873. ; return 0; }
  10874. EOF
  10875. if { (eval echo configure:13654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10876. rm -rf conftest*
  10877. ac_cv_func_fseeko=yes
  10878. else
  10879. echo "configure: failed program was:" >&5
  10880. cat conftest.$ac_ext >&5
  10881. fi
  10882. rm -f conftest*
  10883. echo "$ac_t""$ac_cv_func_fseeko" 1>&6
  10884. if test $ac_cv_func_fseeko != no; then
  10885. cat >> confdefs.h <<\EOF
  10886. #define HAVE_FSEEKO 1
  10887. EOF
  10888. fi
  10889. echo $ac_n "checking if system supports Large Files at all""... $ac_c" 1>&6
  10890. echo "configure:13671: checking if system supports Large Files at all" >&5
  10891. cat > conftest.$ac_ext <<EOF
  10892. #line 13674 "configure"
  10893. #include "confdefs.h"
  10894. #include <stdio.h>
  10895. #include <sys/types.h>
  10896. int main() {
  10897. /*
  10898. * Check that off_t can represent 2**63 - 1 correctly.
  10899. * We can't simply "#define LARGE_OFF_T 9223372036854775807",
  10900. * since some C++ compilers masquerading as C compilers
  10901. * incorrectly reject 9223372036854775807.
  10902. *
  10903. * For MinGW, off64_t should be used and __MSVCRT_VERSION__ >= 0x0601
  10904. * (msvcrt.dll version 6.10 or higher) is needed for _fstat64 and _stat64.
  10905. */
  10906. #ifdef __MINGW32__
  10907. # define LARGE_OFF_T (((off64_t) 1 << 62) - 1 + ((off64_t) 1 << 62))
  10908. #else
  10909. # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10910. #endif
  10911. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10912. && LARGE_OFF_T % 2147483647 == 1)
  10913. ? 1 : -1];
  10914. #ifdef __MINGW32__
  10915. return !fseeko64;
  10916. return !ftello64;
  10917. #else
  10918. return !fseeko;
  10919. return !ftello;
  10920. #endif
  10921. ; return 0; }
  10922. EOF
  10923. if { (eval echo configure:13706: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10924. rm -rf conftest*
  10925. ac_cv_largefiles=yes
  10926. else
  10927. echo "configure: failed program was:" >&5
  10928. cat conftest.$ac_ext >&5
  10929. rm -rf conftest*
  10930. ac_cv_largefiles=no
  10931. fi
  10932. rm -f conftest*
  10933. echo "$ac_t""$ac_cv_largefiles" 1>&6
  10934. if test $ac_cv_largefiles = yes; then
  10935. cat >> confdefs.h <<\EOF
  10936. #define HAVE_LARGEFILES 1
  10937. EOF
  10938. USE_LARGEFILES=1
  10939. else
  10940. USE_LARGEFILES=
  10941. LFS_CFLAGS=
  10942. fi
  10943. CFLAGS=${ac_save_cflags}
  10944. # Done large file support
  10945. # Enable wxWidgets support (for wxGUI)
  10946. echo $ac_n "checking whether to use wxWidgets""... $ac_c" 1>&6
  10947. echo "configure:13737: checking whether to use wxWidgets" >&5
  10948. WXVERSION=
  10949. WXWIDGETSCXXFLAGS=
  10950. WXWIDGETSCPPFLAGS=
  10951. WXWIDGETSLIB=
  10952. USE_WXWIDGETS=
  10953. MACOSX_ARCHS_WXPYTHON=
  10954. if test "$with_wxwidgets" = "no" ; then
  10955. echo "$ac_t""no" 1>&6
  10956. else
  10957. echo "$ac_t""yes" 1>&6
  10958. USE_WXWIDGETS="1"
  10959. if test "$with_wxwidgets" != "yes" ; then
  10960. WX_CONFIG="$with_wxwidgets"
  10961. fi
  10962. # Extract the first word of "wx-config", so it can be a program name with args.
  10963. set dummy wx-config; ac_word=$2
  10964. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  10965. echo "configure:13758: checking for $ac_word" >&5
  10966. case "$WX_CONFIG" in
  10967. /*)
  10968. ac_cv_path_WX_CONFIG="$WX_CONFIG" # Let the user override the test with a path.
  10969. ;;
  10970. ?:/*)
  10971. ac_cv_path_WX_CONFIG="$WX_CONFIG" # Let the user override the test with a dos path.
  10972. ;;
  10973. *)
  10974. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  10975. ac_dummy="$PATH"
  10976. for ac_dir in $ac_dummy; do
  10977. test -z "$ac_dir" && ac_dir=.
  10978. if test -f $ac_dir/$ac_word; then
  10979. ac_cv_path_WX_CONFIG="$ac_dir/$ac_word"
  10980. break
  10981. fi
  10982. done
  10983. IFS="$ac_save_ifs"
  10984. test -z "$ac_cv_path_WX_CONFIG" && ac_cv_path_WX_CONFIG="no"
  10985. ;;
  10986. esac
  10987. WX_CONFIG="$ac_cv_path_WX_CONFIG"
  10988. if test -n "$WX_CONFIG"; then
  10989. echo "$ac_t""$WX_CONFIG" 1>&6
  10990. else
  10991. echo "$ac_t""no" 1>&6
  10992. fi
  10993. if test "$WX_CONFIG" = "no" ; then
  10994. { echo "configure: error: *** couldn't find wx-config
  10995. wxWidgets must be installed on your system.
  10996. Please check that wx-config is in path, the directory
  10997. where wxWidgets libraries are installed (returned by
  10998. 'wx-config --libs' or 'wx-config --static --libs' command)
  10999. is in LD_LIBRARY_PATH or equivalent variable and
  11000. wxWidgets version is 2.8.1 or above." 1>&2; exit 1; }
  11001. fi
  11002. # Check wxWidgets version
  11003. REQWX="2.8.1"
  11004. echo $ac_n "checking wxWidgets version""... $ac_c" 1>&6
  11005. echo "configure:13806: checking wxWidgets version" >&5
  11006. if WXVERSION=`"$WX_CONFIG" --version`; then
  11007. echo "$ac_t""$WXVERSION" 1>&6
  11008. else
  11009. echo "$ac_t""not found" 1>&6
  11010. { echo "configure: error: wxWidgets is required." 1>&2; exit 1; }
  11011. fi
  11012. if test `expr "$WXVERSION" \< "$REQWX"` = 1 ; then
  11013. { echo "configure: error: *** wxWidgets "$REQWX" or later is required." 1>&2; exit 1; }
  11014. fi
  11015. # With wxWidgets includes directory
  11016. WXWIDGETSCXXFLAGS=`"$WX_CONFIG" --cxxflags`
  11017. WXWIDGETSCPPFLAGS=`"$WX_CONFIG" --cppflags`
  11018. ac_save_cppflags="$CPPFLAGS"
  11019. CPPFLAGS="$WXWIDGETSCPPFLAGS $CPPFLAGS"
  11020. for ac_hdr in wx/wxprec.h
  11021. do
  11022. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  11023. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  11024. echo "configure:13829: checking for $ac_hdr" >&5
  11025. cat > conftest.$ac_ext <<EOF
  11026. #line 13832 "configure"
  11027. #include "confdefs.h"
  11028. #include <$ac_hdr>
  11029. EOF
  11030. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  11031. { (eval echo configure:13837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  11032. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  11033. if test -z "$ac_err"; then
  11034. rm -rf conftest*
  11035. eval "ac_cv_header_$ac_safe=yes"
  11036. else
  11037. echo "$ac_err" >&5
  11038. echo "configure: failed program was:" >&5
  11039. cat conftest.$ac_ext >&5
  11040. rm -rf conftest*
  11041. eval "ac_cv_header_$ac_safe=no"
  11042. fi
  11043. rm -f conftest*
  11044. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  11045. echo "$ac_t""yes" 1>&6
  11046. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  11047. cat >> confdefs.h <<EOF
  11048. #define $ac_tr_hdr 1
  11049. EOF
  11050. else
  11051. echo "$ac_t""no" 1>&6
  11052. { echo "configure: error: *** Unable to locate wxWidgets includes." 1>&2; exit 1; }
  11053. fi
  11054. done
  11055. CPPFLAGS=$ac_save_cppflags
  11056. # With wxWidgets library directory
  11057. WXWIDGETSLIB=`"$WX_CONFIG" --libs`
  11058. # shouldn't have arch flags in C/LD flags on OSX
  11059. for a in i386 ppc x86_64 ppc64
  11060. do
  11061. WXWIDGETSCXXFLAGS=`echo "$WXWIDGETSCXXFLAGS" | sed "s/-arch *$a//g"`
  11062. WXWIDGETSCPPFLAGS=`echo "$WXWIDGETSCPPFLAGS" | sed "s/-arch *$a//g"`
  11063. WXWIDGETSLIB=`echo "$WXWIDGETSLIB" | sed "s/-arch *$a//g"`
  11064. done
  11065. # check for available OSX archs in wxPython
  11066. if test -n "$MACOSX_ARCHS" ; then
  11067. wxver=`"$WX_CONFIG" --version`
  11068. wxlib=`"$WX_CONFIG" --prefix`/lib/lib`"$WX_CONFIG" --basename`-`echo "$wxver" | cut -d . -f1,2`.dylib
  11069. wxlibinfo=`file "$wxlib"`
  11070. for a in i386 ppc x86_64 ppc64
  11071. do
  11072. # add only if in MACOSX_ARCHS
  11073. if test -n "`echo \"$wxlibinfo\" | grep \"library $a\"`" ; then
  11074. if test -n "`echo \"$MACOSX_ARCHS\" | grep $a`" ; then
  11075. MACOSX_ARCHS_WXPYTHON="$MACOSX_ARCHS_WXPYTHON -arch $a"
  11076. fi
  11077. fi
  11078. done
  11079. fi
  11080. fi # $USE_WXWIDGETS
  11081. # Done checking wxWidgets
  11082. USE_TERMIO=
  11083. STRIPFLAG=
  11084. GRASS_HOME="${DSTDIR}"
  11085. trap '' 1 2 15
  11086. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  11087. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11088. # Let make expand exec_prefix.
  11089. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11090. # Any assignment to VPATH causes Sun make to only execute
  11091. # the first set of double-colon rules, so remove it if not needed.
  11092. # If there is a colon in the path, we need to keep it.
  11093. if test "x$srcdir" = x.; then
  11094. ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
  11095. fi
  11096. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  11097. DEFS=-DHAVE_CONFIG_H
  11098. # Without the "./", some shells look in PATH for config.status.
  11099. : ${CONFIG_STATUS=./config.status}
  11100. echo creating $CONFIG_STATUS
  11101. rm -f $CONFIG_STATUS
  11102. cat > $CONFIG_STATUS <<EOF
  11103. #! /bin/sh
  11104. # Generated automatically by configure.
  11105. # Run this file to recreate the current configuration.
  11106. # This directory was configured as follows,
  11107. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11108. #
  11109. # $0 $ac_configure_args
  11110. #
  11111. # Compiler output produced by configure, useful for debugging
  11112. # configure, is in ./config.log if it exists.
  11113. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  11114. for ac_option
  11115. do
  11116. case "\$ac_option" in
  11117. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11118. echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  11119. exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  11120. -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  11121. echo "$CONFIG_STATUS generated by autoconf version 2.13"
  11122. exit 0 ;;
  11123. -help | --help | --hel | --he | --h)
  11124. echo "\$ac_cs_usage"; exit 0 ;;
  11125. *) echo "\$ac_cs_usage"; exit 1 ;;
  11126. esac
  11127. done
  11128. ac_given_srcdir=$srcdir
  11129. ac_given_INSTALL="$INSTALL"
  11130. trap 'rm -fr `echo "include/Make/Platform.make include/Make/Doxyfile_arch_html include/Make/Doxyfile_arch_latex include/version.h grass.pc include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  11131. EOF
  11132. cat >> $CONFIG_STATUS <<EOF
  11133. # Protect against being on the right side of a sed subst in config.status.
  11134. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  11135. s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  11136. $ac_vpsub
  11137. $extrasub
  11138. s%@SHELL@%$SHELL%g
  11139. s%@CFLAGS@%$CFLAGS%g
  11140. s%@CPPFLAGS@%$CPPFLAGS%g
  11141. s%@CXXFLAGS@%$CXXFLAGS%g
  11142. s%@FFLAGS@%$FFLAGS%g
  11143. s%@DEFS@%$DEFS%g
  11144. s%@LDFLAGS@%$LDFLAGS%g
  11145. s%@LIBS@%$LIBS%g
  11146. s%@exec_prefix@%$exec_prefix%g
  11147. s%@prefix@%$prefix%g
  11148. s%@program_transform_name@%$program_transform_name%g
  11149. s%@bindir@%$bindir%g
  11150. s%@sbindir@%$sbindir%g
  11151. s%@libexecdir@%$libexecdir%g
  11152. s%@datadir@%$datadir%g
  11153. s%@sysconfdir@%$sysconfdir%g
  11154. s%@sharedstatedir@%$sharedstatedir%g
  11155. s%@localstatedir@%$localstatedir%g
  11156. s%@libdir@%$libdir%g
  11157. s%@includedir@%$includedir%g
  11158. s%@oldincludedir@%$oldincludedir%g
  11159. s%@infodir@%$infodir%g
  11160. s%@mandir@%$mandir%g
  11161. s%@host@%$host%g
  11162. s%@host_alias@%$host_alias%g
  11163. s%@host_cpu@%$host_cpu%g
  11164. s%@host_vendor@%$host_vendor%g
  11165. s%@host_os@%$host_os%g
  11166. s%@CC@%$CC%g
  11167. s%@EXEEXT@%$EXEEXT%g
  11168. s%@MINGW32@%$MINGW32%g
  11169. s%@BINDIR@%$BINDIR%g
  11170. s%@pwd@%$pwd%g
  11171. s%@SRCDIR@%$SRCDIR%g
  11172. s%@DSTDIR@%$DSTDIR%g
  11173. s%@ARCH@%$ARCH%g
  11174. s%@GISBASE@%$GISBASE%g
  11175. s%@GRASS_BIN@%$GRASS_BIN%g
  11176. s%@SVN_VERSION@%$SVN_VERSION%g
  11177. s%@GRASS_VERSION_FILE@%$GRASS_VERSION_FILE%g
  11178. s%@GRASS_VERSION_MAJOR@%$GRASS_VERSION_MAJOR%g
  11179. s%@GRASS_VERSION_MINOR@%$GRASS_VERSION_MINOR%g
  11180. s%@GRASS_VERSION_RELEASE@%$GRASS_VERSION_RELEASE%g
  11181. s%@GRASS_VERSION_NUMBER@%$GRASS_VERSION_NUMBER%g
  11182. s%@GRASS_VERSION_DATE@%$GRASS_VERSION_DATE%g
  11183. s%@GRASS_VERSION_SVN@%$GRASS_VERSION_SVN%g
  11184. s%@NAME_VER@%$NAME_VER%g
  11185. s%@LIB_VER@%$LIB_VER%g
  11186. s%@MACOSX_APP@%$MACOSX_APP%g
  11187. s%@MACOSX_ARCHS@%$MACOSX_ARCHS%g
  11188. s%@MACOSX_SDK@%$MACOSX_SDK%g
  11189. s%@INSTDIR@%$INSTDIR%g
  11190. s%@GRASS_LIBRARY_TYPE@%$GRASS_LIBRARY_TYPE%g
  11191. s%@LD_SEARCH_FLAGS@%$LD_SEARCH_FLAGS%g
  11192. s%@LD_LIBRARY_PATH_VAR@%$LD_LIBRARY_PATH_VAR%g
  11193. s%@SHLIB_LD@%$SHLIB_LD%g
  11194. s%@SHLIB_LD_FLAGS@%$SHLIB_LD_FLAGS%g
  11195. s%@SHLIB_CFLAGS@%$SHLIB_CFLAGS%g
  11196. s%@SHLIB_SUFFIX@%$SHLIB_SUFFIX%g
  11197. s%@STLIB_LD@%$STLIB_LD%g
  11198. s%@STLIB_SUFFIX@%$STLIB_SUFFIX%g
  11199. s%@INCLUDE_DIRS@%$INCLUDE_DIRS%g
  11200. s%@LIBRARY_DIRS@%$LIBRARY_DIRS%g
  11201. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  11202. s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  11203. s%@INSTALL_DATA@%$INSTALL_DATA%g
  11204. s%@LEX@%$LEX%g
  11205. s%@LEXLIB@%$LEXLIB%g
  11206. s%@LEXPATH@%$LEXPATH%g
  11207. s%@YACC@%$YACC%g
  11208. s%@YACCPATH@%$YACCPATH%g
  11209. s%@RANLIB@%$RANLIB%g
  11210. s%@AR@%$AR%g
  11211. s%@ENV@%$ENV%g
  11212. s%@PERL@%$PERL%g
  11213. s%@CPP@%$CPP%g
  11214. s%@CROSS_COMPILING@%$CROSS_COMPILING%g
  11215. s%@X_CFLAGS@%$X_CFLAGS%g
  11216. s%@X_LIBS@%$X_LIBS%g
  11217. s%@X_PRE_LIBS@%$X_PRE_LIBS%g
  11218. s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
  11219. s%@XLIB@%$XLIB%g
  11220. s%@XTLIB@%$XTLIB%g
  11221. s%@USE_X11@%$USE_X11%g
  11222. s%@DBMIEXTRALIB@%$DBMIEXTRALIB%g
  11223. s%@HAVE_ASPRINTF@%$HAVE_ASPRINTF%g
  11224. s%@MATHLIB@%$MATHLIB%g
  11225. s%@DLLIB@%$DLLIB%g
  11226. s%@ICONVLIB@%$ICONVLIB%g
  11227. s%@SOCKLIB@%$SOCKLIB%g
  11228. s%@HAVE_SOCKET@%$HAVE_SOCKET%g
  11229. s%@ZLIBINCPATH@%$ZLIBINCPATH%g
  11230. s%@ZLIBLIBPATH@%$ZLIBLIBPATH%g
  11231. s%@ZLIB@%$ZLIB%g
  11232. s%@PROJINC@%$PROJINC%g
  11233. s%@PROJLIB@%$PROJLIB%g
  11234. s%@PROJSHARE@%$PROJSHARE%g
  11235. s%@NAD2BIN@%$NAD2BIN%g
  11236. s%@REGEXINCPATH@%$REGEXINCPATH%g
  11237. s%@REGEXLIBPATH@%$REGEXLIBPATH%g
  11238. s%@REGEXLIB@%$REGEXLIB%g
  11239. s%@USE_REGEX@%$USE_REGEX%g
  11240. s%@READLINEINCPATH@%$READLINEINCPATH%g
  11241. s%@READLINELIBPATH@%$READLINELIBPATH%g
  11242. s%@READLINELIB@%$READLINELIB%g
  11243. s%@HISTORYLIB@%$HISTORYLIB%g
  11244. s%@GDAL_CONFIG@%$GDAL_CONFIG%g
  11245. s%@GDAL_LIBS@%$GDAL_LIBS%g
  11246. s%@GDAL_CFLAGS@%$GDAL_CFLAGS%g
  11247. s%@USE_GDAL@%$USE_GDAL%g
  11248. s%@USE_OGR@%$USE_OGR%g
  11249. s%@LIBLAS_CONFIG@%$LIBLAS_CONFIG%g
  11250. s%@LIBLAS_LIBS@%$LIBLAS_LIBS%g
  11251. s%@LIBLAS_CFLAGS@%$LIBLAS_CFLAGS%g
  11252. s%@LIBLAS_INC@%$LIBLAS_INC%g
  11253. s%@USE_LIBLAS@%$USE_LIBLAS%g
  11254. s%@NETCDF_CONFIG@%$NETCDF_CONFIG%g
  11255. s%@NETCDF_LIBS@%$NETCDF_LIBS%g
  11256. s%@NETCDF_CFLAGS@%$NETCDF_CFLAGS%g
  11257. s%@USE_NETCDF@%$USE_NETCDF%g
  11258. s%@GEOS_CONFIG@%$GEOS_CONFIG%g
  11259. s%@GEOS_LIBS@%$GEOS_LIBS%g
  11260. s%@GEOS_CFLAGS@%$GEOS_CFLAGS%g
  11261. s%@USE_GEOS@%$USE_GEOS%g
  11262. s%@TIFF_INCLUDE_DIRS@%$TIFF_INCLUDE_DIRS%g
  11263. s%@TIFF_LIBRARY_DIRS@%$TIFF_LIBRARY_DIRS%g
  11264. s%@TIFFLIB@%$TIFFLIB%g
  11265. s%@PNGINC@%$PNGINC%g
  11266. s%@PNGLIB@%$PNGLIB%g
  11267. s%@USE_PNG@%$USE_PNG%g
  11268. s%@USE_POSTGRES@%$USE_POSTGRES%g
  11269. s%@PQINCPATH@%$PQINCPATH%g
  11270. s%@PQLIBPATH@%$PQLIBPATH%g
  11271. s%@PQLIB@%$PQLIB%g
  11272. s%@MYSQLD_CONFIG@%$MYSQLD_CONFIG%g
  11273. s%@USE_MYSQL@%$USE_MYSQL%g
  11274. s%@MYSQLINCPATH@%$MYSQLINCPATH%g
  11275. s%@MYSQLLIBPATH@%$MYSQLLIBPATH%g
  11276. s%@MYSQLLIB@%$MYSQLLIB%g
  11277. s%@MYSQLDLIB@%$MYSQLDLIB%g
  11278. s%@USE_SQLITE@%$USE_SQLITE%g
  11279. s%@SQLITEINCPATH@%$SQLITEINCPATH%g
  11280. s%@SQLITELIBPATH@%$SQLITELIBPATH%g
  11281. s%@SQLITELIB@%$SQLITELIB%g
  11282. s%@USE_FFMPEG@%$USE_FFMPEG%g
  11283. s%@FFMPEGINCPATH@%$FFMPEGINCPATH%g
  11284. s%@FFMPEGLIBPATH@%$FFMPEGLIBPATH%g
  11285. s%@FFMPEGLIB@%$FFMPEGLIB%g
  11286. s%@USE_OPENGL@%$USE_OPENGL%g
  11287. s%@OPENGL_X11@%$OPENGL_X11%g
  11288. s%@OPENGL_AQUA@%$OPENGL_AQUA%g
  11289. s%@OPENGL_WINDOWS@%$OPENGL_WINDOWS%g
  11290. s%@OPENGLINC@%$OPENGLINC%g
  11291. s%@OPENGLLIB@%$OPENGLLIB%g
  11292. s%@OPENGLULIB@%$OPENGLULIB%g
  11293. s%@ODBCINC@%$ODBCINC%g
  11294. s%@ODBCLIB@%$ODBCLIB%g
  11295. s%@FFTWINC@%$FFTWINC%g
  11296. s%@FFTWLIB@%$FFTWLIB%g
  11297. s%@BLASLIB@%$BLASLIB%g
  11298. s%@BLASINC@%$BLASINC%g
  11299. s%@LAPACKLIB@%$LAPACKLIB%g
  11300. s%@LAPACKINC@%$LAPACKINC%g
  11301. s%@CAIRO_HAS_XRENDER@%$CAIRO_HAS_XRENDER%g
  11302. s%@CAIRO_HAS_XRENDER_SURFACE@%$CAIRO_HAS_XRENDER_SURFACE%g
  11303. s%@CAIROINC@%$CAIROINC%g
  11304. s%@CAIROLIB@%$CAIROLIB%g
  11305. s%@USE_CAIRO@%$USE_CAIRO%g
  11306. s%@FTINC@%$FTINC%g
  11307. s%@FTLIB@%$FTLIB%g
  11308. s%@INTLLIB@%$INTLLIB%g
  11309. s%@HAVE_NLS@%$HAVE_NLS%g
  11310. s%@CXX@%$CXX%g
  11311. s%@OPENDWGINCPATH@%$OPENDWGINCPATH%g
  11312. s%@OPENDWGLIBPATH@%$OPENDWGLIBPATH%g
  11313. s%@OPENDWGLIB@%$OPENDWGLIB%g
  11314. s%@USE_OPENDWG@%$USE_OPENDWG%g
  11315. s%@PTHREADINCPATH@%$PTHREADINCPATH%g
  11316. s%@PTHREADLIBPATH@%$PTHREADLIBPATH%g
  11317. s%@PTHREADLIB@%$PTHREADLIB%g
  11318. s%@USE_PTHREAD@%$USE_PTHREAD%g
  11319. s%@OMPINCPATH@%$OMPINCPATH%g
  11320. s%@OMPLIBPATH@%$OMPLIBPATH%g
  11321. s%@OMPLIB@%$OMPLIB%g
  11322. s%@OMPCFLAGS@%$OMPCFLAGS%g
  11323. s%@USE_OPENMP@%$USE_OPENMP%g
  11324. s%@OCLINCPATH@%$OCLINCPATH%g
  11325. s%@OCLLIBPATH@%$OCLLIBPATH%g
  11326. s%@OCLLIB@%$OCLLIB%g
  11327. s%@USE_OPENCL@%$USE_OPENCL%g
  11328. s%@USE_LARGEFILES@%$USE_LARGEFILES%g
  11329. s%@LFS_CFLAGS@%$LFS_CFLAGS%g
  11330. s%@WX_CONFIG@%$WX_CONFIG%g
  11331. s%@WXVERSION@%$WXVERSION%g
  11332. s%@WXWIDGETSCXXFLAGS@%$WXWIDGETSCXXFLAGS%g
  11333. s%@WXWIDGETSCPPFLAGS@%$WXWIDGETSCPPFLAGS%g
  11334. s%@WXWIDGETSLIB@%$WXWIDGETSLIB%g
  11335. s%@USE_WXWIDGETS@%$USE_WXWIDGETS%g
  11336. s%@MACOSX_ARCHS_WXPYTHON@%$MACOSX_ARCHS_WXPYTHON%g
  11337. s%@USE_TERMIO@%$USE_TERMIO%g
  11338. s%@STRIPFLAG@%$STRIPFLAG%g
  11339. s%@GRASS_HOME@%$GRASS_HOME%g
  11340. CEOF
  11341. EOF
  11342. cat >> $CONFIG_STATUS <<\EOF
  11343. # Split the substitutions into bite-sized pieces for seds with
  11344. # small command number limits, like on Digital OSF/1 and HP-UX.
  11345. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  11346. ac_file=1 # Number of current file.
  11347. ac_beg=1 # First line for current file.
  11348. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  11349. ac_more_lines=:
  11350. ac_sed_cmds=""
  11351. while $ac_more_lines; do
  11352. if test $ac_beg -gt 1; then
  11353. sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  11354. else
  11355. sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  11356. fi
  11357. if test ! -s conftest.s$ac_file; then
  11358. ac_more_lines=false
  11359. rm -f conftest.s$ac_file
  11360. else
  11361. if test -z "$ac_sed_cmds"; then
  11362. ac_sed_cmds="sed -f conftest.s$ac_file"
  11363. else
  11364. ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  11365. fi
  11366. ac_file=`expr $ac_file + 1`
  11367. ac_beg=$ac_end
  11368. ac_end=`expr $ac_end + $ac_max_sed_cmds`
  11369. fi
  11370. done
  11371. if test -z "$ac_sed_cmds"; then
  11372. ac_sed_cmds=cat
  11373. fi
  11374. EOF
  11375. cat >> $CONFIG_STATUS <<EOF
  11376. CONFIG_FILES=\${CONFIG_FILES-"include/Make/Platform.make include/Make/Doxyfile_arch_html include/Make/Doxyfile_arch_latex include/version.h grass.pc"}
  11377. EOF
  11378. cat >> $CONFIG_STATUS <<\EOF
  11379. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  11380. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11381. case "$ac_file" in
  11382. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  11383. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  11384. *) ac_file_in="${ac_file}.in" ;;
  11385. esac
  11386. # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  11387. # Remove last slash and all that follows it. Not all systems have dirname.
  11388. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  11389. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  11390. # The file is in a subdirectory.
  11391. test ! -d "$ac_dir" && mkdir "$ac_dir"
  11392. ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  11393. # A "../" for each directory in $ac_dir_suffix.
  11394. ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  11395. else
  11396. ac_dir_suffix= ac_dots=
  11397. fi
  11398. case "$ac_given_srcdir" in
  11399. .) srcdir=.
  11400. if test -z "$ac_dots"; then top_srcdir=.
  11401. else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  11402. /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  11403. *) # Relative path.
  11404. srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  11405. top_srcdir="$ac_dots$ac_given_srcdir" ;;
  11406. esac
  11407. case "$ac_given_INSTALL" in
  11408. [/$]*) INSTALL="$ac_given_INSTALL" ;;
  11409. *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  11410. esac
  11411. echo creating "$ac_file"
  11412. rm -f "$ac_file"
  11413. configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  11414. case "$ac_file" in
  11415. *Makefile*) ac_comsub="1i\\
  11416. # $configure_input" ;;
  11417. *) ac_comsub= ;;
  11418. esac
  11419. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  11420. sed -e "$ac_comsub
  11421. s%@configure_input@%$configure_input%g
  11422. s%@srcdir@%$srcdir%g
  11423. s%@top_srcdir@%$top_srcdir%g
  11424. s%@INSTALL@%$INSTALL%g
  11425. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  11426. fi; done
  11427. rm -f conftest.s*
  11428. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  11429. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  11430. #
  11431. # ac_d sets the value in "#define NAME VALUE" lines.
  11432. ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  11433. ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
  11434. ac_dC='\3'
  11435. ac_dD='%g'
  11436. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  11437. ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  11438. ac_uB='\([ ]\)%\1#\2define\3'
  11439. ac_uC=' '
  11440. ac_uD='\4%g'
  11441. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  11442. ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  11443. ac_eB='$%\1#\2define\3'
  11444. ac_eC=' '
  11445. ac_eD='%g'
  11446. if test "${CONFIG_HEADERS+set}" != set; then
  11447. EOF
  11448. cat >> $CONFIG_STATUS <<EOF
  11449. CONFIG_HEADERS="include/config.h"
  11450. EOF
  11451. cat >> $CONFIG_STATUS <<\EOF
  11452. fi
  11453. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  11454. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11455. case "$ac_file" in
  11456. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  11457. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  11458. *) ac_file_in="${ac_file}.in" ;;
  11459. esac
  11460. echo creating $ac_file
  11461. rm -f conftest.frag conftest.in conftest.out
  11462. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  11463. cat $ac_file_inputs > conftest.in
  11464. EOF
  11465. # Transform confdefs.h into a sed script conftest.vals that substitutes
  11466. # the proper values into config.h.in to produce config.h. And first:
  11467. # Protect against being on the right side of a sed subst in config.status.
  11468. # Protect against being in an unquoted here document in config.status.
  11469. rm -f conftest.vals
  11470. cat > conftest.hdr <<\EOF
  11471. s/[\\&%]/\\&/g
  11472. s%[\\$`]%\\&%g
  11473. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  11474. s%ac_d%ac_u%gp
  11475. s%ac_u%ac_e%gp
  11476. EOF
  11477. sed -n -f conftest.hdr confdefs.h > conftest.vals
  11478. rm -f conftest.hdr
  11479. # This sed command replaces #undef with comments. This is necessary, for
  11480. # example, in the case of _POSIX_SOURCE, which is predefined and required
  11481. # on some systems where configure will not decide to define it.
  11482. cat >> conftest.vals <<\EOF
  11483. s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  11484. EOF
  11485. # Break up conftest.vals because some shells have a limit on
  11486. # the size of here documents, and old seds have small limits too.
  11487. rm -f conftest.tail
  11488. while :
  11489. do
  11490. ac_lines=`grep -c . conftest.vals`
  11491. # grep -c gives empty output for an empty file on some AIX systems.
  11492. if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  11493. # Write a limited-size here document to conftest.frag.
  11494. echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  11495. sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  11496. echo 'CEOF
  11497. sed -f conftest.frag conftest.in > conftest.out
  11498. rm -f conftest.in
  11499. mv conftest.out conftest.in
  11500. ' >> $CONFIG_STATUS
  11501. sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  11502. rm -f conftest.vals
  11503. mv conftest.tail conftest.vals
  11504. done
  11505. rm -f conftest.vals
  11506. cat >> $CONFIG_STATUS <<\EOF
  11507. rm -f conftest.frag conftest.h
  11508. echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
  11509. cat conftest.in >> conftest.h
  11510. rm -f conftest.in
  11511. if cmp -s $ac_file conftest.h 2>/dev/null; then
  11512. echo "$ac_file is unchanged"
  11513. rm -f conftest.h
  11514. else
  11515. # Remove last slash and all that follows it. Not all systems have dirname.
  11516. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  11517. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  11518. # The file is in a subdirectory.
  11519. test ! -d "$ac_dir" && mkdir "$ac_dir"
  11520. fi
  11521. rm -f $ac_file
  11522. mv conftest.h $ac_file
  11523. fi
  11524. fi; done
  11525. EOF
  11526. cat >> $CONFIG_STATUS <<EOF
  11527. EOF
  11528. cat >> $CONFIG_STATUS <<\EOF
  11529. exit 0
  11530. EOF
  11531. chmod +x $CONFIG_STATUS
  11532. rm -fr confdefs* $ac_clean_files
  11533. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  11534. echo "Copying config.status to config.status.${ARCH}"
  11535. cp -f config.status config.status.${ARCH}
  11536. # Display configuration status
  11537. echo ""
  11538. echo "GRASS is now configured for: ${host}"
  11539. echo ""
  11540. echo " Source directory: ${SRCDIR}"
  11541. echo " Build directory: ${DSTDIR}"
  11542. echo " Installation directory: ${INSTDIR}"
  11543. echo " Startup script in directory:${bindir}"
  11544. echo " C compiler: ${CC} ${CFLAGS}"
  11545. echo " C++ compiler: ${CXX} ${CXXFLAGS}"
  11546. echo " Building shared libraries: ${shared_ok}"
  11547. echo " OpenGL platform: ${OPENGL_TYPE}"
  11548. echo ""
  11549. echo " MacOSX application: `if test -n "${MACOSX_APP}" ; then echo yes ; else echo no ; fi`"
  11550. echo " MacOSX architectures: ${MACOSX_ARCHS}"
  11551. echo " MacOSX SDK: ${MACOSX_SDK}"
  11552. echo ""
  11553. echo " BLAS support: `if test -n "${USE_BLAS}" ; then echo yes ; else echo no ; fi`"
  11554. echo " C++ support: `if test -n "${USE_CXX}" ; then echo yes ; else echo no ; fi`"
  11555. echo " Cairo support: `if test -n "${USE_CAIRO}" ; then echo yes ; else echo no ; fi`"
  11556. echo " DWG support: `if test -n "${USE_OPENDWG}" ; then echo yes ; else echo no ; fi`"
  11557. echo " FFMPEG support: `if test -n "${USE_FFMPEG}" ; then echo yes ; else echo no ; fi`"
  11558. echo " FFTW support: `if test -n "${USE_FFTW}" ; then echo yes ; else echo no ; fi`"
  11559. echo " FreeType support: `if test -n "${USE_FREETYPE}" ; then echo yes ; else echo no ; fi`"
  11560. echo " GDAL support: `if test -n "${USE_GDAL}" ; then echo yes ; else echo no ; fi`"
  11561. echo " GEOS support: `if test -n "${USE_GEOS}" ; then echo yes ; else echo no ; fi`"
  11562. echo " LAPACK support: `if test -n "${USE_LAPACK}" ; then echo yes ; else echo no ; fi`"
  11563. echo " Large File support (LFS): `if test -n "${USE_LARGEFILES}" ; then echo yes ; else echo no ; fi`"
  11564. echo " libLAS support: `if test -n "${USE_LIBLAS}" ; then echo yes ; else echo no ; fi`"
  11565. echo " MySQL support: `if test -n "${USE_MYSQL}" ; then echo yes ; else echo no ; fi`"
  11566. echo " NetCDF support: `if test -n "${USE_NETCDF}" ; then echo yes ; else echo no ; fi`"
  11567. echo " NLS support: `if test -n "${USE_NLS}" ; then echo yes ; else echo no ; fi`"
  11568. echo " ODBC support: `if test -n "${USE_ODBC}" ; then echo yes ; else echo no ; fi`"
  11569. echo " OGR support: `if test -n "${USE_OGR}" ; then echo yes ; else echo no ; fi`"
  11570. echo " OpenCL support: `if test -n "${USE_OPENCL}" ; then echo yes ; else echo no ; fi`"
  11571. echo " OpenGL support: `if test -n "${USE_OPENGL}" ; then echo yes ; else echo no ; fi`"
  11572. echo " OpenMP support: `if test -n "${USE_OPENMP}" ; then echo yes ; else echo no ; fi`"
  11573. echo " PNG support: `if test -n "${USE_PNG}" ; then echo yes ; else echo no ; fi`"
  11574. echo " POSIX thread support: `if test -n "${USE_PTHREAD}" ; then echo yes ; else echo no ; fi`"
  11575. echo " PostgreSQL support: `if test -n "${USE_POSTGRES}" ; then echo yes ; else echo no ; fi`"
  11576. echo " Readline support: `if test -n "${USE_READLINE}" ; then echo yes ; else echo no ; fi`"
  11577. echo " Regex support: `if test -n "${USE_REGEX}" ; then echo yes ; else echo no ; fi`"
  11578. echo " SQLite support: `if test -n "${USE_SQLITE}" ; then echo yes ; else echo no ; fi`"
  11579. echo " TIFF support: `if test -n "${USE_TIFF}" ; then echo yes ; else echo no ; fi`"
  11580. echo " wxWidgets support: `if test -n "${USE_WXWIDGETS}" ; then echo yes ; else echo no ; fi`"
  11581. echo " X11 support: `if test -n "${USE_X11}" ; then echo yes ; else echo no ; fi`"
  11582. echo ""