configure 280 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.72 for zint 2.13.0.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
  7. # Inc.
  8. #
  9. #
  10. # This configure script is free software; the Free Software Foundation
  11. # gives unlimited permission to copy, distribute and modify it.
  12. ## -------------------- ##
  13. ## M4sh Initialization. ##
  14. ## -------------------- ##
  15. # Be more Bourne compatible
  16. DUALCASE=1; export DUALCASE # for MKS sh
  17. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  18. 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 case e in #(
  26. e) case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac ;;
  32. esac
  33. fi
  34. # Reset variables that may have inherited troublesome values from
  35. # the environment.
  36. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  37. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  38. # side effect of setting IFS to empty, thus disabling word splitting.)
  39. # Quoting is to prevent editors from complaining about space-tab.
  40. as_nl='
  41. '
  42. export as_nl
  43. IFS=" "" $as_nl"
  44. PS1='$ '
  45. PS2='> '
  46. PS4='+ '
  47. # Ensure predictable behavior from utilities with locale-dependent output.
  48. LC_ALL=C
  49. export LC_ALL
  50. LANGUAGE=C
  51. export LANGUAGE
  52. # We cannot yet rely on "unset" to work, but we need these variables
  53. # to be unset--not just set to an empty or harmless value--now, to
  54. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  55. # also avoids known problems related to "unset" and subshell syntax
  56. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  57. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  58. do eval test \${$as_var+y} \
  59. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  60. done
  61. # Ensure that fds 0, 1, and 2 are open.
  62. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  63. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  64. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  65. # The user is always right.
  66. if ${PATH_SEPARATOR+false} :; then
  67. PATH_SEPARATOR=:
  68. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  69. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  70. PATH_SEPARATOR=';'
  71. }
  72. fi
  73. # Find who we are. Look in the path if we contain no directory separator.
  74. as_myself=
  75. case $0 in #((
  76. *[\\/]* ) as_myself=$0 ;;
  77. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  78. for as_dir in $PATH
  79. do
  80. IFS=$as_save_IFS
  81. case $as_dir in #(((
  82. '') as_dir=./ ;;
  83. */) ;;
  84. *) as_dir=$as_dir/ ;;
  85. esac
  86. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  87. done
  88. IFS=$as_save_IFS
  89. ;;
  90. esac
  91. # We did not find ourselves, most probably we were run as 'sh COMMAND'
  92. # in which case we are not to be found in the path.
  93. if test "x$as_myself" = x; then
  94. as_myself=$0
  95. fi
  96. if test ! -f "$as_myself"; then
  97. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  98. exit 1
  99. fi
  100. # Use a proper internal environment variable to ensure we don't fall
  101. # into an infinite loop, continuously re-executing ourselves.
  102. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  103. _as_can_reexec=no; export _as_can_reexec;
  104. # We cannot yet assume a decent shell, so we have to provide a
  105. # neutralization value for shells without unset; and this also
  106. # works around shells that cannot unset nonexistent variables.
  107. # Preserve -v and -x to the replacement shell.
  108. BASH_ENV=/dev/null
  109. ENV=/dev/null
  110. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  111. case $- in # ((((
  112. *v*x* | *x*v* ) as_opts=-vx ;;
  113. *v* ) as_opts=-v ;;
  114. *x* ) as_opts=-x ;;
  115. * ) as_opts= ;;
  116. esac
  117. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  118. # Admittedly, this is quite paranoid, since all the known shells bail
  119. # out after a failed 'exec'.
  120. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  121. exit 255
  122. fi
  123. # We don't want this to propagate to other subprocesses.
  124. { _as_can_reexec=; unset _as_can_reexec;}
  125. if test "x$CONFIG_SHELL" = x; then
  126. as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  127. then :
  128. emulate sh
  129. NULLCMD=:
  130. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  131. # is contrary to our usage. Disable this feature.
  132. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  133. setopt NO_GLOB_SUBST
  134. else case e in #(
  135. e) case \`(set -o) 2>/dev/null\` in #(
  136. *posix*) :
  137. set -o posix ;; #(
  138. *) :
  139. ;;
  140. esac ;;
  141. esac
  142. fi
  143. "
  144. as_required="as_fn_return () { (exit \$1); }
  145. as_fn_success () { as_fn_return 0; }
  146. as_fn_failure () { as_fn_return 1; }
  147. as_fn_ret_success () { return 0; }
  148. as_fn_ret_failure () { return 1; }
  149. exitcode=0
  150. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  151. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  152. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  153. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  154. if ( set x; as_fn_ret_success y && test x = \"\$1\" )
  155. then :
  156. else case e in #(
  157. e) exitcode=1; echo positional parameters were not saved. ;;
  158. esac
  159. fi
  160. test x\$exitcode = x0 || exit 1
  161. blah=\$(echo \$(echo blah))
  162. test x\"\$blah\" = xblah || exit 1
  163. test -x / || exit 1"
  164. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  165. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  166. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  167. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  168. test \$(( 1 + 1 )) = 2 || exit 1"
  169. if (eval "$as_required") 2>/dev/null
  170. then :
  171. as_have_required=yes
  172. else case e in #(
  173. e) as_have_required=no ;;
  174. esac
  175. fi
  176. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
  177. then :
  178. else case e in #(
  179. e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  180. as_found=false
  181. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  182. do
  183. IFS=$as_save_IFS
  184. case $as_dir in #(((
  185. '') as_dir=./ ;;
  186. */) ;;
  187. *) as_dir=$as_dir/ ;;
  188. esac
  189. as_found=:
  190. case $as_dir in #(
  191. /*)
  192. for as_base in sh bash ksh sh5; do
  193. # Try only shells that exist, to save several forks.
  194. as_shell=$as_dir$as_base
  195. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  196. as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  197. then :
  198. CONFIG_SHELL=$as_shell as_have_required=yes
  199. if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
  200. then :
  201. break 2
  202. fi
  203. fi
  204. done;;
  205. esac
  206. as_found=false
  207. done
  208. IFS=$as_save_IFS
  209. if $as_found
  210. then :
  211. else case e in #(
  212. e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  213. as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  214. then :
  215. CONFIG_SHELL=$SHELL as_have_required=yes
  216. fi ;;
  217. esac
  218. fi
  219. if test "x$CONFIG_SHELL" != x
  220. then :
  221. export CONFIG_SHELL
  222. # We cannot yet assume a decent shell, so we have to provide a
  223. # neutralization value for shells without unset; and this also
  224. # works around shells that cannot unset nonexistent variables.
  225. # Preserve -v and -x to the replacement shell.
  226. BASH_ENV=/dev/null
  227. ENV=/dev/null
  228. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  229. case $- in # ((((
  230. *v*x* | *x*v* ) as_opts=-vx ;;
  231. *v* ) as_opts=-v ;;
  232. *x* ) as_opts=-x ;;
  233. * ) as_opts= ;;
  234. esac
  235. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  236. # Admittedly, this is quite paranoid, since all the known shells bail
  237. # out after a failed 'exec'.
  238. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  239. exit 255
  240. fi
  241. if test x$as_have_required = xno
  242. then :
  243. printf "%s\n" "$0: This script requires a shell more modern than all"
  244. printf "%s\n" "$0: the shells that I found on your system."
  245. if test ${ZSH_VERSION+y} ; then
  246. printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  247. printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
  248. else
  249. printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
  250. $0: including any error possibly output before this
  251. $0: message. Then install a modern shell, or manually run
  252. $0: the script under such a shell if you do have one."
  253. fi
  254. exit 1
  255. fi ;;
  256. esac
  257. fi
  258. fi
  259. SHELL=${CONFIG_SHELL-/bin/sh}
  260. export SHELL
  261. # Unset more variables known to interfere with behavior of common tools.
  262. CLICOLOR_FORCE= GREP_OPTIONS=
  263. unset CLICOLOR_FORCE GREP_OPTIONS
  264. ## --------------------- ##
  265. ## M4sh Shell Functions. ##
  266. ## --------------------- ##
  267. # as_fn_unset VAR
  268. # ---------------
  269. # Portably unset VAR.
  270. as_fn_unset ()
  271. {
  272. { eval $1=; unset $1;}
  273. }
  274. as_unset=as_fn_unset
  275. # as_fn_set_status STATUS
  276. # -----------------------
  277. # Set $? to STATUS, without forking.
  278. as_fn_set_status ()
  279. {
  280. return $1
  281. } # as_fn_set_status
  282. # as_fn_exit STATUS
  283. # -----------------
  284. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  285. as_fn_exit ()
  286. {
  287. set +e
  288. as_fn_set_status $1
  289. exit $1
  290. } # as_fn_exit
  291. # as_fn_mkdir_p
  292. # -------------
  293. # Create "$as_dir" as a directory, including parents if necessary.
  294. as_fn_mkdir_p ()
  295. {
  296. case $as_dir in #(
  297. -*) as_dir=./$as_dir;;
  298. esac
  299. test -d "$as_dir" || eval $as_mkdir_p || {
  300. as_dirs=
  301. while :; do
  302. case $as_dir in #(
  303. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  304. *) as_qdir=$as_dir;;
  305. esac
  306. as_dirs="'$as_qdir' $as_dirs"
  307. as_dir=`$as_dirname -- "$as_dir" ||
  308. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  309. X"$as_dir" : 'X\(//\)[^/]' \| \
  310. X"$as_dir" : 'X\(//\)$' \| \
  311. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  312. printf "%s\n" X"$as_dir" |
  313. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  314. s//\1/
  315. q
  316. }
  317. /^X\(\/\/\)[^/].*/{
  318. s//\1/
  319. q
  320. }
  321. /^X\(\/\/\)$/{
  322. s//\1/
  323. q
  324. }
  325. /^X\(\/\).*/{
  326. s//\1/
  327. q
  328. }
  329. s/.*/./; q'`
  330. test -d "$as_dir" && break
  331. done
  332. test -z "$as_dirs" || eval "mkdir $as_dirs"
  333. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  334. } # as_fn_mkdir_p
  335. # as_fn_executable_p FILE
  336. # -----------------------
  337. # Test if FILE is an executable regular file.
  338. as_fn_executable_p ()
  339. {
  340. test -f "$1" && test -x "$1"
  341. } # as_fn_executable_p
  342. # as_fn_append VAR VALUE
  343. # ----------------------
  344. # Append the text in VALUE to the end of the definition contained in VAR. Take
  345. # advantage of any shell optimizations that allow amortized linear growth over
  346. # repeated appends, instead of the typical quadratic growth present in naive
  347. # implementations.
  348. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  349. then :
  350. eval 'as_fn_append ()
  351. {
  352. eval $1+=\$2
  353. }'
  354. else case e in #(
  355. e) as_fn_append ()
  356. {
  357. eval $1=\$$1\$2
  358. } ;;
  359. esac
  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
  367. then :
  368. eval 'as_fn_arith ()
  369. {
  370. as_val=$(( $* ))
  371. }'
  372. else case e in #(
  373. e) as_fn_arith ()
  374. {
  375. as_val=`expr "$@" || test $? -eq 1`
  376. } ;;
  377. esac
  378. fi # as_fn_arith
  379. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  380. # ----------------------------------------
  381. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  382. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  383. # script with STATUS, using 1 if that was 0.
  384. as_fn_error ()
  385. {
  386. as_status=$1; test $as_status -eq 0 && as_status=1
  387. if test "$4"; then
  388. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  389. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  390. fi
  391. printf "%s\n" "$as_me: error: $2" >&2
  392. as_fn_exit $as_status
  393. } # as_fn_error
  394. if expr a : '\(a\)' >/dev/null 2>&1 &&
  395. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  396. as_expr=expr
  397. else
  398. as_expr=false
  399. fi
  400. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  401. as_basename=basename
  402. else
  403. as_basename=false
  404. fi
  405. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  406. as_dirname=dirname
  407. else
  408. as_dirname=false
  409. fi
  410. as_me=`$as_basename -- "$0" ||
  411. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  412. X"$0" : 'X\(//\)$' \| \
  413. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  414. printf "%s\n" X/"$0" |
  415. sed '/^.*\/\([^/][^/]*\)\/*$/{
  416. s//\1/
  417. q
  418. }
  419. /^X\/\(\/\/\)$/{
  420. s//\1/
  421. q
  422. }
  423. /^X\/\(\/\).*/{
  424. s//\1/
  425. q
  426. }
  427. s/.*/./; q'`
  428. # Avoid depending upon Character Ranges.
  429. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  430. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  431. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  432. as_cr_digits='0123456789'
  433. as_cr_alnum=$as_cr_Letters$as_cr_digits
  434. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  435. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  436. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  437. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  438. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  439. sed -n '
  440. p
  441. /[$]LINENO/=
  442. ' <$as_myself |
  443. sed '
  444. t clear
  445. :clear
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. # Determine whether it's possible to make 'echo' print without a newline.
  470. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  471. # for compatibility with existing Makefiles.
  472. ECHO_C= ECHO_N= ECHO_T=
  473. case `echo -n x` in #(((((
  474. -n*)
  475. case `echo 'xy\c'` in
  476. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  477. xy) ECHO_C='\c';;
  478. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  479. ECHO_T=' ';;
  480. esac;;
  481. *)
  482. ECHO_N='-n';;
  483. esac
  484. # For backward compatibility with old third-party macros, we provide
  485. # the shell variables $as_echo and $as_echo_n. New code should use
  486. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  487. as_echo='printf %s\n'
  488. as_echo_n='printf %s'
  489. rm -f conf$$ conf$$.exe conf$$.file
  490. if test -d conf$$.dir; then
  491. rm -f conf$$.dir/conf$$.file
  492. else
  493. rm -f conf$$.dir
  494. mkdir conf$$.dir 2>/dev/null
  495. fi
  496. if (echo >conf$$.file) 2>/dev/null; then
  497. if ln -s conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s='ln -s'
  499. # ... but there are two gotchas:
  500. # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
  501. # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
  502. # In both cases, we have to default to 'cp -pR'.
  503. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  504. as_ln_s='cp -pR'
  505. elif ln conf$$.file conf$$ 2>/dev/null; then
  506. as_ln_s=ln
  507. else
  508. as_ln_s='cp -pR'
  509. fi
  510. else
  511. as_ln_s='cp -pR'
  512. fi
  513. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  514. rmdir conf$$.dir 2>/dev/null
  515. if mkdir -p . 2>/dev/null; then
  516. as_mkdir_p='mkdir -p "$as_dir"'
  517. else
  518. test -d ./-p && rmdir ./-p
  519. as_mkdir_p=false
  520. fi
  521. as_test_x='test -x'
  522. as_executable_p=as_fn_executable_p
  523. # Sed expression to map a string onto a valid CPP name.
  524. as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  525. as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
  526. # Sed expression to map a string onto a valid variable name.
  527. as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  528. as_tr_sh="eval sed '$as_sed_sh'" # deprecated
  529. test -n "$DJDIR" || exec 7<&0 </dev/null
  530. exec 6>&1
  531. # Name of the host.
  532. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  533. # so uname gets run too.
  534. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  535. #
  536. # Initializations.
  537. #
  538. ac_default_prefix=/usr/local
  539. ac_clean_files=
  540. ac_config_libobj_dir=.
  541. LIBOBJS=
  542. cross_compiling=no
  543. subdirs=
  544. MFLAGS=
  545. MAKEFLAGS=
  546. # Identity of this package.
  547. PACKAGE_NAME='zint'
  548. PACKAGE_TARNAME='zint'
  549. PACKAGE_VERSION='2.13.0'
  550. PACKAGE_STRING='zint 2.13.0'
  551. PACKAGE_BUGREPORT=''
  552. PACKAGE_URL=''
  553. # Factoring default headers for most tests.
  554. ac_includes_default="\
  555. #include <stddef.h>
  556. #ifdef HAVE_STDIO_H
  557. # include <stdio.h>
  558. #endif
  559. #ifdef HAVE_STDLIB_H
  560. # include <stdlib.h>
  561. #endif
  562. #ifdef HAVE_STRING_H
  563. # include <string.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_STRINGS_H
  572. # include <strings.h>
  573. #endif
  574. #ifdef HAVE_SYS_TYPES_H
  575. # include <sys/types.h>
  576. #endif
  577. #ifdef HAVE_SYS_STAT_H
  578. # include <sys/stat.h>
  579. #endif
  580. #ifdef HAVE_UNISTD_H
  581. # include <unistd.h>
  582. #endif"
  583. ac_header_c_list=
  584. ac_subst_vars='LTLIBOBJS
  585. TCLSH_PROG
  586. VC_MANIFEST_EMBED_EXE
  587. VC_MANIFEST_EMBED_DLL
  588. RANLIB_STUB
  589. MAKE_STUB_LIB
  590. MAKE_STATIC_LIB
  591. MAKE_SHARED_LIB
  592. MAKE_LIB
  593. LDFLAGS_DEFAULT
  594. CFLAGS_DEFAULT
  595. LD_LIBRARY_PATH_VAR
  596. SHLIB_CFLAGS
  597. SHLIB_LD_LIBS
  598. SHLIB_LD
  599. STLIB_LD
  600. LDFLAGS_OPTIMIZE
  601. LDFLAGS_DEBUG
  602. CFLAGS_WARNING
  603. CFLAGS_OPTIMIZE
  604. CFLAGS_DEBUG
  605. LIBOBJS
  606. RC
  607. AR
  608. STUBS_BUILD
  609. SHARED_BUILD
  610. TCL_THREADS
  611. TCL_INCLUDES
  612. PKG_OBJECTS
  613. PKG_SOURCES
  614. RANLIB
  615. SET_MAKE
  616. CPP
  617. TCL_SHLIB_LD_LIBS
  618. TCL_LD_FLAGS
  619. TCL_EXTRA_CFLAGS
  620. TCL_DEFS
  621. TCL_LIBS
  622. CLEANFILES
  623. OBJEXT
  624. ac_ct_CC
  625. CPPFLAGS
  626. LDFLAGS
  627. CFLAGS
  628. CC
  629. TCL_STUB_LIB_SPEC
  630. TCL_STUB_LIB_FLAG
  631. TCL_STUB_LIB_FILE
  632. TCL_LIB_SPEC
  633. TCL_LIB_FLAG
  634. TCL_LIB_FILE
  635. TCL_SRC_DIR
  636. TCL_BIN_DIR
  637. TCL_PATCH_LEVEL
  638. TCL_VERSION
  639. INSTALL_LIBRARY
  640. INSTALL_SCRIPT
  641. INSTALL_PROGRAM
  642. INSTALL_DATA
  643. INSTALL_DATA_DIR
  644. INSTALL
  645. PKG_CFLAGS
  646. PKG_LIBS
  647. PKG_INCLUDES
  648. PKG_HEADERS
  649. PKG_TCL_SOURCES
  650. PKG_STUB_OBJECTS
  651. PKG_STUB_SOURCES
  652. PKG_STUB_LIB_FILE
  653. PKG_LIB_FILE9
  654. PKG_LIB_FILE8
  655. PKG_LIB_FILE
  656. EXEEXT
  657. CYGPATH
  658. target_alias
  659. host_alias
  660. build_alias
  661. LIBS
  662. ECHO_T
  663. ECHO_N
  664. ECHO_C
  665. DEFS
  666. mandir
  667. localedir
  668. libdir
  669. psdir
  670. pdfdir
  671. dvidir
  672. htmldir
  673. infodir
  674. docdir
  675. oldincludedir
  676. includedir
  677. runstatedir
  678. localstatedir
  679. sharedstatedir
  680. sysconfdir
  681. datadir
  682. datarootdir
  683. libexecdir
  684. sbindir
  685. bindir
  686. program_transform_name
  687. prefix
  688. exec_prefix
  689. PACKAGE_URL
  690. PACKAGE_BUGREPORT
  691. PACKAGE_STRING
  692. PACKAGE_VERSION
  693. PACKAGE_TARNAME
  694. PACKAGE_NAME
  695. PATH_SEPARATOR
  696. SHELL'
  697. ac_subst_files=''
  698. ac_user_opts='
  699. enable_option_checking
  700. with_tcl
  701. with_tcl8
  702. with_tclinclude
  703. enable_threads
  704. enable_shared
  705. enable_stubs
  706. enable_64bit
  707. enable_64bit_vis
  708. enable_rpath
  709. enable_symbols
  710. '
  711. ac_precious_vars='build_alias
  712. host_alias
  713. target_alias
  714. CC
  715. CFLAGS
  716. LDFLAGS
  717. LIBS
  718. CPPFLAGS
  719. CPP'
  720. # Initialize some variables set by options.
  721. ac_init_help=
  722. ac_init_version=false
  723. ac_unrecognized_opts=
  724. ac_unrecognized_sep=
  725. # The variables have the same names as the options, with
  726. # dashes changed to underlines.
  727. cache_file=/dev/null
  728. exec_prefix=NONE
  729. no_create=
  730. no_recursion=
  731. prefix=NONE
  732. program_prefix=NONE
  733. program_suffix=NONE
  734. program_transform_name=s,x,x,
  735. silent=
  736. site=
  737. srcdir=
  738. verbose=
  739. x_includes=NONE
  740. x_libraries=NONE
  741. # Installation directory options.
  742. # These are left unexpanded so users can "make install exec_prefix=/foo"
  743. # and all the variables that are supposed to be based on exec_prefix
  744. # by default will actually change.
  745. # Use braces instead of parens because sh, perl, etc. also accept them.
  746. # (The list follows the same order as the GNU Coding Standards.)
  747. bindir='${exec_prefix}/bin'
  748. sbindir='${exec_prefix}/sbin'
  749. libexecdir='${exec_prefix}/libexec'
  750. datarootdir='${prefix}/share'
  751. datadir='${datarootdir}'
  752. sysconfdir='${prefix}/etc'
  753. sharedstatedir='${prefix}/com'
  754. localstatedir='${prefix}/var'
  755. runstatedir='${localstatedir}/run'
  756. includedir='${prefix}/include'
  757. oldincludedir='/usr/include'
  758. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  759. infodir='${datarootdir}/info'
  760. htmldir='${docdir}'
  761. dvidir='${docdir}'
  762. pdfdir='${docdir}'
  763. psdir='${docdir}'
  764. libdir='${exec_prefix}/lib'
  765. localedir='${datarootdir}/locale'
  766. mandir='${datarootdir}/man'
  767. ac_prev=
  768. ac_dashdash=
  769. for ac_option
  770. do
  771. # If the previous option needs an argument, assign it.
  772. if test -n "$ac_prev"; then
  773. eval $ac_prev=\$ac_option
  774. ac_prev=
  775. continue
  776. fi
  777. case $ac_option in
  778. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  779. *=) ac_optarg= ;;
  780. *) ac_optarg=yes ;;
  781. esac
  782. case $ac_dashdash$ac_option in
  783. --)
  784. ac_dashdash=yes ;;
  785. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  786. ac_prev=bindir ;;
  787. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  788. bindir=$ac_optarg ;;
  789. -build | --build | --buil | --bui | --bu)
  790. ac_prev=build_alias ;;
  791. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  792. build_alias=$ac_optarg ;;
  793. -cache-file | --cache-file | --cache-fil | --cache-fi \
  794. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  795. ac_prev=cache_file ;;
  796. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  797. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  798. cache_file=$ac_optarg ;;
  799. --config-cache | -C)
  800. cache_file=config.cache ;;
  801. -datadir | --datadir | --datadi | --datad)
  802. ac_prev=datadir ;;
  803. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  804. datadir=$ac_optarg ;;
  805. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  806. | --dataroo | --dataro | --datar)
  807. ac_prev=datarootdir ;;
  808. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  809. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  810. datarootdir=$ac_optarg ;;
  811. -disable-* | --disable-*)
  812. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  813. # Reject names that are not valid shell variable names.
  814. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  815. as_fn_error $? "invalid feature name: '$ac_useropt'"
  816. ac_useropt_orig=$ac_useropt
  817. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  818. case $ac_user_opts in
  819. *"
  820. "enable_$ac_useropt"
  821. "*) ;;
  822. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  823. ac_unrecognized_sep=', ';;
  824. esac
  825. eval enable_$ac_useropt=no ;;
  826. -docdir | --docdir | --docdi | --doc | --do)
  827. ac_prev=docdir ;;
  828. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  829. docdir=$ac_optarg ;;
  830. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  831. ac_prev=dvidir ;;
  832. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  833. dvidir=$ac_optarg ;;
  834. -enable-* | --enable-*)
  835. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  836. # Reject names that are not valid shell variable names.
  837. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  838. as_fn_error $? "invalid feature name: '$ac_useropt'"
  839. ac_useropt_orig=$ac_useropt
  840. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  841. case $ac_user_opts in
  842. *"
  843. "enable_$ac_useropt"
  844. "*) ;;
  845. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  846. ac_unrecognized_sep=', ';;
  847. esac
  848. eval enable_$ac_useropt=\$ac_optarg ;;
  849. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  850. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  851. | --exec | --exe | --ex)
  852. ac_prev=exec_prefix ;;
  853. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  854. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  855. | --exec=* | --exe=* | --ex=*)
  856. exec_prefix=$ac_optarg ;;
  857. -gas | --gas | --ga | --g)
  858. # Obsolete; use --with-gas.
  859. with_gas=yes ;;
  860. -help | --help | --hel | --he | -h)
  861. ac_init_help=long ;;
  862. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  863. ac_init_help=recursive ;;
  864. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  865. ac_init_help=short ;;
  866. -host | --host | --hos | --ho)
  867. ac_prev=host_alias ;;
  868. -host=* | --host=* | --hos=* | --ho=*)
  869. host_alias=$ac_optarg ;;
  870. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  871. ac_prev=htmldir ;;
  872. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  873. | --ht=*)
  874. htmldir=$ac_optarg ;;
  875. -includedir | --includedir | --includedi | --included | --include \
  876. | --includ | --inclu | --incl | --inc)
  877. ac_prev=includedir ;;
  878. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  879. | --includ=* | --inclu=* | --incl=* | --inc=*)
  880. includedir=$ac_optarg ;;
  881. -infodir | --infodir | --infodi | --infod | --info | --inf)
  882. ac_prev=infodir ;;
  883. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  884. infodir=$ac_optarg ;;
  885. -libdir | --libdir | --libdi | --libd)
  886. ac_prev=libdir ;;
  887. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  888. libdir=$ac_optarg ;;
  889. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  890. | --libexe | --libex | --libe)
  891. ac_prev=libexecdir ;;
  892. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  893. | --libexe=* | --libex=* | --libe=*)
  894. libexecdir=$ac_optarg ;;
  895. -localedir | --localedir | --localedi | --localed | --locale)
  896. ac_prev=localedir ;;
  897. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  898. localedir=$ac_optarg ;;
  899. -localstatedir | --localstatedir | --localstatedi | --localstated \
  900. | --localstate | --localstat | --localsta | --localst | --locals)
  901. ac_prev=localstatedir ;;
  902. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  903. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  904. localstatedir=$ac_optarg ;;
  905. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  906. ac_prev=mandir ;;
  907. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  908. mandir=$ac_optarg ;;
  909. -nfp | --nfp | --nf)
  910. # Obsolete; use --without-fp.
  911. with_fp=no ;;
  912. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  913. | --no-cr | --no-c | -n)
  914. no_create=yes ;;
  915. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  916. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  917. no_recursion=yes ;;
  918. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  919. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  920. | --oldin | --oldi | --old | --ol | --o)
  921. ac_prev=oldincludedir ;;
  922. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  923. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  924. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  925. oldincludedir=$ac_optarg ;;
  926. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  927. ac_prev=prefix ;;
  928. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  929. prefix=$ac_optarg ;;
  930. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  931. | --program-pre | --program-pr | --program-p)
  932. ac_prev=program_prefix ;;
  933. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  934. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  935. program_prefix=$ac_optarg ;;
  936. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  937. | --program-suf | --program-su | --program-s)
  938. ac_prev=program_suffix ;;
  939. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  940. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  941. program_suffix=$ac_optarg ;;
  942. -program-transform-name | --program-transform-name \
  943. | --program-transform-nam | --program-transform-na \
  944. | --program-transform-n | --program-transform- \
  945. | --program-transform | --program-transfor \
  946. | --program-transfo | --program-transf \
  947. | --program-trans | --program-tran \
  948. | --progr-tra | --program-tr | --program-t)
  949. ac_prev=program_transform_name ;;
  950. -program-transform-name=* | --program-transform-name=* \
  951. | --program-transform-nam=* | --program-transform-na=* \
  952. | --program-transform-n=* | --program-transform-=* \
  953. | --program-transform=* | --program-transfor=* \
  954. | --program-transfo=* | --program-transf=* \
  955. | --program-trans=* | --program-tran=* \
  956. | --progr-tra=* | --program-tr=* | --program-t=*)
  957. program_transform_name=$ac_optarg ;;
  958. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  959. ac_prev=pdfdir ;;
  960. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  961. pdfdir=$ac_optarg ;;
  962. -psdir | --psdir | --psdi | --psd | --ps)
  963. ac_prev=psdir ;;
  964. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  965. psdir=$ac_optarg ;;
  966. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  967. | -silent | --silent | --silen | --sile | --sil)
  968. silent=yes ;;
  969. -runstatedir | --runstatedir | --runstatedi | --runstated \
  970. | --runstate | --runstat | --runsta | --runst | --runs \
  971. | --run | --ru | --r)
  972. ac_prev=runstatedir ;;
  973. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  974. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  975. | --run=* | --ru=* | --r=*)
  976. runstatedir=$ac_optarg ;;
  977. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  978. ac_prev=sbindir ;;
  979. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  980. | --sbi=* | --sb=*)
  981. sbindir=$ac_optarg ;;
  982. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  983. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  984. | --sharedst | --shareds | --shared | --share | --shar \
  985. | --sha | --sh)
  986. ac_prev=sharedstatedir ;;
  987. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  988. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  989. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  990. | --sha=* | --sh=*)
  991. sharedstatedir=$ac_optarg ;;
  992. -site | --site | --sit)
  993. ac_prev=site ;;
  994. -site=* | --site=* | --sit=*)
  995. site=$ac_optarg ;;
  996. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  997. ac_prev=srcdir ;;
  998. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  999. srcdir=$ac_optarg ;;
  1000. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1001. | --syscon | --sysco | --sysc | --sys | --sy)
  1002. ac_prev=sysconfdir ;;
  1003. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1004. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1005. sysconfdir=$ac_optarg ;;
  1006. -target | --target | --targe | --targ | --tar | --ta | --t)
  1007. ac_prev=target_alias ;;
  1008. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1009. target_alias=$ac_optarg ;;
  1010. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1011. verbose=yes ;;
  1012. -version | --version | --versio | --versi | --vers | -V)
  1013. ac_init_version=: ;;
  1014. -with-* | --with-*)
  1015. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1016. # Reject names that are not valid shell variable names.
  1017. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1018. as_fn_error $? "invalid package name: '$ac_useropt'"
  1019. ac_useropt_orig=$ac_useropt
  1020. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1021. case $ac_user_opts in
  1022. *"
  1023. "with_$ac_useropt"
  1024. "*) ;;
  1025. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1026. ac_unrecognized_sep=', ';;
  1027. esac
  1028. eval with_$ac_useropt=\$ac_optarg ;;
  1029. -without-* | --without-*)
  1030. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1031. # Reject names that are not valid shell variable names.
  1032. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1033. as_fn_error $? "invalid package name: '$ac_useropt'"
  1034. ac_useropt_orig=$ac_useropt
  1035. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1036. case $ac_user_opts in
  1037. *"
  1038. "with_$ac_useropt"
  1039. "*) ;;
  1040. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1041. ac_unrecognized_sep=', ';;
  1042. esac
  1043. eval with_$ac_useropt=no ;;
  1044. --x)
  1045. # Obsolete; use --with-x.
  1046. with_x=yes ;;
  1047. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1048. | --x-incl | --x-inc | --x-in | --x-i)
  1049. ac_prev=x_includes ;;
  1050. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1051. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1052. x_includes=$ac_optarg ;;
  1053. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1054. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1055. ac_prev=x_libraries ;;
  1056. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1057. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1058. x_libraries=$ac_optarg ;;
  1059. -*) as_fn_error $? "unrecognized option: '$ac_option'
  1060. Try '$0 --help' for more information"
  1061. ;;
  1062. *=*)
  1063. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1064. # Reject names that are not valid shell variable names.
  1065. case $ac_envvar in #(
  1066. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1067. as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
  1068. esac
  1069. eval $ac_envvar=\$ac_optarg
  1070. export $ac_envvar ;;
  1071. *)
  1072. # FIXME: should be removed in autoconf 3.0.
  1073. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1074. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1075. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1076. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1077. ;;
  1078. esac
  1079. done
  1080. if test -n "$ac_prev"; then
  1081. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1082. as_fn_error $? "missing argument to $ac_option"
  1083. fi
  1084. if test -n "$ac_unrecognized_opts"; then
  1085. case $enable_option_checking in
  1086. no) ;;
  1087. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1088. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1089. esac
  1090. fi
  1091. # Check all directory arguments for consistency.
  1092. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1093. datadir sysconfdir sharedstatedir localstatedir includedir \
  1094. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1095. libdir localedir mandir runstatedir
  1096. do
  1097. eval ac_val=\$$ac_var
  1098. # Remove trailing slashes.
  1099. case $ac_val in
  1100. */ )
  1101. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1102. eval $ac_var=\$ac_val;;
  1103. esac
  1104. # Be sure to have absolute directory names.
  1105. case $ac_val in
  1106. [\\/$]* | ?:[\\/]* ) continue;;
  1107. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1108. esac
  1109. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1110. done
  1111. # There might be people who depend on the old broken behavior: '$host'
  1112. # used to hold the argument of --host etc.
  1113. # FIXME: To remove some day.
  1114. build=$build_alias
  1115. host=$host_alias
  1116. target=$target_alias
  1117. # FIXME: To remove some day.
  1118. if test "x$host_alias" != x; then
  1119. if test "x$build_alias" = x; then
  1120. cross_compiling=maybe
  1121. elif test "x$build_alias" != "x$host_alias"; then
  1122. cross_compiling=yes
  1123. fi
  1124. fi
  1125. ac_tool_prefix=
  1126. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1127. test "$silent" = yes && exec 6>/dev/null
  1128. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1129. ac_ls_di=`ls -di .` &&
  1130. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1131. as_fn_error $? "working directory cannot be determined"
  1132. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1133. as_fn_error $? "pwd does not report name of working directory"
  1134. # Find the source files, if location was not specified.
  1135. if test -z "$srcdir"; then
  1136. ac_srcdir_defaulted=yes
  1137. # Try the directory containing this script, then the parent directory.
  1138. ac_confdir=`$as_dirname -- "$as_myself" ||
  1139. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1140. X"$as_myself" : 'X\(//\)[^/]' \| \
  1141. X"$as_myself" : 'X\(//\)$' \| \
  1142. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1143. printf "%s\n" X"$as_myself" |
  1144. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1145. s//\1/
  1146. q
  1147. }
  1148. /^X\(\/\/\)[^/].*/{
  1149. s//\1/
  1150. q
  1151. }
  1152. /^X\(\/\/\)$/{
  1153. s//\1/
  1154. q
  1155. }
  1156. /^X\(\/\).*/{
  1157. s//\1/
  1158. q
  1159. }
  1160. s/.*/./; q'`
  1161. srcdir=$ac_confdir
  1162. if test ! -r "$srcdir/$ac_unique_file"; then
  1163. srcdir=..
  1164. fi
  1165. else
  1166. ac_srcdir_defaulted=no
  1167. fi
  1168. if test ! -r "$srcdir/$ac_unique_file"; then
  1169. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1170. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1171. fi
  1172. ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
  1173. ac_abs_confdir=`(
  1174. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1175. pwd)`
  1176. # When building in place, set srcdir=.
  1177. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1178. srcdir=.
  1179. fi
  1180. # Remove unnecessary trailing slashes from srcdir.
  1181. # Double slashes in file names in object file debugging info
  1182. # mess up M-x gdb in Emacs.
  1183. case $srcdir in
  1184. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1185. esac
  1186. for ac_var in $ac_precious_vars; do
  1187. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1188. eval ac_env_${ac_var}_value=\$${ac_var}
  1189. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1190. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1191. done
  1192. #
  1193. # Report the --help message.
  1194. #
  1195. if test "$ac_init_help" = "long"; then
  1196. # Omit some internal or obsolete options to make the list less imposing.
  1197. # This message is too long to be a string in the A/UX 3.1 sh.
  1198. cat <<_ACEOF
  1199. 'configure' configures zint 2.13.0 to adapt to many kinds of systems.
  1200. Usage: $0 [OPTION]... [VAR=VALUE]...
  1201. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1202. VAR=VALUE. See below for descriptions of some of the useful variables.
  1203. Defaults for the options are specified in brackets.
  1204. Configuration:
  1205. -h, --help display this help and exit
  1206. --help=short display options specific to this package
  1207. --help=recursive display the short help of all the included packages
  1208. -V, --version display version information and exit
  1209. -q, --quiet, --silent do not print 'checking ...' messages
  1210. --cache-file=FILE cache test results in FILE [disabled]
  1211. -C, --config-cache alias for '--cache-file=config.cache'
  1212. -n, --no-create do not create output files
  1213. --srcdir=DIR find the sources in DIR [configure dir or '..']
  1214. Installation directories:
  1215. --prefix=PREFIX install architecture-independent files in PREFIX
  1216. [$ac_default_prefix]
  1217. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1218. [PREFIX]
  1219. By default, 'make install' will install all the files in
  1220. '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
  1221. an installation prefix other than '$ac_default_prefix' using '--prefix',
  1222. for instance '--prefix=\$HOME'.
  1223. For better control, use the options below.
  1224. Fine tuning of the installation directories:
  1225. --bindir=DIR user executables [EPREFIX/bin]
  1226. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1227. --libexecdir=DIR program executables [EPREFIX/libexec]
  1228. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1229. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1230. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1231. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1232. --libdir=DIR object code libraries [EPREFIX/lib]
  1233. --includedir=DIR C header files [PREFIX/include]
  1234. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1235. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1236. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1237. --infodir=DIR info documentation [DATAROOTDIR/info]
  1238. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1239. --mandir=DIR man documentation [DATAROOTDIR/man]
  1240. --docdir=DIR documentation root [DATAROOTDIR/doc/zint]
  1241. --htmldir=DIR html documentation [DOCDIR]
  1242. --dvidir=DIR dvi documentation [DOCDIR]
  1243. --pdfdir=DIR pdf documentation [DOCDIR]
  1244. --psdir=DIR ps documentation [DOCDIR]
  1245. _ACEOF
  1246. cat <<\_ACEOF
  1247. _ACEOF
  1248. fi
  1249. if test -n "$ac_init_help"; then
  1250. case $ac_init_help in
  1251. short | recursive ) echo "Configuration of zint 2.13.0:";;
  1252. esac
  1253. cat <<\_ACEOF
  1254. Optional Features:
  1255. --disable-option-checking ignore unrecognized --enable/--with options
  1256. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1257. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1258. --enable-threads build with threads (default: on)
  1259. --enable-shared build and link with shared libraries (default: on)
  1260. --enable-stubs build and link with stub libraries. Always true for
  1261. shared builds (default: on)
  1262. --enable-64bit enable 64bit support (default: off)
  1263. --enable-64bit-vis enable 64bit Sparc VIS support (default: off)
  1264. --disable-rpath disable rpath support (default: on)
  1265. --enable-symbols build with debugging symbols (default: off)
  1266. Optional Packages:
  1267. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1268. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1269. --with-tcl directory containing tcl configuration
  1270. (tclConfig.sh)
  1271. --with-tcl8 Compile for Tcl8 in Tcl9 environment
  1272. --with-tclinclude directory containing the public Tcl header files
  1273. Some influential environment variables:
  1274. CC C compiler command
  1275. CFLAGS C compiler flags
  1276. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1277. nonstandard directory <lib dir>
  1278. LIBS libraries to pass to the linker, e.g. -l<library>
  1279. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1280. you have headers in a nonstandard directory <include dir>
  1281. CPP C preprocessor
  1282. Use these variables to override the choices made by 'configure' or to help
  1283. it to find libraries and programs with nonstandard names/locations.
  1284. Report bugs to the package provider.
  1285. _ACEOF
  1286. ac_status=$?
  1287. fi
  1288. if test "$ac_init_help" = "recursive"; then
  1289. # If there are subdirs, report their specific --help.
  1290. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1291. test -d "$ac_dir" ||
  1292. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1293. continue
  1294. ac_builddir=.
  1295. case "$ac_dir" in
  1296. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1297. *)
  1298. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1299. # A ".." for each directory in $ac_dir_suffix.
  1300. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1301. case $ac_top_builddir_sub in
  1302. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1303. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1304. esac ;;
  1305. esac
  1306. ac_abs_top_builddir=$ac_pwd
  1307. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1308. # for backward compatibility:
  1309. ac_top_builddir=$ac_top_build_prefix
  1310. case $srcdir in
  1311. .) # We are building in place.
  1312. ac_srcdir=.
  1313. ac_top_srcdir=$ac_top_builddir_sub
  1314. ac_abs_top_srcdir=$ac_pwd ;;
  1315. [\\/]* | ?:[\\/]* ) # Absolute name.
  1316. ac_srcdir=$srcdir$ac_dir_suffix;
  1317. ac_top_srcdir=$srcdir
  1318. ac_abs_top_srcdir=$srcdir ;;
  1319. *) # Relative name.
  1320. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1321. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1322. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1323. esac
  1324. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1325. cd "$ac_dir" || { ac_status=$?; continue; }
  1326. # Check for configure.gnu first; this name is used for a wrapper for
  1327. # Metaconfig's "Configure" on case-insensitive file systems.
  1328. if test -f "$ac_srcdir/configure.gnu"; then
  1329. echo &&
  1330. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1331. elif test -f "$ac_srcdir/configure"; then
  1332. echo &&
  1333. $SHELL "$ac_srcdir/configure" --help=recursive
  1334. else
  1335. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1336. fi || ac_status=$?
  1337. cd "$ac_pwd" || { ac_status=$?; break; }
  1338. done
  1339. fi
  1340. test -n "$ac_init_help" && exit $ac_status
  1341. if $ac_init_version; then
  1342. cat <<\_ACEOF
  1343. zint configure 2.13.0
  1344. generated by GNU Autoconf 2.72
  1345. Copyright (C) 2023 Free Software Foundation, Inc.
  1346. This configure script is free software; the Free Software Foundation
  1347. gives unlimited permission to copy, distribute and modify it.
  1348. _ACEOF
  1349. exit
  1350. fi
  1351. ## ------------------------ ##
  1352. ## Autoconf initialization. ##
  1353. ## ------------------------ ##
  1354. # ac_fn_c_try_compile LINENO
  1355. # --------------------------
  1356. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1357. ac_fn_c_try_compile ()
  1358. {
  1359. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1360. rm -f conftest.$ac_objext conftest.beam
  1361. if { { ac_try="$ac_compile"
  1362. case "(($ac_try" in
  1363. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1364. *) ac_try_echo=$ac_try;;
  1365. esac
  1366. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1367. printf "%s\n" "$ac_try_echo"; } >&5
  1368. (eval "$ac_compile") 2>conftest.err
  1369. ac_status=$?
  1370. if test -s conftest.err; then
  1371. grep -v '^ *+' conftest.err >conftest.er1
  1372. cat conftest.er1 >&5
  1373. mv -f conftest.er1 conftest.err
  1374. fi
  1375. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1376. test $ac_status = 0; } && {
  1377. test -z "$ac_c_werror_flag" ||
  1378. test ! -s conftest.err
  1379. } && test -s conftest.$ac_objext
  1380. then :
  1381. ac_retval=0
  1382. else case e in #(
  1383. e) printf "%s\n" "$as_me: failed program was:" >&5
  1384. sed 's/^/| /' conftest.$ac_ext >&5
  1385. ac_retval=1 ;;
  1386. esac
  1387. fi
  1388. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1389. as_fn_set_status $ac_retval
  1390. } # ac_fn_c_try_compile
  1391. # ac_fn_c_try_cpp LINENO
  1392. # ----------------------
  1393. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1394. ac_fn_c_try_cpp ()
  1395. {
  1396. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1397. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1398. case "(($ac_try" in
  1399. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1400. *) ac_try_echo=$ac_try;;
  1401. esac
  1402. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1403. printf "%s\n" "$ac_try_echo"; } >&5
  1404. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1405. ac_status=$?
  1406. if test -s conftest.err; then
  1407. grep -v '^ *+' conftest.err >conftest.er1
  1408. cat conftest.er1 >&5
  1409. mv -f conftest.er1 conftest.err
  1410. fi
  1411. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1412. test $ac_status = 0; } > conftest.i && {
  1413. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1414. test ! -s conftest.err
  1415. }
  1416. then :
  1417. ac_retval=0
  1418. else case e in #(
  1419. e) printf "%s\n" "$as_me: failed program was:" >&5
  1420. sed 's/^/| /' conftest.$ac_ext >&5
  1421. ac_retval=1 ;;
  1422. esac
  1423. fi
  1424. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1425. as_fn_set_status $ac_retval
  1426. } # ac_fn_c_try_cpp
  1427. # ac_fn_c_try_link LINENO
  1428. # -----------------------
  1429. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1430. ac_fn_c_try_link ()
  1431. {
  1432. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1433. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1434. if { { ac_try="$ac_link"
  1435. case "(($ac_try" in
  1436. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1437. *) ac_try_echo=$ac_try;;
  1438. esac
  1439. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1440. printf "%s\n" "$ac_try_echo"; } >&5
  1441. (eval "$ac_link") 2>conftest.err
  1442. ac_status=$?
  1443. if test -s conftest.err; then
  1444. grep -v '^ *+' conftest.err >conftest.er1
  1445. cat conftest.er1 >&5
  1446. mv -f conftest.er1 conftest.err
  1447. fi
  1448. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1449. test $ac_status = 0; } && {
  1450. test -z "$ac_c_werror_flag" ||
  1451. test ! -s conftest.err
  1452. } && test -s conftest$ac_exeext && {
  1453. test "$cross_compiling" = yes ||
  1454. test -x conftest$ac_exeext
  1455. }
  1456. then :
  1457. ac_retval=0
  1458. else case e in #(
  1459. e) printf "%s\n" "$as_me: failed program was:" >&5
  1460. sed 's/^/| /' conftest.$ac_ext >&5
  1461. ac_retval=1 ;;
  1462. esac
  1463. fi
  1464. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1465. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1466. # interfere with the next link command; also delete a directory that is
  1467. # left behind by Apple's compiler. We do this before executing the actions.
  1468. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1469. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1470. as_fn_set_status $ac_retval
  1471. } # ac_fn_c_try_link
  1472. # ac_fn_c_try_run LINENO
  1473. # ----------------------
  1474. # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
  1475. # executables *can* be run.
  1476. ac_fn_c_try_run ()
  1477. {
  1478. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1479. if { { ac_try="$ac_link"
  1480. case "(($ac_try" in
  1481. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1482. *) ac_try_echo=$ac_try;;
  1483. esac
  1484. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1485. printf "%s\n" "$ac_try_echo"; } >&5
  1486. (eval "$ac_link") 2>&5
  1487. ac_status=$?
  1488. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1489. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1490. { { case "(($ac_try" in
  1491. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1492. *) ac_try_echo=$ac_try;;
  1493. esac
  1494. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1495. printf "%s\n" "$ac_try_echo"; } >&5
  1496. (eval "$ac_try") 2>&5
  1497. ac_status=$?
  1498. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1499. test $ac_status = 0; }; }
  1500. then :
  1501. ac_retval=0
  1502. else case e in #(
  1503. e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
  1504. printf "%s\n" "$as_me: failed program was:" >&5
  1505. sed 's/^/| /' conftest.$ac_ext >&5
  1506. ac_retval=$ac_status ;;
  1507. esac
  1508. fi
  1509. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1510. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1511. as_fn_set_status $ac_retval
  1512. } # ac_fn_c_try_run
  1513. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1514. # -------------------------------------------------------
  1515. # Tests whether HEADER exists and can be compiled using the include files in
  1516. # INCLUDES, setting the cache variable VAR accordingly.
  1517. ac_fn_c_check_header_compile ()
  1518. {
  1519. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1520. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1521. printf %s "checking for $2... " >&6; }
  1522. if eval test \${$3+y}
  1523. then :
  1524. printf %s "(cached) " >&6
  1525. else case e in #(
  1526. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1527. /* end confdefs.h. */
  1528. $4
  1529. #include <$2>
  1530. _ACEOF
  1531. if ac_fn_c_try_compile "$LINENO"
  1532. then :
  1533. eval "$3=yes"
  1534. else case e in #(
  1535. e) eval "$3=no" ;;
  1536. esac
  1537. fi
  1538. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  1539. esac
  1540. fi
  1541. eval ac_res=\$$3
  1542. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1543. printf "%s\n" "$ac_res" >&6; }
  1544. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1545. } # ac_fn_c_check_header_compile
  1546. # ac_fn_c_check_func LINENO FUNC VAR
  1547. # ----------------------------------
  1548. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1549. ac_fn_c_check_func ()
  1550. {
  1551. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1553. printf %s "checking for $2... " >&6; }
  1554. if eval test \${$3+y}
  1555. then :
  1556. printf %s "(cached) " >&6
  1557. else case e in #(
  1558. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1559. /* end confdefs.h. */
  1560. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1561. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1562. #define $2 innocuous_$2
  1563. /* System header to define __stub macros and hopefully few prototypes,
  1564. which can conflict with char $2 (void); below. */
  1565. #include <limits.h>
  1566. #undef $2
  1567. /* Override any GCC internal prototype to avoid an error.
  1568. Use char because int might match the return type of a GCC
  1569. builtin and then its argument prototype would still apply. */
  1570. #ifdef __cplusplus
  1571. extern "C"
  1572. #endif
  1573. char $2 (void);
  1574. /* The GNU C library defines this for functions which it implements
  1575. to always fail with ENOSYS. Some functions are actually named
  1576. something starting with __ and the normal name is an alias. */
  1577. #if defined __stub_$2 || defined __stub___$2
  1578. choke me
  1579. #endif
  1580. int
  1581. main (void)
  1582. {
  1583. return $2 ();
  1584. ;
  1585. return 0;
  1586. }
  1587. _ACEOF
  1588. if ac_fn_c_try_link "$LINENO"
  1589. then :
  1590. eval "$3=yes"
  1591. else case e in #(
  1592. e) eval "$3=no" ;;
  1593. esac
  1594. fi
  1595. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  1596. conftest$ac_exeext conftest.$ac_ext ;;
  1597. esac
  1598. fi
  1599. eval ac_res=\$$3
  1600. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1601. printf "%s\n" "$ac_res" >&6; }
  1602. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1603. } # ac_fn_c_check_func
  1604. ac_configure_args_raw=
  1605. for ac_arg
  1606. do
  1607. case $ac_arg in
  1608. *\'*)
  1609. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1610. esac
  1611. as_fn_append ac_configure_args_raw " '$ac_arg'"
  1612. done
  1613. case $ac_configure_args_raw in
  1614. *$as_nl*)
  1615. ac_safe_unquote= ;;
  1616. *)
  1617. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  1618. ac_unsafe_a="$ac_unsafe_z#~"
  1619. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  1620. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  1621. esac
  1622. cat >config.log <<_ACEOF
  1623. This file contains any messages produced by compilers while
  1624. running configure, to aid debugging if configure makes a mistake.
  1625. It was created by zint $as_me 2.13.0, which was
  1626. generated by GNU Autoconf 2.72. Invocation command line was
  1627. $ $0$ac_configure_args_raw
  1628. _ACEOF
  1629. exec 5>>config.log
  1630. {
  1631. cat <<_ASUNAME
  1632. ## --------- ##
  1633. ## Platform. ##
  1634. ## --------- ##
  1635. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1636. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1637. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1638. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1639. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1640. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1641. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1642. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1643. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1644. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1645. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1646. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1647. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1648. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1649. _ASUNAME
  1650. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1651. for as_dir in $PATH
  1652. do
  1653. IFS=$as_save_IFS
  1654. case $as_dir in #(((
  1655. '') as_dir=./ ;;
  1656. */) ;;
  1657. *) as_dir=$as_dir/ ;;
  1658. esac
  1659. printf "%s\n" "PATH: $as_dir"
  1660. done
  1661. IFS=$as_save_IFS
  1662. } >&5
  1663. cat >&5 <<_ACEOF
  1664. ## ----------- ##
  1665. ## Core tests. ##
  1666. ## ----------- ##
  1667. _ACEOF
  1668. # Keep a trace of the command line.
  1669. # Strip out --no-create and --no-recursion so they do not pile up.
  1670. # Strip out --silent because we don't want to record it for future runs.
  1671. # Also quote any args containing shell meta-characters.
  1672. # Make two passes to allow for proper duplicate-argument suppression.
  1673. ac_configure_args=
  1674. ac_configure_args0=
  1675. ac_configure_args1=
  1676. ac_must_keep_next=false
  1677. for ac_pass in 1 2
  1678. do
  1679. for ac_arg
  1680. do
  1681. case $ac_arg in
  1682. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1683. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1684. | -silent | --silent | --silen | --sile | --sil)
  1685. continue ;;
  1686. *\'*)
  1687. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1688. esac
  1689. case $ac_pass in
  1690. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1691. 2)
  1692. as_fn_append ac_configure_args1 " '$ac_arg'"
  1693. if test $ac_must_keep_next = true; then
  1694. ac_must_keep_next=false # Got value, back to normal.
  1695. else
  1696. case $ac_arg in
  1697. *=* | --config-cache | -C | -disable-* | --disable-* \
  1698. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1699. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1700. | -with-* | --with-* | -without-* | --without-* | --x)
  1701. case "$ac_configure_args0 " in
  1702. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1703. esac
  1704. ;;
  1705. -* ) ac_must_keep_next=true ;;
  1706. esac
  1707. fi
  1708. as_fn_append ac_configure_args " '$ac_arg'"
  1709. ;;
  1710. esac
  1711. done
  1712. done
  1713. { ac_configure_args0=; unset ac_configure_args0;}
  1714. { ac_configure_args1=; unset ac_configure_args1;}
  1715. # When interrupted or exit'd, cleanup temporary files, and complete
  1716. # config.log. We remove comments because anyway the quotes in there
  1717. # would cause problems or look ugly.
  1718. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1719. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1720. trap 'exit_status=$?
  1721. # Sanitize IFS.
  1722. IFS=" "" $as_nl"
  1723. # Save into config.log some information that might help in debugging.
  1724. {
  1725. echo
  1726. printf "%s\n" "## ---------------- ##
  1727. ## Cache variables. ##
  1728. ## ---------------- ##"
  1729. echo
  1730. # The following way of writing the cache mishandles newlines in values,
  1731. (
  1732. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1733. eval ac_val=\$$ac_var
  1734. case $ac_val in #(
  1735. *${as_nl}*)
  1736. case $ac_var in #(
  1737. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1738. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1739. esac
  1740. case $ac_var in #(
  1741. _ | IFS | as_nl) ;; #(
  1742. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1743. *) { eval $ac_var=; unset $ac_var;} ;;
  1744. esac ;;
  1745. esac
  1746. done
  1747. (set) 2>&1 |
  1748. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1749. *${as_nl}ac_space=\ *)
  1750. sed -n \
  1751. "s/'\''/'\''\\\\'\'''\''/g;
  1752. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1753. ;; #(
  1754. *)
  1755. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1756. ;;
  1757. esac |
  1758. sort
  1759. )
  1760. echo
  1761. printf "%s\n" "## ----------------- ##
  1762. ## Output variables. ##
  1763. ## ----------------- ##"
  1764. echo
  1765. for ac_var in $ac_subst_vars
  1766. do
  1767. eval ac_val=\$$ac_var
  1768. case $ac_val in
  1769. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1770. esac
  1771. printf "%s\n" "$ac_var='\''$ac_val'\''"
  1772. done | sort
  1773. echo
  1774. if test -n "$ac_subst_files"; then
  1775. printf "%s\n" "## ------------------- ##
  1776. ## File substitutions. ##
  1777. ## ------------------- ##"
  1778. echo
  1779. for ac_var in $ac_subst_files
  1780. do
  1781. eval ac_val=\$$ac_var
  1782. case $ac_val in
  1783. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1784. esac
  1785. printf "%s\n" "$ac_var='\''$ac_val'\''"
  1786. done | sort
  1787. echo
  1788. fi
  1789. if test -s confdefs.h; then
  1790. printf "%s\n" "## ----------- ##
  1791. ## confdefs.h. ##
  1792. ## ----------- ##"
  1793. echo
  1794. cat confdefs.h
  1795. echo
  1796. fi
  1797. test "$ac_signal" != 0 &&
  1798. printf "%s\n" "$as_me: caught signal $ac_signal"
  1799. printf "%s\n" "$as_me: exit $exit_status"
  1800. } >&5
  1801. rm -f core *.core core.conftest.* &&
  1802. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1803. exit $exit_status
  1804. ' 0
  1805. for ac_signal in 1 2 13 15; do
  1806. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1807. done
  1808. ac_signal=0
  1809. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1810. rm -f -r conftest* confdefs.h
  1811. printf "%s\n" "/* confdefs.h */" > confdefs.h
  1812. # Predefined preprocessor variables.
  1813. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  1814. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  1815. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  1816. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  1817. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  1818. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  1819. # Let the site file select an alternate cache file if it wants to.
  1820. # Prefer an explicitly selected file to automatically selected ones.
  1821. if test -n "$CONFIG_SITE"; then
  1822. ac_site_files="$CONFIG_SITE"
  1823. elif test "x$prefix" != xNONE; then
  1824. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  1825. else
  1826. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1827. fi
  1828. for ac_site_file in $ac_site_files
  1829. do
  1830. case $ac_site_file in #(
  1831. */*) :
  1832. ;; #(
  1833. *) :
  1834. ac_site_file=./$ac_site_file ;;
  1835. esac
  1836. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  1837. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1838. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  1839. sed 's/^/| /' "$ac_site_file" >&5
  1840. . "$ac_site_file" \
  1841. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  1842. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  1843. as_fn_error $? "failed to load site script $ac_site_file
  1844. See 'config.log' for more details" "$LINENO" 5; }
  1845. fi
  1846. done
  1847. if test -r "$cache_file"; then
  1848. # Some versions of bash will fail to source /dev/null (special files
  1849. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1850. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1851. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1852. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  1853. case $cache_file in
  1854. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1855. *) . "./$cache_file";;
  1856. esac
  1857. fi
  1858. else
  1859. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1860. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  1861. >$cache_file
  1862. fi
  1863. # Test code for whether the C compiler supports C89 (global declarations)
  1864. ac_c_conftest_c89_globals='
  1865. /* Does the compiler advertise C89 conformance?
  1866. Do not test the value of __STDC__, because some compilers set it to 0
  1867. while being otherwise adequately conformant. */
  1868. #if !defined __STDC__
  1869. # error "Compiler does not advertise C89 conformance"
  1870. #endif
  1871. #include <stddef.h>
  1872. #include <stdarg.h>
  1873. struct stat;
  1874. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  1875. struct buf { int x; };
  1876. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  1877. static char *e (char **p, int i)
  1878. {
  1879. return p[i];
  1880. }
  1881. static char *f (char * (*g) (char **, int), char **p, ...)
  1882. {
  1883. char *s;
  1884. va_list v;
  1885. va_start (v,p);
  1886. s = g (p, va_arg (v,int));
  1887. va_end (v);
  1888. return s;
  1889. }
  1890. /* C89 style stringification. */
  1891. #define noexpand_stringify(a) #a
  1892. const char *stringified = noexpand_stringify(arbitrary+token=sequence);
  1893. /* C89 style token pasting. Exercises some of the corner cases that
  1894. e.g. old MSVC gets wrong, but not very hard. */
  1895. #define noexpand_concat(a,b) a##b
  1896. #define expand_concat(a,b) noexpand_concat(a,b)
  1897. extern int vA;
  1898. extern int vbee;
  1899. #define aye A
  1900. #define bee B
  1901. int *pvA = &expand_concat(v,aye);
  1902. int *pvbee = &noexpand_concat(v,bee);
  1903. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  1904. function prototypes and stuff, but not \xHH hex character constants.
  1905. These do not provoke an error unfortunately, instead are silently treated
  1906. as an "x". The following induces an error, until -std is added to get
  1907. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  1908. array size at least. It is necessary to write \x00 == 0 to get something
  1909. that is true only with -std. */
  1910. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  1911. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  1912. inside strings and character constants. */
  1913. #define FOO(x) '\''x'\''
  1914. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  1915. int test (int i, double x);
  1916. struct s1 {int (*f) (int a);};
  1917. struct s2 {int (*f) (double a);};
  1918. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  1919. int, int);'
  1920. # Test code for whether the C compiler supports C89 (body of main).
  1921. ac_c_conftest_c89_main='
  1922. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  1923. '
  1924. # Test code for whether the C compiler supports C99 (global declarations)
  1925. ac_c_conftest_c99_globals='
  1926. /* Does the compiler advertise C99 conformance? */
  1927. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  1928. # error "Compiler does not advertise C99 conformance"
  1929. #endif
  1930. // See if C++-style comments work.
  1931. #include <stdbool.h>
  1932. extern int puts (const char *);
  1933. extern int printf (const char *, ...);
  1934. extern int dprintf (int, const char *, ...);
  1935. extern void *malloc (size_t);
  1936. extern void free (void *);
  1937. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  1938. // dprintf is used instead of fprintf to avoid needing to declare
  1939. // FILE and stderr.
  1940. #define debug(...) dprintf (2, __VA_ARGS__)
  1941. #define showlist(...) puts (#__VA_ARGS__)
  1942. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  1943. static void
  1944. test_varargs_macros (void)
  1945. {
  1946. int x = 1234;
  1947. int y = 5678;
  1948. debug ("Flag");
  1949. debug ("X = %d\n", x);
  1950. showlist (The first, second, and third items.);
  1951. report (x>y, "x is %d but y is %d", x, y);
  1952. }
  1953. // Check long long types.
  1954. #define BIG64 18446744073709551615ull
  1955. #define BIG32 4294967295ul
  1956. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  1957. #if !BIG_OK
  1958. #error "your preprocessor is broken"
  1959. #endif
  1960. #if BIG_OK
  1961. #else
  1962. #error "your preprocessor is broken"
  1963. #endif
  1964. static long long int bignum = -9223372036854775807LL;
  1965. static unsigned long long int ubignum = BIG64;
  1966. struct incomplete_array
  1967. {
  1968. int datasize;
  1969. double data[];
  1970. };
  1971. struct named_init {
  1972. int number;
  1973. const wchar_t *name;
  1974. double average;
  1975. };
  1976. typedef const char *ccp;
  1977. static inline int
  1978. test_restrict (ccp restrict text)
  1979. {
  1980. // Iterate through items via the restricted pointer.
  1981. // Also check for declarations in for loops.
  1982. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  1983. continue;
  1984. return 0;
  1985. }
  1986. // Check varargs and va_copy.
  1987. static bool
  1988. test_varargs (const char *format, ...)
  1989. {
  1990. va_list args;
  1991. va_start (args, format);
  1992. va_list args_copy;
  1993. va_copy (args_copy, args);
  1994. const char *str = "";
  1995. int number = 0;
  1996. float fnumber = 0;
  1997. while (*format)
  1998. {
  1999. switch (*format++)
  2000. {
  2001. case '\''s'\'': // string
  2002. str = va_arg (args_copy, const char *);
  2003. break;
  2004. case '\''d'\'': // int
  2005. number = va_arg (args_copy, int);
  2006. break;
  2007. case '\''f'\'': // float
  2008. fnumber = va_arg (args_copy, double);
  2009. break;
  2010. default:
  2011. break;
  2012. }
  2013. }
  2014. va_end (args_copy);
  2015. va_end (args);
  2016. return *str && number && fnumber;
  2017. }
  2018. '
  2019. # Test code for whether the C compiler supports C99 (body of main).
  2020. ac_c_conftest_c99_main='
  2021. // Check bool.
  2022. _Bool success = false;
  2023. success |= (argc != 0);
  2024. // Check restrict.
  2025. if (test_restrict ("String literal") == 0)
  2026. success = true;
  2027. char *restrict newvar = "Another string";
  2028. // Check varargs.
  2029. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  2030. test_varargs_macros ();
  2031. // Check flexible array members.
  2032. struct incomplete_array *ia =
  2033. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2034. ia->datasize = 10;
  2035. for (int i = 0; i < ia->datasize; ++i)
  2036. ia->data[i] = i * 1.234;
  2037. // Work around memory leak warnings.
  2038. free (ia);
  2039. // Check named initializers.
  2040. struct named_init ni = {
  2041. .number = 34,
  2042. .name = L"Test wide string",
  2043. .average = 543.34343,
  2044. };
  2045. ni.number = 58;
  2046. int dynamic_array[ni.number];
  2047. dynamic_array[0] = argv[0][0];
  2048. dynamic_array[ni.number - 1] = 543;
  2049. // work around unused variable warnings
  2050. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  2051. || dynamic_array[ni.number - 1] != 543);
  2052. '
  2053. # Test code for whether the C compiler supports C11 (global declarations)
  2054. ac_c_conftest_c11_globals='
  2055. /* Does the compiler advertise C11 conformance? */
  2056. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  2057. # error "Compiler does not advertise C11 conformance"
  2058. #endif
  2059. // Check _Alignas.
  2060. char _Alignas (double) aligned_as_double;
  2061. char _Alignas (0) no_special_alignment;
  2062. extern char aligned_as_int;
  2063. char _Alignas (0) _Alignas (int) aligned_as_int;
  2064. // Check _Alignof.
  2065. enum
  2066. {
  2067. int_alignment = _Alignof (int),
  2068. int_array_alignment = _Alignof (int[100]),
  2069. char_alignment = _Alignof (char)
  2070. };
  2071. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  2072. // Check _Noreturn.
  2073. int _Noreturn does_not_return (void) { for (;;) continue; }
  2074. // Check _Static_assert.
  2075. struct test_static_assert
  2076. {
  2077. int x;
  2078. _Static_assert (sizeof (int) <= sizeof (long int),
  2079. "_Static_assert does not work in struct");
  2080. long int y;
  2081. };
  2082. // Check UTF-8 literals.
  2083. #define u8 syntax error!
  2084. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  2085. // Check duplicate typedefs.
  2086. typedef long *long_ptr;
  2087. typedef long int *long_ptr;
  2088. typedef long_ptr long_ptr;
  2089. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  2090. struct anonymous
  2091. {
  2092. union {
  2093. struct { int i; int j; };
  2094. struct { int k; long int l; } w;
  2095. };
  2096. int m;
  2097. } v1;
  2098. '
  2099. # Test code for whether the C compiler supports C11 (body of main).
  2100. ac_c_conftest_c11_main='
  2101. _Static_assert ((offsetof (struct anonymous, i)
  2102. == offsetof (struct anonymous, w.k)),
  2103. "Anonymous union alignment botch");
  2104. v1.i = 2;
  2105. v1.w.k = 5;
  2106. ok |= v1.i != 5;
  2107. '
  2108. # Test code for whether the C compiler supports C11 (complete).
  2109. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  2110. ${ac_c_conftest_c99_globals}
  2111. ${ac_c_conftest_c11_globals}
  2112. int
  2113. main (int argc, char **argv)
  2114. {
  2115. int ok = 0;
  2116. ${ac_c_conftest_c89_main}
  2117. ${ac_c_conftest_c99_main}
  2118. ${ac_c_conftest_c11_main}
  2119. return ok;
  2120. }
  2121. "
  2122. # Test code for whether the C compiler supports C99 (complete).
  2123. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  2124. ${ac_c_conftest_c99_globals}
  2125. int
  2126. main (int argc, char **argv)
  2127. {
  2128. int ok = 0;
  2129. ${ac_c_conftest_c89_main}
  2130. ${ac_c_conftest_c99_main}
  2131. return ok;
  2132. }
  2133. "
  2134. # Test code for whether the C compiler supports C89 (complete).
  2135. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  2136. int
  2137. main (int argc, char **argv)
  2138. {
  2139. int ok = 0;
  2140. ${ac_c_conftest_c89_main}
  2141. return ok;
  2142. }
  2143. "
  2144. as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
  2145. as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2146. as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
  2147. as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2148. as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
  2149. as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
  2150. as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2151. as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2152. as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
  2153. # Check that the precious variables saved in the cache have kept the same
  2154. # value.
  2155. ac_cache_corrupted=false
  2156. for ac_var in $ac_precious_vars; do
  2157. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2158. eval ac_new_set=\$ac_env_${ac_var}_set
  2159. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2160. eval ac_new_val=\$ac_env_${ac_var}_value
  2161. case $ac_old_set,$ac_new_set in
  2162. set,)
  2163. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
  2164. printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
  2165. ac_cache_corrupted=: ;;
  2166. ,set)
  2167. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
  2168. printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
  2169. ac_cache_corrupted=: ;;
  2170. ,);;
  2171. *)
  2172. if test "x$ac_old_val" != "x$ac_new_val"; then
  2173. # differences in whitespace do not lead to failure.
  2174. ac_old_val_w=`echo x $ac_old_val`
  2175. ac_new_val_w=`echo x $ac_new_val`
  2176. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2177. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
  2178. printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
  2179. ac_cache_corrupted=:
  2180. else
  2181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
  2182. printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
  2183. eval $ac_var=\$ac_old_val
  2184. fi
  2185. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
  2186. printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
  2187. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
  2188. printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
  2189. fi;;
  2190. esac
  2191. # Pass precious variables to config.status.
  2192. if test "$ac_new_set" = set; then
  2193. case $ac_new_val in
  2194. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2195. *) ac_arg=$ac_var=$ac_new_val ;;
  2196. esac
  2197. case " $ac_configure_args " in
  2198. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2199. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2200. esac
  2201. fi
  2202. done
  2203. if $ac_cache_corrupted; then
  2204. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  2205. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  2206. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2207. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  2208. as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
  2209. and start over" "$LINENO" 5
  2210. fi
  2211. ## -------------------- ##
  2212. ## Main body of script. ##
  2213. ## -------------------- ##
  2214. ac_ext=c
  2215. ac_cpp='$CPP $CPPFLAGS'
  2216. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2217. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2218. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2219. #--------------------------------------------------------------------
  2220. # Call TEA_INIT as the first TEA_ macro to set up initial vars.
  2221. # This will define a ${TEA_PLATFORM} variable == "unix" or "windows"
  2222. # as well as PKG_LIB_FILE and PKG_STUB_LIB_FILE.
  2223. #--------------------------------------------------------------------
  2224. TEA_VERSION="3.13"
  2225. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking TEA configuration" >&5
  2226. printf %s "checking TEA configuration... " >&6; }
  2227. if test x"${PACKAGE_NAME}" = x ; then
  2228. as_fn_error $? "
  2229. The PACKAGE_NAME variable must be defined by your TEA configure.ac" "$LINENO" 5
  2230. fi
  2231. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok (TEA ${TEA_VERSION})" >&5
  2232. printf "%s\n" "ok (TEA ${TEA_VERSION})" >&6; }
  2233. # If the user did not set CFLAGS, set it now to keep macros
  2234. # like AC_PROG_CC and AC_TRY_COMPILE from adding "-g -O2".
  2235. if test "${CFLAGS+set}" != "set" ; then
  2236. CFLAGS=""
  2237. fi
  2238. case "`uname -s`" in
  2239. *win32*|*WIN32*|*MINGW32_*|*MINGW64_*|*MSYS_*)
  2240. # Extract the first word of "cygpath", so it can be a program name with args.
  2241. set dummy cygpath; ac_word=$2
  2242. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2243. printf %s "checking for $ac_word... " >&6; }
  2244. if test ${ac_cv_prog_CYGPATH+y}
  2245. then :
  2246. printf %s "(cached) " >&6
  2247. else case e in #(
  2248. e) if test -n "$CYGPATH"; then
  2249. ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test.
  2250. else
  2251. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2252. for as_dir in $PATH
  2253. do
  2254. IFS=$as_save_IFS
  2255. case $as_dir in #(((
  2256. '') as_dir=./ ;;
  2257. */) ;;
  2258. *) as_dir=$as_dir/ ;;
  2259. esac
  2260. for ac_exec_ext in '' $ac_executable_extensions; do
  2261. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2262. ac_cv_prog_CYGPATH="cygpath -m"
  2263. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2264. break 2
  2265. fi
  2266. done
  2267. done
  2268. IFS=$as_save_IFS
  2269. test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo"
  2270. fi ;;
  2271. esac
  2272. fi
  2273. CYGPATH=$ac_cv_prog_CYGPATH
  2274. if test -n "$CYGPATH"; then
  2275. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
  2276. printf "%s\n" "$CYGPATH" >&6; }
  2277. else
  2278. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2279. printf "%s\n" "no" >&6; }
  2280. fi
  2281. EXEEXT=".exe"
  2282. TEA_PLATFORM="windows"
  2283. ;;
  2284. *CYGWIN_*)
  2285. EXEEXT=".exe"
  2286. # CYGPATH and TEA_PLATFORM are determined later in LOAD_TCLCONFIG
  2287. ;;
  2288. *)
  2289. CYGPATH=echo
  2290. # Maybe we are cross-compiling....
  2291. case ${host_alias} in
  2292. *mingw32*)
  2293. EXEEXT=".exe"
  2294. TEA_PLATFORM="windows"
  2295. ;;
  2296. *)
  2297. EXEEXT=""
  2298. TEA_PLATFORM="unix"
  2299. ;;
  2300. esac
  2301. ;;
  2302. esac
  2303. # Check if exec_prefix is set. If not use fall back to prefix.
  2304. # Note when adjusted, so that TEA_PREFIX can correct for this.
  2305. # This is needed for recursive configures, since autoconf propagates
  2306. # $prefix, but not $exec_prefix (doh!).
  2307. if test x$exec_prefix = xNONE ; then
  2308. exec_prefix_default=yes
  2309. exec_prefix=$prefix
  2310. fi
  2311. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}" >&5
  2312. printf "%s\n" "$as_me: configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}" >&6;}
  2313. # This package name must be replaced statically for AC_SUBST to work
  2314. # Substitute STUB_LIB_FILE in case package creates a stub library too.
  2315. # We AC_SUBST these here to ensure they are subst'ed,
  2316. # in case the user doesn't call TEA_ADD_...
  2317. # Configure the installer.
  2318. INSTALL='$(SHELL) $(srcdir)/tclconfig/install-sh -c'
  2319. INSTALL_DATA_DIR='${INSTALL} -d -m 755'
  2320. INSTALL_DATA='${INSTALL} -m 644'
  2321. INSTALL_PROGRAM='${INSTALL} -m 755'
  2322. INSTALL_SCRIPT='${INSTALL} -m 755'
  2323. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking system version" >&5
  2324. printf %s "checking system version... " >&6; }
  2325. if test ${tcl_cv_sys_version+y}
  2326. then :
  2327. printf %s "(cached) " >&6
  2328. else case e in #(
  2329. e)
  2330. # TEA specific:
  2331. if test "${TEA_PLATFORM}" = "windows" ; then
  2332. tcl_cv_sys_version=windows
  2333. else
  2334. tcl_cv_sys_version=`uname -s`-`uname -r`
  2335. if test "$?" -ne 0 ; then
  2336. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5
  2337. printf "%s\n" "$as_me: WARNING: can't find uname command" >&2;}
  2338. tcl_cv_sys_version=unknown
  2339. else
  2340. if test "`uname -s`" = "AIX" ; then
  2341. tcl_cv_sys_version=AIX-`uname -v`.`uname -r`
  2342. fi
  2343. if test "`uname -s`" = "NetBSD" -a -f /etc/debian_version ; then
  2344. tcl_cv_sys_version=NetBSD-Debian
  2345. fi
  2346. fi
  2347. fi
  2348. ;;
  2349. esac
  2350. fi
  2351. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5
  2352. printf "%s\n" "$tcl_cv_sys_version" >&6; }
  2353. system=$tcl_cv_sys_version
  2354. case $system in
  2355. HP-UX-*) INSTALL_LIBRARY='${INSTALL} -m 755' ;;
  2356. *) INSTALL_LIBRARY='${INSTALL} -m 644' ;;
  2357. esac
  2358. #--------------------------------------------------------------------
  2359. # Load the tclConfig.sh file
  2360. #--------------------------------------------------------------------
  2361. #
  2362. # Ok, lets find the tcl configuration
  2363. # First, look for one uninstalled.
  2364. # the alternative search directory is invoked by --with-tcl
  2365. #
  2366. if test x"${no_tcl}" = x ; then
  2367. # we reset no_tcl in case something fails here
  2368. no_tcl=true
  2369. # Check whether --with-tcl was given.
  2370. if test ${with_tcl+y}
  2371. then :
  2372. withval=$with_tcl; with_tclconfig="${withval}"
  2373. fi
  2374. # Check whether --with-tcl8 was given.
  2375. if test ${with_tcl8+y}
  2376. then :
  2377. withval=$with_tcl8; with_tcl8="${withval}"
  2378. fi
  2379. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
  2380. printf %s "checking for Tcl configuration... " >&6; }
  2381. if test ${ac_cv_c_tclconfig+y}
  2382. then :
  2383. printf %s "(cached) " >&6
  2384. else case e in #(
  2385. e)
  2386. # First check to see if --with-tcl was specified.
  2387. if test x"${with_tclconfig}" != x ; then
  2388. case "${with_tclconfig}" in
  2389. */tclConfig.sh )
  2390. if test -f "${with_tclconfig}"; then
  2391. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5
  2392. printf "%s\n" "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;}
  2393. with_tclconfig="`echo "${with_tclconfig}" | sed 's!/tclConfig\.sh$!!'`"
  2394. fi ;;
  2395. esac
  2396. if test -f "${with_tclconfig}/tclConfig.sh" ; then
  2397. ac_cv_c_tclconfig="`(cd "${with_tclconfig}"; pwd)`"
  2398. else
  2399. as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
  2400. fi
  2401. fi
  2402. # then check for a private Tcl installation
  2403. if test x"${ac_cv_c_tclconfig}" = x ; then
  2404. for i in \
  2405. ../tcl \
  2406. `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
  2407. `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
  2408. `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
  2409. ../../tcl \
  2410. `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
  2411. `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
  2412. `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
  2413. ../../../tcl \
  2414. `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
  2415. `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
  2416. `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
  2417. if test "${TEA_PLATFORM}" = "windows" \
  2418. -a -f "$i/win/tclConfig.sh" ; then
  2419. ac_cv_c_tclconfig="`(cd $i/win; pwd)`"
  2420. break
  2421. fi
  2422. if test -f "$i/unix/tclConfig.sh" ; then
  2423. ac_cv_c_tclconfig="`(cd $i/unix; pwd)`"
  2424. break
  2425. fi
  2426. done
  2427. fi
  2428. # on Darwin, check in Framework installation locations
  2429. if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
  2430. for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
  2431. `ls -d /Library/Frameworks 2>/dev/null` \
  2432. `ls -d /Network/Library/Frameworks 2>/dev/null` \
  2433. `ls -d /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/Library/Frameworks/Tcl.framework 2>/dev/null` \
  2434. `ls -d /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/Network/Library/Frameworks/Tcl.framework 2>/dev/null` \
  2435. `ls -d /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Tcl.framework 2>/dev/null` \
  2436. ; do
  2437. if test -f "$i/Tcl.framework/tclConfig.sh" ; then
  2438. ac_cv_c_tclconfig="`(cd $i/Tcl.framework; pwd)`"
  2439. break
  2440. fi
  2441. done
  2442. fi
  2443. # TEA specific: on Windows, check in common installation locations
  2444. if test "${TEA_PLATFORM}" = "windows" \
  2445. -a x"${ac_cv_c_tclconfig}" = x ; then
  2446. for i in `ls -d C:/Tcl/lib 2>/dev/null` \
  2447. `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \
  2448. ; do
  2449. if test -f "$i/tclConfig.sh" ; then
  2450. ac_cv_c_tclconfig="`(cd $i; pwd)`"
  2451. break
  2452. fi
  2453. done
  2454. fi
  2455. # check in a few common install locations
  2456. if test x"${ac_cv_c_tclconfig}" = x ; then
  2457. for i in `ls -d ${libdir} 2>/dev/null` \
  2458. `ls -d ${exec_prefix}/lib 2>/dev/null` \
  2459. `ls -d ${prefix}/lib 2>/dev/null` \
  2460. `ls -d /usr/local/lib 2>/dev/null` \
  2461. `ls -d /usr/contrib/lib 2>/dev/null` \
  2462. `ls -d /usr/pkg/lib 2>/dev/null` \
  2463. `ls -d /usr/lib 2>/dev/null` \
  2464. `ls -d /usr/lib64 2>/dev/null` \
  2465. `ls -d /usr/lib/tcl8.6 2>/dev/null` \
  2466. `ls -d /usr/lib/tcl8.5 2>/dev/null` \
  2467. `ls -d /usr/local/lib/tcl8.6 2>/dev/null` \
  2468. `ls -d /usr/local/lib/tcl8.5 2>/dev/null` \
  2469. `ls -d /usr/local/lib/tcl/tcl8.6 2>/dev/null` \
  2470. `ls -d /usr/local/lib/tcl/tcl8.5 2>/dev/null` \
  2471. ; do
  2472. if test -f "$i/tclConfig.sh" ; then
  2473. ac_cv_c_tclconfig="`(cd $i; pwd)`"
  2474. break
  2475. fi
  2476. done
  2477. fi
  2478. # check in a few other private locations
  2479. if test x"${ac_cv_c_tclconfig}" = x ; then
  2480. for i in \
  2481. ${srcdir}/../tcl \
  2482. `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
  2483. `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
  2484. `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
  2485. if test "${TEA_PLATFORM}" = "windows" \
  2486. -a -f "$i/win/tclConfig.sh" ; then
  2487. ac_cv_c_tclconfig="`(cd $i/win; pwd)`"
  2488. break
  2489. fi
  2490. if test -f "$i/unix/tclConfig.sh" ; then
  2491. ac_cv_c_tclconfig="`(cd $i/unix; pwd)`"
  2492. break
  2493. fi
  2494. done
  2495. fi
  2496. ;;
  2497. esac
  2498. fi
  2499. if test x"${ac_cv_c_tclconfig}" = x ; then
  2500. TCL_BIN_DIR="# no Tcl configs found"
  2501. as_fn_error $? "Can't find Tcl configuration definitions. Use --with-tcl to specify a directory containing tclConfig.sh" "$LINENO" 5
  2502. else
  2503. no_tcl=
  2504. TCL_BIN_DIR="${ac_cv_c_tclconfig}"
  2505. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
  2506. printf "%s\n" "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
  2507. fi
  2508. fi
  2509. ac_ext=c
  2510. ac_cpp='$CPP $CPPFLAGS'
  2511. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2512. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2513. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2514. if test -n "$ac_tool_prefix"; then
  2515. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2516. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2517. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2518. printf %s "checking for $ac_word... " >&6; }
  2519. if test ${ac_cv_prog_CC+y}
  2520. then :
  2521. printf %s "(cached) " >&6
  2522. else case e in #(
  2523. e) if test -n "$CC"; then
  2524. ac_cv_prog_CC="$CC" # Let the user override the test.
  2525. else
  2526. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2527. for as_dir in $PATH
  2528. do
  2529. IFS=$as_save_IFS
  2530. case $as_dir in #(((
  2531. '') as_dir=./ ;;
  2532. */) ;;
  2533. *) as_dir=$as_dir/ ;;
  2534. esac
  2535. for ac_exec_ext in '' $ac_executable_extensions; do
  2536. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2537. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2538. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2539. break 2
  2540. fi
  2541. done
  2542. done
  2543. IFS=$as_save_IFS
  2544. fi ;;
  2545. esac
  2546. fi
  2547. CC=$ac_cv_prog_CC
  2548. if test -n "$CC"; then
  2549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2550. printf "%s\n" "$CC" >&6; }
  2551. else
  2552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2553. printf "%s\n" "no" >&6; }
  2554. fi
  2555. fi
  2556. if test -z "$ac_cv_prog_CC"; then
  2557. ac_ct_CC=$CC
  2558. # Extract the first word of "gcc", so it can be a program name with args.
  2559. set dummy gcc; ac_word=$2
  2560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2561. printf %s "checking for $ac_word... " >&6; }
  2562. if test ${ac_cv_prog_ac_ct_CC+y}
  2563. then :
  2564. printf %s "(cached) " >&6
  2565. else case e in #(
  2566. e) if test -n "$ac_ct_CC"; then
  2567. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2568. else
  2569. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2570. for as_dir in $PATH
  2571. do
  2572. IFS=$as_save_IFS
  2573. case $as_dir in #(((
  2574. '') as_dir=./ ;;
  2575. */) ;;
  2576. *) as_dir=$as_dir/ ;;
  2577. esac
  2578. for ac_exec_ext in '' $ac_executable_extensions; do
  2579. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2580. ac_cv_prog_ac_ct_CC="gcc"
  2581. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2582. break 2
  2583. fi
  2584. done
  2585. done
  2586. IFS=$as_save_IFS
  2587. fi ;;
  2588. esac
  2589. fi
  2590. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2591. if test -n "$ac_ct_CC"; then
  2592. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2593. printf "%s\n" "$ac_ct_CC" >&6; }
  2594. else
  2595. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2596. printf "%s\n" "no" >&6; }
  2597. fi
  2598. if test "x$ac_ct_CC" = x; then
  2599. CC=""
  2600. else
  2601. case $cross_compiling:$ac_tool_warned in
  2602. yes:)
  2603. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2604. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2605. ac_tool_warned=yes ;;
  2606. esac
  2607. CC=$ac_ct_CC
  2608. fi
  2609. else
  2610. CC="$ac_cv_prog_CC"
  2611. fi
  2612. if test -z "$CC"; then
  2613. if test -n "$ac_tool_prefix"; then
  2614. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2615. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2616. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2617. printf %s "checking for $ac_word... " >&6; }
  2618. if test ${ac_cv_prog_CC+y}
  2619. then :
  2620. printf %s "(cached) " >&6
  2621. else case e in #(
  2622. e) if test -n "$CC"; then
  2623. ac_cv_prog_CC="$CC" # Let the user override the test.
  2624. else
  2625. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2626. for as_dir in $PATH
  2627. do
  2628. IFS=$as_save_IFS
  2629. case $as_dir in #(((
  2630. '') as_dir=./ ;;
  2631. */) ;;
  2632. *) as_dir=$as_dir/ ;;
  2633. esac
  2634. for ac_exec_ext in '' $ac_executable_extensions; do
  2635. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2636. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2637. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2638. break 2
  2639. fi
  2640. done
  2641. done
  2642. IFS=$as_save_IFS
  2643. fi ;;
  2644. esac
  2645. fi
  2646. CC=$ac_cv_prog_CC
  2647. if test -n "$CC"; then
  2648. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2649. printf "%s\n" "$CC" >&6; }
  2650. else
  2651. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2652. printf "%s\n" "no" >&6; }
  2653. fi
  2654. fi
  2655. fi
  2656. if test -z "$CC"; then
  2657. # Extract the first word of "cc", so it can be a program name with args.
  2658. set dummy cc; ac_word=$2
  2659. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2660. printf %s "checking for $ac_word... " >&6; }
  2661. if test ${ac_cv_prog_CC+y}
  2662. then :
  2663. printf %s "(cached) " >&6
  2664. else case e in #(
  2665. e) if test -n "$CC"; then
  2666. ac_cv_prog_CC="$CC" # Let the user override the test.
  2667. else
  2668. ac_prog_rejected=no
  2669. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2670. for as_dir in $PATH
  2671. do
  2672. IFS=$as_save_IFS
  2673. case $as_dir in #(((
  2674. '') as_dir=./ ;;
  2675. */) ;;
  2676. *) as_dir=$as_dir/ ;;
  2677. esac
  2678. for ac_exec_ext in '' $ac_executable_extensions; do
  2679. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2680. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2681. ac_prog_rejected=yes
  2682. continue
  2683. fi
  2684. ac_cv_prog_CC="cc"
  2685. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2686. break 2
  2687. fi
  2688. done
  2689. done
  2690. IFS=$as_save_IFS
  2691. if test $ac_prog_rejected = yes; then
  2692. # We found a bogon in the path, so make sure we never use it.
  2693. set dummy $ac_cv_prog_CC
  2694. shift
  2695. if test $# != 0; then
  2696. # We chose a different compiler from the bogus one.
  2697. # However, it has the same basename, so the bogon will be chosen
  2698. # first if we set CC to just the basename; use the full file name.
  2699. shift
  2700. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  2701. fi
  2702. fi
  2703. fi ;;
  2704. esac
  2705. fi
  2706. CC=$ac_cv_prog_CC
  2707. if test -n "$CC"; then
  2708. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2709. printf "%s\n" "$CC" >&6; }
  2710. else
  2711. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2712. printf "%s\n" "no" >&6; }
  2713. fi
  2714. fi
  2715. if test -z "$CC"; then
  2716. if test -n "$ac_tool_prefix"; then
  2717. for ac_prog in cl.exe
  2718. do
  2719. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2720. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2721. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2722. printf %s "checking for $ac_word... " >&6; }
  2723. if test ${ac_cv_prog_CC+y}
  2724. then :
  2725. printf %s "(cached) " >&6
  2726. else case e in #(
  2727. e) if test -n "$CC"; then
  2728. ac_cv_prog_CC="$CC" # Let the user override the test.
  2729. else
  2730. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2731. for as_dir in $PATH
  2732. do
  2733. IFS=$as_save_IFS
  2734. case $as_dir in #(((
  2735. '') as_dir=./ ;;
  2736. */) ;;
  2737. *) as_dir=$as_dir/ ;;
  2738. esac
  2739. for ac_exec_ext in '' $ac_executable_extensions; do
  2740. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2741. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2742. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2743. break 2
  2744. fi
  2745. done
  2746. done
  2747. IFS=$as_save_IFS
  2748. fi ;;
  2749. esac
  2750. fi
  2751. CC=$ac_cv_prog_CC
  2752. if test -n "$CC"; then
  2753. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2754. printf "%s\n" "$CC" >&6; }
  2755. else
  2756. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2757. printf "%s\n" "no" >&6; }
  2758. fi
  2759. test -n "$CC" && break
  2760. done
  2761. fi
  2762. if test -z "$CC"; then
  2763. ac_ct_CC=$CC
  2764. for ac_prog in cl.exe
  2765. do
  2766. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2767. set dummy $ac_prog; ac_word=$2
  2768. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2769. printf %s "checking for $ac_word... " >&6; }
  2770. if test ${ac_cv_prog_ac_ct_CC+y}
  2771. then :
  2772. printf %s "(cached) " >&6
  2773. else case e in #(
  2774. e) if test -n "$ac_ct_CC"; then
  2775. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2776. else
  2777. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2778. for as_dir in $PATH
  2779. do
  2780. IFS=$as_save_IFS
  2781. case $as_dir in #(((
  2782. '') as_dir=./ ;;
  2783. */) ;;
  2784. *) as_dir=$as_dir/ ;;
  2785. esac
  2786. for ac_exec_ext in '' $ac_executable_extensions; do
  2787. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2788. ac_cv_prog_ac_ct_CC="$ac_prog"
  2789. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2790. break 2
  2791. fi
  2792. done
  2793. done
  2794. IFS=$as_save_IFS
  2795. fi ;;
  2796. esac
  2797. fi
  2798. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2799. if test -n "$ac_ct_CC"; then
  2800. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2801. printf "%s\n" "$ac_ct_CC" >&6; }
  2802. else
  2803. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2804. printf "%s\n" "no" >&6; }
  2805. fi
  2806. test -n "$ac_ct_CC" && break
  2807. done
  2808. if test "x$ac_ct_CC" = x; then
  2809. CC=""
  2810. else
  2811. case $cross_compiling:$ac_tool_warned in
  2812. yes:)
  2813. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2814. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2815. ac_tool_warned=yes ;;
  2816. esac
  2817. CC=$ac_ct_CC
  2818. fi
  2819. fi
  2820. fi
  2821. if test -z "$CC"; then
  2822. if test -n "$ac_tool_prefix"; then
  2823. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  2824. set dummy ${ac_tool_prefix}clang; ac_word=$2
  2825. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2826. printf %s "checking for $ac_word... " >&6; }
  2827. if test ${ac_cv_prog_CC+y}
  2828. then :
  2829. printf %s "(cached) " >&6
  2830. else case e in #(
  2831. e) if test -n "$CC"; then
  2832. ac_cv_prog_CC="$CC" # Let the user override the test.
  2833. else
  2834. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2835. for as_dir in $PATH
  2836. do
  2837. IFS=$as_save_IFS
  2838. case $as_dir in #(((
  2839. '') as_dir=./ ;;
  2840. */) ;;
  2841. *) as_dir=$as_dir/ ;;
  2842. esac
  2843. for ac_exec_ext in '' $ac_executable_extensions; do
  2844. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2845. ac_cv_prog_CC="${ac_tool_prefix}clang"
  2846. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2847. break 2
  2848. fi
  2849. done
  2850. done
  2851. IFS=$as_save_IFS
  2852. fi ;;
  2853. esac
  2854. fi
  2855. CC=$ac_cv_prog_CC
  2856. if test -n "$CC"; then
  2857. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2858. printf "%s\n" "$CC" >&6; }
  2859. else
  2860. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2861. printf "%s\n" "no" >&6; }
  2862. fi
  2863. fi
  2864. if test -z "$ac_cv_prog_CC"; then
  2865. ac_ct_CC=$CC
  2866. # Extract the first word of "clang", so it can be a program name with args.
  2867. set dummy clang; ac_word=$2
  2868. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2869. printf %s "checking for $ac_word... " >&6; }
  2870. if test ${ac_cv_prog_ac_ct_CC+y}
  2871. then :
  2872. printf %s "(cached) " >&6
  2873. else case e in #(
  2874. e) if test -n "$ac_ct_CC"; then
  2875. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2876. else
  2877. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2878. for as_dir in $PATH
  2879. do
  2880. IFS=$as_save_IFS
  2881. case $as_dir in #(((
  2882. '') as_dir=./ ;;
  2883. */) ;;
  2884. *) as_dir=$as_dir/ ;;
  2885. esac
  2886. for ac_exec_ext in '' $ac_executable_extensions; do
  2887. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2888. ac_cv_prog_ac_ct_CC="clang"
  2889. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2890. break 2
  2891. fi
  2892. done
  2893. done
  2894. IFS=$as_save_IFS
  2895. fi ;;
  2896. esac
  2897. fi
  2898. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2899. if test -n "$ac_ct_CC"; then
  2900. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2901. printf "%s\n" "$ac_ct_CC" >&6; }
  2902. else
  2903. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2904. printf "%s\n" "no" >&6; }
  2905. fi
  2906. if test "x$ac_ct_CC" = x; then
  2907. CC=""
  2908. else
  2909. case $cross_compiling:$ac_tool_warned in
  2910. yes:)
  2911. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2912. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2913. ac_tool_warned=yes ;;
  2914. esac
  2915. CC=$ac_ct_CC
  2916. fi
  2917. else
  2918. CC="$ac_cv_prog_CC"
  2919. fi
  2920. fi
  2921. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  2922. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  2923. as_fn_error $? "no acceptable C compiler found in \$PATH
  2924. See 'config.log' for more details" "$LINENO" 5; }
  2925. # Provide some information about the compiler.
  2926. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2927. set X $ac_compile
  2928. ac_compiler=$2
  2929. for ac_option in --version -v -V -qversion -version; do
  2930. { { ac_try="$ac_compiler $ac_option >&5"
  2931. case "(($ac_try" in
  2932. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2933. *) ac_try_echo=$ac_try;;
  2934. esac
  2935. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2936. printf "%s\n" "$ac_try_echo"; } >&5
  2937. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2938. ac_status=$?
  2939. if test -s conftest.err; then
  2940. sed '10a\
  2941. ... rest of stderr output deleted ...
  2942. 10q' conftest.err >conftest.er1
  2943. cat conftest.er1 >&5
  2944. fi
  2945. rm -f conftest.er1 conftest.err
  2946. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2947. test $ac_status = 0; }
  2948. done
  2949. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2950. /* end confdefs.h. */
  2951. int
  2952. main (void)
  2953. {
  2954. ;
  2955. return 0;
  2956. }
  2957. _ACEOF
  2958. ac_clean_files_save=$ac_clean_files
  2959. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2960. # Try to create an executable without -o first, disregard a.out.
  2961. # It will help us diagnose broken compilers, and finding out an intuition
  2962. # of exeext.
  2963. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2964. printf %s "checking whether the C compiler works... " >&6; }
  2965. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2966. # The possible output files:
  2967. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2968. ac_rmfiles=
  2969. for ac_file in $ac_files
  2970. do
  2971. case $ac_file in
  2972. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2973. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2974. esac
  2975. done
  2976. rm -f $ac_rmfiles
  2977. if { { ac_try="$ac_link_default"
  2978. case "(($ac_try" in
  2979. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2980. *) ac_try_echo=$ac_try;;
  2981. esac
  2982. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2983. printf "%s\n" "$ac_try_echo"; } >&5
  2984. (eval "$ac_link_default") 2>&5
  2985. ac_status=$?
  2986. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2987. test $ac_status = 0; }
  2988. then :
  2989. # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
  2990. # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
  2991. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2992. # so that the user can short-circuit this test for compilers unknown to
  2993. # Autoconf.
  2994. for ac_file in $ac_files ''
  2995. do
  2996. test -f "$ac_file" || continue
  2997. case $ac_file in
  2998. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2999. ;;
  3000. [ab].out )
  3001. # We found the default executable, but exeext='' is most
  3002. # certainly right.
  3003. break;;
  3004. *.* )
  3005. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  3006. then :; else
  3007. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3008. fi
  3009. # We set ac_cv_exeext here because the later test for it is not
  3010. # safe: cross compilers may not add the suffix if given an '-o'
  3011. # argument, so we may need to know it at that point already.
  3012. # Even if this section looks crufty: it has the advantage of
  3013. # actually working.
  3014. break;;
  3015. * )
  3016. break;;
  3017. esac
  3018. done
  3019. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3020. else case e in #(
  3021. e) ac_file='' ;;
  3022. esac
  3023. fi
  3024. if test -z "$ac_file"
  3025. then :
  3026. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3027. printf "%s\n" "no" >&6; }
  3028. printf "%s\n" "$as_me: failed program was:" >&5
  3029. sed 's/^/| /' conftest.$ac_ext >&5
  3030. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  3031. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  3032. as_fn_error 77 "C compiler cannot create executables
  3033. See 'config.log' for more details" "$LINENO" 5; }
  3034. else case e in #(
  3035. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3036. printf "%s\n" "yes" >&6; } ;;
  3037. esac
  3038. fi
  3039. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3040. printf %s "checking for C compiler default output file name... " >&6; }
  3041. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3042. printf "%s\n" "$ac_file" >&6; }
  3043. ac_exeext=$ac_cv_exeext
  3044. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3045. ac_clean_files=$ac_clean_files_save
  3046. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3047. printf %s "checking for suffix of executables... " >&6; }
  3048. if { { ac_try="$ac_link"
  3049. case "(($ac_try" in
  3050. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3051. *) ac_try_echo=$ac_try;;
  3052. esac
  3053. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3054. printf "%s\n" "$ac_try_echo"; } >&5
  3055. (eval "$ac_link") 2>&5
  3056. ac_status=$?
  3057. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3058. test $ac_status = 0; }
  3059. then :
  3060. # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
  3061. # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
  3062. # work properly (i.e., refer to 'conftest.exe'), while it won't with
  3063. # 'rm'.
  3064. for ac_file in conftest.exe conftest conftest.*; do
  3065. test -f "$ac_file" || continue
  3066. case $ac_file in
  3067. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3068. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3069. break;;
  3070. * ) break;;
  3071. esac
  3072. done
  3073. else case e in #(
  3074. e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  3075. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  3076. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3077. See 'config.log' for more details" "$LINENO" 5; } ;;
  3078. esac
  3079. fi
  3080. rm -f conftest conftest$ac_cv_exeext
  3081. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3082. printf "%s\n" "$ac_cv_exeext" >&6; }
  3083. rm -f conftest.$ac_ext
  3084. EXEEXT=$ac_cv_exeext
  3085. ac_exeext=$EXEEXT
  3086. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3087. /* end confdefs.h. */
  3088. #include <stdio.h>
  3089. int
  3090. main (void)
  3091. {
  3092. FILE *f = fopen ("conftest.out", "w");
  3093. if (!f)
  3094. return 1;
  3095. return ferror (f) || fclose (f) != 0;
  3096. ;
  3097. return 0;
  3098. }
  3099. _ACEOF
  3100. ac_clean_files="$ac_clean_files conftest.out"
  3101. # Check that the compiler produces executables we can run. If not, either
  3102. # the compiler is broken, or we cross compile.
  3103. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3104. printf %s "checking whether we are cross compiling... " >&6; }
  3105. if test "$cross_compiling" != yes; then
  3106. { { ac_try="$ac_link"
  3107. case "(($ac_try" in
  3108. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3109. *) ac_try_echo=$ac_try;;
  3110. esac
  3111. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3112. printf "%s\n" "$ac_try_echo"; } >&5
  3113. (eval "$ac_link") 2>&5
  3114. ac_status=$?
  3115. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3116. test $ac_status = 0; }
  3117. if { ac_try='./conftest$ac_cv_exeext'
  3118. { { case "(($ac_try" in
  3119. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3120. *) ac_try_echo=$ac_try;;
  3121. esac
  3122. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3123. printf "%s\n" "$ac_try_echo"; } >&5
  3124. (eval "$ac_try") 2>&5
  3125. ac_status=$?
  3126. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3127. test $ac_status = 0; }; }; then
  3128. cross_compiling=no
  3129. else
  3130. if test "$cross_compiling" = maybe; then
  3131. cross_compiling=yes
  3132. else
  3133. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  3134. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  3135. as_fn_error 77 "cannot run C compiled programs.
  3136. If you meant to cross compile, use '--host'.
  3137. See 'config.log' for more details" "$LINENO" 5; }
  3138. fi
  3139. fi
  3140. fi
  3141. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3142. printf "%s\n" "$cross_compiling" >&6; }
  3143. rm -f conftest.$ac_ext conftest$ac_cv_exeext \
  3144. conftest.o conftest.obj conftest.out
  3145. ac_clean_files=$ac_clean_files_save
  3146. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3147. printf %s "checking for suffix of object files... " >&6; }
  3148. if test ${ac_cv_objext+y}
  3149. then :
  3150. printf %s "(cached) " >&6
  3151. else case e in #(
  3152. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3153. /* end confdefs.h. */
  3154. int
  3155. main (void)
  3156. {
  3157. ;
  3158. return 0;
  3159. }
  3160. _ACEOF
  3161. rm -f conftest.o conftest.obj
  3162. if { { ac_try="$ac_compile"
  3163. case "(($ac_try" in
  3164. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3165. *) ac_try_echo=$ac_try;;
  3166. esac
  3167. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3168. printf "%s\n" "$ac_try_echo"; } >&5
  3169. (eval "$ac_compile") 2>&5
  3170. ac_status=$?
  3171. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3172. test $ac_status = 0; }
  3173. then :
  3174. for ac_file in conftest.o conftest.obj conftest.*; do
  3175. test -f "$ac_file" || continue;
  3176. case $ac_file in
  3177. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3178. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3179. break;;
  3180. esac
  3181. done
  3182. else case e in #(
  3183. e) printf "%s\n" "$as_me: failed program was:" >&5
  3184. sed 's/^/| /' conftest.$ac_ext >&5
  3185. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  3186. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  3187. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3188. See 'config.log' for more details" "$LINENO" 5; } ;;
  3189. esac
  3190. fi
  3191. rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
  3192. esac
  3193. fi
  3194. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3195. printf "%s\n" "$ac_cv_objext" >&6; }
  3196. OBJEXT=$ac_cv_objext
  3197. ac_objext=$OBJEXT
  3198. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  3199. printf %s "checking whether the compiler supports GNU C... " >&6; }
  3200. if test ${ac_cv_c_compiler_gnu+y}
  3201. then :
  3202. printf %s "(cached) " >&6
  3203. else case e in #(
  3204. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3205. /* end confdefs.h. */
  3206. int
  3207. main (void)
  3208. {
  3209. #ifndef __GNUC__
  3210. choke me
  3211. #endif
  3212. ;
  3213. return 0;
  3214. }
  3215. _ACEOF
  3216. if ac_fn_c_try_compile "$LINENO"
  3217. then :
  3218. ac_compiler_gnu=yes
  3219. else case e in #(
  3220. e) ac_compiler_gnu=no ;;
  3221. esac
  3222. fi
  3223. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3224. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3225. ;;
  3226. esac
  3227. fi
  3228. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3229. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  3230. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3231. if test $ac_compiler_gnu = yes; then
  3232. GCC=yes
  3233. else
  3234. GCC=
  3235. fi
  3236. ac_test_CFLAGS=${CFLAGS+y}
  3237. ac_save_CFLAGS=$CFLAGS
  3238. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3239. printf %s "checking whether $CC accepts -g... " >&6; }
  3240. if test ${ac_cv_prog_cc_g+y}
  3241. then :
  3242. printf %s "(cached) " >&6
  3243. else case e in #(
  3244. e) ac_save_c_werror_flag=$ac_c_werror_flag
  3245. ac_c_werror_flag=yes
  3246. ac_cv_prog_cc_g=no
  3247. CFLAGS="-g"
  3248. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3249. /* end confdefs.h. */
  3250. int
  3251. main (void)
  3252. {
  3253. ;
  3254. return 0;
  3255. }
  3256. _ACEOF
  3257. if ac_fn_c_try_compile "$LINENO"
  3258. then :
  3259. ac_cv_prog_cc_g=yes
  3260. else case e in #(
  3261. e) CFLAGS=""
  3262. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3263. /* end confdefs.h. */
  3264. int
  3265. main (void)
  3266. {
  3267. ;
  3268. return 0;
  3269. }
  3270. _ACEOF
  3271. if ac_fn_c_try_compile "$LINENO"
  3272. then :
  3273. else case e in #(
  3274. e) ac_c_werror_flag=$ac_save_c_werror_flag
  3275. CFLAGS="-g"
  3276. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3277. /* end confdefs.h. */
  3278. int
  3279. main (void)
  3280. {
  3281. ;
  3282. return 0;
  3283. }
  3284. _ACEOF
  3285. if ac_fn_c_try_compile "$LINENO"
  3286. then :
  3287. ac_cv_prog_cc_g=yes
  3288. fi
  3289. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  3290. esac
  3291. fi
  3292. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  3293. esac
  3294. fi
  3295. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3296. ac_c_werror_flag=$ac_save_c_werror_flag ;;
  3297. esac
  3298. fi
  3299. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3300. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  3301. if test $ac_test_CFLAGS; then
  3302. CFLAGS=$ac_save_CFLAGS
  3303. elif test $ac_cv_prog_cc_g = yes; then
  3304. if test "$GCC" = yes; then
  3305. CFLAGS="-g -O2"
  3306. else
  3307. CFLAGS="-g"
  3308. fi
  3309. else
  3310. if test "$GCC" = yes; then
  3311. CFLAGS="-O2"
  3312. else
  3313. CFLAGS=
  3314. fi
  3315. fi
  3316. ac_prog_cc_stdc=no
  3317. if test x$ac_prog_cc_stdc = xno
  3318. then :
  3319. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  3320. printf %s "checking for $CC option to enable C11 features... " >&6; }
  3321. if test ${ac_cv_prog_cc_c11+y}
  3322. then :
  3323. printf %s "(cached) " >&6
  3324. else case e in #(
  3325. e) ac_cv_prog_cc_c11=no
  3326. ac_save_CC=$CC
  3327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3328. /* end confdefs.h. */
  3329. $ac_c_conftest_c11_program
  3330. _ACEOF
  3331. for ac_arg in '' -std=gnu11
  3332. do
  3333. CC="$ac_save_CC $ac_arg"
  3334. if ac_fn_c_try_compile "$LINENO"
  3335. then :
  3336. ac_cv_prog_cc_c11=$ac_arg
  3337. fi
  3338. rm -f core conftest.err conftest.$ac_objext conftest.beam
  3339. test "x$ac_cv_prog_cc_c11" != "xno" && break
  3340. done
  3341. rm -f conftest.$ac_ext
  3342. CC=$ac_save_CC ;;
  3343. esac
  3344. fi
  3345. if test "x$ac_cv_prog_cc_c11" = xno
  3346. then :
  3347. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3348. printf "%s\n" "unsupported" >&6; }
  3349. else case e in #(
  3350. e) if test "x$ac_cv_prog_cc_c11" = x
  3351. then :
  3352. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3353. printf "%s\n" "none needed" >&6; }
  3354. else case e in #(
  3355. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  3356. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  3357. CC="$CC $ac_cv_prog_cc_c11" ;;
  3358. esac
  3359. fi
  3360. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  3361. ac_prog_cc_stdc=c11 ;;
  3362. esac
  3363. fi
  3364. fi
  3365. if test x$ac_prog_cc_stdc = xno
  3366. then :
  3367. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  3368. printf %s "checking for $CC option to enable C99 features... " >&6; }
  3369. if test ${ac_cv_prog_cc_c99+y}
  3370. then :
  3371. printf %s "(cached) " >&6
  3372. else case e in #(
  3373. e) ac_cv_prog_cc_c99=no
  3374. ac_save_CC=$CC
  3375. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3376. /* end confdefs.h. */
  3377. $ac_c_conftest_c99_program
  3378. _ACEOF
  3379. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  3380. do
  3381. CC="$ac_save_CC $ac_arg"
  3382. if ac_fn_c_try_compile "$LINENO"
  3383. then :
  3384. ac_cv_prog_cc_c99=$ac_arg
  3385. fi
  3386. rm -f core conftest.err conftest.$ac_objext conftest.beam
  3387. test "x$ac_cv_prog_cc_c99" != "xno" && break
  3388. done
  3389. rm -f conftest.$ac_ext
  3390. CC=$ac_save_CC ;;
  3391. esac
  3392. fi
  3393. if test "x$ac_cv_prog_cc_c99" = xno
  3394. then :
  3395. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3396. printf "%s\n" "unsupported" >&6; }
  3397. else case e in #(
  3398. e) if test "x$ac_cv_prog_cc_c99" = x
  3399. then :
  3400. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3401. printf "%s\n" "none needed" >&6; }
  3402. else case e in #(
  3403. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  3404. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  3405. CC="$CC $ac_cv_prog_cc_c99" ;;
  3406. esac
  3407. fi
  3408. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  3409. ac_prog_cc_stdc=c99 ;;
  3410. esac
  3411. fi
  3412. fi
  3413. if test x$ac_prog_cc_stdc = xno
  3414. then :
  3415. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  3416. printf %s "checking for $CC option to enable C89 features... " >&6; }
  3417. if test ${ac_cv_prog_cc_c89+y}
  3418. then :
  3419. printf %s "(cached) " >&6
  3420. else case e in #(
  3421. e) ac_cv_prog_cc_c89=no
  3422. ac_save_CC=$CC
  3423. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3424. /* end confdefs.h. */
  3425. $ac_c_conftest_c89_program
  3426. _ACEOF
  3427. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3428. do
  3429. CC="$ac_save_CC $ac_arg"
  3430. if ac_fn_c_try_compile "$LINENO"
  3431. then :
  3432. ac_cv_prog_cc_c89=$ac_arg
  3433. fi
  3434. rm -f core conftest.err conftest.$ac_objext conftest.beam
  3435. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3436. done
  3437. rm -f conftest.$ac_ext
  3438. CC=$ac_save_CC ;;
  3439. esac
  3440. fi
  3441. if test "x$ac_cv_prog_cc_c89" = xno
  3442. then :
  3443. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3444. printf "%s\n" "unsupported" >&6; }
  3445. else case e in #(
  3446. e) if test "x$ac_cv_prog_cc_c89" = x
  3447. then :
  3448. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3449. printf "%s\n" "none needed" >&6; }
  3450. else case e in #(
  3451. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3452. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  3453. CC="$CC $ac_cv_prog_cc_c89" ;;
  3454. esac
  3455. fi
  3456. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  3457. ac_prog_cc_stdc=c89 ;;
  3458. esac
  3459. fi
  3460. fi
  3461. ac_ext=c
  3462. ac_cpp='$CPP $CPPFLAGS'
  3463. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3464. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3465. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3466. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
  3467. printf %s "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
  3468. if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
  3469. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: loading" >&5
  3470. printf "%s\n" "loading" >&6; }
  3471. . "${TCL_BIN_DIR}/tclConfig.sh"
  3472. else
  3473. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
  3474. printf "%s\n" "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
  3475. fi
  3476. # If the TCL_BIN_DIR is the build directory (not the install directory),
  3477. # then set the common variable name to the value of the build variables.
  3478. # For example, the variable TCL_LIB_SPEC will be set to the value
  3479. # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
  3480. # instead of TCL_BUILD_LIB_SPEC since it will work with both an
  3481. # installed and uninstalled version of Tcl.
  3482. if test -f "${TCL_BIN_DIR}/Makefile" ; then
  3483. TCL_LIB_SPEC="${TCL_BUILD_LIB_SPEC}"
  3484. TCL_STUB_LIB_SPEC="${TCL_BUILD_STUB_LIB_SPEC}"
  3485. TCL_STUB_LIB_PATH="${TCL_BUILD_STUB_LIB_PATH}"
  3486. elif test "`uname -s`" = "Darwin"; then
  3487. # If Tcl was built as a framework, attempt to use the libraries
  3488. # from the framework at the given location so that linking works
  3489. # against Tcl.framework installed in an arbitrary location.
  3490. case ${TCL_DEFS} in
  3491. *TCL_FRAMEWORK*)
  3492. if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
  3493. for i in "`cd "${TCL_BIN_DIR}"; pwd`" \
  3494. "`cd "${TCL_BIN_DIR}"/../..; pwd`"; do
  3495. if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
  3496. TCL_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TCL_LIB_FILE}"
  3497. break
  3498. fi
  3499. done
  3500. fi
  3501. if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
  3502. TCL_STUB_LIB_SPEC="-L`echo "${TCL_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TCL_STUB_LIB_FLAG}"
  3503. TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
  3504. fi
  3505. ;;
  3506. esac
  3507. fi
  3508. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking platform" >&5
  3509. printf %s "checking platform... " >&6; }
  3510. hold_cc=$CC; CC="$TCL_CC"
  3511. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3512. /* end confdefs.h. */
  3513. int
  3514. main (void)
  3515. {
  3516. #ifdef _WIN32
  3517. #error win32
  3518. #endif
  3519. ;
  3520. return 0;
  3521. }
  3522. _ACEOF
  3523. if ac_fn_c_try_compile "$LINENO"
  3524. then :
  3525. # first test we've already retrieved platform (cross-compile), fallback to unix otherwise:
  3526. TEA_PLATFORM="${TEA_PLATFORM-unix}"
  3527. CYGPATH=echo
  3528. else case e in #(
  3529. e)
  3530. TEA_PLATFORM="windows"
  3531. # Extract the first word of "cygpath", so it can be a program name with args.
  3532. set dummy cygpath; ac_word=$2
  3533. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3534. printf %s "checking for $ac_word... " >&6; }
  3535. if test ${ac_cv_prog_CYGPATH+y}
  3536. then :
  3537. printf %s "(cached) " >&6
  3538. else case e in #(
  3539. e) if test -n "$CYGPATH"; then
  3540. ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test.
  3541. else
  3542. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3543. for as_dir in $PATH
  3544. do
  3545. IFS=$as_save_IFS
  3546. case $as_dir in #(((
  3547. '') as_dir=./ ;;
  3548. */) ;;
  3549. *) as_dir=$as_dir/ ;;
  3550. esac
  3551. for ac_exec_ext in '' $ac_executable_extensions; do
  3552. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3553. ac_cv_prog_CYGPATH="cygpath -m"
  3554. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3555. break 2
  3556. fi
  3557. done
  3558. done
  3559. IFS=$as_save_IFS
  3560. test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo"
  3561. fi ;;
  3562. esac
  3563. fi
  3564. CYGPATH=$ac_cv_prog_CYGPATH
  3565. if test -n "$CYGPATH"; then
  3566. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
  3567. printf "%s\n" "$CYGPATH" >&6; }
  3568. else
  3569. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3570. printf "%s\n" "no" >&6; }
  3571. fi
  3572. ;;
  3573. esac
  3574. fi
  3575. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3576. CC=$hold_cc
  3577. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TEA_PLATFORM" >&5
  3578. printf "%s\n" "$TEA_PLATFORM" >&6; }
  3579. # The BUILD_$pkg is to define the correct extern storage class
  3580. # handling when making this package
  3581. printf "%s\n" "#define BUILD_${PACKAGE_NAME} /**/" >>confdefs.h
  3582. # Do this here as we have fully defined TEA_PLATFORM now
  3583. if test "${TEA_PLATFORM}" = "windows" ; then
  3584. EXEEXT=".exe"
  3585. CLEANFILES="$CLEANFILES *.lib *.dll *.pdb *.exp"
  3586. fi
  3587. # TEA specific:
  3588. #--------------------------------------------------------------------
  3589. # Load the tkConfig.sh file if necessary (Tk extension)
  3590. #--------------------------------------------------------------------
  3591. #TEA_PATH_TKCONFIG
  3592. #TEA_LOAD_TKCONFIG
  3593. #-----------------------------------------------------------------------
  3594. # Handle the --prefix=... option by defaulting to what Tcl gave.
  3595. # Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER.
  3596. #-----------------------------------------------------------------------
  3597. if test "${prefix}" = "NONE"; then
  3598. prefix_default=yes
  3599. if test x"${TCL_PREFIX}" != x; then
  3600. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&5
  3601. printf "%s\n" "$as_me: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&6;}
  3602. prefix=${TCL_PREFIX}
  3603. else
  3604. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: --prefix defaulting to /usr/local" >&5
  3605. printf "%s\n" "$as_me: --prefix defaulting to /usr/local" >&6;}
  3606. prefix=/usr/local
  3607. fi
  3608. fi
  3609. if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" \
  3610. -o x"${exec_prefix_default}" = x"yes" ; then
  3611. if test x"${TCL_EXEC_PREFIX}" != x; then
  3612. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&5
  3613. printf "%s\n" "$as_me: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&6;}
  3614. exec_prefix=${TCL_EXEC_PREFIX}
  3615. else
  3616. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: --exec-prefix defaulting to ${prefix}" >&5
  3617. printf "%s\n" "$as_me: --exec-prefix defaulting to ${prefix}" >&6;}
  3618. exec_prefix=$prefix
  3619. fi
  3620. fi
  3621. #-----------------------------------------------------------------------
  3622. # Standard compiler checks.
  3623. # This sets up CC by using the CC env var, or looks for gcc otherwise.
  3624. # This also calls AC_PROG_CC and a few others to create the basic setup
  3625. # necessary to compile executables.
  3626. #-----------------------------------------------------------------------
  3627. # Don't put any macros that use the compiler (e.g. AC_TRY_COMPILE)
  3628. # in this macro, they need to go into TEA_SETUP_COMPILER instead.
  3629. ac_ext=c
  3630. ac_cpp='$CPP $CPPFLAGS'
  3631. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3632. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3633. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3634. if test -n "$ac_tool_prefix"; then
  3635. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3636. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3637. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3638. printf %s "checking for $ac_word... " >&6; }
  3639. if test ${ac_cv_prog_CC+y}
  3640. then :
  3641. printf %s "(cached) " >&6
  3642. else case e in #(
  3643. e) if test -n "$CC"; then
  3644. ac_cv_prog_CC="$CC" # Let the user override the test.
  3645. else
  3646. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3647. for as_dir in $PATH
  3648. do
  3649. IFS=$as_save_IFS
  3650. case $as_dir in #(((
  3651. '') as_dir=./ ;;
  3652. */) ;;
  3653. *) as_dir=$as_dir/ ;;
  3654. esac
  3655. for ac_exec_ext in '' $ac_executable_extensions; do
  3656. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3657. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3658. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3659. break 2
  3660. fi
  3661. done
  3662. done
  3663. IFS=$as_save_IFS
  3664. fi ;;
  3665. esac
  3666. fi
  3667. CC=$ac_cv_prog_CC
  3668. if test -n "$CC"; then
  3669. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3670. printf "%s\n" "$CC" >&6; }
  3671. else
  3672. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3673. printf "%s\n" "no" >&6; }
  3674. fi
  3675. fi
  3676. if test -z "$ac_cv_prog_CC"; then
  3677. ac_ct_CC=$CC
  3678. # Extract the first word of "gcc", so it can be a program name with args.
  3679. set dummy gcc; ac_word=$2
  3680. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3681. printf %s "checking for $ac_word... " >&6; }
  3682. if test ${ac_cv_prog_ac_ct_CC+y}
  3683. then :
  3684. printf %s "(cached) " >&6
  3685. else case e in #(
  3686. e) if test -n "$ac_ct_CC"; then
  3687. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3688. else
  3689. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3690. for as_dir in $PATH
  3691. do
  3692. IFS=$as_save_IFS
  3693. case $as_dir in #(((
  3694. '') as_dir=./ ;;
  3695. */) ;;
  3696. *) as_dir=$as_dir/ ;;
  3697. esac
  3698. for ac_exec_ext in '' $ac_executable_extensions; do
  3699. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3700. ac_cv_prog_ac_ct_CC="gcc"
  3701. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3702. break 2
  3703. fi
  3704. done
  3705. done
  3706. IFS=$as_save_IFS
  3707. fi ;;
  3708. esac
  3709. fi
  3710. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3711. if test -n "$ac_ct_CC"; then
  3712. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3713. printf "%s\n" "$ac_ct_CC" >&6; }
  3714. else
  3715. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3716. printf "%s\n" "no" >&6; }
  3717. fi
  3718. if test "x$ac_ct_CC" = x; then
  3719. CC=""
  3720. else
  3721. case $cross_compiling:$ac_tool_warned in
  3722. yes:)
  3723. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3724. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3725. ac_tool_warned=yes ;;
  3726. esac
  3727. CC=$ac_ct_CC
  3728. fi
  3729. else
  3730. CC="$ac_cv_prog_CC"
  3731. fi
  3732. if test -z "$CC"; then
  3733. if test -n "$ac_tool_prefix"; then
  3734. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3735. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3736. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3737. printf %s "checking for $ac_word... " >&6; }
  3738. if test ${ac_cv_prog_CC+y}
  3739. then :
  3740. printf %s "(cached) " >&6
  3741. else case e in #(
  3742. e) if test -n "$CC"; then
  3743. ac_cv_prog_CC="$CC" # Let the user override the test.
  3744. else
  3745. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3746. for as_dir in $PATH
  3747. do
  3748. IFS=$as_save_IFS
  3749. case $as_dir in #(((
  3750. '') as_dir=./ ;;
  3751. */) ;;
  3752. *) as_dir=$as_dir/ ;;
  3753. esac
  3754. for ac_exec_ext in '' $ac_executable_extensions; do
  3755. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3756. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3757. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3758. break 2
  3759. fi
  3760. done
  3761. done
  3762. IFS=$as_save_IFS
  3763. fi ;;
  3764. esac
  3765. fi
  3766. CC=$ac_cv_prog_CC
  3767. if test -n "$CC"; then
  3768. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3769. printf "%s\n" "$CC" >&6; }
  3770. else
  3771. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3772. printf "%s\n" "no" >&6; }
  3773. fi
  3774. fi
  3775. fi
  3776. if test -z "$CC"; then
  3777. # Extract the first word of "cc", so it can be a program name with args.
  3778. set dummy cc; ac_word=$2
  3779. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3780. printf %s "checking for $ac_word... " >&6; }
  3781. if test ${ac_cv_prog_CC+y}
  3782. then :
  3783. printf %s "(cached) " >&6
  3784. else case e in #(
  3785. e) if test -n "$CC"; then
  3786. ac_cv_prog_CC="$CC" # Let the user override the test.
  3787. else
  3788. ac_prog_rejected=no
  3789. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3790. for as_dir in $PATH
  3791. do
  3792. IFS=$as_save_IFS
  3793. case $as_dir in #(((
  3794. '') as_dir=./ ;;
  3795. */) ;;
  3796. *) as_dir=$as_dir/ ;;
  3797. esac
  3798. for ac_exec_ext in '' $ac_executable_extensions; do
  3799. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3800. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3801. ac_prog_rejected=yes
  3802. continue
  3803. fi
  3804. ac_cv_prog_CC="cc"
  3805. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3806. break 2
  3807. fi
  3808. done
  3809. done
  3810. IFS=$as_save_IFS
  3811. if test $ac_prog_rejected = yes; then
  3812. # We found a bogon in the path, so make sure we never use it.
  3813. set dummy $ac_cv_prog_CC
  3814. shift
  3815. if test $# != 0; then
  3816. # We chose a different compiler from the bogus one.
  3817. # However, it has the same basename, so the bogon will be chosen
  3818. # first if we set CC to just the basename; use the full file name.
  3819. shift
  3820. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  3821. fi
  3822. fi
  3823. fi ;;
  3824. esac
  3825. fi
  3826. CC=$ac_cv_prog_CC
  3827. if test -n "$CC"; then
  3828. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3829. printf "%s\n" "$CC" >&6; }
  3830. else
  3831. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3832. printf "%s\n" "no" >&6; }
  3833. fi
  3834. fi
  3835. if test -z "$CC"; then
  3836. if test -n "$ac_tool_prefix"; then
  3837. for ac_prog in cl.exe
  3838. do
  3839. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3840. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3841. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3842. printf %s "checking for $ac_word... " >&6; }
  3843. if test ${ac_cv_prog_CC+y}
  3844. then :
  3845. printf %s "(cached) " >&6
  3846. else case e in #(
  3847. e) if test -n "$CC"; then
  3848. ac_cv_prog_CC="$CC" # Let the user override the test.
  3849. else
  3850. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3851. for as_dir in $PATH
  3852. do
  3853. IFS=$as_save_IFS
  3854. case $as_dir in #(((
  3855. '') as_dir=./ ;;
  3856. */) ;;
  3857. *) as_dir=$as_dir/ ;;
  3858. esac
  3859. for ac_exec_ext in '' $ac_executable_extensions; do
  3860. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3861. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3862. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3863. break 2
  3864. fi
  3865. done
  3866. done
  3867. IFS=$as_save_IFS
  3868. fi ;;
  3869. esac
  3870. fi
  3871. CC=$ac_cv_prog_CC
  3872. if test -n "$CC"; then
  3873. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3874. printf "%s\n" "$CC" >&6; }
  3875. else
  3876. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3877. printf "%s\n" "no" >&6; }
  3878. fi
  3879. test -n "$CC" && break
  3880. done
  3881. fi
  3882. if test -z "$CC"; then
  3883. ac_ct_CC=$CC
  3884. for ac_prog in cl.exe
  3885. do
  3886. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3887. set dummy $ac_prog; ac_word=$2
  3888. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3889. printf %s "checking for $ac_word... " >&6; }
  3890. if test ${ac_cv_prog_ac_ct_CC+y}
  3891. then :
  3892. printf %s "(cached) " >&6
  3893. else case e in #(
  3894. e) if test -n "$ac_ct_CC"; then
  3895. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3896. else
  3897. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3898. for as_dir in $PATH
  3899. do
  3900. IFS=$as_save_IFS
  3901. case $as_dir in #(((
  3902. '') as_dir=./ ;;
  3903. */) ;;
  3904. *) as_dir=$as_dir/ ;;
  3905. esac
  3906. for ac_exec_ext in '' $ac_executable_extensions; do
  3907. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3908. ac_cv_prog_ac_ct_CC="$ac_prog"
  3909. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3910. break 2
  3911. fi
  3912. done
  3913. done
  3914. IFS=$as_save_IFS
  3915. fi ;;
  3916. esac
  3917. fi
  3918. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3919. if test -n "$ac_ct_CC"; then
  3920. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3921. printf "%s\n" "$ac_ct_CC" >&6; }
  3922. else
  3923. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3924. printf "%s\n" "no" >&6; }
  3925. fi
  3926. test -n "$ac_ct_CC" && break
  3927. done
  3928. if test "x$ac_ct_CC" = x; then
  3929. CC=""
  3930. else
  3931. case $cross_compiling:$ac_tool_warned in
  3932. yes:)
  3933. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3934. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3935. ac_tool_warned=yes ;;
  3936. esac
  3937. CC=$ac_ct_CC
  3938. fi
  3939. fi
  3940. fi
  3941. if test -z "$CC"; then
  3942. if test -n "$ac_tool_prefix"; then
  3943. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  3944. set dummy ${ac_tool_prefix}clang; ac_word=$2
  3945. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3946. printf %s "checking for $ac_word... " >&6; }
  3947. if test ${ac_cv_prog_CC+y}
  3948. then :
  3949. printf %s "(cached) " >&6
  3950. else case e in #(
  3951. e) if test -n "$CC"; then
  3952. ac_cv_prog_CC="$CC" # Let the user override the test.
  3953. else
  3954. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3955. for as_dir in $PATH
  3956. do
  3957. IFS=$as_save_IFS
  3958. case $as_dir in #(((
  3959. '') as_dir=./ ;;
  3960. */) ;;
  3961. *) as_dir=$as_dir/ ;;
  3962. esac
  3963. for ac_exec_ext in '' $ac_executable_extensions; do
  3964. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3965. ac_cv_prog_CC="${ac_tool_prefix}clang"
  3966. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3967. break 2
  3968. fi
  3969. done
  3970. done
  3971. IFS=$as_save_IFS
  3972. fi ;;
  3973. esac
  3974. fi
  3975. CC=$ac_cv_prog_CC
  3976. if test -n "$CC"; then
  3977. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3978. printf "%s\n" "$CC" >&6; }
  3979. else
  3980. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3981. printf "%s\n" "no" >&6; }
  3982. fi
  3983. fi
  3984. if test -z "$ac_cv_prog_CC"; then
  3985. ac_ct_CC=$CC
  3986. # Extract the first word of "clang", so it can be a program name with args.
  3987. set dummy clang; ac_word=$2
  3988. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3989. printf %s "checking for $ac_word... " >&6; }
  3990. if test ${ac_cv_prog_ac_ct_CC+y}
  3991. then :
  3992. printf %s "(cached) " >&6
  3993. else case e in #(
  3994. e) if test -n "$ac_ct_CC"; then
  3995. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3996. else
  3997. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3998. for as_dir in $PATH
  3999. do
  4000. IFS=$as_save_IFS
  4001. case $as_dir in #(((
  4002. '') as_dir=./ ;;
  4003. */) ;;
  4004. *) as_dir=$as_dir/ ;;
  4005. esac
  4006. for ac_exec_ext in '' $ac_executable_extensions; do
  4007. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4008. ac_cv_prog_ac_ct_CC="clang"
  4009. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4010. break 2
  4011. fi
  4012. done
  4013. done
  4014. IFS=$as_save_IFS
  4015. fi ;;
  4016. esac
  4017. fi
  4018. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4019. if test -n "$ac_ct_CC"; then
  4020. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4021. printf "%s\n" "$ac_ct_CC" >&6; }
  4022. else
  4023. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4024. printf "%s\n" "no" >&6; }
  4025. fi
  4026. if test "x$ac_ct_CC" = x; then
  4027. CC=""
  4028. else
  4029. case $cross_compiling:$ac_tool_warned in
  4030. yes:)
  4031. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4032. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4033. ac_tool_warned=yes ;;
  4034. esac
  4035. CC=$ac_ct_CC
  4036. fi
  4037. else
  4038. CC="$ac_cv_prog_CC"
  4039. fi
  4040. fi
  4041. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  4042. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  4043. as_fn_error $? "no acceptable C compiler found in \$PATH
  4044. See 'config.log' for more details" "$LINENO" 5; }
  4045. # Provide some information about the compiler.
  4046. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4047. set X $ac_compile
  4048. ac_compiler=$2
  4049. for ac_option in --version -v -V -qversion -version; do
  4050. { { ac_try="$ac_compiler $ac_option >&5"
  4051. case "(($ac_try" in
  4052. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4053. *) ac_try_echo=$ac_try;;
  4054. esac
  4055. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4056. printf "%s\n" "$ac_try_echo"; } >&5
  4057. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4058. ac_status=$?
  4059. if test -s conftest.err; then
  4060. sed '10a\
  4061. ... rest of stderr output deleted ...
  4062. 10q' conftest.err >conftest.er1
  4063. cat conftest.er1 >&5
  4064. fi
  4065. rm -f conftest.er1 conftest.err
  4066. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4067. test $ac_status = 0; }
  4068. done
  4069. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  4070. printf %s "checking whether the compiler supports GNU C... " >&6; }
  4071. if test ${ac_cv_c_compiler_gnu+y}
  4072. then :
  4073. printf %s "(cached) " >&6
  4074. else case e in #(
  4075. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4076. /* end confdefs.h. */
  4077. int
  4078. main (void)
  4079. {
  4080. #ifndef __GNUC__
  4081. choke me
  4082. #endif
  4083. ;
  4084. return 0;
  4085. }
  4086. _ACEOF
  4087. if ac_fn_c_try_compile "$LINENO"
  4088. then :
  4089. ac_compiler_gnu=yes
  4090. else case e in #(
  4091. e) ac_compiler_gnu=no ;;
  4092. esac
  4093. fi
  4094. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4095. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4096. ;;
  4097. esac
  4098. fi
  4099. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4100. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  4101. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4102. if test $ac_compiler_gnu = yes; then
  4103. GCC=yes
  4104. else
  4105. GCC=
  4106. fi
  4107. ac_test_CFLAGS=${CFLAGS+y}
  4108. ac_save_CFLAGS=$CFLAGS
  4109. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4110. printf %s "checking whether $CC accepts -g... " >&6; }
  4111. if test ${ac_cv_prog_cc_g+y}
  4112. then :
  4113. printf %s "(cached) " >&6
  4114. else case e in #(
  4115. e) ac_save_c_werror_flag=$ac_c_werror_flag
  4116. ac_c_werror_flag=yes
  4117. ac_cv_prog_cc_g=no
  4118. CFLAGS="-g"
  4119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4120. /* end confdefs.h. */
  4121. int
  4122. main (void)
  4123. {
  4124. ;
  4125. return 0;
  4126. }
  4127. _ACEOF
  4128. if ac_fn_c_try_compile "$LINENO"
  4129. then :
  4130. ac_cv_prog_cc_g=yes
  4131. else case e in #(
  4132. e) CFLAGS=""
  4133. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4134. /* end confdefs.h. */
  4135. int
  4136. main (void)
  4137. {
  4138. ;
  4139. return 0;
  4140. }
  4141. _ACEOF
  4142. if ac_fn_c_try_compile "$LINENO"
  4143. then :
  4144. else case e in #(
  4145. e) ac_c_werror_flag=$ac_save_c_werror_flag
  4146. CFLAGS="-g"
  4147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4148. /* end confdefs.h. */
  4149. int
  4150. main (void)
  4151. {
  4152. ;
  4153. return 0;
  4154. }
  4155. _ACEOF
  4156. if ac_fn_c_try_compile "$LINENO"
  4157. then :
  4158. ac_cv_prog_cc_g=yes
  4159. fi
  4160. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  4161. esac
  4162. fi
  4163. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  4164. esac
  4165. fi
  4166. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4167. ac_c_werror_flag=$ac_save_c_werror_flag ;;
  4168. esac
  4169. fi
  4170. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4171. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  4172. if test $ac_test_CFLAGS; then
  4173. CFLAGS=$ac_save_CFLAGS
  4174. elif test $ac_cv_prog_cc_g = yes; then
  4175. if test "$GCC" = yes; then
  4176. CFLAGS="-g -O2"
  4177. else
  4178. CFLAGS="-g"
  4179. fi
  4180. else
  4181. if test "$GCC" = yes; then
  4182. CFLAGS="-O2"
  4183. else
  4184. CFLAGS=
  4185. fi
  4186. fi
  4187. ac_prog_cc_stdc=no
  4188. if test x$ac_prog_cc_stdc = xno
  4189. then :
  4190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  4191. printf %s "checking for $CC option to enable C11 features... " >&6; }
  4192. if test ${ac_cv_prog_cc_c11+y}
  4193. then :
  4194. printf %s "(cached) " >&6
  4195. else case e in #(
  4196. e) ac_cv_prog_cc_c11=no
  4197. ac_save_CC=$CC
  4198. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4199. /* end confdefs.h. */
  4200. $ac_c_conftest_c11_program
  4201. _ACEOF
  4202. for ac_arg in '' -std=gnu11
  4203. do
  4204. CC="$ac_save_CC $ac_arg"
  4205. if ac_fn_c_try_compile "$LINENO"
  4206. then :
  4207. ac_cv_prog_cc_c11=$ac_arg
  4208. fi
  4209. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4210. test "x$ac_cv_prog_cc_c11" != "xno" && break
  4211. done
  4212. rm -f conftest.$ac_ext
  4213. CC=$ac_save_CC ;;
  4214. esac
  4215. fi
  4216. if test "x$ac_cv_prog_cc_c11" = xno
  4217. then :
  4218. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4219. printf "%s\n" "unsupported" >&6; }
  4220. else case e in #(
  4221. e) if test "x$ac_cv_prog_cc_c11" = x
  4222. then :
  4223. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4224. printf "%s\n" "none needed" >&6; }
  4225. else case e in #(
  4226. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  4227. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  4228. CC="$CC $ac_cv_prog_cc_c11" ;;
  4229. esac
  4230. fi
  4231. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  4232. ac_prog_cc_stdc=c11 ;;
  4233. esac
  4234. fi
  4235. fi
  4236. if test x$ac_prog_cc_stdc = xno
  4237. then :
  4238. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  4239. printf %s "checking for $CC option to enable C99 features... " >&6; }
  4240. if test ${ac_cv_prog_cc_c99+y}
  4241. then :
  4242. printf %s "(cached) " >&6
  4243. else case e in #(
  4244. e) ac_cv_prog_cc_c99=no
  4245. ac_save_CC=$CC
  4246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4247. /* end confdefs.h. */
  4248. $ac_c_conftest_c99_program
  4249. _ACEOF
  4250. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  4251. do
  4252. CC="$ac_save_CC $ac_arg"
  4253. if ac_fn_c_try_compile "$LINENO"
  4254. then :
  4255. ac_cv_prog_cc_c99=$ac_arg
  4256. fi
  4257. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4258. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4259. done
  4260. rm -f conftest.$ac_ext
  4261. CC=$ac_save_CC ;;
  4262. esac
  4263. fi
  4264. if test "x$ac_cv_prog_cc_c99" = xno
  4265. then :
  4266. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4267. printf "%s\n" "unsupported" >&6; }
  4268. else case e in #(
  4269. e) if test "x$ac_cv_prog_cc_c99" = x
  4270. then :
  4271. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4272. printf "%s\n" "none needed" >&6; }
  4273. else case e in #(
  4274. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4275. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  4276. CC="$CC $ac_cv_prog_cc_c99" ;;
  4277. esac
  4278. fi
  4279. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4280. ac_prog_cc_stdc=c99 ;;
  4281. esac
  4282. fi
  4283. fi
  4284. if test x$ac_prog_cc_stdc = xno
  4285. then :
  4286. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  4287. printf %s "checking for $CC option to enable C89 features... " >&6; }
  4288. if test ${ac_cv_prog_cc_c89+y}
  4289. then :
  4290. printf %s "(cached) " >&6
  4291. else case e in #(
  4292. e) ac_cv_prog_cc_c89=no
  4293. ac_save_CC=$CC
  4294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4295. /* end confdefs.h. */
  4296. $ac_c_conftest_c89_program
  4297. _ACEOF
  4298. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4299. do
  4300. CC="$ac_save_CC $ac_arg"
  4301. if ac_fn_c_try_compile "$LINENO"
  4302. then :
  4303. ac_cv_prog_cc_c89=$ac_arg
  4304. fi
  4305. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4306. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4307. done
  4308. rm -f conftest.$ac_ext
  4309. CC=$ac_save_CC ;;
  4310. esac
  4311. fi
  4312. if test "x$ac_cv_prog_cc_c89" = xno
  4313. then :
  4314. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4315. printf "%s\n" "unsupported" >&6; }
  4316. else case e in #(
  4317. e) if test "x$ac_cv_prog_cc_c89" = x
  4318. then :
  4319. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4320. printf "%s\n" "none needed" >&6; }
  4321. else case e in #(
  4322. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4323. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  4324. CC="$CC $ac_cv_prog_cc_c89" ;;
  4325. esac
  4326. fi
  4327. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4328. ac_prog_cc_stdc=c89 ;;
  4329. esac
  4330. fi
  4331. fi
  4332. ac_ext=c
  4333. ac_cpp='$CPP $CPPFLAGS'
  4334. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4335. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4336. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4337. ac_ext=c
  4338. ac_cpp='$CPP $CPPFLAGS'
  4339. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4340. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4341. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4342. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4343. printf %s "checking how to run the C preprocessor... " >&6; }
  4344. # On Suns, sometimes $CPP names a directory.
  4345. if test -n "$CPP" && test -d "$CPP"; then
  4346. CPP=
  4347. fi
  4348. if test -z "$CPP"; then
  4349. if test ${ac_cv_prog_CPP+y}
  4350. then :
  4351. printf %s "(cached) " >&6
  4352. else case e in #(
  4353. e) # Double quotes because $CC needs to be expanded
  4354. for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
  4355. do
  4356. ac_preproc_ok=false
  4357. for ac_c_preproc_warn_flag in '' yes
  4358. do
  4359. # Use a header file that comes with gcc, so configuring glibc
  4360. # with a fresh cross-compiler works.
  4361. # On the NeXT, cc -E runs the code through the compiler's parser,
  4362. # not just through cpp. "Syntax error" is here to catch this case.
  4363. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4364. /* end confdefs.h. */
  4365. #include <limits.h>
  4366. Syntax error
  4367. _ACEOF
  4368. if ac_fn_c_try_cpp "$LINENO"
  4369. then :
  4370. else case e in #(
  4371. e) # Broken: fails on valid input.
  4372. continue ;;
  4373. esac
  4374. fi
  4375. rm -f conftest.err conftest.i conftest.$ac_ext
  4376. # OK, works on sane cases. Now check whether nonexistent headers
  4377. # can be detected and how.
  4378. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4379. /* end confdefs.h. */
  4380. #include <ac_nonexistent.h>
  4381. _ACEOF
  4382. if ac_fn_c_try_cpp "$LINENO"
  4383. then :
  4384. # Broken: success on invalid input.
  4385. continue
  4386. else case e in #(
  4387. e) # Passes both tests.
  4388. ac_preproc_ok=:
  4389. break ;;
  4390. esac
  4391. fi
  4392. rm -f conftest.err conftest.i conftest.$ac_ext
  4393. done
  4394. # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4395. rm -f conftest.i conftest.err conftest.$ac_ext
  4396. if $ac_preproc_ok
  4397. then :
  4398. break
  4399. fi
  4400. done
  4401. ac_cv_prog_CPP=$CPP
  4402. ;;
  4403. esac
  4404. fi
  4405. CPP=$ac_cv_prog_CPP
  4406. else
  4407. ac_cv_prog_CPP=$CPP
  4408. fi
  4409. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4410. printf "%s\n" "$CPP" >&6; }
  4411. ac_preproc_ok=false
  4412. for ac_c_preproc_warn_flag in '' yes
  4413. do
  4414. # Use a header file that comes with gcc, so configuring glibc
  4415. # with a fresh cross-compiler works.
  4416. # On the NeXT, cc -E runs the code through the compiler's parser,
  4417. # not just through cpp. "Syntax error" is here to catch this case.
  4418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4419. /* end confdefs.h. */
  4420. #include <limits.h>
  4421. Syntax error
  4422. _ACEOF
  4423. if ac_fn_c_try_cpp "$LINENO"
  4424. then :
  4425. else case e in #(
  4426. e) # Broken: fails on valid input.
  4427. continue ;;
  4428. esac
  4429. fi
  4430. rm -f conftest.err conftest.i conftest.$ac_ext
  4431. # OK, works on sane cases. Now check whether nonexistent headers
  4432. # can be detected and how.
  4433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4434. /* end confdefs.h. */
  4435. #include <ac_nonexistent.h>
  4436. _ACEOF
  4437. if ac_fn_c_try_cpp "$LINENO"
  4438. then :
  4439. # Broken: success on invalid input.
  4440. continue
  4441. else case e in #(
  4442. e) # Passes both tests.
  4443. ac_preproc_ok=:
  4444. break ;;
  4445. esac
  4446. fi
  4447. rm -f conftest.err conftest.i conftest.$ac_ext
  4448. done
  4449. # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4450. rm -f conftest.i conftest.err conftest.$ac_ext
  4451. if $ac_preproc_ok
  4452. then :
  4453. else case e in #(
  4454. e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  4455. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  4456. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4457. See 'config.log' for more details" "$LINENO" 5; } ;;
  4458. esac
  4459. fi
  4460. ac_ext=c
  4461. ac_cpp='$CPP $CPPFLAGS'
  4462. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4463. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4464. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4465. #--------------------------------------------------------------------
  4466. # Checks to see if the make program sets the $MAKE variable.
  4467. #--------------------------------------------------------------------
  4468. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  4469. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  4470. set x ${MAKE-make}
  4471. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  4472. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  4473. then :
  4474. printf %s "(cached) " >&6
  4475. else case e in #(
  4476. e) cat >conftest.make <<\_ACEOF
  4477. SHELL = /bin/sh
  4478. all:
  4479. @echo '@@@%%%=$(MAKE)=@@@%%%'
  4480. _ACEOF
  4481. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  4482. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  4483. *@@@%%%=?*=@@@%%%*)
  4484. eval ac_cv_prog_make_${ac_make}_set=yes;;
  4485. *)
  4486. eval ac_cv_prog_make_${ac_make}_set=no;;
  4487. esac
  4488. rm -f conftest.make ;;
  4489. esac
  4490. fi
  4491. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  4492. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4493. printf "%s\n" "yes" >&6; }
  4494. SET_MAKE=
  4495. else
  4496. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4497. printf "%s\n" "no" >&6; }
  4498. SET_MAKE="MAKE=${MAKE-make}"
  4499. fi
  4500. #--------------------------------------------------------------------
  4501. # Find ranlib
  4502. #--------------------------------------------------------------------
  4503. if test -n "$ac_tool_prefix"; then
  4504. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4505. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4507. printf %s "checking for $ac_word... " >&6; }
  4508. if test ${ac_cv_prog_RANLIB+y}
  4509. then :
  4510. printf %s "(cached) " >&6
  4511. else case e in #(
  4512. e) if test -n "$RANLIB"; then
  4513. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4514. else
  4515. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4516. for as_dir in $PATH
  4517. do
  4518. IFS=$as_save_IFS
  4519. case $as_dir in #(((
  4520. '') as_dir=./ ;;
  4521. */) ;;
  4522. *) as_dir=$as_dir/ ;;
  4523. esac
  4524. for ac_exec_ext in '' $ac_executable_extensions; do
  4525. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4526. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4527. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4528. break 2
  4529. fi
  4530. done
  4531. done
  4532. IFS=$as_save_IFS
  4533. fi ;;
  4534. esac
  4535. fi
  4536. RANLIB=$ac_cv_prog_RANLIB
  4537. if test -n "$RANLIB"; then
  4538. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4539. printf "%s\n" "$RANLIB" >&6; }
  4540. else
  4541. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4542. printf "%s\n" "no" >&6; }
  4543. fi
  4544. fi
  4545. if test -z "$ac_cv_prog_RANLIB"; then
  4546. ac_ct_RANLIB=$RANLIB
  4547. # Extract the first word of "ranlib", so it can be a program name with args.
  4548. set dummy ranlib; ac_word=$2
  4549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4550. printf %s "checking for $ac_word... " >&6; }
  4551. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  4552. then :
  4553. printf %s "(cached) " >&6
  4554. else case e in #(
  4555. e) if test -n "$ac_ct_RANLIB"; then
  4556. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4557. else
  4558. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4559. for as_dir in $PATH
  4560. do
  4561. IFS=$as_save_IFS
  4562. case $as_dir in #(((
  4563. '') as_dir=./ ;;
  4564. */) ;;
  4565. *) as_dir=$as_dir/ ;;
  4566. esac
  4567. for ac_exec_ext in '' $ac_executable_extensions; do
  4568. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4569. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4570. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4571. break 2
  4572. fi
  4573. done
  4574. done
  4575. IFS=$as_save_IFS
  4576. fi ;;
  4577. esac
  4578. fi
  4579. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4580. if test -n "$ac_ct_RANLIB"; then
  4581. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4582. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  4583. else
  4584. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4585. printf "%s\n" "no" >&6; }
  4586. fi
  4587. if test "x$ac_ct_RANLIB" = x; then
  4588. RANLIB=""
  4589. else
  4590. case $cross_compiling:$ac_tool_warned in
  4591. yes:)
  4592. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4593. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4594. ac_tool_warned=yes ;;
  4595. esac
  4596. RANLIB=$ac_ct_RANLIB
  4597. fi
  4598. else
  4599. RANLIB="$ac_cv_prog_RANLIB"
  4600. fi
  4601. #--------------------------------------------------------------------
  4602. # Determines the correct binary file extension (.o, .obj, .exe etc.)
  4603. #--------------------------------------------------------------------
  4604. ac_header= ac_cache=
  4605. for ac_item in $ac_header_c_list
  4606. do
  4607. if test $ac_cache; then
  4608. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  4609. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  4610. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  4611. fi
  4612. ac_header= ac_cache=
  4613. elif test $ac_header; then
  4614. ac_cache=$ac_item
  4615. else
  4616. ac_header=$ac_item
  4617. fi
  4618. done
  4619. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  4620. then :
  4621. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  4622. fi
  4623. # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here.
  4624. #------------------------------------------------------------------------
  4625. # If we're using GCC, see if the compiler understands -pipe. If so, use it.
  4626. # It makes compiling go faster. (This is only a performance feature.)
  4627. #------------------------------------------------------------------------
  4628. if test -z "$no_pipe" -a -n "$GCC"; then
  4629. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the compiler understands -pipe" >&5
  4630. printf %s "checking if the compiler understands -pipe... " >&6; }
  4631. if test ${tcl_cv_cc_pipe+y}
  4632. then :
  4633. printf %s "(cached) " >&6
  4634. else case e in #(
  4635. e)
  4636. hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe"
  4637. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4638. /* end confdefs.h. */
  4639. int
  4640. main (void)
  4641. {
  4642. ;
  4643. return 0;
  4644. }
  4645. _ACEOF
  4646. if ac_fn_c_try_compile "$LINENO"
  4647. then :
  4648. tcl_cv_cc_pipe=yes
  4649. else case e in #(
  4650. e) tcl_cv_cc_pipe=no ;;
  4651. esac
  4652. fi
  4653. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4654. CFLAGS=$hold_cflags ;;
  4655. esac
  4656. fi
  4657. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_pipe" >&5
  4658. printf "%s\n" "$tcl_cv_cc_pipe" >&6; }
  4659. if test $tcl_cv_cc_pipe = yes; then
  4660. CFLAGS="$CFLAGS -pipe"
  4661. fi
  4662. fi
  4663. #--------------------------------------------------------------------
  4664. # Common compiler flag setup
  4665. # ####GL Suppress "warning: AC_C_BIGENDIAN should be used with AC_CONFIG_HEADERS", taken from
  4666. # ####GL https://git.ruby-lang.org/ruby.git/commit/?id=ca3cc677b31897e7306ac3b4565a0dd928168b08
  4667. #--------------------------------------------------------------------
  4668. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  4669. printf %s "checking whether byte ordering is bigendian... " >&6; }
  4670. if test ${ac_cv_c_bigendian+y}
  4671. then :
  4672. printf %s "(cached) " >&6
  4673. else case e in #(
  4674. e) ac_cv_c_bigendian=unknown
  4675. # See if we're dealing with a universal compiler.
  4676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4677. /* end confdefs.h. */
  4678. #ifndef __APPLE_CC__
  4679. not a universal capable compiler
  4680. #endif
  4681. typedef int dummy;
  4682. _ACEOF
  4683. if ac_fn_c_try_compile "$LINENO"
  4684. then :
  4685. # Check for potential -arch flags. It is not universal unless
  4686. # there are at least two -arch flags with different values.
  4687. ac_arch=
  4688. ac_prev=
  4689. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  4690. if test -n "$ac_prev"; then
  4691. case $ac_word in
  4692. i?86 | x86_64 | ppc | ppc64)
  4693. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  4694. ac_arch=$ac_word
  4695. else
  4696. ac_cv_c_bigendian=universal
  4697. break
  4698. fi
  4699. ;;
  4700. esac
  4701. ac_prev=
  4702. elif test "x$ac_word" = "x-arch"; then
  4703. ac_prev=arch
  4704. fi
  4705. done
  4706. fi
  4707. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4708. if test $ac_cv_c_bigendian = unknown; then
  4709. # See if sys/param.h defines the BYTE_ORDER macro.
  4710. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4711. /* end confdefs.h. */
  4712. #include <sys/types.h>
  4713. #include <sys/param.h>
  4714. int
  4715. main (void)
  4716. {
  4717. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\
  4718. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\
  4719. && LITTLE_ENDIAN)
  4720. bogus endian macros
  4721. #endif
  4722. ;
  4723. return 0;
  4724. }
  4725. _ACEOF
  4726. if ac_fn_c_try_compile "$LINENO"
  4727. then :
  4728. # It does; now see whether it defined to BIG_ENDIAN or not.
  4729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4730. /* end confdefs.h. */
  4731. #include <sys/types.h>
  4732. #include <sys/param.h>
  4733. int
  4734. main (void)
  4735. {
  4736. #if BYTE_ORDER != BIG_ENDIAN
  4737. not big endian
  4738. #endif
  4739. ;
  4740. return 0;
  4741. }
  4742. _ACEOF
  4743. if ac_fn_c_try_compile "$LINENO"
  4744. then :
  4745. ac_cv_c_bigendian=yes
  4746. else case e in #(
  4747. e) ac_cv_c_bigendian=no ;;
  4748. esac
  4749. fi
  4750. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4751. fi
  4752. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4753. fi
  4754. if test $ac_cv_c_bigendian = unknown; then
  4755. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  4756. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4757. /* end confdefs.h. */
  4758. #include <limits.h>
  4759. int
  4760. main (void)
  4761. {
  4762. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  4763. bogus endian macros
  4764. #endif
  4765. ;
  4766. return 0;
  4767. }
  4768. _ACEOF
  4769. if ac_fn_c_try_compile "$LINENO"
  4770. then :
  4771. # It does; now see whether it defined to _BIG_ENDIAN or not.
  4772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4773. /* end confdefs.h. */
  4774. #include <limits.h>
  4775. int
  4776. main (void)
  4777. {
  4778. #ifndef _BIG_ENDIAN
  4779. not big endian
  4780. #endif
  4781. ;
  4782. return 0;
  4783. }
  4784. _ACEOF
  4785. if ac_fn_c_try_compile "$LINENO"
  4786. then :
  4787. ac_cv_c_bigendian=yes
  4788. else case e in #(
  4789. e) ac_cv_c_bigendian=no ;;
  4790. esac
  4791. fi
  4792. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4793. fi
  4794. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4795. fi
  4796. if test $ac_cv_c_bigendian = unknown; then
  4797. # Compile a test program.
  4798. if test "$cross_compiling" = yes
  4799. then :
  4800. # Try to guess by grepping values from an object file.
  4801. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4802. /* end confdefs.h. */
  4803. unsigned short int ascii_mm[] =
  4804. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  4805. unsigned short int ascii_ii[] =
  4806. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  4807. int use_ascii (int i) {
  4808. return ascii_mm[i] + ascii_ii[i];
  4809. }
  4810. unsigned short int ebcdic_ii[] =
  4811. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  4812. unsigned short int ebcdic_mm[] =
  4813. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  4814. int use_ebcdic (int i) {
  4815. return ebcdic_mm[i] + ebcdic_ii[i];
  4816. }
  4817. int
  4818. main (int argc, char **argv)
  4819. {
  4820. /* Intimidate the compiler so that it does not
  4821. optimize the arrays away. */
  4822. char *p = argv[0];
  4823. ascii_mm[1] = *p++; ebcdic_mm[1] = *p++;
  4824. ascii_ii[1] = *p++; ebcdic_ii[1] = *p++;
  4825. return use_ascii (argc) == use_ebcdic (*p);
  4826. }
  4827. _ACEOF
  4828. if ac_fn_c_try_link "$LINENO"
  4829. then :
  4830. if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then
  4831. ac_cv_c_bigendian=yes
  4832. fi
  4833. if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then
  4834. if test "$ac_cv_c_bigendian" = unknown; then
  4835. ac_cv_c_bigendian=no
  4836. else
  4837. # finding both strings is unlikely to happen, but who knows?
  4838. ac_cv_c_bigendian=unknown
  4839. fi
  4840. fi
  4841. fi
  4842. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  4843. conftest$ac_exeext conftest.$ac_ext
  4844. else case e in #(
  4845. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4846. /* end confdefs.h. */
  4847. $ac_includes_default
  4848. int
  4849. main (void)
  4850. {
  4851. /* Are we little or big endian? From Harbison&Steele. */
  4852. union
  4853. {
  4854. long int l;
  4855. char c[sizeof (long int)];
  4856. } u;
  4857. u.l = 1;
  4858. return u.c[sizeof (long int) - 1] == 1;
  4859. ;
  4860. return 0;
  4861. }
  4862. _ACEOF
  4863. if ac_fn_c_try_run "$LINENO"
  4864. then :
  4865. ac_cv_c_bigendian=no
  4866. else case e in #(
  4867. e) ac_cv_c_bigendian=yes ;;
  4868. esac
  4869. fi
  4870. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4871. conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  4872. esac
  4873. fi
  4874. fi ;;
  4875. esac
  4876. fi
  4877. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  4878. printf "%s\n" "$ac_cv_c_bigendian" >&6; }
  4879. case $ac_cv_c_bigendian in #(
  4880. yes)
  4881. printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
  4882. ;; #(
  4883. no)
  4884. ;; #(
  4885. universal)
  4886. printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  4887. ;; #(
  4888. *)
  4889. as_fn_error $? "unknown endianness
  4890. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  4891. esac
  4892. #-----------------------------------------------------------------------
  4893. # __CHANGE__
  4894. # Specify the C source files to compile in TEA_ADD_SOURCES,
  4895. # public headers that need to be installed in TEA_ADD_HEADERS,
  4896. # stub library C source files to compile in TEA_ADD_STUB_SOURCES,
  4897. # and runtime Tcl library files in TEA_ADD_TCL_SOURCES.
  4898. # This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS
  4899. # and PKG_TCL_SOURCES.
  4900. #-----------------------------------------------------------------------
  4901. vars="
  4902. ../backend/2of5.c
  4903. ../backend/auspost.c
  4904. ../backend/aztec.c
  4905. ../backend/bc412.c
  4906. ../backend/bmp.c
  4907. ../backend/codablock.c
  4908. ../backend/code128.c
  4909. ../backend/code16k.c
  4910. ../backend/code1.c
  4911. ../backend/code49.c
  4912. ../backend/code.c
  4913. ../backend/common.c
  4914. ../backend/composite.c
  4915. ../backend/dllversion.c
  4916. ../backend/dmatrix.c
  4917. ../backend/dotcode.c
  4918. ../backend/dxfilmedge.c
  4919. ../backend/eci.c
  4920. ../backend/emf.c
  4921. ../backend/filemem.c
  4922. ../backend/general_field.c
  4923. ../backend/gif.c
  4924. ../backend/gridmtx.c
  4925. ../backend/gs1.c
  4926. ../backend/hanxin.c
  4927. ../backend/imail.c
  4928. ../backend/large.c
  4929. ../backend/library.c
  4930. ../backend/mailmark.c
  4931. ../backend/maxicode.c
  4932. ../backend/medical.c
  4933. ../backend/output.c
  4934. ../backend/pcx.c
  4935. ../backend/pdf417.c
  4936. ../backend/plessey.c
  4937. ../backend/png.c
  4938. ../backend/postal.c
  4939. ../backend/ps.c
  4940. ../backend/qr.c
  4941. ../backend/raster.c
  4942. ../backend/reedsol.c
  4943. ../backend/rss.c
  4944. ../backend/svg.c
  4945. ../backend/telepen.c
  4946. ../backend/tif.c
  4947. ../backend/ultra.c
  4948. ../backend/upcean.c
  4949. ../backend/vector.c
  4950. zint.c
  4951. "
  4952. for i in $vars; do
  4953. case $i in
  4954. \$*)
  4955. # allow $-var names
  4956. PKG_SOURCES="$PKG_SOURCES $i"
  4957. PKG_OBJECTS="$PKG_OBJECTS $i"
  4958. ;;
  4959. *)
  4960. # check for existence - allows for generic/win/unix VPATH
  4961. # To add more dirs here (like 'src'), you have to update VPATH
  4962. # in Makefile.in as well
  4963. if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \
  4964. -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \
  4965. -a ! -f "${srcdir}/macosx/$i" \
  4966. ; then
  4967. as_fn_error $? "could not find source file '$i'" "$LINENO" 5
  4968. fi
  4969. PKG_SOURCES="$PKG_SOURCES $i"
  4970. # this assumes it is in a VPATH dir
  4971. i=`basename $i`
  4972. # handle user calling this before or after TEA_SETUP_COMPILER
  4973. if test x"${OBJEXT}" != x ; then
  4974. j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}"
  4975. else
  4976. j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}"
  4977. fi
  4978. PKG_OBJECTS="$PKG_OBJECTS $j"
  4979. ;;
  4980. esac
  4981. done
  4982. vars=""
  4983. for i in $vars; do
  4984. # check for existence, be strict because it is installed
  4985. if test ! -f "${srcdir}/$i" ; then
  4986. as_fn_error $? "could not find header file '${srcdir}/$i'" "$LINENO" 5
  4987. fi
  4988. PKG_HEADERS="$PKG_HEADERS $i"
  4989. done
  4990. vars=""
  4991. for i in $vars; do
  4992. PKG_INCLUDES="$PKG_INCLUDES $i"
  4993. done
  4994. vars=""
  4995. for i in $vars; do
  4996. if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
  4997. # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
  4998. i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
  4999. fi
  5000. PKG_LIBS="$PKG_LIBS $i"
  5001. done
  5002. PKG_CFLAGS="$PKG_CFLAGS -I../backend -DZINT_NO_PNG=1 -DZINT_VERSION=PACKAGE_VERSION"
  5003. vars=""
  5004. for i in $vars; do
  5005. # check for existence - allows for generic/win/unix VPATH
  5006. if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \
  5007. -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \
  5008. -a ! -f "${srcdir}/macosx/$i" \
  5009. ; then
  5010. as_fn_error $? "could not find stub source file '$i'" "$LINENO" 5
  5011. fi
  5012. PKG_STUB_SOURCES="$PKG_STUB_SOURCES $i"
  5013. # this assumes it is in a VPATH dir
  5014. i=`basename $i`
  5015. # handle user calling this before or after TEA_SETUP_COMPILER
  5016. if test x"${OBJEXT}" != x ; then
  5017. j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}"
  5018. else
  5019. j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}"
  5020. fi
  5021. PKG_STUB_OBJECTS="$PKG_STUB_OBJECTS $j"
  5022. done
  5023. vars="demo/demo.tcl"
  5024. for i in $vars; do
  5025. # check for existence, be strict because it is installed
  5026. if test ! -f "${srcdir}/$i" ; then
  5027. as_fn_error $? "could not find tcl source file '${srcdir}/$i'" "$LINENO" 5
  5028. fi
  5029. PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i"
  5030. done
  5031. #--------------------------------------------------------------------
  5032. # __CHANGE__
  5033. #
  5034. # You can add more files to clean if your extension creates any extra
  5035. # files by extending CLEANFILES.
  5036. # Add pkgIndex.tcl if it is generated in the Makefile instead of ./configure
  5037. # and change Makefile.in to move it from CONFIG_CLEAN_FILES to BINARIES var.
  5038. #
  5039. # A few miscellaneous platform-specific items:
  5040. # TEA_ADD_* any platform specific compiler/build info here.
  5041. #--------------------------------------------------------------------
  5042. #CLEANFILES="$CLEANFILES pkgIndex.tcl"
  5043. if test "${TEA_PLATFORM}" = "windows" ; then
  5044. # Ensure no empty if clauses
  5045. :
  5046. #TEA_ADD_SOURCES([win/winFile.c])
  5047. #TEA_ADD_INCLUDES([-I\"$(${CYGPATH} ${srcdir}/win)\"])
  5048. else
  5049. # Ensure no empty else clauses
  5050. :
  5051. #TEA_ADD_SOURCES([unix/unixFile.c])
  5052. vars=""
  5053. for i in $vars; do
  5054. if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
  5055. # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
  5056. i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
  5057. fi
  5058. PKG_LIBS="$PKG_LIBS $i"
  5059. done
  5060. fi
  5061. #--------------------------------------------------------------------
  5062. # __CHANGE__
  5063. # Choose which headers you need. Extension authors should try very
  5064. # hard to only rely on the Tcl public header files. Internal headers
  5065. # contain private data structures and are subject to change without
  5066. # notice.
  5067. # This MUST be called after TEA_LOAD_TCLCONFIG / TEA_LOAD_TKCONFIG
  5068. #--------------------------------------------------------------------
  5069. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Tcl public headers" >&5
  5070. printf %s "checking for Tcl public headers... " >&6; }
  5071. # Check whether --with-tclinclude was given.
  5072. if test ${with_tclinclude+y}
  5073. then :
  5074. withval=$with_tclinclude; with_tclinclude=${withval}
  5075. fi
  5076. if test ${ac_cv_c_tclh+y}
  5077. then :
  5078. printf %s "(cached) " >&6
  5079. else case e in #(
  5080. e)
  5081. # Use the value from --with-tclinclude, if it was given
  5082. if test x"${with_tclinclude}" != x ; then
  5083. if test -f "${with_tclinclude}/tcl.h" ; then
  5084. ac_cv_c_tclh=${with_tclinclude}
  5085. else
  5086. as_fn_error $? "${with_tclinclude} directory does not contain tcl.h" "$LINENO" 5
  5087. fi
  5088. else
  5089. list=""
  5090. if test "`uname -s`" = "Darwin"; then
  5091. # If Tcl was built as a framework, attempt to use
  5092. # the framework's Headers directory
  5093. case ${TCL_DEFS} in
  5094. *TCL_FRAMEWORK*)
  5095. list="`ls -d ${TCL_BIN_DIR}/Headers 2>/dev/null`"
  5096. ;;
  5097. esac
  5098. fi
  5099. # Look in the source dir only if Tcl is not installed,
  5100. # and in that situation, look there before installed locations.
  5101. if test -f "${TCL_BIN_DIR}/Makefile" ; then
  5102. list="$list `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`"
  5103. fi
  5104. # Check order: pkg --prefix location, Tcl's --prefix location,
  5105. # relative to directory of tclConfig.sh.
  5106. eval "temp_includedir=${includedir}"
  5107. list="$list \
  5108. `ls -d ${temp_includedir} 2>/dev/null` \
  5109. `ls -d ${TCL_PREFIX}/include 2>/dev/null` \
  5110. `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`"
  5111. if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then
  5112. list="$list /usr/local/include /usr/include"
  5113. if test x"${TCL_INCLUDE_SPEC}" != x ; then
  5114. d=`echo "${TCL_INCLUDE_SPEC}" | sed -e 's/^-I//'`
  5115. list="$list `ls -d ${d} 2>/dev/null`"
  5116. fi
  5117. fi
  5118. for i in $list ; do
  5119. if test -f "$i/tcl.h" ; then
  5120. ac_cv_c_tclh=$i
  5121. break
  5122. fi
  5123. done
  5124. fi
  5125. ;;
  5126. esac
  5127. fi
  5128. # Print a message based on how we determined the include path
  5129. if test x"${ac_cv_c_tclh}" = x ; then
  5130. as_fn_error $? "tcl.h not found. Please specify its location with --with-tclinclude" "$LINENO" 5
  5131. else
  5132. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_c_tclh}" >&5
  5133. printf "%s\n" "${ac_cv_c_tclh}" >&6; }
  5134. fi
  5135. # Convert to a native path and substitute into the output files.
  5136. INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}`
  5137. TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\"
  5138. #TEA_PRIVATE_TCL_HEADERS
  5139. #TEA_PUBLIC_TK_HEADERS
  5140. #TEA_PRIVATE_TK_HEADERS
  5141. #TEA_PATH_X
  5142. #--------------------------------------------------------------------
  5143. # Check whether --enable-threads or --disable-threads was given.
  5144. # This auto-enables if Tcl was compiled threaded.
  5145. #--------------------------------------------------------------------
  5146. # Check whether --enable-threads was given.
  5147. if test ${enable_threads+y}
  5148. then :
  5149. enableval=$enable_threads; tcl_ok=$enableval
  5150. else case e in #(
  5151. e) tcl_ok=yes ;;
  5152. esac
  5153. fi
  5154. if test "${enable_threads+set}" = set; then
  5155. enableval="$enable_threads"
  5156. tcl_ok=$enableval
  5157. else
  5158. tcl_ok=yes
  5159. fi
  5160. if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then
  5161. TCL_THREADS=1
  5162. if test "${TEA_PLATFORM}" != "windows" ; then
  5163. # We are always OK on Windows, so check what this platform wants:
  5164. # USE_THREAD_ALLOC tells us to try the special thread-based
  5165. # allocator that significantly reduces lock contention
  5166. printf "%s\n" "#define USE_THREAD_ALLOC 1" >>confdefs.h
  5167. printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
  5168. if test "`uname -s`" = "SunOS" ; then
  5169. printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  5170. fi
  5171. printf "%s\n" "#define _THREAD_SAFE 1" >>confdefs.h
  5172. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5
  5173. printf %s "checking for pthread_mutex_init in -lpthread... " >&6; }
  5174. if test ${ac_cv_lib_pthread_pthread_mutex_init+y}
  5175. then :
  5176. printf %s "(cached) " >&6
  5177. else case e in #(
  5178. e) ac_check_lib_save_LIBS=$LIBS
  5179. LIBS="-lpthread $LIBS"
  5180. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5181. /* end confdefs.h. */
  5182. /* Override any GCC internal prototype to avoid an error.
  5183. Use char because int might match the return type of a GCC
  5184. builtin and then its argument prototype would still apply.
  5185. The 'extern "C"' is for builds by C++ compilers;
  5186. although this is not generally supported in C code supporting it here
  5187. has little cost and some practical benefit (sr 110532). */
  5188. #ifdef __cplusplus
  5189. extern "C"
  5190. #endif
  5191. char pthread_mutex_init (void);
  5192. int
  5193. main (void)
  5194. {
  5195. return pthread_mutex_init ();
  5196. ;
  5197. return 0;
  5198. }
  5199. _ACEOF
  5200. if ac_fn_c_try_link "$LINENO"
  5201. then :
  5202. ac_cv_lib_pthread_pthread_mutex_init=yes
  5203. else case e in #(
  5204. e) ac_cv_lib_pthread_pthread_mutex_init=no ;;
  5205. esac
  5206. fi
  5207. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  5208. conftest$ac_exeext conftest.$ac_ext
  5209. LIBS=$ac_check_lib_save_LIBS ;;
  5210. esac
  5211. fi
  5212. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
  5213. printf "%s\n" "$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
  5214. if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes
  5215. then :
  5216. tcl_ok=yes
  5217. else case e in #(
  5218. e) tcl_ok=no ;;
  5219. esac
  5220. fi
  5221. if test "$tcl_ok" = "no"; then
  5222. # Check a little harder for __pthread_mutex_init in the same
  5223. # library, as some systems hide it there until pthread.h is
  5224. # defined. We could alternatively do an AC_TRY_COMPILE with
  5225. # pthread.h, but that will work with libpthread really doesn't
  5226. # exist, like AIX 4.2. [Bug: 4359]
  5227. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __pthread_mutex_init in -lpthread" >&5
  5228. printf %s "checking for __pthread_mutex_init in -lpthread... " >&6; }
  5229. if test ${ac_cv_lib_pthread___pthread_mutex_init+y}
  5230. then :
  5231. printf %s "(cached) " >&6
  5232. else case e in #(
  5233. e) ac_check_lib_save_LIBS=$LIBS
  5234. LIBS="-lpthread $LIBS"
  5235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5236. /* end confdefs.h. */
  5237. /* Override any GCC internal prototype to avoid an error.
  5238. Use char because int might match the return type of a GCC
  5239. builtin and then its argument prototype would still apply.
  5240. The 'extern "C"' is for builds by C++ compilers;
  5241. although this is not generally supported in C code supporting it here
  5242. has little cost and some practical benefit (sr 110532). */
  5243. #ifdef __cplusplus
  5244. extern "C"
  5245. #endif
  5246. char __pthread_mutex_init (void);
  5247. int
  5248. main (void)
  5249. {
  5250. return __pthread_mutex_init ();
  5251. ;
  5252. return 0;
  5253. }
  5254. _ACEOF
  5255. if ac_fn_c_try_link "$LINENO"
  5256. then :
  5257. ac_cv_lib_pthread___pthread_mutex_init=yes
  5258. else case e in #(
  5259. e) ac_cv_lib_pthread___pthread_mutex_init=no ;;
  5260. esac
  5261. fi
  5262. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  5263. conftest$ac_exeext conftest.$ac_ext
  5264. LIBS=$ac_check_lib_save_LIBS ;;
  5265. esac
  5266. fi
  5267. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5
  5268. printf "%s\n" "$ac_cv_lib_pthread___pthread_mutex_init" >&6; }
  5269. if test "x$ac_cv_lib_pthread___pthread_mutex_init" = xyes
  5270. then :
  5271. tcl_ok=yes
  5272. else case e in #(
  5273. e) tcl_ok=no ;;
  5274. esac
  5275. fi
  5276. fi
  5277. if test "$tcl_ok" = "yes"; then
  5278. # The space is needed
  5279. THREADS_LIBS=" -lpthread"
  5280. else
  5281. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthreads" >&5
  5282. printf %s "checking for pthread_mutex_init in -lpthreads... " >&6; }
  5283. if test ${ac_cv_lib_pthreads_pthread_mutex_init+y}
  5284. then :
  5285. printf %s "(cached) " >&6
  5286. else case e in #(
  5287. e) ac_check_lib_save_LIBS=$LIBS
  5288. LIBS="-lpthreads $LIBS"
  5289. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5290. /* end confdefs.h. */
  5291. /* Override any GCC internal prototype to avoid an error.
  5292. Use char because int might match the return type of a GCC
  5293. builtin and then its argument prototype would still apply.
  5294. The 'extern "C"' is for builds by C++ compilers;
  5295. although this is not generally supported in C code supporting it here
  5296. has little cost and some practical benefit (sr 110532). */
  5297. #ifdef __cplusplus
  5298. extern "C"
  5299. #endif
  5300. char pthread_mutex_init (void);
  5301. int
  5302. main (void)
  5303. {
  5304. return pthread_mutex_init ();
  5305. ;
  5306. return 0;
  5307. }
  5308. _ACEOF
  5309. if ac_fn_c_try_link "$LINENO"
  5310. then :
  5311. ac_cv_lib_pthreads_pthread_mutex_init=yes
  5312. else case e in #(
  5313. e) ac_cv_lib_pthreads_pthread_mutex_init=no ;;
  5314. esac
  5315. fi
  5316. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  5317. conftest$ac_exeext conftest.$ac_ext
  5318. LIBS=$ac_check_lib_save_LIBS ;;
  5319. esac
  5320. fi
  5321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5
  5322. printf "%s\n" "$ac_cv_lib_pthreads_pthread_mutex_init" >&6; }
  5323. if test "x$ac_cv_lib_pthreads_pthread_mutex_init" = xyes
  5324. then :
  5325. tcl_ok=yes
  5326. else case e in #(
  5327. e) tcl_ok=no ;;
  5328. esac
  5329. fi
  5330. if test "$tcl_ok" = "yes"; then
  5331. # The space is needed
  5332. THREADS_LIBS=" -lpthreads"
  5333. else
  5334. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lc" >&5
  5335. printf %s "checking for pthread_mutex_init in -lc... " >&6; }
  5336. if test ${ac_cv_lib_c_pthread_mutex_init+y}
  5337. then :
  5338. printf %s "(cached) " >&6
  5339. else case e in #(
  5340. e) ac_check_lib_save_LIBS=$LIBS
  5341. LIBS="-lc $LIBS"
  5342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5343. /* end confdefs.h. */
  5344. /* Override any GCC internal prototype to avoid an error.
  5345. Use char because int might match the return type of a GCC
  5346. builtin and then its argument prototype would still apply.
  5347. The 'extern "C"' is for builds by C++ compilers;
  5348. although this is not generally supported in C code supporting it here
  5349. has little cost and some practical benefit (sr 110532). */
  5350. #ifdef __cplusplus
  5351. extern "C"
  5352. #endif
  5353. char pthread_mutex_init (void);
  5354. int
  5355. main (void)
  5356. {
  5357. return pthread_mutex_init ();
  5358. ;
  5359. return 0;
  5360. }
  5361. _ACEOF
  5362. if ac_fn_c_try_link "$LINENO"
  5363. then :
  5364. ac_cv_lib_c_pthread_mutex_init=yes
  5365. else case e in #(
  5366. e) ac_cv_lib_c_pthread_mutex_init=no ;;
  5367. esac
  5368. fi
  5369. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  5370. conftest$ac_exeext conftest.$ac_ext
  5371. LIBS=$ac_check_lib_save_LIBS ;;
  5372. esac
  5373. fi
  5374. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_mutex_init" >&5
  5375. printf "%s\n" "$ac_cv_lib_c_pthread_mutex_init" >&6; }
  5376. if test "x$ac_cv_lib_c_pthread_mutex_init" = xyes
  5377. then :
  5378. tcl_ok=yes
  5379. else case e in #(
  5380. e) tcl_ok=no ;;
  5381. esac
  5382. fi
  5383. if test "$tcl_ok" = "no"; then
  5384. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lc_r" >&5
  5385. printf %s "checking for pthread_mutex_init in -lc_r... " >&6; }
  5386. if test ${ac_cv_lib_c_r_pthread_mutex_init+y}
  5387. then :
  5388. printf %s "(cached) " >&6
  5389. else case e in #(
  5390. e) ac_check_lib_save_LIBS=$LIBS
  5391. LIBS="-lc_r $LIBS"
  5392. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5393. /* end confdefs.h. */
  5394. /* Override any GCC internal prototype to avoid an error.
  5395. Use char because int might match the return type of a GCC
  5396. builtin and then its argument prototype would still apply.
  5397. The 'extern "C"' is for builds by C++ compilers;
  5398. although this is not generally supported in C code supporting it here
  5399. has little cost and some practical benefit (sr 110532). */
  5400. #ifdef __cplusplus
  5401. extern "C"
  5402. #endif
  5403. char pthread_mutex_init (void);
  5404. int
  5405. main (void)
  5406. {
  5407. return pthread_mutex_init ();
  5408. ;
  5409. return 0;
  5410. }
  5411. _ACEOF
  5412. if ac_fn_c_try_link "$LINENO"
  5413. then :
  5414. ac_cv_lib_c_r_pthread_mutex_init=yes
  5415. else case e in #(
  5416. e) ac_cv_lib_c_r_pthread_mutex_init=no ;;
  5417. esac
  5418. fi
  5419. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  5420. conftest$ac_exeext conftest.$ac_ext
  5421. LIBS=$ac_check_lib_save_LIBS ;;
  5422. esac
  5423. fi
  5424. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_mutex_init" >&5
  5425. printf "%s\n" "$ac_cv_lib_c_r_pthread_mutex_init" >&6; }
  5426. if test "x$ac_cv_lib_c_r_pthread_mutex_init" = xyes
  5427. then :
  5428. tcl_ok=yes
  5429. else case e in #(
  5430. e) tcl_ok=no ;;
  5431. esac
  5432. fi
  5433. if test "$tcl_ok" = "yes"; then
  5434. # The space is needed
  5435. THREADS_LIBS=" -pthread"
  5436. else
  5437. TCL_THREADS=0
  5438. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&5
  5439. printf "%s\n" "$as_me: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&2;}
  5440. fi
  5441. fi
  5442. fi
  5443. fi
  5444. fi
  5445. else
  5446. TCL_THREADS=0
  5447. fi
  5448. # Do checking message here to not mess up interleaved configure output
  5449. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for building with threads" >&5
  5450. printf %s "checking for building with threads... " >&6; }
  5451. if test "${TCL_THREADS}" = 1; then
  5452. printf "%s\n" "#define TCL_THREADS 1" >>confdefs.h
  5453. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
  5454. printf "%s\n" "yes (default)" >&6; }
  5455. else
  5456. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5457. printf "%s\n" "no" >&6; }
  5458. fi
  5459. # TCL_THREADS sanity checking. See if our request for building with
  5460. # threads is the same as the way Tcl was built. If not, warn the user.
  5461. case ${TCL_DEFS} in
  5462. *THREADS=1*)
  5463. if test "${TCL_THREADS}" = "0"; then
  5464. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
  5465. Building ${PACKAGE_NAME} without threads enabled, but building against Tcl
  5466. that IS thread-enabled. It is recommended to use --enable-threads." >&5
  5467. printf "%s\n" "$as_me: WARNING:
  5468. Building ${PACKAGE_NAME} without threads enabled, but building against Tcl
  5469. that IS thread-enabled. It is recommended to use --enable-threads." >&2;}
  5470. fi
  5471. ;;
  5472. esac
  5473. #--------------------------------------------------------------------
  5474. # The statement below defines a collection of symbols related to
  5475. # building as a shared library instead of a static library.
  5476. #--------------------------------------------------------------------
  5477. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to build libraries" >&5
  5478. printf %s "checking how to build libraries... " >&6; }
  5479. # Check whether --enable-shared was given.
  5480. if test ${enable_shared+y}
  5481. then :
  5482. enableval=$enable_shared; shared_ok=$enableval
  5483. else case e in #(
  5484. e) shared_ok=yes ;;
  5485. esac
  5486. fi
  5487. if test "${enable_shared+set}" = set; then
  5488. enableval="$enable_shared"
  5489. shared_ok=$enableval
  5490. else
  5491. shared_ok=yes
  5492. fi
  5493. # Check whether --enable-stubs was given.
  5494. if test ${enable_stubs+y}
  5495. then :
  5496. enableval=$enable_stubs; stubs_ok=$enableval
  5497. else case e in #(
  5498. e) stubs_ok=yes ;;
  5499. esac
  5500. fi
  5501. if test "${enable_stubs+set}" = set; then
  5502. enableval="$enable_stubs"
  5503. stubs_ok=$enableval
  5504. else
  5505. stubs_ok=yes
  5506. fi
  5507. # Stubs are always enabled for shared builds
  5508. if test "$shared_ok" = "yes" ; then
  5509. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: shared" >&5
  5510. printf "%s\n" "shared" >&6; }
  5511. SHARED_BUILD=1
  5512. STUBS_BUILD=1
  5513. else
  5514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: static" >&5
  5515. printf "%s\n" "static" >&6; }
  5516. SHARED_BUILD=0
  5517. printf "%s\n" "#define STATIC_BUILD 1" >>confdefs.h
  5518. if test "$stubs_ok" = "yes" ; then
  5519. STUBS_BUILD=1
  5520. else
  5521. STUBS_BUILD=0
  5522. fi
  5523. fi
  5524. if test "${STUBS_BUILD}" = "1" ; then
  5525. printf "%s\n" "#define USE_TCL_STUBS 1" >>confdefs.h
  5526. printf "%s\n" "#define USE_TCLOO_STUBS 1" >>confdefs.h
  5527. if test "${TEA_WINDOWINGSYSTEM}" != ""; then
  5528. printf "%s\n" "#define USE_TK_STUBS 1" >>confdefs.h
  5529. fi
  5530. fi
  5531. #--------------------------------------------------------------------
  5532. # This macro figures out what flags to use with the compiler/linker
  5533. # when building shared/static debug/optimized objects. This information
  5534. # can be taken from the tclConfig.sh file, but this figures it all out.
  5535. #--------------------------------------------------------------------
  5536. if test -n "$ac_tool_prefix"; then
  5537. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5538. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5539. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5540. printf %s "checking for $ac_word... " >&6; }
  5541. if test ${ac_cv_prog_RANLIB+y}
  5542. then :
  5543. printf %s "(cached) " >&6
  5544. else case e in #(
  5545. e) if test -n "$RANLIB"; then
  5546. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5547. else
  5548. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5549. for as_dir in $PATH
  5550. do
  5551. IFS=$as_save_IFS
  5552. case $as_dir in #(((
  5553. '') as_dir=./ ;;
  5554. */) ;;
  5555. *) as_dir=$as_dir/ ;;
  5556. esac
  5557. for ac_exec_ext in '' $ac_executable_extensions; do
  5558. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5559. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5560. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5561. break 2
  5562. fi
  5563. done
  5564. done
  5565. IFS=$as_save_IFS
  5566. fi ;;
  5567. esac
  5568. fi
  5569. RANLIB=$ac_cv_prog_RANLIB
  5570. if test -n "$RANLIB"; then
  5571. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5572. printf "%s\n" "$RANLIB" >&6; }
  5573. else
  5574. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5575. printf "%s\n" "no" >&6; }
  5576. fi
  5577. fi
  5578. if test -z "$ac_cv_prog_RANLIB"; then
  5579. ac_ct_RANLIB=$RANLIB
  5580. # Extract the first word of "ranlib", so it can be a program name with args.
  5581. set dummy ranlib; ac_word=$2
  5582. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5583. printf %s "checking for $ac_word... " >&6; }
  5584. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  5585. then :
  5586. printf %s "(cached) " >&6
  5587. else case e in #(
  5588. e) if test -n "$ac_ct_RANLIB"; then
  5589. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5590. else
  5591. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5592. for as_dir in $PATH
  5593. do
  5594. IFS=$as_save_IFS
  5595. case $as_dir in #(((
  5596. '') as_dir=./ ;;
  5597. */) ;;
  5598. *) as_dir=$as_dir/ ;;
  5599. esac
  5600. for ac_exec_ext in '' $ac_executable_extensions; do
  5601. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5602. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5603. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5604. break 2
  5605. fi
  5606. done
  5607. done
  5608. IFS=$as_save_IFS
  5609. fi ;;
  5610. esac
  5611. fi
  5612. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5613. if test -n "$ac_ct_RANLIB"; then
  5614. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5615. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  5616. else
  5617. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5618. printf "%s\n" "no" >&6; }
  5619. fi
  5620. if test "x$ac_ct_RANLIB" = x; then
  5621. RANLIB=":"
  5622. else
  5623. case $cross_compiling:$ac_tool_warned in
  5624. yes:)
  5625. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5626. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5627. ac_tool_warned=yes ;;
  5628. esac
  5629. RANLIB=$ac_ct_RANLIB
  5630. fi
  5631. else
  5632. RANLIB="$ac_cv_prog_RANLIB"
  5633. fi
  5634. # Step 0.a: Enable 64 bit support?
  5635. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if 64bit support is requested" >&5
  5636. printf %s "checking if 64bit support is requested... " >&6; }
  5637. # Check whether --enable-64bit was given.
  5638. if test ${enable_64bit+y}
  5639. then :
  5640. enableval=$enable_64bit; do64bit=$enableval
  5641. else case e in #(
  5642. e) do64bit=no ;;
  5643. esac
  5644. fi
  5645. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $do64bit" >&5
  5646. printf "%s\n" "$do64bit" >&6; }
  5647. # Step 0.b: Enable Solaris 64 bit VIS support?
  5648. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if 64bit Sparc VIS support is requested" >&5
  5649. printf %s "checking if 64bit Sparc VIS support is requested... " >&6; }
  5650. # Check whether --enable-64bit-vis was given.
  5651. if test ${enable_64bit_vis+y}
  5652. then :
  5653. enableval=$enable_64bit_vis; do64bitVIS=$enableval
  5654. else case e in #(
  5655. e) do64bitVIS=no ;;
  5656. esac
  5657. fi
  5658. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $do64bitVIS" >&5
  5659. printf "%s\n" "$do64bitVIS" >&6; }
  5660. # Force 64bit on with VIS
  5661. if test "$do64bitVIS" = "yes"
  5662. then :
  5663. do64bit=yes
  5664. fi
  5665. # Step 0.c: Check if visibility support is available. Do this here so
  5666. # that platform specific alternatives can be used below if this fails.
  5667. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler supports visibility \"hidden\"" >&5
  5668. printf %s "checking if compiler supports visibility \"hidden\"... " >&6; }
  5669. if test ${tcl_cv_cc_visibility_hidden+y}
  5670. then :
  5671. printf %s "(cached) " >&6
  5672. else case e in #(
  5673. e)
  5674. hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror"
  5675. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5676. /* end confdefs.h. */
  5677. extern __attribute__((__visibility__("hidden"))) void f(void);
  5678. void f(void) {}
  5679. int
  5680. main (void)
  5681. {
  5682. f();
  5683. ;
  5684. return 0;
  5685. }
  5686. _ACEOF
  5687. if ac_fn_c_try_link "$LINENO"
  5688. then :
  5689. tcl_cv_cc_visibility_hidden=yes
  5690. else case e in #(
  5691. e) tcl_cv_cc_visibility_hidden=no ;;
  5692. esac
  5693. fi
  5694. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  5695. conftest$ac_exeext conftest.$ac_ext
  5696. CFLAGS=$hold_cflags ;;
  5697. esac
  5698. fi
  5699. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_visibility_hidden" >&5
  5700. printf "%s\n" "$tcl_cv_cc_visibility_hidden" >&6; }
  5701. if test $tcl_cv_cc_visibility_hidden = yes
  5702. then :
  5703. printf "%s\n" "#define MODULE_SCOPE extern __attribute__((__visibility__(\"hidden\")))" >>confdefs.h
  5704. printf "%s\n" "#define HAVE_HIDDEN 1" >>confdefs.h
  5705. fi
  5706. # Step 0.d: Disable -rpath support?
  5707. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if rpath support is requested" >&5
  5708. printf %s "checking if rpath support is requested... " >&6; }
  5709. # Check whether --enable-rpath was given.
  5710. if test ${enable_rpath+y}
  5711. then :
  5712. enableval=$enable_rpath; doRpath=$enableval
  5713. else case e in #(
  5714. e) doRpath=yes ;;
  5715. esac
  5716. fi
  5717. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $doRpath" >&5
  5718. printf "%s\n" "$doRpath" >&6; }
  5719. # Set the variable "system" to hold the name and version number
  5720. # for the system.
  5721. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking system version" >&5
  5722. printf %s "checking system version... " >&6; }
  5723. if test ${tcl_cv_sys_version+y}
  5724. then :
  5725. printf %s "(cached) " >&6
  5726. else case e in #(
  5727. e)
  5728. # TEA specific:
  5729. if test "${TEA_PLATFORM}" = "windows" ; then
  5730. tcl_cv_sys_version=windows
  5731. else
  5732. tcl_cv_sys_version=`uname -s`-`uname -r`
  5733. if test "$?" -ne 0 ; then
  5734. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5
  5735. printf "%s\n" "$as_me: WARNING: can't find uname command" >&2;}
  5736. tcl_cv_sys_version=unknown
  5737. else
  5738. if test "`uname -s`" = "AIX" ; then
  5739. tcl_cv_sys_version=AIX-`uname -v`.`uname -r`
  5740. fi
  5741. if test "`uname -s`" = "NetBSD" -a -f /etc/debian_version ; then
  5742. tcl_cv_sys_version=NetBSD-Debian
  5743. fi
  5744. fi
  5745. fi
  5746. ;;
  5747. esac
  5748. fi
  5749. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5
  5750. printf "%s\n" "$tcl_cv_sys_version" >&6; }
  5751. system=$tcl_cv_sys_version
  5752. # Require ranlib early so we can override it in special cases below.
  5753. # Set configuration options based on system name and version.
  5754. # This is similar to Tcl's unix/tcl.m4 except that we've added a
  5755. # "windows" case and removed some core-only vars.
  5756. do64bit_ok=no
  5757. # default to '{$LIBS}' and set to "" on per-platform necessary basis
  5758. SHLIB_LD_LIBS='${LIBS}'
  5759. # When ld needs options to work in 64-bit mode, put them in
  5760. # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load]
  5761. # is disabled by the user. [Bug 1016796]
  5762. LDFLAGS_ARCH=""
  5763. UNSHARED_LIB_SUFFIX=""
  5764. # TEA specific: use PACKAGE_VERSION instead of VERSION
  5765. TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`'
  5766. ECHO_VERSION='`echo ${PACKAGE_VERSION}`'
  5767. TCL_LIB_VERSIONS_OK=ok
  5768. CFLAGS_DEBUG=-g
  5769. if test "$GCC" = yes
  5770. then :
  5771. CFLAGS_OPTIMIZE=-O2
  5772. CFLAGS_WARNING="-Wall"
  5773. else case e in #(
  5774. e)
  5775. CFLAGS_OPTIMIZE=-O
  5776. CFLAGS_WARNING=""
  5777. ;;
  5778. esac
  5779. fi
  5780. if test -n "$ac_tool_prefix"; then
  5781. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5782. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5783. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5784. printf %s "checking for $ac_word... " >&6; }
  5785. if test ${ac_cv_prog_AR+y}
  5786. then :
  5787. printf %s "(cached) " >&6
  5788. else case e in #(
  5789. e) if test -n "$AR"; then
  5790. ac_cv_prog_AR="$AR" # Let the user override the test.
  5791. else
  5792. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5793. for as_dir in $PATH
  5794. do
  5795. IFS=$as_save_IFS
  5796. case $as_dir in #(((
  5797. '') as_dir=./ ;;
  5798. */) ;;
  5799. *) as_dir=$as_dir/ ;;
  5800. esac
  5801. for ac_exec_ext in '' $ac_executable_extensions; do
  5802. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5803. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5804. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5805. break 2
  5806. fi
  5807. done
  5808. done
  5809. IFS=$as_save_IFS
  5810. fi ;;
  5811. esac
  5812. fi
  5813. AR=$ac_cv_prog_AR
  5814. if test -n "$AR"; then
  5815. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5816. printf "%s\n" "$AR" >&6; }
  5817. else
  5818. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5819. printf "%s\n" "no" >&6; }
  5820. fi
  5821. fi
  5822. if test -z "$ac_cv_prog_AR"; then
  5823. ac_ct_AR=$AR
  5824. # Extract the first word of "ar", so it can be a program name with args.
  5825. set dummy ar; ac_word=$2
  5826. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5827. printf %s "checking for $ac_word... " >&6; }
  5828. if test ${ac_cv_prog_ac_ct_AR+y}
  5829. then :
  5830. printf %s "(cached) " >&6
  5831. else case e in #(
  5832. e) if test -n "$ac_ct_AR"; then
  5833. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5834. else
  5835. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5836. for as_dir in $PATH
  5837. do
  5838. IFS=$as_save_IFS
  5839. case $as_dir in #(((
  5840. '') as_dir=./ ;;
  5841. */) ;;
  5842. *) as_dir=$as_dir/ ;;
  5843. esac
  5844. for ac_exec_ext in '' $ac_executable_extensions; do
  5845. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5846. ac_cv_prog_ac_ct_AR="ar"
  5847. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5848. break 2
  5849. fi
  5850. done
  5851. done
  5852. IFS=$as_save_IFS
  5853. fi ;;
  5854. esac
  5855. fi
  5856. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5857. if test -n "$ac_ct_AR"; then
  5858. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5859. printf "%s\n" "$ac_ct_AR" >&6; }
  5860. else
  5861. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5862. printf "%s\n" "no" >&6; }
  5863. fi
  5864. if test "x$ac_ct_AR" = x; then
  5865. AR=""
  5866. else
  5867. case $cross_compiling:$ac_tool_warned in
  5868. yes:)
  5869. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5870. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5871. ac_tool_warned=yes ;;
  5872. esac
  5873. AR=$ac_ct_AR
  5874. fi
  5875. else
  5876. AR="$ac_cv_prog_AR"
  5877. fi
  5878. STLIB_LD='${AR} cr'
  5879. LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
  5880. if test "x$SHLIB_VERSION" = x
  5881. then :
  5882. SHLIB_VERSION=""
  5883. else case e in #(
  5884. e) SHLIB_VERSION=".$SHLIB_VERSION" ;;
  5885. esac
  5886. fi
  5887. case $system in
  5888. # TEA specific:
  5889. windows)
  5890. MACHINE="X86"
  5891. if test "$do64bit" != "no" ; then
  5892. case "$do64bit" in
  5893. amd64|x64|yes)
  5894. MACHINE="AMD64" ; # default to AMD64 64-bit build
  5895. ;;
  5896. arm64|aarch64)
  5897. MACHINE="ARM64"
  5898. ;;
  5899. ia64)
  5900. MACHINE="IA64"
  5901. ;;
  5902. esac
  5903. fi
  5904. if test "$GCC" != "yes" ; then
  5905. if test "${SHARED_BUILD}" = "0" ; then
  5906. runtime=-MT
  5907. else
  5908. runtime=-MD
  5909. fi
  5910. case "x`echo \${VisualStudioVersion}`" in
  5911. x1[4-9]*)
  5912. lflags="${lflags} -nodefaultlib:libucrt.lib"
  5913. vars="ucrt.lib"
  5914. for i in $vars; do
  5915. if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
  5916. # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
  5917. i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
  5918. fi
  5919. PKG_LIBS="$PKG_LIBS $i"
  5920. done
  5921. ;;
  5922. *)
  5923. ;;
  5924. esac
  5925. if test "$do64bit" != "no" ; then
  5926. CC="cl.exe"
  5927. RC="rc.exe"
  5928. lflags="${lflags} -nologo -MACHINE:${MACHINE} "
  5929. LINKBIN="link.exe"
  5930. CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d"
  5931. CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}"
  5932. # Avoid 'unresolved external symbol __security_cookie'
  5933. # errors, c.f. http://support.microsoft.com/?id=894573
  5934. vars="bufferoverflowU.lib"
  5935. for i in $vars; do
  5936. if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
  5937. # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
  5938. i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
  5939. fi
  5940. PKG_LIBS="$PKG_LIBS $i"
  5941. done
  5942. else
  5943. RC="rc"
  5944. lflags="${lflags} -nologo"
  5945. LINKBIN="link"
  5946. CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d"
  5947. CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}"
  5948. fi
  5949. fi
  5950. if test "$GCC" = "yes"; then
  5951. # mingw gcc mode
  5952. if test -n "$ac_tool_prefix"; then
  5953. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  5954. set dummy ${ac_tool_prefix}windres; ac_word=$2
  5955. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5956. printf %s "checking for $ac_word... " >&6; }
  5957. if test ${ac_cv_prog_RC+y}
  5958. then :
  5959. printf %s "(cached) " >&6
  5960. else case e in #(
  5961. e) if test -n "$RC"; then
  5962. ac_cv_prog_RC="$RC" # Let the user override the test.
  5963. else
  5964. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5965. for as_dir in $PATH
  5966. do
  5967. IFS=$as_save_IFS
  5968. case $as_dir in #(((
  5969. '') as_dir=./ ;;
  5970. */) ;;
  5971. *) as_dir=$as_dir/ ;;
  5972. esac
  5973. for ac_exec_ext in '' $ac_executable_extensions; do
  5974. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5975. ac_cv_prog_RC="${ac_tool_prefix}windres"
  5976. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5977. break 2
  5978. fi
  5979. done
  5980. done
  5981. IFS=$as_save_IFS
  5982. fi ;;
  5983. esac
  5984. fi
  5985. RC=$ac_cv_prog_RC
  5986. if test -n "$RC"; then
  5987. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  5988. printf "%s\n" "$RC" >&6; }
  5989. else
  5990. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5991. printf "%s\n" "no" >&6; }
  5992. fi
  5993. fi
  5994. if test -z "$ac_cv_prog_RC"; then
  5995. ac_ct_RC=$RC
  5996. # Extract the first word of "windres", so it can be a program name with args.
  5997. set dummy windres; ac_word=$2
  5998. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5999. printf %s "checking for $ac_word... " >&6; }
  6000. if test ${ac_cv_prog_ac_ct_RC+y}
  6001. then :
  6002. printf %s "(cached) " >&6
  6003. else case e in #(
  6004. e) if test -n "$ac_ct_RC"; then
  6005. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  6006. else
  6007. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6008. for as_dir in $PATH
  6009. do
  6010. IFS=$as_save_IFS
  6011. case $as_dir in #(((
  6012. '') as_dir=./ ;;
  6013. */) ;;
  6014. *) as_dir=$as_dir/ ;;
  6015. esac
  6016. for ac_exec_ext in '' $ac_executable_extensions; do
  6017. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6018. ac_cv_prog_ac_ct_RC="windres"
  6019. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6020. break 2
  6021. fi
  6022. done
  6023. done
  6024. IFS=$as_save_IFS
  6025. fi ;;
  6026. esac
  6027. fi
  6028. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  6029. if test -n "$ac_ct_RC"; then
  6030. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  6031. printf "%s\n" "$ac_ct_RC" >&6; }
  6032. else
  6033. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6034. printf "%s\n" "no" >&6; }
  6035. fi
  6036. if test "x$ac_ct_RC" = x; then
  6037. RC=""
  6038. else
  6039. case $cross_compiling:$ac_tool_warned in
  6040. yes:)
  6041. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6042. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6043. ac_tool_warned=yes ;;
  6044. esac
  6045. RC=$ac_ct_RC
  6046. fi
  6047. else
  6048. RC="$ac_cv_prog_RC"
  6049. fi
  6050. CFLAGS_DEBUG="-g"
  6051. CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer"
  6052. SHLIB_LD='${CC} -shared'
  6053. UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
  6054. LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}"
  6055. LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}"
  6056. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cross-compile version of gcc" >&5
  6057. printf %s "checking for cross-compile version of gcc... " >&6; }
  6058. if test ${ac_cv_cross+y}
  6059. then :
  6060. printf %s "(cached) " >&6
  6061. else case e in #(
  6062. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6063. /* end confdefs.h. */
  6064. #ifdef _WIN32
  6065. #error cross-compiler
  6066. #endif
  6067. int
  6068. main (void)
  6069. {
  6070. ;
  6071. return 0;
  6072. }
  6073. _ACEOF
  6074. if ac_fn_c_try_compile "$LINENO"
  6075. then :
  6076. ac_cv_cross=yes
  6077. else case e in #(
  6078. e) ac_cv_cross=no ;;
  6079. esac
  6080. fi
  6081. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6082. ;;
  6083. esac
  6084. fi
  6085. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cross" >&5
  6086. printf "%s\n" "$ac_cv_cross" >&6; }
  6087. if test "$ac_cv_cross" = "yes"; then
  6088. case "$do64bit" in
  6089. amd64|x64|yes)
  6090. CC="x86_64-w64-mingw32-${CC}"
  6091. LD="x86_64-w64-mingw32-ld"
  6092. AR="x86_64-w64-mingw32-ar"
  6093. RANLIB="x86_64-w64-mingw32-ranlib"
  6094. RC="x86_64-w64-mingw32-windres"
  6095. ;;
  6096. arm64|aarch64)
  6097. CC="aarch64-w64-mingw32-clang"
  6098. LD="aarch64-w64-mingw32-ld"
  6099. AR="aarch64-w64-mingw32-ar"
  6100. RANLIB="aarch64-w64-mingw32-ranlib"
  6101. RC="aarch64-w64-mingw32-windres"
  6102. ;;
  6103. *)
  6104. CC="i686-w64-mingw32-${CC}"
  6105. LD="i686-w64-mingw32-ld"
  6106. AR="i686-w64-mingw32-ar"
  6107. RANLIB="i686-w64-mingw32-ranlib"
  6108. RC="i686-w64-mingw32-windres"
  6109. ;;
  6110. esac
  6111. fi
  6112. else
  6113. SHLIB_LD="${LINKBIN} -dll ${lflags}"
  6114. # link -lib only works when -lib is the first arg
  6115. STLIB_LD="${LINKBIN} -lib ${lflags}"
  6116. UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.lib'
  6117. PATHTYPE=-w
  6118. # For information on what debugtype is most useful, see:
  6119. # http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp
  6120. # and also
  6121. # http://msdn2.microsoft.com/en-us/library/y0zzbyt4%28VS.80%29.aspx
  6122. # This essentially turns it all on.
  6123. LDFLAGS_DEBUG="-debug -debugtype:cv"
  6124. LDFLAGS_OPTIMIZE="-release"
  6125. LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}"
  6126. LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}"
  6127. fi
  6128. SHLIB_SUFFIX=".dll"
  6129. SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll'
  6130. TCL_LIB_VERSIONS_OK=nodots
  6131. ;;
  6132. AIX-*)
  6133. if test "$GCC" != "yes"
  6134. then :
  6135. # AIX requires the _r compiler when gcc isn't being used
  6136. case "${CC}" in
  6137. *_r|*_r\ *)
  6138. # ok ...
  6139. ;;
  6140. *)
  6141. # Make sure only first arg gets _r
  6142. CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'`
  6143. ;;
  6144. esac
  6145. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using $CC for compiling with threads" >&5
  6146. printf "%s\n" "Using $CC for compiling with threads" >&6; }
  6147. fi
  6148. LIBS="$LIBS -lc"
  6149. SHLIB_CFLAGS=""
  6150. SHLIB_SUFFIX=".so"
  6151. LD_LIBRARY_PATH_VAR="LIBPATH"
  6152. # Check to enable 64-bit flags for compiler/linker
  6153. if test "$do64bit" = yes
  6154. then :
  6155. if test "$GCC" = yes
  6156. then :
  6157. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
  6158. printf "%s\n" "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
  6159. else case e in #(
  6160. e)
  6161. do64bit_ok=yes
  6162. CFLAGS="$CFLAGS -q64"
  6163. LDFLAGS_ARCH="-q64"
  6164. RANLIB="${RANLIB} -X64"
  6165. AR="${AR} -X64"
  6166. SHLIB_LD_FLAGS="-b64"
  6167. ;;
  6168. esac
  6169. fi
  6170. fi
  6171. if test "`uname -m`" = ia64
  6172. then :
  6173. # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC
  6174. SHLIB_LD="/usr/ccs/bin/ld -G -z text"
  6175. if test "$GCC" = yes
  6176. then :
  6177. CC_SEARCH_FLAGS='"-Wl,-R,${LIB_RUNTIME_DIR}"'
  6178. else case e in #(
  6179. e)
  6180. CC_SEARCH_FLAGS='"-R${LIB_RUNTIME_DIR}"'
  6181. ;;
  6182. esac
  6183. fi
  6184. LD_SEARCH_FLAGS='-R "${LIB_RUNTIME_DIR}"'
  6185. else case e in #(
  6186. e)
  6187. if test "$GCC" = yes
  6188. then :
  6189. SHLIB_LD='${CC} -shared -Wl,-bexpall'
  6190. else case e in #(
  6191. e)
  6192. SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bexpall -H512 -T512 -bnoentry"
  6193. LDFLAGS="$LDFLAGS -brtl"
  6194. ;;
  6195. esac
  6196. fi
  6197. SHLIB_LD="${SHLIB_LD} ${SHLIB_LD_FLAGS}"
  6198. CC_SEARCH_FLAGS='"-L${LIB_RUNTIME_DIR}"'
  6199. LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
  6200. ;;
  6201. esac
  6202. fi
  6203. ;;
  6204. BeOS*)
  6205. SHLIB_CFLAGS="-fPIC"
  6206. SHLIB_LD='${CC} -nostart'
  6207. SHLIB_SUFFIX=".so"
  6208. #-----------------------------------------------------------
  6209. # Check for inet_ntoa in -lbind, for BeOS (which also needs
  6210. # -lsocket, even if the network functions are in -lnet which
  6211. # is always linked to, for compatibility.
  6212. #-----------------------------------------------------------
  6213. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lbind" >&5
  6214. printf %s "checking for inet_ntoa in -lbind... " >&6; }
  6215. if test ${ac_cv_lib_bind_inet_ntoa+y}
  6216. then :
  6217. printf %s "(cached) " >&6
  6218. else case e in #(
  6219. e) ac_check_lib_save_LIBS=$LIBS
  6220. LIBS="-lbind $LIBS"
  6221. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6222. /* end confdefs.h. */
  6223. /* Override any GCC internal prototype to avoid an error.
  6224. Use char because int might match the return type of a GCC
  6225. builtin and then its argument prototype would still apply.
  6226. The 'extern "C"' is for builds by C++ compilers;
  6227. although this is not generally supported in C code supporting it here
  6228. has little cost and some practical benefit (sr 110532). */
  6229. #ifdef __cplusplus
  6230. extern "C"
  6231. #endif
  6232. char inet_ntoa (void);
  6233. int
  6234. main (void)
  6235. {
  6236. return inet_ntoa ();
  6237. ;
  6238. return 0;
  6239. }
  6240. _ACEOF
  6241. if ac_fn_c_try_link "$LINENO"
  6242. then :
  6243. ac_cv_lib_bind_inet_ntoa=yes
  6244. else case e in #(
  6245. e) ac_cv_lib_bind_inet_ntoa=no ;;
  6246. esac
  6247. fi
  6248. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6249. conftest$ac_exeext conftest.$ac_ext
  6250. LIBS=$ac_check_lib_save_LIBS ;;
  6251. esac
  6252. fi
  6253. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_ntoa" >&5
  6254. printf "%s\n" "$ac_cv_lib_bind_inet_ntoa" >&6; }
  6255. if test "x$ac_cv_lib_bind_inet_ntoa" = xyes
  6256. then :
  6257. LIBS="$LIBS -lbind -lsocket"
  6258. fi
  6259. ;;
  6260. BSD/OS-2.1*|BSD/OS-3*)
  6261. SHLIB_CFLAGS=""
  6262. SHLIB_LD="shlicc -r"
  6263. SHLIB_SUFFIX=".so"
  6264. CC_SEARCH_FLAGS=""
  6265. LD_SEARCH_FLAGS=""
  6266. ;;
  6267. BSD/OS-4.*)
  6268. SHLIB_CFLAGS="-export-dynamic -fPIC"
  6269. SHLIB_LD='${CC} -shared'
  6270. SHLIB_SUFFIX=".so"
  6271. LDFLAGS="$LDFLAGS -export-dynamic"
  6272. CC_SEARCH_FLAGS=""
  6273. LD_SEARCH_FLAGS=""
  6274. ;;
  6275. CYGWIN_*)
  6276. SHLIB_CFLAGS=""
  6277. SHLIB_LD='${CC} -shared'
  6278. SHLIB_SUFFIX=".dll"
  6279. SHLIB_LD_LIBS="${SHLIB_LD_LIBS} -Wl,--out-implib,\$@.a"
  6280. EXEEXT=".exe"
  6281. do64bit_ok=yes
  6282. CC_SEARCH_FLAGS=""
  6283. LD_SEARCH_FLAGS=""
  6284. ;;
  6285. dgux*)
  6286. SHLIB_CFLAGS="-K PIC"
  6287. SHLIB_LD='${CC} -G'
  6288. SHLIB_LD_LIBS=""
  6289. SHLIB_SUFFIX=".so"
  6290. CC_SEARCH_FLAGS=""
  6291. LD_SEARCH_FLAGS=""
  6292. ;;
  6293. Haiku*)
  6294. LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
  6295. SHLIB_CFLAGS="-fPIC"
  6296. SHLIB_SUFFIX=".so"
  6297. SHLIB_LD='${CC} ${CFLAGS} ${LDFLAGS} -shared'
  6298. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnetwork" >&5
  6299. printf %s "checking for inet_ntoa in -lnetwork... " >&6; }
  6300. if test ${ac_cv_lib_network_inet_ntoa+y}
  6301. then :
  6302. printf %s "(cached) " >&6
  6303. else case e in #(
  6304. e) ac_check_lib_save_LIBS=$LIBS
  6305. LIBS="-lnetwork $LIBS"
  6306. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6307. /* end confdefs.h. */
  6308. /* Override any GCC internal prototype to avoid an error.
  6309. Use char because int might match the return type of a GCC
  6310. builtin and then its argument prototype would still apply.
  6311. The 'extern "C"' is for builds by C++ compilers;
  6312. although this is not generally supported in C code supporting it here
  6313. has little cost and some practical benefit (sr 110532). */
  6314. #ifdef __cplusplus
  6315. extern "C"
  6316. #endif
  6317. char inet_ntoa (void);
  6318. int
  6319. main (void)
  6320. {
  6321. return inet_ntoa ();
  6322. ;
  6323. return 0;
  6324. }
  6325. _ACEOF
  6326. if ac_fn_c_try_link "$LINENO"
  6327. then :
  6328. ac_cv_lib_network_inet_ntoa=yes
  6329. else case e in #(
  6330. e) ac_cv_lib_network_inet_ntoa=no ;;
  6331. esac
  6332. fi
  6333. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6334. conftest$ac_exeext conftest.$ac_ext
  6335. LIBS=$ac_check_lib_save_LIBS ;;
  6336. esac
  6337. fi
  6338. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_inet_ntoa" >&5
  6339. printf "%s\n" "$ac_cv_lib_network_inet_ntoa" >&6; }
  6340. if test "x$ac_cv_lib_network_inet_ntoa" = xyes
  6341. then :
  6342. LIBS="$LIBS -lnetwork"
  6343. fi
  6344. ;;
  6345. HP-UX-*.11.*)
  6346. # Use updated header definitions where possible
  6347. printf "%s\n" "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
  6348. # TEA specific: Needed by Tcl, but not most extensions
  6349. #AC_DEFINE(_XOPEN_SOURCE, 1, [Do we want to use the XOPEN network library?])
  6350. #LIBS="$LIBS -lxnet" # Use the XOPEN network library
  6351. if test "`uname -m`" = ia64
  6352. then :
  6353. SHLIB_SUFFIX=".so"
  6354. else case e in #(
  6355. e)
  6356. SHLIB_SUFFIX=".sl"
  6357. ;;
  6358. esac
  6359. fi
  6360. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  6361. printf %s "checking for shl_load in -ldld... " >&6; }
  6362. if test ${ac_cv_lib_dld_shl_load+y}
  6363. then :
  6364. printf %s "(cached) " >&6
  6365. else case e in #(
  6366. e) ac_check_lib_save_LIBS=$LIBS
  6367. LIBS="-ldld $LIBS"
  6368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6369. /* end confdefs.h. */
  6370. /* Override any GCC internal prototype to avoid an error.
  6371. Use char because int might match the return type of a GCC
  6372. builtin and then its argument prototype would still apply.
  6373. The 'extern "C"' is for builds by C++ compilers;
  6374. although this is not generally supported in C code supporting it here
  6375. has little cost and some practical benefit (sr 110532). */
  6376. #ifdef __cplusplus
  6377. extern "C"
  6378. #endif
  6379. char shl_load (void);
  6380. int
  6381. main (void)
  6382. {
  6383. return shl_load ();
  6384. ;
  6385. return 0;
  6386. }
  6387. _ACEOF
  6388. if ac_fn_c_try_link "$LINENO"
  6389. then :
  6390. ac_cv_lib_dld_shl_load=yes
  6391. else case e in #(
  6392. e) ac_cv_lib_dld_shl_load=no ;;
  6393. esac
  6394. fi
  6395. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6396. conftest$ac_exeext conftest.$ac_ext
  6397. LIBS=$ac_check_lib_save_LIBS ;;
  6398. esac
  6399. fi
  6400. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  6401. printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
  6402. if test "x$ac_cv_lib_dld_shl_load" = xyes
  6403. then :
  6404. tcl_ok=yes
  6405. else case e in #(
  6406. e) tcl_ok=no ;;
  6407. esac
  6408. fi
  6409. if test "$tcl_ok" = yes
  6410. then :
  6411. SHLIB_CFLAGS="+z"
  6412. SHLIB_LD="ld -b"
  6413. LDFLAGS="$LDFLAGS -Wl,-E"
  6414. CC_SEARCH_FLAGS='"-Wl,+s,+b,${LIB_RUNTIME_DIR}:."'
  6415. LD_SEARCH_FLAGS='+s +b "${LIB_RUNTIME_DIR}:."'
  6416. LD_LIBRARY_PATH_VAR="SHLIB_PATH"
  6417. fi
  6418. if test "$GCC" = yes
  6419. then :
  6420. SHLIB_LD='${CC} -shared'
  6421. LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
  6422. else case e in #(
  6423. e)
  6424. CFLAGS="$CFLAGS -z"
  6425. ;;
  6426. esac
  6427. fi
  6428. # Check to enable 64-bit flags for compiler/linker
  6429. if test "$do64bit" = "yes"
  6430. then :
  6431. if test "$GCC" = yes
  6432. then :
  6433. case `${CC} -dumpmachine` in
  6434. hppa64*)
  6435. # 64-bit gcc in use. Fix flags for GNU ld.
  6436. do64bit_ok=yes
  6437. SHLIB_LD='${CC} -shared'
  6438. if test $doRpath = yes
  6439. then :
  6440. CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
  6441. fi
  6442. LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
  6443. ;;
  6444. *)
  6445. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
  6446. printf "%s\n" "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
  6447. ;;
  6448. esac
  6449. else case e in #(
  6450. e)
  6451. do64bit_ok=yes
  6452. CFLAGS="$CFLAGS +DD64"
  6453. LDFLAGS_ARCH="+DD64"
  6454. ;;
  6455. esac
  6456. fi
  6457. fi ;;
  6458. HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*)
  6459. SHLIB_SUFFIX=".sl"
  6460. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  6461. printf %s "checking for shl_load in -ldld... " >&6; }
  6462. if test ${ac_cv_lib_dld_shl_load+y}
  6463. then :
  6464. printf %s "(cached) " >&6
  6465. else case e in #(
  6466. e) ac_check_lib_save_LIBS=$LIBS
  6467. LIBS="-ldld $LIBS"
  6468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6469. /* end confdefs.h. */
  6470. /* Override any GCC internal prototype to avoid an error.
  6471. Use char because int might match the return type of a GCC
  6472. builtin and then its argument prototype would still apply.
  6473. The 'extern "C"' is for builds by C++ compilers;
  6474. although this is not generally supported in C code supporting it here
  6475. has little cost and some practical benefit (sr 110532). */
  6476. #ifdef __cplusplus
  6477. extern "C"
  6478. #endif
  6479. char shl_load (void);
  6480. int
  6481. main (void)
  6482. {
  6483. return shl_load ();
  6484. ;
  6485. return 0;
  6486. }
  6487. _ACEOF
  6488. if ac_fn_c_try_link "$LINENO"
  6489. then :
  6490. ac_cv_lib_dld_shl_load=yes
  6491. else case e in #(
  6492. e) ac_cv_lib_dld_shl_load=no ;;
  6493. esac
  6494. fi
  6495. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6496. conftest$ac_exeext conftest.$ac_ext
  6497. LIBS=$ac_check_lib_save_LIBS ;;
  6498. esac
  6499. fi
  6500. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  6501. printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
  6502. if test "x$ac_cv_lib_dld_shl_load" = xyes
  6503. then :
  6504. tcl_ok=yes
  6505. else case e in #(
  6506. e) tcl_ok=no ;;
  6507. esac
  6508. fi
  6509. if test "$tcl_ok" = yes
  6510. then :
  6511. SHLIB_CFLAGS="+z"
  6512. SHLIB_LD="ld -b"
  6513. SHLIB_LD_LIBS=""
  6514. LDFLAGS="$LDFLAGS -Wl,-E"
  6515. CC_SEARCH_FLAGS='"-Wl,+s,+b,${LIB_RUNTIME_DIR}:."'
  6516. LD_SEARCH_FLAGS='+s +b "${LIB_RUNTIME_DIR}:."'
  6517. LD_LIBRARY_PATH_VAR="SHLIB_PATH"
  6518. fi ;;
  6519. IRIX-5.*)
  6520. SHLIB_CFLAGS=""
  6521. SHLIB_LD="ld -shared -rdata_shared"
  6522. SHLIB_SUFFIX=".so"
  6523. case " $LIBOBJS " in
  6524. *" mkstemp.$ac_objext "* ) ;;
  6525. *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
  6526. ;;
  6527. esac
  6528. if test $doRpath = yes
  6529. then :
  6530. CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
  6531. LD_SEARCH_FLAGS='-rpath "${LIB_RUNTIME_DIR}"'
  6532. fi
  6533. ;;
  6534. IRIX-6.*)
  6535. SHLIB_CFLAGS=""
  6536. SHLIB_LD="ld -n32 -shared -rdata_shared"
  6537. SHLIB_SUFFIX=".so"
  6538. if test $doRpath = yes
  6539. then :
  6540. CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
  6541. LD_SEARCH_FLAGS='-rpath "${LIB_RUNTIME_DIR}"'
  6542. fi
  6543. if test "$GCC" = yes
  6544. then :
  6545. CFLAGS="$CFLAGS -mabi=n32"
  6546. LDFLAGS="$LDFLAGS -mabi=n32"
  6547. else case e in #(
  6548. e)
  6549. case $system in
  6550. IRIX-6.3)
  6551. # Use to build 6.2 compatible binaries on 6.3.
  6552. CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS"
  6553. ;;
  6554. *)
  6555. CFLAGS="$CFLAGS -n32"
  6556. ;;
  6557. esac
  6558. LDFLAGS="$LDFLAGS -n32"
  6559. ;;
  6560. esac
  6561. fi
  6562. ;;
  6563. IRIX64-6.*)
  6564. SHLIB_CFLAGS=""
  6565. SHLIB_LD="ld -n32 -shared -rdata_shared"
  6566. SHLIB_SUFFIX=".so"
  6567. if test $doRpath = yes
  6568. then :
  6569. CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
  6570. LD_SEARCH_FLAGS='-rpath "${LIB_RUNTIME_DIR}"'
  6571. fi
  6572. # Check to enable 64-bit flags for compiler/linker
  6573. if test "$do64bit" = yes
  6574. then :
  6575. if test "$GCC" = yes
  6576. then :
  6577. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported by gcc" >&5
  6578. printf "%s\n" "$as_me: WARNING: 64bit mode not supported by gcc" >&2;}
  6579. else case e in #(
  6580. e)
  6581. do64bit_ok=yes
  6582. SHLIB_LD="ld -64 -shared -rdata_shared"
  6583. CFLAGS="$CFLAGS -64"
  6584. LDFLAGS_ARCH="-64"
  6585. ;;
  6586. esac
  6587. fi
  6588. fi
  6589. ;;
  6590. Linux*|GNU*|NetBSD-Debian|DragonFly-*|FreeBSD-*)
  6591. SHLIB_CFLAGS="-fPIC"
  6592. SHLIB_SUFFIX=".so"
  6593. # TEA specific:
  6594. CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer"
  6595. # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
  6596. SHLIB_LD='${CC} ${CFLAGS} ${LDFLAGS_DEFAULT} -shared'
  6597. LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
  6598. case $system in
  6599. DragonFly-*|FreeBSD-*)
  6600. if test "${TCL_THREADS}" = "1"
  6601. then :
  6602. # The -pthread needs to go in the LDFLAGS, not LIBS
  6603. LIBS=`echo $LIBS | sed s/-pthread//`
  6604. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  6605. LDFLAGS="$LDFLAGS $PTHREAD_LIBS"
  6606. fi
  6607. ;;
  6608. esac
  6609. if test $doRpath = yes
  6610. then :
  6611. CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
  6612. fi
  6613. LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
  6614. if test "`uname -m`" = "alpha"
  6615. then :
  6616. CFLAGS="$CFLAGS -mieee"
  6617. fi
  6618. if test $do64bit = yes
  6619. then :
  6620. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -m64 flag" >&5
  6621. printf %s "checking if compiler accepts -m64 flag... " >&6; }
  6622. if test ${tcl_cv_cc_m64+y}
  6623. then :
  6624. printf %s "(cached) " >&6
  6625. else case e in #(
  6626. e)
  6627. hold_cflags=$CFLAGS
  6628. CFLAGS="$CFLAGS -m64"
  6629. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6630. /* end confdefs.h. */
  6631. int
  6632. main (void)
  6633. {
  6634. ;
  6635. return 0;
  6636. }
  6637. _ACEOF
  6638. if ac_fn_c_try_link "$LINENO"
  6639. then :
  6640. tcl_cv_cc_m64=yes
  6641. else case e in #(
  6642. e) tcl_cv_cc_m64=no ;;
  6643. esac
  6644. fi
  6645. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6646. conftest$ac_exeext conftest.$ac_ext
  6647. CFLAGS=$hold_cflags ;;
  6648. esac
  6649. fi
  6650. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_m64" >&5
  6651. printf "%s\n" "$tcl_cv_cc_m64" >&6; }
  6652. if test $tcl_cv_cc_m64 = yes
  6653. then :
  6654. CFLAGS="$CFLAGS -m64"
  6655. do64bit_ok=yes
  6656. fi
  6657. fi
  6658. # The combo of gcc + glibc has a bug related to inlining of
  6659. # functions like strtod(). The -fno-builtin flag should address
  6660. # this problem but it does not work. The -fno-inline flag is kind
  6661. # of overkill but it works. Disable inlining only when one of the
  6662. # files in compat/*.c is being linked in.
  6663. if test x"${USE_COMPAT}" != x
  6664. then :
  6665. CFLAGS="$CFLAGS -fno-inline"
  6666. fi
  6667. ;;
  6668. Lynx*)
  6669. SHLIB_CFLAGS="-fPIC"
  6670. SHLIB_SUFFIX=".so"
  6671. CFLAGS_OPTIMIZE=-02
  6672. SHLIB_LD='${CC} -shared'
  6673. LD_FLAGS="-Wl,--export-dynamic"
  6674. if test $doRpath = yes
  6675. then :
  6676. CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
  6677. LD_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
  6678. fi
  6679. ;;
  6680. OpenBSD-*)
  6681. arch=`arch -s`
  6682. case "$arch" in
  6683. alpha|sparc64)
  6684. SHLIB_CFLAGS="-fPIC"
  6685. ;;
  6686. *)
  6687. SHLIB_CFLAGS="-fpic"
  6688. ;;
  6689. esac
  6690. SHLIB_LD='${CC} ${SHLIB_CFLAGS} -shared'
  6691. SHLIB_SUFFIX=".so"
  6692. if test $doRpath = yes
  6693. then :
  6694. CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
  6695. fi
  6696. LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
  6697. SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so${SHLIB_VERSION}'
  6698. LDFLAGS="$LDFLAGS -Wl,-export-dynamic"
  6699. CFLAGS_OPTIMIZE="-O2"
  6700. # On OpenBSD: Compile with -pthread
  6701. # Don't link with -lpthread
  6702. LIBS=`echo $LIBS | sed s/-lpthread//`
  6703. CFLAGS="$CFLAGS -pthread"
  6704. # OpenBSD doesn't do version numbers with dots.
  6705. UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
  6706. TCL_LIB_VERSIONS_OK=nodots
  6707. ;;
  6708. NetBSD-*)
  6709. # NetBSD has ELF and can use 'cc -shared' to build shared libs
  6710. SHLIB_CFLAGS="-fPIC"
  6711. SHLIB_LD='${CC} ${SHLIB_CFLAGS} -shared'
  6712. SHLIB_SUFFIX=".so"
  6713. LDFLAGS="$LDFLAGS -export-dynamic"
  6714. if test $doRpath = yes
  6715. then :
  6716. CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
  6717. fi
  6718. LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
  6719. # The -pthread needs to go in the CFLAGS, not LIBS
  6720. LIBS=`echo $LIBS | sed s/-pthread//`
  6721. CFLAGS="$CFLAGS -pthread"
  6722. LDFLAGS="$LDFLAGS -pthread"
  6723. ;;
  6724. Darwin-*)
  6725. CFLAGS_OPTIMIZE="-Os"
  6726. SHLIB_CFLAGS="-fno-common"
  6727. # To avoid discrepancies between what headers configure sees during
  6728. # preprocessing tests and compiling tests, move any -isysroot and
  6729. # -mmacosx-version-min flags from CFLAGS to CPPFLAGS:
  6730. CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \
  6731. awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
  6732. if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`"
  6733. CFLAGS="`echo " ${CFLAGS}" | \
  6734. awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
  6735. if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`"
  6736. if test $do64bit = yes
  6737. then :
  6738. case `arch` in
  6739. ppc)
  6740. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch ppc64 flag" >&5
  6741. printf %s "checking if compiler accepts -arch ppc64 flag... " >&6; }
  6742. if test ${tcl_cv_cc_arch_ppc64+y}
  6743. then :
  6744. printf %s "(cached) " >&6
  6745. else case e in #(
  6746. e)
  6747. hold_cflags=$CFLAGS
  6748. CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
  6749. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6750. /* end confdefs.h. */
  6751. int
  6752. main (void)
  6753. {
  6754. ;
  6755. return 0;
  6756. }
  6757. _ACEOF
  6758. if ac_fn_c_try_link "$LINENO"
  6759. then :
  6760. tcl_cv_cc_arch_ppc64=yes
  6761. else case e in #(
  6762. e) tcl_cv_cc_arch_ppc64=no ;;
  6763. esac
  6764. fi
  6765. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6766. conftest$ac_exeext conftest.$ac_ext
  6767. CFLAGS=$hold_cflags ;;
  6768. esac
  6769. fi
  6770. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_ppc64" >&5
  6771. printf "%s\n" "$tcl_cv_cc_arch_ppc64" >&6; }
  6772. if test $tcl_cv_cc_arch_ppc64 = yes
  6773. then :
  6774. CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
  6775. do64bit_ok=yes
  6776. fi;;
  6777. i386)
  6778. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch x86_64 flag" >&5
  6779. printf %s "checking if compiler accepts -arch x86_64 flag... " >&6; }
  6780. if test ${tcl_cv_cc_arch_x86_64+y}
  6781. then :
  6782. printf %s "(cached) " >&6
  6783. else case e in #(
  6784. e)
  6785. hold_cflags=$CFLAGS
  6786. CFLAGS="$CFLAGS -arch x86_64"
  6787. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6788. /* end confdefs.h. */
  6789. int
  6790. main (void)
  6791. {
  6792. ;
  6793. return 0;
  6794. }
  6795. _ACEOF
  6796. if ac_fn_c_try_link "$LINENO"
  6797. then :
  6798. tcl_cv_cc_arch_x86_64=yes
  6799. else case e in #(
  6800. e) tcl_cv_cc_arch_x86_64=no ;;
  6801. esac
  6802. fi
  6803. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6804. conftest$ac_exeext conftest.$ac_ext
  6805. CFLAGS=$hold_cflags ;;
  6806. esac
  6807. fi
  6808. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_x86_64" >&5
  6809. printf "%s\n" "$tcl_cv_cc_arch_x86_64" >&6; }
  6810. if test $tcl_cv_cc_arch_x86_64 = yes
  6811. then :
  6812. CFLAGS="$CFLAGS -arch x86_64"
  6813. do64bit_ok=yes
  6814. fi;;
  6815. *)
  6816. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5
  6817. printf "%s\n" "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};;
  6818. esac
  6819. else case e in #(
  6820. e)
  6821. # Check for combined 32-bit and 64-bit fat build
  6822. if echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64) ' \
  6823. && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) '
  6824. then :
  6825. fat_32_64=yes
  6826. fi
  6827. ;;
  6828. esac
  6829. fi
  6830. # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
  6831. SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}'
  6832. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ld accepts -single_module flag" >&5
  6833. printf %s "checking if ld accepts -single_module flag... " >&6; }
  6834. if test ${tcl_cv_ld_single_module+y}
  6835. then :
  6836. printf %s "(cached) " >&6
  6837. else case e in #(
  6838. e)
  6839. hold_ldflags=$LDFLAGS
  6840. LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module"
  6841. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6842. /* end confdefs.h. */
  6843. int
  6844. main (void)
  6845. {
  6846. int i;
  6847. ;
  6848. return 0;
  6849. }
  6850. _ACEOF
  6851. if ac_fn_c_try_link "$LINENO"
  6852. then :
  6853. tcl_cv_ld_single_module=yes
  6854. else case e in #(
  6855. e) tcl_cv_ld_single_module=no ;;
  6856. esac
  6857. fi
  6858. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6859. conftest$ac_exeext conftest.$ac_ext
  6860. LDFLAGS=$hold_ldflags ;;
  6861. esac
  6862. fi
  6863. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_single_module" >&5
  6864. printf "%s\n" "$tcl_cv_ld_single_module" >&6; }
  6865. if test $tcl_cv_ld_single_module = yes
  6866. then :
  6867. SHLIB_LD="${SHLIB_LD} -Wl,-single_module"
  6868. fi
  6869. # TEA specific: link shlib with current and compatibility version flags
  6870. vers=`echo ${PACKAGE_VERSION} | sed -e 's/^\([0-9]\{1,5\}\)\(\(\.[0-9]\{1,3\}\)\{0,2\}\).*$/\1\2/p' -e d`
  6871. SHLIB_LD="${SHLIB_LD} -current_version ${vers:-0} -compatibility_version ${vers:-0}"
  6872. SHLIB_SUFFIX=".dylib"
  6873. LDFLAGS="$LDFLAGS -headerpad_max_install_names"
  6874. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ld accepts -search_paths_first flag" >&5
  6875. printf %s "checking if ld accepts -search_paths_first flag... " >&6; }
  6876. if test ${tcl_cv_ld_search_paths_first+y}
  6877. then :
  6878. printf %s "(cached) " >&6
  6879. else case e in #(
  6880. e)
  6881. hold_ldflags=$LDFLAGS
  6882. LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
  6883. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6884. /* end confdefs.h. */
  6885. int
  6886. main (void)
  6887. {
  6888. int i;
  6889. ;
  6890. return 0;
  6891. }
  6892. _ACEOF
  6893. if ac_fn_c_try_link "$LINENO"
  6894. then :
  6895. tcl_cv_ld_search_paths_first=yes
  6896. else case e in #(
  6897. e) tcl_cv_ld_search_paths_first=no ;;
  6898. esac
  6899. fi
  6900. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6901. conftest$ac_exeext conftest.$ac_ext
  6902. LDFLAGS=$hold_ldflags ;;
  6903. esac
  6904. fi
  6905. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_search_paths_first" >&5
  6906. printf "%s\n" "$tcl_cv_ld_search_paths_first" >&6; }
  6907. if test $tcl_cv_ld_search_paths_first = yes
  6908. then :
  6909. LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
  6910. fi
  6911. if test "$tcl_cv_cc_visibility_hidden" != yes
  6912. then :
  6913. printf "%s\n" "#define MODULE_SCOPE __private_extern__" >>confdefs.h
  6914. tcl_cv_cc_visibility_hidden=yes
  6915. fi
  6916. CC_SEARCH_FLAGS=""
  6917. LD_SEARCH_FLAGS=""
  6918. LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH"
  6919. # TEA specific: for combined 32 & 64 bit fat builds of Tk
  6920. # extensions, verify that 64-bit build is possible.
  6921. if test "$fat_32_64" = yes && test -n "${TK_BIN_DIR}"
  6922. then :
  6923. if test "${TEA_WINDOWINGSYSTEM}" = x11
  6924. then :
  6925. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit X11" >&5
  6926. printf %s "checking for 64-bit X11... " >&6; }
  6927. if test ${tcl_cv_lib_x11_64+y}
  6928. then :
  6929. printf %s "(cached) " >&6
  6930. else case e in #(
  6931. e)
  6932. for v in CFLAGS CPPFLAGS LDFLAGS; do
  6933. eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"'
  6934. done
  6935. CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include"
  6936. LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11"
  6937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6938. /* end confdefs.h. */
  6939. #include <X11/Xlib.h>
  6940. int
  6941. main (void)
  6942. {
  6943. XrmInitialize();
  6944. ;
  6945. return 0;
  6946. }
  6947. _ACEOF
  6948. if ac_fn_c_try_link "$LINENO"
  6949. then :
  6950. tcl_cv_lib_x11_64=yes
  6951. else case e in #(
  6952. e) tcl_cv_lib_x11_64=no ;;
  6953. esac
  6954. fi
  6955. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6956. conftest$ac_exeext conftest.$ac_ext
  6957. for v in CFLAGS CPPFLAGS LDFLAGS; do
  6958. eval $v'="$hold_'$v'"'
  6959. done ;;
  6960. esac
  6961. fi
  6962. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_x11_64" >&5
  6963. printf "%s\n" "$tcl_cv_lib_x11_64" >&6; }
  6964. fi
  6965. if test "${TEA_WINDOWINGSYSTEM}" = aqua
  6966. then :
  6967. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit Tk" >&5
  6968. printf %s "checking for 64-bit Tk... " >&6; }
  6969. if test ${tcl_cv_lib_tk_64+y}
  6970. then :
  6971. printf %s "(cached) " >&6
  6972. else case e in #(
  6973. e)
  6974. for v in CFLAGS CPPFLAGS LDFLAGS; do
  6975. eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"'
  6976. done
  6977. CPPFLAGS="$CPPFLAGS -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 ${TCL_INCLUDES} ${TK_INCLUDES}"
  6978. LDFLAGS="$LDFLAGS ${TCL_STUB_LIB_SPEC} ${TK_STUB_LIB_SPEC}"
  6979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6980. /* end confdefs.h. */
  6981. #include <tk.h>
  6982. int
  6983. main (void)
  6984. {
  6985. Tk_InitStubs(NULL, "", 0);
  6986. ;
  6987. return 0;
  6988. }
  6989. _ACEOF
  6990. if ac_fn_c_try_link "$LINENO"
  6991. then :
  6992. tcl_cv_lib_tk_64=yes
  6993. else case e in #(
  6994. e) tcl_cv_lib_tk_64=no ;;
  6995. esac
  6996. fi
  6997. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6998. conftest$ac_exeext conftest.$ac_ext
  6999. for v in CFLAGS CPPFLAGS LDFLAGS; do
  7000. eval $v'="$hold_'$v'"'
  7001. done ;;
  7002. esac
  7003. fi
  7004. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_tk_64" >&5
  7005. printf "%s\n" "$tcl_cv_lib_tk_64" >&6; }
  7006. fi
  7007. # remove 64-bit arch flags from CFLAGS et al. if configuration
  7008. # does not support 64-bit.
  7009. if test "$tcl_cv_lib_tk_64" = no -o "$tcl_cv_lib_x11_64" = no
  7010. then :
  7011. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Removing 64-bit architectures from compiler & linker flags" >&5
  7012. printf "%s\n" "$as_me: Removing 64-bit architectures from compiler & linker flags" >&6;}
  7013. for v in CFLAGS CPPFLAGS LDFLAGS; do
  7014. eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"'
  7015. done
  7016. fi
  7017. fi
  7018. ;;
  7019. OS/390-*)
  7020. CFLAGS_OPTIMIZE="" # Optimizer is buggy
  7021. printf "%s\n" "#define _OE_SOCKETS 1" >>confdefs.h
  7022. ;;
  7023. OSF1-V*)
  7024. # Digital OSF/1
  7025. SHLIB_CFLAGS=""
  7026. if test "$SHARED_BUILD" = 1
  7027. then :
  7028. SHLIB_LD='ld -shared -expect_unresolved "*"'
  7029. else case e in #(
  7030. e)
  7031. SHLIB_LD='ld -non_shared -expect_unresolved "*"'
  7032. ;;
  7033. esac
  7034. fi
  7035. SHLIB_SUFFIX=".so"
  7036. if test $doRpath = yes
  7037. then :
  7038. CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
  7039. LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
  7040. fi
  7041. if test "$GCC" = yes
  7042. then :
  7043. CFLAGS="$CFLAGS -mieee"
  7044. else case e in #(
  7045. e)
  7046. CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" ;;
  7047. esac
  7048. fi
  7049. # see pthread_intro(3) for pthread support on osf1, k.furukawa
  7050. CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE"
  7051. CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64"
  7052. LIBS=`echo $LIBS | sed s/-lpthreads//`
  7053. if test "$GCC" = yes
  7054. then :
  7055. LIBS="$LIBS -lpthread -lmach -lexc"
  7056. else case e in #(
  7057. e)
  7058. CFLAGS="$CFLAGS -pthread"
  7059. LDFLAGS="$LDFLAGS -pthread"
  7060. ;;
  7061. esac
  7062. fi
  7063. ;;
  7064. QNX-6*)
  7065. # QNX RTP
  7066. # This may work for all QNX, but it was only reported for v6.
  7067. SHLIB_CFLAGS="-fPIC"
  7068. SHLIB_LD="ld -Bshareable -x"
  7069. SHLIB_LD_LIBS=""
  7070. SHLIB_SUFFIX=".so"
  7071. CC_SEARCH_FLAGS=""
  7072. LD_SEARCH_FLAGS=""
  7073. ;;
  7074. SCO_SV-3.2*)
  7075. if test "$GCC" = yes
  7076. then :
  7077. SHLIB_CFLAGS="-fPIC -melf"
  7078. LDFLAGS="$LDFLAGS -melf -Wl,-Bexport"
  7079. else case e in #(
  7080. e)
  7081. SHLIB_CFLAGS="-Kpic -belf"
  7082. LDFLAGS="$LDFLAGS -belf -Wl,-Bexport"
  7083. ;;
  7084. esac
  7085. fi
  7086. SHLIB_LD="ld -G"
  7087. SHLIB_LD_LIBS=""
  7088. SHLIB_SUFFIX=".so"
  7089. CC_SEARCH_FLAGS=""
  7090. LD_SEARCH_FLAGS=""
  7091. ;;
  7092. SunOS-5.[0-6])
  7093. # Careful to not let 5.10+ fall into this case
  7094. # Note: If _REENTRANT isn't defined, then Solaris
  7095. # won't define thread-safe library routines.
  7096. printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
  7097. printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  7098. SHLIB_CFLAGS="-KPIC"
  7099. SHLIB_SUFFIX=".so"
  7100. if test "$GCC" = yes
  7101. then :
  7102. SHLIB_LD='${CC} -shared'
  7103. CC_SEARCH_FLAGS='"-Wl,-R,${LIB_RUNTIME_DIR}"'
  7104. LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
  7105. else case e in #(
  7106. e)
  7107. SHLIB_LD="/usr/ccs/bin/ld -G -z text"
  7108. CC_SEARCH_FLAGS='-R "${LIB_RUNTIME_DIR}"'
  7109. LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
  7110. ;;
  7111. esac
  7112. fi
  7113. ;;
  7114. SunOS-5*)
  7115. # Note: If _REENTRANT isn't defined, then Solaris
  7116. # won't define thread-safe library routines.
  7117. printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
  7118. printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  7119. SHLIB_CFLAGS="-KPIC"
  7120. # Check to enable 64-bit flags for compiler/linker
  7121. if test "$do64bit" = yes
  7122. then :
  7123. arch=`isainfo`
  7124. if test "$arch" = "sparcv9 sparc"
  7125. then :
  7126. if test "$GCC" = yes
  7127. then :
  7128. if test "`${CC} -dumpversion | awk -F. '{print $1}'`" -lt 3
  7129. then :
  7130. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5
  7131. printf "%s\n" "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;}
  7132. else case e in #(
  7133. e)
  7134. do64bit_ok=yes
  7135. CFLAGS="$CFLAGS -m64 -mcpu=v9"
  7136. LDFLAGS="$LDFLAGS -m64 -mcpu=v9"
  7137. SHLIB_CFLAGS="-fPIC"
  7138. ;;
  7139. esac
  7140. fi
  7141. else case e in #(
  7142. e)
  7143. do64bit_ok=yes
  7144. if test "$do64bitVIS" = yes
  7145. then :
  7146. CFLAGS="$CFLAGS -xarch=v9a"
  7147. LDFLAGS_ARCH="-xarch=v9a"
  7148. else case e in #(
  7149. e)
  7150. CFLAGS="$CFLAGS -xarch=v9"
  7151. LDFLAGS_ARCH="-xarch=v9"
  7152. ;;
  7153. esac
  7154. fi
  7155. # Solaris 64 uses this as well
  7156. #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64"
  7157. ;;
  7158. esac
  7159. fi
  7160. else case e in #(
  7161. e) if test "$arch" = "amd64 i386"
  7162. then :
  7163. if test "$GCC" = yes
  7164. then :
  7165. case $system in
  7166. SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*)
  7167. do64bit_ok=yes
  7168. CFLAGS="$CFLAGS -m64"
  7169. LDFLAGS="$LDFLAGS -m64";;
  7170. *)
  7171. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
  7172. printf "%s\n" "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;};;
  7173. esac
  7174. else case e in #(
  7175. e)
  7176. do64bit_ok=yes
  7177. case $system in
  7178. SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*)
  7179. CFLAGS="$CFLAGS -m64"
  7180. LDFLAGS="$LDFLAGS -m64";;
  7181. *)
  7182. CFLAGS="$CFLAGS -xarch=amd64"
  7183. LDFLAGS="$LDFLAGS -xarch=amd64";;
  7184. esac
  7185. ;;
  7186. esac
  7187. fi
  7188. else case e in #(
  7189. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported for $arch" >&5
  7190. printf "%s\n" "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} ;;
  7191. esac
  7192. fi ;;
  7193. esac
  7194. fi
  7195. fi
  7196. SHLIB_SUFFIX=".so"
  7197. if test "$GCC" = yes
  7198. then :
  7199. SHLIB_LD='${CC} -shared'
  7200. CC_SEARCH_FLAGS='"-Wl,-R,${LIB_RUNTIME_DIR}"'
  7201. LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
  7202. if test "$do64bit_ok" = yes
  7203. then :
  7204. if test "$arch" = "sparcv9 sparc"
  7205. then :
  7206. # We need to specify -static-libgcc or we need to
  7207. # add the path to the sparv9 libgcc.
  7208. # JH: static-libgcc is necessary for core Tcl, but may
  7209. # not be necessary for extensions.
  7210. SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc"
  7211. # for finding sparcv9 libgcc, get the regular libgcc
  7212. # path, remove so name and append 'sparcv9'
  7213. #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..."
  7214. #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir"
  7215. else case e in #(
  7216. e) if test "$arch" = "amd64 i386"
  7217. then :
  7218. # JH: static-libgcc is necessary for core Tcl, but may
  7219. # not be necessary for extensions.
  7220. SHLIB_LD="$SHLIB_LD -m64 -static-libgcc"
  7221. fi ;;
  7222. esac
  7223. fi
  7224. fi
  7225. else case e in #(
  7226. e)
  7227. case $system in
  7228. SunOS-5.[1-9][0-9]*)
  7229. # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
  7230. SHLIB_LD='${CC} -G -z text ${LDFLAGS_DEFAULT}';;
  7231. *)
  7232. SHLIB_LD='/usr/ccs/bin/ld -G -z text';;
  7233. esac
  7234. CC_SEARCH_FLAGS='"-Wl,-R,${LIB_RUNTIME_DIR}"'
  7235. LD_SEARCH_FLAGS='-R "${LIB_RUNTIME_DIR}"'
  7236. ;;
  7237. esac
  7238. fi
  7239. ;;
  7240. UNIX_SV* | UnixWare-5*)
  7241. SHLIB_CFLAGS="-KPIC"
  7242. SHLIB_LD='${CC} -G'
  7243. SHLIB_LD_LIBS=""
  7244. SHLIB_SUFFIX=".so"
  7245. # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers
  7246. # that don't grok the -Bexport option. Test that it does.
  7247. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld accepts -Bexport flag" >&5
  7248. printf %s "checking for ld accepts -Bexport flag... " >&6; }
  7249. if test ${tcl_cv_ld_Bexport+y}
  7250. then :
  7251. printf %s "(cached) " >&6
  7252. else case e in #(
  7253. e)
  7254. hold_ldflags=$LDFLAGS
  7255. LDFLAGS="$LDFLAGS -Wl,-Bexport"
  7256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7257. /* end confdefs.h. */
  7258. int
  7259. main (void)
  7260. {
  7261. int i;
  7262. ;
  7263. return 0;
  7264. }
  7265. _ACEOF
  7266. if ac_fn_c_try_link "$LINENO"
  7267. then :
  7268. tcl_cv_ld_Bexport=yes
  7269. else case e in #(
  7270. e) tcl_cv_ld_Bexport=no ;;
  7271. esac
  7272. fi
  7273. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7274. conftest$ac_exeext conftest.$ac_ext
  7275. LDFLAGS=$hold_ldflags ;;
  7276. esac
  7277. fi
  7278. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_Bexport" >&5
  7279. printf "%s\n" "$tcl_cv_ld_Bexport" >&6; }
  7280. if test $tcl_cv_ld_Bexport = yes
  7281. then :
  7282. LDFLAGS="$LDFLAGS -Wl,-Bexport"
  7283. fi
  7284. CC_SEARCH_FLAGS=""
  7285. LD_SEARCH_FLAGS=""
  7286. ;;
  7287. esac
  7288. if test "$do64bit" = yes -a "$do64bit_ok" = no
  7289. then :
  7290. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5
  7291. printf "%s\n" "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;}
  7292. fi
  7293. # Add in the arch flags late to ensure it wasn't removed.
  7294. # Not necessary in TEA, but this is aligned with core
  7295. LDFLAGS="$LDFLAGS $LDFLAGS_ARCH"
  7296. # If we're running gcc, then change the C flags for compiling shared
  7297. # libraries to the right flags for gcc, instead of those for the
  7298. # standard manufacturer compiler.
  7299. if test "$GCC" = yes
  7300. then :
  7301. case $system in
  7302. AIX-*) ;;
  7303. BSD/OS*) ;;
  7304. CYGWIN_*|MINGW32_*|MINGW64_*|MSYS_*) ;;
  7305. IRIX*) ;;
  7306. NetBSD-*|DragonFly-*|FreeBSD-*|OpenBSD-*) ;;
  7307. Darwin-*) ;;
  7308. SCO_SV-3.2*) ;;
  7309. windows) ;;
  7310. *) SHLIB_CFLAGS="-fPIC" ;;
  7311. esac
  7312. fi
  7313. if test "$tcl_cv_cc_visibility_hidden" != yes
  7314. then :
  7315. printf "%s\n" "#define MODULE_SCOPE extern" >>confdefs.h
  7316. fi
  7317. if test "$SHARED_LIB_SUFFIX" = ""
  7318. then :
  7319. # TEA specific: use PACKAGE_VERSION instead of VERSION
  7320. SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}'
  7321. fi
  7322. if test "$UNSHARED_LIB_SUFFIX" = ""
  7323. then :
  7324. # TEA specific: use PACKAGE_VERSION instead of VERSION
  7325. UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a'
  7326. fi
  7327. if test "${GCC}" = "yes" -a ${SHLIB_SUFFIX} = ".dll"; then
  7328. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SEH support in compiler" >&5
  7329. printf %s "checking for SEH support in compiler... " >&6; }
  7330. if test ${tcl_cv_seh+y}
  7331. then :
  7332. printf %s "(cached) " >&6
  7333. else case e in #(
  7334. e) if test "$cross_compiling" = yes
  7335. then :
  7336. tcl_cv_seh=no
  7337. else case e in #(
  7338. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7339. /* end confdefs.h. */
  7340. #define WIN32_LEAN_AND_MEAN
  7341. #include <windows.h>
  7342. #undef WIN32_LEAN_AND_MEAN
  7343. int main(int argc, char** argv) {
  7344. int a, b = 0;
  7345. __try {
  7346. a = 666 / b;
  7347. }
  7348. __except (EXCEPTION_EXECUTE_HANDLER) {
  7349. return 0;
  7350. }
  7351. return 1;
  7352. }
  7353. _ACEOF
  7354. if ac_fn_c_try_run "$LINENO"
  7355. then :
  7356. tcl_cv_seh=yes
  7357. else case e in #(
  7358. e) tcl_cv_seh=no ;;
  7359. esac
  7360. fi
  7361. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7362. conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  7363. esac
  7364. fi
  7365. ;;
  7366. esac
  7367. fi
  7368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_seh" >&5
  7369. printf "%s\n" "$tcl_cv_seh" >&6; }
  7370. if test "$tcl_cv_seh" = "no" ; then
  7371. printf "%s\n" "#define HAVE_NO_SEH 1" >>confdefs.h
  7372. fi
  7373. #
  7374. # Check to see if the excpt.h include file provided contains the
  7375. # definition for EXCEPTION_DISPOSITION; if not, which is the case
  7376. # with Cygwin's version as of 2002-04-10, define it to be int,
  7377. # sufficient for getting the current code to work.
  7378. #
  7379. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EXCEPTION_DISPOSITION support in include files" >&5
  7380. printf %s "checking for EXCEPTION_DISPOSITION support in include files... " >&6; }
  7381. if test ${tcl_cv_eh_disposition+y}
  7382. then :
  7383. printf %s "(cached) " >&6
  7384. else case e in #(
  7385. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7386. /* end confdefs.h. */
  7387. # define WIN32_LEAN_AND_MEAN
  7388. # include <windows.h>
  7389. # undef WIN32_LEAN_AND_MEAN
  7390. int
  7391. main (void)
  7392. {
  7393. EXCEPTION_DISPOSITION x;
  7394. ;
  7395. return 0;
  7396. }
  7397. _ACEOF
  7398. if ac_fn_c_try_compile "$LINENO"
  7399. then :
  7400. tcl_cv_eh_disposition=yes
  7401. else case e in #(
  7402. e) tcl_cv_eh_disposition=no ;;
  7403. esac
  7404. fi
  7405. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  7406. ;;
  7407. esac
  7408. fi
  7409. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_eh_disposition" >&5
  7410. printf "%s\n" "$tcl_cv_eh_disposition" >&6; }
  7411. if test "$tcl_cv_eh_disposition" = "no" ; then
  7412. printf "%s\n" "#define EXCEPTION_DISPOSITION int" >>confdefs.h
  7413. fi
  7414. # Check to see if winnt.h defines CHAR, SHORT, and LONG
  7415. # even if VOID has already been #defined. The win32api
  7416. # used by mingw and cygwin is known to do this.
  7417. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winnt.h that ignores VOID define" >&5
  7418. printf %s "checking for winnt.h that ignores VOID define... " >&6; }
  7419. if test ${tcl_cv_winnt_ignore_void+y}
  7420. then :
  7421. printf %s "(cached) " >&6
  7422. else case e in #(
  7423. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7424. /* end confdefs.h. */
  7425. #define VOID void
  7426. #define WIN32_LEAN_AND_MEAN
  7427. #include <windows.h>
  7428. #undef WIN32_LEAN_AND_MEAN
  7429. int
  7430. main (void)
  7431. {
  7432. CHAR c;
  7433. SHORT s;
  7434. LONG l;
  7435. ;
  7436. return 0;
  7437. }
  7438. _ACEOF
  7439. if ac_fn_c_try_compile "$LINENO"
  7440. then :
  7441. tcl_cv_winnt_ignore_void=yes
  7442. else case e in #(
  7443. e) tcl_cv_winnt_ignore_void=no ;;
  7444. esac
  7445. fi
  7446. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  7447. ;;
  7448. esac
  7449. fi
  7450. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_winnt_ignore_void" >&5
  7451. printf "%s\n" "$tcl_cv_winnt_ignore_void" >&6; }
  7452. if test "$tcl_cv_winnt_ignore_void" = "yes" ; then
  7453. printf "%s\n" "#define HAVE_WINNT_IGNORE_VOID 1" >>confdefs.h
  7454. fi
  7455. fi
  7456. # See if the compiler supports casting to a union type.
  7457. # This is used to stop gcc from printing a compiler
  7458. # warning when initializing a union member.
  7459. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cast to union support" >&5
  7460. printf %s "checking for cast to union support... " >&6; }
  7461. if test ${tcl_cv_cast_to_union+y}
  7462. then :
  7463. printf %s "(cached) " >&6
  7464. else case e in #(
  7465. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7466. /* end confdefs.h. */
  7467. int
  7468. main (void)
  7469. {
  7470. union foo { int i; double d; };
  7471. union foo f = (union foo) (int) 0;
  7472. ;
  7473. return 0;
  7474. }
  7475. _ACEOF
  7476. if ac_fn_c_try_compile "$LINENO"
  7477. then :
  7478. tcl_cv_cast_to_union=yes
  7479. else case e in #(
  7480. e) tcl_cv_cast_to_union=no ;;
  7481. esac
  7482. fi
  7483. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  7484. ;;
  7485. esac
  7486. fi
  7487. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cast_to_union" >&5
  7488. printf "%s\n" "$tcl_cv_cast_to_union" >&6; }
  7489. if test "$tcl_cv_cast_to_union" = "yes"; then
  7490. printf "%s\n" "#define HAVE_CAST_TO_UNION 1" >>confdefs.h
  7491. fi
  7492. ac_fn_c_check_header_compile "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default"
  7493. if test "x$ac_cv_header_stdbool_h" = xyes
  7494. then :
  7495. printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
  7496. fi
  7497. # These must be called after we do the basic CFLAGS checks and
  7498. # verify any possible 64-bit or similar switches are necessary
  7499. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for required early compiler flags" >&5
  7500. printf %s "checking for required early compiler flags... " >&6; }
  7501. tcl_flags=""
  7502. if test ${tcl_cv_flag__isoc99_source+y}
  7503. then :
  7504. printf %s "(cached) " >&6
  7505. else case e in #(
  7506. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7507. /* end confdefs.h. */
  7508. #include <stdlib.h>
  7509. int
  7510. main (void)
  7511. {
  7512. char *p = (char *)strtoll; char *q = (char *)strtoull;
  7513. ;
  7514. return 0;
  7515. }
  7516. _ACEOF
  7517. if ac_fn_c_try_compile "$LINENO"
  7518. then :
  7519. tcl_cv_flag__isoc99_source=no
  7520. else case e in #(
  7521. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7522. /* end confdefs.h. */
  7523. #define _ISOC99_SOURCE 1
  7524. #include <stdlib.h>
  7525. int
  7526. main (void)
  7527. {
  7528. char *p = (char *)strtoll; char *q = (char *)strtoull;
  7529. ;
  7530. return 0;
  7531. }
  7532. _ACEOF
  7533. if ac_fn_c_try_compile "$LINENO"
  7534. then :
  7535. tcl_cv_flag__isoc99_source=yes
  7536. else case e in #(
  7537. e) tcl_cv_flag__isoc99_source=no ;;
  7538. esac
  7539. fi
  7540. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  7541. esac
  7542. fi
  7543. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  7544. esac
  7545. fi
  7546. if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then
  7547. printf "%s\n" "#define _ISOC99_SOURCE 1" >>confdefs.h
  7548. tcl_flags="$tcl_flags _ISOC99_SOURCE"
  7549. fi
  7550. if test ${tcl_cv_flag__largefile64_source+y}
  7551. then :
  7552. printf %s "(cached) " >&6
  7553. else case e in #(
  7554. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7555. /* end confdefs.h. */
  7556. #include <sys/stat.h>
  7557. int
  7558. main (void)
  7559. {
  7560. struct stat64 buf; int i = stat64("/", &buf);
  7561. ;
  7562. return 0;
  7563. }
  7564. _ACEOF
  7565. if ac_fn_c_try_compile "$LINENO"
  7566. then :
  7567. tcl_cv_flag__largefile64_source=no
  7568. else case e in #(
  7569. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7570. /* end confdefs.h. */
  7571. #define _LARGEFILE64_SOURCE 1
  7572. #include <sys/stat.h>
  7573. int
  7574. main (void)
  7575. {
  7576. struct stat64 buf; int i = stat64("/", &buf);
  7577. ;
  7578. return 0;
  7579. }
  7580. _ACEOF
  7581. if ac_fn_c_try_compile "$LINENO"
  7582. then :
  7583. tcl_cv_flag__largefile64_source=yes
  7584. else case e in #(
  7585. e) tcl_cv_flag__largefile64_source=no ;;
  7586. esac
  7587. fi
  7588. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  7589. esac
  7590. fi
  7591. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  7592. esac
  7593. fi
  7594. if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then
  7595. printf "%s\n" "#define _LARGEFILE64_SOURCE 1" >>confdefs.h
  7596. tcl_flags="$tcl_flags _LARGEFILE64_SOURCE"
  7597. fi
  7598. if test ${tcl_cv_flag__largefile_source64+y}
  7599. then :
  7600. printf %s "(cached) " >&6
  7601. else case e in #(
  7602. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7603. /* end confdefs.h. */
  7604. #include <sys/stat.h>
  7605. int
  7606. main (void)
  7607. {
  7608. char *p = (char *)open64;
  7609. ;
  7610. return 0;
  7611. }
  7612. _ACEOF
  7613. if ac_fn_c_try_compile "$LINENO"
  7614. then :
  7615. tcl_cv_flag__largefile_source64=no
  7616. else case e in #(
  7617. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7618. /* end confdefs.h. */
  7619. #define _LARGEFILE_SOURCE64 1
  7620. #include <sys/stat.h>
  7621. int
  7622. main (void)
  7623. {
  7624. char *p = (char *)open64;
  7625. ;
  7626. return 0;
  7627. }
  7628. _ACEOF
  7629. if ac_fn_c_try_compile "$LINENO"
  7630. then :
  7631. tcl_cv_flag__largefile_source64=yes
  7632. else case e in #(
  7633. e) tcl_cv_flag__largefile_source64=no ;;
  7634. esac
  7635. fi
  7636. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  7637. esac
  7638. fi
  7639. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  7640. esac
  7641. fi
  7642. if test "x${tcl_cv_flag__largefile_source64}" = "xyes" ; then
  7643. printf "%s\n" "#define _LARGEFILE_SOURCE64 1" >>confdefs.h
  7644. tcl_flags="$tcl_flags _LARGEFILE_SOURCE64"
  7645. fi
  7646. if test "x${tcl_flags}" = "x" ; then
  7647. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
  7648. printf "%s\n" "none" >&6; }
  7649. else
  7650. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${tcl_flags}" >&5
  7651. printf "%s\n" "${tcl_flags}" >&6; }
  7652. fi
  7653. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit integer type" >&5
  7654. printf %s "checking for 64-bit integer type... " >&6; }
  7655. if test ${tcl_cv_type_64bit+y}
  7656. then :
  7657. printf %s "(cached) " >&6
  7658. else case e in #(
  7659. e)
  7660. tcl_cv_type_64bit=none
  7661. # See if the compiler knows natively about __int64
  7662. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7663. /* end confdefs.h. */
  7664. int
  7665. main (void)
  7666. {
  7667. __int64 value = (__int64) 0;
  7668. ;
  7669. return 0;
  7670. }
  7671. _ACEOF
  7672. if ac_fn_c_try_compile "$LINENO"
  7673. then :
  7674. tcl_type_64bit=__int64
  7675. else case e in #(
  7676. e) tcl_type_64bit="long long" ;;
  7677. esac
  7678. fi
  7679. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  7680. # See if we could use long anyway Note that we substitute in the
  7681. # type that is our current guess for a 64-bit type inside this check
  7682. # program, so it should be modified only carefully...
  7683. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7684. /* end confdefs.h. */
  7685. int
  7686. main (void)
  7687. {
  7688. switch (0) {
  7689. case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ;
  7690. }
  7691. ;
  7692. return 0;
  7693. }
  7694. _ACEOF
  7695. if ac_fn_c_try_compile "$LINENO"
  7696. then :
  7697. tcl_cv_type_64bit=${tcl_type_64bit}
  7698. fi
  7699. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  7700. esac
  7701. fi
  7702. if test "${tcl_cv_type_64bit}" = none ; then
  7703. printf "%s\n" "#define TCL_WIDE_INT_IS_LONG 1" >>confdefs.h
  7704. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7705. printf "%s\n" "yes" >&6; }
  7706. elif test "${tcl_cv_type_64bit}" = "__int64" \
  7707. -a "${TEA_PLATFORM}" = "windows" ; then
  7708. # TEA specific: We actually want to use the default tcl.h checks in
  7709. # this case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER*
  7710. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using Tcl header defaults" >&5
  7711. printf "%s\n" "using Tcl header defaults" >&6; }
  7712. else
  7713. printf "%s\n" "#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit}" >>confdefs.h
  7714. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${tcl_cv_type_64bit}" >&5
  7715. printf "%s\n" "${tcl_cv_type_64bit}" >&6; }
  7716. # Now check for auxiliary declarations
  7717. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct dirent64" >&5
  7718. printf %s "checking for struct dirent64... " >&6; }
  7719. if test ${tcl_cv_struct_dirent64+y}
  7720. then :
  7721. printf %s "(cached) " >&6
  7722. else case e in #(
  7723. e)
  7724. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7725. /* end confdefs.h. */
  7726. #include <sys/types.h>
  7727. #include <dirent.h>
  7728. int
  7729. main (void)
  7730. {
  7731. struct dirent64 p;
  7732. ;
  7733. return 0;
  7734. }
  7735. _ACEOF
  7736. if ac_fn_c_try_compile "$LINENO"
  7737. then :
  7738. tcl_cv_struct_dirent64=yes
  7739. else case e in #(
  7740. e) tcl_cv_struct_dirent64=no ;;
  7741. esac
  7742. fi
  7743. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  7744. esac
  7745. fi
  7746. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_struct_dirent64" >&5
  7747. printf "%s\n" "$tcl_cv_struct_dirent64" >&6; }
  7748. if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then
  7749. printf "%s\n" "#define HAVE_STRUCT_DIRENT64 1" >>confdefs.h
  7750. fi
  7751. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DIR64" >&5
  7752. printf %s "checking for DIR64... " >&6; }
  7753. if test ${tcl_cv_DIR64+y}
  7754. then :
  7755. printf %s "(cached) " >&6
  7756. else case e in #(
  7757. e)
  7758. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7759. /* end confdefs.h. */
  7760. #include <sys/types.h>
  7761. #include <dirent.h>
  7762. int
  7763. main (void)
  7764. {
  7765. struct dirent64 *p; DIR64 d = opendir64(".");
  7766. p = readdir64(d); rewinddir64(d); closedir64(d);
  7767. ;
  7768. return 0;
  7769. }
  7770. _ACEOF
  7771. if ac_fn_c_try_compile "$LINENO"
  7772. then :
  7773. tcl_cv_DIR64=yes
  7774. else case e in #(
  7775. e) tcl_cv_DIR64=no ;;
  7776. esac
  7777. fi
  7778. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  7779. esac
  7780. fi
  7781. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_DIR64" >&5
  7782. printf "%s\n" "$tcl_cv_DIR64" >&6; }
  7783. if test "x${tcl_cv_DIR64}" = "xyes" ; then
  7784. printf "%s\n" "#define HAVE_DIR64 1" >>confdefs.h
  7785. fi
  7786. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct stat64" >&5
  7787. printf %s "checking for struct stat64... " >&6; }
  7788. if test ${tcl_cv_struct_stat64+y}
  7789. then :
  7790. printf %s "(cached) " >&6
  7791. else case e in #(
  7792. e)
  7793. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7794. /* end confdefs.h. */
  7795. #include <sys/stat.h>
  7796. int
  7797. main (void)
  7798. {
  7799. struct stat64 p;
  7800. ;
  7801. return 0;
  7802. }
  7803. _ACEOF
  7804. if ac_fn_c_try_compile "$LINENO"
  7805. then :
  7806. tcl_cv_struct_stat64=yes
  7807. else case e in #(
  7808. e) tcl_cv_struct_stat64=no ;;
  7809. esac
  7810. fi
  7811. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  7812. esac
  7813. fi
  7814. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_struct_stat64" >&5
  7815. printf "%s\n" "$tcl_cv_struct_stat64" >&6; }
  7816. if test "x${tcl_cv_struct_stat64}" = "xyes" ; then
  7817. printf "%s\n" "#define HAVE_STRUCT_STAT64 1" >>confdefs.h
  7818. fi
  7819. ac_fn_c_check_func "$LINENO" "open64" "ac_cv_func_open64"
  7820. if test "x$ac_cv_func_open64" = xyes
  7821. then :
  7822. printf "%s\n" "#define HAVE_OPEN64 1" >>confdefs.h
  7823. fi
  7824. ac_fn_c_check_func "$LINENO" "lseek64" "ac_cv_func_lseek64"
  7825. if test "x$ac_cv_func_lseek64" = xyes
  7826. then :
  7827. printf "%s\n" "#define HAVE_LSEEK64 1" >>confdefs.h
  7828. fi
  7829. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for off64_t" >&5
  7830. printf %s "checking for off64_t... " >&6; }
  7831. if test ${tcl_cv_type_off64_t+y}
  7832. then :
  7833. printf %s "(cached) " >&6
  7834. else case e in #(
  7835. e)
  7836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7837. /* end confdefs.h. */
  7838. #include <sys/types.h>
  7839. int
  7840. main (void)
  7841. {
  7842. off64_t offset;
  7843. ;
  7844. return 0;
  7845. }
  7846. _ACEOF
  7847. if ac_fn_c_try_compile "$LINENO"
  7848. then :
  7849. tcl_cv_type_off64_t=yes
  7850. else case e in #(
  7851. e) tcl_cv_type_off64_t=no ;;
  7852. esac
  7853. fi
  7854. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  7855. esac
  7856. fi
  7857. if test "x${tcl_cv_type_off64_t}" = "xyes" && \
  7858. test "x${ac_cv_func_lseek64}" = "xyes" && \
  7859. test "x${ac_cv_func_open64}" = "xyes" ; then
  7860. printf "%s\n" "#define HAVE_TYPE_OFF64_T 1" >>confdefs.h
  7861. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7862. printf "%s\n" "yes" >&6; }
  7863. else
  7864. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7865. printf "%s\n" "no" >&6; }
  7866. fi
  7867. fi
  7868. #--------------------------------------------------------------------
  7869. # Set the default compiler switches based on the --enable-symbols option.
  7870. #--------------------------------------------------------------------
  7871. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for build with symbols" >&5
  7872. printf %s "checking for build with symbols... " >&6; }
  7873. # Check whether --enable-symbols was given.
  7874. if test ${enable_symbols+y}
  7875. then :
  7876. enableval=$enable_symbols; tcl_ok=$enableval
  7877. else case e in #(
  7878. e) tcl_ok=no ;;
  7879. esac
  7880. fi
  7881. if test "$tcl_ok" = "no"; then
  7882. CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE} -DNDEBUG"
  7883. LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}"
  7884. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7885. printf "%s\n" "no" >&6; }
  7886. printf "%s\n" "#define TCL_CFG_OPTIMIZED 1" >>confdefs.h
  7887. else
  7888. CFLAGS_DEFAULT="${CFLAGS_DEBUG}"
  7889. LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}"
  7890. if test "$tcl_ok" = "yes"; then
  7891. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (standard debugging)" >&5
  7892. printf "%s\n" "yes (standard debugging)" >&6; }
  7893. fi
  7894. fi
  7895. if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then
  7896. printf "%s\n" "#define TCL_MEM_DEBUG 1" >>confdefs.h
  7897. fi
  7898. if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then
  7899. if test "$tcl_ok" = "all"; then
  7900. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: enabled symbols mem debugging" >&5
  7901. printf "%s\n" "enabled symbols mem debugging" >&6; }
  7902. else
  7903. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: enabled $tcl_ok debugging" >&5
  7904. printf "%s\n" "enabled $tcl_ok debugging" >&6; }
  7905. fi
  7906. fi
  7907. #--------------------------------------------------------------------
  7908. # This macro generates a line to use when building a library. It
  7909. # depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS,
  7910. # and TEA_LOAD_TCLCONFIG macros above.
  7911. #--------------------------------------------------------------------
  7912. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
  7913. printf %s "checking for egrep -e... " >&6; }
  7914. if test ${ac_cv_path_EGREP_TRADITIONAL+y}
  7915. then :
  7916. printf %s "(cached) " >&6
  7917. else case e in #(
  7918. e) if test -z "$EGREP_TRADITIONAL"; then
  7919. ac_path_EGREP_TRADITIONAL_found=false
  7920. # Loop through the user's path and test for each of PROGNAME-LIST
  7921. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7922. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  7923. do
  7924. IFS=$as_save_IFS
  7925. case $as_dir in #(((
  7926. '') as_dir=./ ;;
  7927. */) ;;
  7928. *) as_dir=$as_dir/ ;;
  7929. esac
  7930. for ac_prog in grep ggrep
  7931. do
  7932. for ac_exec_ext in '' $ac_executable_extensions; do
  7933. ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
  7934. as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
  7935. # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
  7936. # Check for GNU $ac_path_EGREP_TRADITIONAL
  7937. case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
  7938. *GNU*)
  7939. ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
  7940. #(
  7941. *)
  7942. ac_count=0
  7943. printf %s 0123456789 >"conftest.in"
  7944. while :
  7945. do
  7946. cat "conftest.in" "conftest.in" >"conftest.tmp"
  7947. mv "conftest.tmp" "conftest.in"
  7948. cp "conftest.in" "conftest.nl"
  7949. printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
  7950. "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  7951. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  7952. as_fn_arith $ac_count + 1 && ac_count=$as_val
  7953. if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
  7954. # Best one so far, save it but keep looking for a better one
  7955. ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
  7956. ac_path_EGREP_TRADITIONAL_max=$ac_count
  7957. fi
  7958. # 10*(2^10) chars as input seems more than enough
  7959. test $ac_count -gt 10 && break
  7960. done
  7961. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  7962. esac
  7963. $ac_path_EGREP_TRADITIONAL_found && break 3
  7964. done
  7965. done
  7966. done
  7967. IFS=$as_save_IFS
  7968. if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
  7969. :
  7970. fi
  7971. else
  7972. ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
  7973. fi
  7974. if test "$ac_cv_path_EGREP_TRADITIONAL"
  7975. then :
  7976. ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
  7977. else case e in #(
  7978. e) if test -z "$EGREP_TRADITIONAL"; then
  7979. ac_path_EGREP_TRADITIONAL_found=false
  7980. # Loop through the user's path and test for each of PROGNAME-LIST
  7981. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7982. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  7983. do
  7984. IFS=$as_save_IFS
  7985. case $as_dir in #(((
  7986. '') as_dir=./ ;;
  7987. */) ;;
  7988. *) as_dir=$as_dir/ ;;
  7989. esac
  7990. for ac_prog in egrep
  7991. do
  7992. for ac_exec_ext in '' $ac_executable_extensions; do
  7993. ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
  7994. as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
  7995. # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
  7996. # Check for GNU $ac_path_EGREP_TRADITIONAL
  7997. case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
  7998. *GNU*)
  7999. ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
  8000. #(
  8001. *)
  8002. ac_count=0
  8003. printf %s 0123456789 >"conftest.in"
  8004. while :
  8005. do
  8006. cat "conftest.in" "conftest.in" >"conftest.tmp"
  8007. mv "conftest.tmp" "conftest.in"
  8008. cp "conftest.in" "conftest.nl"
  8009. printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
  8010. "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  8011. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  8012. as_fn_arith $ac_count + 1 && ac_count=$as_val
  8013. if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
  8014. # Best one so far, save it but keep looking for a better one
  8015. ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
  8016. ac_path_EGREP_TRADITIONAL_max=$ac_count
  8017. fi
  8018. # 10*(2^10) chars as input seems more than enough
  8019. test $ac_count -gt 10 && break
  8020. done
  8021. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  8022. esac
  8023. $ac_path_EGREP_TRADITIONAL_found && break 3
  8024. done
  8025. done
  8026. done
  8027. IFS=$as_save_IFS
  8028. if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
  8029. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  8030. fi
  8031. else
  8032. ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
  8033. fi
  8034. ;;
  8035. esac
  8036. fi ;;
  8037. esac
  8038. fi
  8039. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
  8040. printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
  8041. EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
  8042. if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then
  8043. MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(PKG_OBJECTS)"
  8044. MAKE_SHARED_LIB="\${SHLIB_LD} \${LDFLAGS} \${LDFLAGS_DEFAULT} -out:\$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}"
  8045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8046. /* end confdefs.h. */
  8047. #if defined(_MSC_VER) && _MSC_VER >= 1400
  8048. print("manifest needed")
  8049. #endif
  8050. _ACEOF
  8051. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8052. $EGREP_TRADITIONAL "manifest needed" >/dev/null 2>&1
  8053. then :
  8054. # Could do a CHECK_PROG for mt, but should always be with MSVC8+
  8055. VC_MANIFEST_EMBED_DLL="if test -f \$@.manifest ; then mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;2 ; fi"
  8056. VC_MANIFEST_EMBED_EXE="if test -f \$@.manifest ; then mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;1 ; fi"
  8057. MAKE_SHARED_LIB="${MAKE_SHARED_LIB} ; ${VC_MANIFEST_EMBED_DLL}"
  8058. CLEANFILES="$CLEANFILES *.manifest"
  8059. fi
  8060. rm -rf conftest*
  8061. MAKE_STUB_LIB="\${STLIB_LD} -nodefaultlib -out:\$@ \$(PKG_STUB_OBJECTS)"
  8062. else
  8063. MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(PKG_OBJECTS)"
  8064. MAKE_SHARED_LIB="\${SHLIB_LD} \${LDFLAGS} \${LDFLAGS_DEFAULT} -o \$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}"
  8065. MAKE_STUB_LIB="\${STLIB_LD} \$@ \$(PKG_STUB_OBJECTS)"
  8066. fi
  8067. if test "${SHARED_BUILD}" = "1" ; then
  8068. MAKE_LIB="${MAKE_SHARED_LIB} "
  8069. else
  8070. MAKE_LIB="${MAKE_STATIC_LIB} "
  8071. fi
  8072. #--------------------------------------------------------------------
  8073. # Shared libraries and static libraries have different names.
  8074. # Use the double eval to make sure any variables in the suffix is
  8075. # substituted. (@@@ Might not be necessary anymore)
  8076. #--------------------------------------------------------------------
  8077. PACKAGE_LIB_PREFIX8="${PACKAGE_LIB_PREFIX}"
  8078. PACKAGE_LIB_PREFIX9="${PACKAGE_LIB_PREFIX}tcl9"
  8079. if test "${TCL_MAJOR_VERSION}" -gt 8 -a x"${with_tcl8}" == x; then
  8080. PACKAGE_LIB_PREFIX="${PACKAGE_LIB_PREFIX9}"
  8081. else
  8082. PACKAGE_LIB_PREFIX="${PACKAGE_LIB_PREFIX8}"
  8083. printf "%s\n" "#define TCL_MAJOR_VERSION 8" >>confdefs.h
  8084. fi
  8085. if test "${TEA_PLATFORM}" = "windows" ; then
  8086. if test "${SHARED_BUILD}" = "1" ; then
  8087. # We force the unresolved linking of symbols that are really in
  8088. # the private libraries of Tcl and Tk.
  8089. if test x"${TK_BIN_DIR}" != x ; then
  8090. SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\""
  8091. fi
  8092. SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\""
  8093. if test "$GCC" = "yes"; then
  8094. SHLIB_LD_LIBS="${SHLIB_LD_LIBS} -static-libgcc"
  8095. fi
  8096. eval eval "PKG_LIB_FILE8=${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
  8097. eval eval "PKG_LIB_FILE9=${PACKAGE_LIB_PREFIX9}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
  8098. eval eval "PKG_LIB_FILE=${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
  8099. else
  8100. if test "$GCC" = "yes"; then
  8101. PACKAGE_LIB_PREFIX=lib${PACKAGE_LIB_PREFIX}
  8102. fi
  8103. eval eval "PKG_LIB_FILE8=${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
  8104. eval eval "PKG_LIB_FILE9=${PACKAGE_LIB_PREFIX9}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
  8105. eval eval "PKG_LIB_FILE=${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
  8106. fi
  8107. # Some packages build their own stubs libraries
  8108. eval eval "PKG_STUB_LIB_FILE=${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}"
  8109. if test "$GCC" = "yes"; then
  8110. PKG_STUB_LIB_FILE=lib${PKG_STUB_LIB_FILE}
  8111. fi
  8112. # These aren't needed on Windows (either MSVC or gcc)
  8113. RANLIB=:
  8114. RANLIB_STUB=:
  8115. else
  8116. RANLIB_STUB="${RANLIB}"
  8117. if test "${SHARED_BUILD}" = "1" ; then
  8118. SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}"
  8119. if test x"${TK_BIN_DIR}" != x ; then
  8120. SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}"
  8121. fi
  8122. eval eval "PKG_LIB_FILE8=lib${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
  8123. eval eval "PKG_LIB_FILE9=lib${PACKAGE_LIB_PREFIX9}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
  8124. eval eval "PKG_LIB_FILE=lib${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
  8125. RANLIB=:
  8126. else
  8127. eval eval "PKG_LIB_FILE=lib${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
  8128. eval eval "PKG_LIB_FILE=lib${PACKAGE_LIB_PREFIX9}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
  8129. eval eval "PKG_LIB_FILE=lib${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
  8130. fi
  8131. # Some packages build their own stubs libraries
  8132. eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}"
  8133. fi
  8134. # These are escaped so that only CFLAGS is picked up at configure time.
  8135. # The other values will be substituted at make time.
  8136. CFLAGS="${CFLAGS} \${CFLAGS_DEFAULT} \${CFLAGS_WARNING}"
  8137. if test "${SHARED_BUILD}" = "1" ; then
  8138. CFLAGS="${CFLAGS} \${SHLIB_CFLAGS}"
  8139. fi
  8140. #--------------------------------------------------------------------
  8141. # Determine the name of the tclsh and/or wish executables in the
  8142. # Tcl and Tk build directories or the location they were installed
  8143. # into. These paths are used to support running test cases only,
  8144. # the Makefile should not be making use of these paths to generate
  8145. # a pkgIndex.tcl file or anything else at extension build time.
  8146. #--------------------------------------------------------------------
  8147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tclsh" >&5
  8148. printf %s "checking for tclsh... " >&6; }
  8149. if test -f "${TCL_BIN_DIR}/Makefile" ; then
  8150. # tclConfig.sh is in Tcl build directory
  8151. if test "${TEA_PLATFORM}" = "windows"; then
  8152. if test -f "${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${EXEEXT}" ; then
  8153. TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${EXEEXT}"
  8154. elif test -f "${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}s${EXEEXT}" ; then
  8155. TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}s${EXEEXT}"
  8156. elif test -f "${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}t${EXEEXT}" ; then
  8157. TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}t${EXEEXT}"
  8158. elif test -f "${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}st${EXEEXT}" ; then
  8159. TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}st${EXEEXT}"
  8160. fi
  8161. else
  8162. TCLSH_PROG="${TCL_BIN_DIR}/tclsh"
  8163. fi
  8164. else
  8165. # tclConfig.sh is in install location
  8166. if test "${TEA_PLATFORM}" = "windows"; then
  8167. TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${EXEEXT}"
  8168. else
  8169. TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}"
  8170. fi
  8171. list="`ls -d ${TCL_BIN_DIR}/../bin 2>/dev/null` \
  8172. `ls -d ${TCL_BIN_DIR}/.. 2>/dev/null` \
  8173. `ls -d ${TCL_PREFIX}/bin 2>/dev/null`"
  8174. for i in $list ; do
  8175. if test -f "$i/${TCLSH_PROG}" ; then
  8176. REAL_TCL_BIN_DIR="`cd "$i"; pwd`/"
  8177. break
  8178. fi
  8179. done
  8180. TCLSH_PROG="${REAL_TCL_BIN_DIR}${TCLSH_PROG}"
  8181. fi
  8182. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${TCLSH_PROG}" >&5
  8183. printf "%s\n" "${TCLSH_PROG}" >&6; }
  8184. #TEA_PROG_WISH
  8185. #--------------------------------------------------------------------
  8186. # Setup a *Config.sh.in configuration file.
  8187. #--------------------------------------------------------------------
  8188. #TEA_EXPORT_CONFIG([sample])
  8189. #AC_SUBST(SAMPLE_VAR)
  8190. #--------------------------------------------------------------------
  8191. # Specify files to substitute AC variables in. You may alternatively
  8192. # have a special pkgIndex.tcl.in or other files which require
  8193. # substituting the AC variables in. Include these here.
  8194. #--------------------------------------------------------------------
  8195. ac_config_files="$ac_config_files Makefile pkgIndex.tcl"
  8196. #AC_CONFIG_FILES([sampleConfig.sh])
  8197. #--------------------------------------------------------------------
  8198. # Finally, substitute all of the various values into the files
  8199. # specified with AC_CONFIG_FILES.
  8200. #--------------------------------------------------------------------
  8201. cat >confcache <<\_ACEOF
  8202. # This file is a shell script that caches the results of configure
  8203. # tests run on this system so they can be shared between configure
  8204. # scripts and configure runs, see configure's option --config-cache.
  8205. # It is not useful on other systems. If it contains results you don't
  8206. # want to keep, you may remove or edit it.
  8207. #
  8208. # config.status only pays attention to the cache file if you give it
  8209. # the --recheck option to rerun configure.
  8210. #
  8211. # 'ac_cv_env_foo' variables (set or unset) will be overridden when
  8212. # loading this file, other *unset* 'ac_cv_foo' will be assigned the
  8213. # following values.
  8214. _ACEOF
  8215. # The following way of writing the cache mishandles newlines in values,
  8216. # but we know of no workaround that is simple, portable, and efficient.
  8217. # So, we kill variables containing newlines.
  8218. # Ultrix sh set writes to stderr and can't be redirected directly,
  8219. # and sets the high bit in the cache file unless we assign to the vars.
  8220. (
  8221. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  8222. eval ac_val=\$$ac_var
  8223. case $ac_val in #(
  8224. *${as_nl}*)
  8225. case $ac_var in #(
  8226. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  8227. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  8228. esac
  8229. case $ac_var in #(
  8230. _ | IFS | as_nl) ;; #(
  8231. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  8232. *) { eval $ac_var=; unset $ac_var;} ;;
  8233. esac ;;
  8234. esac
  8235. done
  8236. (set) 2>&1 |
  8237. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  8238. *${as_nl}ac_space=\ *)
  8239. # 'set' does not quote correctly, so add quotes: double-quote
  8240. # substitution turns \\\\ into \\, and sed turns \\ into \.
  8241. sed -n \
  8242. "s/'/'\\\\''/g;
  8243. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8244. ;; #(
  8245. *)
  8246. # 'set' quotes correctly as required by POSIX, so do not add quotes.
  8247. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  8248. ;;
  8249. esac |
  8250. sort
  8251. ) |
  8252. sed '
  8253. /^ac_cv_env_/b end
  8254. t clear
  8255. :clear
  8256. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  8257. t end
  8258. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8259. :end' >>confcache
  8260. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  8261. if test -w "$cache_file"; then
  8262. if test "x$cache_file" != "x/dev/null"; then
  8263. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  8264. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  8265. if test ! -f "$cache_file" || test -h "$cache_file"; then
  8266. cat confcache >"$cache_file"
  8267. else
  8268. case $cache_file in #(
  8269. */* | ?:*)
  8270. mv -f confcache "$cache_file"$$ &&
  8271. mv -f "$cache_file"$$ "$cache_file" ;; #(
  8272. *)
  8273. mv -f confcache "$cache_file" ;;
  8274. esac
  8275. fi
  8276. fi
  8277. else
  8278. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  8279. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  8280. fi
  8281. fi
  8282. rm -f confcache
  8283. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  8284. # Let make expand exec_prefix.
  8285. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  8286. # Transform confdefs.h into DEFS.
  8287. # Protect against shell expansion while executing Makefile rules.
  8288. # Protect against Makefile macro expansion.
  8289. #
  8290. # If the first sed substitution is executed (which looks for macros that
  8291. # take arguments), then branch to the quote section. Otherwise,
  8292. # look for a macro that doesn't take arguments.
  8293. ac_script='
  8294. :mline
  8295. /\\$/{
  8296. N
  8297. s,\\\n,,
  8298. b mline
  8299. }
  8300. t clear
  8301. :clear
  8302. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  8303. t quote
  8304. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  8305. t quote
  8306. b any
  8307. :quote
  8308. s/[][ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  8309. s/\$/$$/g
  8310. H
  8311. :any
  8312. ${
  8313. g
  8314. s/^\n//
  8315. s/\n/ /g
  8316. p
  8317. }
  8318. '
  8319. DEFS=`sed -n "$ac_script" confdefs.h`
  8320. ac_libobjs=
  8321. ac_ltlibobjs=
  8322. U=
  8323. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  8324. # 1. Remove the extension, and $U if already installed.
  8325. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  8326. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  8327. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  8328. # will be set to the directory where LIBOBJS objects are built.
  8329. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  8330. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  8331. done
  8332. LIBOBJS=$ac_libobjs
  8333. LTLIBOBJS=$ac_ltlibobjs
  8334. CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS=""
  8335. : "${CONFIG_STATUS=./config.status}"
  8336. ac_write_fail=0
  8337. ac_clean_files_save=$ac_clean_files
  8338. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  8339. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  8340. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  8341. as_write_fail=0
  8342. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  8343. #! $SHELL
  8344. # Generated by $as_me.
  8345. # Run this file to recreate the current configuration.
  8346. # Compiler output produced by configure, useful for debugging
  8347. # configure, is in config.log if it exists.
  8348. debug=false
  8349. ac_cs_recheck=false
  8350. ac_cs_silent=false
  8351. SHELL=\${CONFIG_SHELL-$SHELL}
  8352. export SHELL
  8353. _ASEOF
  8354. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  8355. ## -------------------- ##
  8356. ## M4sh Initialization. ##
  8357. ## -------------------- ##
  8358. # Be more Bourne compatible
  8359. DUALCASE=1; export DUALCASE # for MKS sh
  8360. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  8361. then :
  8362. emulate sh
  8363. NULLCMD=:
  8364. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  8365. # is contrary to our usage. Disable this feature.
  8366. alias -g '${1+"$@"}'='"$@"'
  8367. setopt NO_GLOB_SUBST
  8368. else case e in #(
  8369. e) case `(set -o) 2>/dev/null` in #(
  8370. *posix*) :
  8371. set -o posix ;; #(
  8372. *) :
  8373. ;;
  8374. esac ;;
  8375. esac
  8376. fi
  8377. # Reset variables that may have inherited troublesome values from
  8378. # the environment.
  8379. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  8380. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  8381. # side effect of setting IFS to empty, thus disabling word splitting.)
  8382. # Quoting is to prevent editors from complaining about space-tab.
  8383. as_nl='
  8384. '
  8385. export as_nl
  8386. IFS=" "" $as_nl"
  8387. PS1='$ '
  8388. PS2='> '
  8389. PS4='+ '
  8390. # Ensure predictable behavior from utilities with locale-dependent output.
  8391. LC_ALL=C
  8392. export LC_ALL
  8393. LANGUAGE=C
  8394. export LANGUAGE
  8395. # We cannot yet rely on "unset" to work, but we need these variables
  8396. # to be unset--not just set to an empty or harmless value--now, to
  8397. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  8398. # also avoids known problems related to "unset" and subshell syntax
  8399. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  8400. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  8401. do eval test \${$as_var+y} \
  8402. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  8403. done
  8404. # Ensure that fds 0, 1, and 2 are open.
  8405. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  8406. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  8407. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  8408. # The user is always right.
  8409. if ${PATH_SEPARATOR+false} :; then
  8410. PATH_SEPARATOR=:
  8411. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  8412. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  8413. PATH_SEPARATOR=';'
  8414. }
  8415. fi
  8416. # Find who we are. Look in the path if we contain no directory separator.
  8417. as_myself=
  8418. case $0 in #((
  8419. *[\\/]* ) as_myself=$0 ;;
  8420. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8421. for as_dir in $PATH
  8422. do
  8423. IFS=$as_save_IFS
  8424. case $as_dir in #(((
  8425. '') as_dir=./ ;;
  8426. */) ;;
  8427. *) as_dir=$as_dir/ ;;
  8428. esac
  8429. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  8430. done
  8431. IFS=$as_save_IFS
  8432. ;;
  8433. esac
  8434. # We did not find ourselves, most probably we were run as 'sh COMMAND'
  8435. # in which case we are not to be found in the path.
  8436. if test "x$as_myself" = x; then
  8437. as_myself=$0
  8438. fi
  8439. if test ! -f "$as_myself"; then
  8440. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  8441. exit 1
  8442. fi
  8443. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  8444. # ----------------------------------------
  8445. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  8446. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  8447. # script with STATUS, using 1 if that was 0.
  8448. as_fn_error ()
  8449. {
  8450. as_status=$1; test $as_status -eq 0 && as_status=1
  8451. if test "$4"; then
  8452. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  8453. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  8454. fi
  8455. printf "%s\n" "$as_me: error: $2" >&2
  8456. as_fn_exit $as_status
  8457. } # as_fn_error
  8458. # as_fn_set_status STATUS
  8459. # -----------------------
  8460. # Set $? to STATUS, without forking.
  8461. as_fn_set_status ()
  8462. {
  8463. return $1
  8464. } # as_fn_set_status
  8465. # as_fn_exit STATUS
  8466. # -----------------
  8467. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  8468. as_fn_exit ()
  8469. {
  8470. set +e
  8471. as_fn_set_status $1
  8472. exit $1
  8473. } # as_fn_exit
  8474. # as_fn_unset VAR
  8475. # ---------------
  8476. # Portably unset VAR.
  8477. as_fn_unset ()
  8478. {
  8479. { eval $1=; unset $1;}
  8480. }
  8481. as_unset=as_fn_unset
  8482. # as_fn_append VAR VALUE
  8483. # ----------------------
  8484. # Append the text in VALUE to the end of the definition contained in VAR. Take
  8485. # advantage of any shell optimizations that allow amortized linear growth over
  8486. # repeated appends, instead of the typical quadratic growth present in naive
  8487. # implementations.
  8488. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  8489. then :
  8490. eval 'as_fn_append ()
  8491. {
  8492. eval $1+=\$2
  8493. }'
  8494. else case e in #(
  8495. e) as_fn_append ()
  8496. {
  8497. eval $1=\$$1\$2
  8498. } ;;
  8499. esac
  8500. fi # as_fn_append
  8501. # as_fn_arith ARG...
  8502. # ------------------
  8503. # Perform arithmetic evaluation on the ARGs, and store the result in the
  8504. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  8505. # must be portable across $(()) and expr.
  8506. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  8507. then :
  8508. eval 'as_fn_arith ()
  8509. {
  8510. as_val=$(( $* ))
  8511. }'
  8512. else case e in #(
  8513. e) as_fn_arith ()
  8514. {
  8515. as_val=`expr "$@" || test $? -eq 1`
  8516. } ;;
  8517. esac
  8518. fi # as_fn_arith
  8519. if expr a : '\(a\)' >/dev/null 2>&1 &&
  8520. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  8521. as_expr=expr
  8522. else
  8523. as_expr=false
  8524. fi
  8525. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  8526. as_basename=basename
  8527. else
  8528. as_basename=false
  8529. fi
  8530. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  8531. as_dirname=dirname
  8532. else
  8533. as_dirname=false
  8534. fi
  8535. as_me=`$as_basename -- "$0" ||
  8536. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  8537. X"$0" : 'X\(//\)$' \| \
  8538. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  8539. printf "%s\n" X/"$0" |
  8540. sed '/^.*\/\([^/][^/]*\)\/*$/{
  8541. s//\1/
  8542. q
  8543. }
  8544. /^X\/\(\/\/\)$/{
  8545. s//\1/
  8546. q
  8547. }
  8548. /^X\/\(\/\).*/{
  8549. s//\1/
  8550. q
  8551. }
  8552. s/.*/./; q'`
  8553. # Avoid depending upon Character Ranges.
  8554. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  8555. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  8556. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  8557. as_cr_digits='0123456789'
  8558. as_cr_alnum=$as_cr_Letters$as_cr_digits
  8559. # Determine whether it's possible to make 'echo' print without a newline.
  8560. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  8561. # for compatibility with existing Makefiles.
  8562. ECHO_C= ECHO_N= ECHO_T=
  8563. case `echo -n x` in #(((((
  8564. -n*)
  8565. case `echo 'xy\c'` in
  8566. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  8567. xy) ECHO_C='\c';;
  8568. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  8569. ECHO_T=' ';;
  8570. esac;;
  8571. *)
  8572. ECHO_N='-n';;
  8573. esac
  8574. # For backward compatibility with old third-party macros, we provide
  8575. # the shell variables $as_echo and $as_echo_n. New code should use
  8576. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  8577. as_echo='printf %s\n'
  8578. as_echo_n='printf %s'
  8579. rm -f conf$$ conf$$.exe conf$$.file
  8580. if test -d conf$$.dir; then
  8581. rm -f conf$$.dir/conf$$.file
  8582. else
  8583. rm -f conf$$.dir
  8584. mkdir conf$$.dir 2>/dev/null
  8585. fi
  8586. if (echo >conf$$.file) 2>/dev/null; then
  8587. if ln -s conf$$.file conf$$ 2>/dev/null; then
  8588. as_ln_s='ln -s'
  8589. # ... but there are two gotchas:
  8590. # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
  8591. # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
  8592. # In both cases, we have to default to 'cp -pR'.
  8593. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  8594. as_ln_s='cp -pR'
  8595. elif ln conf$$.file conf$$ 2>/dev/null; then
  8596. as_ln_s=ln
  8597. else
  8598. as_ln_s='cp -pR'
  8599. fi
  8600. else
  8601. as_ln_s='cp -pR'
  8602. fi
  8603. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  8604. rmdir conf$$.dir 2>/dev/null
  8605. # as_fn_mkdir_p
  8606. # -------------
  8607. # Create "$as_dir" as a directory, including parents if necessary.
  8608. as_fn_mkdir_p ()
  8609. {
  8610. case $as_dir in #(
  8611. -*) as_dir=./$as_dir;;
  8612. esac
  8613. test -d "$as_dir" || eval $as_mkdir_p || {
  8614. as_dirs=
  8615. while :; do
  8616. case $as_dir in #(
  8617. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  8618. *) as_qdir=$as_dir;;
  8619. esac
  8620. as_dirs="'$as_qdir' $as_dirs"
  8621. as_dir=`$as_dirname -- "$as_dir" ||
  8622. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8623. X"$as_dir" : 'X\(//\)[^/]' \| \
  8624. X"$as_dir" : 'X\(//\)$' \| \
  8625. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  8626. printf "%s\n" X"$as_dir" |
  8627. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  8628. s//\1/
  8629. q
  8630. }
  8631. /^X\(\/\/\)[^/].*/{
  8632. s//\1/
  8633. q
  8634. }
  8635. /^X\(\/\/\)$/{
  8636. s//\1/
  8637. q
  8638. }
  8639. /^X\(\/\).*/{
  8640. s//\1/
  8641. q
  8642. }
  8643. s/.*/./; q'`
  8644. test -d "$as_dir" && break
  8645. done
  8646. test -z "$as_dirs" || eval "mkdir $as_dirs"
  8647. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  8648. } # as_fn_mkdir_p
  8649. if mkdir -p . 2>/dev/null; then
  8650. as_mkdir_p='mkdir -p "$as_dir"'
  8651. else
  8652. test -d ./-p && rmdir ./-p
  8653. as_mkdir_p=false
  8654. fi
  8655. # as_fn_executable_p FILE
  8656. # -----------------------
  8657. # Test if FILE is an executable regular file.
  8658. as_fn_executable_p ()
  8659. {
  8660. test -f "$1" && test -x "$1"
  8661. } # as_fn_executable_p
  8662. as_test_x='test -x'
  8663. as_executable_p=as_fn_executable_p
  8664. # Sed expression to map a string onto a valid CPP name.
  8665. as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  8666. as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
  8667. # Sed expression to map a string onto a valid variable name.
  8668. as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  8669. as_tr_sh="eval sed '$as_sed_sh'" # deprecated
  8670. exec 6>&1
  8671. ## ----------------------------------- ##
  8672. ## Main body of $CONFIG_STATUS script. ##
  8673. ## ----------------------------------- ##
  8674. _ASEOF
  8675. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  8676. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8677. # Save the log message, to keep $0 and so on meaningful, and to
  8678. # report actual input values of CONFIG_FILES etc. instead of their
  8679. # values after options handling.
  8680. ac_log="
  8681. This file was extended by zint $as_me 2.13.0, which was
  8682. generated by GNU Autoconf 2.72. Invocation command line was
  8683. CONFIG_FILES = $CONFIG_FILES
  8684. CONFIG_HEADERS = $CONFIG_HEADERS
  8685. CONFIG_LINKS = $CONFIG_LINKS
  8686. CONFIG_COMMANDS = $CONFIG_COMMANDS
  8687. $ $0 $@
  8688. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  8689. "
  8690. _ACEOF
  8691. case $ac_config_files in *"
  8692. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  8693. esac
  8694. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8695. # Files that config.status was made for.
  8696. config_files="$ac_config_files"
  8697. _ACEOF
  8698. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8699. ac_cs_usage="\
  8700. '$as_me' instantiates files and other configuration actions
  8701. from templates according to the current configuration. Unless the files
  8702. and actions are specified as TAGs, all are instantiated by default.
  8703. Usage: $0 [OPTION]... [TAG]...
  8704. -h, --help print this help, then exit
  8705. -V, --version print version number and configuration settings, then exit
  8706. --config print configuration, then exit
  8707. -q, --quiet, --silent
  8708. do not print progress messages
  8709. -d, --debug don't remove temporary files
  8710. --recheck update $as_me by reconfiguring in the same conditions
  8711. --file=FILE[:TEMPLATE]
  8712. instantiate the configuration file FILE
  8713. Configuration files:
  8714. $config_files
  8715. Report bugs to the package provider."
  8716. _ACEOF
  8717. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  8718. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  8719. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8720. ac_cs_config='$ac_cs_config_escaped'
  8721. ac_cs_version="\\
  8722. zint config.status 2.13.0
  8723. configured by $0, generated by GNU Autoconf 2.72,
  8724. with options \\"\$ac_cs_config\\"
  8725. Copyright (C) 2023 Free Software Foundation, Inc.
  8726. This config.status script is free software; the Free Software Foundation
  8727. gives unlimited permission to copy, distribute and modify it."
  8728. ac_pwd='$ac_pwd'
  8729. srcdir='$srcdir'
  8730. test -n "\$AWK" || AWK=awk
  8731. _ACEOF
  8732. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8733. # The default lists apply if the user does not specify any file.
  8734. ac_need_defaults=:
  8735. while test $# != 0
  8736. do
  8737. case $1 in
  8738. --*=?*)
  8739. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  8740. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  8741. ac_shift=:
  8742. ;;
  8743. --*=)
  8744. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  8745. ac_optarg=
  8746. ac_shift=:
  8747. ;;
  8748. *)
  8749. ac_option=$1
  8750. ac_optarg=$2
  8751. ac_shift=shift
  8752. ;;
  8753. esac
  8754. case $ac_option in
  8755. # Handling of the options.
  8756. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  8757. ac_cs_recheck=: ;;
  8758. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  8759. printf "%s\n" "$ac_cs_version"; exit ;;
  8760. --config | --confi | --conf | --con | --co | --c )
  8761. printf "%s\n" "$ac_cs_config"; exit ;;
  8762. --debug | --debu | --deb | --de | --d | -d )
  8763. debug=: ;;
  8764. --file | --fil | --fi | --f )
  8765. $ac_shift
  8766. case $ac_optarg in
  8767. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  8768. '') as_fn_error $? "missing file argument" ;;
  8769. esac
  8770. as_fn_append CONFIG_FILES " '$ac_optarg'"
  8771. ac_need_defaults=false;;
  8772. --he | --h | --help | --hel | -h )
  8773. printf "%s\n" "$ac_cs_usage"; exit ;;
  8774. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  8775. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  8776. ac_cs_silent=: ;;
  8777. # This is an error.
  8778. -*) as_fn_error $? "unrecognized option: '$1'
  8779. Try '$0 --help' for more information." ;;
  8780. *) as_fn_append ac_config_targets " $1"
  8781. ac_need_defaults=false ;;
  8782. esac
  8783. shift
  8784. done
  8785. ac_configure_extra_args=
  8786. if $ac_cs_silent; then
  8787. exec 6>/dev/null
  8788. ac_configure_extra_args="$ac_configure_extra_args --silent"
  8789. fi
  8790. _ACEOF
  8791. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8792. if \$ac_cs_recheck; then
  8793. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  8794. shift
  8795. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  8796. CONFIG_SHELL='$SHELL'
  8797. export CONFIG_SHELL
  8798. exec "\$@"
  8799. fi
  8800. _ACEOF
  8801. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8802. exec 5>>config.log
  8803. {
  8804. echo
  8805. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  8806. ## Running $as_me. ##
  8807. _ASBOX
  8808. printf "%s\n" "$ac_log"
  8809. } >&5
  8810. _ACEOF
  8811. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8812. _ACEOF
  8813. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8814. # Handling of arguments.
  8815. for ac_config_target in $ac_config_targets
  8816. do
  8817. case $ac_config_target in
  8818. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  8819. "pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgIndex.tcl" ;;
  8820. *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
  8821. esac
  8822. done
  8823. # If the user did not use the arguments to specify the items to instantiate,
  8824. # then the envvar interface is used. Set only those that are not.
  8825. # We use the long form for the default assignment because of an extremely
  8826. # bizarre bug on SunOS 4.1.3.
  8827. if $ac_need_defaults; then
  8828. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  8829. fi
  8830. # Have a temporary directory for convenience. Make it in the build tree
  8831. # simply because there is no reason against having it here, and in addition,
  8832. # creating and moving files from /tmp can sometimes cause problems.
  8833. # Hook for its removal unless debugging.
  8834. # Note that there is a small window in which the directory will not be cleaned:
  8835. # after its creation but before its name has been assigned to '$tmp'.
  8836. $debug ||
  8837. {
  8838. tmp= ac_tmp=
  8839. trap 'exit_status=$?
  8840. : "${ac_tmp:=$tmp}"
  8841. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  8842. ' 0
  8843. trap 'as_fn_exit 1' 1 2 13 15
  8844. }
  8845. # Create a (secure) tmp directory for tmp files.
  8846. {
  8847. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  8848. test -d "$tmp"
  8849. } ||
  8850. {
  8851. tmp=./conf$$-$RANDOM
  8852. (umask 077 && mkdir "$tmp")
  8853. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  8854. ac_tmp=$tmp
  8855. # Set up the scripts for CONFIG_FILES section.
  8856. # No need to generate them if there are no CONFIG_FILES.
  8857. # This happens for instance with './config.status config.h'.
  8858. if test -n "$CONFIG_FILES"; then
  8859. ac_cr=`echo X | tr X '\015'`
  8860. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  8861. # But we know of no other shell where ac_cr would be empty at this
  8862. # point, so we can use a bashism as a fallback.
  8863. if test "x$ac_cr" = x; then
  8864. eval ac_cr=\$\'\\r\'
  8865. fi
  8866. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  8867. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  8868. ac_cs_awk_cr='\\r'
  8869. else
  8870. ac_cs_awk_cr=$ac_cr
  8871. fi
  8872. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  8873. _ACEOF
  8874. {
  8875. echo "cat >conf$$subs.awk <<_ACEOF" &&
  8876. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  8877. echo "_ACEOF"
  8878. } >conf$$subs.sh ||
  8879. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  8880. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  8881. ac_delim='%!_!# '
  8882. for ac_last_try in false false false false false :; do
  8883. . ./conf$$subs.sh ||
  8884. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  8885. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  8886. if test $ac_delim_n = $ac_delim_num; then
  8887. break
  8888. elif $ac_last_try; then
  8889. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  8890. else
  8891. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  8892. fi
  8893. done
  8894. rm -f conf$$subs.sh
  8895. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8896. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  8897. _ACEOF
  8898. sed -n '
  8899. h
  8900. s/^/S["/; s/!.*/"]=/
  8901. p
  8902. g
  8903. s/^[^!]*!//
  8904. :repl
  8905. t repl
  8906. s/'"$ac_delim"'$//
  8907. t delim
  8908. :nl
  8909. h
  8910. s/\(.\{148\}\)..*/\1/
  8911. t more1
  8912. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  8913. p
  8914. n
  8915. b repl
  8916. :more1
  8917. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  8918. p
  8919. g
  8920. s/.\{148\}//
  8921. t nl
  8922. :delim
  8923. h
  8924. s/\(.\{148\}\)..*/\1/
  8925. t more2
  8926. s/["\\]/\\&/g; s/^/"/; s/$/"/
  8927. p
  8928. b
  8929. :more2
  8930. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  8931. p
  8932. g
  8933. s/.\{148\}//
  8934. t delim
  8935. ' <conf$$subs.awk | sed '
  8936. /^[^""]/{
  8937. N
  8938. s/\n//
  8939. }
  8940. ' >>$CONFIG_STATUS || ac_write_fail=1
  8941. rm -f conf$$subs.awk
  8942. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8943. _ACAWK
  8944. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  8945. for (key in S) S_is_set[key] = 1
  8946. FS = ""
  8947. }
  8948. {
  8949. line = $ 0
  8950. nfields = split(line, field, "@")
  8951. substed = 0
  8952. len = length(field[1])
  8953. for (i = 2; i < nfields; i++) {
  8954. key = field[i]
  8955. keylen = length(key)
  8956. if (S_is_set[key]) {
  8957. value = S[key]
  8958. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  8959. len += length(value) + length(field[++i])
  8960. substed = 1
  8961. } else
  8962. len += 1 + keylen
  8963. }
  8964. print line
  8965. }
  8966. _ACAWK
  8967. _ACEOF
  8968. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8969. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  8970. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  8971. else
  8972. cat
  8973. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  8974. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  8975. _ACEOF
  8976. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  8977. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  8978. # trailing colons and then remove the whole line if VPATH becomes empty
  8979. # (actually we leave an empty line to preserve line numbers).
  8980. if test "x$srcdir" = x.; then
  8981. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  8982. h
  8983. s///
  8984. s/^/:/
  8985. s/[ ]*$/:/
  8986. s/:\$(srcdir):/:/g
  8987. s/:\${srcdir}:/:/g
  8988. s/:@srcdir@:/:/g
  8989. s/^:*//
  8990. s/:*$//
  8991. x
  8992. s/\(=[ ]*\).*/\1/
  8993. G
  8994. s/\n//
  8995. s/^[^=]*=[ ]*$//
  8996. }'
  8997. fi
  8998. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8999. fi # test -n "$CONFIG_FILES"
  9000. eval set X " :F $CONFIG_FILES "
  9001. shift
  9002. for ac_tag
  9003. do
  9004. case $ac_tag in
  9005. :[FHLC]) ac_mode=$ac_tag; continue;;
  9006. esac
  9007. case $ac_mode$ac_tag in
  9008. :[FHL]*:*);;
  9009. :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
  9010. :[FH]-) ac_tag=-:-;;
  9011. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  9012. esac
  9013. ac_save_IFS=$IFS
  9014. IFS=:
  9015. set x $ac_tag
  9016. IFS=$ac_save_IFS
  9017. shift
  9018. ac_file=$1
  9019. shift
  9020. case $ac_mode in
  9021. :L) ac_source=$1;;
  9022. :[FH])
  9023. ac_file_inputs=
  9024. for ac_f
  9025. do
  9026. case $ac_f in
  9027. -) ac_f="$ac_tmp/stdin";;
  9028. *) # Look for the file first in the build tree, then in the source tree
  9029. # (if the path is not absolute). The absolute path cannot be DOS-style,
  9030. # because $ac_f cannot contain ':'.
  9031. test -f "$ac_f" ||
  9032. case $ac_f in
  9033. [\\/$]*) false;;
  9034. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  9035. esac ||
  9036. as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
  9037. esac
  9038. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  9039. as_fn_append ac_file_inputs " '$ac_f'"
  9040. done
  9041. # Let's still pretend it is 'configure' which instantiates (i.e., don't
  9042. # use $as_me), people would be surprised to read:
  9043. # /* config.h. Generated by config.status. */
  9044. configure_input='Generated from '`
  9045. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  9046. `' by configure.'
  9047. if test x"$ac_file" != x-; then
  9048. configure_input="$ac_file. $configure_input"
  9049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  9050. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  9051. fi
  9052. # Neutralize special characters interpreted by sed in replacement strings.
  9053. case $configure_input in #(
  9054. *\&* | *\|* | *\\* )
  9055. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  9056. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  9057. *) ac_sed_conf_input=$configure_input;;
  9058. esac
  9059. case $ac_tag in
  9060. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  9061. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  9062. esac
  9063. ;;
  9064. esac
  9065. ac_dir=`$as_dirname -- "$ac_file" ||
  9066. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9067. X"$ac_file" : 'X\(//\)[^/]' \| \
  9068. X"$ac_file" : 'X\(//\)$' \| \
  9069. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  9070. printf "%s\n" X"$ac_file" |
  9071. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9072. s//\1/
  9073. q
  9074. }
  9075. /^X\(\/\/\)[^/].*/{
  9076. s//\1/
  9077. q
  9078. }
  9079. /^X\(\/\/\)$/{
  9080. s//\1/
  9081. q
  9082. }
  9083. /^X\(\/\).*/{
  9084. s//\1/
  9085. q
  9086. }
  9087. s/.*/./; q'`
  9088. as_dir="$ac_dir"; as_fn_mkdir_p
  9089. ac_builddir=.
  9090. case "$ac_dir" in
  9091. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9092. *)
  9093. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  9094. # A ".." for each directory in $ac_dir_suffix.
  9095. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  9096. case $ac_top_builddir_sub in
  9097. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9098. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  9099. esac ;;
  9100. esac
  9101. ac_abs_top_builddir=$ac_pwd
  9102. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  9103. # for backward compatibility:
  9104. ac_top_builddir=$ac_top_build_prefix
  9105. case $srcdir in
  9106. .) # We are building in place.
  9107. ac_srcdir=.
  9108. ac_top_srcdir=$ac_top_builddir_sub
  9109. ac_abs_top_srcdir=$ac_pwd ;;
  9110. [\\/]* | ?:[\\/]* ) # Absolute name.
  9111. ac_srcdir=$srcdir$ac_dir_suffix;
  9112. ac_top_srcdir=$srcdir
  9113. ac_abs_top_srcdir=$srcdir ;;
  9114. *) # Relative name.
  9115. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  9116. ac_top_srcdir=$ac_top_build_prefix$srcdir
  9117. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  9118. esac
  9119. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  9120. case $ac_mode in
  9121. :F)
  9122. #
  9123. # CONFIG_FILE
  9124. #
  9125. _ACEOF
  9126. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9127. # If the template does not know about datarootdir, expand it.
  9128. # FIXME: This hack should be removed a few years after 2.60.
  9129. ac_datarootdir_hack=; ac_datarootdir_seen=
  9130. ac_sed_dataroot='
  9131. /datarootdir/ {
  9132. p
  9133. q
  9134. }
  9135. /@datadir@/p
  9136. /@docdir@/p
  9137. /@infodir@/p
  9138. /@localedir@/p
  9139. /@mandir@/p'
  9140. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  9141. *datarootdir*) ac_datarootdir_seen=yes;;
  9142. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  9143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  9144. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  9145. _ACEOF
  9146. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9147. ac_datarootdir_hack='
  9148. s&@datadir@&$datadir&g
  9149. s&@docdir@&$docdir&g
  9150. s&@infodir@&$infodir&g
  9151. s&@localedir@&$localedir&g
  9152. s&@mandir@&$mandir&g
  9153. s&\\\${datarootdir}&$datarootdir&g' ;;
  9154. esac
  9155. _ACEOF
  9156. # Neutralize VPATH when '$srcdir' = '.'.
  9157. # Shell code in configure.ac might set extrasub.
  9158. # FIXME: do we really want to maintain this feature?
  9159. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9160. ac_sed_extra="$ac_vpsub
  9161. $extrasub
  9162. _ACEOF
  9163. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9164. :t
  9165. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  9166. s|@configure_input@|$ac_sed_conf_input|;t t
  9167. s&@top_builddir@&$ac_top_builddir_sub&;t t
  9168. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  9169. s&@srcdir@&$ac_srcdir&;t t
  9170. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  9171. s&@top_srcdir@&$ac_top_srcdir&;t t
  9172. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  9173. s&@builddir@&$ac_builddir&;t t
  9174. s&@abs_builddir@&$ac_abs_builddir&;t t
  9175. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  9176. $ac_datarootdir_hack
  9177. "
  9178. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  9179. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9180. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  9181. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  9182. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  9183. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  9184. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
  9185. which seems to be undefined. Please make sure it is defined" >&5
  9186. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
  9187. which seems to be undefined. Please make sure it is defined" >&2;}
  9188. rm -f "$ac_tmp/stdin"
  9189. case $ac_file in
  9190. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  9191. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  9192. esac \
  9193. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9194. ;;
  9195. esac
  9196. done # for ac_tag
  9197. as_fn_exit 0
  9198. _ACEOF
  9199. ac_clean_files=$ac_clean_files_save
  9200. test $ac_write_fail = 0 ||
  9201. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  9202. # configure is writing to config.log, and then calls config.status.
  9203. # config.status does its own redirection, appending to config.log.
  9204. # Unfortunately, on DOS this fails, as config.log is still kept open
  9205. # by configure, so config.status won't be able to write to it; its
  9206. # output is simply discarded. So we exec the FD to /dev/null,
  9207. # effectively closing config.log, so it can be properly (re)opened and
  9208. # appended to by config.status. When coming back to configure, we
  9209. # need to make the FD available again.
  9210. if test "$no_create" != yes; then
  9211. ac_cs_success=:
  9212. ac_config_status_args=
  9213. test "$silent" = yes &&
  9214. ac_config_status_args="$ac_config_status_args --quiet"
  9215. exec 5>/dev/null
  9216. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  9217. exec 5>>config.log
  9218. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  9219. # would make configure fail if this is the last instruction.
  9220. $ac_cs_success || as_fn_exit 1
  9221. fi
  9222. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  9223. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  9224. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  9225. fi