You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

configure 190KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for GPSBabel 1.5.4.
  4. #
  5. # Report bugs to <BUG-REPORT-ADDRESS>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test \$(( 1 + 1 )) = 2 || exit 1"
  188. if (eval "$as_required") 2>/dev/null; then :
  189. as_have_required=yes
  190. else
  191. as_have_required=no
  192. fi
  193. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  194. else
  195. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  196. as_found=false
  197. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  198. do
  199. IFS=$as_save_IFS
  200. test -z "$as_dir" && as_dir=.
  201. as_found=:
  202. case $as_dir in #(
  203. /*)
  204. for as_base in sh bash ksh sh5; do
  205. # Try only shells that exist, to save several forks.
  206. as_shell=$as_dir/$as_base
  207. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  208. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  209. CONFIG_SHELL=$as_shell as_have_required=yes
  210. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  211. break 2
  212. fi
  213. fi
  214. done;;
  215. esac
  216. as_found=false
  217. done
  218. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  219. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  220. CONFIG_SHELL=$SHELL as_have_required=yes
  221. fi; }
  222. IFS=$as_save_IFS
  223. if test "x$CONFIG_SHELL" != x; then :
  224. export CONFIG_SHELL
  225. # We cannot yet assume a decent shell, so we have to provide a
  226. # neutralization value for shells without unset; and this also
  227. # works around shells that cannot unset nonexistent variables.
  228. # Preserve -v and -x to the replacement shell.
  229. BASH_ENV=/dev/null
  230. ENV=/dev/null
  231. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  232. case $- in # ((((
  233. *v*x* | *x*v* ) as_opts=-vx ;;
  234. *v* ) as_opts=-v ;;
  235. *x* ) as_opts=-x ;;
  236. * ) as_opts= ;;
  237. esac
  238. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  239. # Admittedly, this is quite paranoid, since all the known shells bail
  240. # out after a failed `exec'.
  241. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  242. exit 255
  243. fi
  244. if test x$as_have_required = xno; then :
  245. $as_echo "$0: This script requires a shell more modern than all"
  246. $as_echo "$0: the shells that I found on your system."
  247. if test x${ZSH_VERSION+set} = xset ; then
  248. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  249. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  250. else
  251. $as_echo "$0: Please tell bug-autoconf@gnu.org and BUG-REPORT-ADDRESS
  252. $0: about your system, including any error possibly output
  253. $0: before this message. Then install a modern shell, or
  254. $0: manually run the script under such a shell if you do
  255. $0: have one."
  256. fi
  257. exit 1
  258. fi
  259. fi
  260. fi
  261. SHELL=${CONFIG_SHELL-/bin/sh}
  262. export SHELL
  263. # Unset more variables known to interfere with behavior of common tools.
  264. CLICOLOR_FORCE= GREP_OPTIONS=
  265. unset CLICOLOR_FORCE GREP_OPTIONS
  266. ## --------------------- ##
  267. ## M4sh Shell Functions. ##
  268. ## --------------------- ##
  269. # as_fn_unset VAR
  270. # ---------------
  271. # Portably unset VAR.
  272. as_fn_unset ()
  273. {
  274. { eval $1=; unset $1;}
  275. }
  276. as_unset=as_fn_unset
  277. # as_fn_set_status STATUS
  278. # -----------------------
  279. # Set $? to STATUS, without forking.
  280. as_fn_set_status ()
  281. {
  282. return $1
  283. } # as_fn_set_status
  284. # as_fn_exit STATUS
  285. # -----------------
  286. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  287. as_fn_exit ()
  288. {
  289. set +e
  290. as_fn_set_status $1
  291. exit $1
  292. } # as_fn_exit
  293. # as_fn_mkdir_p
  294. # -------------
  295. # Create "$as_dir" as a directory, including parents if necessary.
  296. as_fn_mkdir_p ()
  297. {
  298. case $as_dir in #(
  299. -*) as_dir=./$as_dir;;
  300. esac
  301. test -d "$as_dir" || eval $as_mkdir_p || {
  302. as_dirs=
  303. while :; do
  304. case $as_dir in #(
  305. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  306. *) as_qdir=$as_dir;;
  307. esac
  308. as_dirs="'$as_qdir' $as_dirs"
  309. as_dir=`$as_dirname -- "$as_dir" ||
  310. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  311. X"$as_dir" : 'X\(//\)[^/]' \| \
  312. X"$as_dir" : 'X\(//\)$' \| \
  313. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  314. $as_echo X"$as_dir" |
  315. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  316. s//\1/
  317. q
  318. }
  319. /^X\(\/\/\)[^/].*/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)$/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\).*/{
  328. s//\1/
  329. q
  330. }
  331. s/.*/./; q'`
  332. test -d "$as_dir" && break
  333. done
  334. test -z "$as_dirs" || eval "mkdir $as_dirs"
  335. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  336. } # as_fn_mkdir_p
  337. # as_fn_executable_p FILE
  338. # -----------------------
  339. # Test if FILE is an executable regular file.
  340. as_fn_executable_p ()
  341. {
  342. test -f "$1" && test -x "$1"
  343. } # as_fn_executable_p
  344. # as_fn_append VAR VALUE
  345. # ----------------------
  346. # Append the text in VALUE to the end of the definition contained in VAR. Take
  347. # advantage of any shell optimizations that allow amortized linear growth over
  348. # repeated appends, instead of the typical quadratic growth present in naive
  349. # implementations.
  350. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  351. eval 'as_fn_append ()
  352. {
  353. eval $1+=\$2
  354. }'
  355. else
  356. as_fn_append ()
  357. {
  358. eval $1=\$$1\$2
  359. }
  360. fi # as_fn_append
  361. # as_fn_arith ARG...
  362. # ------------------
  363. # Perform arithmetic evaluation on the ARGs, and store the result in the
  364. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  365. # must be portable across $(()) and expr.
  366. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  367. eval 'as_fn_arith ()
  368. {
  369. as_val=$(( $* ))
  370. }'
  371. else
  372. as_fn_arith ()
  373. {
  374. as_val=`expr "$@" || test $? -eq 1`
  375. }
  376. fi # as_fn_arith
  377. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  378. # ----------------------------------------
  379. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  380. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  381. # script with STATUS, using 1 if that was 0.
  382. as_fn_error ()
  383. {
  384. as_status=$1; test $as_status -eq 0 && as_status=1
  385. if test "$4"; then
  386. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  387. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  388. fi
  389. $as_echo "$as_me: error: $2" >&2
  390. as_fn_exit $as_status
  391. } # as_fn_error
  392. if expr a : '\(a\)' >/dev/null 2>&1 &&
  393. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  394. as_expr=expr
  395. else
  396. as_expr=false
  397. fi
  398. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  399. as_basename=basename
  400. else
  401. as_basename=false
  402. fi
  403. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  404. as_dirname=dirname
  405. else
  406. as_dirname=false
  407. fi
  408. as_me=`$as_basename -- "$0" ||
  409. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  410. X"$0" : 'X\(//\)$' \| \
  411. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  412. $as_echo X/"$0" |
  413. sed '/^.*\/\([^/][^/]*\)\/*$/{
  414. s//\1/
  415. q
  416. }
  417. /^X\/\(\/\/\)$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\).*/{
  422. s//\1/
  423. q
  424. }
  425. s/.*/./; q'`
  426. # Avoid depending upon Character Ranges.
  427. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  428. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  429. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  430. as_cr_digits='0123456789'
  431. as_cr_alnum=$as_cr_Letters$as_cr_digits
  432. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  433. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  434. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  435. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  436. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  437. sed -n '
  438. p
  439. /[$]LINENO/=
  440. ' <$as_myself |
  441. sed '
  442. s/[$]LINENO.*/&-/
  443. t lineno
  444. b
  445. :lineno
  446. N
  447. :loop
  448. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  449. t loop
  450. s/-\n.*//
  451. ' >$as_me.lineno &&
  452. chmod +x "$as_me.lineno" ||
  453. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  454. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  455. # already done that, so ensure we don't try to do so again and fall
  456. # in an infinite loop. This has already happened in practice.
  457. _as_can_reexec=no; export _as_can_reexec
  458. # Don't try to exec as it changes $[0], causing all sort of problems
  459. # (the dirname of $[0] is not the place where we might find the
  460. # original and so on. Autoconf is especially sensitive to this).
  461. . "./$as_me.lineno"
  462. # Exit status is that of the last command.
  463. exit
  464. }
  465. ECHO_C= ECHO_N= ECHO_T=
  466. case `echo -n x` in #(((((
  467. -n*)
  468. case `echo 'xy\c'` in
  469. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  470. xy) ECHO_C='\c';;
  471. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  472. ECHO_T=' ';;
  473. esac;;
  474. *)
  475. ECHO_N='-n';;
  476. esac
  477. rm -f conf$$ conf$$.exe conf$$.file
  478. if test -d conf$$.dir; then
  479. rm -f conf$$.dir/conf$$.file
  480. else
  481. rm -f conf$$.dir
  482. mkdir conf$$.dir 2>/dev/null
  483. fi
  484. if (echo >conf$$.file) 2>/dev/null; then
  485. if ln -s conf$$.file conf$$ 2>/dev/null; then
  486. as_ln_s='ln -s'
  487. # ... but there are two gotchas:
  488. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  489. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  490. # In both cases, we have to default to `cp -pR'.
  491. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  492. as_ln_s='cp -pR'
  493. elif ln conf$$.file conf$$ 2>/dev/null; then
  494. as_ln_s=ln
  495. else
  496. as_ln_s='cp -pR'
  497. fi
  498. else
  499. as_ln_s='cp -pR'
  500. fi
  501. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  502. rmdir conf$$.dir 2>/dev/null
  503. if mkdir -p . 2>/dev/null; then
  504. as_mkdir_p='mkdir -p "$as_dir"'
  505. else
  506. test -d ./-p && rmdir ./-p
  507. as_mkdir_p=false
  508. fi
  509. as_test_x='test -x'
  510. as_executable_p=as_fn_executable_p
  511. # Sed expression to map a string onto a valid CPP name.
  512. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  513. # Sed expression to map a string onto a valid variable name.
  514. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  515. test -n "$DJDIR" || exec 7<&0 </dev/null
  516. exec 6>&1
  517. # Name of the host.
  518. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  519. # so uname gets run too.
  520. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  521. #
  522. # Initializations.
  523. #
  524. ac_default_prefix=/usr/local
  525. ac_clean_files=
  526. ac_config_libobj_dir=.
  527. LIBOBJS=
  528. cross_compiling=no
  529. subdirs=
  530. MFLAGS=
  531. MAKEFLAGS=
  532. # Identity of this package.
  533. PACKAGE_NAME='GPSBabel'
  534. PACKAGE_TARNAME='gpsbabel'
  535. PACKAGE_VERSION='1.5.4'
  536. PACKAGE_STRING='GPSBabel 1.5.4'
  537. PACKAGE_BUGREPORT='BUG-REPORT-ADDRESS'
  538. PACKAGE_URL=''
  539. # Factoring default headers for most tests.
  540. ac_includes_default="\
  541. #include <stdio.h>
  542. #ifdef HAVE_SYS_TYPES_H
  543. # include <sys/types.h>
  544. #endif
  545. #ifdef HAVE_SYS_STAT_H
  546. # include <sys/stat.h>
  547. #endif
  548. #ifdef STDC_HEADERS
  549. # include <stdlib.h>
  550. # include <stddef.h>
  551. #else
  552. # ifdef HAVE_STDLIB_H
  553. # include <stdlib.h>
  554. # endif
  555. #endif
  556. #ifdef HAVE_STRING_H
  557. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  558. # include <memory.h>
  559. # endif
  560. # include <string.h>
  561. #endif
  562. #ifdef HAVE_STRINGS_H
  563. # include <strings.h>
  564. #endif
  565. #ifdef HAVE_INTTYPES_H
  566. # include <inttypes.h>
  567. #endif
  568. #ifdef HAVE_STDINT_H
  569. # include <stdint.h>
  570. #endif
  571. #ifdef HAVE_UNISTD_H
  572. # include <unistd.h>
  573. #endif"
  574. ac_subst_vars='LTLIBOBJS
  575. LIBOBJS
  576. QT_LIBS
  577. QT_SYSINC_OPT
  578. QT_INC_OPT
  579. QT_INC
  580. DOCDIR
  581. INSTALL_DEBUG
  582. GPSBABEL_DEBUG
  583. EFENCE_LIB
  584. ZLIB
  585. GBSER
  586. OSJEEPS
  587. USB_CFLAGS
  588. USB_LIBS
  589. LIBUSBCONFIG
  590. ac_ct_LRELEASE
  591. LRELEASE
  592. ac_ct_LUPDATE
  593. LUPDATE
  594. ac_ct_QMAKE
  595. QMAKE
  596. RC
  597. FILEINFO
  598. FMTS
  599. PALM_DB_CMT
  600. EGREP
  601. GREP
  602. CXXCPP
  603. SET_MAKE
  604. INSTALL_DATA
  605. INSTALL_SCRIPT
  606. INSTALL_PROGRAM
  607. HAVE_CXX11
  608. ac_ct_CXX
  609. CXXFLAGS
  610. CXX
  611. OBJEXT
  612. EXEEXT
  613. ac_ct_CC
  614. CPPFLAGS
  615. LDFLAGS
  616. CFLAGS
  617. CC
  618. target_os
  619. target_vendor
  620. target_cpu
  621. target
  622. host_os
  623. host_vendor
  624. host_cpu
  625. host
  626. build_os
  627. build_vendor
  628. build_cpu
  629. build
  630. GBBUILD
  631. GBMICRO
  632. GBMINOR
  633. GBMAJOR
  634. DOCVERSION
  635. PACKAGE_RELEASE
  636. target_alias
  637. host_alias
  638. build_alias
  639. LIBS
  640. ECHO_T
  641. ECHO_N
  642. ECHO_C
  643. DEFS
  644. mandir
  645. localedir
  646. libdir
  647. psdir
  648. pdfdir
  649. dvidir
  650. htmldir
  651. infodir
  652. docdir
  653. oldincludedir
  654. includedir
  655. localstatedir
  656. sharedstatedir
  657. sysconfdir
  658. datadir
  659. datarootdir
  660. libexecdir
  661. sbindir
  662. bindir
  663. program_transform_name
  664. prefix
  665. exec_prefix
  666. PACKAGE_URL
  667. PACKAGE_BUGREPORT
  668. PACKAGE_STRING
  669. PACKAGE_VERSION
  670. PACKAGE_TARNAME
  671. PACKAGE_NAME
  672. PATH_SEPARATOR
  673. SHELL'
  674. ac_subst_files=''
  675. ac_user_opts='
  676. enable_option_checking
  677. with_cet
  678. enable_shapefile
  679. enable_pdb
  680. enable_csv
  681. enable_most
  682. enable_filters
  683. with_zlib
  684. enable_efence
  685. with_doc
  686. '
  687. ac_precious_vars='build_alias
  688. host_alias
  689. target_alias
  690. CC
  691. CFLAGS
  692. LDFLAGS
  693. LIBS
  694. CPPFLAGS
  695. CXX
  696. CXXFLAGS
  697. CCC
  698. CXXCPP'
  699. # Initialize some variables set by options.
  700. ac_init_help=
  701. ac_init_version=false
  702. ac_unrecognized_opts=
  703. ac_unrecognized_sep=
  704. # The variables have the same names as the options, with
  705. # dashes changed to underlines.
  706. cache_file=/dev/null
  707. exec_prefix=NONE
  708. no_create=
  709. no_recursion=
  710. prefix=NONE
  711. program_prefix=NONE
  712. program_suffix=NONE
  713. program_transform_name=s,x,x,
  714. silent=
  715. site=
  716. srcdir=
  717. verbose=
  718. x_includes=NONE
  719. x_libraries=NONE
  720. # Installation directory options.
  721. # These are left unexpanded so users can "make install exec_prefix=/foo"
  722. # and all the variables that are supposed to be based on exec_prefix
  723. # by default will actually change.
  724. # Use braces instead of parens because sh, perl, etc. also accept them.
  725. # (The list follows the same order as the GNU Coding Standards.)
  726. bindir='${exec_prefix}/bin'
  727. sbindir='${exec_prefix}/sbin'
  728. libexecdir='${exec_prefix}/libexec'
  729. datarootdir='${prefix}/share'
  730. datadir='${datarootdir}'
  731. sysconfdir='${prefix}/etc'
  732. sharedstatedir='${prefix}/com'
  733. localstatedir='${prefix}/var'
  734. includedir='${prefix}/include'
  735. oldincludedir='/usr/include'
  736. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  737. infodir='${datarootdir}/info'
  738. htmldir='${docdir}'
  739. dvidir='${docdir}'
  740. pdfdir='${docdir}'
  741. psdir='${docdir}'
  742. libdir='${exec_prefix}/lib'
  743. localedir='${datarootdir}/locale'
  744. mandir='${datarootdir}/man'
  745. ac_prev=
  746. ac_dashdash=
  747. for ac_option
  748. do
  749. # If the previous option needs an argument, assign it.
  750. if test -n "$ac_prev"; then
  751. eval $ac_prev=\$ac_option
  752. ac_prev=
  753. continue
  754. fi
  755. case $ac_option in
  756. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  757. *=) ac_optarg= ;;
  758. *) ac_optarg=yes ;;
  759. esac
  760. # Accept the important Cygnus configure options, so we can diagnose typos.
  761. case $ac_dashdash$ac_option in
  762. --)
  763. ac_dashdash=yes ;;
  764. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  765. ac_prev=bindir ;;
  766. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  767. bindir=$ac_optarg ;;
  768. -build | --build | --buil | --bui | --bu)
  769. ac_prev=build_alias ;;
  770. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  771. build_alias=$ac_optarg ;;
  772. -cache-file | --cache-file | --cache-fil | --cache-fi \
  773. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  774. ac_prev=cache_file ;;
  775. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  776. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  777. cache_file=$ac_optarg ;;
  778. --config-cache | -C)
  779. cache_file=config.cache ;;
  780. -datadir | --datadir | --datadi | --datad)
  781. ac_prev=datadir ;;
  782. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  783. datadir=$ac_optarg ;;
  784. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  785. | --dataroo | --dataro | --datar)
  786. ac_prev=datarootdir ;;
  787. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  788. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  789. datarootdir=$ac_optarg ;;
  790. -disable-* | --disable-*)
  791. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  792. # Reject names that are not valid shell variable names.
  793. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  794. as_fn_error $? "invalid feature name: $ac_useropt"
  795. ac_useropt_orig=$ac_useropt
  796. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  797. case $ac_user_opts in
  798. *"
  799. "enable_$ac_useropt"
  800. "*) ;;
  801. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  802. ac_unrecognized_sep=', ';;
  803. esac
  804. eval enable_$ac_useropt=no ;;
  805. -docdir | --docdir | --docdi | --doc | --do)
  806. ac_prev=docdir ;;
  807. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  808. docdir=$ac_optarg ;;
  809. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  810. ac_prev=dvidir ;;
  811. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  812. dvidir=$ac_optarg ;;
  813. -enable-* | --enable-*)
  814. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  815. # Reject names that are not valid shell variable names.
  816. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  817. as_fn_error $? "invalid feature name: $ac_useropt"
  818. ac_useropt_orig=$ac_useropt
  819. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  820. case $ac_user_opts in
  821. *"
  822. "enable_$ac_useropt"
  823. "*) ;;
  824. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  825. ac_unrecognized_sep=', ';;
  826. esac
  827. eval enable_$ac_useropt=\$ac_optarg ;;
  828. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  829. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  830. | --exec | --exe | --ex)
  831. ac_prev=exec_prefix ;;
  832. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  833. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  834. | --exec=* | --exe=* | --ex=*)
  835. exec_prefix=$ac_optarg ;;
  836. -gas | --gas | --ga | --g)
  837. # Obsolete; use --with-gas.
  838. with_gas=yes ;;
  839. -help | --help | --hel | --he | -h)
  840. ac_init_help=long ;;
  841. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  842. ac_init_help=recursive ;;
  843. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  844. ac_init_help=short ;;
  845. -host | --host | --hos | --ho)
  846. ac_prev=host_alias ;;
  847. -host=* | --host=* | --hos=* | --ho=*)
  848. host_alias=$ac_optarg ;;
  849. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  850. ac_prev=htmldir ;;
  851. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  852. | --ht=*)
  853. htmldir=$ac_optarg ;;
  854. -includedir | --includedir | --includedi | --included | --include \
  855. | --includ | --inclu | --incl | --inc)
  856. ac_prev=includedir ;;
  857. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  858. | --includ=* | --inclu=* | --incl=* | --inc=*)
  859. includedir=$ac_optarg ;;
  860. -infodir | --infodir | --infodi | --infod | --info | --inf)
  861. ac_prev=infodir ;;
  862. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  863. infodir=$ac_optarg ;;
  864. -libdir | --libdir | --libdi | --libd)
  865. ac_prev=libdir ;;
  866. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  867. libdir=$ac_optarg ;;
  868. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  869. | --libexe | --libex | --libe)
  870. ac_prev=libexecdir ;;
  871. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  872. | --libexe=* | --libex=* | --libe=*)
  873. libexecdir=$ac_optarg ;;
  874. -localedir | --localedir | --localedi | --localed | --locale)
  875. ac_prev=localedir ;;
  876. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  877. localedir=$ac_optarg ;;
  878. -localstatedir | --localstatedir | --localstatedi | --localstated \
  879. | --localstate | --localstat | --localsta | --localst | --locals)
  880. ac_prev=localstatedir ;;
  881. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  882. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  883. localstatedir=$ac_optarg ;;
  884. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  885. ac_prev=mandir ;;
  886. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  887. mandir=$ac_optarg ;;
  888. -nfp | --nfp | --nf)
  889. # Obsolete; use --without-fp.
  890. with_fp=no ;;
  891. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  892. | --no-cr | --no-c | -n)
  893. no_create=yes ;;
  894. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  895. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  896. no_recursion=yes ;;
  897. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  898. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  899. | --oldin | --oldi | --old | --ol | --o)
  900. ac_prev=oldincludedir ;;
  901. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  902. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  903. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  904. oldincludedir=$ac_optarg ;;
  905. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  906. ac_prev=prefix ;;
  907. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  908. prefix=$ac_optarg ;;
  909. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  910. | --program-pre | --program-pr | --program-p)
  911. ac_prev=program_prefix ;;
  912. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  913. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  914. program_prefix=$ac_optarg ;;
  915. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  916. | --program-suf | --program-su | --program-s)
  917. ac_prev=program_suffix ;;
  918. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  919. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  920. program_suffix=$ac_optarg ;;
  921. -program-transform-name | --program-transform-name \
  922. | --program-transform-nam | --program-transform-na \
  923. | --program-transform-n | --program-transform- \
  924. | --program-transform | --program-transfor \
  925. | --program-transfo | --program-transf \
  926. | --program-trans | --program-tran \
  927. | --progr-tra | --program-tr | --program-t)
  928. ac_prev=program_transform_name ;;
  929. -program-transform-name=* | --program-transform-name=* \
  930. | --program-transform-nam=* | --program-transform-na=* \
  931. | --program-transform-n=* | --program-transform-=* \
  932. | --program-transform=* | --program-transfor=* \
  933. | --program-transfo=* | --program-transf=* \
  934. | --program-trans=* | --program-tran=* \
  935. | --progr-tra=* | --program-tr=* | --program-t=*)
  936. program_transform_name=$ac_optarg ;;
  937. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  938. ac_prev=pdfdir ;;
  939. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  940. pdfdir=$ac_optarg ;;
  941. -psdir | --psdir | --psdi | --psd | --ps)
  942. ac_prev=psdir ;;
  943. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  944. psdir=$ac_optarg ;;
  945. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  946. | -silent | --silent | --silen | --sile | --sil)
  947. silent=yes ;;
  948. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  949. ac_prev=sbindir ;;
  950. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  951. | --sbi=* | --sb=*)
  952. sbindir=$ac_optarg ;;
  953. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  954. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  955. | --sharedst | --shareds | --shared | --share | --shar \
  956. | --sha | --sh)
  957. ac_prev=sharedstatedir ;;
  958. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  959. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  960. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  961. | --sha=* | --sh=*)
  962. sharedstatedir=$ac_optarg ;;
  963. -site | --site | --sit)
  964. ac_prev=site ;;
  965. -site=* | --site=* | --sit=*)
  966. site=$ac_optarg ;;
  967. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  968. ac_prev=srcdir ;;
  969. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  970. srcdir=$ac_optarg ;;
  971. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  972. | --syscon | --sysco | --sysc | --sys | --sy)
  973. ac_prev=sysconfdir ;;
  974. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  975. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  976. sysconfdir=$ac_optarg ;;
  977. -target | --target | --targe | --targ | --tar | --ta | --t)
  978. ac_prev=target_alias ;;
  979. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  980. target_alias=$ac_optarg ;;
  981. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  982. verbose=yes ;;
  983. -version | --version | --versio | --versi | --vers | -V)
  984. ac_init_version=: ;;
  985. -with-* | --with-*)
  986. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  987. # Reject names that are not valid shell variable names.
  988. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  989. as_fn_error $? "invalid package name: $ac_useropt"
  990. ac_useropt_orig=$ac_useropt
  991. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  992. case $ac_user_opts in
  993. *"
  994. "with_$ac_useropt"
  995. "*) ;;
  996. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  997. ac_unrecognized_sep=', ';;
  998. esac
  999. eval with_$ac_useropt=\$ac_optarg ;;
  1000. -without-* | --without-*)
  1001. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1002. # Reject names that are not valid shell variable names.
  1003. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1004. as_fn_error $? "invalid package name: $ac_useropt"
  1005. ac_useropt_orig=$ac_useropt
  1006. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1007. case $ac_user_opts in
  1008. *"
  1009. "with_$ac_useropt"
  1010. "*) ;;
  1011. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1012. ac_unrecognized_sep=', ';;
  1013. esac
  1014. eval with_$ac_useropt=no ;;
  1015. --x)
  1016. # Obsolete; use --with-x.
  1017. with_x=yes ;;
  1018. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1019. | --x-incl | --x-inc | --x-in | --x-i)
  1020. ac_prev=x_includes ;;
  1021. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1022. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1023. x_includes=$ac_optarg ;;
  1024. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1025. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1026. ac_prev=x_libraries ;;
  1027. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1028. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1029. x_libraries=$ac_optarg ;;
  1030. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1031. Try \`$0 --help' for more information"
  1032. ;;
  1033. *=*)
  1034. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1035. # Reject names that are not valid shell variable names.
  1036. case $ac_envvar in #(
  1037. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1038. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1039. esac
  1040. eval $ac_envvar=\$ac_optarg
  1041. export $ac_envvar ;;
  1042. *)
  1043. # FIXME: should be removed in autoconf 3.0.
  1044. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1045. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1046. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1047. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1048. ;;
  1049. esac
  1050. done
  1051. if test -n "$ac_prev"; then
  1052. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1053. as_fn_error $? "missing argument to $ac_option"
  1054. fi
  1055. if test -n "$ac_unrecognized_opts"; then
  1056. case $enable_option_checking in
  1057. no) ;;
  1058. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1059. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1060. esac
  1061. fi
  1062. # Check all directory arguments for consistency.
  1063. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1064. datadir sysconfdir sharedstatedir localstatedir includedir \
  1065. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1066. libdir localedir mandir
  1067. do
  1068. eval ac_val=\$$ac_var
  1069. # Remove trailing slashes.
  1070. case $ac_val in
  1071. */ )
  1072. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1073. eval $ac_var=\$ac_val;;
  1074. esac
  1075. # Be sure to have absolute directory names.
  1076. case $ac_val in
  1077. [\\/$]* | ?:[\\/]* ) continue;;
  1078. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1079. esac
  1080. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1081. done
  1082. # There might be people who depend on the old broken behavior: `$host'
  1083. # used to hold the argument of --host etc.
  1084. # FIXME: To remove some day.
  1085. build=$build_alias
  1086. host=$host_alias
  1087. target=$target_alias
  1088. # FIXME: To remove some day.
  1089. if test "x$host_alias" != x; then
  1090. if test "x$build_alias" = x; then
  1091. cross_compiling=maybe
  1092. elif test "x$build_alias" != "x$host_alias"; then
  1093. cross_compiling=yes
  1094. fi
  1095. fi
  1096. ac_tool_prefix=
  1097. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1098. test "$silent" = yes && exec 6>/dev/null
  1099. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1100. ac_ls_di=`ls -di .` &&
  1101. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1102. as_fn_error $? "working directory cannot be determined"
  1103. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1104. as_fn_error $? "pwd does not report name of working directory"
  1105. # Find the source files, if location was not specified.
  1106. if test -z "$srcdir"; then
  1107. ac_srcdir_defaulted=yes
  1108. # Try the directory containing this script, then the parent directory.
  1109. ac_confdir=`$as_dirname -- "$as_myself" ||
  1110. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1111. X"$as_myself" : 'X\(//\)[^/]' \| \
  1112. X"$as_myself" : 'X\(//\)$' \| \
  1113. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1114. $as_echo X"$as_myself" |
  1115. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1116. s//\1/
  1117. q
  1118. }
  1119. /^X\(\/\/\)[^/].*/{
  1120. s//\1/
  1121. q
  1122. }
  1123. /^X\(\/\/\)$/{
  1124. s//\1/
  1125. q
  1126. }
  1127. /^X\(\/\).*/{
  1128. s//\1/
  1129. q
  1130. }
  1131. s/.*/./; q'`
  1132. srcdir=$ac_confdir
  1133. if test ! -r "$srcdir/$ac_unique_file"; then
  1134. srcdir=..
  1135. fi
  1136. else
  1137. ac_srcdir_defaulted=no
  1138. fi
  1139. if test ! -r "$srcdir/$ac_unique_file"; then
  1140. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1141. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1142. fi
  1143. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1144. ac_abs_confdir=`(
  1145. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1146. pwd)`
  1147. # When building in place, set srcdir=.
  1148. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1149. srcdir=.
  1150. fi
  1151. # Remove unnecessary trailing slashes from srcdir.
  1152. # Double slashes in file names in object file debugging info
  1153. # mess up M-x gdb in Emacs.
  1154. case $srcdir in
  1155. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1156. esac
  1157. for ac_var in $ac_precious_vars; do
  1158. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1159. eval ac_env_${ac_var}_value=\$${ac_var}
  1160. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1161. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1162. done
  1163. #
  1164. # Report the --help message.
  1165. #
  1166. if test "$ac_init_help" = "long"; then
  1167. # Omit some internal or obsolete options to make the list less imposing.
  1168. # This message is too long to be a string in the A/UX 3.1 sh.
  1169. cat <<_ACEOF
  1170. \`configure' configures GPSBabel 1.5.4 to adapt to many kinds of systems.
  1171. Usage: $0 [OPTION]... [VAR=VALUE]...
  1172. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1173. VAR=VALUE. See below for descriptions of some of the useful variables.
  1174. Defaults for the options are specified in brackets.
  1175. Configuration:
  1176. -h, --help display this help and exit
  1177. --help=short display options specific to this package
  1178. --help=recursive display the short help of all the included packages
  1179. -V, --version display version information and exit
  1180. -q, --quiet, --silent do not print \`checking ...' messages
  1181. --cache-file=FILE cache test results in FILE [disabled]
  1182. -C, --config-cache alias for \`--cache-file=config.cache'
  1183. -n, --no-create do not create output files
  1184. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1185. Installation directories:
  1186. --prefix=PREFIX install architecture-independent files in PREFIX
  1187. [$ac_default_prefix]
  1188. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1189. [PREFIX]
  1190. By default, \`make install' will install all the files in
  1191. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1192. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1193. for instance \`--prefix=\$HOME'.
  1194. For better control, use the options below.
  1195. Fine tuning of the installation directories:
  1196. --bindir=DIR user executables [EPREFIX/bin]
  1197. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1198. --libexecdir=DIR program executables [EPREFIX/libexec]
  1199. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1200. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1201. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1202. --libdir=DIR object code libraries [EPREFIX/lib]
  1203. --includedir=DIR C header files [PREFIX/include]
  1204. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1205. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1206. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1207. --infodir=DIR info documentation [DATAROOTDIR/info]
  1208. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1209. --mandir=DIR man documentation [DATAROOTDIR/man]
  1210. --docdir=DIR documentation root [DATAROOTDIR/doc/gpsbabel]
  1211. --htmldir=DIR html documentation [DOCDIR]
  1212. --dvidir=DIR dvi documentation [DOCDIR]
  1213. --pdfdir=DIR pdf documentation [DOCDIR]
  1214. --psdir=DIR ps documentation [DOCDIR]
  1215. _ACEOF
  1216. cat <<\_ACEOF
  1217. System types:
  1218. --build=BUILD configure for building on BUILD [guessed]
  1219. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1220. --target=TARGET configure for building compilers for TARGET [HOST]
  1221. _ACEOF
  1222. fi
  1223. if test -n "$ac_init_help"; then
  1224. case $ac_init_help in
  1225. short | recursive ) echo "Configuration of GPSBabel 1.5.4:";;
  1226. esac
  1227. cat <<\_ACEOF
  1228. Optional Features:
  1229. --disable-option-checking ignore unrecognized --enable/--with options
  1230. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1231. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1232. --enable-shapefile=(yes)|no
  1233. --enable-pdb=(yes)|no
  1234. --enable-csv=(yes)|no
  1235. --enable-most=(yes)|no
  1236. --enable-filters=(yes)|no
  1237. --enable-efence=yes|(no)
  1238. Optional Packages:
  1239. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1240. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1241. --with-cet=(default,all,minimal)
  1242. --with-zlib=(included)|system|no
  1243. --with-doc=DIR Path where the documentation will be stored.
  1244. Some influential environment variables:
  1245. CC C compiler command
  1246. CFLAGS C compiler flags
  1247. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1248. nonstandard directory <lib dir>
  1249. LIBS libraries to pass to the linker, e.g. -l<library>
  1250. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1251. you have headers in a nonstandard directory <include dir>
  1252. CXX C++ compiler command
  1253. CXXFLAGS C++ compiler flags
  1254. CXXCPP C++ preprocessor
  1255. Use these variables to override the choices made by `configure' or to help
  1256. it to find libraries and programs with nonstandard names/locations.
  1257. Report bugs to <BUG-REPORT-ADDRESS>.
  1258. _ACEOF
  1259. ac_status=$?
  1260. fi
  1261. if test "$ac_init_help" = "recursive"; then
  1262. # If there are subdirs, report their specific --help.
  1263. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1264. test -d "$ac_dir" ||
  1265. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1266. continue
  1267. ac_builddir=.
  1268. case "$ac_dir" in
  1269. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1270. *)
  1271. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1272. # A ".." for each directory in $ac_dir_suffix.
  1273. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1274. case $ac_top_builddir_sub in
  1275. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1276. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1277. esac ;;
  1278. esac
  1279. ac_abs_top_builddir=$ac_pwd
  1280. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1281. # for backward compatibility:
  1282. ac_top_builddir=$ac_top_build_prefix
  1283. case $srcdir in
  1284. .) # We are building in place.
  1285. ac_srcdir=.
  1286. ac_top_srcdir=$ac_top_builddir_sub
  1287. ac_abs_top_srcdir=$ac_pwd ;;
  1288. [\\/]* | ?:[\\/]* ) # Absolute name.
  1289. ac_srcdir=$srcdir$ac_dir_suffix;
  1290. ac_top_srcdir=$srcdir
  1291. ac_abs_top_srcdir=$srcdir ;;
  1292. *) # Relative name.
  1293. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1294. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1295. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1296. esac
  1297. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1298. cd "$ac_dir" || { ac_status=$?; continue; }
  1299. # Check for guested configure.
  1300. if test -f "$ac_srcdir/configure.gnu"; then
  1301. echo &&
  1302. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1303. elif test -f "$ac_srcdir/configure"; then
  1304. echo &&
  1305. $SHELL "$ac_srcdir/configure" --help=recursive
  1306. else
  1307. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1308. fi || ac_status=$?
  1309. cd "$ac_pwd" || { ac_status=$?; break; }
  1310. done
  1311. fi
  1312. test -n "$ac_init_help" && exit $ac_status
  1313. if $ac_init_version; then
  1314. cat <<\_ACEOF
  1315. GPSBabel configure 1.5.4
  1316. generated by GNU Autoconf 2.69
  1317. Copyright (C) 2012 Free Software Foundation, Inc.
  1318. This configure script is free software; the Free Software Foundation
  1319. gives unlimited permission to copy, distribute and modify it.
  1320. _ACEOF
  1321. exit
  1322. fi
  1323. ## ------------------------ ##
  1324. ## Autoconf initialization. ##
  1325. ## ------------------------ ##
  1326. # ac_fn_c_try_compile LINENO
  1327. # --------------------------
  1328. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1329. ac_fn_c_try_compile ()
  1330. {
  1331. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1332. rm -f conftest.$ac_objext
  1333. if { { ac_try="$ac_compile"
  1334. case "(($ac_try" in
  1335. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1336. *) ac_try_echo=$ac_try;;
  1337. esac
  1338. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1339. $as_echo "$ac_try_echo"; } >&5
  1340. (eval "$ac_compile") 2>conftest.err
  1341. ac_status=$?
  1342. if test -s conftest.err; then
  1343. grep -v '^ *+' conftest.err >conftest.er1
  1344. cat conftest.er1 >&5
  1345. mv -f conftest.er1 conftest.err
  1346. fi
  1347. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1348. test $ac_status = 0; } && {
  1349. test -z "$ac_c_werror_flag" ||
  1350. test ! -s conftest.err
  1351. } && test -s conftest.$ac_objext; then :
  1352. ac_retval=0
  1353. else
  1354. $as_echo "$as_me: failed program was:" >&5
  1355. sed 's/^/| /' conftest.$ac_ext >&5
  1356. ac_retval=1
  1357. fi
  1358. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1359. as_fn_set_status $ac_retval
  1360. } # ac_fn_c_try_compile
  1361. # ac_fn_cxx_try_compile LINENO
  1362. # ----------------------------
  1363. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1364. ac_fn_cxx_try_compile ()
  1365. {
  1366. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1367. rm -f conftest.$ac_objext
  1368. if { { ac_try="$ac_compile"
  1369. case "(($ac_try" in
  1370. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1371. *) ac_try_echo=$ac_try;;
  1372. esac
  1373. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1374. $as_echo "$ac_try_echo"; } >&5
  1375. (eval "$ac_compile") 2>conftest.err
  1376. ac_status=$?
  1377. if test -s conftest.err; then
  1378. grep -v '^ *+' conftest.err >conftest.er1
  1379. cat conftest.er1 >&5
  1380. mv -f conftest.er1 conftest.err
  1381. fi
  1382. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1383. test $ac_status = 0; } && {
  1384. test -z "$ac_cxx_werror_flag" ||
  1385. test ! -s conftest.err
  1386. } && test -s conftest.$ac_objext; then :
  1387. ac_retval=0
  1388. else
  1389. $as_echo "$as_me: failed program was:" >&5
  1390. sed 's/^/| /' conftest.$ac_ext >&5
  1391. ac_retval=1
  1392. fi
  1393. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1394. as_fn_set_status $ac_retval
  1395. } # ac_fn_cxx_try_compile
  1396. # ac_fn_cxx_try_run LINENO
  1397. # ------------------------
  1398. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1399. # that executables *can* be run.
  1400. ac_fn_cxx_try_run ()
  1401. {
  1402. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1403. if { { ac_try="$ac_link"
  1404. case "(($ac_try" in
  1405. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1406. *) ac_try_echo=$ac_try;;
  1407. esac
  1408. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1409. $as_echo "$ac_try_echo"; } >&5
  1410. (eval "$ac_link") 2>&5
  1411. ac_status=$?
  1412. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1413. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1414. { { case "(($ac_try" in
  1415. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1416. *) ac_try_echo=$ac_try;;
  1417. esac
  1418. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1419. $as_echo "$ac_try_echo"; } >&5
  1420. (eval "$ac_try") 2>&5
  1421. ac_status=$?
  1422. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1423. test $ac_status = 0; }; }; then :
  1424. ac_retval=0
  1425. else
  1426. $as_echo "$as_me: program exited with status $ac_status" >&5
  1427. $as_echo "$as_me: failed program was:" >&5
  1428. sed 's/^/| /' conftest.$ac_ext >&5
  1429. ac_retval=$ac_status
  1430. fi
  1431. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1432. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1433. as_fn_set_status $ac_retval
  1434. } # ac_fn_cxx_try_run
  1435. # ac_fn_cxx_try_cpp LINENO
  1436. # ------------------------
  1437. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1438. ac_fn_cxx_try_cpp ()
  1439. {
  1440. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1441. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1442. case "(($ac_try" in
  1443. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1444. *) ac_try_echo=$ac_try;;
  1445. esac
  1446. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1447. $as_echo "$ac_try_echo"; } >&5
  1448. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1449. ac_status=$?
  1450. if test -s conftest.err; then
  1451. grep -v '^ *+' conftest.err >conftest.er1
  1452. cat conftest.er1 >&5
  1453. mv -f conftest.er1 conftest.err
  1454. fi
  1455. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1456. test $ac_status = 0; } > conftest.i && {
  1457. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1458. test ! -s conftest.err
  1459. }; then :
  1460. ac_retval=0
  1461. else
  1462. $as_echo "$as_me: failed program was:" >&5
  1463. sed 's/^/| /' conftest.$ac_ext >&5
  1464. ac_retval=1
  1465. fi
  1466. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1467. as_fn_set_status $ac_retval
  1468. } # ac_fn_cxx_try_cpp
  1469. # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
  1470. # ---------------------------------------------------------
  1471. # Tests whether HEADER exists and can be compiled using the include files in
  1472. # INCLUDES, setting the cache variable VAR accordingly.
  1473. ac_fn_cxx_check_header_compile ()
  1474. {
  1475. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1477. $as_echo_n "checking for $2... " >&6; }
  1478. if eval \${$3+:} false; then :
  1479. $as_echo_n "(cached) " >&6
  1480. else
  1481. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1482. /* end confdefs.h. */
  1483. $4
  1484. #include <$2>
  1485. _ACEOF
  1486. if ac_fn_cxx_try_compile "$LINENO"; then :
  1487. eval "$3=yes"
  1488. else
  1489. eval "$3=no"
  1490. fi
  1491. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1492. fi
  1493. eval ac_res=\$$3
  1494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1495. $as_echo "$ac_res" >&6; }
  1496. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1497. } # ac_fn_cxx_check_header_compile
  1498. # ac_fn_cxx_try_link LINENO
  1499. # -------------------------
  1500. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1501. ac_fn_cxx_try_link ()
  1502. {
  1503. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1504. rm -f conftest.$ac_objext conftest$ac_exeext
  1505. if { { ac_try="$ac_link"
  1506. case "(($ac_try" in
  1507. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1508. *) ac_try_echo=$ac_try;;
  1509. esac
  1510. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1511. $as_echo "$ac_try_echo"; } >&5
  1512. (eval "$ac_link") 2>conftest.err
  1513. ac_status=$?
  1514. if test -s conftest.err; then
  1515. grep -v '^ *+' conftest.err >conftest.er1
  1516. cat conftest.er1 >&5
  1517. mv -f conftest.er1 conftest.err
  1518. fi
  1519. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1520. test $ac_status = 0; } && {
  1521. test -z "$ac_cxx_werror_flag" ||
  1522. test ! -s conftest.err
  1523. } && test -s conftest$ac_exeext && {
  1524. test "$cross_compiling" = yes ||
  1525. test -x conftest$ac_exeext
  1526. }; then :
  1527. ac_retval=0
  1528. else
  1529. $as_echo "$as_me: failed program was:" >&5
  1530. sed 's/^/| /' conftest.$ac_ext >&5
  1531. ac_retval=1
  1532. fi
  1533. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1534. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1535. # interfere with the next link command; also delete a directory that is
  1536. # left behind by Apple's compiler. We do this before executing the actions.
  1537. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1538. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1539. as_fn_set_status $ac_retval
  1540. } # ac_fn_cxx_try_link
  1541. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  1542. # ---------------------------------------------------------
  1543. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1544. # the include files in INCLUDES and setting the cache variable VAR
  1545. # accordingly.
  1546. ac_fn_cxx_check_header_mongrel ()
  1547. {
  1548. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1549. if eval \${$3+:} false; then :
  1550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1551. $as_echo_n "checking for $2... " >&6; }
  1552. if eval \${$3+:} false; then :
  1553. $as_echo_n "(cached) " >&6
  1554. fi
  1555. eval ac_res=\$$3
  1556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1557. $as_echo "$ac_res" >&6; }
  1558. else
  1559. # Is the header compilable?
  1560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1561. $as_echo_n "checking $2 usability... " >&6; }
  1562. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1563. /* end confdefs.h. */
  1564. $4
  1565. #include <$2>
  1566. _ACEOF
  1567. if ac_fn_cxx_try_compile "$LINENO"; then :
  1568. ac_header_compiler=yes
  1569. else
  1570. ac_header_compiler=no
  1571. fi
  1572. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1574. $as_echo "$ac_header_compiler" >&6; }
  1575. # Is the header present?
  1576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1577. $as_echo_n "checking $2 presence... " >&6; }
  1578. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1579. /* end confdefs.h. */
  1580. #include <$2>
  1581. _ACEOF
  1582. if ac_fn_cxx_try_cpp "$LINENO"; then :
  1583. ac_header_preproc=yes
  1584. else
  1585. ac_header_preproc=no
  1586. fi
  1587. rm -f conftest.err conftest.i conftest.$ac_ext
  1588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1589. $as_echo "$ac_header_preproc" >&6; }
  1590. # So? What about this header?
  1591. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  1592. yes:no: )
  1593. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1594. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1595. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1596. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1597. ;;
  1598. no:yes:* )
  1599. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1600. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1601. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1602. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1603. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1604. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1605. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1606. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1607. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1608. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1609. ( $as_echo "## --------------------------------- ##
  1610. ## Report this to BUG-REPORT-ADDRESS ##
  1611. ## --------------------------------- ##"
  1612. ) | sed "s/^/$as_me: WARNING: /" >&2
  1613. ;;
  1614. esac
  1615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1616. $as_echo_n "checking for $2... " >&6; }
  1617. if eval \${$3+:} false; then :
  1618. $as_echo_n "(cached) " >&6
  1619. else
  1620. eval "$3=\$ac_header_compiler"
  1621. fi
  1622. eval ac_res=\$$3
  1623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1624. $as_echo "$ac_res" >&6; }
  1625. fi
  1626. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1627. } # ac_fn_cxx_check_header_mongrel
  1628. # ac_fn_cxx_check_func LINENO FUNC VAR
  1629. # ------------------------------------
  1630. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1631. ac_fn_cxx_check_func ()
  1632. {
  1633. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1635. $as_echo_n "checking for $2... " >&6; }
  1636. if eval \${$3+:} false; then :
  1637. $as_echo_n "(cached) " >&6
  1638. else
  1639. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1640. /* end confdefs.h. */
  1641. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1642. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1643. #define $2 innocuous_$2
  1644. /* System header to define __stub macros and hopefully few prototypes,
  1645. which can conflict with char $2 (); below.
  1646. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1647. <limits.h> exists even on freestanding compilers. */
  1648. #ifdef __STDC__
  1649. # include <limits.h>
  1650. #else
  1651. # include <assert.h>
  1652. #endif
  1653. #undef $2
  1654. /* Override any GCC internal prototype to avoid an error.
  1655. Use char because int might match the return type of a GCC
  1656. builtin and then its argument prototype would still apply. */
  1657. #ifdef __cplusplus
  1658. extern "C"
  1659. #endif
  1660. char $2 ();
  1661. /* The GNU C library defines this for functions which it implements
  1662. to always fail with ENOSYS. Some functions are actually named
  1663. something starting with __ and the normal name is an alias. */
  1664. #if defined __stub_$2 || defined __stub___$2
  1665. choke me
  1666. #endif
  1667. int
  1668. main ()
  1669. {
  1670. return $2 ();
  1671. ;
  1672. return 0;
  1673. }
  1674. _ACEOF
  1675. if ac_fn_cxx_try_link "$LINENO"; then :
  1676. eval "$3=yes"
  1677. else
  1678. eval "$3=no"
  1679. fi
  1680. rm -f core conftest.err conftest.$ac_objext \
  1681. conftest$ac_exeext conftest.$ac_ext
  1682. fi
  1683. eval ac_res=\$$3
  1684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1685. $as_echo "$ac_res" >&6; }
  1686. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1687. } # ac_fn_cxx_check_func
  1688. cat >config.log <<_ACEOF
  1689. This file contains any messages produced by compilers while
  1690. running configure, to aid debugging if configure makes a mistake.
  1691. It was created by GPSBabel $as_me 1.5.4, which was
  1692. generated by GNU Autoconf 2.69. Invocation command line was
  1693. $ $0 $@
  1694. _ACEOF
  1695. exec 5>>config.log
  1696. {
  1697. cat <<_ASUNAME
  1698. ## --------- ##
  1699. ## Platform. ##
  1700. ## --------- ##
  1701. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1702. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1703. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1704. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1705. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1706. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1707. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1708. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1709. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1710. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1711. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1712. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1713. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1714. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1715. _ASUNAME
  1716. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1717. for as_dir in $PATH
  1718. do
  1719. IFS=$as_save_IFS
  1720. test -z "$as_dir" && as_dir=.
  1721. $as_echo "PATH: $as_dir"
  1722. done
  1723. IFS=$as_save_IFS
  1724. } >&5
  1725. cat >&5 <<_ACEOF
  1726. ## ----------- ##
  1727. ## Core tests. ##
  1728. ## ----------- ##
  1729. _ACEOF
  1730. # Keep a trace of the command line.
  1731. # Strip out --no-create and --no-recursion so they do not pile up.
  1732. # Strip out --silent because we don't want to record it for future runs.
  1733. # Also quote any args containing shell meta-characters.
  1734. # Make two passes to allow for proper duplicate-argument suppression.
  1735. ac_configure_args=
  1736. ac_configure_args0=
  1737. ac_configure_args1=
  1738. ac_must_keep_next=false
  1739. for ac_pass in 1 2
  1740. do
  1741. for ac_arg
  1742. do
  1743. case $ac_arg in
  1744. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1745. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1746. | -silent | --silent | --silen | --sile | --sil)
  1747. continue ;;
  1748. *\'*)
  1749. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1750. esac
  1751. case $ac_pass in
  1752. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1753. 2)
  1754. as_fn_append ac_configure_args1 " '$ac_arg'"
  1755. if test $ac_must_keep_next = true; then
  1756. ac_must_keep_next=false # Got value, back to normal.
  1757. else
  1758. case $ac_arg in
  1759. *=* | --config-cache | -C | -disable-* | --disable-* \
  1760. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1761. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1762. | -with-* | --with-* | -without-* | --without-* | --x)
  1763. case "$ac_configure_args0 " in
  1764. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1765. esac
  1766. ;;
  1767. -* ) ac_must_keep_next=true ;;
  1768. esac
  1769. fi
  1770. as_fn_append ac_configure_args " '$ac_arg'"
  1771. ;;
  1772. esac
  1773. done
  1774. done
  1775. { ac_configure_args0=; unset ac_configure_args0;}
  1776. { ac_configure_args1=; unset ac_configure_args1;}
  1777. # When interrupted or exit'd, cleanup temporary files, and complete
  1778. # config.log. We remove comments because anyway the quotes in there
  1779. # would cause problems or look ugly.
  1780. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1781. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1782. trap 'exit_status=$?
  1783. # Save into config.log some information that might help in debugging.
  1784. {
  1785. echo
  1786. $as_echo "## ---------------- ##
  1787. ## Cache variables. ##
  1788. ## ---------------- ##"
  1789. echo
  1790. # The following way of writing the cache mishandles newlines in values,
  1791. (
  1792. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1793. eval ac_val=\$$ac_var
  1794. case $ac_val in #(
  1795. *${as_nl}*)
  1796. case $ac_var in #(
  1797. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1798. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1799. esac
  1800. case $ac_var in #(
  1801. _ | IFS | as_nl) ;; #(
  1802. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1803. *) { eval $ac_var=; unset $ac_var;} ;;
  1804. esac ;;
  1805. esac
  1806. done
  1807. (set) 2>&1 |
  1808. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1809. *${as_nl}ac_space=\ *)
  1810. sed -n \
  1811. "s/'\''/'\''\\\\'\'''\''/g;
  1812. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1813. ;; #(
  1814. *)
  1815. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1816. ;;
  1817. esac |
  1818. sort
  1819. )
  1820. echo
  1821. $as_echo "## ----------------- ##
  1822. ## Output variables. ##
  1823. ## ----------------- ##"
  1824. echo
  1825. for ac_var in $ac_subst_vars
  1826. do
  1827. eval ac_val=\$$ac_var
  1828. case $ac_val in
  1829. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1830. esac
  1831. $as_echo "$ac_var='\''$ac_val'\''"
  1832. done | sort
  1833. echo
  1834. if test -n "$ac_subst_files"; then
  1835. $as_echo "## ------------------- ##
  1836. ## File substitutions. ##
  1837. ## ------------------- ##"
  1838. echo
  1839. for ac_var in $ac_subst_files
  1840. do
  1841. eval ac_val=\$$ac_var
  1842. case $ac_val in
  1843. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1844. esac
  1845. $as_echo "$ac_var='\''$ac_val'\''"
  1846. done | sort
  1847. echo
  1848. fi
  1849. if test -s confdefs.h; then
  1850. $as_echo "## ----------- ##
  1851. ## confdefs.h. ##
  1852. ## ----------- ##"
  1853. echo
  1854. cat confdefs.h
  1855. echo
  1856. fi
  1857. test "$ac_signal" != 0 &&
  1858. $as_echo "$as_me: caught signal $ac_signal"
  1859. $as_echo "$as_me: exit $exit_status"
  1860. } >&5
  1861. rm -f core *.core core.conftest.* &&
  1862. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1863. exit $exit_status
  1864. ' 0
  1865. for ac_signal in 1 2 13 15; do
  1866. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1867. done
  1868. ac_signal=0
  1869. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1870. rm -f -r conftest* confdefs.h
  1871. $as_echo "/* confdefs.h */" > confdefs.h
  1872. # Predefined preprocessor variables.
  1873. cat >>confdefs.h <<_ACEOF
  1874. #define PACKAGE_NAME "$PACKAGE_NAME"
  1875. _ACEOF
  1876. cat >>confdefs.h <<_ACEOF
  1877. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1878. _ACEOF
  1879. cat >>confdefs.h <<_ACEOF
  1880. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1881. _ACEOF
  1882. cat >>confdefs.h <<_ACEOF
  1883. #define PACKAGE_STRING "$PACKAGE_STRING"
  1884. _ACEOF
  1885. cat >>confdefs.h <<_ACEOF
  1886. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1887. _ACEOF
  1888. cat >>confdefs.h <<_ACEOF
  1889. #define PACKAGE_URL "$PACKAGE_URL"
  1890. _ACEOF
  1891. # Let the site file select an alternate cache file if it wants to.
  1892. # Prefer an explicitly selected file to automatically selected ones.
  1893. ac_site_file1=NONE
  1894. ac_site_file2=NONE
  1895. if test -n "$CONFIG_SITE"; then
  1896. # We do not want a PATH search for config.site.
  1897. case $CONFIG_SITE in #((
  1898. -*) ac_site_file1=./$CONFIG_SITE;;
  1899. */*) ac_site_file1=$CONFIG_SITE;;
  1900. *) ac_site_file1=./$CONFIG_SITE;;
  1901. esac
  1902. elif test "x$prefix" != xNONE; then
  1903. ac_site_file1=$prefix/share/config.site
  1904. ac_site_file2=$prefix/etc/config.site
  1905. else
  1906. ac_site_file1=$ac_default_prefix/share/config.site
  1907. ac_site_file2=$ac_default_prefix/etc/config.site
  1908. fi
  1909. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1910. do
  1911. test "x$ac_site_file" = xNONE && continue
  1912. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1913. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1914. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1915. sed 's/^/| /' "$ac_site_file" >&5
  1916. . "$ac_site_file" \
  1917. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1918. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1919. as_fn_error $? "failed to load site script $ac_site_file
  1920. See \`config.log' for more details" "$LINENO" 5; }
  1921. fi
  1922. done
  1923. if test -r "$cache_file"; then
  1924. # Some versions of bash will fail to source /dev/null (special files
  1925. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1926. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1927. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1928. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1929. case $cache_file in
  1930. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1931. *) . "./$cache_file";;
  1932. esac
  1933. fi
  1934. else
  1935. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1936. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1937. >$cache_file
  1938. fi
  1939. # Check that the precious variables saved in the cache have kept the same
  1940. # value.
  1941. ac_cache_corrupted=false
  1942. for ac_var in $ac_precious_vars; do
  1943. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1944. eval ac_new_set=\$ac_env_${ac_var}_set
  1945. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1946. eval ac_new_val=\$ac_env_${ac_var}_value
  1947. case $ac_old_set,$ac_new_set in
  1948. set,)
  1949. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1950. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1951. ac_cache_corrupted=: ;;
  1952. ,set)
  1953. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1954. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1955. ac_cache_corrupted=: ;;
  1956. ,);;
  1957. *)
  1958. if test "x$ac_old_val" != "x$ac_new_val"; then
  1959. # differences in whitespace do not lead to failure.
  1960. ac_old_val_w=`echo x $ac_old_val`
  1961. ac_new_val_w=`echo x $ac_new_val`
  1962. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1963. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1964. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1965. ac_cache_corrupted=:
  1966. else
  1967. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1968. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1969. eval $ac_var=\$ac_old_val
  1970. fi
  1971. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1972. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1973. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1974. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1975. fi;;
  1976. esac
  1977. # Pass precious variables to config.status.
  1978. if test "$ac_new_set" = set; then
  1979. case $ac_new_val in
  1980. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1981. *) ac_arg=$ac_var=$ac_new_val ;;
  1982. esac
  1983. case " $ac_configure_args " in
  1984. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1985. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1986. esac
  1987. fi
  1988. done
  1989. if $ac_cache_corrupted; then
  1990. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1991. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1992. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1993. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1994. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1995. fi
  1996. ## -------------------- ##
  1997. ## Main body of script. ##
  1998. ## -------------------- ##
  1999. ac_ext=c
  2000. ac_cpp='$CPP $CPPFLAGS'
  2001. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2002. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2003. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2004. DOCVERSION=1.5.4
  2005. # YYYYMMDD, please, if beta, i.e. "-beta20060413"
  2006. #DOCVERSION=development
  2007. # Increase GBBUILD for a new release (why? Where is this ever used?)
  2008. # A: it's used by win32/gpsbabel.rc.in which is used by the setup program,
  2009. GBBUILD=28
  2010. # PACKAGE_RELEASE="-beta20140216"
  2011. cat >>confdefs.h <<_ACEOF
  2012. #define PACKAGE_RELEASE "$PACKAGE_RELEASE"
  2013. _ACEOF
  2014. GBMAJOR=`echo $PACKAGE_VERSION | (IFS="."; read major minor micro; echo $major)`
  2015. GBMINOR=`echo $PACKAGE_VERSION | (IFS="."; read major minor micro; echo $minor)`
  2016. GBMICRO=`echo $PACKAGE_VERSION | (IFS="."; read major minor micro; echo $micro)`
  2017. # AC_CONFIG_SRCDIR([nmea.c])
  2018. ac_config_headers="$ac_config_headers config.h"
  2019. ac_aux_dir=
  2020. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2021. if test -f "$ac_dir/install-sh"; then
  2022. ac_aux_dir=$ac_dir
  2023. ac_install_sh="$ac_aux_dir/install-sh -c"
  2024. break
  2025. elif test -f "$ac_dir/install.sh"; then
  2026. ac_aux_dir=$ac_dir
  2027. ac_install_sh="$ac_aux_dir/install.sh -c"
  2028. break
  2029. elif test -f "$ac_dir/shtool"; then
  2030. ac_aux_dir=$ac_dir
  2031. ac_install_sh="$ac_aux_dir/shtool install -c"
  2032. break
  2033. fi
  2034. done
  2035. if test -z "$ac_aux_dir"; then
  2036. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2037. fi
  2038. # These three variables are undocumented and unsupported,
  2039. # and are intended to be withdrawn in a future Autoconf release.
  2040. # They can cause serious problems if a builder's source tree is in a directory
  2041. # whose full name contains unusual characters.
  2042. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2043. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2044. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2045. # Make sure we can run config.sub.
  2046. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2047. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2049. $as_echo_n "checking build system type... " >&6; }
  2050. if ${ac_cv_build+:} false; then :
  2051. $as_echo_n "(cached) " >&6
  2052. else
  2053. ac_build_alias=$build_alias
  2054. test "x$ac_build_alias" = x &&
  2055. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2056. test "x$ac_build_alias" = x &&
  2057. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2058. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2059. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2060. fi
  2061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2062. $as_echo "$ac_cv_build" >&6; }
  2063. case $ac_cv_build in
  2064. *-*-*) ;;
  2065. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2066. esac
  2067. build=$ac_cv_build
  2068. ac_save_IFS=$IFS; IFS='-'
  2069. set x $ac_cv_build
  2070. shift
  2071. build_cpu=$1
  2072. build_vendor=$2
  2073. shift; shift
  2074. # Remember, the first character of IFS is used to create $*,
  2075. # except with old shells:
  2076. build_os=$*
  2077. IFS=$ac_save_IFS
  2078. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2080. $as_echo_n "checking host system type... " >&6; }
  2081. if ${ac_cv_host+:} false; then :
  2082. $as_echo_n "(cached) " >&6
  2083. else
  2084. if test "x$host_alias" = x; then
  2085. ac_cv_host=$ac_cv_build
  2086. else
  2087. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2088. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2089. fi
  2090. fi
  2091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2092. $as_echo "$ac_cv_host" >&6; }
  2093. case $ac_cv_host in
  2094. *-*-*) ;;
  2095. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2096. esac
  2097. host=$ac_cv_host
  2098. ac_save_IFS=$IFS; IFS='-'
  2099. set x $ac_cv_host
  2100. shift
  2101. host_cpu=$1
  2102. host_vendor=$2
  2103. shift; shift
  2104. # Remember, the first character of IFS is used to create $*,
  2105. # except with old shells:
  2106. host_os=$*
  2107. IFS=$ac_save_IFS
  2108. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2110. $as_echo_n "checking target system type... " >&6; }
  2111. if ${ac_cv_target+:} false; then :
  2112. $as_echo_n "(cached) " >&6
  2113. else
  2114. if test "x$target_alias" = x; then
  2115. ac_cv_target=$ac_cv_host
  2116. else
  2117. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2118. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2119. fi
  2120. fi
  2121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2122. $as_echo "$ac_cv_target" >&6; }
  2123. case $ac_cv_target in
  2124. *-*-*) ;;
  2125. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2126. esac
  2127. target=$ac_cv_target
  2128. ac_save_IFS=$IFS; IFS='-'
  2129. set x $ac_cv_target
  2130. shift
  2131. target_cpu=$1
  2132. target_vendor=$2
  2133. shift; shift
  2134. # Remember, the first character of IFS is used to create $*,
  2135. # except with old shells:
  2136. target_os=$*
  2137. IFS=$ac_save_IFS
  2138. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2139. # The aliases save the names the user supplied, while $host etc.
  2140. # will get canonicalized.
  2141. test -n "$target_alias" &&
  2142. test "$program_prefix$program_suffix$program_transform_name" = \
  2143. NONENONEs,x,x, &&
  2144. program_prefix=${target_alias}-
  2145. # Checks for programs.
  2146. ac_ext=c
  2147. ac_cpp='$CPP $CPPFLAGS'
  2148. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2149. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2150. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2151. if test -n "$ac_tool_prefix"; then
  2152. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2153. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2155. $as_echo_n "checking for $ac_word... " >&6; }
  2156. if ${ac_cv_prog_CC+:} false; then :
  2157. $as_echo_n "(cached) " >&6
  2158. else
  2159. if test -n "$CC"; then
  2160. ac_cv_prog_CC="$CC" # Let the user override the test.
  2161. else
  2162. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2163. for as_dir in $PATH
  2164. do
  2165. IFS=$as_save_IFS
  2166. test -z "$as_dir" && as_dir=.
  2167. for ac_exec_ext in '' $ac_executable_extensions; do
  2168. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2169. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2170. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2171. break 2
  2172. fi
  2173. done
  2174. done
  2175. IFS=$as_save_IFS
  2176. fi
  2177. fi
  2178. CC=$ac_cv_prog_CC
  2179. if test -n "$CC"; then
  2180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2181. $as_echo "$CC" >&6; }
  2182. else
  2183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2184. $as_echo "no" >&6; }
  2185. fi
  2186. fi
  2187. if test -z "$ac_cv_prog_CC"; then
  2188. ac_ct_CC=$CC
  2189. # Extract the first word of "gcc", so it can be a program name with args.
  2190. set dummy gcc; ac_word=$2
  2191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2192. $as_echo_n "checking for $ac_word... " >&6; }
  2193. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2194. $as_echo_n "(cached) " >&6
  2195. else
  2196. if test -n "$ac_ct_CC"; then
  2197. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2198. else
  2199. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2200. for as_dir in $PATH
  2201. do
  2202. IFS=$as_save_IFS
  2203. test -z "$as_dir" && as_dir=.
  2204. for ac_exec_ext in '' $ac_executable_extensions; do
  2205. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2206. ac_cv_prog_ac_ct_CC="gcc"
  2207. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2208. break 2
  2209. fi
  2210. done
  2211. done
  2212. IFS=$as_save_IFS
  2213. fi
  2214. fi
  2215. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2216. if test -n "$ac_ct_CC"; then
  2217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2218. $as_echo "$ac_ct_CC" >&6; }
  2219. else
  2220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2221. $as_echo "no" >&6; }
  2222. fi
  2223. if test "x$ac_ct_CC" = x; then
  2224. CC=""
  2225. else
  2226. case $cross_compiling:$ac_tool_warned in
  2227. yes:)
  2228. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2229. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2230. ac_tool_warned=yes ;;
  2231. esac
  2232. CC=$ac_ct_CC
  2233. fi
  2234. else
  2235. CC="$ac_cv_prog_CC"
  2236. fi
  2237. if test -z "$CC"; then
  2238. if test -n "$ac_tool_prefix"; then
  2239. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2240. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2242. $as_echo_n "checking for $ac_word... " >&6; }
  2243. if ${ac_cv_prog_CC+:} false; then :
  2244. $as_echo_n "(cached) " >&6
  2245. else
  2246. if test -n "$CC"; then
  2247. ac_cv_prog_CC="$CC" # Let the user override the test.
  2248. else
  2249. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2250. for as_dir in $PATH
  2251. do
  2252. IFS=$as_save_IFS
  2253. test -z "$as_dir" && as_dir=.
  2254. for ac_exec_ext in '' $ac_executable_extensions; do
  2255. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2256. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2257. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2258. break 2
  2259. fi
  2260. done
  2261. done
  2262. IFS=$as_save_IFS
  2263. fi
  2264. fi
  2265. CC=$ac_cv_prog_CC
  2266. if test -n "$CC"; then
  2267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2268. $as_echo "$CC" >&6; }
  2269. else
  2270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2271. $as_echo "no" >&6; }
  2272. fi
  2273. fi
  2274. fi
  2275. if test -z "$CC"; then
  2276. # Extract the first word of "cc", so it can be a program name with args.
  2277. set dummy cc; ac_word=$2
  2278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2279. $as_echo_n "checking for $ac_word... " >&6; }
  2280. if ${ac_cv_prog_CC+:} false; then :
  2281. $as_echo_n "(cached) " >&6
  2282. else
  2283. if test -n "$CC"; then
  2284. ac_cv_prog_CC="$CC" # Let the user override the test.
  2285. else
  2286. ac_prog_rejected=no
  2287. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2288. for as_dir in $PATH
  2289. do
  2290. IFS=$as_save_IFS
  2291. test -z "$as_dir" && as_dir=.
  2292. for ac_exec_ext in '' $ac_executable_extensions; do
  2293. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2294. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2295. ac_prog_rejected=yes
  2296. continue
  2297. fi
  2298. ac_cv_prog_CC="cc"
  2299. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2300. break 2
  2301. fi
  2302. done
  2303. done
  2304. IFS=$as_save_IFS
  2305. if test $ac_prog_rejected = yes; then
  2306. # We found a bogon in the path, so make sure we never use it.
  2307. set dummy $ac_cv_prog_CC
  2308. shift
  2309. if test $# != 0; then
  2310. # We chose a different compiler from the bogus one.
  2311. # However, it has the same basename, so the bogon will be chosen
  2312. # first if we set CC to just the basename; use the full file name.
  2313. shift
  2314. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2315. fi
  2316. fi
  2317. fi
  2318. fi
  2319. CC=$ac_cv_prog_CC
  2320. if test -n "$CC"; then
  2321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2322. $as_echo "$CC" >&6; }
  2323. else
  2324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2325. $as_echo "no" >&6; }
  2326. fi
  2327. fi
  2328. if test -z "$CC"; then
  2329. if test -n "$ac_tool_prefix"; then
  2330. for ac_prog in cl.exe
  2331. do
  2332. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2333. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2335. $as_echo_n "checking for $ac_word... " >&6; }
  2336. if ${ac_cv_prog_CC+:} false; then :
  2337. $as_echo_n "(cached) " >&6
  2338. else
  2339. if test -n "$CC"; then
  2340. ac_cv_prog_CC="$CC" # Let the user override the test.
  2341. else
  2342. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2343. for as_dir in $PATH
  2344. do
  2345. IFS=$as_save_IFS
  2346. test -z "$as_dir" && as_dir=.
  2347. for ac_exec_ext in '' $ac_executable_extensions; do
  2348. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2349. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2350. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2351. break 2
  2352. fi
  2353. done
  2354. done
  2355. IFS=$as_save_IFS
  2356. fi
  2357. fi
  2358. CC=$ac_cv_prog_CC
  2359. if test -n "$CC"; then
  2360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2361. $as_echo "$CC" >&6; }
  2362. else
  2363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2364. $as_echo "no" >&6; }
  2365. fi
  2366. test -n "$CC" && break
  2367. done
  2368. fi
  2369. if test -z "$CC"; then
  2370. ac_ct_CC=$CC
  2371. for ac_prog in cl.exe
  2372. do
  2373. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2374. set dummy $ac_prog; ac_word=$2
  2375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2376. $as_echo_n "checking for $ac_word... " >&6; }
  2377. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2378. $as_echo_n "(cached) " >&6
  2379. else
  2380. if test -n "$ac_ct_CC"; then
  2381. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2382. else
  2383. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2384. for as_dir in $PATH
  2385. do
  2386. IFS=$as_save_IFS
  2387. test -z "$as_dir" && as_dir=.
  2388. for ac_exec_ext in '' $ac_executable_extensions; do
  2389. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2390. ac_cv_prog_ac_ct_CC="$ac_prog"
  2391. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2392. break 2
  2393. fi
  2394. done
  2395. done
  2396. IFS=$as_save_IFS
  2397. fi
  2398. fi
  2399. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2400. if test -n "$ac_ct_CC"; then
  2401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2402. $as_echo "$ac_ct_CC" >&6; }
  2403. else
  2404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2405. $as_echo "no" >&6; }
  2406. fi
  2407. test -n "$ac_ct_CC" && break
  2408. done
  2409. if test "x$ac_ct_CC" = x; then
  2410. CC=""
  2411. else
  2412. case $cross_compiling:$ac_tool_warned in
  2413. yes:)
  2414. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2415. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2416. ac_tool_warned=yes ;;
  2417. esac
  2418. CC=$ac_ct_CC
  2419. fi
  2420. fi
  2421. fi
  2422. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2423. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2424. as_fn_error $? "no acceptable C compiler found in \$PATH
  2425. See \`config.log' for more details" "$LINENO" 5; }
  2426. # Provide some information about the compiler.
  2427. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2428. set X $ac_compile
  2429. ac_compiler=$2
  2430. for ac_option in --version -v -V -qversion; do
  2431. { { ac_try="$ac_compiler $ac_option >&5"
  2432. case "(($ac_try" in
  2433. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2434. *) ac_try_echo=$ac_try;;
  2435. esac
  2436. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2437. $as_echo "$ac_try_echo"; } >&5
  2438. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2439. ac_status=$?
  2440. if test -s conftest.err; then
  2441. sed '10a\
  2442. ... rest of stderr output deleted ...
  2443. 10q' conftest.err >conftest.er1
  2444. cat conftest.er1 >&5
  2445. fi
  2446. rm -f conftest.er1 conftest.err
  2447. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2448. test $ac_status = 0; }
  2449. done
  2450. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2451. /* end confdefs.h. */
  2452. int
  2453. main ()
  2454. {
  2455. ;
  2456. return 0;
  2457. }
  2458. _ACEOF
  2459. ac_clean_files_save=$ac_clean_files
  2460. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2461. # Try to create an executable without -o first, disregard a.out.
  2462. # It will help us diagnose broken compilers, and finding out an intuition
  2463. # of exeext.
  2464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2465. $as_echo_n "checking whether the C compiler works... " >&6; }
  2466. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2467. # The possible output files:
  2468. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2469. ac_rmfiles=
  2470. for ac_file in $ac_files
  2471. do
  2472. case $ac_file in
  2473. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2474. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2475. esac
  2476. done
  2477. rm -f $ac_rmfiles
  2478. if { { ac_try="$ac_link_default"
  2479. case "(($ac_try" in
  2480. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2481. *) ac_try_echo=$ac_try;;
  2482. esac
  2483. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2484. $as_echo "$ac_try_echo"; } >&5
  2485. (eval "$ac_link_default") 2>&5
  2486. ac_status=$?
  2487. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2488. test $ac_status = 0; }; then :
  2489. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2490. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2491. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2492. # so that the user can short-circuit this test for compilers unknown to
  2493. # Autoconf.
  2494. for ac_file in $ac_files ''
  2495. do
  2496. test -f "$ac_file" || continue
  2497. case $ac_file in
  2498. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2499. ;;
  2500. [ab].out )
  2501. # We found the default executable, but exeext='' is most
  2502. # certainly right.
  2503. break;;
  2504. *.* )
  2505. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2506. then :; else
  2507. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2508. fi
  2509. # We set ac_cv_exeext here because the later test for it is not
  2510. # safe: cross compilers may not add the suffix if given an `-o'
  2511. # argument, so we may need to know it at that point already.
  2512. # Even if this section looks crufty: it has the advantage of
  2513. # actually working.
  2514. break;;
  2515. * )
  2516. break;;
  2517. esac
  2518. done
  2519. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2520. else
  2521. ac_file=''
  2522. fi
  2523. if test -z "$ac_file"; then :
  2524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2525. $as_echo "no" >&6; }
  2526. $as_echo "$as_me: failed program was:" >&5
  2527. sed 's/^/| /' conftest.$ac_ext >&5
  2528. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2529. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2530. as_fn_error 77 "C compiler cannot create executables
  2531. See \`config.log' for more details" "$LINENO" 5; }
  2532. else
  2533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2534. $as_echo "yes" >&6; }
  2535. fi
  2536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2537. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2539. $as_echo "$ac_file" >&6; }
  2540. ac_exeext=$ac_cv_exeext
  2541. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2542. ac_clean_files=$ac_clean_files_save
  2543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2544. $as_echo_n "checking for suffix of executables... " >&6; }
  2545. if { { ac_try="$ac_link"
  2546. case "(($ac_try" in
  2547. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2548. *) ac_try_echo=$ac_try;;
  2549. esac
  2550. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2551. $as_echo "$ac_try_echo"; } >&5
  2552. (eval "$ac_link") 2>&5
  2553. ac_status=$?
  2554. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2555. test $ac_status = 0; }; then :
  2556. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2557. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2558. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2559. # `rm'.
  2560. for ac_file in conftest.exe conftest conftest.*; do
  2561. test -f "$ac_file" || continue
  2562. case $ac_file in
  2563. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2564. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2565. break;;
  2566. * ) break;;
  2567. esac
  2568. done
  2569. else
  2570. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2571. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2572. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2573. See \`config.log' for more details" "$LINENO" 5; }
  2574. fi
  2575. rm -f conftest conftest$ac_cv_exeext
  2576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2577. $as_echo "$ac_cv_exeext" >&6; }
  2578. rm -f conftest.$ac_ext
  2579. EXEEXT=$ac_cv_exeext
  2580. ac_exeext=$EXEEXT
  2581. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2582. /* end confdefs.h. */
  2583. #include <stdio.h>
  2584. int
  2585. main ()
  2586. {
  2587. FILE *f = fopen ("conftest.out", "w");
  2588. return ferror (f) || fclose (f) != 0;
  2589. ;
  2590. return 0;
  2591. }
  2592. _ACEOF
  2593. ac_clean_files="$ac_clean_files conftest.out"
  2594. # Check that the compiler produces executables we can run. If not, either
  2595. # the compiler is broken, or we cross compile.
  2596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2597. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2598. if test "$cross_compiling" != yes; then
  2599. { { ac_try="$ac_link"
  2600. case "(($ac_try" in
  2601. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2602. *) ac_try_echo=$ac_try;;
  2603. esac
  2604. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2605. $as_echo "$ac_try_echo"; } >&5
  2606. (eval "$ac_link") 2>&5
  2607. ac_status=$?
  2608. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2609. test $ac_status = 0; }
  2610. if { ac_try='./conftest$ac_cv_exeext'
  2611. { { case "(($ac_try" in
  2612. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2613. *) ac_try_echo=$ac_try;;
  2614. esac
  2615. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2616. $as_echo "$ac_try_echo"; } >&5
  2617. (eval "$ac_try") 2>&5
  2618. ac_status=$?
  2619. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2620. test $ac_status = 0; }; }; then
  2621. cross_compiling=no
  2622. else
  2623. if test "$cross_compiling" = maybe; then
  2624. cross_compiling=yes
  2625. else
  2626. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2627. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2628. as_fn_error $? "cannot run C compiled programs.
  2629. If you meant to cross compile, use \`--host'.
  2630. See \`config.log' for more details" "$LINENO" 5; }
  2631. fi
  2632. fi
  2633. fi
  2634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2635. $as_echo "$cross_compiling" >&6; }
  2636. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2637. ac_clean_files=$ac_clean_files_save
  2638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2639. $as_echo_n "checking for suffix of object files... " >&6; }
  2640. if ${ac_cv_objext+:} false; then :
  2641. $as_echo_n "(cached) " >&6
  2642. else
  2643. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2644. /* end confdefs.h. */
  2645. int
  2646. main ()
  2647. {
  2648. ;
  2649. return 0;
  2650. }
  2651. _ACEOF
  2652. rm -f conftest.o conftest.obj
  2653. if { { ac_try="$ac_compile"
  2654. case "(($ac_try" in
  2655. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2656. *) ac_try_echo=$ac_try;;
  2657. esac
  2658. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2659. $as_echo "$ac_try_echo"; } >&5
  2660. (eval "$ac_compile") 2>&5
  2661. ac_status=$?
  2662. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2663. test $ac_status = 0; }; then :
  2664. for ac_file in conftest.o conftest.obj conftest.*; do
  2665. test -f "$ac_file" || continue;
  2666. case $ac_file in
  2667. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2668. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2669. break;;
  2670. esac
  2671. done
  2672. else
  2673. $as_echo "$as_me: failed program was:" >&5
  2674. sed 's/^/| /' conftest.$ac_ext >&5
  2675. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2676. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2677. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2678. See \`config.log' for more details" "$LINENO" 5; }
  2679. fi
  2680. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2681. fi
  2682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2683. $as_echo "$ac_cv_objext" >&6; }
  2684. OBJEXT=$ac_cv_objext
  2685. ac_objext=$OBJEXT
  2686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2687. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2688. if ${ac_cv_c_compiler_gnu+:} false; then :
  2689. $as_echo_n "(cached) " >&6
  2690. else
  2691. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2692. /* end confdefs.h. */
  2693. int
  2694. main ()
  2695. {
  2696. #ifndef __GNUC__
  2697. choke me
  2698. #endif
  2699. ;
  2700. return 0;
  2701. }
  2702. _ACEOF
  2703. if ac_fn_c_try_compile "$LINENO"; then :
  2704. ac_compiler_gnu=yes
  2705. else
  2706. ac_compiler_gnu=no
  2707. fi
  2708. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2709. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2710. fi
  2711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2712. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2713. if test $ac_compiler_gnu = yes; then
  2714. GCC=yes
  2715. else
  2716. GCC=
  2717. fi
  2718. ac_test_CFLAGS=${CFLAGS+set}
  2719. ac_save_CFLAGS=$CFLAGS
  2720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2721. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2722. if ${ac_cv_prog_cc_g+:} false; then :
  2723. $as_echo_n "(cached) " >&6
  2724. else
  2725. ac_save_c_werror_flag=$ac_c_werror_flag
  2726. ac_c_werror_flag=yes
  2727. ac_cv_prog_cc_g=no
  2728. CFLAGS="-g"
  2729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2730. /* end confdefs.h. */
  2731. int
  2732. main ()
  2733. {
  2734. ;
  2735. return 0;
  2736. }
  2737. _ACEOF
  2738. if ac_fn_c_try_compile "$LINENO"; then :
  2739. ac_cv_prog_cc_g=yes
  2740. else
  2741. CFLAGS=""
  2742. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2743. /* end confdefs.h. */
  2744. int
  2745. main ()
  2746. {
  2747. ;
  2748. return 0;
  2749. }
  2750. _ACEOF
  2751. if ac_fn_c_try_compile "$LINENO"; then :
  2752. else
  2753. ac_c_werror_flag=$ac_save_c_werror_flag
  2754. CFLAGS="-g"
  2755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2756. /* end confdefs.h. */
  2757. int
  2758. main ()
  2759. {
  2760. ;
  2761. return 0;
  2762. }
  2763. _ACEOF
  2764. if ac_fn_c_try_compile "$LINENO"; then :
  2765. ac_cv_prog_cc_g=yes
  2766. fi
  2767. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2768. fi
  2769. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2770. fi
  2771. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2772. ac_c_werror_flag=$ac_save_c_werror_flag
  2773. fi
  2774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2775. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2776. if test "$ac_test_CFLAGS" = set; then
  2777. CFLAGS=$ac_save_CFLAGS
  2778. elif test $ac_cv_prog_cc_g = yes; then
  2779. if test "$GCC" = yes; then
  2780. CFLAGS="-g -O2"
  2781. else
  2782. CFLAGS="-g"
  2783. fi
  2784. else
  2785. if test "$GCC" = yes; then
  2786. CFLAGS="-O2"
  2787. else
  2788. CFLAGS=
  2789. fi
  2790. fi
  2791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2792. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2793. if ${ac_cv_prog_cc_c89+:} false; then :
  2794. $as_echo_n "(cached) " >&6
  2795. else
  2796. ac_cv_prog_cc_c89=no
  2797. ac_save_CC=$CC
  2798. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2799. /* end confdefs.h. */
  2800. #include <stdarg.h>
  2801. #include <stdio.h>
  2802. struct stat;
  2803. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2804. struct buf { int x; };
  2805. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2806. static char *e (p, i)
  2807. char **p;
  2808. int i;
  2809. {
  2810. return p[i];
  2811. }
  2812. static char *f (char * (*g) (char **, int), char **p, ...)
  2813. {
  2814. char *s;
  2815. va_list v;
  2816. va_start (v,p);
  2817. s = g (p, va_arg (v,int));
  2818. va_end (v);
  2819. return s;
  2820. }
  2821. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2822. function prototypes and stuff, but not '\xHH' hex character constants.
  2823. These don't provoke an error unfortunately, instead are silently treated
  2824. as 'x'. The following induces an error, until -std is added to get
  2825. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2826. array size at least. It's necessary to write '\x00'==0 to get something
  2827. that's true only with -std. */
  2828. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2829. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2830. inside strings and character constants. */
  2831. #define FOO(x) 'x'
  2832. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2833. int test (int i, double x);
  2834. struct s1 {int (*f) (int a);};
  2835. struct s2 {int (*f) (double a);};
  2836. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2837. int argc;
  2838. char **argv;
  2839. int
  2840. main ()
  2841. {
  2842. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2843. ;
  2844. return 0;
  2845. }
  2846. _ACEOF
  2847. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2848. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2849. do
  2850. CC="$ac_save_CC $ac_arg"
  2851. if ac_fn_c_try_compile "$LINENO"; then :
  2852. ac_cv_prog_cc_c89=$ac_arg
  2853. fi
  2854. rm -f core conftest.err conftest.$ac_objext
  2855. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2856. done
  2857. rm -f conftest.$ac_ext
  2858. CC=$ac_save_CC
  2859. fi
  2860. # AC_CACHE_VAL
  2861. case "x$ac_cv_prog_cc_c89" in
  2862. x)
  2863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  2864. $as_echo "none needed" >&6; } ;;
  2865. xno)
  2866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  2867. $as_echo "unsupported" >&6; } ;;
  2868. *)
  2869. CC="$CC $ac_cv_prog_cc_c89"
  2870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  2871. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  2872. esac
  2873. if test "x$ac_cv_prog_cc_c89" != xno; then :
  2874. fi
  2875. ac_ext=c
  2876. ac_cpp='$CPP $CPPFLAGS'
  2877. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2878. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2879. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2880. ac_ext=cpp
  2881. ac_cpp='$CXXCPP $CPPFLAGS'
  2882. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2883. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2884. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2885. if test -z "$CXX"; then
  2886. if test -n "$CCC"; then
  2887. CXX=$CCC
  2888. else
  2889. if test -n "$ac_tool_prefix"; then
  2890. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2891. do
  2892. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2893. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2895. $as_echo_n "checking for $ac_word... " >&6; }
  2896. if ${ac_cv_prog_CXX+:} false; then :
  2897. $as_echo_n "(cached) " >&6
  2898. else
  2899. if test -n "$CXX"; then
  2900. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2901. else
  2902. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2903. for as_dir in $PATH
  2904. do
  2905. IFS=$as_save_IFS
  2906. test -z "$as_dir" && as_dir=.
  2907. for ac_exec_ext in '' $ac_executable_extensions; do
  2908. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2909. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2910. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2911. break 2
  2912. fi
  2913. done
  2914. done
  2915. IFS=$as_save_IFS
  2916. fi
  2917. fi
  2918. CXX=$ac_cv_prog_CXX
  2919. if test -n "$CXX"; then
  2920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  2921. $as_echo "$CXX" >&6; }
  2922. else
  2923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2924. $as_echo "no" >&6; }
  2925. fi
  2926. test -n "$CXX" && break
  2927. done
  2928. fi
  2929. if test -z "$CXX"; then
  2930. ac_ct_CXX=$CXX
  2931. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2932. do
  2933. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2934. set dummy $ac_prog; ac_word=$2
  2935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2936. $as_echo_n "checking for $ac_word... " >&6; }
  2937. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  2938. $as_echo_n "(cached) " >&6
  2939. else
  2940. if test -n "$ac_ct_CXX"; then
  2941. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2942. else
  2943. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2944. for as_dir in $PATH
  2945. do
  2946. IFS=$as_save_IFS
  2947. test -z "$as_dir" && as_dir=.
  2948. for ac_exec_ext in '' $ac_executable_extensions; do
  2949. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2950. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2951. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2952. break 2
  2953. fi
  2954. done
  2955. done
  2956. IFS=$as_save_IFS
  2957. fi
  2958. fi
  2959. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2960. if test -n "$ac_ct_CXX"; then
  2961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  2962. $as_echo "$ac_ct_CXX" >&6; }
  2963. else
  2964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2965. $as_echo "no" >&6; }
  2966. fi
  2967. test -n "$ac_ct_CXX" && break
  2968. done
  2969. if test "x$ac_ct_CXX" = x; then
  2970. CXX="g++"
  2971. else
  2972. case $cross_compiling:$ac_tool_warned in
  2973. yes:)
  2974. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2975. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2976. ac_tool_warned=yes ;;
  2977. esac
  2978. CXX=$ac_ct_CXX
  2979. fi
  2980. fi
  2981. fi
  2982. fi
  2983. # Provide some information about the compiler.
  2984. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  2985. set X $ac_compile
  2986. ac_compiler=$2
  2987. for ac_option in --version -v -V -qversion; do
  2988. { { ac_try="$ac_compiler $ac_option >&5"
  2989. case "(($ac_try" in
  2990. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2991. *) ac_try_echo=$ac_try;;
  2992. esac
  2993. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2994. $as_echo "$ac_try_echo"; } >&5
  2995. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2996. ac_status=$?
  2997. if test -s conftest.err; then
  2998. sed '10a\
  2999. ... rest of stderr output deleted ...
  3000. 10q' conftest.err >conftest.er1
  3001. cat conftest.er1 >&5
  3002. fi
  3003. rm -f conftest.er1 conftest.err
  3004. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3005. test $ac_status = 0; }
  3006. done
  3007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3008. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3009. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  3010. $as_echo_n "(cached) " >&6
  3011. else
  3012. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3013. /* end confdefs.h. */
  3014. int
  3015. main ()
  3016. {
  3017. #ifndef __GNUC__
  3018. choke me
  3019. #endif
  3020. ;
  3021. return 0;
  3022. }
  3023. _ACEOF
  3024. if ac_fn_cxx_try_compile "$LINENO"; then :
  3025. ac_compiler_gnu=yes
  3026. else
  3027. ac_compiler_gnu=no
  3028. fi
  3029. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3030. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3031. fi
  3032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3033. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3034. if test $ac_compiler_gnu = yes; then
  3035. GXX=yes
  3036. else
  3037. GXX=
  3038. fi
  3039. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3040. ac_save_CXXFLAGS=$CXXFLAGS
  3041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3042. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3043. if ${ac_cv_prog_cxx_g+:} false; then :
  3044. $as_echo_n "(cached) " >&6
  3045. else
  3046. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3047. ac_cxx_werror_flag=yes
  3048. ac_cv_prog_cxx_g=no
  3049. CXXFLAGS="-g"
  3050. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3051. /* end confdefs.h. */
  3052. int
  3053. main ()
  3054. {
  3055. ;
  3056. return 0;
  3057. }
  3058. _ACEOF
  3059. if ac_fn_cxx_try_compile "$LINENO"; then :
  3060. ac_cv_prog_cxx_g=yes
  3061. else
  3062. CXXFLAGS=""
  3063. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3064. /* end confdefs.h. */
  3065. int
  3066. main ()
  3067. {
  3068. ;
  3069. return 0;
  3070. }
  3071. _ACEOF
  3072. if ac_fn_cxx_try_compile "$LINENO"; then :
  3073. else
  3074. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3075. CXXFLAGS="-g"
  3076. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3077. /* end confdefs.h. */
  3078. int
  3079. main ()
  3080. {
  3081. ;
  3082. return 0;
  3083. }
  3084. _ACEOF
  3085. if ac_fn_cxx_try_compile "$LINENO"; then :
  3086. ac_cv_prog_cxx_g=yes
  3087. fi
  3088. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3089. fi
  3090. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3091. fi
  3092. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3093. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3094. fi
  3095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3096. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3097. if test "$ac_test_CXXFLAGS" = set; then
  3098. CXXFLAGS=$ac_save_CXXFLAGS
  3099. elif test $ac_cv_prog_cxx_g = yes; then
  3100. if test "$GXX" = yes; then
  3101. CXXFLAGS="-g -O2"
  3102. else
  3103. CXXFLAGS="-g"
  3104. fi
  3105. else
  3106. if test "$GXX" = yes; then
  3107. CXXFLAGS="-O2"
  3108. else
  3109. CXXFLAGS=
  3110. fi
  3111. fi
  3112. ac_ext=c
  3113. ac_cpp='$CPP $CPPFLAGS'
  3114. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3115. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3116. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3117. # ============================================================================
  3118. # http://www.gnu.org/software/autoconf-archive/ax_cxx_compile_stdcxx_11.html
  3119. # ============================================================================
  3120. #
  3121. # SYNOPSIS
  3122. #
  3123. # AX_CXX_COMPILE_STDCXX_11([ext|noext],[mandatory|optional])
  3124. #
  3125. # DESCRIPTION
  3126. #
  3127. # Check for baseline language coverage in the compiler for the C++11
  3128. # standard; if necessary, add switches to CXXFLAGS to enable support.
  3129. #
  3130. # The first argument, if specified, indicates whether you insist on an
  3131. # extended mode (e.g. -std=gnu++11) or a strict conformance mode (e.g.
  3132. # -std=c++11). If neither is specified, you get whatever works, with
  3133. # preference for an extended mode.
  3134. #
  3135. # The second argument, if specified 'mandatory' or if left unspecified,
  3136. # indicates that baseline C++11 support is required and that the macro
  3137. # should error out if no mode with that support is found. If specified
  3138. # 'optional', then configuration proceeds regardless, after defining
  3139. # HAVE_CXX11 if and only if a supporting mode is found.
  3140. #
  3141. # LICENSE
  3142. #
  3143. # Copyright (c) 2008 Benjamin Kosnik <bkoz@redhat.com>
  3144. # Copyright (c) 2012 Zack Weinberg <zackw@panix.com>
  3145. # Copyright (c) 2013 Roy Stogner <roystgnr@ices.utexas.edu>
  3146. # Copyright (c) 2014, 2015 Google Inc.; contributed by Alexey Sokolov <sokolov@google.com>
  3147. # Copyright (c) 2015 Paul Norman <penorman@mac.com>
  3148. #
  3149. # Copying and distribution of this file, with or without modification, are
  3150. # permitted in any medium without royalty provided the copyright notice
  3151. # and this notice are preserved. This file is offered as-is, without any
  3152. # warranty.
  3153. #serial 13
  3154. ax_cxx_compile_cxx11_required=true
  3155. ac_ext=cpp
  3156. ac_cpp='$CXXCPP $CPPFLAGS'
  3157. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3158. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3159. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3160. ac_success=no
  3161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
  3162. $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
  3163. if ${ax_cv_cxx_compile_cxx11+:} false; then :
  3164. $as_echo_n "(cached) " >&6
  3165. else
  3166. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3167. /* end confdefs.h. */
  3168. template <typename T>
  3169. struct check
  3170. {
  3171. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  3172. };
  3173. struct Base {
  3174. virtual void f() {}
  3175. };
  3176. struct Child : public Base {
  3177. virtual void f() override {}
  3178. };
  3179. typedef check<check<bool>> right_angle_brackets;
  3180. int a;
  3181. decltype(a) b;
  3182. typedef check<int> check_type;
  3183. check_type c;
  3184. check_type&& cr = static_cast<check_type&&>(c);
  3185. auto d = a;
  3186. auto l = [](){};
  3187. // Prevent Clang error: unused variable 'l' [-Werror,-Wunused-variable]
  3188. struct use_l { use_l() { l(); } };
  3189. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  3190. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this
  3191. namespace test_template_alias_sfinae {
  3192. struct foo {};
  3193. template<typename T>
  3194. using member = typename T::member_type;
  3195. template<typename T>
  3196. void func(...) {}
  3197. template<typename T>
  3198. void func(member<T>*) {}
  3199. void test();
  3200. void test() {
  3201. func<foo>(0);
  3202. }
  3203. }
  3204. // Check for C++11 attribute support
  3205. void noret [[noreturn]] () { throw 0; }
  3206. _ACEOF
  3207. if ac_fn_cxx_try_compile "$LINENO"; then :
  3208. ax_cv_cxx_compile_cxx11=yes
  3209. else
  3210. ax_cv_cxx_compile_cxx11=no
  3211. fi
  3212. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3213. fi
  3214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
  3215. $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
  3216. if test x$ax_cv_cxx_compile_cxx11 = xyes; then
  3217. ac_success=yes
  3218. fi
  3219. if test x$ac_success = xno; then
  3220. for switch in -std=gnu++11 -std=gnu++0x; do
  3221. cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
  3222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
  3223. $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
  3224. if eval \${$cachevar+:} false; then :
  3225. $as_echo_n "(cached) " >&6
  3226. else
  3227. ac_save_CXXFLAGS="$CXXFLAGS"
  3228. CXXFLAGS="$CXXFLAGS $switch"
  3229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3230. /* end confdefs.h. */
  3231. template <typename T>
  3232. struct check
  3233. {
  3234. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  3235. };
  3236. struct Base {
  3237. virtual void f() {}
  3238. };
  3239. struct Child : public Base {
  3240. virtual void f() override {}
  3241. };
  3242. typedef check<check<bool>> right_angle_brackets;
  3243. int a;
  3244. decltype(a) b;
  3245. typedef check<int> check_type;
  3246. check_type c;
  3247. check_type&& cr = static_cast<check_type&&>(c);
  3248. auto d = a;
  3249. auto l = [](){};
  3250. // Prevent Clang error: unused variable 'l' [-Werror,-Wunused-variable]
  3251. struct use_l { use_l() { l(); } };
  3252. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  3253. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this
  3254. namespace test_template_alias_sfinae {
  3255. struct foo {};
  3256. template<typename T>
  3257. using member = typename T::member_type;
  3258. template<typename T>
  3259. void func(...) {}
  3260. template<typename T>
  3261. void func(member<T>*) {}
  3262. void test();
  3263. void test() {
  3264. func<foo>(0);
  3265. }
  3266. }
  3267. // Check for C++11 attribute support
  3268. void noret [[noreturn]] () { throw 0; }
  3269. _ACEOF
  3270. if ac_fn_cxx_try_compile "$LINENO"; then :
  3271. eval $cachevar=yes
  3272. else
  3273. eval $cachevar=no
  3274. fi
  3275. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3276. CXXFLAGS="$ac_save_CXXFLAGS"
  3277. fi
  3278. eval ac_res=\$$cachevar
  3279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  3280. $as_echo "$ac_res" >&6; }
  3281. if eval test x\$$cachevar = xyes; then
  3282. CXXFLAGS="$CXXFLAGS $switch"
  3283. ac_success=yes
  3284. break
  3285. fi
  3286. done
  3287. fi
  3288. if test x$ac_success = xno; then
  3289. for switch in -std=c++11 -std=c++0x +std=c++11 "-h std=c++11"; do
  3290. cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
  3291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
  3292. $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
  3293. if eval \${$cachevar+:} false; then :
  3294. $as_echo_n "(cached) " >&6
  3295. else
  3296. ac_save_CXXFLAGS="$CXXFLAGS"
  3297. CXXFLAGS="$CXXFLAGS $switch"
  3298. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3299. /* end confdefs.h. */
  3300. template <typename T>
  3301. struct check
  3302. {
  3303. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  3304. };
  3305. struct Base {
  3306. virtual void f() {}
  3307. };
  3308. struct Child : public Base {
  3309. virtual void f() override {}
  3310. };
  3311. typedef check<check<bool>> right_angle_brackets;
  3312. int a;
  3313. decltype(a) b;
  3314. typedef check<int> check_type;
  3315. check_type c;
  3316. check_type&& cr = static_cast<check_type&&>(c);
  3317. auto d = a;
  3318. auto l = [](){};
  3319. // Prevent Clang error: unused variable 'l' [-Werror,-Wunused-variable]
  3320. struct use_l { use_l() { l(); } };
  3321. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  3322. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this
  3323. namespace test_template_alias_sfinae {
  3324. struct foo {};
  3325. template<typename T>
  3326. using member = typename T::member_type;
  3327. template<typename T>
  3328. void func(...) {}
  3329. template<typename T>
  3330. void func(member<T>*) {}
  3331. void test();
  3332. void test() {
  3333. func<foo>(0);
  3334. }
  3335. }
  3336. // Check for C++11 attribute support
  3337. void noret [[noreturn]] () { throw 0; }
  3338. _ACEOF
  3339. if ac_fn_cxx_try_compile "$LINENO"; then :
  3340. eval $cachevar=yes
  3341. else
  3342. eval $cachevar=no
  3343. fi
  3344. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3345. CXXFLAGS="$ac_save_CXXFLAGS"
  3346. fi
  3347. eval ac_res=\$$cachevar
  3348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  3349. $as_echo "$ac_res" >&6; }
  3350. if eval test x\$$cachevar = xyes; then
  3351. CXXFLAGS="$CXXFLAGS $switch"
  3352. ac_success=yes
  3353. break
  3354. fi
  3355. done
  3356. fi
  3357. ac_ext=c
  3358. ac_cpp='$CPP $CPPFLAGS'
  3359. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3360. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3361. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3362. if test x$ax_cxx_compile_cxx11_required = xtrue; then
  3363. if test x$ac_success = xno; then
  3364. as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
  3365. fi
  3366. else
  3367. if test x$ac_success = xno; then
  3368. HAVE_CXX11=0
  3369. { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
  3370. $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
  3371. else
  3372. HAVE_CXX11=1
  3373. $as_echo "#define HAVE_CXX11 1" >>confdefs.h
  3374. fi
  3375. fi
  3376. ac_ext=cpp
  3377. ac_cpp='$CXXCPP $CPPFLAGS'
  3378. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3379. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3380. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3381. # Find a good install program. We prefer a C program (faster),
  3382. # so one script is as good as another. But avoid the broken or
  3383. # incompatible versions:
  3384. # SysV /etc/install, /usr/sbin/install
  3385. # SunOS /usr/etc/install
  3386. # IRIX /sbin/install
  3387. # AIX /bin/install
  3388. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3389. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3390. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3391. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3392. # OS/2's system install, which has a completely different semantic
  3393. # ./install, which can be erroneously created by make from ./install.sh.
  3394. # Reject install programs that cannot install multiple files.
  3395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3396. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  3397. if test -z "$INSTALL"; then
  3398. if ${ac_cv_path_install+:} false; then :
  3399. $as_echo_n "(cached) " >&6
  3400. else
  3401. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3402. for as_dir in $PATH
  3403. do
  3404. IFS=$as_save_IFS
  3405. test -z "$as_dir" && as_dir=.
  3406. # Account for people who put trailing slashes in PATH elements.
  3407. case $as_dir/ in #((
  3408. ./ | .// | /[cC]/* | \
  3409. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3410. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3411. /usr/ucb/* ) ;;
  3412. *)
  3413. # OSF1 and SCO ODT 3.0 have their own names for install.
  3414. # Don't use installbsd from OSF since it installs stuff as root
  3415. # by default.
  3416. for ac_prog in ginstall scoinst install; do
  3417. for ac_exec_ext in '' $ac_executable_extensions; do
  3418. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3419. if test $ac_prog = install &&
  3420. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3421. # AIX install. It has an incompatible calling convention.
  3422. :
  3423. elif test $ac_prog = install &&
  3424. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3425. # program-specific install script used by HP pwplus--don't use.
  3426. :
  3427. else
  3428. rm -rf conftest.one conftest.two conftest.dir
  3429. echo one > conftest.one
  3430. echo two > conftest.two
  3431. mkdir conftest.dir
  3432. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3433. test -s conftest.one && test -s conftest.two &&
  3434. test -s conftest.dir/conftest.one &&
  3435. test -s conftest.dir/conftest.two
  3436. then
  3437. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3438. break 3
  3439. fi
  3440. fi
  3441. fi
  3442. done
  3443. done
  3444. ;;
  3445. esac
  3446. done
  3447. IFS=$as_save_IFS
  3448. rm -rf conftest.one conftest.two conftest.dir
  3449. fi
  3450. if test "${ac_cv_path_install+set}" = set; then
  3451. INSTALL=$ac_cv_path_install
  3452. else
  3453. # As a last resort, use the slow shell script. Don't cache a
  3454. # value for INSTALL within a source directory, because that will
  3455. # break other packages using the cache if that directory is
  3456. # removed, or if the value is a relative name.
  3457. INSTALL=$ac_install_sh
  3458. fi
  3459. fi
  3460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3461. $as_echo "$INSTALL" >&6; }
  3462. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3463. # It thinks the first close brace ends the variable substitution.
  3464. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3465. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3466. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3468. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3469. set x ${MAKE-make}
  3470. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3471. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3472. $as_echo_n "(cached) " >&6
  3473. else
  3474. cat >conftest.make <<\_ACEOF
  3475. SHELL = /bin/sh
  3476. all:
  3477. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3478. _ACEOF
  3479. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3480. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3481. *@@@%%%=?*=@@@%%%*)
  3482. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3483. *)
  3484. eval ac_cv_prog_make_${ac_make}_set=no;;
  3485. esac
  3486. rm -f conftest.make
  3487. fi
  3488. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3490. $as_echo "yes" >&6; }
  3491. SET_MAKE=
  3492. else
  3493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3494. $as_echo "no" >&6; }
  3495. SET_MAKE="MAKE=${MAKE-make}"
  3496. fi
  3497. ac_ext=cpp
  3498. ac_cpp='$CXXCPP $CPPFLAGS'
  3499. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3500. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3501. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  3503. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  3504. if test -z "$CXXCPP"; then
  3505. if ${ac_cv_prog_CXXCPP+:} false; then :
  3506. $as_echo_n "(cached) " >&6
  3507. else
  3508. # Double quotes because CXXCPP needs to be expanded
  3509. for CXXCPP in "$CXX -E" "/lib/cpp"
  3510. do
  3511. ac_preproc_ok=false
  3512. for ac_cxx_preproc_warn_flag in '' yes
  3513. do
  3514. # Use a header file that comes with gcc, so configuring glibc
  3515. # with a fresh cross-compiler works.
  3516. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3517. # <limits.h> exists even on freestanding compilers.
  3518. # On the NeXT, cc -E runs the code through the compiler's parser,
  3519. # not just through cpp. "Syntax error" is here to catch this case.
  3520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3521. /* end confdefs.h. */
  3522. #ifdef __STDC__
  3523. # include <limits.h>
  3524. #else
  3525. # include <assert.h>
  3526. #endif
  3527. Syntax error
  3528. _ACEOF
  3529. if ac_fn_cxx_try_cpp "$LINENO"; then :
  3530. else
  3531. # Broken: fails on valid input.
  3532. continue
  3533. fi
  3534. rm -f conftest.err conftest.i conftest.$ac_ext
  3535. # OK, works on sane cases. Now check whether nonexistent headers
  3536. # can be detected and how.
  3537. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3538. /* end confdefs.h. */
  3539. #include <ac_nonexistent.h>
  3540. _ACEOF
  3541. if ac_fn_cxx_try_cpp "$LINENO"; then :
  3542. # Broken: success on invalid input.
  3543. continue
  3544. else
  3545. # Passes both tests.
  3546. ac_preproc_ok=:
  3547. break
  3548. fi
  3549. rm -f conftest.err conftest.i conftest.$ac_ext
  3550. done
  3551. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3552. rm -f conftest.i conftest.err conftest.$ac_ext
  3553. if $ac_preproc_ok; then :
  3554. break
  3555. fi
  3556. done
  3557. ac_cv_prog_CXXCPP=$CXXCPP
  3558. fi
  3559. CXXCPP=$ac_cv_prog_CXXCPP
  3560. else
  3561. ac_cv_prog_CXXCPP=$CXXCPP
  3562. fi
  3563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  3564. $as_echo "$CXXCPP" >&6; }
  3565. ac_preproc_ok=false
  3566. for ac_cxx_preproc_warn_flag in '' yes
  3567. do
  3568. # Use a header file that comes with gcc, so configuring glibc
  3569. # with a fresh cross-compiler works.
  3570. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3571. # <limits.h> exists even on freestanding compilers.
  3572. # On the NeXT, cc -E runs the code through the compiler's parser,
  3573. # not just through cpp. "Syntax error" is here to catch this case.
  3574. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3575. /* end confdefs.h. */
  3576. #ifdef __STDC__
  3577. # include <limits.h>
  3578. #else
  3579. # include <assert.h>
  3580. #endif
  3581. Syntax error
  3582. _ACEOF
  3583. if ac_fn_cxx_try_cpp "$LINENO"; then :
  3584. else
  3585. # Broken: fails on valid input.
  3586. continue
  3587. fi
  3588. rm -f conftest.err conftest.i conftest.$ac_ext
  3589. # OK, works on sane cases. Now check whether nonexistent headers
  3590. # can be detected and how.
  3591. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3592. /* end confdefs.h. */
  3593. #include <ac_nonexistent.h>
  3594. _ACEOF
  3595. if ac_fn_cxx_try_cpp "$LINENO"; then :
  3596. # Broken: success on invalid input.
  3597. continue
  3598. else
  3599. # Passes both tests.
  3600. ac_preproc_ok=:
  3601. break
  3602. fi
  3603. rm -f conftest.err conftest.i conftest.$ac_ext
  3604. done
  3605. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3606. rm -f conftest.i conftest.err conftest.$ac_ext
  3607. if $ac_preproc_ok; then :
  3608. else
  3609. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3610. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3611. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  3612. See \`config.log' for more details" "$LINENO" 5; }
  3613. fi
  3614. ac_ext=cpp
  3615. ac_cpp='$CXXCPP $CPPFLAGS'
  3616. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3617. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3618. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3620. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3621. if ${ac_cv_path_GREP+:} false; then :
  3622. $as_echo_n "(cached) " >&6
  3623. else
  3624. if test -z "$GREP"; then
  3625. ac_path_GREP_found=false
  3626. # Loop through the user's path and test for each of PROGNAME-LIST
  3627. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3628. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3629. do
  3630. IFS=$as_save_IFS
  3631. test -z "$as_dir" && as_dir=.
  3632. for ac_prog in grep ggrep; do
  3633. for ac_exec_ext in '' $ac_executable_extensions; do
  3634. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3635. as_fn_executable_p "$ac_path_GREP" || continue
  3636. # Check for GNU ac_path_GREP and select it if it is found.
  3637. # Check for GNU $ac_path_GREP
  3638. case `"$ac_path_GREP" --version 2>&1` in
  3639. *GNU*)
  3640. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3641. *)
  3642. ac_count=0
  3643. $as_echo_n 0123456789 >"conftest.in"
  3644. while :
  3645. do
  3646. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3647. mv "conftest.tmp" "conftest.in"
  3648. cp "conftest.in" "conftest.nl"
  3649. $as_echo 'GREP' >> "conftest.nl"
  3650. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3651. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3652. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3653. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3654. # Best one so far, save it but keep looking for a better one
  3655. ac_cv_path_GREP="$ac_path_GREP"
  3656. ac_path_GREP_max=$ac_count
  3657. fi
  3658. # 10*(2^10) chars as input seems more than enough
  3659. test $ac_count -gt 10 && break
  3660. done
  3661. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3662. esac
  3663. $ac_path_GREP_found && break 3
  3664. done
  3665. done
  3666. done
  3667. IFS=$as_save_IFS
  3668. if test -z "$ac_cv_path_GREP"; then
  3669. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3670. fi
  3671. else
  3672. ac_cv_path_GREP=$GREP
  3673. fi
  3674. fi
  3675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3676. $as_echo "$ac_cv_path_GREP" >&6; }
  3677. GREP="$ac_cv_path_GREP"
  3678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3679. $as_echo_n "checking for egrep... " >&6; }
  3680. if ${ac_cv_path_EGREP+:} false; then :
  3681. $as_echo_n "(cached) " >&6
  3682. else
  3683. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3684. then ac_cv_path_EGREP="$GREP -E"
  3685. else
  3686. if test -z "$EGREP"; then
  3687. ac_path_EGREP_found=false
  3688. # Loop through the user's path and test for each of PROGNAME-LIST
  3689. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3690. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3691. do
  3692. IFS=$as_save_IFS
  3693. test -z "$as_dir" && as_dir=.
  3694. for ac_prog in egrep; do
  3695. for ac_exec_ext in '' $ac_executable_extensions; do
  3696. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3697. as_fn_executable_p "$ac_path_EGREP" || continue
  3698. # Check for GNU ac_path_EGREP and select it if it is found.
  3699. # Check for GNU $ac_path_EGREP
  3700. case `"$ac_path_EGREP" --version 2>&1` in
  3701. *GNU*)
  3702. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3703. *)
  3704. ac_count=0
  3705. $as_echo_n 0123456789 >"conftest.in"
  3706. while :
  3707. do
  3708. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3709. mv "conftest.tmp" "conftest.in"
  3710. cp "conftest.in" "conftest.nl"
  3711. $as_echo 'EGREP' >> "conftest.nl"
  3712. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3713. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3714. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3715. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3716. # Best one so far, save it but keep looking for a better one
  3717. ac_cv_path_EGREP="$ac_path_EGREP"
  3718. ac_path_EGREP_max=$ac_count
  3719. fi
  3720. # 10*(2^10) chars as input seems more than enough
  3721. test $ac_count -gt 10 && break
  3722. done
  3723. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3724. esac
  3725. $ac_path_EGREP_found && break 3
  3726. done
  3727. done
  3728. done
  3729. IFS=$as_save_IFS
  3730. if test -z "$ac_cv_path_EGREP"; then
  3731. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3732. fi
  3733. else
  3734. ac_cv_path_EGREP=$EGREP
  3735. fi
  3736. fi
  3737. fi
  3738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3739. $as_echo "$ac_cv_path_EGREP" >&6; }
  3740. EGREP="$ac_cv_path_EGREP"
  3741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3742. $as_echo_n "checking for ANSI C header files... " >&6; }
  3743. if ${ac_cv_header_stdc+:} false; then :
  3744. $as_echo_n "(cached) " >&6
  3745. else
  3746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3747. /* end confdefs.h. */
  3748. #include <stdlib.h>
  3749. #include <stdarg.h>
  3750. #include <string.h>
  3751. #include <float.h>
  3752. int
  3753. main ()
  3754. {
  3755. ;
  3756. return 0;
  3757. }
  3758. _ACEOF
  3759. if ac_fn_cxx_try_compile "$LINENO"; then :
  3760. ac_cv_header_stdc=yes
  3761. else
  3762. ac_cv_header_stdc=no
  3763. fi
  3764. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3765. if test $ac_cv_header_stdc = yes; then
  3766. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3768. /* end confdefs.h. */
  3769. #include <string.h>
  3770. _ACEOF
  3771. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3772. $EGREP "memchr" >/dev/null 2>&1; then :
  3773. else
  3774. ac_cv_header_stdc=no
  3775. fi
  3776. rm -f conftest*
  3777. fi
  3778. if test $ac_cv_header_stdc = yes; then
  3779. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3781. /* end confdefs.h. */
  3782. #include <stdlib.h>
  3783. _ACEOF
  3784. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3785. $EGREP "free" >/dev/null 2>&1; then :
  3786. else
  3787. ac_cv_header_stdc=no
  3788. fi
  3789. rm -f conftest*
  3790. fi
  3791. if test $ac_cv_header_stdc = yes; then
  3792. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3793. if test "$cross_compiling" = yes; then :
  3794. :
  3795. else
  3796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3797. /* end confdefs.h. */
  3798. #include <ctype.h>
  3799. #include <stdlib.h>
  3800. #if ((' ' & 0x0FF) == 0x020)
  3801. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3802. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3803. #else
  3804. # define ISLOWER(c) \
  3805. (('a' <= (c) && (c) <= 'i') \
  3806. || ('j' <= (c) && (c) <= 'r') \
  3807. || ('s' <= (c) && (c) <= 'z'))
  3808. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3809. #endif
  3810. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3811. int
  3812. main ()
  3813. {
  3814. int i;
  3815. for (i = 0; i < 256; i++)
  3816. if (XOR (islower (i), ISLOWER (i))
  3817. || toupper (i) != TOUPPER (i))
  3818. return 2;
  3819. return 0;
  3820. }
  3821. _ACEOF
  3822. if ac_fn_cxx_try_run "$LINENO"; then :
  3823. else
  3824. ac_cv_header_stdc=no
  3825. fi
  3826. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3827. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3828. fi
  3829. fi
  3830. fi
  3831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3832. $as_echo "$ac_cv_header_stdc" >&6; }
  3833. if test $ac_cv_header_stdc = yes; then
  3834. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3835. fi
  3836. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3837. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3838. inttypes.h stdint.h unistd.h
  3839. do :
  3840. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3841. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3842. "
  3843. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3844. cat >>confdefs.h <<_ACEOF
  3845. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3846. _ACEOF
  3847. fi
  3848. done
  3849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  3850. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  3851. if ${ac_cv_c_bigendian+:} false; then :
  3852. $as_echo_n "(cached) " >&6
  3853. else
  3854. ac_cv_c_bigendian=unknown
  3855. # See if we're dealing with a universal compiler.
  3856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3857. /* end confdefs.h. */
  3858. #ifndef __APPLE_CC__
  3859. not a universal capable compiler
  3860. #endif
  3861. typedef int dummy;
  3862. _ACEOF
  3863. if ac_fn_cxx_try_compile "$LINENO"; then :
  3864. # Check for potential -arch flags. It is not universal unless
  3865. # there are at least two -arch flags with different values.
  3866. ac_arch=
  3867. ac_prev=
  3868. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  3869. if test -n "$ac_prev"; then
  3870. case $ac_word in
  3871. i?86 | x86_64 | ppc | ppc64)
  3872. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  3873. ac_arch=$ac_word
  3874. else
  3875. ac_cv_c_bigendian=universal
  3876. break
  3877. fi
  3878. ;;
  3879. esac
  3880. ac_prev=
  3881. elif test "x$ac_word" = "x-arch"; then
  3882. ac_prev=arch
  3883. fi
  3884. done
  3885. fi
  3886. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3887. if test $ac_cv_c_bigendian = unknown; then
  3888. # See if sys/param.h defines the BYTE_ORDER macro.
  3889. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3890. /* end confdefs.h. */
  3891. #include <sys/types.h>
  3892. #include <sys/param.h>
  3893. int
  3894. main ()
  3895. {
  3896. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  3897. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  3898. && LITTLE_ENDIAN)
  3899. bogus endian macros
  3900. #endif
  3901. ;
  3902. return 0;
  3903. }
  3904. _ACEOF
  3905. if ac_fn_cxx_try_compile "$LINENO"; then :
  3906. # It does; now see whether it defined to BIG_ENDIAN or not.
  3907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3908. /* end confdefs.h. */
  3909. #include <sys/types.h>
  3910. #include <sys/param.h>
  3911. int
  3912. main ()
  3913. {
  3914. #if BYTE_ORDER != BIG_ENDIAN
  3915. not big endian
  3916. #endif
  3917. ;
  3918. return 0;
  3919. }
  3920. _ACEOF
  3921. if ac_fn_cxx_try_compile "$LINENO"; then :
  3922. ac_cv_c_bigendian=yes
  3923. else
  3924. ac_cv_c_bigendian=no
  3925. fi
  3926. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3927. fi
  3928. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3929. fi
  3930. if test $ac_cv_c_bigendian = unknown; then
  3931. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  3932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3933. /* end confdefs.h. */
  3934. #include <limits.h>
  3935. int
  3936. main ()
  3937. {
  3938. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  3939. bogus endian macros
  3940. #endif
  3941. ;
  3942. return 0;
  3943. }
  3944. _ACEOF
  3945. if ac_fn_cxx_try_compile "$LINENO"; then :
  3946. # It does; now see whether it defined to _BIG_ENDIAN or not.
  3947. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3948. /* end confdefs.h. */
  3949. #include <limits.h>
  3950. int
  3951. main ()
  3952. {
  3953. #ifndef _BIG_ENDIAN
  3954. not big endian
  3955. #endif
  3956. ;
  3957. return 0;
  3958. }
  3959. _ACEOF
  3960. if ac_fn_cxx_try_compile "$LINENO"; then :
  3961. ac_cv_c_bigendian=yes
  3962. else
  3963. ac_cv_c_bigendian=no
  3964. fi
  3965. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3966. fi
  3967. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3968. fi
  3969. if test $ac_cv_c_bigendian = unknown; then
  3970. # Compile a test program.
  3971. if test "$cross_compiling" = yes; then :
  3972. # Try to guess by grepping values from an object file.
  3973. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3974. /* end confdefs.h. */
  3975. short int ascii_mm[] =
  3976. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  3977. short int ascii_ii[] =
  3978. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  3979. int use_ascii (int i) {
  3980. return ascii_mm[i] + ascii_ii[i];
  3981. }
  3982. short int ebcdic_ii[] =
  3983. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  3984. short int ebcdic_mm[] =
  3985. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  3986. int use_ebcdic (int i) {
  3987. return ebcdic_mm[i] + ebcdic_ii[i];
  3988. }
  3989. extern int foo;
  3990. int
  3991. main ()
  3992. {
  3993. return use_ascii (foo) == use_ebcdic (foo);
  3994. ;
  3995. return 0;
  3996. }
  3997. _ACEOF
  3998. if ac_fn_cxx_try_compile "$LINENO"; then :
  3999. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  4000. ac_cv_c_bigendian=yes
  4001. fi
  4002. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  4003. if test "$ac_cv_c_bigendian" = unknown; then
  4004. ac_cv_c_bigendian=no
  4005. else
  4006. # finding both strings is unlikely to happen, but who knows?
  4007. ac_cv_c_bigendian=unknown
  4008. fi
  4009. fi
  4010. fi
  4011. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4012. else
  4013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4014. /* end confdefs.h. */
  4015. $ac_includes_default
  4016. int
  4017. main ()
  4018. {
  4019. /* Are we little or big endian? From Harbison&Steele. */
  4020. union
  4021. {
  4022. long int l;
  4023. char c[sizeof (long int)];
  4024. } u;
  4025. u.l = 1;
  4026. return u.c[sizeof (long int) - 1] == 1;
  4027. ;
  4028. return 0;
  4029. }
  4030. _ACEOF
  4031. if ac_fn_cxx_try_run "$LINENO"; then :
  4032. ac_cv_c_bigendian=no
  4033. else
  4034. ac_cv_c_bigendian=yes
  4035. fi
  4036. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4037. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4038. fi
  4039. fi
  4040. fi
  4041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  4042. $as_echo "$ac_cv_c_bigendian" >&6; }
  4043. case $ac_cv_c_bigendian in #(
  4044. yes)
  4045. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  4046. ;; #(
  4047. no)
  4048. ;; #(
  4049. universal)
  4050. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  4051. ;; #(
  4052. *)
  4053. as_fn_error $? "unknown endianness
  4054. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  4055. esac
  4056. # Checks for libraries.
  4057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
  4058. $as_echo_n "checking for cos in -lm... " >&6; }
  4059. if ${ac_cv_lib_m_cos+:} false; then :
  4060. $as_echo_n "(cached) " >&6
  4061. else
  4062. ac_check_lib_save_LIBS=$LIBS
  4063. LIBS="-lm $LIBS"
  4064. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4065. /* end confdefs.h. */
  4066. /* Override any GCC internal prototype to avoid an error.
  4067. Use char because int might match the return type of a GCC
  4068. builtin and then its argument prototype would still apply. */
  4069. #ifdef __cplusplus
  4070. extern "C"
  4071. #endif
  4072. char cos ();
  4073. int
  4074. main ()
  4075. {
  4076. return cos ();
  4077. ;
  4078. return 0;
  4079. }
  4080. _ACEOF
  4081. if ac_fn_cxx_try_link "$LINENO"; then :
  4082. ac_cv_lib_m_cos=yes
  4083. else
  4084. ac_cv_lib_m_cos=no
  4085. fi
  4086. rm -f core conftest.err conftest.$ac_objext \
  4087. conftest$ac_exeext conftest.$ac_ext
  4088. LIBS=$ac_check_lib_save_LIBS
  4089. fi
  4090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
  4091. $as_echo "$ac_cv_lib_m_cos" >&6; }
  4092. if test "x$ac_cv_lib_m_cos" = xyes; then :
  4093. cat >>confdefs.h <<_ACEOF
  4094. #define HAVE_LIBM 1
  4095. _ACEOF
  4096. LIBS="-lm $LIBS"
  4097. fi
  4098. # Check whether --with-cet was given.
  4099. if test "${with_cet+set}" = set; then :
  4100. withval=$with_cet; cet="$withval"
  4101. else
  4102. cet="default"
  4103. fi
  4104. if test $GCC = yes; then
  4105. CFLAGS="$CFLAGS -Wall"
  4106. CXXFLAGS="$CXXFLAGS -Wall"
  4107. fi
  4108. if test "$cet" = "all"; then
  4109. $as_echo "#define CET_WANTED 1" >>confdefs.h
  4110. fi
  4111. if test "$cet" = "default"; then
  4112. $as_echo "#define CET_WANTED 0" >>confdefs.h
  4113. fi
  4114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support shapefiles" >&5
  4115. $as_echo_n "checking whether to support shapefiles... " >&6; }
  4116. # Check whether --enable-shapefile was given.
  4117. if test "${enable_shapefile+set}" = set; then :
  4118. enableval=$enable_shapefile; enable_shapefile="$enableval"
  4119. else
  4120. enable_shapefile="yes"
  4121. fi
  4122. if test "$enable_shapefile" != "no" ; then
  4123. $as_echo "#define SHAPELIB_ENABLED 1" >>confdefs.h
  4124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4125. $as_echo "yes" >&6; }
  4126. else
  4127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4128. $as_echo "no" >&6; }
  4129. fi
  4130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support Palm/OS pdb formats" >&5
  4131. $as_echo_n "checking whether to support Palm/OS pdb formats... " >&6; }
  4132. # Check whether --enable-pdb was given.
  4133. if test "${enable_pdb+set}" = set; then :
  4134. enableval=$enable_pdb; enable_pdb="$enableval"
  4135. else
  4136. enable_pdb="yes"
  4137. fi
  4138. if test "$enable_pdb" != "no" ; then
  4139. $as_echo "#define PDBFMTS_ENABLED 1" >>confdefs.h
  4140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4141. $as_echo "yes" >&6; }
  4142. else
  4143. PALM_DB_CMT=#
  4144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4145. $as_echo "no" >&6; }
  4146. fi
  4147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support csv formats" >&5
  4148. $as_echo_n "checking whether to support csv formats... " >&6; }
  4149. # Check whether --enable-csv was given.
  4150. if test "${enable_csv+set}" = set; then :
  4151. enableval=$enable_csv; enable_csv="$enableval"
  4152. else
  4153. enable_csv="yes"
  4154. fi
  4155. if test "$enable_csv" != "no" ; then
  4156. $as_echo "#define CSVFMTS_ENABLED 1" >>confdefs.h
  4157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4158. $as_echo "yes" >&6; }
  4159. else
  4160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4161. $as_echo "no" >&6; }
  4162. fi
  4163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support maximum number of formats" >&5
  4164. $as_echo_n "checking whether to support maximum number of formats... " >&6; }
  4165. # Check whether --enable-most was given.
  4166. if test "${enable_most+set}" = set; then :
  4167. enableval=$enable_most; enable_most="$enableval"
  4168. else
  4169. enable_most="yes"
  4170. fi
  4171. if test "$enable_most" != "no" ; then
  4172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4173. $as_echo "yes" >&6; }
  4174. $as_echo "#define MAXIMAL_ENABLED 1" >>confdefs.h
  4175. FMTS='$(ALL_FMTS)'
  4176. else
  4177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4178. $as_echo "no" >&6; }
  4179. FMTS='$(MINIMAL_FMTS)'
  4180. fi
  4181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support filters" >&5
  4182. $as_echo_n "checking whether to support filters... " >&6; }
  4183. # Check whether --enable-filters was given.
  4184. if test "${enable_filters+set}" = set; then :
  4185. enableval=$enable_filters; enable_filters="$enableval"
  4186. else
  4187. enable_filters="yes"
  4188. fi
  4189. if test "$enable_filters" != "no" ; then
  4190. $as_echo "#define FILTERS_ENABLED 1" >>confdefs.h
  4191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4192. $as_echo "yes" >&6; }
  4193. else
  4194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4195. $as_echo "no" >&6; }
  4196. fi
  4197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support zlib" >&5
  4198. $as_echo_n "checking whether to support zlib... " >&6; }
  4199. # Check whether --with-zlib was given.
  4200. if test "${with_zlib+set}" = set; then :
  4201. withval=$with_zlib;
  4202. fi
  4203. case $with_zlib in
  4204. "system")
  4205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
  4206. $as_echo_n "checking for gzopen in -lz... " >&6; }
  4207. if ${ac_cv_lib_z_gzopen+:} false; then :
  4208. $as_echo_n "(cached) " >&6
  4209. else
  4210. ac_check_lib_save_LIBS=$LIBS
  4211. LIBS="-lz $LIBS"
  4212. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4213. /* end confdefs.h. */
  4214. /* Override any GCC internal prototype to avoid an error.
  4215. Use char because int might match the return type of a GCC
  4216. builtin and then its argument prototype would still apply. */
  4217. #ifdef __cplusplus
  4218. extern "C"
  4219. #endif
  4220. char gzopen ();
  4221. int
  4222. main ()
  4223. {
  4224. return gzopen ();
  4225. ;
  4226. return 0;
  4227. }
  4228. _ACEOF
  4229. if ac_fn_cxx_try_link "$LINENO"; then :
  4230. ac_cv_lib_z_gzopen=yes
  4231. else
  4232. ac_cv_lib_z_gzopen=no
  4233. fi
  4234. rm -f core conftest.err conftest.$ac_objext \
  4235. conftest$ac_exeext conftest.$ac_ext
  4236. LIBS=$ac_check_lib_save_LIBS
  4237. fi
  4238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
  4239. $as_echo "$ac_cv_lib_z_gzopen" >&6; }
  4240. if test "x$ac_cv_lib_z_gzopen" = xyes; then :
  4241. cat >>confdefs.h <<_ACEOF
  4242. #define HAVE_LIBZ 1
  4243. _ACEOF
  4244. LIBS="-lz $LIBS"
  4245. fi
  4246. ;;
  4247. "no")
  4248. $as_echo "#define ZLIB_INHIBITED 1" >>confdefs.h
  4249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4250. $as_echo "no" >&6; }
  4251. ;;
  4252. *) ZLIB="\$(ZLIB)"
  4253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using included version" >&5
  4254. $as_echo "using included version" >&6; };;
  4255. esac
  4256. case "$target" in
  4257. *-*-mingw32*)
  4258. FILEINFO=fileinfo.o
  4259. if test "$CC" = gcc ; then
  4260. RC=windres
  4261. else
  4262. RC=`echo "$CC" | sed -e 's/gcc$/windres/'`
  4263. fi
  4264. ;;
  4265. *)
  4266. RC=false
  4267. ;;
  4268. esac
  4269. # On RHEL/OEL/SL/CENTOS/FEDORA qmake is from Qt3, and qmake-qt4 is from Qt4.
  4270. # If qmake-qt4 isn't found look for the standard name qmake and assume it is
  4271. # from a useful version Qt.
  4272. # On Ubuntu qmake-qt4 exists, but qmake-qt5 does not.
  4273. # If we select qmake-qt4 this will defeat qtchooser.
  4274. # we no longer support qt4.
  4275. if test -n "$ac_tool_prefix"; then
  4276. for ac_prog in qmake-qt5 qmake
  4277. do
  4278. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4279. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4281. $as_echo_n "checking for $ac_word... " >&6; }
  4282. if ${ac_cv_prog_QMAKE+:} false; then :
  4283. $as_echo_n "(cached) " >&6
  4284. else
  4285. if test -n "$QMAKE"; then
  4286. ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test.
  4287. else
  4288. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4289. for as_dir in $PATH
  4290. do
  4291. IFS=$as_save_IFS
  4292. test -z "$as_dir" && as_dir=.
  4293. for ac_exec_ext in '' $ac_executable_extensions; do
  4294. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4295. ac_cv_prog_QMAKE="$ac_tool_prefix$ac_prog"
  4296. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4297. break 2
  4298. fi
  4299. done
  4300. done
  4301. IFS=$as_save_IFS
  4302. fi
  4303. fi
  4304. QMAKE=$ac_cv_prog_QMAKE
  4305. if test -n "$QMAKE"; then
  4306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
  4307. $as_echo "$QMAKE" >&6; }
  4308. else
  4309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4310. $as_echo "no" >&6; }
  4311. fi
  4312. test -n "$QMAKE" && break
  4313. done
  4314. fi
  4315. if test -z "$QMAKE"; then
  4316. ac_ct_QMAKE=$QMAKE
  4317. for ac_prog in qmake-qt5 qmake
  4318. do
  4319. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4320. set dummy $ac_prog; ac_word=$2
  4321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4322. $as_echo_n "checking for $ac_word... " >&6; }
  4323. if ${ac_cv_prog_ac_ct_QMAKE+:} false; then :
  4324. $as_echo_n "(cached) " >&6
  4325. else
  4326. if test -n "$ac_ct_QMAKE"; then
  4327. ac_cv_prog_ac_ct_QMAKE="$ac_ct_QMAKE" # Let the user override the test.
  4328. else
  4329. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4330. for as_dir in $PATH
  4331. do
  4332. IFS=$as_save_IFS
  4333. test -z "$as_dir" && as_dir=.
  4334. for ac_exec_ext in '' $ac_executable_extensions; do
  4335. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4336. ac_cv_prog_ac_ct_QMAKE="$ac_prog"
  4337. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4338. break 2
  4339. fi
  4340. done
  4341. done
  4342. IFS=$as_save_IFS
  4343. fi
  4344. fi
  4345. ac_ct_QMAKE=$ac_cv_prog_ac_ct_QMAKE
  4346. if test -n "$ac_ct_QMAKE"; then
  4347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_QMAKE" >&5
  4348. $as_echo "$ac_ct_QMAKE" >&6; }
  4349. else
  4350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4351. $as_echo "no" >&6; }
  4352. fi
  4353. test -n "$ac_ct_QMAKE" && break
  4354. done
  4355. if test "x$ac_ct_QMAKE" = x; then
  4356. QMAKE=""no""
  4357. else
  4358. case $cross_compiling:$ac_tool_warned in
  4359. yes:)
  4360. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4361. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4362. ac_tool_warned=yes ;;
  4363. esac
  4364. QMAKE=$ac_ct_QMAKE
  4365. fi
  4366. fi
  4367. if test -n "$ac_tool_prefix"; then
  4368. for ac_prog in lupdate-qt5 lupdate
  4369. do
  4370. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4371. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4373. $as_echo_n "checking for $ac_word... " >&6; }
  4374. if ${ac_cv_prog_LUPDATE+:} false; then :
  4375. $as_echo_n "(cached) " >&6
  4376. else
  4377. if test -n "$LUPDATE"; then
  4378. ac_cv_prog_LUPDATE="$LUPDATE" # Let the user override the test.
  4379. else
  4380. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4381. for as_dir in $PATH
  4382. do
  4383. IFS=$as_save_IFS
  4384. test -z "$as_dir" && as_dir=.
  4385. for ac_exec_ext in '' $ac_executable_extensions; do
  4386. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4387. ac_cv_prog_LUPDATE="$ac_tool_prefix$ac_prog"
  4388. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4389. break 2
  4390. fi
  4391. done
  4392. done
  4393. IFS=$as_save_IFS
  4394. fi
  4395. fi
  4396. LUPDATE=$ac_cv_prog_LUPDATE
  4397. if test -n "$LUPDATE"; then
  4398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LUPDATE" >&5
  4399. $as_echo "$LUPDATE" >&6; }
  4400. else
  4401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4402. $as_echo "no" >&6; }
  4403. fi
  4404. test -n "$LUPDATE" && break
  4405. done
  4406. fi
  4407. if test -z "$LUPDATE"; then
  4408. ac_ct_LUPDATE=$LUPDATE
  4409. for ac_prog in lupdate-qt5 lupdate
  4410. do
  4411. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4412. set dummy $ac_prog; ac_word=$2
  4413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4414. $as_echo_n "checking for $ac_word... " >&6; }
  4415. if ${ac_cv_prog_ac_ct_LUPDATE+:} false; then :
  4416. $as_echo_n "(cached) " >&6
  4417. else
  4418. if test -n "$ac_ct_LUPDATE"; then
  4419. ac_cv_prog_ac_ct_LUPDATE="$ac_ct_LUPDATE" # Let the user override the test.
  4420. else
  4421. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4422. for as_dir in $PATH
  4423. do
  4424. IFS=$as_save_IFS
  4425. test -z "$as_dir" && as_dir=.
  4426. for ac_exec_ext in '' $ac_executable_extensions; do
  4427. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4428. ac_cv_prog_ac_ct_LUPDATE="$ac_prog"
  4429. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4430. break 2
  4431. fi
  4432. done
  4433. done
  4434. IFS=$as_save_IFS
  4435. fi
  4436. fi
  4437. ac_ct_LUPDATE=$ac_cv_prog_ac_ct_LUPDATE
  4438. if test -n "$ac_ct_LUPDATE"; then
  4439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LUPDATE" >&5
  4440. $as_echo "$ac_ct_LUPDATE" >&6; }
  4441. else
  4442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4443. $as_echo "no" >&6; }
  4444. fi
  4445. test -n "$ac_ct_LUPDATE" && break
  4446. done
  4447. if test "x$ac_ct_LUPDATE" = x; then
  4448. LUPDATE=""
  4449. else
  4450. case $cross_compiling:$ac_tool_warned in
  4451. yes:)
  4452. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4453. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4454. ac_tool_warned=yes ;;
  4455. esac
  4456. LUPDATE=$ac_ct_LUPDATE
  4457. fi
  4458. fi
  4459. if test -n "$ac_tool_prefix"; then
  4460. for ac_prog in lrelease-qt5 lrelease
  4461. do
  4462. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4463. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4465. $as_echo_n "checking for $ac_word... " >&6; }
  4466. if ${ac_cv_prog_LRELEASE+:} false; then :
  4467. $as_echo_n "(cached) " >&6
  4468. else
  4469. if test -n "$LRELEASE"; then
  4470. ac_cv_prog_LRELEASE="$LRELEASE" # Let the user override the test.
  4471. else
  4472. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4473. for as_dir in $PATH
  4474. do
  4475. IFS=$as_save_IFS
  4476. test -z "$as_dir" && as_dir=.
  4477. for ac_exec_ext in '' $ac_executable_extensions; do
  4478. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4479. ac_cv_prog_LRELEASE="$ac_tool_prefix$ac_prog"
  4480. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4481. break 2
  4482. fi
  4483. done
  4484. done
  4485. IFS=$as_save_IFS
  4486. fi
  4487. fi
  4488. LRELEASE=$ac_cv_prog_LRELEASE
  4489. if test -n "$LRELEASE"; then
  4490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LRELEASE" >&5
  4491. $as_echo "$LRELEASE" >&6; }
  4492. else
  4493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4494. $as_echo "no" >&6; }
  4495. fi
  4496. test -n "$LRELEASE" && break
  4497. done
  4498. fi
  4499. if test -z "$LRELEASE"; then
  4500. ac_ct_LRELEASE=$LRELEASE
  4501. for ac_prog in lrelease-qt5 lrelease
  4502. do
  4503. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4504. set dummy $ac_prog; ac_word=$2
  4505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4506. $as_echo_n "checking for $ac_word... " >&6; }
  4507. if ${ac_cv_prog_ac_ct_LRELEASE+:} false; then :
  4508. $as_echo_n "(cached) " >&6
  4509. else
  4510. if test -n "$ac_ct_LRELEASE"; then
  4511. ac_cv_prog_ac_ct_LRELEASE="$ac_ct_LRELEASE" # Let the user override the test.
  4512. else
  4513. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4514. for as_dir in $PATH
  4515. do
  4516. IFS=$as_save_IFS
  4517. test -z "$as_dir" && as_dir=.
  4518. for ac_exec_ext in '' $ac_executable_extensions; do
  4519. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4520. ac_cv_prog_ac_ct_LRELEASE="$ac_prog"
  4521. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4522. break 2
  4523. fi
  4524. done
  4525. done
  4526. IFS=$as_save_IFS
  4527. fi
  4528. fi
  4529. ac_ct_LRELEASE=$ac_cv_prog_ac_ct_LRELEASE
  4530. if test -n "$ac_ct_LRELEASE"; then
  4531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LRELEASE" >&5
  4532. $as_echo "$ac_ct_LRELEASE" >&6; }
  4533. else
  4534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4535. $as_echo "no" >&6; }
  4536. fi
  4537. test -n "$ac_ct_LRELEASE" && break
  4538. done
  4539. if test "x$ac_ct_LRELEASE" = x; then
  4540. LRELEASE=""
  4541. else
  4542. case $cross_compiling:$ac_tool_warned in
  4543. yes:)
  4544. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4545. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4546. ac_tool_warned=yes ;;
  4547. esac
  4548. LRELEASE=$ac_ct_LRELEASE
  4549. fi
  4550. fi
  4551. if test "$QMAKE" = no ; then
  4552. as_fn_error $? "Qt5.2 or higher is required, but was not found" "$LINENO" 5;
  4553. fi
  4554. # guess the name of the Qt Core library.
  4555. QT_LIBVER=$($QMAKE -query -query QT_VERSION | sed -e 's/\..*//')
  4556. if test "$QT_LIBVER" -ge 5 ; then
  4557. QT_LIBS="-L$($QMAKE -query QT_INSTALL_LIBS) -lQt${QT_LIBVER}Core"
  4558. else
  4559. QT_LIBS="-L$($QMAKE -query QT_INSTALL_LIBS) -lQtCore"
  4560. fi
  4561. QT_INC=$($QMAKE -query QT_INSTALL_HEADERS)
  4562. QT_INC_OPT="-I"
  4563. QT_SYSINC_OPT="-isystem"
  4564. case "$target" in
  4565. *-*-cygwin* | *-*-mingw32*)
  4566. GBSER=gbser_win.o
  4567. if test "$with_libusb" = no ; then
  4568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: USB skipped" >&5
  4569. $as_echo "USB skipped" >&6; }
  4570. OSJEEPS=jeeps/gpsusbstub.o
  4571. else
  4572. OSJEEPS=jeeps/gpsusbwin.o
  4573. USB_LIBS="-lsetupapi -lole32 -lws2_32 -luuid"
  4574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows DDK" >&5
  4575. $as_echo_n "checking for Windows DDK... " >&6; }
  4576. old_LIBS="$LIBS"
  4577. LIBS="$LIBS -lhid"
  4578. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4579. /* end confdefs.h. */
  4580. #include <windows.h>
  4581. #include <hidsdi.h>
  4582. int
  4583. main ()
  4584. {
  4585. HANDLE HidDeviceObject;
  4586. HIDD_ATTRIBUTES Attributes;
  4587. PHIDP_PREPARSED_DATA HidPPD;
  4588. HidD_GetAttributes(HidDeviceObject, &Attributes);
  4589. HidD_GetPreparsedData(HidDeviceObject, &HidPPD);
  4590. ;
  4591. return 0;
  4592. }
  4593. _ACEOF
  4594. if ac_fn_cxx_try_link "$LINENO"; then :
  4595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4596. $as_echo "yes" >&6; }
  4597. $as_echo "#define HAVE_WDK 1" >>confdefs.h
  4598. USB_LIBS=${USB_LIBS}" -lhid"
  4599. else
  4600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4601. $as_echo "no" >&6; }
  4602. fi
  4603. rm -f core conftest.err conftest.$ac_objext \
  4604. conftest$ac_exeext conftest.$ac_ext
  4605. LIBS="$old_LIBS"
  4606. fi
  4607. ;;
  4608. *-*-darwin*)
  4609. GBSER=gbser_posix.o
  4610. OSJEEPS="jeeps/gpslibusb.o \
  4611. mac/libusb/darwin.o \
  4612. mac/libusb/descriptors.o \
  4613. mac/libusb/error.o \
  4614. mac/libusb/usb.o "
  4615. USB_LIBS="-framework IOKit -framework CoreFoundation"
  4616. $as_echo "#define HAVE_LIBUSB 1" >>confdefs.h
  4617. # On Mac, use frameworks for includes and library files.
  4618. # Macports uses a non-standard build of Qt with an added
  4619. # QT_INSTALL_FRAMEWORKS flag, so look for thier custom
  4620. # version first. That will fail on 'normal' Qt so fall
  4621. # back to QT_INSTALL_LIBS.
  4622. QT_FW_OR_LIBS=$($QMAKE -query QT_INSTALL_FRAMEWORKS)
  4623. if test $QT_FW_OR_LIBS = "**Unknown**" ; then
  4624. QT_FW_OR_LIBS=$($QMAKE -query QT_INSTALL_LIBS)
  4625. fi
  4626. QT_LIBS="-Wl,-rpath, $QT_FW_OR_LIBS -F$QT_FW_OR_LIBS -framework QtCore"
  4627. QT_INC="$QT_FW_OR_LIBS"
  4628. QT_INC_OPT="-F"
  4629. QT_SYSINC_OPT="-iframework"
  4630. ;;
  4631. *-*-freebsd*)
  4632. GBSER=gbser_posix.o
  4633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb" >&5
  4634. $as_echo_n "checking for libusb... " >&6; }
  4635. if test "$with_libusb" = no ; then
  4636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: check not done" >&5
  4637. $as_echo "check not done" >&6; }
  4638. OSJEEPS=jeeps/gpsusbstub.o
  4639. else
  4640. OLDFLAGS=$LDFLAGS
  4641. OCFLAGS=$CFLAGS
  4642. LDFLAGS="$LDFLAGS -lusb"
  4643. CFLAGS="$OCFLAGS"
  4644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usb_interrupt_read in -lusb" >&5
  4645. $as_echo_n "checking for usb_interrupt_read in -lusb... " >&6; }
  4646. if ${ac_cv_lib_usb_usb_interrupt_read+:} false; then :
  4647. $as_echo_n "(cached) " >&6
  4648. else
  4649. ac_check_lib_save_LIBS=$LIBS
  4650. LIBS="-lusb $LIBS"
  4651. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4652. /* end confdefs.h. */
  4653. /* Override any GCC internal prototype to avoid an error.
  4654. Use char because int might match the return type of a GCC
  4655. builtin and then its argument prototype would still apply. */
  4656. #ifdef __cplusplus
  4657. extern "C"
  4658. #endif
  4659. char usb_interrupt_read ();
  4660. int
  4661. main ()
  4662. {
  4663. return usb_interrupt_read ();
  4664. ;
  4665. return 0;
  4666. }
  4667. _ACEOF
  4668. if ac_fn_cxx_try_link "$LINENO"; then :
  4669. ac_cv_lib_usb_usb_interrupt_read=yes
  4670. else
  4671. ac_cv_lib_usb_usb_interrupt_read=no
  4672. fi
  4673. rm -f core conftest.err conftest.$ac_objext \
  4674. conftest$ac_exeext conftest.$ac_ext
  4675. LIBS=$ac_check_lib_save_LIBS
  4676. fi
  4677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_usb_interrupt_read" >&5
  4678. $as_echo "$ac_cv_lib_usb_usb_interrupt_read" >&6; }
  4679. if test "x$ac_cv_lib_usb_usb_interrupt_read" = xyes; then :
  4680. $as_echo "#define HAVE_LIBUSB 1" >>confdefs.h
  4681. USB_CFLAGS=""
  4682. USB_LIBS="-lusb"
  4683. # ,[AC_MSG_ERROR([libusb is needed])]
  4684. fi
  4685. OSJEEPS=jeeps/gpslibusb.o
  4686. CFLAGS="$OCFLAGS"
  4687. fi
  4688. ;;
  4689. *)
  4690. GBSER=gbser_posix.o
  4691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb" >&5
  4692. $as_echo_n "checking for libusb... " >&6; }
  4693. if test "$with_libusb" = no ; then
  4694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: check not done" >&5
  4695. $as_echo "check not done" >&6; }
  4696. OSJEEPS=jeeps/gpsusbstub.o
  4697. else
  4698. # Extract the first word of "libusb-config", so it can be a program name with args.
  4699. set dummy libusb-config; ac_word=$2
  4700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4701. $as_echo_n "checking for $ac_word... " >&6; }
  4702. if ${ac_cv_prog_LIBUSBCONFIG+:} false; then :
  4703. $as_echo_n "(cached) " >&6
  4704. else
  4705. if test -n "$LIBUSBCONFIG"; then
  4706. ac_cv_prog_LIBUSBCONFIG="$LIBUSBCONFIG" # Let the user override the test.
  4707. else
  4708. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4709. for as_dir in $PATH
  4710. do
  4711. IFS=$as_save_IFS
  4712. test -z "$as_dir" && as_dir=.
  4713. for ac_exec_ext in '' $ac_executable_extensions; do
  4714. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4715. ac_cv_prog_LIBUSBCONFIG="true"
  4716. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4717. break 2
  4718. fi
  4719. done
  4720. done
  4721. IFS=$as_save_IFS
  4722. test -z "$ac_cv_prog_LIBUSBCONFIG" && ac_cv_prog_LIBUSBCONFIG="false"
  4723. fi
  4724. fi
  4725. LIBUSBCONFIG=$ac_cv_prog_LIBUSBCONFIG
  4726. if test -n "$LIBUSBCONFIG"; then
  4727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBUSBCONFIG" >&5
  4728. $as_echo "$LIBUSBCONFIG" >&6; }
  4729. else
  4730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4731. $as_echo "no" >&6; }
  4732. fi
  4733. if test "$LIBUSBCONFIG" = true; then
  4734. OLDFLAGS=$LDFLAGS
  4735. OCFLAGS=$CFLAGS
  4736. LDFLAGS="$LDFLAGS `libusb-config --libs`"
  4737. CFLAGS="$OCFLAGS `libusb-config --cflags`"
  4738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usb_interrupt_read in -lusb" >&5
  4739. $as_echo_n "checking for usb_interrupt_read in -lusb... " >&6; }
  4740. if ${ac_cv_lib_usb_usb_interrupt_read+:} false; then :
  4741. $as_echo_n "(cached) " >&6
  4742. else
  4743. ac_check_lib_save_LIBS=$LIBS
  4744. LIBS="-lusb $LIBS"
  4745. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4746. /* end confdefs.h. */
  4747. /* Override any GCC internal prototype to avoid an error.
  4748. Use char because int might match the return type of a GCC
  4749. builtin and then its argument prototype would still apply. */
  4750. #ifdef __cplusplus
  4751. extern "C"
  4752. #endif
  4753. char usb_interrupt_read ();
  4754. int
  4755. main ()
  4756. {
  4757. return usb_interrupt_read ();
  4758. ;
  4759. return 0;
  4760. }
  4761. _ACEOF
  4762. if ac_fn_cxx_try_link "$LINENO"; then :
  4763. ac_cv_lib_usb_usb_interrupt_read=yes
  4764. else
  4765. ac_cv_lib_usb_usb_interrupt_read=no
  4766. fi
  4767. rm -f core conftest.err conftest.$ac_objext \
  4768. conftest$ac_exeext conftest.$ac_ext
  4769. LIBS=$ac_check_lib_save_LIBS
  4770. fi
  4771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_usb_interrupt_read" >&5
  4772. $as_echo "$ac_cv_lib_usb_usb_interrupt_read" >&6; }
  4773. if test "x$ac_cv_lib_usb_usb_interrupt_read" = xyes; then :
  4774. $as_echo "#define HAVE_LIBUSB 1" >>confdefs.h
  4775. USB_CFLAGS="`libusb-config --cflags`"
  4776. USB_LIBS="`libusb-config --libs`"
  4777. # ,[AC_MSG_ERROR([libusb >= 0.1.8 is needed])]
  4778. fi
  4779. OSJEEPS=jeeps/gpslibusb.o
  4780. CFLAGS="$OCFLAGS"
  4781. # LIBS="$LIBS `libusb-config --libs`"
  4782. else
  4783. OSJEEPS=jeeps/gpsusbstub.o
  4784. fi
  4785. fi
  4786. ;;
  4787. esac
  4788. case "$target" in
  4789. *-linux-*)
  4790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux HID interface" >&5
  4791. $as_echo_n "checking for Linux HID interface... " >&6; }
  4792. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4793. /* end confdefs.h. */
  4794. #include <sys/ioctl.h>
  4795. #include <linux/types.h>
  4796. #include <linux/hiddev.h>
  4797. #include <linux/hidraw.h>
  4798. void f(void) {
  4799. struct hidraw_devinfo info;
  4800. struct hiddev_field_info finfo;
  4801. struct hiddev_usage_ref_multi urefm;
  4802. struct hiddev_report_info rinfo;
  4803. ioctl(0, HIDIOCGRAWINFO, &info);
  4804. ioctl(0, HIDIOCGFIELDINFO, &finfo);
  4805. ioctl(0, HIDIOCSUSAGES, &urefm);
  4806. ioctl(0, HIDIOCSREPORT, &rinfo);
  4807. }
  4808. _ACEOF
  4809. if ac_fn_cxx_try_compile "$LINENO"; then :
  4810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4811. $as_echo "yes" >&6; }
  4812. $as_echo "#define HAVE_LINUX_HID 1" >>confdefs.h
  4813. else
  4814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4815. $as_echo "no" >&6; }
  4816. fi
  4817. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4818. ;;
  4819. esac
  4820. case "$target" in
  4821. *-*-darwin*)
  4822. ;;
  4823. *)
  4824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for reduce relocations" >&5
  4825. $as_echo_n "checking for reduce relocations... " >&6; }
  4826. OCPPFLAGS="$CPPFLAGS"
  4827. CPPFLAGS="$CPPFLAGS -I$QT_INC"
  4828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4829. /* end confdefs.h. */
  4830. #include <QtCore/QString>
  4831. void f(void) {
  4832. }
  4833. _ACEOF
  4834. if ac_fn_cxx_try_compile "$LINENO"; then :
  4835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4836. $as_echo "no" >&6; }
  4837. else
  4838. OCXXFLAGS="$CXXFLAGS"
  4839. CXXFLAGS="$CXXFLAGS -fPIC"
  4840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4841. /* end confdefs.h. */
  4842. #include <QtCore/QString>
  4843. void f(void) {
  4844. }
  4845. _ACEOF
  4846. if ac_fn_cxx_try_compile "$LINENO"; then :
  4847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4848. $as_echo "yes" >&6; }
  4849. CFLAGS="$CFLAGS -fPIC"
  4850. else
  4851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
  4852. $as_echo "unknown" >&6; }
  4853. CXXFLAGS="$OCXXFLAGS"
  4854. fi
  4855. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4856. fi
  4857. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4858. CPPFLAGS="$OCPPFLAGS"
  4859. ;;
  4860. esac
  4861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random stuff to make you feel better" >&5
  4862. $as_echo_n "checking for random stuff to make you feel better... " >&6; }
  4863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  4864. $as_echo "failed" >&6; }
  4865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for efence" >&5
  4866. $as_echo_n "checking for efence... " >&6; }
  4867. # Check whether --enable-efence was given.
  4868. if test "${enable_efence+set}" = set; then :
  4869. enableval=$enable_efence; if test "$enable_efence" != "no" ; then
  4870. EFENCE_LIB=-lefence
  4871. GPSBABEL_DEBUG=gpsbabel-debug
  4872. INSTALL_DEBUG=install-debug
  4873. fi
  4874. fi
  4875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EFENCE_LIB" >&5
  4876. $as_echo "$EFENCE_LIB" >&6; }
  4877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for docdir" >&5
  4878. $as_echo_n "checking for docdir... " >&6; }
  4879. # Check whether --with-doc was given.
  4880. if test "${with_doc+set}" = set; then :
  4881. withval=$with_doc; DOCDIR="$withval"
  4882. else
  4883. DOCDIR="../babelweb/"
  4884. fi
  4885. # Checks for header files.
  4886. # AC_HEADER_STDC
  4887. # AC_CHECK_HEADERS([fcntl.h inttypes.h libintl.h limits.h malloc.h stddef.h stdint.h stdlib.h string.h strings.h sys/ioctl.h sys/time.h termios.h unistd.h])
  4888. # set up HAVE_STDARG_H for zlib.
  4889. for ac_header in stdarg.h
  4890. do :
  4891. ac_fn_cxx_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
  4892. if test "x$ac_cv_header_stdarg_h" = xyes; then :
  4893. cat >>confdefs.h <<_ACEOF
  4894. #define HAVE_STDARG_H 1
  4895. _ACEOF
  4896. fi
  4897. done
  4898. # Checks for typedefs, structures, and compiler characteristics.
  4899. # AC_C_CONST
  4900. # AC_C_INLINE
  4901. # AC_TYPE_OFF_T
  4902. # AC_TYPE_SIZE_T
  4903. # AC_HEADER_TIME
  4904. # AC_STRUCT_TM
  4905. # AC_STRUCT_TIMEZONE
  4906. # Checks for library functions.
  4907. # AC_FUNC_MALLOC
  4908. # AC_FUNC_MEMCMP
  4909. # AC_FUNC_MKTIME
  4910. # AC_FUNC_REALLOC
  4911. # AC_FUNC_SELECT_ARGTYPES
  4912. # AC_FUNC_STRFTIME
  4913. # AC_FUNC_STRTOD
  4914. # AC_FUNC_VPRINTF
  4915. # AC_CHECK_FUNCS([atexit floor localtime_r memmove memset pow select sqrt strchr strcspn strdup strerror strncasecmp strrchr strspn strstr strtol strtoul])
  4916. for ac_func in nanosleep sleep uname glob
  4917. do :
  4918. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4919. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4920. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  4921. cat >>confdefs.h <<_ACEOF
  4922. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4923. _ACEOF
  4924. fi
  4925. done
  4926. #
  4927. # There's probably some more "autoconfish" way to do this.
  4928. #
  4929. ac_config_files="$ac_config_files Makefile gbversion.h gui/setup.iss xmldoc/makedoc tools/mkcapabilities win32/gpsbabel.rc jeeps/Makefile shapelib/Makefile zlib/empty"
  4930. ac_config_files="$ac_config_files gui/makelinuxdist.sh"
  4931. cat >confcache <<\_ACEOF
  4932. # This file is a shell script that caches the results of configure
  4933. # tests run on this system so they can be shared between configure
  4934. # scripts and configure runs, see configure's option --config-cache.
  4935. # It is not useful on other systems. If it contains results you don't
  4936. # want to keep, you may remove or edit it.
  4937. #
  4938. # config.status only pays attention to the cache file if you give it
  4939. # the --recheck option to rerun configure.
  4940. #
  4941. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4942. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4943. # following values.
  4944. _ACEOF
  4945. # The following way of writing the cache mishandles newlines in values,
  4946. # but we know of no workaround that is simple, portable, and efficient.
  4947. # So, we kill variables containing newlines.
  4948. # Ultrix sh set writes to stderr and can't be redirected directly,
  4949. # and sets the high bit in the cache file unless we assign to the vars.
  4950. (
  4951. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4952. eval ac_val=\$$ac_var
  4953. case $ac_val in #(
  4954. *${as_nl}*)
  4955. case $ac_var in #(
  4956. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  4957. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  4958. esac
  4959. case $ac_var in #(
  4960. _ | IFS | as_nl) ;; #(
  4961. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  4962. *) { eval $ac_var=; unset $ac_var;} ;;
  4963. esac ;;
  4964. esac
  4965. done
  4966. (set) 2>&1 |
  4967. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4968. *${as_nl}ac_space=\ *)
  4969. # `set' does not quote correctly, so add quotes: double-quote
  4970. # substitution turns \\\\ into \\, and sed turns \\ into \.
  4971. sed -n \
  4972. "s/'/'\\\\''/g;
  4973. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4974. ;; #(
  4975. *)
  4976. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4977. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4978. ;;
  4979. esac |
  4980. sort
  4981. ) |
  4982. sed '
  4983. /^ac_cv_env_/b end
  4984. t clear
  4985. :clear
  4986. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4987. t end
  4988. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4989. :end' >>confcache
  4990. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4991. if test -w "$cache_file"; then
  4992. if test "x$cache_file" != "x/dev/null"; then
  4993. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  4994. $as_echo "$as_me: updating cache $cache_file" >&6;}
  4995. if test ! -f "$cache_file" || test -h "$cache_file"; then
  4996. cat confcache >"$cache_file"
  4997. else
  4998. case $cache_file in #(
  4999. */* | ?:*)
  5000. mv -f confcache "$cache_file"$$ &&
  5001. mv -f "$cache_file"$$ "$cache_file" ;; #(
  5002. *)
  5003. mv -f confcache "$cache_file" ;;
  5004. esac
  5005. fi
  5006. fi
  5007. else
  5008. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  5009. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5010. fi
  5011. fi
  5012. rm -f confcache
  5013. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  5014. # Let make expand exec_prefix.
  5015. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  5016. DEFS=-DHAVE_CONFIG_H
  5017. ac_libobjs=
  5018. ac_ltlibobjs=
  5019. U=
  5020. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  5021. # 1. Remove the extension, and $U if already installed.
  5022. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  5023. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  5024. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  5025. # will be set to the directory where LIBOBJS objects are built.
  5026. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  5027. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  5028. done
  5029. LIBOBJS=$ac_libobjs
  5030. LTLIBOBJS=$ac_ltlibobjs
  5031. : "${CONFIG_STATUS=./config.status}"
  5032. ac_write_fail=0
  5033. ac_clean_files_save=$ac_clean_files
  5034. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  5035. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  5036. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  5037. as_write_fail=0
  5038. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  5039. #! $SHELL
  5040. # Generated by $as_me.
  5041. # Run this file to recreate the current configuration.
  5042. # Compiler output produced by configure, useful for debugging
  5043. # configure, is in config.log if it exists.
  5044. debug=false
  5045. ac_cs_recheck=false
  5046. ac_cs_silent=false
  5047. SHELL=\${CONFIG_SHELL-$SHELL}
  5048. export SHELL
  5049. _ASEOF
  5050. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  5051. ## -------------------- ##
  5052. ## M4sh Initialization. ##
  5053. ## -------------------- ##
  5054. # Be more Bourne compatible
  5055. DUALCASE=1; export DUALCASE # for MKS sh
  5056. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  5057. emulate sh
  5058. NULLCMD=:
  5059. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  5060. # is contrary to our usage. Disable this feature.
  5061. alias -g '${1+"$@"}'='"$@"'
  5062. setopt NO_GLOB_SUBST
  5063. else
  5064. case `(set -o) 2>/dev/null` in #(
  5065. *posix*) :
  5066. set -o posix ;; #(
  5067. *) :
  5068. ;;
  5069. esac
  5070. fi
  5071. as_nl='
  5072. '
  5073. export as_nl
  5074. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  5075. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  5076. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  5077. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  5078. # Prefer a ksh shell builtin over an external printf program on Solaris,
  5079. # but without wasting forks for bash or zsh.
  5080. if test -z "$BASH_VERSION$ZSH_VERSION" \
  5081. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  5082. as_echo='print -r --'
  5083. as_echo_n='print -rn --'
  5084. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  5085. as_echo='printf %s\n'
  5086. as_echo_n='printf %s'
  5087. else
  5088. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  5089. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  5090. as_echo_n='/usr/ucb/echo -n'
  5091. else
  5092. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  5093. as_echo_n_body='eval
  5094. arg=$1;
  5095. case $arg in #(
  5096. *"$as_nl"*)
  5097. expr "X$arg" : "X\\(.*\\)$as_nl";
  5098. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  5099. esac;
  5100. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  5101. '
  5102. export as_echo_n_body
  5103. as_echo_n='sh -c $as_echo_n_body as_echo'
  5104. fi
  5105. export as_echo_body
  5106. as_echo='sh -c $as_echo_body as_echo'
  5107. fi
  5108. # The user is always right.
  5109. if test "${PATH_SEPARATOR+set}" != set; then
  5110. PATH_SEPARATOR=:
  5111. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  5112. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  5113. PATH_SEPARATOR=';'
  5114. }
  5115. fi
  5116. # IFS
  5117. # We need space, tab and new line, in precisely that order. Quoting is
  5118. # there to prevent editors from complaining about space-tab.
  5119. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  5120. # splitting by setting IFS to empty value.)
  5121. IFS=" "" $as_nl"
  5122. # Find who we are. Look in the path if we contain no directory separator.
  5123. as_myself=
  5124. case $0 in #((
  5125. *[\\/]* ) as_myself=$0 ;;
  5126. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5127. for as_dir in $PATH
  5128. do
  5129. IFS=$as_save_IFS
  5130. test -z "$as_dir" && as_dir=.
  5131. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  5132. done
  5133. IFS=$as_save_IFS
  5134. ;;
  5135. esac
  5136. # We did not find ourselves, most probably we were run as `sh COMMAND'
  5137. # in which case we are not to be found in the path.
  5138. if test "x$as_myself" = x; then
  5139. as_myself=$0
  5140. fi
  5141. if test ! -f "$as_myself"; then
  5142. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  5143. exit 1
  5144. fi
  5145. # Unset variables that we do not need and which cause bugs (e.g. in
  5146. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  5147. # suppresses any "Segmentation fault" message there. '((' could
  5148. # trigger a bug in pdksh 5.2.14.
  5149. for as_var in BASH_ENV ENV MAIL MAILPATH
  5150. do eval test x\${$as_var+set} = xset \
  5151. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  5152. done
  5153. PS1='$ '
  5154. PS2='> '
  5155. PS4='+ '
  5156. # NLS nuisances.
  5157. LC_ALL=C
  5158. export LC_ALL
  5159. LANGUAGE=C
  5160. export LANGUAGE
  5161. # CDPATH.
  5162. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  5163. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  5164. # ----------------------------------------
  5165. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  5166. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  5167. # script with STATUS, using 1 if that was 0.
  5168. as_fn_error ()
  5169. {
  5170. as_status=$1; test $as_status -eq 0 && as_status=1
  5171. if test "$4"; then
  5172. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  5173. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  5174. fi
  5175. $as_echo "$as_me: error: $2" >&2
  5176. as_fn_exit $as_status
  5177. } # as_fn_error
  5178. # as_fn_set_status STATUS
  5179. # -----------------------
  5180. # Set $? to STATUS, without forking.
  5181. as_fn_set_status ()
  5182. {
  5183. return $1
  5184. } # as_fn_set_status
  5185. # as_fn_exit STATUS
  5186. # -----------------
  5187. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  5188. as_fn_exit ()
  5189. {
  5190. set +e
  5191. as_fn_set_status $1
  5192. exit $1
  5193. } # as_fn_exit
  5194. # as_fn_unset VAR
  5195. # ---------------
  5196. # Portably unset VAR.
  5197. as_fn_unset ()
  5198. {
  5199. { eval $1=; unset $1;}
  5200. }
  5201. as_unset=as_fn_unset
  5202. # as_fn_append VAR VALUE
  5203. # ----------------------
  5204. # Append the text in VALUE to the end of the definition contained in VAR. Take
  5205. # advantage of any shell optimizations that allow amortized linear growth over
  5206. # repeated appends, instead of the typical quadratic growth present in naive
  5207. # implementations.
  5208. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  5209. eval 'as_fn_append ()
  5210. {
  5211. eval $1+=\$2
  5212. }'
  5213. else
  5214. as_fn_append ()
  5215. {
  5216. eval $1=\$$1\$2
  5217. }
  5218. fi # as_fn_append
  5219. # as_fn_arith ARG...
  5220. # ------------------
  5221. # Perform arithmetic evaluation on the ARGs, and store the result in the
  5222. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  5223. # must be portable across $(()) and expr.
  5224. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  5225. eval 'as_fn_arith ()
  5226. {
  5227. as_val=$(( $* ))
  5228. }'
  5229. else
  5230. as_fn_arith ()
  5231. {
  5232. as_val=`expr "$@" || test $? -eq 1`
  5233. }
  5234. fi # as_fn_arith
  5235. if expr a : '\(a\)' >/dev/null 2>&1 &&
  5236. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  5237. as_expr=expr
  5238. else
  5239. as_expr=false
  5240. fi
  5241. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  5242. as_basename=basename
  5243. else
  5244. as_basename=false
  5245. fi
  5246. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  5247. as_dirname=dirname
  5248. else
  5249. as_dirname=false
  5250. fi
  5251. as_me=`$as_basename -- "$0" ||
  5252. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  5253. X"$0" : 'X\(//\)$' \| \
  5254. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  5255. $as_echo X/"$0" |
  5256. sed '/^.*\/\([^/][^/]*\)\/*$/{
  5257. s//\1/
  5258. q
  5259. }
  5260. /^X\/\(\/\/\)$/{
  5261. s//\1/
  5262. q
  5263. }
  5264. /^X\/\(\/\).*/{
  5265. s//\1/
  5266. q
  5267. }
  5268. s/.*/./; q'`
  5269. # Avoid depending upon Character Ranges.
  5270. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  5271. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  5272. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  5273. as_cr_digits='0123456789'
  5274. as_cr_alnum=$as_cr_Letters$as_cr_digits
  5275. ECHO_C= ECHO_N= ECHO_T=
  5276. case `echo -n x` in #(((((
  5277. -n*)
  5278. case `echo 'xy\c'` in
  5279. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  5280. xy) ECHO_C='\c';;
  5281. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  5282. ECHO_T=' ';;
  5283. esac;;
  5284. *)
  5285. ECHO_N='-n';;
  5286. esac
  5287. rm -f conf$$ conf$$.exe conf$$.file
  5288. if test -d conf$$.dir; then
  5289. rm -f conf$$.dir/conf$$.file
  5290. else
  5291. rm -f conf$$.dir
  5292. mkdir conf$$.dir 2>/dev/null
  5293. fi
  5294. if (echo >conf$$.file) 2>/dev/null; then
  5295. if ln -s conf$$.file conf$$ 2>/dev/null; then
  5296. as_ln_s='ln -s'
  5297. # ... but there are two gotchas:
  5298. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  5299. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  5300. # In both cases, we have to default to `cp -pR'.
  5301. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  5302. as_ln_s='cp -pR'
  5303. elif ln conf$$.file conf$$ 2>/dev/null; then
  5304. as_ln_s=ln
  5305. else
  5306. as_ln_s='cp -pR'
  5307. fi
  5308. else
  5309. as_ln_s='cp -pR'
  5310. fi
  5311. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  5312. rmdir conf$$.dir 2>/dev/null
  5313. # as_fn_mkdir_p
  5314. # -------------
  5315. # Create "$as_dir" as a directory, including parents if necessary.
  5316. as_fn_mkdir_p ()
  5317. {
  5318. case $as_dir in #(
  5319. -*) as_dir=./$as_dir;;
  5320. esac
  5321. test -d "$as_dir" || eval $as_mkdir_p || {
  5322. as_dirs=
  5323. while :; do
  5324. case $as_dir in #(
  5325. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  5326. *) as_qdir=$as_dir;;
  5327. esac
  5328. as_dirs="'$as_qdir' $as_dirs"
  5329. as_dir=`$as_dirname -- "$as_dir" ||
  5330. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5331. X"$as_dir" : 'X\(//\)[^/]' \| \
  5332. X"$as_dir" : 'X\(//\)$' \| \
  5333. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  5334. $as_echo X"$as_dir" |
  5335. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  5336. s//\1/
  5337. q
  5338. }
  5339. /^X\(\/\/\)[^/].*/{
  5340. s//\1/
  5341. q
  5342. }
  5343. /^X\(\/\/\)$/{
  5344. s//\1/
  5345. q
  5346. }
  5347. /^X\(\/\).*/{
  5348. s//\1/
  5349. q
  5350. }
  5351. s/.*/./; q'`
  5352. test -d "$as_dir" && break
  5353. done
  5354. test -z "$as_dirs" || eval "mkdir $as_dirs"
  5355. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  5356. } # as_fn_mkdir_p
  5357. if mkdir -p . 2>/dev/null; then
  5358. as_mkdir_p='mkdir -p "$as_dir"'
  5359. else
  5360. test -d ./-p && rmdir ./-p
  5361. as_mkdir_p=false
  5362. fi
  5363. # as_fn_executable_p FILE
  5364. # -----------------------
  5365. # Test if FILE is an executable regular file.
  5366. as_fn_executable_p ()
  5367. {
  5368. test -f "$1" && test -x "$1"
  5369. } # as_fn_executable_p
  5370. as_test_x='test -x'
  5371. as_executable_p=as_fn_executable_p
  5372. # Sed expression to map a string onto a valid CPP name.
  5373. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  5374. # Sed expression to map a string onto a valid variable name.
  5375. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  5376. exec 6>&1
  5377. ## ----------------------------------- ##
  5378. ## Main body of $CONFIG_STATUS script. ##
  5379. ## ----------------------------------- ##
  5380. _ASEOF
  5381. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  5382. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5383. # Save the log message, to keep $0 and so on meaningful, and to
  5384. # report actual input values of CONFIG_FILES etc. instead of their
  5385. # values after options handling.
  5386. ac_log="
  5387. This file was extended by GPSBabel $as_me 1.5.4, which was
  5388. generated by GNU Autoconf 2.69. Invocation command line was
  5389. CONFIG_FILES = $CONFIG_FILES
  5390. CONFIG_HEADERS = $CONFIG_HEADERS
  5391. CONFIG_LINKS = $CONFIG_LINKS
  5392. CONFIG_COMMANDS = $CONFIG_COMMANDS
  5393. $ $0 $@
  5394. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  5395. "
  5396. _ACEOF
  5397. case $ac_config_files in *"
  5398. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  5399. esac
  5400. case $ac_config_headers in *"
  5401. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  5402. esac
  5403. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5404. # Files that config.status was made for.
  5405. config_files="$ac_config_files"
  5406. config_headers="$ac_config_headers"
  5407. _ACEOF
  5408. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5409. ac_cs_usage="\
  5410. \`$as_me' instantiates files and other configuration actions
  5411. from templates according to the current configuration. Unless the files
  5412. and actions are specified as TAGs, all are instantiated by default.
  5413. Usage: $0 [OPTION]... [TAG]...
  5414. -h, --help print this help, then exit
  5415. -V, --version print version number and configuration settings, then exit
  5416. --config print configuration, then exit
  5417. -q, --quiet, --silent
  5418. do not print progress messages
  5419. -d, --debug don't remove temporary files
  5420. --recheck update $as_me by reconfiguring in the same conditions
  5421. --file=FILE[:TEMPLATE]
  5422. instantiate the configuration file FILE
  5423. --header=FILE[:TEMPLATE]
  5424. instantiate the configuration header FILE
  5425. Configuration files:
  5426. $config_files
  5427. Configuration headers:
  5428. $config_headers
  5429. Report bugs to <BUG-REPORT-ADDRESS>."
  5430. _ACEOF
  5431. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5432. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  5433. ac_cs_version="\\
  5434. GPSBabel config.status 1.5.4
  5435. configured by $0, generated by GNU Autoconf 2.69,
  5436. with options \\"\$ac_cs_config\\"
  5437. Copyright (C) 2012 Free Software Foundation, Inc.
  5438. This config.status script is free software; the Free Software Foundation
  5439. gives unlimited permission to copy, distribute and modify it."
  5440. ac_pwd='$ac_pwd'
  5441. srcdir='$srcdir'
  5442. INSTALL='$INSTALL'
  5443. test -n "\$AWK" || AWK=awk
  5444. _ACEOF
  5445. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5446. # The default lists apply if the user does not specify any file.
  5447. ac_need_defaults=:
  5448. while test $# != 0
  5449. do
  5450. case $1 in
  5451. --*=?*)
  5452. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  5453. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  5454. ac_shift=:
  5455. ;;
  5456. --*=)
  5457. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  5458. ac_optarg=
  5459. ac_shift=:
  5460. ;;
  5461. *)
  5462. ac_option=$1
  5463. ac_optarg=$2
  5464. ac_shift=shift
  5465. ;;
  5466. esac
  5467. case $ac_option in
  5468. # Handling of the options.
  5469. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  5470. ac_cs_recheck=: ;;
  5471. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  5472. $as_echo "$ac_cs_version"; exit ;;
  5473. --config | --confi | --conf | --con | --co | --c )
  5474. $as_echo "$ac_cs_config"; exit ;;
  5475. --debug | --debu | --deb | --de | --d | -d )
  5476. debug=: ;;
  5477. --file | --fil | --fi | --f )
  5478. $ac_shift
  5479. case $ac_optarg in
  5480. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  5481. '') as_fn_error $? "missing file argument" ;;
  5482. esac
  5483. as_fn_append CONFIG_FILES " '$ac_optarg'"
  5484. ac_need_defaults=false;;
  5485. --header | --heade | --head | --hea )
  5486. $ac_shift
  5487. case $ac_optarg in
  5488. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  5489. esac
  5490. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  5491. ac_need_defaults=false;;
  5492. --he | --h)
  5493. # Conflict between --help and --header
  5494. as_fn_error $? "ambiguous option: \`$1'
  5495. Try \`$0 --help' for more information.";;
  5496. --help | --hel | -h )
  5497. $as_echo "$ac_cs_usage"; exit ;;
  5498. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  5499. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  5500. ac_cs_silent=: ;;
  5501. # This is an error.
  5502. -*) as_fn_error $? "unrecognized option: \`$1'
  5503. Try \`$0 --help' for more information." ;;
  5504. *) as_fn_append ac_config_targets " $1"
  5505. ac_need_defaults=false ;;
  5506. esac
  5507. shift
  5508. done
  5509. ac_configure_extra_args=
  5510. if $ac_cs_silent; then
  5511. exec 6>/dev/null
  5512. ac_configure_extra_args="$ac_configure_extra_args --silent"
  5513. fi
  5514. _ACEOF
  5515. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5516. if \$ac_cs_recheck; then
  5517. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  5518. shift
  5519. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  5520. CONFIG_SHELL='$SHELL'
  5521. export CONFIG_SHELL
  5522. exec "\$@"
  5523. fi
  5524. _ACEOF
  5525. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5526. exec 5>>config.log
  5527. {
  5528. echo
  5529. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  5530. ## Running $as_me. ##
  5531. _ASBOX
  5532. $as_echo "$ac_log"
  5533. } >&5
  5534. _ACEOF
  5535. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5536. _ACEOF
  5537. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5538. # Handling of arguments.
  5539. for ac_config_target in $ac_config_targets
  5540. do
  5541. case $ac_config_target in
  5542. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  5543. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  5544. "gbversion.h") CONFIG_FILES="$CONFIG_FILES gbversion.h" ;;
  5545. "gui/setup.iss") CONFIG_FILES="$CONFIG_FILES gui/setup.iss" ;;
  5546. "xmldoc/makedoc") CONFIG_FILES="$CONFIG_FILES xmldoc/makedoc" ;;
  5547. "tools/mkcapabilities") CONFIG_FILES="$CONFIG_FILES tools/mkcapabilities" ;;
  5548. "win32/gpsbabel.rc") CONFIG_FILES="$CONFIG_FILES win32/gpsbabel.rc" ;;
  5549. "jeeps/Makefile") CONFIG_FILES="$CONFIG_FILES jeeps/Makefile" ;;
  5550. "shapelib/Makefile") CONFIG_FILES="$CONFIG_FILES shapelib/Makefile" ;;
  5551. "zlib/empty") CONFIG_FILES="$CONFIG_FILES zlib/empty" ;;
  5552. "gui/makelinuxdist.sh") CONFIG_FILES="$CONFIG_FILES gui/makelinuxdist.sh" ;;
  5553. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  5554. esac
  5555. done
  5556. # If the user did not use the arguments to specify the items to instantiate,
  5557. # then the envvar interface is used. Set only those that are not.
  5558. # We use the long form for the default assignment because of an extremely
  5559. # bizarre bug on SunOS 4.1.3.
  5560. if $ac_need_defaults; then
  5561. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  5562. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  5563. fi
  5564. # Have a temporary directory for convenience. Make it in the build tree
  5565. # simply because there is no reason against having it here, and in addition,
  5566. # creating and moving files from /tmp can sometimes cause problems.
  5567. # Hook for its removal unless debugging.
  5568. # Note that there is a small window in which the directory will not be cleaned:
  5569. # after its creation but before its name has been assigned to `$tmp'.
  5570. $debug ||
  5571. {
  5572. tmp= ac_tmp=
  5573. trap 'exit_status=$?
  5574. : "${ac_tmp:=$tmp}"
  5575. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  5576. ' 0
  5577. trap 'as_fn_exit 1' 1 2 13 15
  5578. }
  5579. # Create a (secure) tmp directory for tmp files.
  5580. {
  5581. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  5582. test -d "$tmp"
  5583. } ||
  5584. {
  5585. tmp=./conf$$-$RANDOM
  5586. (umask 077 && mkdir "$tmp")
  5587. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  5588. ac_tmp=$tmp
  5589. # Set up the scripts for CONFIG_FILES section.
  5590. # No need to generate them if there are no CONFIG_FILES.
  5591. # This happens for instance with `./config.status config.h'.
  5592. if test -n "$CONFIG_FILES"; then
  5593. ac_cr=`echo X | tr X '\015'`
  5594. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  5595. # But we know of no other shell where ac_cr would be empty at this
  5596. # point, so we can use a bashism as a fallback.
  5597. if test "x$ac_cr" = x; then
  5598. eval ac_cr=\$\'\\r\'
  5599. fi
  5600. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  5601. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  5602. ac_cs_awk_cr='\\r'
  5603. else
  5604. ac_cs_awk_cr=$ac_cr
  5605. fi
  5606. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  5607. _ACEOF
  5608. {
  5609. echo "cat >conf$$subs.awk <<_ACEOF" &&
  5610. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  5611. echo "_ACEOF"
  5612. } >conf$$subs.sh ||
  5613. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  5614. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  5615. ac_delim='%!_!# '
  5616. for ac_last_try in false false false false false :; do
  5617. . ./conf$$subs.sh ||
  5618. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  5619. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  5620. if test $ac_delim_n = $ac_delim_num; then
  5621. break
  5622. elif $ac_last_try; then
  5623. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  5624. else
  5625. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  5626. fi
  5627. done
  5628. rm -f conf$$subs.sh
  5629. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5630. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  5631. _ACEOF
  5632. sed -n '
  5633. h
  5634. s/^/S["/; s/!.*/"]=/
  5635. p
  5636. g
  5637. s/^[^!]*!//
  5638. :repl
  5639. t repl
  5640. s/'"$ac_delim"'$//
  5641. t delim
  5642. :nl
  5643. h
  5644. s/\(.\{148\}\)..*/\1/
  5645. t more1
  5646. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  5647. p
  5648. n
  5649. b repl
  5650. :more1
  5651. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  5652. p
  5653. g
  5654. s/.\{148\}//
  5655. t nl
  5656. :delim
  5657. h
  5658. s/\(.\{148\}\)..*/\1/
  5659. t more2
  5660. s/["\\]/\\&/g; s/^/"/; s/$/"/
  5661. p
  5662. b
  5663. :more2
  5664. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  5665. p
  5666. g
  5667. s/.\{148\}//
  5668. t delim
  5669. ' <conf$$subs.awk | sed '
  5670. /^[^""]/{
  5671. N
  5672. s/\n//
  5673. }
  5674. ' >>$CONFIG_STATUS || ac_write_fail=1
  5675. rm -f conf$$subs.awk
  5676. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5677. _ACAWK
  5678. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  5679. for (key in S) S_is_set[key] = 1
  5680. FS = ""
  5681. }
  5682. {
  5683. line = $ 0
  5684. nfields = split(line, field, "@")
  5685. substed = 0
  5686. len = length(field[1])
  5687. for (i = 2; i < nfields; i++) {
  5688. key = field[i]
  5689. keylen = length(key)
  5690. if (S_is_set[key]) {
  5691. value = S[key]
  5692. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  5693. len += length(value) + length(field[++i])
  5694. substed = 1
  5695. } else
  5696. len += 1 + keylen
  5697. }
  5698. print line
  5699. }
  5700. _ACAWK
  5701. _ACEOF
  5702. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5703. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  5704. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  5705. else
  5706. cat
  5707. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  5708. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  5709. _ACEOF
  5710. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  5711. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  5712. # trailing colons and then remove the whole line if VPATH becomes empty
  5713. # (actually we leave an empty line to preserve line numbers).
  5714. if test "x$srcdir" = x.; then
  5715. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  5716. h
  5717. s///
  5718. s/^/:/
  5719. s/[ ]*$/:/
  5720. s/:\$(srcdir):/:/g
  5721. s/:\${srcdir}:/:/g
  5722. s/:@srcdir@:/:/g
  5723. s/^:*//
  5724. s/:*$//
  5725. x
  5726. s/\(=[ ]*\).*/\1/
  5727. G
  5728. s/\n//
  5729. s/^[^=]*=[ ]*$//
  5730. }'
  5731. fi
  5732. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5733. fi # test -n "$CONFIG_FILES"
  5734. # Set up the scripts for CONFIG_HEADERS section.
  5735. # No need to generate them if there are no CONFIG_HEADERS.
  5736. # This happens for instance with `./config.status Makefile'.
  5737. if test -n "$CONFIG_HEADERS"; then
  5738. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  5739. BEGIN {
  5740. _ACEOF
  5741. # Transform confdefs.h into an awk script `defines.awk', embedded as
  5742. # here-document in config.status, that substitutes the proper values into
  5743. # config.h.in to produce config.h.
  5744. # Create a delimiter string that does not exist in confdefs.h, to ease
  5745. # handling of long lines.
  5746. ac_delim='%!_!# '
  5747. for ac_last_try in false false :; do
  5748. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  5749. if test -z "$ac_tt"; then
  5750. break
  5751. elif $ac_last_try; then
  5752. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  5753. else
  5754. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  5755. fi
  5756. done
  5757. # For the awk script, D is an array of macro values keyed by name,
  5758. # likewise P contains macro parameters if any. Preserve backslash
  5759. # newline sequences.
  5760. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  5761. sed -n '
  5762. s/.\{148\}/&'"$ac_delim"'/g
  5763. t rset
  5764. :rset
  5765. s/^[ ]*#[ ]*define[ ][ ]*/ /
  5766. t def
  5767. d
  5768. :def
  5769. s/\\$//
  5770. t bsnl
  5771. s/["\\]/\\&/g
  5772. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  5773. D["\1"]=" \3"/p
  5774. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  5775. d
  5776. :bsnl
  5777. s/["\\]/\\&/g
  5778. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  5779. D["\1"]=" \3\\\\\\n"\\/p
  5780. t cont
  5781. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  5782. t cont
  5783. d
  5784. :cont
  5785. n
  5786. s/.\{148\}/&'"$ac_delim"'/g
  5787. t clear
  5788. :clear
  5789. s/\\$//
  5790. t bsnlc
  5791. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  5792. d
  5793. :bsnlc
  5794. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  5795. b cont
  5796. ' <confdefs.h | sed '
  5797. s/'"$ac_delim"'/"\\\
  5798. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  5799. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5800. for (key in D) D_is_set[key] = 1
  5801. FS = ""
  5802. }
  5803. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  5804. line = \$ 0
  5805. split(line, arg, " ")
  5806. if (arg[1] == "#") {
  5807. defundef = arg[2]
  5808. mac1 = arg[3]
  5809. } else {
  5810. defundef = substr(arg[1], 2)
  5811. mac1 = arg[2]
  5812. }
  5813. split(mac1, mac2, "(") #)
  5814. macro = mac2[1]
  5815. prefix = substr(line, 1, index(line, defundef) - 1)
  5816. if (D_is_set[macro]) {
  5817. # Preserve the white space surrounding the "#".
  5818. print prefix "define", macro P[macro] D[macro]
  5819. next
  5820. } else {
  5821. # Replace #undef with comments. This is necessary, for example,
  5822. # in the case of _POSIX_SOURCE, which is predefined and required
  5823. # on some systems where configure will not decide to define it.
  5824. if (defundef == "undef") {
  5825. print "/*", prefix defundef, macro, "*/"
  5826. next
  5827. }
  5828. }
  5829. }
  5830. { print }
  5831. _ACAWK
  5832. _ACEOF
  5833. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5834. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  5835. fi # test -n "$CONFIG_HEADERS"
  5836. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  5837. shift
  5838. for ac_tag
  5839. do
  5840. case $ac_tag in
  5841. :[FHLC]) ac_mode=$ac_tag; continue;;
  5842. esac
  5843. case $ac_mode$ac_tag in
  5844. :[FHL]*:*);;
  5845. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  5846. :[FH]-) ac_tag=-:-;;
  5847. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  5848. esac
  5849. ac_save_IFS=$IFS
  5850. IFS=:
  5851. set x $ac_tag
  5852. IFS=$ac_save_IFS
  5853. shift
  5854. ac_file=$1
  5855. shift
  5856. case $ac_mode in
  5857. :L) ac_source=$1;;
  5858. :[FH])
  5859. ac_file_inputs=
  5860. for ac_f
  5861. do
  5862. case $ac_f in
  5863. -) ac_f="$ac_tmp/stdin";;
  5864. *) # Look for the file first in the build tree, then in the source tree
  5865. # (if the path is not absolute). The absolute path cannot be DOS-style,
  5866. # because $ac_f cannot contain `:'.
  5867. test -f "$ac_f" ||
  5868. case $ac_f in
  5869. [\\/$]*) false;;
  5870. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  5871. esac ||
  5872. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  5873. esac
  5874. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  5875. as_fn_append ac_file_inputs " '$ac_f'"
  5876. done
  5877. # Let's still pretend it is `configure' which instantiates (i.e., don't
  5878. # use $as_me), people would be surprised to read:
  5879. # /* config.h. Generated by config.status. */
  5880. configure_input='Generated from '`
  5881. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  5882. `' by configure.'
  5883. if test x"$ac_file" != x-; then
  5884. configure_input="$ac_file. $configure_input"
  5885. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  5886. $as_echo "$as_me: creating $ac_file" >&6;}
  5887. fi
  5888. # Neutralize special characters interpreted by sed in replacement strings.
  5889. case $configure_input in #(
  5890. *\&* | *\|* | *\\* )
  5891. ac_sed_conf_input=`$as_echo "$configure_input" |
  5892. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  5893. *) ac_sed_conf_input=$configure_input;;
  5894. esac
  5895. case $ac_tag in
  5896. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  5897. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  5898. esac
  5899. ;;
  5900. esac
  5901. ac_dir=`$as_dirname -- "$ac_file" ||
  5902. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5903. X"$ac_file" : 'X\(//\)[^/]' \| \
  5904. X"$ac_file" : 'X\(//\)$' \| \
  5905. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  5906. $as_echo X"$ac_file" |
  5907. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  5908. s//\1/
  5909. q
  5910. }
  5911. /^X\(\/\/\)[^/].*/{
  5912. s//\1/
  5913. q
  5914. }
  5915. /^X\(\/\/\)$/{
  5916. s//\1/
  5917. q
  5918. }
  5919. /^X\(\/\).*/{
  5920. s//\1/
  5921. q
  5922. }
  5923. s/.*/./; q'`
  5924. as_dir="$ac_dir"; as_fn_mkdir_p
  5925. ac_builddir=.
  5926. case "$ac_dir" in
  5927. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  5928. *)
  5929. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  5930. # A ".." for each directory in $ac_dir_suffix.
  5931. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  5932. case $ac_top_builddir_sub in
  5933. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  5934. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  5935. esac ;;
  5936. esac
  5937. ac_abs_top_builddir=$ac_pwd
  5938. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  5939. # for backward compatibility:
  5940. ac_top_builddir=$ac_top_build_prefix
  5941. case $srcdir in
  5942. .) # We are building in place.
  5943. ac_srcdir=.
  5944. ac_top_srcdir=$ac_top_builddir_sub
  5945. ac_abs_top_srcdir=$ac_pwd ;;
  5946. [\\/]* | ?:[\\/]* ) # Absolute name.
  5947. ac_srcdir=$srcdir$ac_dir_suffix;
  5948. ac_top_srcdir=$srcdir
  5949. ac_abs_top_srcdir=$srcdir ;;
  5950. *) # Relative name.
  5951. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  5952. ac_top_srcdir=$ac_top_build_prefix$srcdir
  5953. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  5954. esac
  5955. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  5956. case $ac_mode in
  5957. :F)
  5958. #
  5959. # CONFIG_FILE
  5960. #
  5961. case $INSTALL in
  5962. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  5963. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  5964. esac
  5965. _ACEOF
  5966. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5967. # If the template does not know about datarootdir, expand it.
  5968. # FIXME: This hack should be removed a few years after 2.60.
  5969. ac_datarootdir_hack=; ac_datarootdir_seen=
  5970. ac_sed_dataroot='
  5971. /datarootdir/ {
  5972. p
  5973. q
  5974. }
  5975. /@datadir@/p
  5976. /@docdir@/p
  5977. /@infodir@/p
  5978. /@localedir@/p
  5979. /@mandir@/p'
  5980. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  5981. *datarootdir*) ac_datarootdir_seen=yes;;
  5982. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  5983. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  5984. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  5985. _ACEOF
  5986. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5987. ac_datarootdir_hack='
  5988. s&@datadir@&$datadir&g
  5989. s&@docdir@&$docdir&g
  5990. s&@infodir@&$infodir&g
  5991. s&@localedir@&$localedir&g
  5992. s&@mandir@&$mandir&g
  5993. s&\\\${datarootdir}&$datarootdir&g' ;;
  5994. esac
  5995. _ACEOF
  5996. # Neutralize VPATH when `$srcdir' = `.'.
  5997. # Shell code in configure.ac might set extrasub.
  5998. # FIXME: do we really want to maintain this feature?
  5999. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6000. ac_sed_extra="$ac_vpsub
  6001. $extrasub
  6002. _ACEOF
  6003. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6004. :t
  6005. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  6006. s|@configure_input@|$ac_sed_conf_input|;t t
  6007. s&@top_builddir@&$ac_top_builddir_sub&;t t
  6008. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  6009. s&@srcdir@&$ac_srcdir&;t t
  6010. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  6011. s&@top_srcdir@&$ac_top_srcdir&;t t
  6012. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  6013. s&@builddir@&$ac_builddir&;t t
  6014. s&@abs_builddir@&$ac_abs_builddir&;t t
  6015. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  6016. s&@INSTALL@&$ac_INSTALL&;t t
  6017. $ac_datarootdir_hack
  6018. "
  6019. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  6020. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  6021. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  6022. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  6023. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  6024. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  6025. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  6026. which seems to be undefined. Please make sure it is defined" >&5
  6027. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  6028. which seems to be undefined. Please make sure it is defined" >&2;}
  6029. rm -f "$ac_tmp/stdin"
  6030. case $ac_file in
  6031. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  6032. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  6033. esac \
  6034. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  6035. ;;
  6036. :H)
  6037. #
  6038. # CONFIG_HEADER
  6039. #
  6040. if test x"$ac_file" != x-; then
  6041. {
  6042. $as_echo "/* $configure_input */" \
  6043. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  6044. } >"$ac_tmp/config.h" \
  6045. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  6046. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  6047. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  6048. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  6049. else
  6050. rm -f "$ac_file"
  6051. mv "$ac_tmp/config.h" "$ac_file" \
  6052. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  6053. fi
  6054. else
  6055. $as_echo "/* $configure_input */" \
  6056. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  6057. || as_fn_error $? "could not create -" "$LINENO" 5
  6058. fi
  6059. ;;
  6060. esac
  6061. case $ac_file$ac_mode in
  6062. "gui/makelinuxdist.sh":F) chmod +x gui/makelinuxdist.sh ;;
  6063. esac
  6064. done # for ac_tag
  6065. as_fn_exit 0
  6066. _ACEOF
  6067. ac_clean_files=$ac_clean_files_save
  6068. test $ac_write_fail = 0 ||
  6069. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  6070. # configure is writing to config.log, and then calls config.status.
  6071. # config.status does its own redirection, appending to config.log.
  6072. # Unfortunately, on DOS this fails, as config.log is still kept open
  6073. # by configure, so config.status won't be able to write to it; its
  6074. # output is simply discarded. So we exec the FD to /dev/null,
  6075. # effectively closing config.log, so it can be properly (re)opened and
  6076. # appended to by config.status. When coming back to configure, we
  6077. # need to make the FD available again.
  6078. if test "$no_create" != yes; then
  6079. ac_cs_success=:
  6080. ac_config_status_args=
  6081. test "$silent" = yes &&
  6082. ac_config_status_args="$ac_config_status_args --quiet"
  6083. exec 5>/dev/null
  6084. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  6085. exec 5>>config.log
  6086. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  6087. # would make configure fail if this is the last instruction.
  6088. $ac_cs_success || as_fn_exit 1
  6089. fi
  6090. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  6091. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  6092. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  6093. fi