1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660 |
- #! /bin/sh
- # Guess values for system-dependent variables and create Makefiles.
- # Generated automatically using autoconf version 2.13
- # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
- #
- # This configure script is free software; the Free Software Foundation
- # gives unlimited permission to copy, distribute and modify it.
- # Defaults:
- ac_help=
- ac_default_prefix=/usr/local
- # Any additions from configure.in:
- ac_default_prefix=/usr/local
- ac_help="$ac_help
- --enable-macosx-app create a MacOSX application"
- ac_help="$ac_help
- --enable-shared build and link with shared libraries [--enable-shared]"
- ac_help="$ac_help
- --enable-w11 use W11 library for Windows X11 emulation"
- ac_help="$ac_help
- --with-cxx support C++ functionality (default: yes)"
- ac_help="$ac_help
- --with-macosx-archs[=arch list]
- compile multiple architectures on MacOSX, ie.
- universal. Valid architectures are i386, ppc,
- x86_64 and ppc64. (default: no [native])"
- ac_help="$ac_help
- --with-macosx-sdk[=path/sdk]
- compile with a system SDK on MacOSX. (default: no)"
- ac_help="$ac_help
- --with-tiff support TIFF functionality (default: yes)"
- ac_help="$ac_help
- --with-png support PNG functionality (default: yes)"
- ac_help="$ac_help
- --with-postgres support PostgreSQL functionality (default: no)"
- ac_help="$ac_help
- --with-mysql support MySQL functionality (default: no)"
- ac_help="$ac_help
- --with-sqlite support SQLite functionality (default: yes)"
- ac_help="$ac_help
- --with-opengl support OpenGL functionality (default: yes)"
- ac_help="$ac_help
- --with-odbc support ODBC functionality (default: no)"
- ac_help="$ac_help
- --with-fftw support FFTW functionality (default: yes)"
- ac_help="$ac_help
- --with-blas support BLAS functionality (default: no)"
- ac_help="$ac_help
- --with-lapack support LAPACK functionality (default: no)"
- ac_help="$ac_help
- --with-cairo support Cairo functionality (default: yes)"
- ac_help="$ac_help
- --with-freetype support FreeType functionality (default: yes)"
- ac_help="$ac_help
- --with-nls support NLS functionality (default: no)"
- ac_help="$ac_help
- --with-readline support Readline functionality (default: no)"
- ac_help="$ac_help
- --with-opendwg support openDWG functionality (default: no)"
- ac_help="$ac_help
- --with-regex support regex functionality (default: yes)"
- ac_help="$ac_help
- --with-pthread support POSIX threads functionality (default: no)"
- ac_help="$ac_help
- --with-openmp support OpenMP functionality (default: no)"
- ac_help="$ac_help
- --with-opencl support OpenCL functionality (default: no)"
- ac_help="$ac_help
- --with-bzlib support BZIP2 functionality (default: no)"
- ac_help="$ac_help
- --with-zstd support Zstandard functionality (default: yes)"
- ac_help="$ac_help
- --with-gdal[=path/gdal-config]
- enable GDAL/OGR support (gdal-config with path,
- e.g. '--with-gdal=/usr/local/bin/gdal-config')"
- ac_help="$ac_help
- --with-liblas[=path/liblas-config]
- enable libLAS support (liblas-config with path,
- e.g. '--with-liblas=/usr/local/bin/liblas-config',
- default: no)"
- ac_help="$ac_help
- --with-pdal[=path/pdal-config]
- enable PDAL support (pdal-config with path,
- e.g. '--with-pdal=/usr/local/bin/pdal-config',
- default: no)"
- ac_help="$ac_help
- --with-wxwidgets[=path/wx-config]
- enable wxWidgets support (wx-config with path,
- e.g. '--with-wxwidgets=/usr/local/bin/wx-config',
- default: no)"
- ac_help="$ac_help
- --with-netcdf[=path/nc-config]
- enable NetCDF support (nc-config with path,
- e.g. '--with-nc=/usr/local/bin/nc-config',
- default: no)"
- ac_help="$ac_help
- --with-geos[=path/geos-config]
- enable GEOS support (geos-config with path,
- e.g. '--with-geos=/usr/local/bin/geos-config',
- default: no)"
- ac_help="$ac_help
- --with-includes=DIRS site include files are in DIRS"
- ac_help="$ac_help
- --with-libs=DIRS site library files are in DIRS"
- ac_help="$ac_help
- --with-zlib-includes=DIRS
- zlib include files are in DIRS"
- ac_help="$ac_help
- --with-zlib-libs=DIRS zlib library files are in DIRS"
- ac_help="$ac_help
- --with-bzlib-includes=DIRS
- BZIP2 include files are in DIRS"
- ac_help="$ac_help
- --with-bzlib-libs=DIRS BZIP2 library files are in DIRS"
- ac_help="$ac_help
- --with-zstd-includes=DIRS
- ZSTD include files are in DIRS"
- ac_help="$ac_help
- --with-zstd-libs=DIRS ZSTD library files are in DIRS"
- ac_help="$ac_help
- --with-readline-includes=DIRS
- Readline include files are in DIRS"
- ac_help="$ac_help
- --with-readline-libs=DIRS
- Readline library files are in DIRS"
- ac_help="$ac_help
- --with-tiff-includes=DIRS
- TIFF include files are in DIRS"
- ac_help="$ac_help
- --with-tiff-libs=DIRS TIFF library files are in DIRS"
- ac_help="$ac_help
- --with-png-includes=DIRS
- PNG include files are in DIRS"
- ac_help="$ac_help
- --with-png-libs=DIRS PNG library files are in DIRS"
- ac_help="$ac_help
- --with-postgres-includes=DIRS
- PostgreSQL include files are in DIRS"
- ac_help="$ac_help
- --with-postgres-libs=DIRS
- PostgreSQL library files are in DIRS"
- ac_help="$ac_help
- --with-mysql-includes=DIRS
- MySQL include files are in DIRS"
- ac_help="$ac_help
- --with-mysql-libs=DIRS MySQL library files are in DIRS"
- ac_help="$ac_help
- --with-sqlite-includes=DIRS
- SQLite include files are in DIRS"
- ac_help="$ac_help
- --with-sqlite-libs=DIRS SQLite library files are in DIRS"
- ac_help="$ac_help
- --with-opengl-includes=DIRS
- OpenGL include files are in DIRS"
- ac_help="$ac_help
- --with-opengl-libs=DIRS OpenGL library files are in DIRS"
- ac_help="$ac_help
- --with-opengl-framework=DIR
- OpenGL framework is in DIR"
- ac_help="$ac_help
- --with-odbc-includes=DIRS
- ODBC include files are in DIRS"
- ac_help="$ac_help
- --with-odbc-libs=DIRS ODBC library files are in DIRS"
- ac_help="$ac_help
- --with-fftw-includes=DIRS
- FFTW include files are in DIRS"
- ac_help="$ac_help
- --with-fftw-libs=DIRS FFTW library files are in DIRS"
- ac_help="$ac_help
- --with-blas-includes=DIRS
- BLAS include files are in DIRS"
- ac_help="$ac_help
- --with-blas-libs=DIRS BLAS library files are in DIRS"
- ac_help="$ac_help
- --with-lapack-includes=DIRS
- LAPACK include files are in DIRS"
- ac_help="$ac_help
- --with-lapack-libs=DIRS LAPACK library files are in DIRS"
- ac_help="$ac_help
- --with-cairo-includes=DIRS
- cairo include files are in DIRS"
- ac_help="$ac_help
- --with-cairo-libs=DIRS cairo library files are in DIRS"
- ac_help="$ac_help
- --with-cairo-ldflags=FLAGS
- cairo needs FLAGS when linking"
- ac_help="$ac_help
- --with-freetype-includes=DIRS
- FreeType include files are in DIRS"
- ac_help="$ac_help
- --with-freetype-libs=DIRS
- FreeType library files are in DIRS"
- ac_help="$ac_help
- --with-proj-includes=DIRS
- External PROJ.4 include files are in DIRS"
- ac_help="$ac_help
- --with-proj-libs=DIRS External PROJ.4 library files are in DIRS"
- ac_help="$ac_help
- --with-proj-share=DIR External PROJ.4 data files are in DIR"
- ac_help="$ac_help
- --with-opendwg-includes=DIRS
- openDWG include files are in DIRS"
- ac_help="$ac_help
- --with-opendwg-libs=DIRS
- openDWG library files are in DIRS"
- ac_help="$ac_help
- --with-regex-includes=DIRS
- regex include files are in DIRS"
- ac_help="$ac_help
- --with-regex-libs=DIRS regex library files are in DIRS"
- ac_help="$ac_help
- --with-pthread-includes=DIRS
- POSIX threads include files are in DIRS"
- ac_help="$ac_help
- --with-pthread-libs=DIRS
- POSIX threads library files are in DIRS"
- ac_help="$ac_help
- --with-openmp-includes=DIRS
- OpenMP include files are in DIRS"
- ac_help="$ac_help
- --with-openmp-libs=DIRS OpenMP library files are in DIRS"
- ac_help="$ac_help
- --with-opencl-includes=DIRS
- OpenCL include files are in DIRS"
- ac_help="$ac_help
- --with-opencl-libs=DIRS OpenCL library files are in DIRS"
- ac_help="$ac_help
- --with-x use the X Window System"
- ac_help="$ac_help
- --disable-largefile omit support for large files (LFS)"
- # Initialize some variables set by options.
- # The variables have the same names as the options, with
- # dashes changed to underlines.
- build=NONE
- cache_file=./config.cache
- exec_prefix=NONE
- host=NONE
- no_create=
- nonopt=NONE
- no_recursion=
- prefix=NONE
- program_prefix=NONE
- program_suffix=NONE
- program_transform_name=s,x,x,
- silent=
- site=
- srcdir=
- target=NONE
- verbose=
- x_includes=NONE
- x_libraries=NONE
- bindir='${exec_prefix}/bin'
- sbindir='${exec_prefix}/sbin'
- libexecdir='${exec_prefix}/libexec'
- datadir='${prefix}/share'
- sysconfdir='${prefix}/etc'
- sharedstatedir='${prefix}/com'
- localstatedir='${prefix}/var'
- libdir='${exec_prefix}/lib'
- includedir='${prefix}/include'
- oldincludedir='/usr/include'
- infodir='${prefix}/info'
- mandir='${prefix}/man'
- # Initialize some other variables.
- subdirs=
- MFLAGS= MAKEFLAGS=
- SHELL=${CONFIG_SHELL-/bin/sh}
- # Maximum number of lines to put in a shell here document.
- ac_max_here_lines=12
- ac_prev=
- for ac_option
- do
- # If the previous option needs an argument, assign it.
- if test -n "$ac_prev"; then
- eval "$ac_prev=\$ac_option"
- ac_prev=
- continue
- fi
- case "$ac_option" in
- -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
- *) ac_optarg= ;;
- esac
- # Accept the important Cygnus configure options, so we can diagnose typos.
- case "$ac_option" in
- -bindir | --bindir | --bindi | --bind | --bin | --bi)
- ac_prev=bindir ;;
- -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
- bindir="$ac_optarg" ;;
- -build | --build | --buil | --bui | --bu)
- ac_prev=build ;;
- -build=* | --build=* | --buil=* | --bui=* | --bu=*)
- build="$ac_optarg" ;;
- -cache-file | --cache-file | --cache-fil | --cache-fi \
- | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
- ac_prev=cache_file ;;
- -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
- | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
- cache_file="$ac_optarg" ;;
- -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
- ac_prev=datadir ;;
- -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
- | --da=*)
- datadir="$ac_optarg" ;;
- -disable-* | --disable-*)
- ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
- # Reject names that are not valid shell variable names.
- if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
- { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
- fi
- ac_feature=`echo $ac_feature| sed 's/-/_/g'`
- eval "enable_${ac_feature}=no" ;;
- -enable-* | --enable-*)
- ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
- # Reject names that are not valid shell variable names.
- if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
- { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
- fi
- ac_feature=`echo $ac_feature| sed 's/-/_/g'`
- case "$ac_option" in
- *=*) ;;
- *) ac_optarg=yes ;;
- esac
- eval "enable_${ac_feature}='$ac_optarg'" ;;
- -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
- | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
- | --exec | --exe | --ex)
- ac_prev=exec_prefix ;;
- -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
- | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
- | --exec=* | --exe=* | --ex=*)
- exec_prefix="$ac_optarg" ;;
- -gas | --gas | --ga | --g)
- # Obsolete; use --with-gas.
- with_gas=yes ;;
- -help | --help | --hel | --he)
- # Omit some internal or obsolete options to make the list less imposing.
- # This message is too long to be a string in the A/UX 3.1 sh.
- cat << EOF
- Usage: configure [options] [host]
- Options: [defaults in brackets after descriptions]
- Configuration:
- --cache-file=FILE cache test results in FILE
- --help print this message
- --no-create do not create output files
- --quiet, --silent do not print \`checking...' messages
- --version print the version of autoconf that created configure
- Directory and file names:
- --prefix=PREFIX install architecture-independent files in PREFIX
- [$ac_default_prefix]
- --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
- [same as prefix]
- --bindir=DIR user executables in DIR [EPREFIX/bin]
- --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
- --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
- --datadir=DIR read-only architecture-independent data in DIR
- [PREFIX/share]
- --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
- --sharedstatedir=DIR modifiable architecture-independent data in DIR
- [PREFIX/com]
- --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
- --libdir=DIR object code libraries in DIR [EPREFIX/lib]
- --includedir=DIR C header files in DIR [PREFIX/include]
- --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
- --infodir=DIR info documentation in DIR [PREFIX/info]
- --mandir=DIR man documentation in DIR [PREFIX/man]
- --srcdir=DIR find the sources in DIR [configure dir or ..]
- --program-prefix=PREFIX prepend PREFIX to installed program names
- --program-suffix=SUFFIX append SUFFIX to installed program names
- --program-transform-name=PROGRAM
- run sed PROGRAM on installed program names
- EOF
- cat << EOF
- Host type:
- --build=BUILD configure for building on BUILD [BUILD=HOST]
- --host=HOST configure for HOST [guessed]
- --target=TARGET configure for TARGET [TARGET=HOST]
- Features and packages:
- --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
- --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
- --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
- --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
- --x-includes=DIR X include files are in DIR
- --x-libraries=DIR X library files are in DIR
- EOF
- if test -n "$ac_help"; then
- echo "--enable and --with options recognized:$ac_help"
- fi
- exit 0 ;;
- -host | --host | --hos | --ho)
- ac_prev=host ;;
- -host=* | --host=* | --hos=* | --ho=*)
- host="$ac_optarg" ;;
- -includedir | --includedir | --includedi | --included | --include \
- | --includ | --inclu | --incl | --inc)
- ac_prev=includedir ;;
- -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
- | --includ=* | --inclu=* | --incl=* | --inc=*)
- includedir="$ac_optarg" ;;
- -infodir | --infodir | --infodi | --infod | --info | --inf)
- ac_prev=infodir ;;
- -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
- infodir="$ac_optarg" ;;
- -libdir | --libdir | --libdi | --libd)
- ac_prev=libdir ;;
- -libdir=* | --libdir=* | --libdi=* | --libd=*)
- libdir="$ac_optarg" ;;
- -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
- | --libexe | --libex | --libe)
- ac_prev=libexecdir ;;
- -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
- | --libexe=* | --libex=* | --libe=*)
- libexecdir="$ac_optarg" ;;
- -localstatedir | --localstatedir | --localstatedi | --localstated \
- | --localstate | --localstat | --localsta | --localst \
- | --locals | --local | --loca | --loc | --lo)
- ac_prev=localstatedir ;;
- -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
- | --localstate=* | --localstat=* | --localsta=* | --localst=* \
- | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
- localstatedir="$ac_optarg" ;;
- -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
- ac_prev=mandir ;;
- -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
- mandir="$ac_optarg" ;;
- -nfp | --nfp | --nf)
- # Obsolete; use --without-fp.
- with_fp=no ;;
- -no-create | --no-create | --no-creat | --no-crea | --no-cre \
- | --no-cr | --no-c)
- no_create=yes ;;
- -no-recursion | --no-recursion | --no-recursio | --no-recursi \
- | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
- no_recursion=yes ;;
- -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
- | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
- | --oldin | --oldi | --old | --ol | --o)
- ac_prev=oldincludedir ;;
- -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
- | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
- | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
- oldincludedir="$ac_optarg" ;;
- -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
- ac_prev=prefix ;;
- -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
- prefix="$ac_optarg" ;;
- -program-prefix | --program-prefix | --program-prefi | --program-pref \
- | --program-pre | --program-pr | --program-p)
- ac_prev=program_prefix ;;
- -program-prefix=* | --program-prefix=* | --program-prefi=* \
- | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
- program_prefix="$ac_optarg" ;;
- -program-suffix | --program-suffix | --program-suffi | --program-suff \
- | --program-suf | --program-su | --program-s)
- ac_prev=program_suffix ;;
- -program-suffix=* | --program-suffix=* | --program-suffi=* \
- | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
- program_suffix="$ac_optarg" ;;
- -program-transform-name | --program-transform-name \
- | --program-transform-nam | --program-transform-na \
- | --program-transform-n | --program-transform- \
- | --program-transform | --program-transfor \
- | --program-transfo | --program-transf \
- | --program-trans | --program-tran \
- | --progr-tra | --program-tr | --program-t)
- ac_prev=program_transform_name ;;
- -program-transform-name=* | --program-transform-name=* \
- | --program-transform-nam=* | --program-transform-na=* \
- | --program-transform-n=* | --program-transform-=* \
- | --program-transform=* | --program-transfor=* \
- | --program-transfo=* | --program-transf=* \
- | --program-trans=* | --program-tran=* \
- | --progr-tra=* | --program-tr=* | --program-t=*)
- program_transform_name="$ac_optarg" ;;
- -q | -quiet | --quiet | --quie | --qui | --qu | --q \
- | -silent | --silent | --silen | --sile | --sil)
- silent=yes ;;
- -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
- ac_prev=sbindir ;;
- -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
- | --sbi=* | --sb=*)
- sbindir="$ac_optarg" ;;
- -sharedstatedir | --sharedstatedir | --sharedstatedi \
- | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
- | --sharedst | --shareds | --shared | --share | --shar \
- | --sha | --sh)
- ac_prev=sharedstatedir ;;
- -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
- | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
- | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
- | --sha=* | --sh=*)
- sharedstatedir="$ac_optarg" ;;
- -site | --site | --sit)
- ac_prev=site ;;
- -site=* | --site=* | --sit=*)
- site="$ac_optarg" ;;
- -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
- ac_prev=srcdir ;;
- -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
- srcdir="$ac_optarg" ;;
- -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
- | --syscon | --sysco | --sysc | --sys | --sy)
- ac_prev=sysconfdir ;;
- -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
- | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
- sysconfdir="$ac_optarg" ;;
- -target | --target | --targe | --targ | --tar | --ta | --t)
- ac_prev=target ;;
- -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
- target="$ac_optarg" ;;
- -v | -verbose | --verbose | --verbos | --verbo | --verb)
- verbose=yes ;;
- -version | --version | --versio | --versi | --vers)
- echo "configure generated by autoconf version 2.13"
- exit 0 ;;
- -with-* | --with-*)
- ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
- # Reject names that are not valid shell variable names.
- if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
- { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
- fi
- ac_package=`echo $ac_package| sed 's/-/_/g'`
- case "$ac_option" in
- *=*) ;;
- *) ac_optarg=yes ;;
- esac
- eval "with_${ac_package}='$ac_optarg'" ;;
- -without-* | --without-*)
- ac_package=`echo $ac_option|sed -e 's/-*without-//'`
- # Reject names that are not valid shell variable names.
- if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
- { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
- fi
- ac_package=`echo $ac_package| sed 's/-/_/g'`
- eval "with_${ac_package}=no" ;;
- --x)
- # Obsolete; use --with-x.
- with_x=yes ;;
- -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
- | --x-incl | --x-inc | --x-in | --x-i)
- ac_prev=x_includes ;;
- -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
- | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
- x_includes="$ac_optarg" ;;
- -x-libraries | --x-libraries | --x-librarie | --x-librari \
- | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
- ac_prev=x_libraries ;;
- -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
- | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
- x_libraries="$ac_optarg" ;;
- -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
- ;;
- *)
- if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
- echo "configure: warning: $ac_option: invalid host type" 1>&2
- fi
- if test "x$nonopt" != xNONE; then
- { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
- fi
- nonopt="$ac_option"
- ;;
- esac
- done
- if test -n "$ac_prev"; then
- { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
- fi
- trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
- # File descriptor usage:
- # 0 standard input
- # 1 file creation
- # 2 errors and warnings
- # 3 some systems may open it to /dev/tty
- # 4 used on the Kubota Titan
- # 6 checking for... messages and results
- # 5 compiler messages saved in config.log
- if test "$silent" = yes; then
- exec 6>/dev/null
- else
- exec 6>&1
- fi
- exec 5>./config.log
- echo "\
- This file contains any messages produced by compilers while
- running configure, to aid debugging if configure makes a mistake.
- " 1>&5
- # Strip out --no-create and --no-recursion so they do not pile up.
- # Also quote any args containing shell metacharacters.
- ac_configure_args=
- for ac_arg
- do
- case "$ac_arg" in
- -no-create | --no-create | --no-creat | --no-crea | --no-cre \
- | --no-cr | --no-c) ;;
- -no-recursion | --no-recursion | --no-recursio | --no-recursi \
- | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
- *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
- ac_configure_args="$ac_configure_args '$ac_arg'" ;;
- *) ac_configure_args="$ac_configure_args $ac_arg" ;;
- esac
- done
- # NLS nuisances.
- # Only set these to C if already set. These must not be set unconditionally
- # because not all systems understand e.g. LANG=C (notably SCO).
- # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
- # Non-C LC_CTYPE values break the ctype check.
- if test "${LANG+set}" = set; then LANG=C; export LANG; fi
- if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
- if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
- if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
- # confdefs.h avoids OS command line length limits that DEFS can exceed.
- rm -rf conftest* confdefs.h
- # AIX cpp loses on an empty file, so make sure it contains at least a newline.
- echo > confdefs.h
- # A filename unique to this package, relative to the directory that
- # configure is in, which we can look for to find out if srcdir is correct.
- ac_unique_file=configure.in
- # Find the source files, if location was not specified.
- if test -z "$srcdir"; then
- ac_srcdir_defaulted=yes
- # Try the directory containing this script, then its parent.
- ac_prog=$0
- ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
- test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
- srcdir=$ac_confdir
- if test ! -r $srcdir/$ac_unique_file; then
- srcdir=..
- fi
- else
- ac_srcdir_defaulted=no
- fi
- if test ! -r $srcdir/$ac_unique_file; then
- if test "$ac_srcdir_defaulted" = yes; then
- { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
- else
- { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
- fi
- fi
- srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
- # Prefer explicitly selected file to automatically selected ones.
- if test -z "$CONFIG_SITE"; then
- if test "x$prefix" != xNONE; then
- CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
- else
- CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
- fi
- fi
- for ac_site_file in $CONFIG_SITE; do
- if test -r "$ac_site_file"; then
- echo "loading site script $ac_site_file"
- . "$ac_site_file"
- fi
- done
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
- ac_exeext=
- ac_objext=o
- if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
- # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
- if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
- ac_n= ac_c='
- ' ac_t=' '
- else
- ac_n=-n ac_c= ac_t=
- fi
- else
- ac_n= ac_c='\c' ac_t=
- fi
- ac_aux_dir=
- for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
- if test -f $ac_dir/install-sh; then
- ac_aux_dir=$ac_dir
- ac_install_sh="$ac_aux_dir/install-sh -c"
- break
- elif test -f $ac_dir/install.sh; then
- ac_aux_dir=$ac_dir
- ac_install_sh="$ac_aux_dir/install.sh -c"
- break
- fi
- done
- if test -z "$ac_aux_dir"; then
- { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
- fi
- ac_config_guess=$ac_aux_dir/config.guess
- ac_config_sub=$ac_aux_dir/config.sub
- ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
- # Make sure we can run config.sub.
- if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
- else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
- fi
- echo $ac_n "checking host system type""... $ac_c" 1>&6
- echo "configure:766: checking host system type" >&5
- host_alias=$host
- case "$host_alias" in
- NONE)
- case $nonopt in
- NONE)
- if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
- else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
- fi ;;
- *) host_alias=$nonopt ;;
- esac ;;
- esac
- host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
- host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
- host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
- host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
- echo "$ac_t""$host" 1>&6
- # Extract the first word of "gcc", so it can be a program name with args.
- set dummy gcc; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:789: checking for $ac_word" >&5
- if test -n "$CC"; then
- ac_cv_prog_CC="$CC" # Let the user override the test.
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_CC="gcc"
- break
- fi
- done
- IFS="$ac_save_ifs"
- fi
- CC="$ac_cv_prog_CC"
- if test -n "$CC"; then
- echo "$ac_t""$CC" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- if test -z "$CC"; then
- # Extract the first word of "cc", so it can be a program name with args.
- set dummy cc; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:816: checking for $ac_word" >&5
- if test -n "$CC"; then
- ac_cv_prog_CC="$CC" # Let the user override the test.
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_prog_rejected=no
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
- ac_prog_rejected=yes
- continue
- fi
- ac_cv_prog_CC="cc"
- break
- fi
- done
- IFS="$ac_save_ifs"
- if test $ac_prog_rejected = yes; then
- # We found a bogon in the path, so make sure we never use it.
- set dummy $ac_cv_prog_CC
- shift
- if test $# -gt 0; then
- # We chose a different compiler from the bogus one.
- # However, it has the same basename, so the bogon will be chosen
- # first if we set CC to just the basename; use the full file name.
- shift
- set dummy "$ac_dir/$ac_word" "$@"
- shift
- ac_cv_prog_CC="$@"
- fi
- fi
- fi
- CC="$ac_cv_prog_CC"
- if test -n "$CC"; then
- echo "$ac_t""$CC" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- if test -z "$CC"; then
- case "`uname -s`" in
- *win32* | *WIN32*)
- # Extract the first word of "cl", so it can be a program name with args.
- set dummy cl; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:864: checking for $ac_word" >&5
- if test -n "$CC"; then
- ac_cv_prog_CC="$CC" # Let the user override the test.
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_CC="cl"
- break
- fi
- done
- IFS="$ac_save_ifs"
- fi
- CC="$ac_cv_prog_CC"
- if test -n "$CC"; then
- echo "$ac_t""$CC" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- ;;
- esac
- fi
- test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
- fi
- echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
- echo "configure:893: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
- cat > conftest.$ac_ext << EOF
- #line 904 "configure"
- #include "confdefs.h"
- main(){return(0);}
- EOF
- if { (eval echo configure:909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- ac_cv_prog_cc_works=yes
- # If we can't run a trivial program, we are probably using a cross compiler.
- if (./conftest; exit) 2>/dev/null; then
- ac_cv_prog_cc_cross=no
- else
- ac_cv_prog_cc_cross=yes
- fi
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- ac_cv_prog_cc_works=no
- fi
- rm -fr conftest*
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
- echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
- if test $ac_cv_prog_cc_works = no; then
- { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
- fi
- echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
- echo "configure:935: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
- echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
- cross_compiling=$ac_cv_prog_cc_cross
- echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
- echo "configure:940: checking whether we are using GNU C" >&5
- cat > conftest.c <<EOF
- #ifdef __GNUC__
- yes;
- #endif
- EOF
- if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
- ac_cv_prog_gcc=yes
- else
- ac_cv_prog_gcc=no
- fi
- echo "$ac_t""$ac_cv_prog_gcc" 1>&6
- if test $ac_cv_prog_gcc = yes; then
- GCC=yes
- else
- GCC=
- fi
- ac_test_CFLAGS="${CFLAGS+set}"
- ac_save_CFLAGS="$CFLAGS"
- CFLAGS=
- echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
- echo "configure:965: checking whether ${CC-cc} accepts -g" >&5
- echo 'void f(){}' > conftest.c
- if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
- ac_cv_prog_cc_g=yes
- else
- ac_cv_prog_cc_g=no
- fi
- rm -f conftest*
- echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
- if test "$ac_test_CFLAGS" = set; then
- CFLAGS="$ac_save_CFLAGS"
- elif test $ac_cv_prog_cc_g = yes; then
- if test "$GCC" = yes; then
- CFLAGS="-g -O2"
- else
- CFLAGS="-g"
- fi
- else
- if test "$GCC" = yes; then
- CFLAGS="-O2"
- else
- CFLAGS=
- fi
- fi
- echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
- echo "configure:994: checking for Cygwin environment" >&5
- cat > conftest.$ac_ext <<EOF
- #line 997 "configure"
- #include "confdefs.h"
- int main() {
- #ifndef __CYGWIN__
- #define __CYGWIN__ __CYGWIN32__
- #endif
- return __CYGWIN__;
- ; return 0; }
- EOF
- if { (eval echo configure:1008: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_cygwin=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_cygwin=no
- fi
- rm -f conftest*
- rm -f conftest*
- echo "$ac_t""$ac_cv_cygwin" 1>&6
- CYGWIN=
- test "$ac_cv_cygwin" = yes && CYGWIN=yes
- echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
- echo "configure:1024: checking for mingw32 environment" >&5
- cat > conftest.$ac_ext <<EOF
- #line 1027 "configure"
- #include "confdefs.h"
- int main() {
- return __MINGW32__;
- ; return 0; }
- EOF
- if { (eval echo configure:1034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_mingw32=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_mingw32=no
- fi
- rm -f conftest*
- rm -f conftest*
- echo "$ac_t""$ac_cv_mingw32" 1>&6
- MINGW32=
- test "$ac_cv_mingw32" = yes && MINGW32=yes
- echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
- echo "configure:1052: checking for executable suffix" >&5
- if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
- ac_cv_exeext=.exe
- else
- ac_cv_exeext=no
- fi
- EXEEXT=""
- test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
- echo "$ac_t""${ac_cv_exeext}" 1>&6
- ac_exeext=$EXEEXT
- # Check for full floating-point support, including Infinity and NaN
- IEEEFLAG=
- echo $ac_n "checking for full floating-point support""... $ac_c" 1>&6
- echo "configure:1071: checking for full floating-point support" >&5
- if test "$cross_compiling" = yes; then
- echo "$ac_t""unknown (cross-compiling)" 1>&6
-
- echo $ac_n "checking whether "cc -mieee" works""... $ac_c" 1>&6
- echo "configure:1076: checking whether "cc -mieee" works" >&5
- ac_save_cflags=${CFLAGS}
- CFLAGS="$CFLAGS -mieee"
- cat > conftest.$ac_ext <<EOF
- #line 1080 "configure"
- #include "confdefs.h"
- int main() {
- ; return 0; }
- EOF
- if { (eval echo configure:1087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- echo "$ac_t""yes" 1>&6
- IEEEFLAG="-mieee"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- echo "$ac_t""no" 1>&6
- fi
- rm -f conftest*
- CFLAGS=${ac_save_cflags}
-
- else
- cat > conftest.$ac_ext <<EOF
- #line 1103 "configure"
- #include "confdefs.h"
- #include <float.h>
- int main(void) {
- double one = 1.0;
- double zero = 0.0;
- if (one/zero > DBL_MAX) /* infinity */
- if (zero/zero != zero/zero) /* NaN */
- return 0;
- return 1;
- }
- EOF
- if { (eval echo configure:1117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- echo "$ac_t""yes" 1>&6
-
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- echo "$ac_t""no" 1>&6
- ac_save_cflags=${CFLAGS}
- CFLAGS=-mieee
-
- echo $ac_n "checking for full floating-point support with -mieee""... $ac_c" 1>&6
- echo "configure:1130: checking for full floating-point support with -mieee" >&5
- if test "$cross_compiling" = yes; then
- echo "$ac_t""unknown (cross-compiling)" 1>&6
- { echo "configure: error: *** INTERNAL CONFIGURE ERROR" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- #line 1137 "configure"
- #include "confdefs.h"
- #include <float.h>
- int main(void) {
- double one = 1.0;
- double zero = 0.0;
- if (one/zero > DBL_MAX) /* infinity */
- if (zero/zero != zero/zero) /* NaN */
- return 0;
- return 1;
- }
- EOF
- if { (eval echo configure:1151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- echo "$ac_t""yes" 1>&6
- IEEEFLAG="-mieee"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- echo "$ac_t""no" 1>&6
- echo "configure: warning: *** Incomplete floating-point support." 1>&2
- fi
- rm -fr conftest*
- fi
- CFLAGS=${ac_save_cflags}
- fi
- rm -fr conftest*
- fi
- CFLAGS="$CFLAGS $IEEEFLAG"
- # Set BINDIR
- if test -n "${bindir}"; then
- BINDIR="${bindir}"
- else
- BINDIR=/usr/local/bin
- fi
- # Set SRCDIR and DSTDIR
- # Extract the first word of "pwd", so it can be a program name with args.
- set dummy pwd; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:1188: checking for $ac_word" >&5
- case "$pwd" in
- /*)
- ac_cv_path_pwd="$pwd" # Let the user override the test with a path.
- ;;
- ?:/*)
- ac_cv_path_pwd="$pwd" # Let the user override the test with a dos path.
- ;;
- *)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_path_pwd="$ac_dir/$ac_word"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_path_pwd" && ac_cv_path_pwd="pwd"
- ;;
- esac
- pwd="$ac_cv_path_pwd"
- if test -n "$pwd"; then
- echo "$ac_t""$pwd" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- if test "$MINGW32" = yes ; then
- winpwd="pwd -W"
- else
- winpwd="$pwd"
- fi
- echo $ac_n "checking for source directory""... $ac_c" 1>&6
- echo "configure:1226: checking for source directory" >&5
- if test -z "$srcdir" ; then
- SRCDIR=`$pwd`
- else
- SRCDIR=`(cd "$srcdir" ; $pwd)`
- fi
- echo "$ac_t"""$SRCDIR"" 1>&6
- echo $ac_n "checking for build directory""... $ac_c" 1>&6
- echo "configure:1237: checking for build directory" >&5
- DSTDIR=`$pwd`
- WINDSTDIR=`$winpwd`
- echo "$ac_t"""$DSTDIR"" 1>&6
- # Set ARCH
- ARCH=
- if test -z "${host}"; then
- ARCH="unknown"
- else
- ARCH="${host}"
- fi
- # Use absolute path for aux directory so that install-sh works
- ac_aux_dir=
- for ac_dir in "$SRCDIR" $srcdir/"$SRCDIR"; do
- if test -f $ac_dir/install-sh; then
- ac_aux_dir=$ac_dir
- ac_install_sh="$ac_aux_dir/install-sh -c"
- break
- elif test -f $ac_dir/install.sh; then
- ac_aux_dir=$ac_dir
- ac_install_sh="$ac_aux_dir/install.sh -c"
- break
- fi
- done
- if test -z "$ac_aux_dir"; then
- { echo "configure: error: can not find install-sh or install.sh in "$SRCDIR" $srcdir/"$SRCDIR"" 1>&2; exit 1; }
- fi
- ac_config_guess=$ac_aux_dir/config.guess
- ac_config_sub=$ac_aux_dir/config.sub
- ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
- # Set GISBASE and GRASS_BIN
- GISBASE="${WINDSTDIR}/dist.${ARCH}"
- GRASS_BIN="${DSTDIR}/bin.${ARCH}"
- # Set GRASS_VERSION_*
- GRASS_VERSION_FILE=include/VERSION
- GRASS_VERSION_MAJOR=`sed -n 1p "${GRASS_VERSION_FILE}"`
- GRASS_VERSION_MINOR=`sed -n 2p "${GRASS_VERSION_FILE}"`
- GRASS_VERSION_RELEASE=`sed -n 3p "${GRASS_VERSION_FILE}"`
- GRASS_VERSION_DATE=`sed -n 4p "${GRASS_VERSION_FILE}"`
- GRASS_VERSION_NUMBER=`echo ${GRASS_VERSION_MAJOR}.${GRASS_VERSION_MINOR}.${GRASS_VERSION_RELEASE}`
- NAME_VER=`echo ${GRASS_VERSION_NUMBER} | sed 's/\..*//'`
- LIB_VER=`echo ${GRASS_VERSION_NUMBER} | sed 's/^\([0-9.]*\).*$/\1/'`
- GRASS_VERSION_GIT="exported"
- # Extract the first word of "git", so it can be a program name with args.
- set dummy git; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:1305: checking for $ac_word" >&5
- case "$GIT" in
- /*)
- ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
- ;;
- ?:/*)
- ac_cv_path_GIT="$GIT" # Let the user override the test with a dos path.
- ;;
- *)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_path_GIT="$ac_dir/$ac_word"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_path_GIT" && ac_cv_path_GIT="no"
- ;;
- esac
- GIT="$ac_cv_path_GIT"
- if test -n "$GIT"; then
- echo "$ac_t""$GIT" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- if test "$GIT" != "no" ; then
- GRASS_VERSION_GIT=`$GIT rev-parse --short HEAD 2>/dev/null`
- if test -z "$GRASS_VERSION_GIT"; then
- GRASS_VERSION_GIT="exported"
- fi
- fi
- # Check for MacOSX App
- # Check whether --enable-macosx-app or --disable-macosx-app was given.
- if test "${enable_macosx_app+set}" = set; then
- enableval="$enable_macosx_app"
- :
- else
- enable_macosx_app=no
- fi
- echo $ac_n "checking for MacOSX App""... $ac_c" 1>&6
- echo "configure:1364: checking for MacOSX App" >&5
- case "$enable_macosx_app" in
- yes) MACOSX_APP=1 ;;
- no) MACOSX_APP= ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- echo "$ac_t"""$enable_macosx_app"" 1>&6
- # Check for MacOSX archs
- echo $ac_n "checking for MacOSX architectures""... $ac_c" 1>&6
- echo "configure:1376: checking for MacOSX architectures" >&5
- MACOSX_ARCHS=
- if test -z "$with_macosx_archs" ; then
- echo "$ac_t""no" 1>&6
- else
- for a in $with_macosx_archs
- do
- # check if valid arch?
- case "$a" in
- i386|ppc|x86_64|ppc64)
- MACOSX_ARCHS="$MACOSX_ARCHS -arch $a"
- ;;
- esac
- done
- echo "$ac_t""$MACOSX_ARCHS" 1>&6
- LDFLAGS="$LDFLAGS $MACOSX_ARCHS"
- CFLAGS="$CFLAGS $MACOSX_ARCHS"
- CXXFLAGS="$CXXFLAGS $MACOSX_ARCHS"
- fi
- # Done checking MacOSX archs
- # Check for MacOSX SDK
- echo $ac_n "checking for MacOSX SDK""... $ac_c" 1>&6
- echo "configure:1405: checking for MacOSX SDK" >&5
- MACOSX_SDK=
- if test -z "$with_macosx_sdk" ; then
- echo "$ac_t""no" 1>&6
- else
-
- ac_safe=`echo "$with_macosx_sdk/SDKSettings.plist" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $with_macosx_sdk/SDKSettings.plist""... $ac_c" 1>&6
- echo "configure:1415: checking for $with_macosx_sdk/SDKSettings.plist" >&5
- if test "$cross_compiling" = yes; then
- { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
- else
- if test -r $with_macosx_sdk/SDKSettings.plist; then
- eval "ac_cv_file_$ac_safe=yes"
- else
- eval "ac_cv_file_$ac_safe=no"
- fi
- fi
- if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
-
- MACOSX_SDK="-isysroot $with_macosx_sdk"
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** specified SDK does not exist or is not a SDK" 1>&2; exit 1; }
- fi
- LDFLAGS="$LDFLAGS $MACOSX_SDK"
- CFLAGS="$CFLAGS $MACOSX_SDK"
- CXXFLAGS="$CXXFLAGS $MACOSX_SDK"
- fi
- # Done checking MacOSX SDK
- # Set INST_DIR
- if test -n "$MACOSX_APP" ; then
- INSTDIR='${prefix}'"/GRASS-${GRASS_VERSION_MAJOR}.${GRASS_VERSION_MINOR}.app/Contents/MacOS"
- else
- INSTDIR='${prefix}'"/grass${GRASS_VERSION_MAJOR}${GRASS_VERSION_MINOR}"
- fi
- # Get flags for building shared libraries
- echo $ac_n "checking how to build libraries""... $ac_c" 1>&6
- echo "configure:1459: checking how to build libraries" >&5
- # Check whether --enable-shared or --disable-shared was given.
- if test "${enable_shared+set}" = set; then
- enableval="$enable_shared"
- shared_ok=$enableval
- else
- shared_ok=yes
- fi
- if test "${enable_shared+set}" = set; then
- enableval="$enable_shared"
- shared_ok=$enableval
- else
- shared_ok=yes
- fi
- if test "$shared_ok" = "yes" ; then
- echo "$ac_t""shared" 1>&6
- SHARED_BUILD=1
- GRASS_LIBRARY_TYPE='shlib'
- else
- echo "$ac_t""static" 1>&6
- SHARED_BUILD=0
- cat >> confdefs.h <<\EOF
- #define STATIC_BUILD 1
- EOF
- GRASS_LIBRARY_TYPE='stlib'
- fi
-
- ac_save_ldflags="$LDFLAGS"
- SHLIB_CFLAGS=""
- SHLIB_LD_FLAGS=""
- SHLIB_SUFFIX=""
- SHLIB_LD=""
- STLIB_LD='${AR} cr'
- STLIB_SUFFIX='.a'
- GRASS_TRIM_DOTS='`echo ${LIB_VER} | tr -d .`'
- GRASS_LIB_VERSIONS_OK=ok
- LDFLAGS=""
- LD_SEARCH_FLAGS=""
- LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
- case $host in
- *-linux-* | *-gnu* | *-kfreebsd*-gnu)
- SHLIB_CFLAGS="-fPIC"
- SHLIB_LD_FLAGS="-Wl,-soname,\$(notdir \$@)"
- SHLIB_SUFFIX=".so"
- SHLIB_LD="${CC} -shared"
- LDFLAGS="-Wl,--export-dynamic"
- LD_SEARCH_FLAGS='-Wl,-rpath-link,${LIB_RUNTIME_DIR}'
- LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
- ;;
- *-pc-cygwin)
- SHLIB_SUFFIX=".dll"
- SHLIB_LD="${CC} -shared"
- LDFLAGS="-Wl,--export-dynamic"
- LD_LIBRARY_PATH_VAR="PATH"
- ;;
- *-pc-mingw32 | *-w64-mingw32 | *-pc-msys)
- SHLIB_SUFFIX=".dll"
- SHLIB_LD="${CC} -shared"
- LDFLAGS="-Wl,--export-dynamic,--enable-runtime-pseudo-reloc"
- LD_LIBRARY_PATH_VAR="PATH"
- ;;
- *-apple-darwin*)
- SHLIB_CFLAGS="-fno-common"
- SHLIB_SUFFIX=".dylib"
- 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}"
- LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH"
- ;;
- *-sun-solaris*)
- # Note: If _REENTRANT isn't defined, then Solaris
- # won't define thread-safe library routines.
- cat >> confdefs.h <<\EOF
- #define _REENTRANT 1
- EOF
- cat >> confdefs.h <<\EOF
- #define _POSIX_PTHREAD_SEMANTICS 1
- EOF
- # Note: need the LIBS below, otherwise Tk won't find Tcl's
- # symbols when dynamically loaded into tclsh.
- if test "$GCC" = "yes" ; then
- SHLIB_CFLAGS="-fPIC"
- SHLIB_LD="$CC -shared"
- LD_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
- else
- SHLIB_CFLAGS="-KPIC"
- SHLIB_LD="/usr/ccs/bin/ld -G -z text"
- LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
- fi
- SHLIB_SUFFIX=".so"
- LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
- ;;
- *-solaris2*)
- # Note: Solaris is as of 2010 Oracle Solaris, not Sun Solaris
- # Oracle Solaris derives from Solaris 2
- # derives from SunOS 5
- # derives from UNIX System V Release 4
- # Note: If _REENTRANT isn't defined, then Solaris
- # won't define thread-safe library routines.
- cat >> confdefs.h <<\EOF
- #define _REENTRANT 1
- EOF
- cat >> confdefs.h <<\EOF
- #define _POSIX_PTHREAD_SEMANTICS 1
- EOF
- # Note: need the LIBS below, otherwise Tk won't find Tcl's
- # symbols when dynamically loaded into tclsh.
- if test "$GCC" = "yes" ; then
- SHLIB_CFLAGS="-fPIC"
- SHLIB_LD="$CC -shared"
- LD_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
- else
- SHLIB_CFLAGS="-KPIC"
- SHLIB_LD="/usr/ccs/bin/ld -G -z text"
- LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
- fi
- SHLIB_SUFFIX=".so"
- LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
- ;;
- *-freebsd*)
- # NOTE: only FreeBSD 4+ is supported
- # FreeBSD 3.* and greater have ELF.
- SHLIB_CFLAGS="-fPIC"
- #SHLIB_LD="ld -Bshareable -x"
- SHLIB_LD="${CC} -shared"
- SHLIB_SUFFIX=".so"
- LDFLAGS="-export-dynamic"
- #LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
- LD_SEARCH_FLAGS='-Wl,-rpath-link,${LIB_RUNTIME_DIR}'
- # TODO: add optional pthread support with any combination of:
- # CFLAGS="$CFLAGS -pthread"
- # LDFLAGS="$LDFLAGS -lpthread"
- # AC_DEFINE(_REENTRANT)
- # AC_DEFINE(_POSIX_PTHREAD_SEMANTICS)
- ;;
- *-netbsd*)
- # NetBSD has ELF.
- SHLIB_CFLAGS="-fPIC"
- SHLIB_LD="${CC} -shared"
- SHLIB_LD_LIBS="${LIBS}"
- LDFLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR} -export-dynamic'
- SHLIB_LD_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR} -export-dynamic'
- LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR} -L${LIB_RUNTIME_DIR}'
- # some older NetBSD versions do not handle version numbers with dots.
- #STLIB_SUFFIX='${GRASS_TRIM_DOTS}.a'
- #SHLIB_SUFFIX='${GRASS_TRIM_DOTS}.so'
- #GRASS_LIB_VERSIONS_OK=nodots
- # NetBSD 6 does handle version numbers with dots.
- STLIB_SUFFIX=".a"
- SHLIB_SUFFIX=".so"
- # TODO: add optional pthread support with any combination of:
- # CFLAGS="$CFLAGS -pthread"
- # LDFLAGS="$LDFLAGS -lpthread"
- # AC_DEFINE(_REENTRANT)
- # AC_DEFINE(_POSIX_PTHREAD_SEMANTICS)
- ;;
- *aix*)
- # NOTE: do we need to support aix < 6 ?
- LIBS="$LIBS -lc"
- SHLIB_CFLAGS=""
- LDFLAGS=""
- if test "$GCC" = "yes" ; then
- SHLIB_CFLAGS="-fPIC"
- SHLIB_LD="$CC -shared"
- LD_SEARCH_FLAGS='-Wl,-bsvr4,-R,${LIB_RUNTIME_DIR}'
- else
- # assume xlc
- SHLIB_CFLAGS="-qmkshrobj"
- SHLIB_LD="$CC -shared"
- LD_SEARCH_FLAGS='-Wl,-bsvr4,-R,${LIB_RUNTIME_DIR}'
- fi
- SHLIB_SUFFIX=".so"
- LD_LIBRARY_PATH_VAR="LIBPATH"
- GRASS_NEEDS_EXP_FILE=1
- GRASS_EXPORT_FILE_SUFFIX='${LIB_VER}.exp'
- ;;
- *)
- { echo "configure: error: ***Unknown platform: $host***" 1>&2; exit 1; }
- ;;
- esac
-
-
-
-
-
-
-
-
-
- LDFLAGS="${ac_save_ldflags} $LDFLAGS"
- # Enable options
- # Check whether --enable-w11 or --disable-w11 was given.
- if test "${enable_w11+set}" = set; then
- enableval="$enable_w11"
- :
- else
- enable_w11=no
- fi
- # With options
- # Check whether --with-cxx or --without-cxx was given.
- if test "${with_cxx+set}" = set; then
- withval="$with_cxx"
- :
- else
- with_cxx=yes
- fi
- #LOC_ARG_WITH(g77, GNU Fortran 77, no)
- # Check whether --with-macosx-archs or --without-macosx-archs was given.
- if test "${with_macosx_archs+set}" = set; then
- withval="$with_macosx_archs"
- :
- else
- with_macosx_archs="no"
- fi
- # Check whether --with-macosx-sdk or --without-macosx-sdk was given.
- if test "${with_macosx_sdk+set}" = set; then
- withval="$with_macosx_sdk"
- :
- else
- with_macosx_sdk="no"
- fi
- # Check whether --with-tiff or --without-tiff was given.
- if test "${with_tiff+set}" = set; then
- withval="$with_tiff"
- :
- else
- with_tiff=yes
- fi
- # Check whether --with-png or --without-png was given.
- if test "${with_png+set}" = set; then
- withval="$with_png"
- :
- else
- with_png=yes
- fi
- # Check whether --with-postgres or --without-postgres was given.
- if test "${with_postgres+set}" = set; then
- withval="$with_postgres"
- :
- else
- with_postgres=no
- fi
- # Check whether --with-mysql or --without-mysql was given.
- if test "${with_mysql+set}" = set; then
- withval="$with_mysql"
- :
- else
- with_mysql=no
- fi
- # Check whether --with-sqlite or --without-sqlite was given.
- if test "${with_sqlite+set}" = set; then
- withval="$with_sqlite"
- :
- else
- with_sqlite=yes
- fi
- # Check whether --with-opengl or --without-opengl was given.
- if test "${with_opengl+set}" = set; then
- withval="$with_opengl"
- :
- else
- with_opengl=yes
- fi
- # Check whether --with-odbc or --without-odbc was given.
- if test "${with_odbc+set}" = set; then
- withval="$with_odbc"
- :
- else
- with_odbc=no
- fi
- # Check whether --with-fftw or --without-fftw was given.
- if test "${with_fftw+set}" = set; then
- withval="$with_fftw"
- :
- else
- with_fftw=yes
- fi
- # Check whether --with-blas or --without-blas was given.
- if test "${with_blas+set}" = set; then
- withval="$with_blas"
- :
- else
- with_blas=no
- fi
- # Check whether --with-lapack or --without-lapack was given.
- if test "${with_lapack+set}" = set; then
- withval="$with_lapack"
- :
- else
- with_lapack=no
- fi
- # Check whether --with-cairo or --without-cairo was given.
- if test "${with_cairo+set}" = set; then
- withval="$with_cairo"
- :
- else
- with_cairo=yes
- fi
- # Check whether --with-freetype or --without-freetype was given.
- if test "${with_freetype+set}" = set; then
- withval="$with_freetype"
- :
- else
- with_freetype=yes
- fi
- # Check whether --with-nls or --without-nls was given.
- if test "${with_nls+set}" = set; then
- withval="$with_nls"
- :
- else
- with_nls=no
- fi
- # Check whether --with-readline or --without-readline was given.
- if test "${with_readline+set}" = set; then
- withval="$with_readline"
- :
- else
- with_readline=no
- fi
- # Check whether --with-opendwg or --without-opendwg was given.
- if test "${with_opendwg+set}" = set; then
- withval="$with_opendwg"
- :
- else
- with_opendwg=no
- fi
- # Check whether --with-regex or --without-regex was given.
- if test "${with_regex+set}" = set; then
- withval="$with_regex"
- :
- else
- with_regex=yes
- fi
- # Check whether --with-pthread or --without-pthread was given.
- if test "${with_pthread+set}" = set; then
- withval="$with_pthread"
- :
- else
- with_pthread=no
- fi
- # Check whether --with-openmp or --without-openmp was given.
- if test "${with_openmp+set}" = set; then
- withval="$with_openmp"
- :
- else
- with_openmp=no
- fi
- # Check whether --with-opencl or --without-opencl was given.
- if test "${with_opencl+set}" = set; then
- withval="$with_opencl"
- :
- else
- with_opencl=no
- fi
- # Check whether --with-bzlib or --without-bzlib was given.
- if test "${with_bzlib+set}" = set; then
- withval="$with_bzlib"
- :
- else
- with_bzlib=no
- fi
- # Check whether --with-zstd or --without-zstd was given.
- if test "${with_zstd+set}" = set; then
- withval="$with_zstd"
- :
- else
- with_zstd=yes
- fi
- # Check whether --with-gdal or --without-gdal was given.
- if test "${with_gdal+set}" = set; then
- withval="$with_gdal"
- :
- fi
- # Check whether --with-liblas or --without-liblas was given.
- if test "${with_liblas+set}" = set; then
- withval="$with_liblas"
- :
- else
- with_liblas="no"
- fi
- # Check whether --with-pdal or --without-pdal was given.
- if test "${with_pdal+set}" = set; then
- withval="$with_pdal"
- :
- else
- with_pdal="no"
- fi
- # Check whether --with-wxwidgets or --without-wxwidgets was given.
- if test "${with_wxwidgets+set}" = set; then
- withval="$with_wxwidgets"
- :
- else
- with_wxwidgets="no"
- fi
- # Check whether --with-netcdf or --without-netcdf was given.
- if test "${with_netcdf+set}" = set; then
- withval="$with_netcdf"
- :
- else
- with_netcdf="no"
- fi
- # With includes and libs options
- # Check whether --with-geos or --without-geos was given.
- if test "${with_geos+set}" = set; then
- withval="$with_geos"
- :
- else
- with_geos="no"
- fi
- # Check whether --with-includes or --without-includes was given.
- if test "${with_includes+set}" = set; then
- withval="$with_includes"
- :
- fi
- # Check whether --with-libs or --without-libs was given.
- if test "${with_libs+set}" = set; then
- withval="$with_libs"
- :
- fi
- # Check whether --with-zlib-includes or --without-zlib-includes was given.
- if test "${with_zlib_includes+set}" = set; then
- withval="$with_zlib_includes"
- :
- fi
- # Check whether --with-zlib-libs or --without-zlib-libs was given.
- if test "${with_zlib_libs+set}" = set; then
- withval="$with_zlib_libs"
- :
- fi
- # Check whether --with-bzlib-includes or --without-bzlib-includes was given.
- if test "${with_bzlib_includes+set}" = set; then
- withval="$with_bzlib_includes"
- :
- fi
- # Check whether --with-bzlib-libs or --without-bzlib-libs was given.
- if test "${with_bzlib_libs+set}" = set; then
- withval="$with_bzlib_libs"
- :
- fi
- # Check whether --with-zstd-includes or --without-zstd-includes was given.
- if test "${with_zstd_includes+set}" = set; then
- withval="$with_zstd_includes"
- :
- fi
- # Check whether --with-zstd-libs or --without-zstd-libs was given.
- if test "${with_zstd_libs+set}" = set; then
- withval="$with_zstd_libs"
- :
- fi
- # Check whether --with-readline-includes or --without-readline-includes was given.
- if test "${with_readline_includes+set}" = set; then
- withval="$with_readline_includes"
- :
- fi
- # Check whether --with-readline-libs or --without-readline-libs was given.
- if test "${with_readline_libs+set}" = set; then
- withval="$with_readline_libs"
- :
- fi
- # Check whether --with-tiff-includes or --without-tiff-includes was given.
- if test "${with_tiff_includes+set}" = set; then
- withval="$with_tiff_includes"
- :
- fi
- # Check whether --with-tiff-libs or --without-tiff-libs was given.
- if test "${with_tiff_libs+set}" = set; then
- withval="$with_tiff_libs"
- :
- fi
- # Check whether --with-png-includes or --without-png-includes was given.
- if test "${with_png_includes+set}" = set; then
- withval="$with_png_includes"
- :
- fi
- # Check whether --with-png-libs or --without-png-libs was given.
- if test "${with_png_libs+set}" = set; then
- withval="$with_png_libs"
- :
- fi
- # Check whether --with-postgres-includes or --without-postgres-includes was given.
- if test "${with_postgres_includes+set}" = set; then
- withval="$with_postgres_includes"
- :
- fi
- # Check whether --with-postgres-libs or --without-postgres-libs was given.
- if test "${with_postgres_libs+set}" = set; then
- withval="$with_postgres_libs"
- :
- fi
- # Check whether --with-mysql-includes or --without-mysql-includes was given.
- if test "${with_mysql_includes+set}" = set; then
- withval="$with_mysql_includes"
- :
- fi
- # Check whether --with-mysql-libs or --without-mysql-libs was given.
- if test "${with_mysql_libs+set}" = set; then
- withval="$with_mysql_libs"
- :
- fi
- # Check whether --with-sqlite-includes or --without-sqlite-includes was given.
- if test "${with_sqlite_includes+set}" = set; then
- withval="$with_sqlite_includes"
- :
- fi
- # Check whether --with-sqlite-libs or --without-sqlite-libs was given.
- if test "${with_sqlite_libs+set}" = set; then
- withval="$with_sqlite_libs"
- :
- fi
- # Check whether --with-opengl-includes or --without-opengl-includes was given.
- if test "${with_opengl_includes+set}" = set; then
- withval="$with_opengl_includes"
- :
- fi
- # Check whether --with-opengl-libs or --without-opengl-libs was given.
- if test "${with_opengl_libs+set}" = set; then
- withval="$with_opengl_libs"
- :
- fi
- # Check whether --with-opengl-framework or --without-opengl-framework was given.
- if test "${with_opengl_framework+set}" = set; then
- withval="$with_opengl_framework"
- :
- fi
- # Check whether --with-odbc-includes or --without-odbc-includes was given.
- if test "${with_odbc_includes+set}" = set; then
- withval="$with_odbc_includes"
- :
- fi
- # Check whether --with-odbc-libs or --without-odbc-libs was given.
- if test "${with_odbc_libs+set}" = set; then
- withval="$with_odbc_libs"
- :
- fi
- # Check whether --with-fftw-includes or --without-fftw-includes was given.
- if test "${with_fftw_includes+set}" = set; then
- withval="$with_fftw_includes"
- :
- fi
- # Check whether --with-fftw-libs or --without-fftw-libs was given.
- if test "${with_fftw_libs+set}" = set; then
- withval="$with_fftw_libs"
- :
- fi
- # Check whether --with-blas-includes or --without-blas-includes was given.
- if test "${with_blas_includes+set}" = set; then
- withval="$with_blas_includes"
- :
- fi
- # Check whether --with-blas-libs or --without-blas-libs was given.
- if test "${with_blas_libs+set}" = set; then
- withval="$with_blas_libs"
- :
- fi
- # Check whether --with-lapack-includes or --without-lapack-includes was given.
- if test "${with_lapack_includes+set}" = set; then
- withval="$with_lapack_includes"
- :
- fi
- # Check whether --with-lapack-libs or --without-lapack-libs was given.
- if test "${with_lapack_libs+set}" = set; then
- withval="$with_lapack_libs"
- :
- fi
- # Check whether --with-cairo-includes or --without-cairo-includes was given.
- if test "${with_cairo_includes+set}" = set; then
- withval="$with_cairo_includes"
- :
- fi
- # Check whether --with-cairo-libs or --without-cairo-libs was given.
- if test "${with_cairo_libs+set}" = set; then
- withval="$with_cairo_libs"
- :
- fi
- # Check whether --with-cairo-ldflags or --without-cairo-ldflags was given.
- if test "${with_cairo_ldflags+set}" = set; then
- withval="$with_cairo_ldflags"
- :
- fi
- # Check whether --with-freetype-includes or --without-freetype-includes was given.
- if test "${with_freetype_includes+set}" = set; then
- withval="$with_freetype_includes"
- :
- fi
- # Check whether --with-freetype-libs or --without-freetype-libs was given.
- if test "${with_freetype_libs+set}" = set; then
- withval="$with_freetype_libs"
- :
- fi
- # Check whether --with-proj-includes or --without-proj-includes was given.
- if test "${with_proj_includes+set}" = set; then
- withval="$with_proj_includes"
- :
- fi
- # Check whether --with-proj-libs or --without-proj-libs was given.
- if test "${with_proj_libs+set}" = set; then
- withval="$with_proj_libs"
- :
- fi
- # Check whether --with-proj-share or --without-proj-share was given.
- if test "${with_proj_share+set}" = set; then
- withval="$with_proj_share"
- :
- fi
- # Check whether --with-opendwg-includes or --without-opendwg-includes was given.
- if test "${with_opendwg_includes+set}" = set; then
- withval="$with_opendwg_includes"
- :
- fi
- # Check whether --with-opendwg-libs or --without-opendwg-libs was given.
- if test "${with_opendwg_libs+set}" = set; then
- withval="$with_opendwg_libs"
- :
- fi
- # Check whether --with-regex-includes or --without-regex-includes was given.
- if test "${with_regex_includes+set}" = set; then
- withval="$with_regex_includes"
- :
- fi
- # Check whether --with-regex-libs or --without-regex-libs was given.
- if test "${with_regex_libs+set}" = set; then
- withval="$with_regex_libs"
- :
- fi
- # Check whether --with-pthread-includes or --without-pthread-includes was given.
- if test "${with_pthread_includes+set}" = set; then
- withval="$with_pthread_includes"
- :
- fi
- # Check whether --with-pthread-libs or --without-pthread-libs was given.
- if test "${with_pthread_libs+set}" = set; then
- withval="$with_pthread_libs"
- :
- fi
- # Check whether --with-openmp-includes or --without-openmp-includes was given.
- if test "${with_openmp_includes+set}" = set; then
- withval="$with_openmp_includes"
- :
- fi
- # Check whether --with-openmp-libs or --without-openmp-libs was given.
- if test "${with_openmp_libs+set}" = set; then
- withval="$with_openmp_libs"
- :
- fi
- # Check whether --with-opencl-includes or --without-opencl-includes was given.
- if test "${with_opencl_includes+set}" = set; then
- withval="$with_opencl_includes"
- :
- fi
- # Check whether --with-opencl-libs or --without-opencl-libs was given.
- if test "${with_opencl_libs+set}" = set; then
- withval="$with_opencl_libs"
- :
- fi
- #LOC_ARG_WITH_FRAMEWORK(opencl, OpenCL)
- # Put this early on so CPPFLAGS and LDFLAGS have any additional dirs
- # With includes option
- # Handle Fortran compiler choice
- #LOC_CHECK_USE(g77, GNU Fortran 77, USE_G77)
- # Done checking fortran
- echo $ac_n "checking for additional include dirs""... $ac_c" 1>&6
- echo "configure:2392: checking for additional include dirs" >&5
- case "$with_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to list --with-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_includes" 1>&6
- if test -n "$with_includes"; then
- for dir in $with_includes; do
- if test -d "$dir"; then
- INCLUDE_DIRS="$INCLUDE_DIRS -I$dir"
- else
- { echo "configure: error: *** Include directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS="$CPPFLAGS $INCLUDE_DIRS"
- fi
- # With libs option
- echo $ac_n "checking for additional library dirs""... $ac_c" 1>&6
- echo "configure:2415: checking for additional library dirs" >&5
- case "$with_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory list to --with-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_libs" 1>&6
- if test -n "$with_libs"; then
- for dir in $with_libs; do
- if test -d "$dir"; then
- LIBRARY_DIRS="$LIBRARY_DIRS -L$dir"
- else
- { echo "configure: error: *** Library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- LDFLAGS="$LDFLAGS $LIBRARY_DIRS"
- fi
- # Programs and standard headers, libraries, functions
- # Find a good install program. We prefer a C program (faster),
- # so one script is as good as another. But avoid the broken or
- # incompatible versions:
- # SysV /etc/install, /usr/sbin/install
- # SunOS /usr/etc/install
- # IRIX /sbin/install
- # AIX /bin/install
- # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
- # AFS /usr/afsws/bin/install, which mishandles nonexistent args
- # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
- # ./install, which can be erroneously created by make from ./install.sh.
- echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
- echo "configure:2449: checking for a BSD compatible install" >&5
- if test -z "$INSTALL"; then
- IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
- for ac_dir in $PATH; do
- # Account for people who put trailing slashes in PATH elements.
- case "$ac_dir/" in
- /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
- *)
- # OSF1 and SCO ODT 3.0 have their own names for install.
- # Don't use installbsd from OSF since it installs stuff as root
- # by default.
- for ac_prog in ginstall scoinst install; do
- if test -f $ac_dir/$ac_prog; then
- if test $ac_prog = install &&
- grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
- # AIX install. It has an incompatible calling convention.
- :
- else
- ac_cv_path_install="$ac_dir/$ac_prog -c"
- break 2
- fi
- fi
- done
- ;;
- esac
- done
- IFS="$ac_save_IFS"
- if test "${ac_cv_path_install+set}" = set; then
- INSTALL="$ac_cv_path_install"
- else
- # As a last resort, use the slow shell script. We don't cache a
- # path for INSTALL within a source directory, because that will
- # break other packages using the cache if that directory is
- # removed, or if the path is relative.
- INSTALL="$ac_install_sh"
- fi
- fi
- echo "$ac_t""$INSTALL" 1>&6
- # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
- # It thinks the first close brace ends the variable substitution.
- test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
- test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
- test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
- # Extract the first word of "flex", so it can be a program name with args.
- set dummy flex; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:2502: checking for $ac_word" >&5
- if test -n "$LEX"; then
- ac_cv_prog_LEX="$LEX" # Let the user override the test.
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_LEX="flex"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
- fi
- LEX="$ac_cv_prog_LEX"
- if test -n "$LEX"; then
- echo "$ac_t""$LEX" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- if test -z "$LEXLIB"
- then
- case "$LEX" in
- flex*) ac_lib=fl ;;
- *) ac_lib=l ;;
- esac
- echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
- echo "configure:2533: checking for yywrap in -l$ac_lib" >&5
- ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-l$ac_lib $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 2539 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char yywrap();
- int main() {
- yywrap()
- ; return 0; }
- EOF
- if { (eval echo configure:2550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- LEXLIB="-l$ac_lib"
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- if test "$LEX" = "lex"; then
- # Extract the first word of "lex", so it can be a program name with args.
- set dummy lex; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:2575: checking for $ac_word" >&5
- case "$LEXPATH" in
- /*)
- ac_cv_path_LEXPATH="$LEXPATH" # Let the user override the test with a path.
- ;;
- ?:/*)
- ac_cv_path_LEXPATH="$LEXPATH" # Let the user override the test with a dos path.
- ;;
- *)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_path_LEXPATH="$ac_dir/$ac_word"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_path_LEXPATH" && ac_cv_path_LEXPATH="no"
- ;;
- esac
- LEXPATH="$ac_cv_path_LEXPATH"
- if test -n "$LEXPATH"; then
- echo "$ac_t""$LEXPATH" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- if test "$LEXPATH" = "no"; then
- { echo "configure: error: *** Unable to locate lex." 1>&2; exit 1; }
- fi
- fi
- for ac_prog in 'bison -y' byacc
- do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
- set dummy $ac_prog; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:2615: checking for $ac_word" >&5
- if test -n "$YACC"; then
- ac_cv_prog_YACC="$YACC" # Let the user override the test.
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_YACC="$ac_prog"
- break
- fi
- done
- IFS="$ac_save_ifs"
- fi
- YACC="$ac_cv_prog_YACC"
- if test -n "$YACC"; then
- echo "$ac_t""$YACC" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- test -n "$YACC" && break
- done
- test -n "$YACC" || YACC="yacc"
- if test "$YACC" = "yacc"; then
- # Extract the first word of "yacc", so it can be a program name with args.
- set dummy yacc; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:2646: checking for $ac_word" >&5
- case "$YACCPATH" in
- /*)
- ac_cv_path_YACCPATH="$YACCPATH" # Let the user override the test with a path.
- ;;
- ?:/*)
- ac_cv_path_YACCPATH="$YACCPATH" # Let the user override the test with a dos path.
- ;;
- *)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_path_YACCPATH="$ac_dir/$ac_word"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_path_YACCPATH" && ac_cv_path_YACCPATH="no"
- ;;
- esac
- YACCPATH="$ac_cv_path_YACCPATH"
- if test -n "$YACCPATH"; then
- echo "$ac_t""$YACCPATH" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- if test "$YACCPATH" = "no"; then
- { echo "configure: error: *** Unable to locate yacc." 1>&2; exit 1; }
- fi
- fi
- # Extract the first word of "ranlib", so it can be a program name with args.
- set dummy ranlib; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:2684: checking for $ac_word" >&5
- if test -n "$RANLIB"; then
- ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_RANLIB="ranlib"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
- fi
- RANLIB="$ac_cv_prog_RANLIB"
- if test -n "$RANLIB"; then
- echo "$ac_t""$RANLIB" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- for ac_prog in ar
- do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
- set dummy $ac_prog; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:2713: checking for $ac_word" >&5
- if test -n "$AR"; then
- ac_cv_prog_AR="$AR" # Let the user override the test.
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_AR="$ac_prog"
- break
- fi
- done
- IFS="$ac_save_ifs"
- fi
- AR="$ac_cv_prog_AR"
- if test -n "$AR"; then
- echo "$ac_t""$AR" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- test -n "$AR" && break
- done
- for ac_prog in env
- do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
- set dummy $ac_prog; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:2744: checking for $ac_word" >&5
- if test -n "$ENV"; then
- ac_cv_prog_ENV="$ENV" # Let the user override the test.
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_ENV="$ac_prog"
- break
- fi
- done
- IFS="$ac_save_ifs"
- fi
- ENV="$ac_cv_prog_ENV"
- if test -n "$ENV"; then
- echo "$ac_t""$ENV" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- test -n "$ENV" && break
- done
- # Extract the first word of "perl", so it can be a program name with args.
- set dummy perl; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:2773: checking for $ac_word" >&5
- case "$PERL" in
- /*)
- ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
- ;;
- ?:/*)
- ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
- ;;
- *)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_path_PERL="$ac_dir/$ac_word"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
- ;;
- esac
- PERL="$ac_cv_path_PERL"
- if test -n "$PERL"; then
- echo "$ac_t""$PERL" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
-
- echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
- echo "configure:2804: checking how to run the C preprocessor" >&5
- # On Suns, sometimes $CPP names a directory.
- if test -n "$CPP" && test -d "$CPP"; then
- CPP=
- fi
- if test -z "$CPP"; then
- # This must be in double quotes, not single quotes, because CPP may get
- # substituted into the Makefile and "${CC-cc}" will confuse make.
- CPP="${CC-cc} -E"
- # On the NeXT, cc -E runs the code through the compiler's parser,
- # not just through cpp.
- cat > conftest.$ac_ext <<EOF
- #line 2817 "configure"
- #include "confdefs.h"
- #include <assert.h>
- Syntax Error
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:2823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- :
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- CPP="${CC-cc} -E -traditional-cpp"
- cat > conftest.$ac_ext <<EOF
- #line 2834 "configure"
- #include "confdefs.h"
- #include <assert.h>
- Syntax Error
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:2840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- :
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- CPP="${CC-cc} -nologo -E"
- cat > conftest.$ac_ext <<EOF
- #line 2851 "configure"
- #include "confdefs.h"
- #include <assert.h>
- Syntax Error
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:2857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- :
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- CPP=/lib/cpp
- fi
- rm -f conftest*
- fi
- rm -f conftest*
- fi
- rm -f conftest*
- ac_cv_prog_CPP="$CPP"
- CPP="$ac_cv_prog_CPP"
- else
- ac_cv_prog_CPP="$CPP"
- fi
- echo "$ac_t""$CPP" 1>&6
- echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
- echo "configure:2881: checking for ANSI C header files" >&5
- cat > conftest.$ac_ext <<EOF
- #line 2884 "configure"
- #include "confdefs.h"
- #include <stdlib.h>
- #include <stdarg.h>
- #include <string.h>
- #include <float.h>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:2892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- ac_cv_header_stdc=yes
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_header_stdc=no
- fi
- rm -f conftest*
- if test $ac_cv_header_stdc = yes; then
- # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
- cat > conftest.$ac_ext <<EOF
- #line 2909 "configure"
- #include "confdefs.h"
- #include <string.h>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "memchr" >/dev/null 2>&1; then
- :
- else
- rm -rf conftest*
- ac_cv_header_stdc=no
- fi
- rm -f conftest*
- fi
- if test $ac_cv_header_stdc = yes; then
- # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
- cat > conftest.$ac_ext <<EOF
- #line 2927 "configure"
- #include "confdefs.h"
- #include <stdlib.h>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "free" >/dev/null 2>&1; then
- :
- else
- rm -rf conftest*
- ac_cv_header_stdc=no
- fi
- rm -f conftest*
- fi
- if test $ac_cv_header_stdc = yes; then
- # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
- if test "$cross_compiling" = yes; then
- :
- else
- cat > conftest.$ac_ext <<EOF
- #line 2948 "configure"
- #include "confdefs.h"
- #include <ctype.h>
- #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
- #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
- #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
- int main () { int i; for (i = 0; i < 256; i++)
- if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
- exit (0); }
- EOF
- if { (eval echo configure:2959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- :
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_header_stdc=no
- fi
- rm -fr conftest*
- fi
- fi
- echo "$ac_t""$ac_cv_header_stdc" 1>&6
- if test $ac_cv_header_stdc = yes; then
- cat >> confdefs.h <<\EOF
- #define STDC_HEADERS 1
- EOF
- fi
- #AC_CHECK_HEADERS(curses.h limits.h termio.h termios.h unistd.h values.h)
- for ac_hdr in limits.h termio.h termios.h unistd.h values.h f2c.h g2c.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:2986: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 2989 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:2994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- for ac_hdr in sys/ioctl.h sys/mtio.h sys/resource.h sys/time.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:3023: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 3026 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:3031: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- for ac_hdr in sys/timeb.h sys/types.h sys/utsname.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:3060: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 3063 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:3068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- for ac_hdr in libintl.h iconv.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:3097: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 3100 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:3105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- for ac_hdr in langinfo.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:3134: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 3137 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:3142: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
- echo "configure:3168: checking whether time.h and sys/time.h may both be included" >&5
- cat > conftest.$ac_ext <<EOF
- #line 3171 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #include <sys/time.h>
- #include <time.h>
- int main() {
- struct tm *tp;
- ; return 0; }
- EOF
- if { (eval echo configure:3180: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_header_time=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_header_time=no
- fi
- rm -f conftest*
- echo "$ac_t""$ac_cv_header_time" 1>&6
- if test $ac_cv_header_time = yes; then
- cat >> confdefs.h <<\EOF
- #define TIME_WITH_SYS_TIME 1
- EOF
- fi
- echo $ac_n "checking for off_t""... $ac_c" 1>&6
- echo "configure:3200: checking for off_t" >&5
- cat > conftest.$ac_ext <<EOF
- #line 3203 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #if STDC_HEADERS
- #include <stdlib.h>
- #include <stddef.h>
- #endif
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
- rm -rf conftest*
- ac_cv_type_off_t=yes
- else
- rm -rf conftest*
- ac_cv_type_off_t=no
- fi
- rm -f conftest*
- echo "$ac_t""$ac_cv_type_off_t" 1>&6
- if test $ac_cv_type_off_t = no; then
- cat >> confdefs.h <<\EOF
- #define off_t long
- EOF
- fi
- echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
- echo "configure:3230: checking for uid_t in sys/types.h" >&5
- cat > conftest.$ac_ext <<EOF
- #line 3233 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "uid_t" >/dev/null 2>&1; then
- rm -rf conftest*
- ac_cv_type_uid_t=yes
- else
- rm -rf conftest*
- ac_cv_type_uid_t=no
- fi
- rm -f conftest*
- echo "$ac_t""$ac_cv_type_uid_t" 1>&6
- if test $ac_cv_type_uid_t = no; then
- cat >> confdefs.h <<\EOF
- #define uid_t int
- EOF
- cat >> confdefs.h <<\EOF
- #define gid_t int
- EOF
- fi
- echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
- echo "configure:3261: checking return type of signal handlers" >&5
- cat > conftest.$ac_ext <<EOF
- #line 3264 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #include <signal.h>
- #ifdef signal
- #undef signal
- #endif
- #ifdef __cplusplus
- extern "C" void (*signal (int, void (*)(int)))(int);
- #else
- void (*signal ()) ();
- #endif
- int main() {
- int i;
- ; return 0; }
- EOF
- if { (eval echo configure:3281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_type_signal=void
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_type_signal=int
- fi
- rm -f conftest*
- echo "$ac_t""$ac_cv_type_signal" 1>&6
- cat >> confdefs.h <<EOF
- #define RETSIGTYPE $ac_cv_type_signal
- EOF
- echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
- echo "configure:3299: checking for Cygwin environment" >&5
- cat > conftest.$ac_ext <<EOF
- #line 3302 "configure"
- #include "confdefs.h"
- int main() {
- #ifndef __CYGWIN__
- #define __CYGWIN__ __CYGWIN32__
- #endif
- return __CYGWIN__;
- ; return 0; }
- EOF
- if { (eval echo configure:3313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_cygwin=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_cygwin=no
- fi
- rm -f conftest*
- rm -f conftest*
- echo "$ac_t""$ac_cv_cygwin" 1>&6
- CYGWIN=
- test "$ac_cv_cygwin" = yes && CYGWIN=yes
- for ac_func in ftime gethostname gettimeofday lseek nice time uname
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:3331: checking for $ac_func" >&5
- cat > conftest.$ac_ext <<EOF
- #line 3334 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:3357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- for ac_func in seteuid setpriority setreuid setruid
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:3383: checking for $ac_func" >&5
- cat > conftest.$ac_ext <<EOF
- #line 3386 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:3409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- for ac_func in drand48
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:3435: checking for $ac_func" >&5
- cat > conftest.$ac_ext <<EOF
- #line 3438 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:3461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- for ac_func in putenv setenv
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:3487: checking for $ac_func" >&5
- cat > conftest.$ac_ext <<EOF
- #line 3490 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:3513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- for ac_func in nanosleep
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:3539: checking for $ac_func" >&5
- cat > conftest.$ac_ext <<EOF
- #line 3542 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:3565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- if test "$cross_compiling" != "yes" ; then
- echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
- echo "configure:3590: checking whether setpgrp takes no argument" >&5
- if test "$cross_compiling" = yes; then
- { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- #line 3596 "configure"
- #include "confdefs.h"
- #ifdef HAVE_UNISTD_H
- #include <unistd.h>
- #endif
- /*
- * If this system has a BSD-style setpgrp, which takes arguments, exit
- * successfully.
- */
- main()
- {
- if (setpgrp(1,1) == -1)
- exit(0);
- else
- exit(1);
- }
- EOF
- if { (eval echo configure:3616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- ac_cv_func_setpgrp_void=no
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_func_setpgrp_void=yes
- fi
- rm -fr conftest*
- fi
- echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
- if test $ac_cv_func_setpgrp_void = yes; then
- cat >> confdefs.h <<\EOF
- #define SETPGRP_VOID 1
- EOF
- fi
- else
- CROSS_COMPILING=1
- fi
- echo $ac_n "checking for long long int""... $ac_c" 1>&6
- echo "configure:3644: checking for long long int" >&5
- cat > conftest.$ac_ext <<EOF
- #line 3646 "configure"
- #include "confdefs.h"
- int main() {
- long long int x;
- ; return 0; }
- EOF
- if { (eval echo configure:3653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
-
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<\EOF
- #define HAVE_LONG_LONG_INT 1
- EOF
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
-
- echo "$ac_t""no" 1>&6
- fi
- rm -f conftest*
- echo $ac_n "checking for int64_t""... $ac_c" 1>&6
- echo "configure:3673: checking for int64_t" >&5
- cat > conftest.$ac_ext <<EOF
- #line 3675 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- int main() {
- int64_t x;
- ; return 0; }
- EOF
- if { (eval echo configure:3682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
-
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<\EOF
- #define HAVE_INT64_T 1
- EOF
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
-
- echo "$ac_t""no" 1>&6
- fi
- rm -f conftest*
- echo $ac_n "checking for W11""... $ac_c" 1>&6
- echo "configure:3702: checking for W11" >&5
- case "$enable_w11" in
- yes|no) echo "$ac_t"""$enable_w11"" 1>&6 ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- USE_X11=
- USE_W11=
- XLIB=
- XTLIB=
- if test "$enable_w11" = "yes" ; then
- X_CFLAGS=-I${SRCDIR}/display/drivers/windows/libW11
- X_LIBS='-L$(LIBDIR)'
-
-
- USE_W11="1"
- USE_X11="1"
- XLIB=-lX11
- CFLAGS="$CFLAGS -D__W98__"
- else
- # If we find X, set shell vars x_includes and x_libraries to the
- # paths, otherwise set no_x=yes.
- # Uses ac_ vars as temps to allow command line to override cache and checks.
- # --without-x overrides everything else, but does not touch the cache.
- echo $ac_n "checking for X""... $ac_c" 1>&6
- echo "configure:3730: checking for X" >&5
- # Check whether --with-x or --without-x was given.
- if test "${with_x+set}" = set; then
- withval="$with_x"
- :
- fi
- # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
- if test "x$with_x" = xno; then
- # The user explicitly disabled X.
- have_x=disabled
- else
- if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
- # Both variables are already set.
- have_x=yes
- else
- # One or both of the vars are not set, and there is no cached value.
- ac_x_includes=NO ac_x_libraries=NO
- rm -fr conftestdir
- if mkdir conftestdir; then
- cd conftestdir
- # Make sure to not put "make" in the Imakefile rules, since we grep it out.
- cat > Imakefile <<'EOF'
- acfindx:
- @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
- EOF
- if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
- # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
- eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
- # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
- for ac_extension in a so sl; do
- if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
- test -f $ac_im_libdir/libX11.$ac_extension; then
- ac_im_usrlibdir=$ac_im_libdir; break
- fi
- done
- # Screen out bogus values from the imake configuration. They are
- # bogus both because they are the default anyway, and because
- # using them would break gcc on systems where it needs fixed includes.
- case "$ac_im_incroot" in
- /usr/include) ;;
- *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
- esac
- case "$ac_im_usrlibdir" in
- /usr/lib | /lib) ;;
- *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
- esac
- fi
- cd ..
- rm -fr conftestdir
- fi
- if test "$ac_x_includes" = NO; then
- # Guess where to find include files, by looking for this one X11 .h file.
- test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
- # First, try using that file with no special directory specified.
- cat > conftest.$ac_ext <<EOF
- #line 3790 "configure"
- #include "confdefs.h"
- #include <$x_direct_test_include>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:3795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- # We can compile using X headers with no special include directory.
- ac_x_includes=
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- # Look for the header file in a standard set of common directories.
- # Check X11 before X11Rn because it is often a symlink to the current release.
- for ac_dir in \
- /usr/X11/include \
- /usr/X11R6/include \
- /usr/X11R5/include \
- /usr/X11R4/include \
- \
- /usr/include/X11 \
- /usr/include/X11R6 \
- /usr/include/X11R5 \
- /usr/include/X11R4 \
- \
- /usr/local/X11/include \
- /usr/local/X11R6/include \
- /usr/local/X11R5/include \
- /usr/local/X11R4/include \
- \
- /usr/local/include/X11 \
- /usr/local/include/X11R6 \
- /usr/local/include/X11R5 \
- /usr/local/include/X11R4 \
- \
- /usr/X386/include \
- /usr/x386/include \
- /usr/XFree86/include/X11 \
- \
- /usr/include \
- /usr/local/include \
- /usr/unsupported/include \
- /usr/athena/include \
- /usr/local/x11r5/include \
- /usr/lpp/Xamples/include \
- \
- /usr/openwin/include \
- /usr/openwin/share/include \
- ; \
- do
- if test -r "$ac_dir/$x_direct_test_include"; then
- ac_x_includes=$ac_dir
- break
- fi
- done
- fi
- rm -f conftest*
- fi # $ac_x_includes = NO
- if test "$ac_x_libraries" = NO; then
- # Check for the libraries.
- test -z "$x_direct_test_library" && x_direct_test_library=Xt
- test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
- # See if we find them without any special options.
- # Don't add to $LIBS permanently.
- ac_save_LIBS="$LIBS"
- LIBS="-l$x_direct_test_library $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 3864 "configure"
- #include "confdefs.h"
- int main() {
- ${x_direct_test_function}()
- ; return 0; }
- EOF
- if { (eval echo configure:3871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- LIBS="$ac_save_LIBS"
- # We can link X programs with no special library path.
- ac_x_libraries=
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- LIBS="$ac_save_LIBS"
- # First see if replacing the include by lib works.
- # Check X11 before X11Rn because it is often a symlink to the current release.
- for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
- /usr/X11/lib \
- /usr/X11R6/lib \
- /usr/X11R5/lib \
- /usr/X11R4/lib \
- \
- /usr/lib/X11 \
- /usr/lib/X11R6 \
- /usr/lib/X11R5 \
- /usr/lib/X11R4 \
- \
- /usr/local/X11/lib \
- /usr/local/X11R6/lib \
- /usr/local/X11R5/lib \
- /usr/local/X11R4/lib \
- \
- /usr/local/lib/X11 \
- /usr/local/lib/X11R6 \
- /usr/local/lib/X11R5 \
- /usr/local/lib/X11R4 \
- \
- /usr/X386/lib \
- /usr/x386/lib \
- /usr/XFree86/lib/X11 \
- \
- /usr/lib \
- /usr/local/lib \
- /usr/unsupported/lib \
- /usr/athena/lib \
- /usr/local/x11r5/lib \
- /usr/lpp/Xamples/lib \
- /lib/usr/lib/X11 \
- \
- /usr/openwin/lib \
- /usr/openwin/share/lib \
- ; \
- do
- for ac_extension in a so sl; do
- if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
- ac_x_libraries=$ac_dir
- break 2
- fi
- done
- done
- fi
- rm -f conftest*
- fi # $ac_x_libraries = NO
- if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
- # Didn't find X anywhere. Cache the known absence of X.
- ac_cv_have_x="have_x=no"
- else
- # Record where we found X for the cache.
- ac_cv_have_x="have_x=yes \
- ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
- fi
- fi
- eval "$ac_cv_have_x"
- fi # $with_x != no
- if test "$have_x" != yes; then
- echo "$ac_t""$have_x" 1>&6
- no_x=yes
- else
- # If each of the values was on the command line, it overrides each guess.
- test "x$x_includes" = xNONE && x_includes=$ac_x_includes
- test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
- # Update the cache value to reflect the command line values.
- ac_cv_have_x="have_x=yes \
- ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
- echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
- fi
- if test "$no_x" = yes; then
- # Not all programs may use this symbol, but it does not hurt to define it.
- cat >> confdefs.h <<\EOF
- #define X_DISPLAY_MISSING 1
- EOF
- X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
- else
- if test -n "$x_includes"; then
- X_CFLAGS="$X_CFLAGS -I$x_includes"
- fi
- # It would also be nice to do this for all -L options, not just this one.
- if test -n "$x_libraries"; then
- X_LIBS="$X_LIBS -L$x_libraries"
- # For Solaris; some versions of Sun CC require a space after -R and
- # others require no space. Words are not sufficient . . . .
- case "`(uname -sr) 2>/dev/null`" in
- "SunOS 5"*)
- echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
- echo "configure:3976: checking whether -R must be followed by a space" >&5
- ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
- cat > conftest.$ac_ext <<EOF
- #line 3979 "configure"
- #include "confdefs.h"
- int main() {
- ; return 0; }
- EOF
- if { (eval echo configure:3986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- ac_R_nospace=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_R_nospace=no
- fi
- rm -f conftest*
- if test $ac_R_nospace = yes; then
- echo "$ac_t""no" 1>&6
- X_LIBS="$X_LIBS -R$x_libraries"
- else
- LIBS="$ac_xsave_LIBS -R $x_libraries"
- cat > conftest.$ac_ext <<EOF
- #line 4002 "configure"
- #include "confdefs.h"
- int main() {
- ; return 0; }
- EOF
- if { (eval echo configure:4009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- ac_R_space=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_R_space=no
- fi
- rm -f conftest*
- if test $ac_R_space = yes; then
- echo "$ac_t""yes" 1>&6
- X_LIBS="$X_LIBS -R $x_libraries"
- else
- echo "$ac_t""neither works" 1>&6
- fi
- fi
- LIBS="$ac_xsave_LIBS"
- esac
- fi
- # Check for system-dependent libraries X programs must link with.
- # Do this before checking for the system-independent R6 libraries
- # (-lICE), since we may need -lsocket or whatever for X linking.
- if test "$ISC" = yes; then
- X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
- else
- # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
- # libraries were built with DECnet support. And karl@cs.umb.edu says
- # the Alpha needs dnet_stub (dnet does not exist).
- echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
- echo "configure:4041: checking for dnet_ntoa in -ldnet" >&5
- ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-ldnet $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 4047 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char dnet_ntoa();
- int main() {
- dnet_ntoa()
- ; return 0; }
- EOF
- if { (eval echo configure:4058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
- else
- echo "$ac_t""no" 1>&6
- fi
- if test $ac_cv_lib_dnet_dnet_ntoa = no; then
- echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
- echo "configure:4079: checking for dnet_ntoa in -ldnet_stub" >&5
- ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-ldnet_stub $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 4085 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char dnet_ntoa();
- int main() {
- dnet_ntoa()
- ; return 0; }
- EOF
- if { (eval echo configure:4096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
- # to get the SysV transport functions.
- # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
- # needs -lnsl.
- # The nsl library prevents programs from opening the X display
- # on Irix 5.2, according to dickey@clark.net.
- echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
- echo "configure:4124: checking for gethostbyname" >&5
- cat > conftest.$ac_ext <<EOF
- #line 4127 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char gethostbyname(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char gethostbyname();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
- choke me
- #else
- gethostbyname();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_gethostbyname=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_gethostbyname=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- :
- else
- echo "$ac_t""no" 1>&6
- fi
- if test $ac_cv_func_gethostbyname = no; then
- echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
- echo "configure:4170: checking for gethostbyname in -lnsl" >&5
- ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lnsl $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 4176 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char gethostbyname();
- int main() {
- gethostbyname()
- ; return 0; }
- EOF
- if { (eval echo configure:4187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- # lieder@skyler.mavd.honeywell.com says without -lsocket,
- # socket/setsockopt and other routines are undefined under SCO ODT
- # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
- # on later versions), says simon@lia.di.epfl.ch: it contains
- # gethostby* variants that don't use the nameserver (or something).
- # -lsocket must be given before -lnsl if both are needed.
- # We assume that if connect needs -lnsl, so does gethostbyname.
- echo $ac_n "checking for connect""... $ac_c" 1>&6
- echo "configure:4216: checking for connect" >&5
- cat > conftest.$ac_ext <<EOF
- #line 4219 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char connect(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char connect();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_connect) || defined (__stub___connect)
- choke me
- #else
- connect();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_connect=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_connect=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- :
- else
- echo "$ac_t""no" 1>&6
- fi
- if test $ac_cv_func_connect = no; then
- echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
- echo "configure:4262: checking for connect in -lsocket" >&5
- ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 4268 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char connect();
- int main() {
- connect()
- ; return 0; }
- EOF
- if { (eval echo configure:4279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
- echo $ac_n "checking for remove""... $ac_c" 1>&6
- echo "configure:4302: checking for remove" >&5
- cat > conftest.$ac_ext <<EOF
- #line 4305 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char remove(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char remove();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_remove) || defined (__stub___remove)
- choke me
- #else
- remove();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_remove=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_remove=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- :
- else
- echo "$ac_t""no" 1>&6
- fi
- if test $ac_cv_func_remove = no; then
- echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
- echo "configure:4348: checking for remove in -lposix" >&5
- ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lposix $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 4354 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char remove();
- int main() {
- remove()
- ; return 0; }
- EOF
- if { (eval echo configure:4365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
- echo $ac_n "checking for shmat""... $ac_c" 1>&6
- echo "configure:4388: checking for shmat" >&5
- cat > conftest.$ac_ext <<EOF
- #line 4391 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char shmat(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char shmat();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_shmat) || defined (__stub___shmat)
- choke me
- #else
- shmat();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_shmat=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_shmat=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- :
- else
- echo "$ac_t""no" 1>&6
- fi
- if test $ac_cv_func_shmat = no; then
- echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
- echo "configure:4434: checking for shmat in -lipc" >&5
- ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lipc $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 4440 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char shmat();
- int main() {
- shmat()
- ; return 0; }
- EOF
- if { (eval echo configure:4451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- fi
- # Check for libraries that X11R6 Xt/Xaw programs need.
- ac_save_LDFLAGS="$LDFLAGS"
- test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
- # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
- # check for ICE first), but we must link in the order -lSM -lICE or
- # we get undefined symbols. So assume we have SM if we have ICE.
- # These have to be linked with before -lX11, unlike the other
- # libraries we check for below, so use a different variable.
- # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
- echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
- echo "configure:4483: checking for IceConnectionNumber in -lICE" >&5
- ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lICE $X_EXTRA_LIBS $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 4489 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char IceConnectionNumber();
- int main() {
- IceConnectionNumber()
- ; return 0; }
- EOF
- if { (eval echo configure:4500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
- else
- echo "$ac_t""no" 1>&6
- fi
- LDFLAGS="$ac_save_LDFLAGS"
- fi
- if test "$no_x" != "yes"; then
- USE_X11="1"
- XLIB=-lX11
- XTLIB=-lXt
- fi
- fi
- # Note that some systems (FreeBSD for example) need an extra library for
- # cuserid
- ac_save_libs="$LIBS"
- LIBS=""
- echo $ac_n "checking for library containing cuserid""... $ac_c" 1>&6
- echo "configure:4540: checking for library containing cuserid" >&5
- ac_func_search_save_LIBS="$LIBS"
- ac_cv_search_cuserid="no"
- cat > conftest.$ac_ext <<EOF
- #line 4545 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char cuserid();
- int main() {
- cuserid()
- ; return 0; }
- EOF
- if { (eval echo configure:4556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- ac_cv_search_cuserid="none required"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -f conftest*
- test "$ac_cv_search_cuserid" = "no" && for i in compat; do
- LIBS="-l$i $ac_func_search_save_LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 4567 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char cuserid();
- int main() {
- cuserid()
- ; return 0; }
- EOF
- if { (eval echo configure:4578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- ac_cv_search_cuserid="-l$i"
- break
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -f conftest*
- done
- LIBS="$ac_func_search_save_LIBS"
- echo "$ac_t""$ac_cv_search_cuserid" 1>&6
- if test "$ac_cv_search_cuserid" != "no"; then
- test "$ac_cv_search_cuserid" = "none required" || LIBS="$ac_cv_search_cuserid $LIBS"
-
- else :
-
- fi
- DBMIEXTRALIB="$LIBS"
- LIBS="$ac_save_libs"
- for ac_func in asprintf
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:4604: checking for $ac_func" >&5
- cat > conftest.$ac_ext <<EOF
- #line 4607 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- # Test if mathlib needs -lm flag or is included with libc
- echo $ac_n "checking for atan""... $ac_c" 1>&6
- echo "configure:4657: checking for atan" >&5
- cat > conftest.$ac_ext <<EOF
- #line 4660 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char atan(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char atan();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_atan) || defined (__stub___atan)
- choke me
- #else
- atan();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_atan=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_atan=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'atan`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- MATHLIB=
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for atan in -lm""... $ac_c" 1>&6
- echo "configure:4701: checking for atan in -lm" >&5
- ac_lib_var=`echo m'_'atan | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lm $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 4707 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char atan();
- int main() {
- atan()
- ; return 0; }
- EOF
- if { (eval echo configure:4718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- MATHLIB=-lm
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Failed check for math library." 1>&2; exit 1; }
- fi
- fi
- echo $ac_n "checking for dlsym""... $ac_c" 1>&6
- echo "configure:4745: checking for dlsym" >&5
- cat > conftest.$ac_ext <<EOF
- #line 4748 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char dlsym(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char dlsym();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_dlsym) || defined (__stub___dlsym)
- choke me
- #else
- dlsym();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_dlsym=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_dlsym=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'dlsym`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- DLLIB=
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for dlsym in -ldl""... $ac_c" 1>&6
- echo "configure:4789: checking for dlsym in -ldl" >&5
- ac_lib_var=`echo dl'_'dlsym | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-ldl $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 4795 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char dlsym();
- int main() {
- dlsym()
- ; return 0; }
- EOF
- if { (eval echo configure:4806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- DLLIB=-ldl
- else
- echo "$ac_t""no" 1>&6
- DLLIB=
- fi
- fi
- echo $ac_n "checking for iconv""... $ac_c" 1>&6
- echo "configure:4833: checking for iconv" >&5
- cat > conftest.$ac_ext <<EOF
- #line 4836 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char iconv(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char iconv();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_iconv) || defined (__stub___iconv)
- choke me
- #else
- iconv();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_iconv=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_iconv=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'iconv`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ICONVLIB=
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
- echo "configure:4877: checking for iconv in -liconv" >&5
- ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-liconv $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 4883 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char iconv();
- int main() {
- iconv()
- ; return 0; }
- EOF
- if { (eval echo configure:4894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ICONVLIB=-liconv
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for iconv in -lgiconv""... $ac_c" 1>&6
- echo "configure:4913: checking for iconv in -lgiconv" >&5
- ac_lib_var=`echo giconv'_'iconv | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lgiconv $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 4919 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char iconv();
- int main() {
- iconv()
- ; return 0; }
- EOF
- if { (eval echo configure:4930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ICONVLIB=-lgiconv
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for libiconv""... $ac_c" 1>&6
- echo "configure:4949: checking for libiconv" >&5
- cat > conftest.$ac_ext <<EOF
- #line 4952 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char libiconv(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char libiconv();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_libiconv) || defined (__stub___libiconv)
- choke me
- #else
- libiconv();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_libiconv=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_libiconv=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'libiconv`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ICONVLIB=
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for libiconv in -liconv""... $ac_c" 1>&6
- echo "configure:4993: checking for libiconv in -liconv" >&5
- ac_lib_var=`echo iconv'_'libiconv | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-liconv $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 4999 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char libiconv();
- int main() {
- libiconv()
- ; return 0; }
- EOF
- if { (eval echo configure:5010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ICONVLIB=-liconv
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for libiconv in -lgiconv""... $ac_c" 1>&6
- echo "configure:5029: checking for libiconv in -lgiconv" >&5
- ac_lib_var=`echo giconv'_'libiconv | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lgiconv $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 5035 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char libiconv();
- int main() {
- libiconv()
- ; return 0; }
- EOF
- if { (eval echo configure:5046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ICONVLIB=-lgiconv
- else
- echo "$ac_t""no" 1>&6
- echo "configure: warning: *** Unable to locate iconv() function." 1>&2
- ICONVLIB=
- fi
- fi
- fi
- fi
- fi
- fi
- have_socket=1
- echo $ac_n "checking for socket""... $ac_c" 1>&6
- echo "configure:5083: checking for socket" >&5
- cat > conftest.$ac_ext <<EOF
- #line 5086 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char socket(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char socket();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_socket) || defined (__stub___socket)
- choke me
- #else
- socket();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:5109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_socket=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_socket=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- SOCKLIB=
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
- echo "configure:5127: checking for socket in -lsocket" >&5
- ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lsocket $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 5133 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char socket();
- int main() {
- socket()
- ; return 0; }
- EOF
- if { (eval echo configure:5144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- SOCKLIB=-lsocket
- else
- echo "$ac_t""no" 1>&6
- have_socket=0
- echo "configure: warning: *** Unable to locate socket() function." 1>&2
- fi
- fi
- if test "$have_socket" = 1 ; then
- HAVE_SOCKET=1
- cat >> confdefs.h <<\EOF
- #define HAVE_SOCKET 1
- EOF
- else
- HAVE_SOCKET=
- fi
- # Mandatory zlib dependency
- ZLIBLIBPATH=
- ZLIBINCPATH=
- ZLIB=
- # With zlib includes directory
- echo $ac_n "checking for location of zlib includes""... $ac_c" 1>&6
- echo "configure:5192: checking for location of zlib includes" >&5
- case "$with_zlib_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-zlib-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_zlib_includes" 1>&6
- if test -n "$with_zlib_includes" ; then
- for dir in $with_zlib_includes; do
- if test -d "$dir"; then
- ZLIBINCPATH="$ZLIBINCPATH -I$dir"
- else
- { echo "configure: error: *** zlib includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$ZLIBINCPATH $CPPFLAGS"
- for ac_hdr in zlib.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:5218: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 5221 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:5226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate zlib includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- # With zlib library directory
- echo $ac_n "checking for location of zlib library""... $ac_c" 1>&6
- echo "configure:5260: checking for location of zlib library" >&5
- case "$with_zlib_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-zlib-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_zlib_libs" 1>&6
- if test -n "$with_zlib_libs"; then
- for dir in $with_zlib_libs; do
- if test -d "$dir"; then
- ZLIBLIBPATH="$ZLIBLIBPATH -L$dir"
- else
- { echo "configure: error: *** zlib library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$ZLIBLIBPATH $LDFLAGS"
- echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
- echo "configure:5285: checking for deflate in -lz" >&5
- ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lz $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 5291 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char deflate();
- int main() {
- deflate()
- ; return 0; }
- EOF
- if { (eval echo configure:5302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ZLIB="$ZLIB -lz "
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate zlib library." 1>&2; exit 1; }
- fi
- LDFLAGS=${ac_save_ldflags}
- #
- # Done checking zlib
- # bzip2 support
- BZIP2LIBPATH=
- BZIP2INCPATH=
- BZIP2LIB=
- echo $ac_n "checking whether to use bzlib""... $ac_c" 1>&6
- echo "configure:5348: checking whether to use bzlib" >&5
- echo "$ac_t"""$with_bzlib"" 1>&6
- case "$with_bzlib" in
- "no") USE_BZIP2= ;;
- "yes") USE_BZIP2="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- if test -n "$USE_BZIP2"; then
- # With bzip2 includes directory
- echo $ac_n "checking for location of bzlib includes""... $ac_c" 1>&6
- echo "configure:5364: checking for location of bzlib includes" >&5
- case "$with_bzlib_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-bzlib-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_bzlib_includes" 1>&6
- if test -n "$with_bzlib_includes" ; then
- for dir in $with_bzlib_includes; do
- if test -d "$dir"; then
- BZIP2INCPATH="$BZIP2INCPATH -I$dir"
- else
- { echo "configure: error: *** bzlib includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$BZIP2INCPATH $CPPFLAGS"
- for ac_hdr in bzlib.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:5390: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 5393 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:5398: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate bzlib includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- # With bzip2 library directory
- echo $ac_n "checking for location of bzlib library""... $ac_c" 1>&6
- echo "configure:5432: checking for location of bzlib library" >&5
- case "$with_bzlib_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-bzlib-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_bzlib_libs" 1>&6
- if test -n "$with_bzlib_libs"; then
- for dir in $with_bzlib_libs; do
- if test -d "$dir"; then
- BZIP2LIBPATH="$BZIP2LIBPATH -L$dir"
- else
- { echo "configure: error: *** bzlib library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$BZIP2LIBPATH $LDFLAGS"
- echo $ac_n "checking for BZ2_bzBuffToBuffCompress in -lbz2""... $ac_c" 1>&6
- echo "configure:5457: checking for BZ2_bzBuffToBuffCompress in -lbz2" >&5
- ac_lib_var=`echo bz2'_'BZ2_bzBuffToBuffCompress | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lbz2 $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 5463 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char BZ2_bzBuffToBuffCompress();
- int main() {
- BZ2_bzBuffToBuffCompress()
- ; return 0; }
- EOF
- if { (eval echo configure:5474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- BZIP2LIB="$BZIP2LIB -lbz2 "
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate bzlib library." 1>&2; exit 1; }
- fi
- LDFLAGS=${ac_save_ldflags}
- #
- fi # $USE_BZIP2
- # Done checking bzip2
- # zstd support
- ZSTDLIBPATH=
- ZSTDINCPATH=
- ZSTDLIB=
- echo $ac_n "checking whether to use zstd""... $ac_c" 1>&6
- echo "configure:5522: checking whether to use zstd" >&5
- echo "$ac_t"""$with_zstd"" 1>&6
- case "$with_zstd" in
- "no") USE_ZSTD= ;;
- "yes") USE_ZSTD="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- if test -n "$USE_ZSTD"; then
- # With zstd includes directory
- echo $ac_n "checking for location of zstd includes""... $ac_c" 1>&6
- echo "configure:5538: checking for location of zstd includes" >&5
- case "$with_zstd_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-zstd-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_zstd_includes" 1>&6
- if test -n "$with_zstd_includes" ; then
- for dir in $with_zstd_includes; do
- if test -d "$dir"; then
- ZSTDINCPATH="$ZSTDINCPATH -I$dir"
- else
- { echo "configure: error: *** zstd includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$ZSTDINCPATH $CPPFLAGS"
- for ac_hdr in zstd.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:5563: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 5566 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:5571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate zstd includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- # With zstd library directory
- echo $ac_n "checking for location of zstd library""... $ac_c" 1>&6
- echo "configure:5605: checking for location of zstd library" >&5
- case "$with_zstd_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-zstd-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_zstd_libs" 1>&6
- if test -n "$with_zstd_libs"; then
- for dir in $with_zstd_libs; do
- if test -d "$dir"; then
- ZSTDLIBPATH="$ZSTDLIBPATH -L$dir"
- else
- { echo "configure: error: *** zstd library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$ZSTDLIBPATH $LDFLAGS"
- echo $ac_n "checking for ZSTD_compress in -lzstd""... $ac_c" 1>&6
- echo "configure:5630: checking for ZSTD_compress in -lzstd" >&5
- ac_lib_var=`echo zstd'_'ZSTD_compress | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lzstd $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 5636 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char ZSTD_compress();
- int main() {
- ZSTD_compress()
- ; return 0; }
- EOF
- if { (eval echo configure:5647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ZSTDLIB="$ZSTDLIB -lzstd "
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate zstd library." 1>&2; exit 1; }
- fi
- LDFLAGS=${ac_save_ldflags}
- #
- fi # $USE_ZSTD
- # Done checking zstd
- # Mandatory PROJ dependency
- PROJINC=
- PROJLIB=
- PROJSHARE=
- PROJ4API=0
- # With PROJ includes directory
- echo $ac_n "checking for location of External PROJ includes""... $ac_c" 1>&6
- echo "configure:5698: checking for location of External PROJ includes" >&5
- case "$with_proj_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-proj-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_proj_includes" 1>&6
- if test -n "$with_proj_includes" ; then
- for dir in $with_proj_includes; do
- if test -d "$dir"; then
- PROJINC="$PROJINC -I$dir"
- else
- { echo "configure: error: *** External PROJ includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- # PROJ version check: if proj.h exists, it must be proj 5+
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$PROJINC $CPPFLAGS"
- for ac_hdr in proj.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:5725: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 5728 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:5733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- PROJ4API=1
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- if test $PROJ4API = 0 ; then
-
- echo $ac_n "checking External PROJ major version""... $ac_c" 1>&6
- echo "configure:5765: checking External PROJ major version" >&5
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$PROJINC $CPPFLAGS"
- if test "$cross_compiling" = yes; then
- proj_ver_major=0
- echo "$ac_t""unknown (cross-compiling)" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 5773 "configure"
- #include "confdefs.h"
- #include <stdio.h>
- #include <proj.h>
- int main(void) {
- FILE *fp = fopen("conftestdata","w");
- fprintf(fp, "%d", PROJ_VERSION_MAJOR);
- return 0;
- }
-
- EOF
- if { (eval echo configure:5785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- proj_ver_major=`cat conftestdata`
- echo "$ac_t""$proj_ver_major" 1>&6
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- { echo "configure: error: *** Could not determine External PROJ major version." 1>&2; exit 1; }
- fi
- rm -fr conftest*
- fi
- CPPFLAGS=$ac_save_cppflags
-
- echo $ac_n "checking External PROJ minor version""... $ac_c" 1>&6
- echo "configure:5802: checking External PROJ minor version" >&5
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$PROJINC $CPPFLAGS"
- if test "$cross_compiling" = yes; then
- proj_ver_minor=0
- echo "$ac_t""unknown (cross-compiling)" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 5810 "configure"
- #include "confdefs.h"
- #include <stdio.h>
- #include <proj.h>
- int main(void) {
- FILE *fp = fopen("conftestdata","w");
- fprintf(fp, "%d", PROJ_VERSION_MINOR);
- return 0;
- }
-
- EOF
- if { (eval echo configure:5822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- proj_ver_minor=`cat conftestdata`
- echo "$ac_t""$proj_ver_minor" 1>&6
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- { echo "configure: error: *** Could not determine External PROJ minor version." 1>&2; exit 1; }
- fi
- rm -fr conftest*
- fi
- CPPFLAGS=$ac_save_cppflags
-
- echo $ac_n "checking External PROJ patch version""... $ac_c" 1>&6
- echo "configure:5839: checking External PROJ patch version" >&5
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$PROJINC $CPPFLAGS"
- if test "$cross_compiling" = yes; then
- proj_ver_patch=0
- echo "$ac_t""unknown (cross-compiling)" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 5847 "configure"
- #include "confdefs.h"
- #include <stdio.h>
- #include <proj.h>
- int main(void) {
- FILE *fp = fopen("conftestdata","w");
- fprintf(fp, "%d", PROJ_VERSION_PATCH);
- return 0;
- }
-
- EOF
- if { (eval echo configure:5859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- proj_ver_patch=`cat conftestdata`
- echo "$ac_t""$proj_ver_patch" 1>&6
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- { echo "configure: error: *** Could not determine External PROJ patch version." 1>&2; exit 1; }
- fi
- rm -fr conftest*
- fi
- CPPFLAGS=$ac_save_cppflags
- echo "$ac_t""found PROJ version "${proj_ver_major}.${proj_ver_minor}.${proj_ver_patch}"" 1>&6
- # minimum required PROJ 5+ version to use the new PROJ API: 5.1.0
- if test ${proj_ver_major} = 5 && test `expr ${proj_ver_minor} \< 1` = 1 ; then
- echo "configure: warning: At least PROJ version "5.1.0" is required for the new API " 1>&2
- PROJ4API=1
- fi
- fi
- if test $PROJ4API = 0 ; then
- echo "$ac_t""using new PROJ version 5+ API" 1>&6
- # With PROJ library directory
-
- echo $ac_n "checking for location of External PROJ library""... $ac_c" 1>&6
- echo "configure:5889: checking for location of External PROJ library" >&5
- case "$with_proj_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-proj-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_proj_libs" 1>&6
- if test -n "$with_proj_libs"; then
- for dir in $with_proj_libs; do
- if test -d "$dir"; then
- PROJLIB="$PROJLIB -L$dir"
- else
- { echo "configure: error: *** External PROJ library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
-
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$PROJLIB $LDFLAGS"
- echo $ac_n "checking for proj_pj_info in -lproj""... $ac_c" 1>&6
- echo "configure:5913: checking for proj_pj_info in -lproj" >&5
- ac_lib_var=`echo proj'_'proj_pj_info | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lproj $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 5919 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char proj_pj_info();
- int main() {
- proj_pj_info()
- ; return 0; }
- EOF
- if { (eval echo configure:5930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- PROJLIB="$PROJLIB -lproj "
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate External PROJ library." 1>&2; exit 1; }
- fi
- LDFLAGS=${ac_save_ldflags}
- else
- echo "$ac_t""using old PROJ version 4 API" 1>&6
- cat >> confdefs.h <<\EOF
- #define USE_PROJ4API 1
- EOF
-
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$PROJINC $CPPFLAGS"
- for ac_hdr in proj_api.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:5973: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 5976 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:5981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate External PROJ includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- # PROJ version check for v4.x
- if test "$cross_compiling" = yes; then
- echo "configure: warning: *** Cannot check PROJ.4 version (cross-compiling)." 1>&2
- else
-
- echo $ac_n "checking External PROJ.4 version""... $ac_c" 1>&6
- echo "configure:6017: checking External PROJ.4 version" >&5
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$PROJINC $CPPFLAGS"
- if test "$cross_compiling" = yes; then
- proj_ver=0
- echo "$ac_t""unknown (cross-compiling)" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 6025 "configure"
- #include "confdefs.h"
- #include <stdio.h>
- #include <proj_api.h>
- int main(void) {
- FILE *fp = fopen("conftestdata","w");
- fprintf(fp, "%d", PJ_VERSION);
- return 0;
- }
-
- EOF
- if { (eval echo configure:6037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- proj_ver=`cat conftestdata`
- echo "$ac_t""$proj_ver" 1>&6
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- { echo "configure: error: *** Could not determine External PROJ.4 version." 1>&2; exit 1; }
- fi
- rm -fr conftest*
- fi
- CPPFLAGS=$ac_save_cppflags
- if test `expr ${proj_ver} \< 446` = 1 ; then
- { echo "configure: error: *** PROJ.4.4.6 or later is required." 1>&2; exit 1; }
- fi
- fi
- # With PROJ library directory
-
- echo $ac_n "checking for location of External PROJ.4 library""... $ac_c" 1>&6
- echo "configure:6062: checking for location of External PROJ.4 library" >&5
- case "$with_proj_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-proj-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_proj_libs" 1>&6
- if test -n "$with_proj_libs"; then
- for dir in $with_proj_libs; do
- if test -d "$dir"; then
- PROJLIB="$PROJLIB -L$dir"
- else
- { echo "configure: error: *** External PROJ.4 library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
-
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$PROJLIB $LDFLAGS"
- echo $ac_n "checking for pj_get_def in -lproj""... $ac_c" 1>&6
- echo "configure:6086: checking for pj_get_def in -lproj" >&5
- ac_lib_var=`echo proj'_'pj_get_def | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lproj $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 6092 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char pj_get_def();
- int main() {
- pj_get_def()
- ; return 0; }
- EOF
- if { (eval echo configure:6103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- PROJLIB="$PROJLIB -lproj "
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate External PROJ.4 library." 1>&2; exit 1; }
- fi
- LDFLAGS=${ac_save_ldflags}
- fi
- # With PROJ share directory
- echo $ac_n "checking for location of External PROJ data files""... $ac_c" 1>&6
- echo "configure:6138: checking for location of External PROJ data files" >&5
- case "$with_proj_share" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-proj-share." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_proj_share" 1>&6
- if test -n "$with_proj_share" ; then
- if test -d "$with_proj_share"; then
- PROJSHARE="$with_proj_share"
- else
- { echo "configure: error: *** External PROJ data directory $dir does not exist." 1>&2; exit 1; }
- fi
- fi
- if test -z "$PROJSHARE" ; then
- echo "configure: warning: *** External PROJ directory not specified; default will be used" 1>&2
- PROJSHARE=/usr/share/proj
- fi
- # LOC_CHECK_SHARE does not work when cross compiling
- if test "$cross_compiling" = "yes" ; then
- echo $ac_n "checking for epsg""... $ac_c" 1>&6
- echo "configure:6162: checking for epsg" >&5
- echo "$ac_t""unknown (cross-compiling)" 1>&6
- else
-
- ac_safe=`echo "$PROJSHARE/epsg" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $PROJSHARE/epsg""... $ac_c" 1>&6
- echo "configure:6169: checking for $PROJSHARE/epsg" >&5
- if test "$cross_compiling" = yes; then
- { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
- else
- if test -r $PROJSHARE/epsg; then
- eval "ac_cv_file_$ac_safe=yes"
- else
- eval "ac_cv_file_$ac_safe=no"
- fi
- fi
- if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- :
- else
- echo "$ac_t""no" 1>&6
- echo "configure: warning: *** Unable to locate PROJ data files." 1>&2
-
- fi
- fi
- # Done checking PROJ
- # Enable regex option
- echo $ac_n "checking whether to use regex""... $ac_c" 1>&6
- echo "configure:6202: checking whether to use regex" >&5
- echo "$ac_t"""$with_regex"" 1>&6
- case "$with_regex" in
- "no") USE_REGEX= ;;
- "yes") USE_REGEX="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- REGEXINCPATH=
- REGEXLIBPATH=
- REGEXLIB=
- if test -n "$USE_REGEX"; then
- # With regex includes directory
- echo $ac_n "checking for location of regex includes""... $ac_c" 1>&6
- echo "configure:6222: checking for location of regex includes" >&5
- case "$with_regex_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-regex-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_regex_includes" 1>&6
- if test -n "$with_regex_includes" ; then
- for dir in $with_regex_includes; do
- if test -d "$dir"; then
- REGEXINCPATH="$REGEXINCPATH -I$dir"
- else
- { echo "configure: error: *** regex includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$REGEXINCPATH $CPPFLAGS"
- for ac_hdr in regex.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:6248: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 6251 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:6256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate regex includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- # With regex library directory
- echo $ac_n "checking for location of regex library""... $ac_c" 1>&6
- echo "configure:6290: checking for location of regex library" >&5
- case "$with_regex_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-regex-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_regex_libs" 1>&6
- if test -n "$with_regex_libs"; then
- for dir in $with_regex_libs; do
- if test -d "$dir"; then
- REGEXLIBPATH="$REGEXLIBPATH -L$dir"
- else
- { echo "configure: error: *** regex library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_libs="$LIBS"
- ac_save_ldflags="$LDFLAGS"
- LIBS=" $LIBS"
- LDFLAGS=" $LDFLAGS"
- echo $ac_n "checking for regcomp""... $ac_c" 1>&6
- echo "configure:6315: checking for regcomp" >&5
- cat > conftest.$ac_ext <<EOF
- #line 6318 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char regcomp(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char regcomp();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_regcomp) || defined (__stub___regcomp)
- choke me
- #else
- regcomp();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:6341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_regcomp=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_regcomp=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'regcomp`\" = yes"; then
- echo "$ac_t""yes" 1>&6
-
- REGEXLIB="$REGEXLIB "
- else
- echo "$ac_t""no" 1>&6
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$REGEXLIBPATH $LDFLAGS"
- echo $ac_n "checking for regcomp in -lregex""... $ac_c" 1>&6
- echo "configure:6368: checking for regcomp in -lregex" >&5
- ac_lib_var=`echo regex'_'regcomp | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lregex $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 6374 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char regcomp();
- int main() {
- regcomp()
- ; return 0; }
- EOF
- if { (eval echo configure:6385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- REGEXLIB="$REGEXLIB -lregex "
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate regex library." 1>&2; exit 1; }
- fi
- LDFLAGS=${ac_save_ldflags}
- fi
- LIBS=${ac_save_libs}
- LDFLAGS=${ac_save_ldflags}
- fi # $USE_REGEX
- # Done checking regex
- # Enable Readline option
- echo $ac_n "checking whether to use Readline""... $ac_c" 1>&6
- echo "configure:6435: checking whether to use Readline" >&5
- echo "$ac_t"""$with_readline"" 1>&6
- case "$with_readline" in
- "no") USE_READLINE= ;;
- "yes") USE_READLINE="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- READLINEINCPATH=
- READLINELIBPATH=
- READLINELIB=
- HISTORYLIB=
- if test -n "$USE_READLINE"; then
- # With Readline includes directory
- echo $ac_n "checking for location of Readline includes""... $ac_c" 1>&6
- echo "configure:6456: checking for location of Readline includes" >&5
- case "$with_readline_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-readline-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_readline_includes" 1>&6
- if test -n "$with_readline_includes" ; then
- for dir in $with_readline_includes; do
- if test -d "$dir"; then
- READLINEINCPATH="$READLINEINCPATH -I$dir"
- else
- { echo "configure: error: *** Readline includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$READLINEINCPATH $CPPFLAGS"
- for ac_hdr in readline/readline.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:6482: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 6485 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:6490: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate Readline includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$READLINEINCPATH $CPPFLAGS"
- for ac_hdr in readline/history.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:6526: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 6529 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:6534: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate Readline includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- # With Readline library directory
- echo $ac_n "checking for location of Readline library""... $ac_c" 1>&6
- echo "configure:6568: checking for location of Readline library" >&5
- case "$with_readline_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-readline-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_readline_libs" 1>&6
- if test -n "$with_readline_libs"; then
- for dir in $with_readline_libs; do
- if test -d "$dir"; then
- READLINELIBPATH="$READLINELIBPATH -L$dir"
- else
- { echo "configure: error: *** Readline library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$READLINELIBPATH $LDFLAGS"
- echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
- echo "configure:6593: checking for readline in -lreadline" >&5
- ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lreadline $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 6599 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char readline();
- int main() {
- readline()
- ; return 0; }
- EOF
- if { (eval echo configure:6610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- READLINELIB="$READLINELIB -lreadline "
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate Readline library." 1>&2; exit 1; }
- fi
- LDFLAGS=${ac_save_ldflags}
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$READLINELIBPATH $LDFLAGS"
- echo $ac_n "checking for add_history in -lhistory""... $ac_c" 1>&6
- echo "configure:6645: checking for add_history in -lhistory" >&5
- ac_lib_var=`echo history'_'add_history | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lhistory $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 6651 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char add_history();
- int main() {
- add_history()
- ; return 0; }
- EOF
- if { (eval echo configure:6662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- HISTORYLIB="$HISTORYLIB -lhistory "
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate History library." 1>&2; exit 1; }
- fi
- LDFLAGS=${ac_save_ldflags}
- fi # $USE_READLINE
- # Done checking Readline
- # GDAL option
- echo $ac_n "checking whether to use GDAL""... $ac_c" 1>&6
- echo "configure:6704: checking whether to use GDAL" >&5
- GDAL_LIBS=
- GDAL_CFLAGS=
- USE_GDAL=
- USE_OGR=
- if test "`basename xx/$with_gdal`" = "gdal-config" ; then
- GDAL_CONFIG="$with_gdal"
- fi
- if test "$with_gdal" = "no" ; then
- echo "$ac_t""no" 1>&6
- else
- echo "$ac_t""yes" 1>&6
- # Extract the first word of "gdal-config", so it can be a program name with args.
- set dummy gdal-config; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:6722: checking for $ac_word" >&5
- case "$GDAL_CONFIG" in
- /*)
- ac_cv_path_GDAL_CONFIG="$GDAL_CONFIG" # Let the user override the test with a path.
- ;;
- ?:/*)
- ac_cv_path_GDAL_CONFIG="$GDAL_CONFIG" # Let the user override the test with a dos path.
- ;;
- *)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_path_GDAL_CONFIG="$ac_dir/$ac_word"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_path_GDAL_CONFIG" && ac_cv_path_GDAL_CONFIG="no"
- ;;
- esac
- GDAL_CONFIG="$ac_cv_path_GDAL_CONFIG"
- if test -n "$GDAL_CONFIG"; then
- echo "$ac_t""$GDAL_CONFIG" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- if test "$GDAL_CONFIG" = "no" ; then
- { echo "configure: error: *** couldn't find gdal-config" 1>&2; exit 1; }
- fi
- if test "$GDAL_CONFIG" != "" ; then
- GDAL_LIBS=`"$GDAL_CONFIG" --libs`
- GDAL_DEP_LIBS=`"$GDAL_CONFIG" --dep-libs`
- GDAL_CFLAGS=`"$GDAL_CONFIG" --cflags`
- USE_GDAL=1
- if test `"$GDAL_CONFIG" --ogr-enabled` = "yes" ; then
- cat >> confdefs.h <<\EOF
- #define HAVE_OGR 1
- EOF
- USE_OGR=1
- fi
- fi
- GDAL=
- ac_save_libs="$LIBS"
- ac_save_cflags="$CFLAGS"
- LIBS="$LIBS $GDAL_LIBS"
- CFLAGS="$CFLAGS $GDAL_CFLAGS"
- cat > conftest.$ac_ext <<EOF
- #line 6777 "configure"
- #include "confdefs.h"
- #include <gdal.h>
- int main() {
- GDALOpen("foo", GA_ReadOnly);
- ; return 0; }
- EOF
- if { (eval echo configure:6784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- :
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
-
- LIBS="$LIBS $GDAL_DEP_LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 6793 "configure"
- #include "confdefs.h"
- #include <gdal.h>
- int main() {
- GDALOpen("foo", GA_ReadOnly);
- ; return 0; }
- EOF
- if { (eval echo configure:6800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- GDAL_LIBS="$GDAL_LIBS $GDAL_DEP_LIBS"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
-
- { echo "configure: error: *** Unable to locate GDAL library." 1>&2; exit 1; }
-
- fi
- rm -f conftest*
-
- fi
- rm -f conftest*
- LIBS=${ac_save_libs}
- CFLAGS=${ac_save_cflags}
- cat >> confdefs.h <<\EOF
- #define HAVE_GDAL 1
- EOF
- fi
- # libLAS option
- echo $ac_n "checking whether to use libLAS""... $ac_c" 1>&6
- echo "configure:6832: checking whether to use libLAS" >&5
- LIBLAS_LIBS=
- LIBLAS_CFLAGS=
- USE_LIBLAS=
- if test "`basename xx/$with_liblas`" = "liblas-config" ; then
- LIBLAS_CONFIG="$with_liblas"
- fi
- if test "$with_liblas" = "no" ; then
- echo "$ac_t""no" 1>&6
- else
- echo "$ac_t""yes" 1>&6
- # Extract the first word of "liblas-config", so it can be a program name with args.
- set dummy liblas-config; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:6849: checking for $ac_word" >&5
- case "$LIBLAS_CONFIG" in
- /*)
- ac_cv_path_LIBLAS_CONFIG="$LIBLAS_CONFIG" # Let the user override the test with a path.
- ;;
- ?:/*)
- ac_cv_path_LIBLAS_CONFIG="$LIBLAS_CONFIG" # Let the user override the test with a dos path.
- ;;
- *)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_path_LIBLAS_CONFIG="$ac_dir/$ac_word"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_path_LIBLAS_CONFIG" && ac_cv_path_LIBLAS_CONFIG="no"
- ;;
- esac
- LIBLAS_CONFIG="$ac_cv_path_LIBLAS_CONFIG"
- if test -n "$LIBLAS_CONFIG"; then
- echo "$ac_t""$LIBLAS_CONFIG" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- if test "$LIBLAS_CONFIG" = "no" ; then
- { echo "configure: error: *** couldn't find liblas-config" 1>&2; exit 1; }
- fi
- if test "$LIBLAS_CONFIG" != "" ; then
- LIBLAS_LIBS=`"$LIBLAS_CONFIG" --libs`
- LIBLAS_CFLAGS=`"$LIBLAS_CONFIG" --cflags`
- LIBLAS_INC=`"$LIBLAS_CONFIG" --includes`
- USE_LIBLAS=1
- fi
- LIBLAS=
- ac_save_libs="$LIBS"
- ac_save_cflags="$CFLAGS"
- ac_save_cppflags="$CPPFLAGS"
- LIBS="$LIBS $LIBLAS_LIBS"
- CFLAGS="$CFLAGS $LIBLAS_CFLAGS"
- CPPFLAGS="$CPPFLAGS $LIBLAS_INC"
- for ac_hdr in liblas/capi/liblas.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:6902: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 6905 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:6910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- cat > conftest.$ac_ext <<EOF
- #line 6936 "configure"
- #include "confdefs.h"
- #include <liblas/capi/liblas.h>
- int main() {
- LASReader_Create("foo");
- ; return 0; }
- EOF
- if { (eval echo configure:6943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- :
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
-
- cat > conftest.$ac_ext <<EOF
- #line 6951 "configure"
- #include "confdefs.h"
- #include <liblas/capi/liblas.h>
- int main() {
- LASReader_Create("foo");
- ; return 0; }
- EOF
- if { (eval echo configure:6958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- LAS_LIBS="$LAS_LIBS"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
-
- { echo "configure: error: *** Unable to locate libLAS library." 1>&2; exit 1; }
-
- fi
- rm -f conftest*
-
- fi
- rm -f conftest*
- LIBS=${ac_save_libs}
- CFLAGS=${ac_save_cflags}
- CPPFLAGS=${ac_save_cppflags}
- cat >> confdefs.h <<\EOF
- #define HAVE_LIBLAS 1
- EOF
- fi
- # PDAL option
- echo $ac_n "checking whether to use PDAL""... $ac_c" 1>&6
- echo "configure:6991: checking whether to use PDAL" >&5
- # new and currently used way to switch language to C++
- # AC_LANG_PUSH(C++)
- ac_ext=C
- # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cxx_cross
- PDAL_LIBS=
- PDAL_CPPFLAGS=
- USE_PDAL=
- if test "`basename xx/$with_pdal`" = "pdal-config" ; then
- PDAL_CONFIG="$with_pdal"
- fi
- if test "$with_pdal" = "no" ; then
- echo "$ac_t""no" 1>&6
- else
- echo "$ac_t""yes" 1>&6
- # Extract the first word of "pdal-config", so it can be a program name with args.
- set dummy pdal-config; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:7019: checking for $ac_word" >&5
- case "$PDAL_CONFIG" in
- /*)
- ac_cv_path_PDAL_CONFIG="$PDAL_CONFIG" # Let the user override the test with a path.
- ;;
- ?:/*)
- ac_cv_path_PDAL_CONFIG="$PDAL_CONFIG" # Let the user override the test with a dos path.
- ;;
- *)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_path_PDAL_CONFIG="$ac_dir/$ac_word"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_path_PDAL_CONFIG" && ac_cv_path_PDAL_CONFIG="no"
- ;;
- esac
- PDAL_CONFIG="$ac_cv_path_PDAL_CONFIG"
- if test -n "$PDAL_CONFIG"; then
- echo "$ac_t""$PDAL_CONFIG" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- if test "$PDAL_CONFIG" = "no" ; then
- { echo "configure: error: *** could not find pdal-config" 1>&2; exit 1; }
- fi
- if test "$PDAL_CONFIG" != "" ; then
- PDAL_LIBS=`"$PDAL_CONFIG" --libs`
- PDAL_CPPFLAGS=`"$PDAL_CONFIG" --cxxflags`
- PDAL_INC=`"$PDAL_CONFIG" --includes`
- USE_PDAL=1
- fi
- PDAL=
- ac_save_libs="$LIBS"
- ac_save_cflags="$CFLAGS"
- ac_save_cppflags="$CPPFLAGS"
- LIBS="$LIBS $PDAL_LIBS"
- CFLAGS="$CFLAGS $PDAL_CFLAGS"
- CPPFLAGS="$CPPFLAGS $PDAL_CPPFLAGS $PDAL_INC"
- cat > conftest.$ac_ext <<EOF
- #line 7069 "configure"
- #include "confdefs.h"
- #include <pdal/PointTable.hpp>
- int main() {
- pdal::PointTable table;
- ; return 0; }
- EOF
- if { (eval echo configure:7076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- :
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
-
- cat > conftest.$ac_ext <<EOF
- #line 7084 "configure"
- #include "confdefs.h"
- #include <pdal/PointTable.hpp>
- int main() {
- pdal::PointTable table;
- ; return 0; }
- EOF
- if { (eval echo configure:7091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- PDAL_LIBS="$PDAL_LIBS"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
-
- { echo "configure: error: *** Unable to locate PDAL library." 1>&2; exit 1; }
-
- fi
- rm -f conftest*
-
- fi
- rm -f conftest*
- LIBS=${ac_save_libs}
- CFLAGS=${ac_save_cflags}
- CPPFLAGS=${ac_save_cppflags}
- cat >> confdefs.h <<\EOF
- #define HAVE_PDAL 1
- EOF
- fi
- # new and currently used way to switch language back to C
- # AC_LANG_POP(C++)
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
- # NetCDF option
- echo $ac_n "checking whether to use NetCDF""... $ac_c" 1>&6
- echo "configure:7141: checking whether to use NetCDF" >&5
- NETCDF_LIBS=
- NETCDF_CFLAGS=
- USE_NETCDF=
- if test "`basename xx/$with_netcdf`" = "nc-config" ; then
- NETCDF_CONFIG="$with_netcdf"
- fi
- if test "$with_netcdf" = "no" ; then
- echo "$ac_t""no" 1>&6
- else
- echo "$ac_t""yes" 1>&6
- # Extract the first word of "nc-config", so it can be a program name with args.
- set dummy nc-config; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:7158: checking for $ac_word" >&5
- case "$NETCDF_CONFIG" in
- /*)
- ac_cv_path_NETCDF_CONFIG="$NETCDF_CONFIG" # Let the user override the test with a path.
- ;;
- ?:/*)
- ac_cv_path_NETCDF_CONFIG="$NETCDF_CONFIG" # Let the user override the test with a dos path.
- ;;
- *)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_path_NETCDF_CONFIG="$ac_dir/$ac_word"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_path_NETCDF_CONFIG" && ac_cv_path_NETCDF_CONFIG="no"
- ;;
- esac
- NETCDF_CONFIG="$ac_cv_path_NETCDF_CONFIG"
- if test -n "$NETCDF_CONFIG"; then
- echo "$ac_t""$NETCDF_CONFIG" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- if test "$NETCDF_CONFIG" = "no" ; then
- { echo "configure: error: *** couldn't find nc-config" 1>&2; exit 1; }
- fi
- if test "$NETCDF_CONFIG" != "" ; then
- NETCDF_LIBS=`"$NETCDF_CONFIG" --libs`
- NETCDF_CFLAGS=`"$NETCDF_CONFIG" --cflags`
- USE_NETCDF=1
- fi
- NETCDF=
- ac_save_libs="$LIBS"
- ac_save_cflags="$CFLAGS"
- LIBS="$LIBS $NETCDF_LIBS"
- CFLAGS="$CFLAGS $NETCDF_CFLAGS"
- cat > conftest.$ac_ext <<EOF
- #line 7205 "configure"
- #include "confdefs.h"
- #include <netcdf.h>
- int main() {
- nc_create("foo", NC_CLOBBER, NULL);
- ; return 0; }
- EOF
- if { (eval echo configure:7212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- :
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
-
- cat > conftest.$ac_ext <<EOF
- #line 7220 "configure"
- #include "confdefs.h"
- #include <netcdf.h>
- int main() {
- nc_create("foo", NC_CLOBBER, NULL);
- ; return 0; }
- EOF
- if { (eval echo configure:7227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- NETCDF_LIBS="$NETCDF_LIBS"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
-
- { echo "configure: error: *** Unable to locate NetCDF library." 1>&2; exit 1; }
-
- fi
- rm -f conftest*
-
- fi
- rm -f conftest*
- LIBS=${ac_save_libs}
- CFLAGS=${ac_save_cflags}
- cat >> confdefs.h <<\EOF
- #define HAVE_NETCDF 1
- EOF
- fi
- # GEOS option
- echo $ac_n "checking whether to use GEOS""... $ac_c" 1>&6
- echo "configure:7258: checking whether to use GEOS" >&5
- GEOS_LIBS=
- GEOS_CFLAGS=
- USE_GEOS=
- # FIXME: "quote" $with_geos ?
- if test "`basename xx/$with_geos`" = "geos-config" ; then
- GEOS_CONFIG="$with_geos"
- fi
- if test "$with_geos" = "no" ; then
- echo "$ac_t""no" 1>&6
- else
- echo "$ac_t""yes" 1>&6
- # Extract the first word of "geos-config", so it can be a program name with args.
- set dummy geos-config; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:7276: checking for $ac_word" >&5
- case "$GEOS_CONFIG" in
- /*)
- ac_cv_path_GEOS_CONFIG="$GEOS_CONFIG" # Let the user override the test with a path.
- ;;
- ?:/*)
- ac_cv_path_GEOS_CONFIG="$GEOS_CONFIG" # Let the user override the test with a dos path.
- ;;
- *)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_path_GEOS_CONFIG="$ac_dir/$ac_word"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_path_GEOS_CONFIG" && ac_cv_path_GEOS_CONFIG="no"
- ;;
- esac
- GEOS_CONFIG="$ac_cv_path_GEOS_CONFIG"
- if test -n "$GEOS_CONFIG"; then
- echo "$ac_t""$GEOS_CONFIG" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- if test "$GEOS_CONFIG" = "no" ; then
- { echo "configure: error: *** couldn't find geos-config" 1>&2; exit 1; }
- fi
-
- if test "$GEOS_CONFIG" != "" ; then
- GEOS_LIBS=`"$GEOS_CONFIG" --clibs`
- GEOS_CFLAGS=`"$GEOS_CONFIG" --cflags`
- USE_GEOS=1
- fi
-
-
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$GEOS_CFLAGS $CPPFLAGS"
- for ac_hdr in geos_c.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:7324: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 7327 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:7332: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate GEOS includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- ### 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
- # if test "$MINGW32" = yes ; then
- # LOC_CHECK_LIBS(geos_c_i,initGEOS,GEOS,$GEOS_LIBS,GEOS_LIBS)
- # else
-
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$GEOS_LIBS $LDFLAGS"
- echo $ac_n "checking for initGEOS in -lgeos_c""... $ac_c" 1>&6
- echo "configure:7371: checking for initGEOS in -lgeos_c" >&5
- ac_lib_var=`echo geos_c'_'initGEOS | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lgeos_c $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 7377 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char initGEOS();
- int main() {
- initGEOS()
- ; return 0; }
- EOF
- if { (eval echo configure:7388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- GEOS_LIBS="$GEOS_LIBS -lgeos_c "
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate GEOS library." 1>&2; exit 1; }
- fi
- LDFLAGS=${ac_save_ldflags}
- # fi
- cat >> confdefs.h <<\EOF
- #define HAVE_GEOS 1
- EOF
- fi
- # Enable TIFF option
- echo $ac_n "checking whether to use TIFF""... $ac_c" 1>&6
- echo "configure:7432: checking whether to use TIFF" >&5
- echo "$ac_t"""$with_tiff"" 1>&6
- case "$with_tiff" in
- "no") USE_TIFF= ;;
- "yes") USE_TIFF="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- TIFF_INCLUDE_DIRS=
- TIFF_LIBRARY_DIRS=
- TIFFLIB=
- if test -n "$USE_TIFF"; then
- # With TIFF includes directory
- echo $ac_n "checking for location of TIFF includes""... $ac_c" 1>&6
- echo "configure:7452: checking for location of TIFF includes" >&5
- case "$with_tiff_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-tiff-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_tiff_includes" 1>&6
- if test -n "$with_tiff_includes" ; then
- for dir in $with_tiff_includes; do
- if test -d "$dir"; then
- TIFF_INCLUDE_DIRS="$TIFF_INCLUDE_DIRS -I$dir"
- else
- { echo "configure: error: *** TIFF includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$TIFF_INCLUDE_DIRS $CPPFLAGS"
- for ac_hdr in tiffio.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:7478: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 7481 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:7486: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate TIFF includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- # With TIFF library directory
- echo $ac_n "checking for location of TIFF library""... $ac_c" 1>&6
- echo "configure:7520: checking for location of TIFF library" >&5
- case "$with_tiff_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-tiff-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_tiff_libs" 1>&6
- if test -n "$with_tiff_libs"; then
- for dir in $with_tiff_libs; do
- if test -d "$dir"; then
- TIFF_LIBRARY_DIRS="$TIFF_LIBRARY_DIRS -L$dir"
- else
- { echo "configure: error: *** TIFF library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$TIFF_LIBRARY_DIRS $LDFLAGS"
- echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
- echo "configure:7551: checking for TIFFOpen in -ltiff" >&5
- ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-ltiff $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 7557 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char TIFFOpen();
- int main() {
- TIFFOpen()
- ; return 0; }
- EOF
- if { (eval echo configure:7568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- TIFFLIB="$TIFFLIB -ltiff "
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
- echo "configure:7587: checking for TIFFOpen in -ltiff" >&5
- ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-ltiff $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 7593 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char TIFFOpen();
- int main() {
- TIFFOpen()
- ; return 0; }
- EOF
- if { (eval echo configure:7604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- TIFFLIB="$TIFFLIB -ltiff $MATHLIB"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
- echo "configure:7623: checking for TIFFOpen in -ltiff" >&5
- ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-ltiff $ZLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 7629 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char TIFFOpen();
- int main() {
- TIFFOpen()
- ; return 0; }
- EOF
- if { (eval echo configure:7640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- TIFFLIB="$TIFFLIB -ltiff $ZLIB"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
- echo "configure:7659: checking for TIFFOpen in -ltiff" >&5
- ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-ltiff $ZLIB $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 7665 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char TIFFOpen();
- int main() {
- TIFFOpen()
- ; return 0; }
- EOF
- if { (eval echo configure:7676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- TIFFLIB="$TIFFLIB -ltiff $ZLIB $MATHLIB"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
- echo "configure:7695: checking for TIFFOpen in -ltiff" >&5
- ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-ltiff -ljpeg $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 7701 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char TIFFOpen();
- int main() {
- TIFFOpen()
- ; return 0; }
- EOF
- if { (eval echo configure:7712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- TIFFLIB="$TIFFLIB -ltiff -ljpeg"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
- echo "configure:7731: checking for TIFFOpen in -ltiff" >&5
- ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-ltiff -ljpeg $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 7737 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char TIFFOpen();
- int main() {
- TIFFOpen()
- ; return 0; }
- EOF
- if { (eval echo configure:7748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- TIFFLIB="$TIFFLIB -ltiff -ljpeg $MATHLIB"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
- echo "configure:7767: checking for TIFFOpen in -ltiff" >&5
- ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-ltiff -ljpeg $ZLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 7773 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char TIFFOpen();
- int main() {
- TIFFOpen()
- ; return 0; }
- EOF
- if { (eval echo configure:7784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- TIFFLIB="$TIFFLIB -ltiff -ljpeg $ZLIB"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
- echo "configure:7803: checking for TIFFOpen in -ltiff" >&5
- ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-ltiff -ljpeg $ZLIB $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 7809 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char TIFFOpen();
- int main() {
- TIFFOpen()
- ; return 0; }
- EOF
- if { (eval echo configure:7820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- TIFFLIB="$TIFFLIB -ltiff -ljpeg $ZLIB $MATHLIB"
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate TIFF library." 1>&2; exit 1; }
- fi
- fi
- fi
- fi
- fi
- fi
- fi
- fi
- LDFLAGS=${ac_save_ldflags}
- fi # $USE_TIFF
- # Done checking TIFF
- # Enable PNG option
- echo $ac_n "checking whether to use PNG""... $ac_c" 1>&6
- echo "configure:7918: checking whether to use PNG" >&5
- echo "$ac_t"""$with_png"" 1>&6
- case "$with_png" in
- "no") USE_PNG= ;;
- "yes") USE_PNG="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- PNGINC=
- PNGLIB=
- if test -n "$USE_PNG"; then
- # With PNG includes directory
- echo $ac_n "checking for location of PNG includes""... $ac_c" 1>&6
- echo "configure:7937: checking for location of PNG includes" >&5
- case "$with_png_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-png-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_png_includes" 1>&6
- if test -n "$with_png_includes" ; then
- for dir in $with_png_includes; do
- if test -d "$dir"; then
- PNGINC="$PNGINC -I$dir"
- else
- { echo "configure: error: *** PNG includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$PNGINC $CPPFLAGS"
- for ac_hdr in png.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:7963: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 7966 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:7971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate PNG includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- # With PNG library directory
- echo $ac_n "checking for location of PNG library""... $ac_c" 1>&6
- echo "configure:8005: checking for location of PNG library" >&5
- case "$with_png_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-png-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_png_libs" 1>&6
- if test -n "$with_png_libs"; then
- for dir in $with_png_libs; do
- if test -d "$dir"; then
- PNGLIB="$PNGLIB -L$dir"
- else
- { echo "configure: error: *** PNG library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$PNGLIB $LDFLAGS"
- echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
- echo "configure:8030: checking for png_read_image in -lpng" >&5
- ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lpng $ZLIB $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 8036 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char png_read_image();
- int main() {
- png_read_image()
- ; return 0; }
- EOF
- if { (eval echo configure:8047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- PNGLIB="$PNGLIB -lpng $ZLIB $MATHLIB"
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate PNG library." 1>&2; exit 1; }
- fi
- LDFLAGS=${ac_save_ldflags}
- fi # $USE_PNG
- # Done checking PNG
- # Enable PostgreSQL option
- echo $ac_n "checking whether to use PostgreSQL""... $ac_c" 1>&6
- echo "configure:8089: checking whether to use PostgreSQL" >&5
- echo "$ac_t"""$with_postgres"" 1>&6
- case "$with_postgres" in
- "no") USE_POSTGRES= ;;
- "yes") USE_POSTGRES="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- if test -n "$USE_POSTGRES"; then
- cat >> confdefs.h <<\EOF
- #define HAVE_POSTGRES 1
- EOF
- fi # $USE_POSTGRES
- PQINCPATH=
- PQLIBPATH=
- PQLIB=
- if test -n "$USE_POSTGRES"; then
- # With PostgreSQL includes directory
- echo $ac_n "checking for location of PostgreSQL includes""... $ac_c" 1>&6
- echo "configure:8116: checking for location of PostgreSQL includes" >&5
- case "$with_postgres_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-postgres-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_postgres_includes" 1>&6
- if test -n "$with_postgres_includes" ; then
- for dir in $with_postgres_includes; do
- if test -d "$dir"; then
- PQINCPATH="$PQINCPATH -I$dir"
- else
- { echo "configure: error: *** PostgreSQL includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$PQINCPATH $CPPFLAGS"
- for ac_hdr in libpq-fe.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:8142: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 8145 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:8150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate PostgreSQL includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- fi # $USE_POSTGRES
- if test -n "$USE_POSTGRES"; then
- # With PostgreSQL library directory
- echo $ac_n "checking for location of PostgreSQL library""... $ac_c" 1>&6
- echo "configure:8188: checking for location of PostgreSQL library" >&5
- case "$with_postgres_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-postgres-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_postgres_libs" 1>&6
- if test -n "$with_postgres_libs"; then
- for dir in $with_postgres_libs; do
- if test -d "$dir"; then
- PQLIBPATH="$PQLIBPATH -L$dir"
- else
- { echo "configure: error: *** PostgreSQL library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$PQLIBPATH $LDFLAGS"
- echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
- echo "configure:8217: checking for PQsetdbLogin in -lpq" >&5
- ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lpq $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 8223 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char PQsetdbLogin();
- int main() {
- PQsetdbLogin()
- ; return 0; }
- EOF
- if { (eval echo configure:8234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- PQLIB="$PQLIB -lpq "
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
- echo "configure:8253: checking for PQsetdbLogin in -lpq" >&5
- ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lpq -lssl -lcrypto $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 8259 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char PQsetdbLogin();
- int main() {
- PQsetdbLogin()
- ; return 0; }
- EOF
- if { (eval echo configure:8270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- PQLIB="$PQLIB -lpq -lssl -lcrypto"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
- echo "configure:8289: checking for PQsetdbLogin in -lpq" >&5
- ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lpq -lcrypt $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 8295 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char PQsetdbLogin();
- int main() {
- PQsetdbLogin()
- ; return 0; }
- EOF
- if { (eval echo configure:8306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- PQLIB="$PQLIB -lpq -lcrypt"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
- echo "configure:8325: checking for PQsetdbLogin in -lpq" >&5
- ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lpq -lcrypt -lssl -lcrypto $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 8331 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char PQsetdbLogin();
- int main() {
- PQsetdbLogin()
- ; return 0; }
- EOF
- if { (eval echo configure:8342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- PQLIB="$PQLIB -lpq -lcrypt -lssl -lcrypto"
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate PostgreSQL library." 1>&2; exit 1; }
- fi
- fi
- fi
- fi
- LDFLAGS=${ac_save_ldflags}
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$LDFLAGS $PQLIBPATH"
- echo $ac_n "checking for PQcmdTuples in -lpq""... $ac_c" 1>&6
- echo "configure:8399: checking for PQcmdTuples in -lpq" >&5
- ac_lib_var=`echo pq'_'PQcmdTuples | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lpq $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 8405 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char PQcmdTuples();
- int main() {
- PQcmdTuples()
- ; return 0; }
- EOF
- if { (eval echo configure:8416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<\EOF
- #define HAVE_PQCMDTUPLES 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for PQcmdTuples in -lpq""... $ac_c" 1>&6
- echo "configure:8438: checking for PQcmdTuples in -lpq" >&5
- ac_lib_var=`echo pq'_'PQcmdTuples | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lpq -lcrypt $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 8444 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char PQcmdTuples();
- int main() {
- PQcmdTuples()
- ; return 0; }
- EOF
- if { (eval echo configure:8455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<\EOF
- #define HAVE_PQCMDTUPLES 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- LDFLAGS="${ac_save_ldflags}"
- fi # $USE_POSTGRES
- # Done checking PostgreSQL
- # Enable MySQL option
- echo $ac_n "checking whether to use MySQL""... $ac_c" 1>&6
- echo "configure:8498: checking whether to use MySQL" >&5
- echo "$ac_t"""$with_mysql"" 1>&6
- case "$with_mysql" in
- "no") USE_MYSQL= ;;
- "yes") USE_MYSQL="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- MYSQLINCPATH=
- MYSQLLIBPATH=
- MYSQLLIB=
- if test -n "$USE_MYSQL"; then
- # With MySQL includes directory
- echo $ac_n "checking for location of MySQL includes""... $ac_c" 1>&6
- echo "configure:8518: checking for location of MySQL includes" >&5
- case "$with_mysql_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-mysql-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_mysql_includes" 1>&6
- if test -n "$with_mysql_includes" ; then
- for dir in $with_mysql_includes; do
- if test -d "$dir"; then
- MYSQLINCPATH="$MYSQLINCPATH -I$dir"
- else
- { echo "configure: error: *** MySQL includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$MYSQLINCPATH $CPPFLAGS"
- for ac_hdr in mysql.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:8544: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 8547 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:8552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate MySQL includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- fi # $USE_MYSQL
- if test -n "$USE_MYSQL"; then
- # With MySQL library directory
-
- echo $ac_n "checking for location of MySQL library""... $ac_c" 1>&6
- echo "configure:8589: checking for location of MySQL library" >&5
- case "$with_mysql_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-mysql-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_mysql_libs" 1>&6
- if test -n "$with_mysql_libs"; then
- for dir in $with_mysql_libs; do
- if test -d "$dir"; then
- MYSQLLIBPATH="$MYSQLLIBPATH -L$dir"
- else
- { echo "configure: error: *** MySQL library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
-
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$MYSQLLIBPATH $LDFLAGS"
- echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
- echo "configure:8620: checking for mysql_query in -lmysqlclient" >&5
- ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lmysqlclient $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 8626 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char mysql_query();
- int main() {
- mysql_query()
- ; return 0; }
- EOF
- if { (eval echo configure:8637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- MYSQLLIB="$MYSQLLIB -lmysqlclient "
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
- echo "configure:8656: checking for mysql_query in -lmysqlclient" >&5
- ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lmysqlclient $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 8662 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char mysql_query();
- int main() {
- mysql_query()
- ; return 0; }
- EOF
- if { (eval echo configure:8673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- MYSQLLIB="$MYSQLLIB -lmysqlclient $MATHLIB"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
- echo "configure:8692: checking for mysql_query in -lmysqlclient" >&5
- ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lmysqlclient $SOCKLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 8698 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char mysql_query();
- int main() {
- mysql_query()
- ; return 0; }
- EOF
- if { (eval echo configure:8709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- MYSQLLIB="$MYSQLLIB -lmysqlclient $SOCKLIB"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
- echo "configure:8728: checking for mysql_query in -lmysqlclient" >&5
- ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lmysqlclient $SOCKLIB $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 8734 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char mysql_query();
- int main() {
- mysql_query()
- ; return 0; }
- EOF
- if { (eval echo configure:8745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- MYSQLLIB="$MYSQLLIB -lmysqlclient $SOCKLIB $MATHLIB"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
- echo "configure:8764: checking for mysql_query in -lmysqlclient" >&5
- ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lmysqlclient $ZLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 8770 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char mysql_query();
- int main() {
- mysql_query()
- ; return 0; }
- EOF
- if { (eval echo configure:8781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
- echo "configure:8800: checking for mysql_query in -lmysqlclient" >&5
- ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lmysqlclient $ZLIB $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 8806 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char mysql_query();
- int main() {
- mysql_query()
- ; return 0; }
- EOF
- if { (eval echo configure:8817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB $MATHLIB"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
- echo "configure:8836: checking for mysql_query in -lmysqlclient" >&5
- ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lmysqlclient $ZLIB $SOCKLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 8842 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char mysql_query();
- int main() {
- mysql_query()
- ; return 0; }
- EOF
- if { (eval echo configure:8853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB $SOCKLIB"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
- echo "configure:8872: checking for mysql_query in -lmysqlclient" >&5
- ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lmysqlclient $ZLIB $SOCKLIB $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 8878 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char mysql_query();
- int main() {
- mysql_query()
- ; return 0; }
- EOF
- if { (eval echo configure:8889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB $SOCKLIB $MATHLIB"
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate MySQL library." 1>&2; exit 1; }
- fi
- fi
- fi
- fi
- fi
- fi
- fi
- fi
- LDFLAGS=${ac_save_ldflags}
- # Check for libmysqld (for embedded version of the driver)
- # Extract the first word of "mysql_config", so it can be a program name with args.
- set dummy mysql_config; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:8979: checking for $ac_word" >&5
- case "$MYSQLD_CONFIG" in
- /*)
- ac_cv_path_MYSQLD_CONFIG="$MYSQLD_CONFIG" # Let the user override the test with a path.
- ;;
- ?:/*)
- ac_cv_path_MYSQLD_CONFIG="$MYSQLD_CONFIG" # Let the user override the test with a dos path.
- ;;
- *)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_path_MYSQLD_CONFIG="$ac_dir/$ac_word"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_path_MYSQLD_CONFIG" && ac_cv_path_MYSQLD_CONFIG="no"
- ;;
- esac
- MYSQLD_CONFIG="$ac_cv_path_MYSQLD_CONFIG"
- if test -n "$MYSQLD_CONFIG"; then
- echo "$ac_t""$MYSQLD_CONFIG" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- if test "$MYSQLD_CONFIG" = "no" ; then
- { echo "configure: error: *** couldn't find mysql_config" 1>&2; exit 1; }
- fi
- if test "$MYSQLD_CONFIG" != "" ; then
-
- ac_ext=C
- # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cxx_cross
- ac_save_libs="$LIBS"
- MYSQLDLIB=`"$MYSQLD_CONFIG" --libmysqld-libs`
- LIBS="$MYSQLDLIB $LIBS"
- echo $ac_n "checking for mysql_server_init""... $ac_c" 1>&6
- echo "configure:9028: checking for mysql_server_init" >&5
- cat > conftest.$ac_ext <<EOF
- #line 9031 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char mysql_server_init(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char mysql_server_init();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_mysql_server_init) || defined (__stub___mysql_server_init)
- choke me
- #else
- mysql_server_init();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:9057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_mysql_server_init=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_mysql_server_init=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'mysql_server_init`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- :
- else
- echo "$ac_t""no" 1>&6
- MYSQLDLIB="";
- echo "configure: warning: libmysqld not found" 1>&2
- fi
- LIBS=$ac_save_libs
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
- fi
- fi # $USE_MYSQL
- # Done checking MySQL
- # Enable SQLite option
- echo $ac_n "checking whether to use SQLite""... $ac_c" 1>&6
- echo "configure:9109: checking whether to use SQLite" >&5
- echo "$ac_t"""$with_sqlite"" 1>&6
- case "$with_sqlite" in
- "no") USE_SQLITE= ;;
- "yes") USE_SQLITE="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- SQLITEINCPATH=
- SQLITELIBPATH=
- SQLITELIB=
- if test -n "$USE_SQLITE"; then
- # With SQLite includes directory
- echo $ac_n "checking for location of SQLite includes""... $ac_c" 1>&6
- echo "configure:9129: checking for location of SQLite includes" >&5
- case "$with_sqlite_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-sqlite-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_sqlite_includes" 1>&6
- if test -n "$with_sqlite_includes" ; then
- for dir in $with_sqlite_includes; do
- if test -d "$dir"; then
- SQLITEINCPATH="$SQLITEINCPATH -I$dir"
- else
- { echo "configure: error: *** SQLite includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$SQLITEINCPATH $CPPFLAGS"
- for ac_hdr in sqlite3.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:9155: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 9158 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:9163: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate SQLite includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- cat >> confdefs.h <<\EOF
- #define HAVE_SQLITE 1
- EOF
- fi # $USE_SQLITE
- if test -n "$USE_SQLITE"; then
- # With SQLite library directory
- echo $ac_n "checking for location of SQLite library""... $ac_c" 1>&6
- echo "configure:9206: checking for location of SQLite library" >&5
- case "$with_sqlite_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-sqlite-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_sqlite_libs" 1>&6
- if test -n "$with_sqlite_libs"; then
- for dir in $with_sqlite_libs; do
- if test -d "$dir"; then
- SQLITELIBPATH="$SQLITELIBPATH -L$dir"
- else
- { echo "configure: error: *** SQLite library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$SQLITELIBPATH $LDFLAGS"
- echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
- echo "configure:9235: checking for sqlite3_open in -lsqlite3" >&5
- ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lsqlite3 $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 9241 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char sqlite3_open();
- int main() {
- sqlite3_open()
- ; return 0; }
- EOF
- if { (eval echo configure:9252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- SQLITELIB="$SQLITELIB -lsqlite3 "
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
- echo "configure:9271: checking for sqlite3_open in -lsqlite3" >&5
- ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lsqlite3 $DLLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 9277 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char sqlite3_open();
- int main() {
- sqlite3_open()
- ; return 0; }
- EOF
- if { (eval echo configure:9288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- SQLITELIB="$SQLITELIB -lsqlite3 $DLLIB"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
- echo "configure:9307: checking for sqlite3_open in -lsqlite3" >&5
- ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lsqlite3 $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 9313 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char sqlite3_open();
- int main() {
- sqlite3_open()
- ; return 0; }
- EOF
- if { (eval echo configure:9324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- SQLITELIB="$SQLITELIB -lsqlite3 $MATHLIB"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
- echo "configure:9343: checking for sqlite3_open in -lsqlite3" >&5
- ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lsqlite3 $MATHLIB $DLLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 9349 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char sqlite3_open();
- int main() {
- sqlite3_open()
- ; return 0; }
- EOF
- if { (eval echo configure:9360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- SQLITELIB="$SQLITELIB -lsqlite3 $MATHLIB $DLLIB"
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate SQLite library." 1>&2; exit 1; }
- fi
- fi
- fi
- fi
- LDFLAGS=${ac_save_ldflags}
- fi # $USE_SQLITE
- # Done checking SQLite
- # Enable OpenGL option
- OPENGLINC=
- OPENGLLIB=
- OPENGLULIB=
- USE_OPENGL=
- OPENGL_X11=
- OPENGL_AQUA=
- OPENGL_WINDOWS=
- echo $ac_n "checking whether to use OpenGL""... $ac_c" 1>&6
- echo "configure:9435: checking whether to use OpenGL" >&5
- echo "$ac_t"""$with_opengl"" 1>&6
- case "$with_opengl" in
- n|no)
- OPENGL_TYPE=none
- ;;
- y|yes|x|x11|glx)
- OPENGL_TYPE=X11
- USE_OPENGL=1
- OPENGL_X11=1
- ;;
- aqua|mac|osx|macosx|agl)
- OPENGL_TYPE=Aqua
- USE_OPENGL=1
- OPENGL_AQUA=1
- ;;
- win|windows|mswin|wgl)
- OPENGL_TYPE=Windows
- USE_OPENGL=1
- OPENGL_WINDOWS=1
- ;;
- *)
- { echo "configure: error: *** Valid arguments for --with-opengl= are yes,no,x11,aqua,windows." 1>&2; exit 1; }
- ;;
- esac
- if test -n "$USE_OPENGL" ; then
- if test "$OPENGL_X11" = 1 ; then
- # With OpenGL includes directory
- echo $ac_n "checking for location of OpenGL includes""... $ac_c" 1>&6
- echo "configure:9469: checking for location of OpenGL includes" >&5
- case "$with_opengl_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-opengl-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_opengl_includes" 1>&6
- if test -n "$with_opengl_includes" ; then
- for dir in $with_opengl_includes; do
- if test -d "$dir"; then
- OPENGLINC="$OPENGLINC -I$dir"
- else
- { echo "configure: error: *** OpenGL includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$OPENGLINC $X_CFLAGS $CPPFLAGS"
- for ac_hdr in GL/gl.h GL/glu.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:9495: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 9498 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:9503: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate OpenGL includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- # With OpenGL library directory
- echo $ac_n "checking for location of OpenGL library""... $ac_c" 1>&6
- echo "configure:9537: checking for location of OpenGL library" >&5
- case "$with_opengl_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-opengl-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_opengl_libs" 1>&6
- if test -n "$with_opengl_libs"; then
- for dir in $with_opengl_libs; do
- if test -d "$dir"; then
- OPENGL_LIB_PATH="$OPENGL_LIB_PATH -L$dir"
- else
- { echo "configure: error: *** OpenGL library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
- echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
- echo "configure:9566: checking for glBegin in -lGL" >&5
- ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 9572 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char glBegin();
- int main() {
- glBegin()
- ; return 0; }
- EOF
- if { (eval echo configure:9583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- OPENGLLIB="$OPENGLLIB -lGL "
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
- echo "configure:9602: checking for glBegin in -lGL" >&5
- ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lXext $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 9608 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char glBegin();
- int main() {
- glBegin()
- ; return 0; }
- EOF
- if { (eval echo configure:9619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- OPENGLLIB="$OPENGLLIB -lGL -lXext"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
- echo "configure:9638: checking for glBegin in -lGL" >&5
- ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lpthread $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 9644 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char glBegin();
- int main() {
- glBegin()
- ; return 0; }
- EOF
- if { (eval echo configure:9655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- OPENGLLIB="$OPENGLLIB -lGL -lpthread"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
- echo "configure:9674: checking for glBegin in -lGL" >&5
- ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lpthread -lXext $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 9680 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char glBegin();
- int main() {
- glBegin()
- ; return 0; }
- EOF
- if { (eval echo configure:9691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- OPENGLLIB="$OPENGLLIB -lGL -lpthread -lXext"
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate OpenGL library." 1>&2; exit 1; }
- fi
- fi
- fi
- fi
- LDFLAGS=${ac_save_ldflags}
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
- echo $ac_n "checking for gluBeginCurve in -lGLU""... $ac_c" 1>&6
- echo "configure:9753: checking for gluBeginCurve in -lGLU" >&5
- ac_lib_var=`echo GLU'_'gluBeginCurve | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lGLU $OPENGLLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 9759 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char gluBeginCurve();
- int main() {
- gluBeginCurve()
- ; return 0; }
- EOF
- if { (eval echo configure:9770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- OPENGLULIB="$OPENGLULIB -lGLU "
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for gluBeginCurve in -lGLU""... $ac_c" 1>&6
- echo "configure:9789: checking for gluBeginCurve in -lGLU" >&5
- ac_lib_var=`echo GLU'_'gluBeginCurve | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lGLU $OPENGLLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lstdc++ $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 9795 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char gluBeginCurve();
- int main() {
- gluBeginCurve()
- ; return 0; }
- EOF
- if { (eval echo configure:9806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- OPENGLULIB="$OPENGLULIB -lGLU -lstdc++"
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate GLU library." 1>&2; exit 1; }
- fi
- fi
- LDFLAGS=${ac_save_ldflags}
- OPENGLLIB="$OPENGL_LIB_PATH $OPENGLLIB"
- OPENGLULIB="$OPENGL_LIB_PATH $OPENGLULIB"
- ac_save_libs="$LIBS"
- ac_save_ldflags="$LDFLAGS"
- LIBS=" $OPENGLLIB $LIBS"
- LDFLAGS=" $LDFLAGS"
- echo $ac_n "checking for glXCreatePbuffer""... $ac_c" 1>&6
- echo "configure:9853: checking for glXCreatePbuffer" >&5
- cat > conftest.$ac_ext <<EOF
- #line 9856 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char glXCreatePbuffer(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char glXCreatePbuffer();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_glXCreatePbuffer) || defined (__stub___glXCreatePbuffer)
- choke me
- #else
- glXCreatePbuffer();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:9879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_glXCreatePbuffer=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_glXCreatePbuffer=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'glXCreatePbuffer`\" = yes"; then
- echo "$ac_t""yes" 1>&6
-
- cat >> confdefs.h <<\EOF
- #define HAVE_PBUFFERS 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate glXCreatePbuffer." 1>&2; exit 1; }
- fi
- LIBS=${ac_save_libs}
- LDFLAGS=${ac_save_ldflags}
- ac_save_libs="$LIBS"
- ac_save_ldflags="$LDFLAGS"
- LIBS=" $OPENGLLIB $LIBS"
- LDFLAGS=" $LDFLAGS"
- echo $ac_n "checking for glXCreateGLXPixmap""... $ac_c" 1>&6
- echo "configure:9916: checking for glXCreateGLXPixmap" >&5
- cat > conftest.$ac_ext <<EOF
- #line 9919 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char glXCreateGLXPixmap(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char glXCreateGLXPixmap();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_glXCreateGLXPixmap) || defined (__stub___glXCreateGLXPixmap)
- choke me
- #else
- glXCreateGLXPixmap();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:9942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_glXCreateGLXPixmap=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_glXCreateGLXPixmap=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'glXCreateGLXPixmap`\" = yes"; then
- echo "$ac_t""yes" 1>&6
-
- cat >> confdefs.h <<\EOF
- #define HAVE_PIXMAPS 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate glXCreateGLXPixmap." 1>&2; exit 1; }
- fi
- LIBS=${ac_save_libs}
- LDFLAGS=${ac_save_ldflags}
- cat >> confdefs.h <<\EOF
- #define OPENGL_X11 1
- EOF
- fi # $OPENGL_X11
- if test "$OPENGL_AQUA" = 1 ; then
- echo $ac_n "checking for location of OpenGL framework""... $ac_c" 1>&6
- echo "configure:9985: checking for location of OpenGL framework" >&5
- case "$with_opengl_framework" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-opengl-framework." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_opengl_framework" 1>&6
- if test -n "$with_opengl_framework"; then
- if test -d $with_opengl_framework; then
- OPENGLPATH="$OPENGLPATH -F$with_opengl_framework"
- else
- { echo "configure: error: *** OpenGL framework directory $dir does not exist." 1>&2; exit 1; }
- fi
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$OPENGLPATH $CPPFLAGS"
- for ac_hdr in OpenGL/gl.h OpenGL/glu.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:10009: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 10012 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:10017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate OpenGL includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- ac_save_libs="$LIBS"
- ac_save_ldflags="$LDFLAGS"
- LIBS="-framework OpenGL -framework AGL -framework ApplicationServices $LIBS"
- LDFLAGS="$OPENGLPATH $LDFLAGS"
- echo $ac_n "checking for glBegin""... $ac_c" 1>&6
- echo "configure:10053: checking for glBegin" >&5
- cat > conftest.$ac_ext <<EOF
- #line 10056 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char glBegin(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char glBegin();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_glBegin) || defined (__stub___glBegin)
- choke me
- #else
- glBegin();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:10079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_glBegin=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_glBegin=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'glBegin`\" = yes"; then
- echo "$ac_t""yes" 1>&6
-
- OPENGLLIB="$OPENGLLIB -framework OpenGL -framework AGL -framework ApplicationServices"
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate OpenGL library." 1>&2; exit 1; }
- fi
- LIBS=${ac_save_libs}
- LDFLAGS=${ac_save_ldflags}
- ac_save_libs="$LIBS"
- ac_save_ldflags="$LDFLAGS"
- LIBS=" $OPENGLLIB $LIBS"
- LDFLAGS="$OPENGLPATH $LDFLAGS"
- echo $ac_n "checking for gluBeginCurve""... $ac_c" 1>&6
- echo "configure:10116: checking for gluBeginCurve" >&5
- cat > conftest.$ac_ext <<EOF
- #line 10119 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char gluBeginCurve(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char gluBeginCurve();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_gluBeginCurve) || defined (__stub___gluBeginCurve)
- choke me
- #else
- gluBeginCurve();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:10142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_gluBeginCurve=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_gluBeginCurve=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'gluBeginCurve`\" = yes"; then
- echo "$ac_t""yes" 1>&6
-
- OPENGLLIB="$OPENGLLIB "
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate GLU library." 1>&2; exit 1; }
- fi
- LIBS=${ac_save_libs}
- LDFLAGS=${ac_save_ldflags}
- OPENGLINC="$OPENGLPATH"
- OPENGLLIBPATH="$OPENGLPATH"
- cat >> confdefs.h <<\EOF
- #define OPENGL_AQUA 1
- EOF
- fi # $OPENGL_AQUA
- if test "$OPENGL_WINDOWS" = 1 ; then
- # With OpenGL includes directory
- echo $ac_n "checking for location of OpenGL includes""... $ac_c" 1>&6
- echo "configure:10190: checking for location of OpenGL includes" >&5
- case "$with_opengl_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-opengl-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_opengl_includes" 1>&6
- if test -n "$with_opengl_includes" ; then
- for dir in $with_opengl_includes; do
- if test -d "$dir"; then
- OPENGLINC="$OPENGLINC -I$dir"
- else
- { echo "configure: error: *** OpenGL includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$OPENGLINC $CPPFLAGS"
- for ac_hdr in GL/gl.h GL/glu.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:10216: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 10219 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:10224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate OpenGL includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- # With OpenGL library directory
- echo $ac_n "checking for location of OpenGL library""... $ac_c" 1>&6
- echo "configure:10258: checking for location of OpenGL library" >&5
- case "$with_opengl_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-opengl-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_opengl_libs" 1>&6
- if test -n "$with_opengl_libs"; then
- for dir in $with_opengl_libs; do
- if test -d "$dir"; then
- OPENGL_LIB_PATH="$OPENGL_LIB_PATH -L$dir"
- else
- { echo "configure: error: *** OpenGL library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cflags="$CFLAGS"
- CFLAGS="$CFLAGS $OPENGLINC"
- ac_save_ldflags="$LDFLAGS"
- ac_save_libs="$LIBS"
- echo $ac_n "checking for OpenGL library""... $ac_c" 1>&6
- echo "configure:10283: checking for OpenGL library" >&5
- LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
- LIBS="-lopengl32 "
- cat > conftest.$ac_ext <<EOF
- #line 10287 "configure"
- #include "confdefs.h"
- #include <GL/gl.h>
- int main() {
- glEnd();
- ; return 0; }
- EOF
- if { (eval echo configure:10294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
-
- echo "$ac_t""found" 1>&6
- OPENGLLIB="$OPENGLLIB -lopengl32 "
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
-
- { echo "configure: error: *** Unable to locate OpenGL library." 1>&2; exit 1; }
- fi
- rm -f conftest*
- LIBS=${ac_save_libs}
- LDFLAGS=${ac_save_ldflags}
- ac_save_ldflags="$LDFLAGS"
- ac_save_libs="$LIBS"
- echo $ac_n "checking for GLU library""... $ac_c" 1>&6
- echo "configure:10318: checking for GLU library" >&5
- LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
- LIBS="-lglu32 $OPENGLLIB "
- cat > conftest.$ac_ext <<EOF
- #line 10322 "configure"
- #include "confdefs.h"
- #include <GL/glu.h>
- int main() {
- gluNewQuadric();
- ; return 0; }
- EOF
- if { (eval echo configure:10329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
-
- echo "$ac_t""found" 1>&6
- OPENGLULIB="$OPENGLULIB -lglu32 "
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
-
- { echo "configure: error: *** Unable to locate GLU library." 1>&2; exit 1; }
- fi
- rm -f conftest*
- LIBS=${ac_save_libs}
- LDFLAGS=${ac_save_ldflags}
- CFLAGS="${ac_save_cflags}"
- OPENGLLIB="$OPENGL_LIB_PATH $OPENGLLIB"
- OPENGLULIB="$OPENGL_LIB_PATH $OPENGLULIB"
- cat >> confdefs.h <<\EOF
- #define OPENGL_WINDOWS 1
- EOF
- fi # $OPENGL_WINDOWS
- fi # $USE_OPENGL
- # Done checking OpenGL
- # Enable ODBC option
- echo $ac_n "checking whether to use ODBC""... $ac_c" 1>&6
- echo "configure:10378: checking whether to use ODBC" >&5
- echo "$ac_t"""$with_odbc"" 1>&6
- case "$with_odbc" in
- "no") USE_ODBC= ;;
- "yes") USE_ODBC="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- ODBCINC=
- ODBCLIB=
- if test -n "$USE_ODBC"; then
- # With ODBC includes directory
- echo $ac_n "checking for location of ODBC includes""... $ac_c" 1>&6
- echo "configure:10397: checking for location of ODBC includes" >&5
- case "$with_odbc_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-odbc-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_odbc_includes" 1>&6
- if test -n "$with_odbc_includes" ; then
- for dir in $with_odbc_includes; do
- if test -d "$dir"; then
- ODBCINC="$ODBCINC -I$dir"
- else
- { echo "configure: error: *** ODBC includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$ODBCINC $CPPFLAGS"
- for ac_hdr in sql.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:10423: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 10426 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:10431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate ODBC includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- # With ODBC library directory
- echo $ac_n "checking for location of ODBC library""... $ac_c" 1>&6
- echo "configure:10465: checking for location of ODBC library" >&5
- case "$with_odbc_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-odbc-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_odbc_libs" 1>&6
- if test -n "$with_odbc_libs"; then
- for dir in $with_odbc_libs; do
- if test -d "$dir"; then
- ODBCLIB="$ODBCLIB -L$dir"
- else
- { echo "configure: error: *** ODBC library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$ODBCLIB $LDFLAGS"
- echo $ac_n "checking for SQLConnect in -lodbc""... $ac_c" 1>&6
- echo "configure:10490: checking for SQLConnect in -lodbc" >&5
- ac_lib_var=`echo odbc'_'SQLConnect | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lodbc $ICONVLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 10496 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char SQLConnect();
- int main() {
- SQLConnect()
- ; return 0; }
- EOF
- if { (eval echo configure:10507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ODBCLIB="$ODBCLIB -lodbc "
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$ODBCLIB $LDFLAGS"
- echo $ac_n "checking for SQLConnect in -liodbc""... $ac_c" 1>&6
- echo "configure:10532: checking for SQLConnect in -liodbc" >&5
- ac_lib_var=`echo iodbc'_'SQLConnect | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-liodbc $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 10538 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char SQLConnect();
- int main() {
- SQLConnect()
- ; return 0; }
- EOF
- if { (eval echo configure:10549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ODBCLIB="$ODBCLIB -liodbc "
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- ac_save_cflags="$CFLAGS"
- CFLAGS="$CFLAGS $ODBCINC"
- ac_save_ldflags="$LDFLAGS"
- ac_save_libs="$LIBS"
- echo $ac_n "checking for ODBC library""... $ac_c" 1>&6
- echo "configure:10574: checking for ODBC library" >&5
- LDFLAGS="$ODBCLIB $LDFLAGS"
- LIBS="-lodbc32 "
- cat > conftest.$ac_ext <<EOF
- #line 10578 "configure"
- #include "confdefs.h"
- #include <windows.h>
- #include <sql.h>
- int main() {
- SQLAllocEnv((SQLHENV *)0);
- ; return 0; }
- EOF
- if { (eval echo configure:10586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
-
- echo "$ac_t""found" 1>&6
- ODBCLIB="$ODBCLIB -lodbc32 "
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
-
- { echo "configure: error: *** Unable to locate ODBC library." 1>&2; exit 1; }
- fi
- rm -f conftest*
- LIBS=${ac_save_libs}
- LDFLAGS=${ac_save_ldflags}
- CFLAGS="${ac_save_cflags}"
- fi
- LDFLAGS=${ac_save_ldflags}
- fi
- LDFLAGS=${ac_save_ldflags}
- fi # $USE_ODBC
- # Done checking ODBC
- # Enable FFTW option
- echo $ac_n "checking whether to use FFTW""... $ac_c" 1>&6
- echo "configure:10635: checking whether to use FFTW" >&5
- echo "$ac_t"""$with_fftw"" 1>&6
- case "$with_fftw" in
- "no") USE_FFTW= ;;
- "yes") USE_FFTW="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- FFTWINC=
- FFTWLIB=
- if test -n "$USE_FFTW"; then
- # With FFTW includes directory
- echo $ac_n "checking for location of FFTW includes""... $ac_c" 1>&6
- echo "configure:10654: checking for location of FFTW includes" >&5
- case "$with_fftw_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-fftw-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_fftw_includes" 1>&6
- if test -n "$with_fftw_includes" ; then
- for dir in $with_fftw_includes; do
- if test -d "$dir"; then
- FFTWINC="$FFTWINC -I$dir"
- else
- { echo "configure: error: *** FFTW includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$FFTWINC $CPPFLAGS"
- for ac_hdr in fftw3.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:10680: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 10683 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:10688: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS=" $CPPFLAGS"
- for ac_hdr in fftw.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:10716: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 10719 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:10724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS=" $CPPFLAGS"
- for ac_hdr in dfftw.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:10752: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 10755 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:10760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate FFTW includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- # With FFTW library directory
- echo $ac_n "checking for location of FFTW library""... $ac_c" 1>&6
- echo "configure:10806: checking for location of FFTW library" >&5
- case "$with_fftw_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-fftw-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_fftw_libs" 1>&6
- if test -n "$with_fftw_libs"; then
- for dir in $with_fftw_libs; do
- if test -d "$dir"; then
- FFTWLIB="$FFTWLIB -L$dir"
- else
- { echo "configure: error: *** FFTW library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$FFTWLIB $LDFLAGS"
- echo $ac_n "checking for fftw_execute in -lfftw3""... $ac_c" 1>&6
- echo "configure:10831: checking for fftw_execute in -lfftw3" >&5
- ac_lib_var=`echo fftw3'_'fftw_execute | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lfftw3 $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 10837 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char fftw_execute();
- int main() {
- fftw_execute()
- ; return 0; }
- EOF
- if { (eval echo configure:10848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- FFTWLIB="$FFTWLIB -lfftw3 $MATHLIB"
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$FFTWLIB $LDFLAGS"
- echo $ac_n "checking for fftwnd_one in -lfftw""... $ac_c" 1>&6
- echo "configure:10873: checking for fftwnd_one in -lfftw" >&5
- ac_lib_var=`echo fftw'_'fftwnd_one | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lfftw $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 10879 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char fftwnd_one();
- int main() {
- fftwnd_one()
- ; return 0; }
- EOF
- if { (eval echo configure:10890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- FFTWLIB="$FFTWLIB -lfftw $MATHLIB"
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$FFTWLIB $LDFLAGS"
- echo $ac_n "checking for fftwnd_one in -ldfftw""... $ac_c" 1>&6
- echo "configure:10915: checking for fftwnd_one in -ldfftw" >&5
- ac_lib_var=`echo dfftw'_'fftwnd_one | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-ldfftw $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 10921 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char fftwnd_one();
- int main() {
- fftwnd_one()
- ; return 0; }
- EOF
- if { (eval echo configure:10932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- FFTWLIB="$FFTWLIB -ldfftw $MATHLIB"
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate FFTW library." 1>&2; exit 1; }
- fi
- LDFLAGS=${ac_save_ldflags}
- fi
- LDFLAGS=${ac_save_ldflags}
- fi
- LDFLAGS=${ac_save_ldflags}
- fi # $USE_FFTW
- # Done checking FFTW
- # Enable BLAS option
- echo $ac_n "checking whether to use BLAS""... $ac_c" 1>&6
- echo "configure:10989: checking whether to use BLAS" >&5
- echo "$ac_t"""$with_blas"" 1>&6
- case "$with_blas" in
- "no") USE_BLAS= ;;
- "yes") USE_BLAS="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- BLASLIB=
- BLASINC=
- if test -n "$USE_BLAS"; then
- # With BLAS includes directory
- # BLAS doesn't have includes (FORTRAN library)
- # With BLAS library directory
- echo $ac_n "checking for location of BLAS includes""... $ac_c" 1>&6
- echo "configure:11010: checking for location of BLAS includes" >&5
- case "$with_blas_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-blas-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_blas_includes" 1>&6
- if test -n "$with_blas_includes" ; then
- for dir in $with_blas_includes; do
- if test -d "$dir"; then
- BLASINC="$BLASINC -I$dir"
- else
- { echo "configure: error: *** BLAS includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- echo $ac_n "checking for location of BLAS library""... $ac_c" 1>&6
- echo "configure:11030: checking for location of BLAS library" >&5
- case "$with_blas_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-blas-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_blas_libs" 1>&6
- if test -n "$with_blas_libs"; then
- for dir in $with_blas_libs; do
- if test -d "$dir"; then
- BLASLIB="$BLASLIB -L$dir"
- else
- { echo "configure: error: *** BLAS library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- # See if cblas.h exists (CBLAS,ATLAS,others)
- save_CPPFLAGS="$CPPFLAGS"
- CPPFLAGS="$BLASINC $CPPFLAGS"
- for ac_hdr in cblas.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:11056: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 11059 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:11064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- CPPFLAGS="$save_CPPFLAGS"
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$BLASLIB $LDFLAGS"
- echo $ac_n "checking for dnrm2_ in -lblas""... $ac_c" 1>&6
- echo "configure:11099: checking for dnrm2_ in -lblas" >&5
- ac_lib_var=`echo blas'_'dnrm2_ | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lblas $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 11105 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char dnrm2_();
- int main() {
- dnrm2_()
- ; return 0; }
- EOF
- if { (eval echo configure:11116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- BLASLIB="$BLASLIB -lblas "
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for dnrm2_ in -lblas""... $ac_c" 1>&6
- echo "configure:11135: checking for dnrm2_ in -lblas" >&5
- ac_lib_var=`echo blas'_'dnrm2_ | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lblas $MATHLIB -lg2c $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 11141 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char dnrm2_();
- int main() {
- dnrm2_()
- ; return 0; }
- EOF
- if { (eval echo configure:11152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- BLASLIB="$BLASLIB -lblas -lg2c"
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate BLAS library." 1>&2; exit 1; }
- fi
- fi
- LDFLAGS=${ac_save_ldflags}
- blas_ok=no
- # Check for ATLAS
- save_LDFLAGS="$LDFLAGS"
- LDFLAGS="$BLASLIB $LDFLAGS"
- echo $ac_n "checking for ATL_xerbla in -latlas""... $ac_c" 1>&6
- echo "configure:11196: checking for ATL_xerbla in -latlas" >&5
- ac_lib_var=`echo atlas'_'ATL_xerbla | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-latlas $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 11202 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char ATL_xerbla();
- int main() {
- ATL_xerbla()
- ; return 0; }
- EOF
- if { (eval echo configure:11213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- echo $ac_n "checking for sgemm_ in -lf77blas""... $ac_c" 1>&6
- echo "configure:11228: checking for sgemm_ in -lf77blas" >&5
- ac_lib_var=`echo f77blas'_'sgemm_ | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lf77blas -latlas $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 11234 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char sgemm_();
- int main() {
- sgemm_()
- ; return 0; }
- EOF
- if { (eval echo configure:11245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- echo $ac_n "checking for cblas_dgemm in -lcblas""... $ac_c" 1>&6
- echo "configure:11260: checking for cblas_dgemm in -lcblas" >&5
- ac_lib_var=`echo cblas'_'cblas_dgemm | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lcblas -lf77blas -latlas $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 11266 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char cblas_dgemm();
- int main() {
- cblas_dgemm()
- ; return 0; }
- EOF
- if { (eval echo configure:11277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- blas_ok=yes; BLASLIB="-lcblas -lf77blas -latlas"
- else
- echo "$ac_t""no" 1>&6
- fi
- else
- echo "$ac_t""no" 1>&6
- fi
- else
- echo "$ac_t""no" 1>&6
- fi
- LDFLAGS="$save_LDFLAGS"
- # Do we have ATLAS?
- if test $blas_ok = yes; then
- cat >> confdefs.h <<\EOF
- #define HAVE_LIBATLAS 1
- EOF
- fi
- # BLAS in Apple vecLib framework? (Mac OS-X)
- # not dependent on APP build
- #if test -n "$MACOSX_APP"; then
- if test $blas_ok = no; then
- vlib_flags="-framework vecLib"
- save_LIBS="$LIBS"
- LIBS="$vlib_flags $LIBS"
- echo $ac_n "checking for sgemm in $vlib_flags""... $ac_c" 1>&6
- echo "configure:11323: checking for sgemm in $vlib_flags" >&5
- cat > conftest.$ac_ext <<EOF
- #line 11325 "configure"
- #include "confdefs.h"
- int main() {
- sgemm
- ; return 0; }
- EOF
- if { (eval echo configure:11332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- blas_ok=yes; BLASLIB="$vlib_flags"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- BLASLIB=""
- fi
- rm -f conftest*
- echo "$ac_t""$blas_ok" 1>&6
- LIBS="$save_LIBS"
- fi
- #fi # $MACOSX_APP
- # BLAS in PhiPACK libraries? (requires generic BLAS, too)
- if test $blas_ok = no; then
- echo $ac_n "checking for sgemm_ in -lblas""... $ac_c" 1>&6
- echo "configure:11350: checking for sgemm_ in -lblas" >&5
- ac_lib_var=`echo blas'_'sgemm_ | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lblas $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 11356 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char sgemm_();
- int main() {
- sgemm_()
- ; return 0; }
- EOF
- if { (eval echo configure:11367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- echo $ac_n "checking for dgemm_ in -ldgemm""... $ac_c" 1>&6
- echo "configure:11382: checking for dgemm_ in -ldgemm" >&5
- ac_lib_var=`echo dgemm'_'dgemm_ | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-ldgemm -lblas $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 11388 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char dgemm_();
- int main() {
- dgemm_()
- ; return 0; }
- EOF
- if { (eval echo configure:11399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- echo $ac_n "checking for sgemm_ in -lsgemm""... $ac_c" 1>&6
- echo "configure:11414: checking for sgemm_ in -lsgemm" >&5
- ac_lib_var=`echo sgemm'_'sgemm_ | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lsgemm -lblas $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 11420 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char sgemm_();
- int main() {
- sgemm_()
- ; return 0; }
- EOF
- if { (eval echo configure:11431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- blas_ok=yes; BLASLIB="-lsgemm -ldgemm -lblas"
- else
- echo "$ac_t""no" 1>&6
- fi
- else
- echo "$ac_t""no" 1>&6
- fi
-
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- # BLAS in Sun Performance library?
- if test $blas_ok = no; then
- if test "x$GCC" != xyes; then # only works with Sun CC
- echo $ac_n "checking for acosp in -lsunmath""... $ac_c" 1>&6
- echo "configure:11465: checking for acosp in -lsunmath" >&5
- ac_lib_var=`echo sunmath'_'acosp | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lsunmath $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 11471 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char acosp();
- int main() {
- acosp()
- ; return 0; }
- EOF
- if { (eval echo configure:11482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- echo $ac_n "checking for sgemm_ in -lsunperf""... $ac_c" 1>&6
- echo "configure:11497: checking for sgemm_ in -lsunperf" >&5
- ac_lib_var=`echo sunperf'_'sgemm_ | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lsunperf -lsunmath $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 11503 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char sgemm_();
- int main() {
- sgemm_()
- ; return 0; }
- EOF
- if { (eval echo configure:11514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- blas_ok=yes; BLASLIB="-xlic_lib=sunperf -lsunmath"
- else
- echo "$ac_t""no" 1>&6
- fi
-
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- fi
- # Generic BLAS library
- if test $blas_ok = no; then
- echo $ac_n "checking for sgemm_ in -lblas""... $ac_c" 1>&6
- echo "configure:11544: checking for sgemm_ in -lblas" >&5
- ac_lib_var=`echo blas'_'sgemm_ | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lblas $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 11550 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char sgemm_();
- int main() {
- sgemm_()
- ; return 0; }
- EOF
- if { (eval echo configure:11561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- blas_ok=yes; BLASLIB="-lblas"
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- if test $blas_ok = yes; then
- cat >> confdefs.h <<\EOF
- #define HAVE_LIBBLAS 1
- EOF
- fi
- fi # $USE_BLAS
- # Done checking BLAS
- # Enable LAPACK option
- echo $ac_n "checking whether to use LAPACK""... $ac_c" 1>&6
- echo "configure:11600: checking whether to use LAPACK" >&5
- echo "$ac_t"""$with_lapack"" 1>&6
- case "$with_lapack" in
- "no") USE_LAPACK= ;;
- "yes") USE_LAPACK="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- LAPACKLIB=
- LAPACKINC=
- # LAPACK is useless without BLAS
- if test -n "$USE_BLAS"; then
- if test -n "$USE_LAPACK"; then
- # With LAPACK includes directory
- # LAPACK doesn't have includes (FORTRAN library)
- # With LAPACK library directory
- lapack_ok=no
- echo $ac_n "checking for location of LAPACK includes""... $ac_c" 1>&6
- echo "configure:11625: checking for location of LAPACK includes" >&5
- case "$with_lapack_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-lapack-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_lapack_includes" 1>&6
- if test -n "$with_lapack_includes" ; then
- for dir in $with_lapack_includes; do
- if test -d "$dir"; then
- LAPACKINC="$LAPACKINC -I$dir"
- else
- { echo "configure: error: *** LAPACK includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- echo $ac_n "checking for location of LAPACK library""... $ac_c" 1>&6
- echo "configure:11645: checking for location of LAPACK library" >&5
- case "$with_lapack_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-lapack-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_lapack_libs" 1>&6
- if test -n "$with_lapack_libs"; then
- for dir in $with_lapack_libs; do
- if test -d "$dir"; then
- LAPACKLIB="$LAPACKLIB -L$dir"
- else
- { echo "configure: error: *** LAPACK library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- # See if clapack.h exists (ATLAS)
- save_CPPFLAGS="$CPPFLAGS"
- CPPFLAGS="$LAPACKINC $CPPFLAGS"
- for ac_hdr in clapack.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:11671: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 11674 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:11679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- CPPFLAGS="$save_CPPFLAGS"
- # LAPACK linked to by default?
- if test lapack_ok=no; then
- save_LIBS="$LIBS"; LIBS="$LIBS $BLASLIB $MATHLIB $FLIBS"
- save_LDFLAGS="$LDFLAGS"; LDFLAGS="$LAPACKLIB $LDFLAGS"
- echo $ac_n "checking for dsegv_""... $ac_c" 1>&6
- echo "configure:11711: checking for dsegv_" >&5
- cat > conftest.$ac_ext <<EOF
- #line 11714 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char dsegv_(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char dsegv_();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_dsegv_) || defined (__stub___dsegv_)
- choke me
- #else
- dsegv_();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:11737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_dsegv_=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_dsegv_=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'dsegv_`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- lapack_ok=yes
- else
- echo "$ac_t""no" 1>&6
- fi
- LIBS="$save_LIBS"
- LDFLAGS="$save_LDFLAGS"
- fi
- # Generic LAPACK library?
- if test $lapack_ok = no; then
- save_libs="$LIBS"; LIBS="$BLASLIB $MATHLIB $LIBS"
- save_LDFLAGS="$LDFLAGS"; LDFLAGS="$LAPACKLIB $LDFLAGS"
- echo $ac_n "checking for desgv_ in -llapack""... $ac_c" 1>&6
- echo "configure:11764: checking for desgv_ in -llapack" >&5
- ac_lib_var=`echo lapack'_'desgv_ | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-llapack $FLIBS $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 11770 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char desgv_();
- int main() {
- desgv_()
- ; return 0; }
- EOF
- if { (eval echo configure:11781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- lapack_ok=yes; LAPACKLIB="-llapack"
- else
- echo "$ac_t""no" 1>&6
- fi
- LIBS="$save_LIBS"
- LDFLAGS="$save_LDFLAGS"
- fi
- if test $lapack_ok = no; then
-
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$LAPACKLIB $LDFLAGS"
- echo $ac_n "checking for dgesv_ in -llapack""... $ac_c" 1>&6
- echo "configure:11813: checking for dgesv_ in -llapack" >&5
- ac_lib_var=`echo lapack'_'dgesv_ | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-llapack $BLASLIB $MATHLIB $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 11819 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char dgesv_();
- int main() {
- dgesv_()
- ; return 0; }
- EOF
- if { (eval echo configure:11830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- LAPACKLIB="$LAPACKLIB -llapack "
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for dgesv_ in -llapack""... $ac_c" 1>&6
- echo "configure:11849: checking for dgesv_ in -llapack" >&5
- ac_lib_var=`echo lapack'_'dgesv_ | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-llapack $BLASLIB $MATHLIB -lg2c $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 11855 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char dgesv_();
- int main() {
- dgesv_()
- ; return 0; }
- EOF
- if { (eval echo configure:11866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- LAPACKLIB="$LAPACKLIB -llapack -lg2c"
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate LAPACK library." 1>&2; exit 1; }
- fi
- fi
- LDFLAGS=${ac_save_ldflags}
- fi
- cat >> confdefs.h <<\EOF
- #define HAVE_LIBLAPACK 1
- EOF
- fi # $USE_LAPACK
- fi # $USE_BLAS
- # Done checking LAPACK
- # Enable Cairo display driver option
- echo $ac_n "checking whether to use Cairo""... $ac_c" 1>&6
- echo "configure:11922: checking whether to use Cairo" >&5
- echo "$ac_t"""$with_cairo"" 1>&6
- case "$with_cairo" in
- "no") USE_CAIRO= ;;
- "yes") USE_CAIRO="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- CAIROINC=
- CAIROLIB=
- if test -n "$USE_CAIRO"; then
- cairo="cairo"
- pkgs="cairo-ft cairo-fc cairo-pdf cairo-ps cairo-svg fontconfig"
- if test -n "$USE_X11"; then
- pkgs="$pkgs cairo-xlib cairo-xlib-xrender"
- fi
- for pkg in $pkgs ; do
- if pkg-config --exists $pkg ; then
- cairo="$cairo $pkg"
- fi
- done
- # With Cairo includes directory
- #FIXME: somehow quote dirs with spaces in $cairo ?
- CAIROINC=`pkg-config --cflags $cairo`
- echo $ac_n "checking for location of cairo includes""... $ac_c" 1>&6
- echo "configure:11954: checking for location of cairo includes" >&5
- case "$with_cairo_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-cairo-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_cairo_includes" 1>&6
- if test -n "$with_cairo_includes" ; then
- for dir in $with_cairo_includes; do
- if test -d "$dir"; then
- CAIROINC="$CAIROINC -I$dir"
- else
- { echo "configure: error: *** cairo includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$CAIROINC $CPPFLAGS"
- for ac_hdr in cairo.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:11980: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 11983 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:11988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate Cairo includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- # With Cairo library directory
- CAIROLIB=`pkg-config --libs $cairo`
- echo $ac_n "checking for location of cairo library""... $ac_c" 1>&6
- echo "configure:12024: checking for location of cairo library" >&5
- case "$with_cairo_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-cairo-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_cairo_libs" 1>&6
- if test -n "$with_cairo_libs"; then
- for dir in $with_cairo_libs; do
- if test -d "$dir"; then
- CAIROLIB="$CAIROLIB -L$dir"
- else
- { echo "configure: error: *** cairo library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- echo $ac_n "checking for cairo linking flags""... $ac_c" 1>&6
- echo "configure:12044: checking for cairo linking flags" >&5
- case "$with_cairo_ldflags" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-cairo-ldflags." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_cairo_ldflags" 1>&6
- CAIROLIB="$CAIROLIB $with_cairo_ldflags"
- ac_save_libs="$LIBS"
- ac_save_ldflags="$LDFLAGS"
- LIBS=" $CAIROLIB $LIBS"
- LDFLAGS=" $LDFLAGS"
- echo $ac_n "checking for cairo_create""... $ac_c" 1>&6
- echo "configure:12060: checking for cairo_create" >&5
- cat > conftest.$ac_ext <<EOF
- #line 12063 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char cairo_create(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char cairo_create();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_cairo_create) || defined (__stub___cairo_create)
- choke me
- #else
- cairo_create();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:12086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_cairo_create=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_cairo_create=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'cairo_create`\" = yes"; then
- echo "$ac_t""yes" 1>&6
-
- :
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate cairo_create." 1>&2; exit 1; }
- fi
- LIBS=${ac_save_libs}
- LDFLAGS=${ac_save_ldflags}
- ac_save_libs="$LIBS"
- ac_save_ldflags="$LDFLAGS"
- LIBS=" $CAIROLIB $LIBS"
- LDFLAGS=" $LDFLAGS"
- echo $ac_n "checking for cairo_xlib_surface_create_with_xrender_format""... $ac_c" 1>&6
- echo "configure:12120: checking for cairo_xlib_surface_create_with_xrender_format" >&5
- cat > conftest.$ac_ext <<EOF
- #line 12123 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char cairo_xlib_surface_create_with_xrender_format(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char cairo_xlib_surface_create_with_xrender_format();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_cairo_xlib_surface_create_with_xrender_format) || defined (__stub___cairo_xlib_surface_create_with_xrender_format)
- choke me
- #else
- cairo_xlib_surface_create_with_xrender_format();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:12146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_cairo_xlib_surface_create_with_xrender_format=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_cairo_xlib_surface_create_with_xrender_format=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'cairo_xlib_surface_create_with_xrender_format`\" = yes"; then
- echo "$ac_t""yes" 1>&6
-
- CAIRO_HAS_XRENDER=1
- else
- echo "$ac_t""no" 1>&6
- CAIRO_HAS_XRENDER=
- fi
- LIBS=${ac_save_libs}
- LDFLAGS=${ac_save_ldflags}
- ac_save_libs="$LIBS"
- ac_save_ldflags="$LDFLAGS"
- LIBS=" $CAIROLIB $LIBS"
- LDFLAGS=" $LDFLAGS"
- echo $ac_n "checking for cairo_xlib_surface_get_xrender_format""... $ac_c" 1>&6
- echo "configure:12179: checking for cairo_xlib_surface_get_xrender_format" >&5
- cat > conftest.$ac_ext <<EOF
- #line 12182 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char cairo_xlib_surface_get_xrender_format(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char cairo_xlib_surface_get_xrender_format();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_cairo_xlib_surface_get_xrender_format) || defined (__stub___cairo_xlib_surface_get_xrender_format)
- choke me
- #else
- cairo_xlib_surface_get_xrender_format();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:12205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_cairo_xlib_surface_get_xrender_format=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_cairo_xlib_surface_get_xrender_format=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'cairo_xlib_surface_get_xrender_format`\" = yes"; then
- echo "$ac_t""yes" 1>&6
-
- CAIRO_HAS_XRENDER_SURFACE=1
- else
- echo "$ac_t""no" 1>&6
- CAIRO_HAS_XRENDER_SURFACE=
- fi
- LIBS=${ac_save_libs}
- LDFLAGS=${ac_save_ldflags}
- CAIROLIB="$CAIROLIB $CAIROLDFLAGS"
- fi # $USE_CAIRO
- # Done checking Cairo
- # Enable FreeType option
- echo $ac_n "checking whether to use FreeType""... $ac_c" 1>&6
- echo "configure:12247: checking whether to use FreeType" >&5
- echo "$ac_t"""$with_freetype"" 1>&6
- case "$with_freetype" in
- "no") USE_FREETYPE= ;;
- "yes") USE_FREETYPE="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- FTINC=
- FTLIB=
- if test -n "$USE_FREETYPE"; then
- # With FreeType includes directory
- echo $ac_n "checking for location of FreeType includes""... $ac_c" 1>&6
- echo "configure:12266: checking for location of FreeType includes" >&5
- case "$with_freetype_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-freetype-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_freetype_includes" 1>&6
- if test -n "$with_freetype_includes" ; then
- for dir in $with_freetype_includes; do
- if test -d "$dir"; then
- FTINC="$FTINC -I$dir"
- else
- { echo "configure: error: *** FreeType includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$FTINC $CPPFLAGS"
- for ac_hdr in ft2build.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:12292: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 12295 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:12300: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate FreeType includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- # With FreeType library directory
- echo $ac_n "checking for location of FreeType library""... $ac_c" 1>&6
- echo "configure:12334: checking for location of FreeType library" >&5
- case "$with_freetype_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-freetype-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_freetype_libs" 1>&6
- if test -n "$with_freetype_libs"; then
- for dir in $with_freetype_libs; do
- if test -d "$dir"; then
- FTLIB="$FTLIB -L$dir"
- else
- { echo "configure: error: *** FreeType library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$FTLIB $LDFLAGS"
- echo $ac_n "checking for FT_Init_FreeType in -lfreetype""... $ac_c" 1>&6
- echo "configure:12359: checking for FT_Init_FreeType in -lfreetype" >&5
- ac_lib_var=`echo freetype'_'FT_Init_FreeType | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lfreetype $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 12365 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char FT_Init_FreeType();
- int main() {
- FT_Init_FreeType()
- ; return 0; }
- EOF
- if { (eval echo configure:12376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- FTLIB="$FTLIB -lfreetype "
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate FreeType library." 1>&2; exit 1; }
- fi
- LDFLAGS=${ac_save_ldflags}
- fi # $USE_FREETYPE
- # Done checking FreeType
- # Enable NLS option
- echo $ac_n "checking whether to use NLS""... $ac_c" 1>&6
- echo "configure:12417: checking whether to use NLS" >&5
- echo "$ac_t"""$with_nls"" 1>&6
- case "$with_nls" in
- "no") USE_NLS= ;;
- "yes") USE_NLS="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- INTLLIB=
- HAVE_NLS=
- if test -n "${USE_NLS}" ; then
- cat >> confdefs.h <<\EOF
- #define USE_NLS 1
- EOF
- echo $ac_n "checking for gettext""... $ac_c" 1>&6
- echo "configure:12437: checking for gettext" >&5
- cat > conftest.$ac_ext <<EOF
- #line 12440 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char gettext(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char gettext();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_gettext) || defined (__stub___gettext)
- choke me
- #else
- gettext();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:12463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_gettext=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_gettext=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'gettext`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- INTLLIB=
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
- echo "configure:12481: checking for gettext in -lintl" >&5
- ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lintl $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 12487 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char gettext();
- int main() {
- gettext()
- ; return 0; }
- EOF
- if { (eval echo configure:12498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- INTLLIB=-lintl
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate gettext() function." 1>&2; exit 1; }
- fi
- fi
- HAVE_NLS=1
- fi
- # Enable C++ option
-
- echo $ac_n "checking whether to use C++""... $ac_c" 1>&6
- echo "configure:12533: checking whether to use C++" >&5
- echo "$ac_t"""$with_cxx"" 1>&6
- case "$with_cxx" in
- "no") USE_CXX= ;;
- "yes") USE_CXX="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- if test -n "$USE_CXX"; then
- for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
- do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
- set dummy $ac_prog; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:12549: checking for $ac_word" >&5
- if test -n "$CXX"; then
- ac_cv_prog_CXX="$CXX" # Let the user override the test.
- else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_CXX="$ac_prog"
- break
- fi
- done
- IFS="$ac_save_ifs"
- fi
- CXX="$ac_cv_prog_CXX"
- if test -n "$CXX"; then
- echo "$ac_t""$CXX" 1>&6
- else
- echo "$ac_t""no" 1>&6
- fi
- test -n "$CXX" && break
- done
- test -n "$CXX" || CXX="gcc"
- echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
- echo "configure:12578: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
- ac_ext=C
- # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cxx_cross
- cat > conftest.$ac_ext << EOF
- #line 12589 "configure"
- #include "confdefs.h"
- int main(){return(0);}
- EOF
- if { (eval echo configure:12594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- ac_cv_prog_cxx_works=yes
- # If we can't run a trivial program, we are probably using a cross compiler.
- if (./conftest; exit) 2>/dev/null; then
- ac_cv_prog_cxx_cross=no
- else
- ac_cv_prog_cxx_cross=yes
- fi
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- ac_cv_prog_cxx_works=no
- fi
- rm -fr conftest*
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
- echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
- if test $ac_cv_prog_cxx_works = no; then
- { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
- fi
- echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
- echo "configure:12620: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
- echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
- cross_compiling=$ac_cv_prog_cxx_cross
- echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
- echo "configure:12625: checking whether we are using GNU C++" >&5
- cat > conftest.C <<EOF
- #ifdef __GNUC__
- yes;
- #endif
- EOF
- if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:12632: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
- ac_cv_prog_gxx=yes
- else
- ac_cv_prog_gxx=no
- fi
- echo "$ac_t""$ac_cv_prog_gxx" 1>&6
- if test $ac_cv_prog_gxx = yes; then
- GXX=yes
- else
- GXX=
- fi
- ac_test_CXXFLAGS="${CXXFLAGS+set}"
- ac_save_CXXFLAGS="$CXXFLAGS"
- CXXFLAGS=
- echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
- echo "configure:12650: checking whether ${CXX-g++} accepts -g" >&5
- echo 'void f(){}' > conftest.cc
- if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
- ac_cv_prog_cxx_g=yes
- else
- ac_cv_prog_cxx_g=no
- fi
- rm -f conftest*
- echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
- if test "$ac_test_CXXFLAGS" = set; then
- CXXFLAGS="$ac_save_CXXFLAGS"
- elif test $ac_cv_prog_cxx_g = yes; then
- if test "$GXX" = yes; then
- CXXFLAGS="-g -O2"
- else
- CXXFLAGS="-g"
- fi
- else
- if test "$GXX" = yes; then
- CXXFLAGS="-O2"
- else
- CXXFLAGS=
- fi
- fi
- else
- CXX=
- CXXFLAGS=
-
-
- fi
- # Done checking C++
- # Enable openDWG option
- echo $ac_n "checking whether to use openDWG""... $ac_c" 1>&6
- echo "configure:12691: checking whether to use openDWG" >&5
- echo "$ac_t"""$with_opendwg"" 1>&6
- case "$with_opendwg" in
- "no") USE_OPENDWG= ;;
- "yes") USE_OPENDWG="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- OPENDWGINCPATH=
- OPENDWGLIBPATH=
- OPENDWGLIB=
- if test -n "${USE_OPENDWG}"; then
- # With OPENDWG includes directory
- echo $ac_n "checking for location of openDGW includes""... $ac_c" 1>&6
- echo "configure:12711: checking for location of openDGW includes" >&5
- case "$with_opendwg_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-opendwg-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_opendwg_includes" 1>&6
- if test -n "$with_opendwg_includes" ; then
- for dir in $with_opendwg_includes; do
- if test -d "$dir"; then
- OPENDWGINCPATH="$OPENDWGINCPATH -I$dir"
- else
- { echo "configure: error: *** openDGW includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$OPENDWGINCPATH $CPPFLAGS"
- for ac_hdr in ad2.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:12737: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 12740 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:12745: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate openDWG includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- # With OPENDWG library directory
- echo $ac_n "checking for location of openDWG library""... $ac_c" 1>&6
- echo "configure:12779: checking for location of openDWG library" >&5
- case "$with_opendwg_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-opendwg-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_opendwg_libs" 1>&6
- if test -n "$with_opendwg_libs"; then
- for dir in $with_opendwg_libs; do
- if test -d "$dir"; then
- OPENDWGLIBPATH="$OPENDWGLIBPATH -L$dir"
- else
- { echo "configure: error: *** openDWG library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- #search for ad2.a, ad3.a ... in openDWG toolkit directory:
- #FIX ME how to program this test??
- #LOC_CHECK_LIBS(ad?.a,adSeekLayer,openDWG,$OPENDWGLIBPATH,OPENDWGLIB,,)
- #
- #for now hack (but working):
- TRUEOPENDWGLIBPATH=`echo "$OPENDWGLIBPATH" | cut -b3-`
- adlib=`ls -1 "$TRUEOPENDWGLIBPATH"/ad?.a | tail -1`
- OPENDWGLIB="$adlib"
- fi # $USE_OPENDWG
- # Done checking OPENDWG
- # Enable pthread option
- echo $ac_n "checking whether to use POSIX threads""... $ac_c" 1>&6
- echo "configure:12820: checking whether to use POSIX threads" >&5
- echo "$ac_t"""$with_pthread"" 1>&6
- case "$with_pthread" in
- "no") USE_PTHREAD= ;;
- "yes") USE_PTHREAD="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- PTHREADINCPATH=
- PTHREADLIBPATH=
- PTHREADLIB=
- if test -n "$USE_PTHREAD"; then
- # With pthread includes directory
- echo $ac_n "checking for location of POSIX threads includes""... $ac_c" 1>&6
- echo "configure:12840: checking for location of POSIX threads includes" >&5
- case "$with_pthread_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-pthread-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_pthread_includes" 1>&6
- if test -n "$with_pthread_includes" ; then
- for dir in $with_pthread_includes; do
- if test -d "$dir"; then
- PTHREADINCPATH="$PTHREADINCPATH -I$dir"
- else
- { echo "configure: error: *** POSIX threads includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$PTHREADINCPATH $CPPFLAGS"
- for ac_hdr in pthread.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:12866: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 12869 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:12874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate POSIX threads includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- # With pthread library directory
- echo $ac_n "checking for location of POSIX threads library""... $ac_c" 1>&6
- echo "configure:12908: checking for location of POSIX threads library" >&5
- case "$with_pthread_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-pthread-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_pthread_libs" 1>&6
- if test -n "$with_pthread_libs"; then
- for dir in $with_pthread_libs; do
- if test -d "$dir"; then
- PTHREADLIBPATH="$PTHREADLIBPATH -L$dir"
- else
- { echo "configure: error: *** POSIX threads library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_libs="$LIBS"
- ac_save_ldflags="$LDFLAGS"
- LIBS=" $LIBS"
- LDFLAGS=" $LDFLAGS"
- echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
- echo "configure:12933: checking for pthread_create" >&5
- cat > conftest.$ac_ext <<EOF
- #line 12936 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char pthread_create(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char pthread_create();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
- choke me
- #else
- pthread_create();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:12959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_pthread_create=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_pthread_create=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
- echo "$ac_t""yes" 1>&6
-
- PTHREADLIB="$PTHREADLIB "
- else
- echo "$ac_t""no" 1>&6
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$PTHREADLIBPATH $LDFLAGS"
- echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
- echo "configure:12986: checking for pthread_create in -lpthread" >&5
- ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lpthread $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 12992 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char pthread_create();
- int main() {
- pthread_create()
- ; return 0; }
- EOF
- if { (eval echo configure:13003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- PTHREADLIB="$PTHREADLIB -lpthread "
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate POSIX threads library." 1>&2; exit 1; }
- fi
- LDFLAGS=${ac_save_ldflags}
- fi
- LIBS=${ac_save_libs}
- LDFLAGS=${ac_save_ldflags}
- fi # $USE_PTHREAD
- # Done checking pthread
- # Enable OpenMP option
- echo $ac_n "checking whether to use OpenMP""... $ac_c" 1>&6
- echo "configure:13053: checking whether to use OpenMP" >&5
- echo "$ac_t"""$with_openmp"" 1>&6
- case "$with_openmp" in
- "no") USE_OPENMP= ;;
- "yes") USE_OPENMP="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- OMPINCPATH=
- OMPLIBPATH=
- OMPLIB=
- OMPCFLAGS=
- if test -n "$USE_OPENMP"; then
- # With OpenMP includes directory
- echo $ac_n "checking for location of OpenMP includes""... $ac_c" 1>&6
- echo "configure:13074: checking for location of OpenMP includes" >&5
- case "$with_openmp_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-openmp-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_openmp_includes" 1>&6
- if test -n "$with_openmp_includes" ; then
- for dir in $with_openmp_includes; do
- if test -d "$dir"; then
- OMPINCPATH="$OMPINCPATH -I$dir"
- else
- { echo "configure: error: *** OpenMP includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$OMPINCPATH $CPPFLAGS"
- for ac_hdr in omp.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:13100: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 13103 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:13108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate OpenMP includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- # With OpenMP library directory
- # GCC et al.: -lgomp
- # Solaris cc: -lmtsk
- # AIX xlc: -lxlsmp
- # SGI IRIX 6.5 MIPSpro C/C++: -lmp
- echo $ac_n "checking for location of OpenMP library""... $ac_c" 1>&6
- echo "configure:13146: checking for location of OpenMP library" >&5
- case "$with_openmp_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-openmp-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_openmp_libs" 1>&6
- if test -n "$with_openmp_libs"; then
- for dir in $with_openmp_libs; do
- if test -d "$dir"; then
- OMPLIBPATH="$OMPLIBPATH -L$dir"
- else
- { echo "configure: error: *** OpenMP library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- ac_save_libs="$LIBS"
- ac_save_ldflags="$LDFLAGS"
- LIBS=" $LIBS"
- LDFLAGS=" $LDFLAGS"
- echo $ac_n "checking for GOMP_parallel_start""... $ac_c" 1>&6
- echo "configure:13171: checking for GOMP_parallel_start" >&5
- cat > conftest.$ac_ext <<EOF
- #line 13174 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char GOMP_parallel_start(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char GOMP_parallel_start();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_GOMP_parallel_start) || defined (__stub___GOMP_parallel_start)
- choke me
- #else
- GOMP_parallel_start();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:13197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_GOMP_parallel_start=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_GOMP_parallel_start=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'GOMP_parallel_start`\" = yes"; then
- echo "$ac_t""yes" 1>&6
-
- OMPLIB="$OMPLIB "
- else
- echo "$ac_t""no" 1>&6
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$OMPLIBPATH $LDFLAGS"
- echo $ac_n "checking for GOMP_parallel_start in -lgomp""... $ac_c" 1>&6
- echo "configure:13224: checking for GOMP_parallel_start in -lgomp" >&5
- ac_lib_var=`echo gomp'_'GOMP_parallel_start | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lgomp $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 13230 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char GOMP_parallel_start();
- int main() {
- GOMP_parallel_start()
- ; return 0; }
- EOF
- if { (eval echo configure:13241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- OMPLIB="$OMPLIB -lgomp "
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate OpenMP library." 1>&2; exit 1; }
- fi
- LDFLAGS=${ac_save_ldflags}
- fi
- LIBS=${ac_save_libs}
- LDFLAGS=${ac_save_ldflags}
- # compiler dependent
- #if test ${CC} = "gcc" ; then
- if test x$GCC = xyes ; then
- # GNU C compiler (>= 4.2.1)
- OMPCFLAGS=-fopenmp
- elif test ${CC} = "icc" ; then
- # Intel compiler
- OMPCFLAGS=-openmp
- elif test ${CC} = "opencc" ; then
- # AMD's x86 Open64 compiler
- OMPCFLAGS=-mp
- elif test ${CC} = "pgcc" ; then
- # Portland Group's compiler
- OMPCFLAGS=-mp
- # ... anybody else?
- fi
- # try to build a test program with "$CC $OMPCLFAGS" to confirm it works
- #...how?
- #echo "int main() {return 0;}" > test.c
- #$CC $OMPCLFAGS test.c -o test
- fi # $USE_OPENMP
- # Done checking OpenMP
- # Enable OpenCL option
- echo $ac_n "checking whether to use OpenCL""... $ac_c" 1>&6
- echo "configure:13314: checking whether to use OpenCL" >&5
- echo "$ac_t"""$with_opencl"" 1>&6
- case "$with_opencl" in
- "no") USE_OPENCL= ;;
- "yes") USE_OPENCL="1" ;;
- *) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
- esac
- OCLINCPATH=
- OCLLIBPATH=
- OCLLIB=
- if test -n "$USE_OPENCL"; then
- # With OpenCL includes directory
- echo $ac_n "checking for location of OpenCL includes""... $ac_c" 1>&6
- echo "configure:13334: checking for location of OpenCL includes" >&5
- case "$with_opencl_includes" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-opencl-includes." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_opencl_includes" 1>&6
- if test -n "$with_opencl_includes" ; then
- for dir in $with_opencl_includes; do
- if test -d "$dir"; then
- OCLINCPATH="$OCLINCPATH -I$dir"
- else
- { echo "configure: error: *** OpenCL includes directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
- if test -n "$MACOSX_APP" ; then
-
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$OCLINCPATH $CPPFLAGS"
- for ac_hdr in OpenCL/opencl.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:13361: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 13364 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:13369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate OpenCL includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- # With OpenCL library directory
- ### FIXME: ###
- #LOC_CHECK_FRAMEWORK_PATH(opencl,OpenCL,OPENCLPATH)
- # last term in following would become ',$OPENCLPATH)' if above is uncommented
-
- ac_save_libs="$LIBS"
- ac_save_ldflags="$LDFLAGS"
- LIBS="-framework OpenCL $LIBS"
- LDFLAGS=" $LDFLAGS"
- echo $ac_n "checking for clGetPlatformInfo""... $ac_c" 1>&6
- echo "configure:13409: checking for clGetPlatformInfo" >&5
- cat > conftest.$ac_ext <<EOF
- #line 13412 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char clGetPlatformInfo(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char clGetPlatformInfo();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_clGetPlatformInfo) || defined (__stub___clGetPlatformInfo)
- choke me
- #else
- clGetPlatformInfo();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:13435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_clGetPlatformInfo=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_clGetPlatformInfo=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_func_'clGetPlatformInfo`\" = yes"; then
- echo "$ac_t""yes" 1>&6
-
- OCLLIB="$OCLLIB -framework OpenCL"
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate OpenCL library." 1>&2; exit 1; }
- fi
- LIBS=${ac_save_libs}
- LDFLAGS=${ac_save_ldflags}
- else
-
- ac_save_cppflags="$CPPFLAGS"
- CPPFLAGS="$OCLINCPATH $CPPFLAGS"
- for ac_hdr in CL/cl.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:13474: checking for $ac_hdr" >&5
- cat > conftest.$ac_ext <<EOF
- #line 13477 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:13482: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- { echo "configure: error: *** Unable to locate OpenCL includes." 1>&2; exit 1; }
- fi
- done
- CPPFLAGS=$ac_save_cppflags
- # With OpenCL library directory
-
- echo $ac_n "checking for location of OpenCL library""... $ac_c" 1>&6
- echo "configure:13515: checking for location of OpenCL library" >&5
- case "$with_opencl_libs" in
- y | ye | yes | n | no)
- { echo "configure: error: *** You must supply a directory to --with-opencl-libs." 1>&2; exit 1; }
- ;;
- esac
- echo "$ac_t""$with_opencl_libs" 1>&6
- if test -n "$with_opencl_libs"; then
- for dir in $with_opencl_libs; do
- if test -d "$dir"; then
- OCLLIBPATH="$OCLLIBPATH -L$dir"
- else
- { echo "configure: error: *** OpenCL library directory $dir does not exist." 1>&2; exit 1; }
- fi
- done
- fi
-
- ac_save_ldflags="$LDFLAGS"
- LDFLAGS="$OCLLIBPATH $LDFLAGS"
- echo $ac_n "checking for clGetPlatformInfo in -lOpenCL""... $ac_c" 1>&6
- echo "configure:13539: checking for clGetPlatformInfo in -lOpenCL" >&5
- ac_lib_var=`echo OpenCL'_'clGetPlatformInfo | sed 'y%./+-%__p_%'`
- ac_save_LIBS="$LIBS"
- LIBS="-lOpenCL $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 13545 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char clGetPlatformInfo();
- int main() {
- clGetPlatformInfo()
- ; return 0; }
- EOF
- if { (eval echo configure:13556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- OCLLIB="$OCLLIB -lOpenCL "
- else
- echo "$ac_t""no" 1>&6
- LDFLAGS=${ac_save_ldflags}
- { echo "configure: error: *** Unable to locate OpenCL library." 1>&2; exit 1; }
- fi
- LDFLAGS=${ac_save_ldflags}
- # expanded symbol check: yes? no?
- #LOC_CHECK_FUNC(clGetPlatformInfo,OpenCL functions,OCLLIB,,,,,[
- #LOC_CHECK_LIBS(OpenCL,clGetPlatformInfo,OpenCL,$OCLLIBPATH,OCLLIB,,,)
- #])
- fi
- fi # $USE_OPENCL
- # Done checking OpenCL
- # Enable LFS (from cdr-tools, tar, and autoconf 2.68)
- # Check whether --enable-largefile or --disable-largefile was given.
- if test "${enable_largefile+set}" = set; then
- enableval="$enable_largefile"
- :
- fi
- LFS_CFLAGS=
- if test "$enable_largefile" != no; then
- ac_save_cflags=$CFLAGS
- if test "`which getconf 2>&5`" ; then
- LFS_CFLAGS=`getconf LFS_CFLAGS 2>&5`
- CFLAGS="$LFS_CFLAGS $ac_save_cflags"
- fi
- echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6
- echo "configure:13616: checking for special C compiler options needed for large files" >&5
- ac_cv_sys_largefile_CC=no
- largefile_cc_opt=""
- if test "$GCC" != yes; then
- # IRIX 6.2 and later do not support large files by default,
- # so use the C compiler's -n32 option if that helps.
- cat > conftest.$ac_ext <<EOF
- #line 13624 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- /* Check that off_t can represent 2**63 - 1 correctly.
- We can't simply "#define LARGE_OFF_T 9223372036854775807",
- since some C++ compilers masquerading as C compilers
- incorrectly reject 9223372036854775807. */
- # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
- int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
- && LARGE_OFF_T % 2147483647 == 1)
- ? 1 : -1];
-
- int main() {
- ; return 0; }
- EOF
- if { (eval echo configure:13640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- :
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_save_CC="${CC-cc}"
- CC="$CC -n32"
- cat > conftest.$ac_ext <<EOF
- #line 13649 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- /* Check that off_t can represent 2**63 - 1 correctly.
- We can't simply "#define LARGE_OFF_T 9223372036854775807",
- since some C++ compilers masquerading as C compilers
- incorrectly reject 9223372036854775807. */
- # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
- int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
- && LARGE_OFF_T % 2147483647 == 1)
- ? 1 : -1];
-
- int main() {
- ; return 0; }
- EOF
- if { (eval echo configure:13665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_sys_largefile_CC=' -n32'
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -f conftest*
- CC="$ac_save_CC"
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$ac_cv_sys_largefile_CC" 1>&6
- if test "$ac_cv_sys_largefile_CC" != no; then
- CC="$CC$ac_cv_sys_largefile_CC"
- largefile_cc_opt="$ac_cv_sys_largefile_CC"
- if test "$LFS_CFLAGS" ; then
- LFS_CFLAGS="$LFS_CFLAGS $ac_cv_sys_largefile_CC"
- else
- LFS_CFLAGS="$ac_cv_sys_largefile_CC"
- CFLAGS="$LFS_CFLAGS $ac_save_cflags"
- fi
- fi
- echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
- echo "configure:13692: checking for _FILE_OFFSET_BITS value needed for large files" >&5
- ac_cv_sys_file_offset_bits=no
- cat > conftest.$ac_ext <<EOF
- #line 13696 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- /* Check that off_t can represent 2**63 - 1 correctly.
- We can't simply "#define LARGE_OFF_T 9223372036854775807",
- since some C++ compilers masquerading as C compilers
- incorrectly reject 9223372036854775807. */
- # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
- int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
- && LARGE_OFF_T % 2147483647 == 1)
- ? 1 : -1];
-
- int main() {
- ; return 0; }
- EOF
- if { (eval echo configure:13712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- :
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- cat > conftest.$ac_ext <<EOF
- #line 13719 "configure"
- #include "confdefs.h"
- #define _FILE_OFFSET_BITS 64
- #include <sys/types.h>
- /* Check that off_t can represent 2**63 - 1 correctly.
- We can't simply "#define LARGE_OFF_T 9223372036854775807",
- since some C++ compilers masquerading as C compilers
- incorrectly reject 9223372036854775807. */
- # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
- int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
- && LARGE_OFF_T % 2147483647 == 1)
- ? 1 : -1];
-
-
- int main() {
- ; return 0; }
- EOF
- if { (eval echo configure:13737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_sys_file_offset_bits=64
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -f conftest*
- fi
- rm -f conftest*
- echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
- if test "$ac_cv_sys_file_offset_bits" != no; then
- cat >> confdefs.h <<EOF
- #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
- EOF
- if test "$LFS_CFLAGS" ; then
- LFS_CFLAGS="$LFS_CFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
- else
- LFS_CFLAGS="-D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
- fi
- fi
- echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
- echo "configure:13763: checking for _LARGE_FILES value needed for large files" >&5
- ac_cv_sys_large_files=no
- cat > conftest.$ac_ext <<EOF
- #line 13767 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- /* Check that off_t can represent 2**63 - 1 correctly.
- We can't simply "#define LARGE_OFF_T 9223372036854775807",
- since some C++ compilers masquerading as C compilers
- incorrectly reject 9223372036854775807. */
- # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
- int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
- && LARGE_OFF_T % 2147483647 == 1)
- ? 1 : -1];
-
- int main() {
- ; return 0; }
- EOF
- if { (eval echo configure:13783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- :
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- cat > conftest.$ac_ext <<EOF
- #line 13790 "configure"
- #include "confdefs.h"
- #define _LARGE_FILES 1
- #include <sys/types.h>
- /* Check that off_t can represent 2**63 - 1 correctly.
- We can't simply "#define LARGE_OFF_T 9223372036854775807",
- since some C++ compilers masquerading as C compilers
- incorrectly reject 9223372036854775807. */
- # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
- int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
- && LARGE_OFF_T % 2147483647 == 1)
- ? 1 : -1];
-
-
- int main() {
- ; return 0; }
- EOF
- if { (eval echo configure:13808: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_sys_large_files=1
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -f conftest*
- fi
- rm -f conftest*
- echo "$ac_t""$ac_cv_sys_large_files" 1>&6
- if test "$ac_cv_sys_large_files" != no; then
- cat >> confdefs.h <<EOF
- #define _LARGE_FILES $ac_cv_sys_large_files
- EOF
- if test "$LFS_CFLAGS" ; then
- LFS_CFLAGS="$LFS_CFLAGS -D_LARGE_FILES=$ac_cv_sys_large_files"
- else
- LFS_CFLAGS="-D_LARGE_FILES=$ac_cv_sys_large_files"
- fi
- fi
- echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6
- echo "configure:13834: checking for _LARGEFILE_SOURCE value needed for large files" >&5
- ac_cv_sys_largefile_source=no
- cat > conftest.$ac_ext <<EOF
- #line 13838 "configure"
- #include "confdefs.h"
- #include <stdio.h>
- int main() {
- return !fseeko;
- ; return 0; }
- EOF
- if { (eval echo configure:13845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- :
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- cat > conftest.$ac_ext <<EOF
- #line 13852 "configure"
- #include "confdefs.h"
- #define _LARGEFILE_SOURCE 1
- #include <stdio.h>
-
- int main() {
- return !fseeko;
- ; return 0; }
- EOF
- if { (eval echo configure:13861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_sys_largefile_source=1
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -f conftest*
- fi
- rm -f conftest*
- echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6
- if test "$ac_cv_sys_largefile_source" != no; then
- cat >> confdefs.h <<EOF
- #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
- EOF
- if test "$LFS_CFLAGS" ; then
- LFS_CFLAGS="$LFS_CFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
- else
- LFS_CFLAGS="-D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
- fi
- fi
- CFLAGS=$ac_save_cflags
- fi
-
- ac_save_cflags=${CFLAGS}
- CFLAGS="$LFS_CFLAGS ${ac_save_cflags}"
- echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6
- echo "configure:13893: checking for _LARGEFILE_SOURCE value needed for large files" >&5
- ac_cv_sys_largefile_source=no
- cat > conftest.$ac_ext <<EOF
- #line 13897 "configure"
- #include "confdefs.h"
- #include <stdio.h>
- int main() {
- return !fseeko;
- ; return 0; }
- EOF
- if { (eval echo configure:13904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- :
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- cat > conftest.$ac_ext <<EOF
- #line 13911 "configure"
- #include "confdefs.h"
- #define _LARGEFILE_SOURCE 1
- #include <stdio.h>
-
- int main() {
- return !fseeko;
- ; return 0; }
- EOF
- if { (eval echo configure:13920: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_sys_largefile_source=1
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -f conftest*
- fi
- rm -f conftest*
- echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6
- if test "$ac_cv_sys_largefile_source" != no; then
- cat >> confdefs.h <<EOF
- #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
- EOF
- if test "$LFS_CFLAGS" ; then
- LFS_CFLAGS="$LFS_CFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
- else
- LFS_CFLAGS="-D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
- fi
- fi
- # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
- # in glibc 2.1.3, but that breaks too many other things.
- # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
- echo $ac_n "checking for fseeko""... $ac_c" 1>&6
- echo "configure:13950: checking for fseeko" >&5
- ac_cv_func_fseeko=no
- cat > conftest.$ac_ext <<EOF
- #line 13954 "configure"
- #include "confdefs.h"
- #include <stdio.h>
- int main() {
- return fseeko && fseeko (stdin, 0, 0);
- ; return 0; }
- EOF
- if { (eval echo configure:13961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- ac_cv_func_fseeko=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -f conftest*
- echo "$ac_t""$ac_cv_func_fseeko" 1>&6
- if test $ac_cv_func_fseeko != no; then
- cat >> confdefs.h <<\EOF
- #define HAVE_FSEEKO 1
- EOF
- fi
- echo $ac_n "checking if system supports Large Files at all""... $ac_c" 1>&6
- echo "configure:13978: checking if system supports Large Files at all" >&5
- cat > conftest.$ac_ext <<EOF
- #line 13981 "configure"
- #include "confdefs.h"
- #include <stdio.h>
- #include <sys/types.h>
- int main() {
- /*
- * Check that off_t can represent 2**63 - 1 correctly.
- * We can't simply "#define LARGE_OFF_T 9223372036854775807",
- * since some C++ compilers masquerading as C compilers
- * incorrectly reject 9223372036854775807.
- *
- * For MinGW, off64_t should be used and __MSVCRT_VERSION__ >= 0x0601
- * (msvcrt.dll version 6.10 or higher) is needed for _fstat64 and _stat64.
- */
- #ifdef __MINGW32__
- # define LARGE_OFF_T (((off64_t) 1 << 62) - 1 + ((off64_t) 1 << 62))
- #else
- # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
- #endif
- int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
- && LARGE_OFF_T % 2147483647 == 1)
- ? 1 : -1];
- #ifdef __MINGW32__
- return !fseeko64;
- return !ftello64;
- #else
- return !fseeko;
- return !ftello;
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:14013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_largefiles=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_largefiles=no
- fi
- rm -f conftest*
- echo "$ac_t""$ac_cv_largefiles" 1>&6
- if test $ac_cv_largefiles = yes; then
- cat >> confdefs.h <<\EOF
- #define HAVE_LARGEFILES 1
- EOF
- USE_LARGEFILES=1
- else
- USE_LARGEFILES=
- LFS_CFLAGS=
- fi
-
-
-
- CFLAGS=${ac_save_cflags}
- # Done large file support
- USE_TERMIO=
- STRIPFLAG=
- GRASS_HOME="${DSTDIR}"
- trap '' 1 2 15
- trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
- test "x$prefix" = xNONE && prefix=$ac_default_prefix
- # Let make expand exec_prefix.
- test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
- # Any assignment to VPATH causes Sun make to only execute
- # the first set of double-colon rules, so remove it if not needed.
- # If there is a colon in the path, we need to keep it.
- if test "x$srcdir" = x.; then
- ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
- fi
- trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
- DEFS=-DHAVE_CONFIG_H
- # Without the "./", some shells look in PATH for config.status.
- : ${CONFIG_STATUS=./config.status}
- echo creating $CONFIG_STATUS
- rm -f $CONFIG_STATUS
- cat > $CONFIG_STATUS <<EOF
- #! /bin/sh
- # Generated automatically by configure.
- # Run this file to recreate the current configuration.
- # This directory was configured as follows,
- # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
- #
- # $0 $ac_configure_args
- #
- # Compiler output produced by configure, useful for debugging
- # configure, is in ./config.log if it exists.
- ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
- for ac_option
- do
- case "\$ac_option" in
- -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
- echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
- exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
- -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
- echo "$CONFIG_STATUS generated by autoconf version 2.13"
- exit 0 ;;
- -help | --help | --hel | --he | --h)
- echo "\$ac_cs_usage"; exit 0 ;;
- *) echo "\$ac_cs_usage"; exit 1 ;;
- esac
- done
- ac_given_srcdir=$srcdir
- ac_given_INSTALL="$INSTALL"
- 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
- EOF
- cat >> $CONFIG_STATUS <<EOF
- # Protect against being on the right side of a sed subst in config.status.
- sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
- s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
- $ac_vpsub
- $extrasub
- s%@SHELL@%$SHELL%g
- s%@CFLAGS@%$CFLAGS%g
- s%@CPPFLAGS@%$CPPFLAGS%g
- s%@CXXFLAGS@%$CXXFLAGS%g
- s%@FFLAGS@%$FFLAGS%g
- s%@DEFS@%$DEFS%g
- s%@LDFLAGS@%$LDFLAGS%g
- s%@LIBS@%$LIBS%g
- s%@exec_prefix@%$exec_prefix%g
- s%@prefix@%$prefix%g
- s%@program_transform_name@%$program_transform_name%g
- s%@bindir@%$bindir%g
- s%@sbindir@%$sbindir%g
- s%@libexecdir@%$libexecdir%g
- s%@datadir@%$datadir%g
- s%@sysconfdir@%$sysconfdir%g
- s%@sharedstatedir@%$sharedstatedir%g
- s%@localstatedir@%$localstatedir%g
- s%@libdir@%$libdir%g
- s%@includedir@%$includedir%g
- s%@oldincludedir@%$oldincludedir%g
- s%@infodir@%$infodir%g
- s%@mandir@%$mandir%g
- s%@host@%$host%g
- s%@host_alias@%$host_alias%g
- s%@host_cpu@%$host_cpu%g
- s%@host_vendor@%$host_vendor%g
- s%@host_os@%$host_os%g
- s%@CC@%$CC%g
- s%@EXEEXT@%$EXEEXT%g
- s%@MINGW32@%$MINGW32%g
- s%@BINDIR@%$BINDIR%g
- s%@pwd@%$pwd%g
- s%@SRCDIR@%$SRCDIR%g
- s%@DSTDIR@%$DSTDIR%g
- s%@ARCH@%$ARCH%g
- s%@GISBASE@%$GISBASE%g
- s%@GRASS_BIN@%$GRASS_BIN%g
- s%@GIT@%$GIT%g
- s%@GRASS_VERSION_FILE@%$GRASS_VERSION_FILE%g
- s%@GRASS_VERSION_MAJOR@%$GRASS_VERSION_MAJOR%g
- s%@GRASS_VERSION_MINOR@%$GRASS_VERSION_MINOR%g
- s%@GRASS_VERSION_RELEASE@%$GRASS_VERSION_RELEASE%g
- s%@GRASS_VERSION_NUMBER@%$GRASS_VERSION_NUMBER%g
- s%@GRASS_VERSION_DATE@%$GRASS_VERSION_DATE%g
- s%@GRASS_VERSION_GIT@%$GRASS_VERSION_GIT%g
- s%@NAME_VER@%$NAME_VER%g
- s%@LIB_VER@%$LIB_VER%g
- s%@MACOSX_APP@%$MACOSX_APP%g
- s%@MACOSX_ARCHS@%$MACOSX_ARCHS%g
- s%@MACOSX_SDK@%$MACOSX_SDK%g
- s%@INSTDIR@%$INSTDIR%g
- s%@GRASS_LIBRARY_TYPE@%$GRASS_LIBRARY_TYPE%g
- s%@LD_SEARCH_FLAGS@%$LD_SEARCH_FLAGS%g
- s%@LD_LIBRARY_PATH_VAR@%$LD_LIBRARY_PATH_VAR%g
- s%@SHLIB_LD@%$SHLIB_LD%g
- s%@SHLIB_LD_FLAGS@%$SHLIB_LD_FLAGS%g
- s%@SHLIB_CFLAGS@%$SHLIB_CFLAGS%g
- s%@SHLIB_SUFFIX@%$SHLIB_SUFFIX%g
- s%@STLIB_LD@%$STLIB_LD%g
- s%@STLIB_SUFFIX@%$STLIB_SUFFIX%g
- s%@INCLUDE_DIRS@%$INCLUDE_DIRS%g
- s%@LIBRARY_DIRS@%$LIBRARY_DIRS%g
- s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
- s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
- s%@INSTALL_DATA@%$INSTALL_DATA%g
- s%@LEX@%$LEX%g
- s%@LEXLIB@%$LEXLIB%g
- s%@LEXPATH@%$LEXPATH%g
- s%@YACC@%$YACC%g
- s%@YACCPATH@%$YACCPATH%g
- s%@RANLIB@%$RANLIB%g
- s%@AR@%$AR%g
- s%@ENV@%$ENV%g
- s%@PERL@%$PERL%g
- s%@CPP@%$CPP%g
- s%@CROSS_COMPILING@%$CROSS_COMPILING%g
- s%@X_CFLAGS@%$X_CFLAGS%g
- s%@X_LIBS@%$X_LIBS%g
- s%@X_PRE_LIBS@%$X_PRE_LIBS%g
- s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
- s%@XLIB@%$XLIB%g
- s%@XTLIB@%$XTLIB%g
- s%@USE_X11@%$USE_X11%g
- s%@DBMIEXTRALIB@%$DBMIEXTRALIB%g
- s%@HAVE_ASPRINTF@%$HAVE_ASPRINTF%g
- s%@MATHLIB@%$MATHLIB%g
- s%@DLLIB@%$DLLIB%g
- s%@ICONVLIB@%$ICONVLIB%g
- s%@SOCKLIB@%$SOCKLIB%g
- s%@HAVE_SOCKET@%$HAVE_SOCKET%g
- s%@ZLIBINCPATH@%$ZLIBINCPATH%g
- s%@ZLIBLIBPATH@%$ZLIBLIBPATH%g
- s%@ZLIB@%$ZLIB%g
- s%@BZIP2INCPATH@%$BZIP2INCPATH%g
- s%@BZIP2LIBPATH@%$BZIP2LIBPATH%g
- s%@BZIP2LIB@%$BZIP2LIB%g
- s%@ZSTDINCPATH@%$ZSTDINCPATH%g
- s%@ZSTDLIBPATH@%$ZSTDLIBPATH%g
- s%@ZSTDLIB@%$ZSTDLIB%g
- s%@PROJINC@%$PROJINC%g
- s%@PROJLIB@%$PROJLIB%g
- s%@PROJSHARE@%$PROJSHARE%g
- s%@REGEXINCPATH@%$REGEXINCPATH%g
- s%@REGEXLIBPATH@%$REGEXLIBPATH%g
- s%@REGEXLIB@%$REGEXLIB%g
- s%@USE_REGEX@%$USE_REGEX%g
- s%@READLINEINCPATH@%$READLINEINCPATH%g
- s%@READLINELIBPATH@%$READLINELIBPATH%g
- s%@READLINELIB@%$READLINELIB%g
- s%@HISTORYLIB@%$HISTORYLIB%g
- s%@GDAL_CONFIG@%$GDAL_CONFIG%g
- s%@GDAL_LIBS@%$GDAL_LIBS%g
- s%@GDAL_CFLAGS@%$GDAL_CFLAGS%g
- s%@USE_GDAL@%$USE_GDAL%g
- s%@USE_OGR@%$USE_OGR%g
- s%@LIBLAS_CONFIG@%$LIBLAS_CONFIG%g
- s%@LIBLAS_LIBS@%$LIBLAS_LIBS%g
- s%@LIBLAS_CFLAGS@%$LIBLAS_CFLAGS%g
- s%@LIBLAS_INC@%$LIBLAS_INC%g
- s%@USE_LIBLAS@%$USE_LIBLAS%g
- s%@PDAL_CONFIG@%$PDAL_CONFIG%g
- s%@PDAL_LIBS@%$PDAL_LIBS%g
- s%@PDAL_CPPFLAGS@%$PDAL_CPPFLAGS%g
- s%@PDAL_INC@%$PDAL_INC%g
- s%@USE_PDAL@%$USE_PDAL%g
- s%@NETCDF_CONFIG@%$NETCDF_CONFIG%g
- s%@NETCDF_LIBS@%$NETCDF_LIBS%g
- s%@NETCDF_CFLAGS@%$NETCDF_CFLAGS%g
- s%@USE_NETCDF@%$USE_NETCDF%g
- s%@GEOS_CONFIG@%$GEOS_CONFIG%g
- s%@GEOS_LIBS@%$GEOS_LIBS%g
- s%@GEOS_CFLAGS@%$GEOS_CFLAGS%g
- s%@USE_GEOS@%$USE_GEOS%g
- s%@TIFF_INCLUDE_DIRS@%$TIFF_INCLUDE_DIRS%g
- s%@TIFF_LIBRARY_DIRS@%$TIFF_LIBRARY_DIRS%g
- s%@TIFFLIB@%$TIFFLIB%g
- s%@PNGINC@%$PNGINC%g
- s%@PNGLIB@%$PNGLIB%g
- s%@USE_PNG@%$USE_PNG%g
- s%@USE_POSTGRES@%$USE_POSTGRES%g
- s%@PQINCPATH@%$PQINCPATH%g
- s%@PQLIBPATH@%$PQLIBPATH%g
- s%@PQLIB@%$PQLIB%g
- s%@MYSQLD_CONFIG@%$MYSQLD_CONFIG%g
- s%@USE_MYSQL@%$USE_MYSQL%g
- s%@MYSQLINCPATH@%$MYSQLINCPATH%g
- s%@MYSQLLIBPATH@%$MYSQLLIBPATH%g
- s%@MYSQLLIB@%$MYSQLLIB%g
- s%@MYSQLDLIB@%$MYSQLDLIB%g
- s%@USE_SQLITE@%$USE_SQLITE%g
- s%@SQLITEINCPATH@%$SQLITEINCPATH%g
- s%@SQLITELIBPATH@%$SQLITELIBPATH%g
- s%@SQLITELIB@%$SQLITELIB%g
- s%@USE_OPENGL@%$USE_OPENGL%g
- s%@OPENGL_X11@%$OPENGL_X11%g
- s%@OPENGL_AQUA@%$OPENGL_AQUA%g
- s%@OPENGL_WINDOWS@%$OPENGL_WINDOWS%g
- s%@OPENGLINC@%$OPENGLINC%g
- s%@OPENGLLIB@%$OPENGLLIB%g
- s%@OPENGLULIB@%$OPENGLULIB%g
- s%@ODBCINC@%$ODBCINC%g
- s%@ODBCLIB@%$ODBCLIB%g
- s%@FFTWINC@%$FFTWINC%g
- s%@FFTWLIB@%$FFTWLIB%g
- s%@BLASLIB@%$BLASLIB%g
- s%@BLASINC@%$BLASINC%g
- s%@LAPACKLIB@%$LAPACKLIB%g
- s%@LAPACKINC@%$LAPACKINC%g
- s%@CAIRO_HAS_XRENDER@%$CAIRO_HAS_XRENDER%g
- s%@CAIRO_HAS_XRENDER_SURFACE@%$CAIRO_HAS_XRENDER_SURFACE%g
- s%@CAIROINC@%$CAIROINC%g
- s%@CAIROLIB@%$CAIROLIB%g
- s%@USE_CAIRO@%$USE_CAIRO%g
- s%@FTINC@%$FTINC%g
- s%@FTLIB@%$FTLIB%g
- s%@INTLLIB@%$INTLLIB%g
- s%@HAVE_NLS@%$HAVE_NLS%g
- s%@CXX@%$CXX%g
- s%@OPENDWGINCPATH@%$OPENDWGINCPATH%g
- s%@OPENDWGLIBPATH@%$OPENDWGLIBPATH%g
- s%@OPENDWGLIB@%$OPENDWGLIB%g
- s%@USE_OPENDWG@%$USE_OPENDWG%g
- s%@PTHREADINCPATH@%$PTHREADINCPATH%g
- s%@PTHREADLIBPATH@%$PTHREADLIBPATH%g
- s%@PTHREADLIB@%$PTHREADLIB%g
- s%@USE_PTHREAD@%$USE_PTHREAD%g
- s%@OMPINCPATH@%$OMPINCPATH%g
- s%@OMPLIBPATH@%$OMPLIBPATH%g
- s%@OMPLIB@%$OMPLIB%g
- s%@OMPCFLAGS@%$OMPCFLAGS%g
- s%@USE_OPENMP@%$USE_OPENMP%g
- s%@OCLINCPATH@%$OCLINCPATH%g
- s%@OCLLIBPATH@%$OCLLIBPATH%g
- s%@OCLLIB@%$OCLLIB%g
- s%@USE_OPENCL@%$USE_OPENCL%g
- s%@USE_LARGEFILES@%$USE_LARGEFILES%g
- s%@LFS_CFLAGS@%$LFS_CFLAGS%g
- s%@USE_TERMIO@%$USE_TERMIO%g
- s%@STRIPFLAG@%$STRIPFLAG%g
- s%@GRASS_HOME@%$GRASS_HOME%g
- CEOF
- EOF
- cat >> $CONFIG_STATUS <<\EOF
- # Split the substitutions into bite-sized pieces for seds with
- # small command number limits, like on Digital OSF/1 and HP-UX.
- ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
- ac_file=1 # Number of current file.
- ac_beg=1 # First line for current file.
- ac_end=$ac_max_sed_cmds # Line after last line for current file.
- ac_more_lines=:
- ac_sed_cmds=""
- while $ac_more_lines; do
- if test $ac_beg -gt 1; then
- sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
- else
- sed "${ac_end}q" conftest.subs > conftest.s$ac_file
- fi
- if test ! -s conftest.s$ac_file; then
- ac_more_lines=false
- rm -f conftest.s$ac_file
- else
- if test -z "$ac_sed_cmds"; then
- ac_sed_cmds="sed -f conftest.s$ac_file"
- else
- ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
- fi
- ac_file=`expr $ac_file + 1`
- ac_beg=$ac_end
- ac_end=`expr $ac_end + $ac_max_sed_cmds`
- fi
- done
- if test -z "$ac_sed_cmds"; then
- ac_sed_cmds=cat
- fi
- EOF
- cat >> $CONFIG_STATUS <<EOF
- CONFIG_FILES=\${CONFIG_FILES-"include/Make/Platform.make include/Make/Doxyfile_arch_html include/Make/Doxyfile_arch_latex include/version.h grass.pc"}
- EOF
- cat >> $CONFIG_STATUS <<\EOF
- for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
- # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
- case "$ac_file" in
- *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
- ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
- *) ac_file_in="${ac_file}.in" ;;
- esac
- # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
- # Remove last slash and all that follows it. Not all systems have dirname.
- ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
- if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
- # The file is in a subdirectory.
- test ! -d "$ac_dir" && mkdir "$ac_dir"
- ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
- # A "../" for each directory in $ac_dir_suffix.
- ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
- else
- ac_dir_suffix= ac_dots=
- fi
- case "$ac_given_srcdir" in
- .) srcdir=.
- if test -z "$ac_dots"; then top_srcdir=.
- else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
- /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
- *) # Relative path.
- srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
- top_srcdir="$ac_dots$ac_given_srcdir" ;;
- esac
- case "$ac_given_INSTALL" in
- [/$]*) INSTALL="$ac_given_INSTALL" ;;
- *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
- esac
- echo creating "$ac_file"
- rm -f "$ac_file"
- configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
- case "$ac_file" in
- *Makefile*) ac_comsub="1i\\
- # $configure_input" ;;
- *) ac_comsub= ;;
- esac
- ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
- sed -e "$ac_comsub
- s%@configure_input@%$configure_input%g
- s%@srcdir@%$srcdir%g
- s%@top_srcdir@%$top_srcdir%g
- s%@INSTALL@%$INSTALL%g
- " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
- fi; done
- rm -f conftest.s*
- # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
- # NAME is the cpp macro being defined and VALUE is the value it is being given.
- #
- # ac_d sets the value in "#define NAME VALUE" lines.
- ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
- ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
- ac_dC='\3'
- ac_dD='%g'
- # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
- ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
- ac_uB='\([ ]\)%\1#\2define\3'
- ac_uC=' '
- ac_uD='\4%g'
- # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
- ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
- ac_eB='$%\1#\2define\3'
- ac_eC=' '
- ac_eD='%g'
- if test "${CONFIG_HEADERS+set}" != set; then
- EOF
- cat >> $CONFIG_STATUS <<EOF
- CONFIG_HEADERS="include/config.h"
- EOF
- cat >> $CONFIG_STATUS <<\EOF
- fi
- for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
- # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
- case "$ac_file" in
- *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
- ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
- *) ac_file_in="${ac_file}.in" ;;
- esac
- echo creating $ac_file
- rm -f conftest.frag conftest.in conftest.out
- ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
- cat $ac_file_inputs > conftest.in
- EOF
- # Transform confdefs.h into a sed script conftest.vals that substitutes
- # the proper values into config.h.in to produce config.h. And first:
- # Protect against being on the right side of a sed subst in config.status.
- # Protect against being in an unquoted here document in config.status.
- rm -f conftest.vals
- cat > conftest.hdr <<\EOF
- s/[\\&%]/\\&/g
- s%[\\$`]%\\&%g
- s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
- s%ac_d%ac_u%gp
- s%ac_u%ac_e%gp
- EOF
- sed -n -f conftest.hdr confdefs.h > conftest.vals
- rm -f conftest.hdr
- # This sed command replaces #undef with comments. This is necessary, for
- # example, in the case of _POSIX_SOURCE, which is predefined and required
- # on some systems where configure will not decide to define it.
- cat >> conftest.vals <<\EOF
- s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
- EOF
- # Break up conftest.vals because some shells have a limit on
- # the size of here documents, and old seds have small limits too.
- rm -f conftest.tail
- while :
- do
- ac_lines=`grep -c . conftest.vals`
- # grep -c gives empty output for an empty file on some AIX systems.
- if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
- # Write a limited-size here document to conftest.frag.
- echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
- sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
- echo 'CEOF
- sed -f conftest.frag conftest.in > conftest.out
- rm -f conftest.in
- mv conftest.out conftest.in
- ' >> $CONFIG_STATUS
- sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
- rm -f conftest.vals
- mv conftest.tail conftest.vals
- done
- rm -f conftest.vals
- cat >> $CONFIG_STATUS <<\EOF
- rm -f conftest.frag conftest.h
- echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
- cat conftest.in >> conftest.h
- rm -f conftest.in
- if cmp -s $ac_file conftest.h 2>/dev/null; then
- echo "$ac_file is unchanged"
- rm -f conftest.h
- else
- # Remove last slash and all that follows it. Not all systems have dirname.
- ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
- if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
- # The file is in a subdirectory.
- test ! -d "$ac_dir" && mkdir "$ac_dir"
- fi
- rm -f $ac_file
- mv conftest.h $ac_file
- fi
- fi; done
- EOF
- cat >> $CONFIG_STATUS <<EOF
- EOF
- cat >> $CONFIG_STATUS <<\EOF
- exit 0
- EOF
- chmod +x $CONFIG_STATUS
- rm -fr confdefs* $ac_clean_files
- test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
- echo "Copying config.status to config.status.${ARCH}"
- cp -f config.status config.status.${ARCH}
- # Display configuration status
- echo ""
- echo "GRASS is now configured for: ${host}"
- echo ""
- echo " Source directory: ${SRCDIR}"
- echo " Build directory: ${DSTDIR}"
- echo " Installation directory: ${INSTDIR}"
- echo " Startup script in directory:${bindir}"
- echo " C compiler: ${CC} ${CFLAGS}"
- echo " C++ compiler: ${CXX} ${CXXFLAGS}"
- echo " Building shared libraries: ${shared_ok}"
- echo " OpenGL platform: ${OPENGL_TYPE}"
- echo ""
- echo " MacOSX application: `if test -n "${MACOSX_APP}" ; then echo yes ; else echo no ; fi`"
- echo " MacOSX architectures: ${MACOSX_ARCHS}"
- echo " MacOSX SDK: ${MACOSX_SDK}"
- echo ""
- echo " BLAS support: `if test -n "${USE_BLAS}" ; then echo yes ; else echo no ; fi`"
- echo " BZIP2 support: `if test -n "${USE_BZIP2}" ; then echo yes ; else echo no ; fi`"
- echo " C++ support: `if test -n "${USE_CXX}" ; then echo yes ; else echo no ; fi`"
- echo " Cairo support: `if test -n "${USE_CAIRO}" ; then echo yes ; else echo no ; fi`"
- echo " DWG support: `if test -n "${USE_OPENDWG}" ; then echo yes ; else echo no ; fi`"
- echo " FFTW support: `if test -n "${USE_FFTW}" ; then echo yes ; else echo no ; fi`"
- echo " FreeType support: `if test -n "${USE_FREETYPE}" ; then echo yes ; else echo no ; fi`"
- echo " GDAL support: `if test -n "${USE_GDAL}" ; then echo yes ; else echo no ; fi`"
- echo " GEOS support: `if test -n "${USE_GEOS}" ; then echo yes ; else echo no ; fi`"
- echo " LAPACK support: `if test -n "${USE_LAPACK}" ; then echo yes ; else echo no ; fi`"
- echo " Large File support (LFS): `if test -n "${USE_LARGEFILES}" ; then echo yes ; else echo no ; fi`"
- echo " libLAS support: `if test -n "${USE_LIBLAS}" ; then echo yes ; else echo no ; fi`"
- echo " MySQL support: `if test -n "${USE_MYSQL}" ; then echo yes ; else echo no ; fi`"
- echo " NetCDF support: `if test -n "${USE_NETCDF}" ; then echo yes ; else echo no ; fi`"
- echo " NLS support: `if test -n "${USE_NLS}" ; then echo yes ; else echo no ; fi`"
- echo " ODBC support: `if test -n "${USE_ODBC}" ; then echo yes ; else echo no ; fi`"
- echo " OGR support: `if test -n "${USE_OGR}" ; then echo yes ; else echo no ; fi`"
- echo " OpenCL support: `if test -n "${USE_OPENCL}" ; then echo yes ; else echo no ; fi`"
- echo " OpenGL support: `if test -n "${USE_OPENGL}" ; then echo yes ; else echo no ; fi`"
- echo " OpenMP support: `if test -n "${USE_OPENMP}" ; then echo yes ; else echo no ; fi`"
- echo " PDAL support: `if test -n "${USE_PDAL}" ; then echo yes ; else echo no ; fi`"
- echo " PNG support: `if test -n "${USE_PNG}" ; then echo yes ; else echo no ; fi`"
- echo " POSIX thread support: `if test -n "${USE_PTHREAD}" ; then echo yes ; else echo no ; fi`"
- echo " PostgreSQL support: `if test -n "${USE_POSTGRES}" ; then echo yes ; else echo no ; fi`"
- echo " Readline support: `if test -n "${USE_READLINE}" ; then echo yes ; else echo no ; fi`"
- echo " Regex support: `if test -n "${USE_REGEX}" ; then echo yes ; else echo no ; fi`"
- echo " SQLite support: `if test -n "${USE_SQLITE}" ; then echo yes ; else echo no ; fi`"
- echo " TIFF support: `if test -n "${USE_TIFF}" ; then echo yes ; else echo no ; fi`"
- echo " X11 support: `if test -n "${USE_X11}" ; then echo yes ; else echo no ; fi`"
- echo " Zstandard support: `if test -n "${USE_ZSTD}" ; then echo yes ; else echo no ; fi`"
- echo ""
- # remove when the new PROJ API is stable
- if test $PROJ4API = 0 ; then
- echo "$ac_t"" using new PROJ 5+ API" 1>&6
- else
- echo "$ac_t"" using old PROJ 4 API" 1>&6
- fi
- echo ""
|