configure 217 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for ptunnel-ng 1.41.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test \$(( 1 + 1 )) = 2 || exit 1"
  186. if (eval "$as_required") 2>/dev/null; then :
  187. as_have_required=yes
  188. else
  189. as_have_required=no
  190. fi
  191. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  192. else
  193. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  194. as_found=false
  195. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  196. do
  197. IFS=$as_save_IFS
  198. test -z "$as_dir" && as_dir=.
  199. as_found=:
  200. case $as_dir in #(
  201. /*)
  202. for as_base in sh bash ksh sh5; do
  203. # Try only shells that exist, to save several forks.
  204. as_shell=$as_dir/$as_base
  205. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  206. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  207. CONFIG_SHELL=$as_shell as_have_required=yes
  208. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  209. break 2
  210. fi
  211. fi
  212. done;;
  213. esac
  214. as_found=false
  215. done
  216. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  217. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  218. CONFIG_SHELL=$SHELL as_have_required=yes
  219. fi; }
  220. IFS=$as_save_IFS
  221. if test "x$CONFIG_SHELL" != x; then :
  222. export CONFIG_SHELL
  223. # We cannot yet assume a decent shell, so we have to provide a
  224. # neutralization value for shells without unset; and this also
  225. # works around shells that cannot unset nonexistent variables.
  226. # Preserve -v and -x to the replacement shell.
  227. BASH_ENV=/dev/null
  228. ENV=/dev/null
  229. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  230. case $- in # ((((
  231. *v*x* | *x*v* ) as_opts=-vx ;;
  232. *v* ) as_opts=-v ;;
  233. *x* ) as_opts=-x ;;
  234. * ) as_opts= ;;
  235. esac
  236. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  237. # Admittedly, this is quite paranoid, since all the known shells bail
  238. # out after a failed `exec'.
  239. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  240. exit 255
  241. fi
  242. if test x$as_have_required = xno; then :
  243. $as_echo "$0: This script requires a shell more modern than all"
  244. $as_echo "$0: the shells that I found on your system."
  245. if test x${ZSH_VERSION+set} = xset ; then
  246. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  247. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  248. else
  249. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  250. $0: including any error possibly output before this
  251. $0: message. Then install a modern shell, or manually run
  252. $0: the script under such a shell if you do have one."
  253. fi
  254. exit 1
  255. fi
  256. fi
  257. fi
  258. SHELL=${CONFIG_SHELL-/bin/sh}
  259. export SHELL
  260. # Unset more variables known to interfere with behavior of common tools.
  261. CLICOLOR_FORCE= GREP_OPTIONS=
  262. unset CLICOLOR_FORCE GREP_OPTIONS
  263. ## --------------------- ##
  264. ## M4sh Shell Functions. ##
  265. ## --------------------- ##
  266. # as_fn_unset VAR
  267. # ---------------
  268. # Portably unset VAR.
  269. as_fn_unset ()
  270. {
  271. { eval $1=; unset $1;}
  272. }
  273. as_unset=as_fn_unset
  274. # as_fn_set_status STATUS
  275. # -----------------------
  276. # Set $? to STATUS, without forking.
  277. as_fn_set_status ()
  278. {
  279. return $1
  280. } # as_fn_set_status
  281. # as_fn_exit STATUS
  282. # -----------------
  283. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  284. as_fn_exit ()
  285. {
  286. set +e
  287. as_fn_set_status $1
  288. exit $1
  289. } # as_fn_exit
  290. # as_fn_mkdir_p
  291. # -------------
  292. # Create "$as_dir" as a directory, including parents if necessary.
  293. as_fn_mkdir_p ()
  294. {
  295. case $as_dir in #(
  296. -*) as_dir=./$as_dir;;
  297. esac
  298. test -d "$as_dir" || eval $as_mkdir_p || {
  299. as_dirs=
  300. while :; do
  301. case $as_dir in #(
  302. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  303. *) as_qdir=$as_dir;;
  304. esac
  305. as_dirs="'$as_qdir' $as_dirs"
  306. as_dir=`$as_dirname -- "$as_dir" ||
  307. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  308. X"$as_dir" : 'X\(//\)[^/]' \| \
  309. X"$as_dir" : 'X\(//\)$' \| \
  310. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  311. $as_echo X"$as_dir" |
  312. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  313. s//\1/
  314. q
  315. }
  316. /^X\(\/\/\)[^/].*/{
  317. s//\1/
  318. q
  319. }
  320. /^X\(\/\/\)$/{
  321. s//\1/
  322. q
  323. }
  324. /^X\(\/\).*/{
  325. s//\1/
  326. q
  327. }
  328. s/.*/./; q'`
  329. test -d "$as_dir" && break
  330. done
  331. test -z "$as_dirs" || eval "mkdir $as_dirs"
  332. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  333. } # as_fn_mkdir_p
  334. # as_fn_executable_p FILE
  335. # -----------------------
  336. # Test if FILE is an executable regular file.
  337. as_fn_executable_p ()
  338. {
  339. test -f "$1" && test -x "$1"
  340. } # as_fn_executable_p
  341. # as_fn_append VAR VALUE
  342. # ----------------------
  343. # Append the text in VALUE to the end of the definition contained in VAR. Take
  344. # advantage of any shell optimizations that allow amortized linear growth over
  345. # repeated appends, instead of the typical quadratic growth present in naive
  346. # implementations.
  347. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  348. eval 'as_fn_append ()
  349. {
  350. eval $1+=\$2
  351. }'
  352. else
  353. as_fn_append ()
  354. {
  355. eval $1=\$$1\$2
  356. }
  357. fi # as_fn_append
  358. # as_fn_arith ARG...
  359. # ------------------
  360. # Perform arithmetic evaluation on the ARGs, and store the result in the
  361. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  362. # must be portable across $(()) and expr.
  363. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  364. eval 'as_fn_arith ()
  365. {
  366. as_val=$(( $* ))
  367. }'
  368. else
  369. as_fn_arith ()
  370. {
  371. as_val=`expr "$@" || test $? -eq 1`
  372. }
  373. fi # as_fn_arith
  374. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  375. # ----------------------------------------
  376. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  377. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  378. # script with STATUS, using 1 if that was 0.
  379. as_fn_error ()
  380. {
  381. as_status=$1; test $as_status -eq 0 && as_status=1
  382. if test "$4"; then
  383. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  384. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  385. fi
  386. $as_echo "$as_me: error: $2" >&2
  387. as_fn_exit $as_status
  388. } # as_fn_error
  389. if expr a : '\(a\)' >/dev/null 2>&1 &&
  390. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  391. as_expr=expr
  392. else
  393. as_expr=false
  394. fi
  395. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  396. as_basename=basename
  397. else
  398. as_basename=false
  399. fi
  400. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  401. as_dirname=dirname
  402. else
  403. as_dirname=false
  404. fi
  405. as_me=`$as_basename -- "$0" ||
  406. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  407. X"$0" : 'X\(//\)$' \| \
  408. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  409. $as_echo X/"$0" |
  410. sed '/^.*\/\([^/][^/]*\)\/*$/{
  411. s//\1/
  412. q
  413. }
  414. /^X\/\(\/\/\)$/{
  415. s//\1/
  416. q
  417. }
  418. /^X\/\(\/\).*/{
  419. s//\1/
  420. q
  421. }
  422. s/.*/./; q'`
  423. # Avoid depending upon Character Ranges.
  424. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  425. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  426. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  427. as_cr_digits='0123456789'
  428. as_cr_alnum=$as_cr_Letters$as_cr_digits
  429. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  430. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  431. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  432. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  433. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  434. sed -n '
  435. p
  436. /[$]LINENO/=
  437. ' <$as_myself |
  438. sed '
  439. s/[$]LINENO.*/&-/
  440. t lineno
  441. b
  442. :lineno
  443. N
  444. :loop
  445. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  446. t loop
  447. s/-\n.*//
  448. ' >$as_me.lineno &&
  449. chmod +x "$as_me.lineno" ||
  450. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  451. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  452. # already done that, so ensure we don't try to do so again and fall
  453. # in an infinite loop. This has already happened in practice.
  454. _as_can_reexec=no; export _as_can_reexec
  455. # Don't try to exec as it changes $[0], causing all sort of problems
  456. # (the dirname of $[0] is not the place where we might find the
  457. # original and so on. Autoconf is especially sensitive to this).
  458. . "./$as_me.lineno"
  459. # Exit status is that of the last command.
  460. exit
  461. }
  462. ECHO_C= ECHO_N= ECHO_T=
  463. case `echo -n x` in #(((((
  464. -n*)
  465. case `echo 'xy\c'` in
  466. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  467. xy) ECHO_C='\c';;
  468. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  469. ECHO_T=' ';;
  470. esac;;
  471. *)
  472. ECHO_N='-n';;
  473. esac
  474. rm -f conf$$ conf$$.exe conf$$.file
  475. if test -d conf$$.dir; then
  476. rm -f conf$$.dir/conf$$.file
  477. else
  478. rm -f conf$$.dir
  479. mkdir conf$$.dir 2>/dev/null
  480. fi
  481. if (echo >conf$$.file) 2>/dev/null; then
  482. if ln -s conf$$.file conf$$ 2>/dev/null; then
  483. as_ln_s='ln -s'
  484. # ... but there are two gotchas:
  485. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  486. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  487. # In both cases, we have to default to `cp -pR'.
  488. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  489. as_ln_s='cp -pR'
  490. elif ln conf$$.file conf$$ 2>/dev/null; then
  491. as_ln_s=ln
  492. else
  493. as_ln_s='cp -pR'
  494. fi
  495. else
  496. as_ln_s='cp -pR'
  497. fi
  498. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  499. rmdir conf$$.dir 2>/dev/null
  500. if mkdir -p . 2>/dev/null; then
  501. as_mkdir_p='mkdir -p "$as_dir"'
  502. else
  503. test -d ./-p && rmdir ./-p
  504. as_mkdir_p=false
  505. fi
  506. as_test_x='test -x'
  507. as_executable_p=as_fn_executable_p
  508. # Sed expression to map a string onto a valid CPP name.
  509. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  510. # Sed expression to map a string onto a valid variable name.
  511. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  512. test -n "$DJDIR" || exec 7<&0 </dev/null
  513. exec 6>&1
  514. # Name of the host.
  515. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  516. # so uname gets run too.
  517. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  518. #
  519. # Initializations.
  520. #
  521. ac_default_prefix=/usr/local
  522. ac_clean_files=
  523. ac_config_libobj_dir=.
  524. LIBOBJS=
  525. cross_compiling=no
  526. subdirs=
  527. MFLAGS=
  528. MAKEFLAGS=
  529. # Identity of this package.
  530. PACKAGE_NAME='ptunnel-ng'
  531. PACKAGE_TARNAME='ptunnel-ng'
  532. PACKAGE_VERSION='1.41'
  533. PACKAGE_STRING='ptunnel-ng 1.41'
  534. PACKAGE_BUGREPORT=''
  535. PACKAGE_URL=''
  536. ac_unique_file="src/config.h.in"
  537. # Factoring default headers for most tests.
  538. ac_includes_default="\
  539. #include <stdio.h>
  540. #ifdef HAVE_SYS_TYPES_H
  541. # include <sys/types.h>
  542. #endif
  543. #ifdef HAVE_SYS_STAT_H
  544. # include <sys/stat.h>
  545. #endif
  546. #ifdef STDC_HEADERS
  547. # include <stdlib.h>
  548. # include <stddef.h>
  549. #else
  550. # ifdef HAVE_STDLIB_H
  551. # include <stdlib.h>
  552. # endif
  553. #endif
  554. #ifdef HAVE_STRING_H
  555. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  556. # include <memory.h>
  557. # endif
  558. # include <string.h>
  559. #endif
  560. #ifdef HAVE_STRINGS_H
  561. # include <strings.h>
  562. #endif
  563. #ifdef HAVE_INTTYPES_H
  564. # include <inttypes.h>
  565. #endif
  566. #ifdef HAVE_STDINT_H
  567. # include <stdint.h>
  568. #endif
  569. #ifdef HAVE_UNISTD_H
  570. # include <unistd.h>
  571. #endif"
  572. ac_subst_vars='am__EXEEXT_FALSE
  573. am__EXEEXT_TRUE
  574. LTLIBOBJS
  575. USE_CUSTOMRNG_FALSE
  576. USE_CUSTOMRNG_TRUE
  577. HAVE_ARC4RANDOM_FALSE
  578. HAVE_ARC4RANDOM_TRUE
  579. HAVE_ICMPFILTER_FALSE
  580. HAVE_ICMPFILTER_TRUE
  581. IS_WINDOWS_FALSE
  582. IS_WINDOWS_TRUE
  583. HAVE_SELINUX_FALSE
  584. HAVE_SELINUX_TRUE
  585. HAVE_PCAP_FALSE
  586. HAVE_PCAP_TRUE
  587. DLLTOOL
  588. LIBOBJS
  589. EGREP
  590. GREP
  591. CPP
  592. am__fastdepCC_FALSE
  593. am__fastdepCC_TRUE
  594. CCDEPMODE
  595. am__nodep
  596. AMDEPBACKSLASH
  597. AMDEP_FALSE
  598. AMDEP_TRUE
  599. am__quote
  600. am__include
  601. DEPDIR
  602. OBJEXT
  603. EXEEXT
  604. ac_ct_CC
  605. CPPFLAGS
  606. LDFLAGS
  607. CFLAGS
  608. CC
  609. am__untar
  610. am__tar
  611. AMTAR
  612. am__leading_dot
  613. SET_MAKE
  614. AWK
  615. mkdir_p
  616. MKDIR_P
  617. INSTALL_STRIP_PROGRAM
  618. STRIP
  619. install_sh
  620. MAKEINFO
  621. AUTOHEADER
  622. AUTOMAKE
  623. AUTOCONF
  624. ACLOCAL
  625. VERSION
  626. PACKAGE
  627. CYGPATH_W
  628. am__isrc
  629. INSTALL_DATA
  630. INSTALL_SCRIPT
  631. INSTALL_PROGRAM
  632. AM_BACKSLASH
  633. AM_DEFAULT_VERBOSITY
  634. AM_DEFAULT_V
  635. AM_V
  636. host_os
  637. host_vendor
  638. host_cpu
  639. host
  640. build_os
  641. build_vendor
  642. build_cpu
  643. build
  644. target_alias
  645. host_alias
  646. build_alias
  647. LIBS
  648. ECHO_T
  649. ECHO_N
  650. ECHO_C
  651. DEFS
  652. mandir
  653. localedir
  654. libdir
  655. psdir
  656. pdfdir
  657. dvidir
  658. htmldir
  659. infodir
  660. docdir
  661. oldincludedir
  662. includedir
  663. runstatedir
  664. localstatedir
  665. sharedstatedir
  666. sysconfdir
  667. datadir
  668. datarootdir
  669. libexecdir
  670. sbindir
  671. bindir
  672. program_transform_name
  673. prefix
  674. exec_prefix
  675. PACKAGE_URL
  676. PACKAGE_BUGREPORT
  677. PACKAGE_STRING
  678. PACKAGE_VERSION
  679. PACKAGE_TARNAME
  680. PACKAGE_NAME
  681. PATH_SEPARATOR
  682. SHELL'
  683. ac_subst_files=''
  684. ac_user_opts='
  685. enable_option_checking
  686. enable_silent_rules
  687. enable_dependency_tracking
  688. enable_pcap
  689. enable_selinux
  690. with_rngdev
  691. '
  692. ac_precious_vars='build_alias
  693. host_alias
  694. target_alias
  695. CC
  696. CFLAGS
  697. LDFLAGS
  698. LIBS
  699. CPPFLAGS
  700. CPP'
  701. # Initialize some variables set by options.
  702. ac_init_help=
  703. ac_init_version=false
  704. ac_unrecognized_opts=
  705. ac_unrecognized_sep=
  706. # The variables have the same names as the options, with
  707. # dashes changed to underlines.
  708. cache_file=/dev/null
  709. exec_prefix=NONE
  710. no_create=
  711. no_recursion=
  712. prefix=NONE
  713. program_prefix=NONE
  714. program_suffix=NONE
  715. program_transform_name=s,x,x,
  716. silent=
  717. site=
  718. srcdir=
  719. verbose=
  720. x_includes=NONE
  721. x_libraries=NONE
  722. # Installation directory options.
  723. # These are left unexpanded so users can "make install exec_prefix=/foo"
  724. # and all the variables that are supposed to be based on exec_prefix
  725. # by default will actually change.
  726. # Use braces instead of parens because sh, perl, etc. also accept them.
  727. # (The list follows the same order as the GNU Coding Standards.)
  728. bindir='${exec_prefix}/bin'
  729. sbindir='${exec_prefix}/sbin'
  730. libexecdir='${exec_prefix}/libexec'
  731. datarootdir='${prefix}/share'
  732. datadir='${datarootdir}'
  733. sysconfdir='${prefix}/etc'
  734. sharedstatedir='${prefix}/com'
  735. localstatedir='${prefix}/var'
  736. runstatedir='${localstatedir}/run'
  737. includedir='${prefix}/include'
  738. oldincludedir='/usr/include'
  739. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  740. infodir='${datarootdir}/info'
  741. htmldir='${docdir}'
  742. dvidir='${docdir}'
  743. pdfdir='${docdir}'
  744. psdir='${docdir}'
  745. libdir='${exec_prefix}/lib'
  746. localedir='${datarootdir}/locale'
  747. mandir='${datarootdir}/man'
  748. ac_prev=
  749. ac_dashdash=
  750. for ac_option
  751. do
  752. # If the previous option needs an argument, assign it.
  753. if test -n "$ac_prev"; then
  754. eval $ac_prev=\$ac_option
  755. ac_prev=
  756. continue
  757. fi
  758. case $ac_option in
  759. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  760. *=) ac_optarg= ;;
  761. *) ac_optarg=yes ;;
  762. esac
  763. # Accept the important Cygnus configure options, so we can diagnose typos.
  764. case $ac_dashdash$ac_option in
  765. --)
  766. ac_dashdash=yes ;;
  767. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  768. ac_prev=bindir ;;
  769. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  770. bindir=$ac_optarg ;;
  771. -build | --build | --buil | --bui | --bu)
  772. ac_prev=build_alias ;;
  773. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  774. build_alias=$ac_optarg ;;
  775. -cache-file | --cache-file | --cache-fil | --cache-fi \
  776. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  777. ac_prev=cache_file ;;
  778. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  779. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  780. cache_file=$ac_optarg ;;
  781. --config-cache | -C)
  782. cache_file=config.cache ;;
  783. -datadir | --datadir | --datadi | --datad)
  784. ac_prev=datadir ;;
  785. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  786. datadir=$ac_optarg ;;
  787. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  788. | --dataroo | --dataro | --datar)
  789. ac_prev=datarootdir ;;
  790. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  791. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  792. datarootdir=$ac_optarg ;;
  793. -disable-* | --disable-*)
  794. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  795. # Reject names that are not valid shell variable names.
  796. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  797. as_fn_error $? "invalid feature name: $ac_useropt"
  798. ac_useropt_orig=$ac_useropt
  799. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  800. case $ac_user_opts in
  801. *"
  802. "enable_$ac_useropt"
  803. "*) ;;
  804. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  805. ac_unrecognized_sep=', ';;
  806. esac
  807. eval enable_$ac_useropt=no ;;
  808. -docdir | --docdir | --docdi | --doc | --do)
  809. ac_prev=docdir ;;
  810. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  811. docdir=$ac_optarg ;;
  812. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  813. ac_prev=dvidir ;;
  814. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  815. dvidir=$ac_optarg ;;
  816. -enable-* | --enable-*)
  817. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  818. # Reject names that are not valid shell variable names.
  819. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  820. as_fn_error $? "invalid feature name: $ac_useropt"
  821. ac_useropt_orig=$ac_useropt
  822. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  823. case $ac_user_opts in
  824. *"
  825. "enable_$ac_useropt"
  826. "*) ;;
  827. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  828. ac_unrecognized_sep=', ';;
  829. esac
  830. eval enable_$ac_useropt=\$ac_optarg ;;
  831. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  832. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  833. | --exec | --exe | --ex)
  834. ac_prev=exec_prefix ;;
  835. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  836. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  837. | --exec=* | --exe=* | --ex=*)
  838. exec_prefix=$ac_optarg ;;
  839. -gas | --gas | --ga | --g)
  840. # Obsolete; use --with-gas.
  841. with_gas=yes ;;
  842. -help | --help | --hel | --he | -h)
  843. ac_init_help=long ;;
  844. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  845. ac_init_help=recursive ;;
  846. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  847. ac_init_help=short ;;
  848. -host | --host | --hos | --ho)
  849. ac_prev=host_alias ;;
  850. -host=* | --host=* | --hos=* | --ho=*)
  851. host_alias=$ac_optarg ;;
  852. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  853. ac_prev=htmldir ;;
  854. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  855. | --ht=*)
  856. htmldir=$ac_optarg ;;
  857. -includedir | --includedir | --includedi | --included | --include \
  858. | --includ | --inclu | --incl | --inc)
  859. ac_prev=includedir ;;
  860. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  861. | --includ=* | --inclu=* | --incl=* | --inc=*)
  862. includedir=$ac_optarg ;;
  863. -infodir | --infodir | --infodi | --infod | --info | --inf)
  864. ac_prev=infodir ;;
  865. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  866. infodir=$ac_optarg ;;
  867. -libdir | --libdir | --libdi | --libd)
  868. ac_prev=libdir ;;
  869. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  870. libdir=$ac_optarg ;;
  871. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  872. | --libexe | --libex | --libe)
  873. ac_prev=libexecdir ;;
  874. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  875. | --libexe=* | --libex=* | --libe=*)
  876. libexecdir=$ac_optarg ;;
  877. -localedir | --localedir | --localedi | --localed | --locale)
  878. ac_prev=localedir ;;
  879. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  880. localedir=$ac_optarg ;;
  881. -localstatedir | --localstatedir | --localstatedi | --localstated \
  882. | --localstate | --localstat | --localsta | --localst | --locals)
  883. ac_prev=localstatedir ;;
  884. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  885. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  886. localstatedir=$ac_optarg ;;
  887. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  888. ac_prev=mandir ;;
  889. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  890. mandir=$ac_optarg ;;
  891. -nfp | --nfp | --nf)
  892. # Obsolete; use --without-fp.
  893. with_fp=no ;;
  894. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  895. | --no-cr | --no-c | -n)
  896. no_create=yes ;;
  897. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  898. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  899. no_recursion=yes ;;
  900. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  901. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  902. | --oldin | --oldi | --old | --ol | --o)
  903. ac_prev=oldincludedir ;;
  904. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  905. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  906. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  907. oldincludedir=$ac_optarg ;;
  908. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  909. ac_prev=prefix ;;
  910. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  911. prefix=$ac_optarg ;;
  912. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  913. | --program-pre | --program-pr | --program-p)
  914. ac_prev=program_prefix ;;
  915. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  916. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  917. program_prefix=$ac_optarg ;;
  918. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  919. | --program-suf | --program-su | --program-s)
  920. ac_prev=program_suffix ;;
  921. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  922. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  923. program_suffix=$ac_optarg ;;
  924. -program-transform-name | --program-transform-name \
  925. | --program-transform-nam | --program-transform-na \
  926. | --program-transform-n | --program-transform- \
  927. | --program-transform | --program-transfor \
  928. | --program-transfo | --program-transf \
  929. | --program-trans | --program-tran \
  930. | --progr-tra | --program-tr | --program-t)
  931. ac_prev=program_transform_name ;;
  932. -program-transform-name=* | --program-transform-name=* \
  933. | --program-transform-nam=* | --program-transform-na=* \
  934. | --program-transform-n=* | --program-transform-=* \
  935. | --program-transform=* | --program-transfor=* \
  936. | --program-transfo=* | --program-transf=* \
  937. | --program-trans=* | --program-tran=* \
  938. | --progr-tra=* | --program-tr=* | --program-t=*)
  939. program_transform_name=$ac_optarg ;;
  940. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  941. ac_prev=pdfdir ;;
  942. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  943. pdfdir=$ac_optarg ;;
  944. -psdir | --psdir | --psdi | --psd | --ps)
  945. ac_prev=psdir ;;
  946. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  947. psdir=$ac_optarg ;;
  948. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  949. | -silent | --silent | --silen | --sile | --sil)
  950. silent=yes ;;
  951. -runstatedir | --runstatedir | --runstatedi | --runstated \
  952. | --runstate | --runstat | --runsta | --runst | --runs \
  953. | --run | --ru | --r)
  954. ac_prev=runstatedir ;;
  955. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  956. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  957. | --run=* | --ru=* | --r=*)
  958. runstatedir=$ac_optarg ;;
  959. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  960. ac_prev=sbindir ;;
  961. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  962. | --sbi=* | --sb=*)
  963. sbindir=$ac_optarg ;;
  964. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  965. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  966. | --sharedst | --shareds | --shared | --share | --shar \
  967. | --sha | --sh)
  968. ac_prev=sharedstatedir ;;
  969. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  970. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  971. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  972. | --sha=* | --sh=*)
  973. sharedstatedir=$ac_optarg ;;
  974. -site | --site | --sit)
  975. ac_prev=site ;;
  976. -site=* | --site=* | --sit=*)
  977. site=$ac_optarg ;;
  978. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  979. ac_prev=srcdir ;;
  980. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  981. srcdir=$ac_optarg ;;
  982. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  983. | --syscon | --sysco | --sysc | --sys | --sy)
  984. ac_prev=sysconfdir ;;
  985. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  986. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  987. sysconfdir=$ac_optarg ;;
  988. -target | --target | --targe | --targ | --tar | --ta | --t)
  989. ac_prev=target_alias ;;
  990. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  991. target_alias=$ac_optarg ;;
  992. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  993. verbose=yes ;;
  994. -version | --version | --versio | --versi | --vers | -V)
  995. ac_init_version=: ;;
  996. -with-* | --with-*)
  997. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  998. # Reject names that are not valid shell variable names.
  999. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1000. as_fn_error $? "invalid package name: $ac_useropt"
  1001. ac_useropt_orig=$ac_useropt
  1002. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1003. case $ac_user_opts in
  1004. *"
  1005. "with_$ac_useropt"
  1006. "*) ;;
  1007. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1008. ac_unrecognized_sep=', ';;
  1009. esac
  1010. eval with_$ac_useropt=\$ac_optarg ;;
  1011. -without-* | --without-*)
  1012. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1013. # Reject names that are not valid shell variable names.
  1014. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1015. as_fn_error $? "invalid package name: $ac_useropt"
  1016. ac_useropt_orig=$ac_useropt
  1017. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1018. case $ac_user_opts in
  1019. *"
  1020. "with_$ac_useropt"
  1021. "*) ;;
  1022. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1023. ac_unrecognized_sep=', ';;
  1024. esac
  1025. eval with_$ac_useropt=no ;;
  1026. --x)
  1027. # Obsolete; use --with-x.
  1028. with_x=yes ;;
  1029. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1030. | --x-incl | --x-inc | --x-in | --x-i)
  1031. ac_prev=x_includes ;;
  1032. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1033. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1034. x_includes=$ac_optarg ;;
  1035. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1036. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1037. ac_prev=x_libraries ;;
  1038. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1039. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1040. x_libraries=$ac_optarg ;;
  1041. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1042. Try \`$0 --help' for more information"
  1043. ;;
  1044. *=*)
  1045. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1046. # Reject names that are not valid shell variable names.
  1047. case $ac_envvar in #(
  1048. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1049. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1050. esac
  1051. eval $ac_envvar=\$ac_optarg
  1052. export $ac_envvar ;;
  1053. *)
  1054. # FIXME: should be removed in autoconf 3.0.
  1055. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1056. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1057. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1058. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1059. ;;
  1060. esac
  1061. done
  1062. if test -n "$ac_prev"; then
  1063. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1064. as_fn_error $? "missing argument to $ac_option"
  1065. fi
  1066. if test -n "$ac_unrecognized_opts"; then
  1067. case $enable_option_checking in
  1068. no) ;;
  1069. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1070. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1071. esac
  1072. fi
  1073. # Check all directory arguments for consistency.
  1074. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1075. datadir sysconfdir sharedstatedir localstatedir includedir \
  1076. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1077. libdir localedir mandir runstatedir
  1078. do
  1079. eval ac_val=\$$ac_var
  1080. # Remove trailing slashes.
  1081. case $ac_val in
  1082. */ )
  1083. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1084. eval $ac_var=\$ac_val;;
  1085. esac
  1086. # Be sure to have absolute directory names.
  1087. case $ac_val in
  1088. [\\/$]* | ?:[\\/]* ) continue;;
  1089. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1090. esac
  1091. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1092. done
  1093. # There might be people who depend on the old broken behavior: `$host'
  1094. # used to hold the argument of --host etc.
  1095. # FIXME: To remove some day.
  1096. build=$build_alias
  1097. host=$host_alias
  1098. target=$target_alias
  1099. # FIXME: To remove some day.
  1100. if test "x$host_alias" != x; then
  1101. if test "x$build_alias" = x; then
  1102. cross_compiling=maybe
  1103. elif test "x$build_alias" != "x$host_alias"; then
  1104. cross_compiling=yes
  1105. fi
  1106. fi
  1107. ac_tool_prefix=
  1108. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1109. test "$silent" = yes && exec 6>/dev/null
  1110. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1111. ac_ls_di=`ls -di .` &&
  1112. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1113. as_fn_error $? "working directory cannot be determined"
  1114. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1115. as_fn_error $? "pwd does not report name of working directory"
  1116. # Find the source files, if location was not specified.
  1117. if test -z "$srcdir"; then
  1118. ac_srcdir_defaulted=yes
  1119. # Try the directory containing this script, then the parent directory.
  1120. ac_confdir=`$as_dirname -- "$as_myself" ||
  1121. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1122. X"$as_myself" : 'X\(//\)[^/]' \| \
  1123. X"$as_myself" : 'X\(//\)$' \| \
  1124. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1125. $as_echo X"$as_myself" |
  1126. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1127. s//\1/
  1128. q
  1129. }
  1130. /^X\(\/\/\)[^/].*/{
  1131. s//\1/
  1132. q
  1133. }
  1134. /^X\(\/\/\)$/{
  1135. s//\1/
  1136. q
  1137. }
  1138. /^X\(\/\).*/{
  1139. s//\1/
  1140. q
  1141. }
  1142. s/.*/./; q'`
  1143. srcdir=$ac_confdir
  1144. if test ! -r "$srcdir/$ac_unique_file"; then
  1145. srcdir=..
  1146. fi
  1147. else
  1148. ac_srcdir_defaulted=no
  1149. fi
  1150. if test ! -r "$srcdir/$ac_unique_file"; then
  1151. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1152. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1153. fi
  1154. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1155. ac_abs_confdir=`(
  1156. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1157. pwd)`
  1158. # When building in place, set srcdir=.
  1159. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1160. srcdir=.
  1161. fi
  1162. # Remove unnecessary trailing slashes from srcdir.
  1163. # Double slashes in file names in object file debugging info
  1164. # mess up M-x gdb in Emacs.
  1165. case $srcdir in
  1166. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1167. esac
  1168. for ac_var in $ac_precious_vars; do
  1169. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1170. eval ac_env_${ac_var}_value=\$${ac_var}
  1171. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1172. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1173. done
  1174. #
  1175. # Report the --help message.
  1176. #
  1177. if test "$ac_init_help" = "long"; then
  1178. # Omit some internal or obsolete options to make the list less imposing.
  1179. # This message is too long to be a string in the A/UX 3.1 sh.
  1180. cat <<_ACEOF
  1181. \`configure' configures ptunnel-ng 1.41 to adapt to many kinds of systems.
  1182. Usage: $0 [OPTION]... [VAR=VALUE]...
  1183. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1184. VAR=VALUE. See below for descriptions of some of the useful variables.
  1185. Defaults for the options are specified in brackets.
  1186. Configuration:
  1187. -h, --help display this help and exit
  1188. --help=short display options specific to this package
  1189. --help=recursive display the short help of all the included packages
  1190. -V, --version display version information and exit
  1191. -q, --quiet, --silent do not print \`checking ...' messages
  1192. --cache-file=FILE cache test results in FILE [disabled]
  1193. -C, --config-cache alias for \`--cache-file=config.cache'
  1194. -n, --no-create do not create output files
  1195. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1196. Installation directories:
  1197. --prefix=PREFIX install architecture-independent files in PREFIX
  1198. [$ac_default_prefix]
  1199. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1200. [PREFIX]
  1201. By default, \`make install' will install all the files in
  1202. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1203. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1204. for instance \`--prefix=\$HOME'.
  1205. For better control, use the options below.
  1206. Fine tuning of the installation directories:
  1207. --bindir=DIR user executables [EPREFIX/bin]
  1208. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1209. --libexecdir=DIR program executables [EPREFIX/libexec]
  1210. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1211. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1212. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1213. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1214. --libdir=DIR object code libraries [EPREFIX/lib]
  1215. --includedir=DIR C header files [PREFIX/include]
  1216. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1217. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1218. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1219. --infodir=DIR info documentation [DATAROOTDIR/info]
  1220. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1221. --mandir=DIR man documentation [DATAROOTDIR/man]
  1222. --docdir=DIR documentation root [DATAROOTDIR/doc/ptunnel-ng]
  1223. --htmldir=DIR html documentation [DOCDIR]
  1224. --dvidir=DIR dvi documentation [DOCDIR]
  1225. --pdfdir=DIR pdf documentation [DOCDIR]
  1226. --psdir=DIR ps documentation [DOCDIR]
  1227. _ACEOF
  1228. cat <<\_ACEOF
  1229. Program names:
  1230. --program-prefix=PREFIX prepend PREFIX to installed program names
  1231. --program-suffix=SUFFIX append SUFFIX to installed program names
  1232. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1233. System types:
  1234. --build=BUILD configure for building on BUILD [guessed]
  1235. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1236. _ACEOF
  1237. fi
  1238. if test -n "$ac_init_help"; then
  1239. case $ac_init_help in
  1240. short | recursive ) echo "Configuration of ptunnel-ng 1.41:";;
  1241. esac
  1242. cat <<\_ACEOF
  1243. Optional Features:
  1244. --disable-option-checking ignore unrecognized --enable/--with options
  1245. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1246. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1247. --enable-silent-rules less verbose build output (undo: "make V=1")
  1248. --disable-silent-rules verbose build output (undo: "make V=0")
  1249. --enable-dependency-tracking
  1250. do not reject slow dependency extractors
  1251. --disable-dependency-tracking
  1252. speeds up one-time build
  1253. --disable-pcap Disable pcap support. (default: enabled if found)
  1254. --disable-selinux Disable SELINUX support. (default: enabled if found)
  1255. Optional Packages:
  1256. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1257. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1258. --with-rngdev Set an alternative random device. (default:
  1259. /dev/random)
  1260. Some influential environment variables:
  1261. CC C compiler command
  1262. CFLAGS C compiler flags
  1263. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1264. nonstandard directory <lib dir>
  1265. LIBS libraries to pass to the linker, e.g. -l<library>
  1266. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1267. you have headers in a nonstandard directory <include dir>
  1268. CPP C preprocessor
  1269. Use these variables to override the choices made by `configure' or to help
  1270. it to find libraries and programs with nonstandard names/locations.
  1271. Report bugs to the package provider.
  1272. _ACEOF
  1273. ac_status=$?
  1274. fi
  1275. if test "$ac_init_help" = "recursive"; then
  1276. # If there are subdirs, report their specific --help.
  1277. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1278. test -d "$ac_dir" ||
  1279. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1280. continue
  1281. ac_builddir=.
  1282. case "$ac_dir" in
  1283. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1284. *)
  1285. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1286. # A ".." for each directory in $ac_dir_suffix.
  1287. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1288. case $ac_top_builddir_sub in
  1289. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1290. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1291. esac ;;
  1292. esac
  1293. ac_abs_top_builddir=$ac_pwd
  1294. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1295. # for backward compatibility:
  1296. ac_top_builddir=$ac_top_build_prefix
  1297. case $srcdir in
  1298. .) # We are building in place.
  1299. ac_srcdir=.
  1300. ac_top_srcdir=$ac_top_builddir_sub
  1301. ac_abs_top_srcdir=$ac_pwd ;;
  1302. [\\/]* | ?:[\\/]* ) # Absolute name.
  1303. ac_srcdir=$srcdir$ac_dir_suffix;
  1304. ac_top_srcdir=$srcdir
  1305. ac_abs_top_srcdir=$srcdir ;;
  1306. *) # Relative name.
  1307. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1308. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1309. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1310. esac
  1311. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1312. cd "$ac_dir" || { ac_status=$?; continue; }
  1313. # Check for guested configure.
  1314. if test -f "$ac_srcdir/configure.gnu"; then
  1315. echo &&
  1316. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1317. elif test -f "$ac_srcdir/configure"; then
  1318. echo &&
  1319. $SHELL "$ac_srcdir/configure" --help=recursive
  1320. else
  1321. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1322. fi || ac_status=$?
  1323. cd "$ac_pwd" || { ac_status=$?; break; }
  1324. done
  1325. fi
  1326. test -n "$ac_init_help" && exit $ac_status
  1327. if $ac_init_version; then
  1328. cat <<\_ACEOF
  1329. ptunnel-ng configure 1.41
  1330. generated by GNU Autoconf 2.69
  1331. Copyright (C) 2012 Free Software Foundation, Inc.
  1332. This configure script is free software; the Free Software Foundation
  1333. gives unlimited permission to copy, distribute and modify it.
  1334. _ACEOF
  1335. exit
  1336. fi
  1337. ## ------------------------ ##
  1338. ## Autoconf initialization. ##
  1339. ## ------------------------ ##
  1340. # ac_fn_c_try_compile LINENO
  1341. # --------------------------
  1342. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1343. ac_fn_c_try_compile ()
  1344. {
  1345. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1346. rm -f conftest.$ac_objext
  1347. if { { ac_try="$ac_compile"
  1348. case "(($ac_try" in
  1349. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1350. *) ac_try_echo=$ac_try;;
  1351. esac
  1352. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1353. $as_echo "$ac_try_echo"; } >&5
  1354. (eval "$ac_compile") 2>conftest.err
  1355. ac_status=$?
  1356. if test -s conftest.err; then
  1357. grep -v '^ *+' conftest.err >conftest.er1
  1358. cat conftest.er1 >&5
  1359. mv -f conftest.er1 conftest.err
  1360. fi
  1361. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1362. test $ac_status = 0; } && {
  1363. test -z "$ac_c_werror_flag" ||
  1364. test ! -s conftest.err
  1365. } && test -s conftest.$ac_objext; then :
  1366. ac_retval=0
  1367. else
  1368. $as_echo "$as_me: failed program was:" >&5
  1369. sed 's/^/| /' conftest.$ac_ext >&5
  1370. ac_retval=1
  1371. fi
  1372. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1373. as_fn_set_status $ac_retval
  1374. } # ac_fn_c_try_compile
  1375. # ac_fn_c_try_cpp LINENO
  1376. # ----------------------
  1377. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1378. ac_fn_c_try_cpp ()
  1379. {
  1380. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1381. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1382. case "(($ac_try" in
  1383. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1384. *) ac_try_echo=$ac_try;;
  1385. esac
  1386. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1387. $as_echo "$ac_try_echo"; } >&5
  1388. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1389. ac_status=$?
  1390. if test -s conftest.err; then
  1391. grep -v '^ *+' conftest.err >conftest.er1
  1392. cat conftest.er1 >&5
  1393. mv -f conftest.er1 conftest.err
  1394. fi
  1395. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1396. test $ac_status = 0; } > conftest.i && {
  1397. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1398. test ! -s conftest.err
  1399. }; then :
  1400. ac_retval=0
  1401. else
  1402. $as_echo "$as_me: failed program was:" >&5
  1403. sed 's/^/| /' conftest.$ac_ext >&5
  1404. ac_retval=1
  1405. fi
  1406. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1407. as_fn_set_status $ac_retval
  1408. } # ac_fn_c_try_cpp
  1409. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1410. # -------------------------------------------------------
  1411. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1412. # the include files in INCLUDES and setting the cache variable VAR
  1413. # accordingly.
  1414. ac_fn_c_check_header_mongrel ()
  1415. {
  1416. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1417. if eval \${$3+:} false; then :
  1418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1419. $as_echo_n "checking for $2... " >&6; }
  1420. if eval \${$3+:} false; then :
  1421. $as_echo_n "(cached) " >&6
  1422. fi
  1423. eval ac_res=\$$3
  1424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1425. $as_echo "$ac_res" >&6; }
  1426. else
  1427. # Is the header compilable?
  1428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1429. $as_echo_n "checking $2 usability... " >&6; }
  1430. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1431. /* end confdefs.h. */
  1432. $4
  1433. #include <$2>
  1434. _ACEOF
  1435. if ac_fn_c_try_compile "$LINENO"; then :
  1436. ac_header_compiler=yes
  1437. else
  1438. ac_header_compiler=no
  1439. fi
  1440. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1442. $as_echo "$ac_header_compiler" >&6; }
  1443. # Is the header present?
  1444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1445. $as_echo_n "checking $2 presence... " >&6; }
  1446. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1447. /* end confdefs.h. */
  1448. #include <$2>
  1449. _ACEOF
  1450. if ac_fn_c_try_cpp "$LINENO"; then :
  1451. ac_header_preproc=yes
  1452. else
  1453. ac_header_preproc=no
  1454. fi
  1455. rm -f conftest.err conftest.i conftest.$ac_ext
  1456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1457. $as_echo "$ac_header_preproc" >&6; }
  1458. # So? What about this header?
  1459. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1460. yes:no: )
  1461. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1462. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1463. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1464. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1465. ;;
  1466. no:yes:* )
  1467. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1468. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1469. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1470. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1471. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1472. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1473. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1474. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1475. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1476. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1477. ;;
  1478. esac
  1479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1480. $as_echo_n "checking for $2... " >&6; }
  1481. if eval \${$3+:} false; then :
  1482. $as_echo_n "(cached) " >&6
  1483. else
  1484. eval "$3=\$ac_header_compiler"
  1485. fi
  1486. eval ac_res=\$$3
  1487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1488. $as_echo "$ac_res" >&6; }
  1489. fi
  1490. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1491. } # ac_fn_c_check_header_mongrel
  1492. # ac_fn_c_try_run LINENO
  1493. # ----------------------
  1494. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1495. # that executables *can* be run.
  1496. ac_fn_c_try_run ()
  1497. {
  1498. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1499. if { { ac_try="$ac_link"
  1500. case "(($ac_try" in
  1501. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1502. *) ac_try_echo=$ac_try;;
  1503. esac
  1504. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1505. $as_echo "$ac_try_echo"; } >&5
  1506. (eval "$ac_link") 2>&5
  1507. ac_status=$?
  1508. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1509. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1510. { { case "(($ac_try" in
  1511. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1512. *) ac_try_echo=$ac_try;;
  1513. esac
  1514. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1515. $as_echo "$ac_try_echo"; } >&5
  1516. (eval "$ac_try") 2>&5
  1517. ac_status=$?
  1518. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1519. test $ac_status = 0; }; }; then :
  1520. ac_retval=0
  1521. else
  1522. $as_echo "$as_me: program exited with status $ac_status" >&5
  1523. $as_echo "$as_me: failed program was:" >&5
  1524. sed 's/^/| /' conftest.$ac_ext >&5
  1525. ac_retval=$ac_status
  1526. fi
  1527. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1528. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1529. as_fn_set_status $ac_retval
  1530. } # ac_fn_c_try_run
  1531. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1532. # -------------------------------------------------------
  1533. # Tests whether HEADER exists and can be compiled using the include files in
  1534. # INCLUDES, setting the cache variable VAR accordingly.
  1535. ac_fn_c_check_header_compile ()
  1536. {
  1537. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1539. $as_echo_n "checking for $2... " >&6; }
  1540. if eval \${$3+:} false; then :
  1541. $as_echo_n "(cached) " >&6
  1542. else
  1543. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1544. /* end confdefs.h. */
  1545. $4
  1546. #include <$2>
  1547. _ACEOF
  1548. if ac_fn_c_try_compile "$LINENO"; then :
  1549. eval "$3=yes"
  1550. else
  1551. eval "$3=no"
  1552. fi
  1553. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1554. fi
  1555. eval ac_res=\$$3
  1556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1557. $as_echo "$ac_res" >&6; }
  1558. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1559. } # ac_fn_c_check_header_compile
  1560. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1561. # -------------------------------------------
  1562. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1563. # variable VAR accordingly.
  1564. ac_fn_c_check_type ()
  1565. {
  1566. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1568. $as_echo_n "checking for $2... " >&6; }
  1569. if eval \${$3+:} false; then :
  1570. $as_echo_n "(cached) " >&6
  1571. else
  1572. eval "$3=no"
  1573. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1574. /* end confdefs.h. */
  1575. $4
  1576. int
  1577. main ()
  1578. {
  1579. if (sizeof ($2))
  1580. return 0;
  1581. ;
  1582. return 0;
  1583. }
  1584. _ACEOF
  1585. if ac_fn_c_try_compile "$LINENO"; then :
  1586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1587. /* end confdefs.h. */
  1588. $4
  1589. int
  1590. main ()
  1591. {
  1592. if (sizeof (($2)))
  1593. return 0;
  1594. ;
  1595. return 0;
  1596. }
  1597. _ACEOF
  1598. if ac_fn_c_try_compile "$LINENO"; then :
  1599. else
  1600. eval "$3=yes"
  1601. fi
  1602. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1603. fi
  1604. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1605. fi
  1606. eval ac_res=\$$3
  1607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1608. $as_echo "$ac_res" >&6; }
  1609. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1610. } # ac_fn_c_check_type
  1611. # ac_fn_c_try_link LINENO
  1612. # -----------------------
  1613. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1614. ac_fn_c_try_link ()
  1615. {
  1616. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1617. rm -f conftest.$ac_objext conftest$ac_exeext
  1618. if { { ac_try="$ac_link"
  1619. case "(($ac_try" in
  1620. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1621. *) ac_try_echo=$ac_try;;
  1622. esac
  1623. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1624. $as_echo "$ac_try_echo"; } >&5
  1625. (eval "$ac_link") 2>conftest.err
  1626. ac_status=$?
  1627. if test -s conftest.err; then
  1628. grep -v '^ *+' conftest.err >conftest.er1
  1629. cat conftest.er1 >&5
  1630. mv -f conftest.er1 conftest.err
  1631. fi
  1632. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1633. test $ac_status = 0; } && {
  1634. test -z "$ac_c_werror_flag" ||
  1635. test ! -s conftest.err
  1636. } && test -s conftest$ac_exeext && {
  1637. test "$cross_compiling" = yes ||
  1638. test -x conftest$ac_exeext
  1639. }; then :
  1640. ac_retval=0
  1641. else
  1642. $as_echo "$as_me: failed program was:" >&5
  1643. sed 's/^/| /' conftest.$ac_ext >&5
  1644. ac_retval=1
  1645. fi
  1646. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1647. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1648. # interfere with the next link command; also delete a directory that is
  1649. # left behind by Apple's compiler. We do this before executing the actions.
  1650. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1651. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1652. as_fn_set_status $ac_retval
  1653. } # ac_fn_c_try_link
  1654. # ac_fn_c_check_func LINENO FUNC VAR
  1655. # ----------------------------------
  1656. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1657. ac_fn_c_check_func ()
  1658. {
  1659. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1661. $as_echo_n "checking for $2... " >&6; }
  1662. if eval \${$3+:} false; then :
  1663. $as_echo_n "(cached) " >&6
  1664. else
  1665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1666. /* end confdefs.h. */
  1667. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1668. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1669. #define $2 innocuous_$2
  1670. /* System header to define __stub macros and hopefully few prototypes,
  1671. which can conflict with char $2 (); below.
  1672. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1673. <limits.h> exists even on freestanding compilers. */
  1674. #ifdef __STDC__
  1675. # include <limits.h>
  1676. #else
  1677. # include <assert.h>
  1678. #endif
  1679. #undef $2
  1680. /* Override any GCC internal prototype to avoid an error.
  1681. Use char because int might match the return type of a GCC
  1682. builtin and then its argument prototype would still apply. */
  1683. #ifdef __cplusplus
  1684. extern "C"
  1685. #endif
  1686. char $2 ();
  1687. /* The GNU C library defines this for functions which it implements
  1688. to always fail with ENOSYS. Some functions are actually named
  1689. something starting with __ and the normal name is an alias. */
  1690. #if defined __stub_$2 || defined __stub___$2
  1691. choke me
  1692. #endif
  1693. int
  1694. main ()
  1695. {
  1696. return $2 ();
  1697. ;
  1698. return 0;
  1699. }
  1700. _ACEOF
  1701. if ac_fn_c_try_link "$LINENO"; then :
  1702. eval "$3=yes"
  1703. else
  1704. eval "$3=no"
  1705. fi
  1706. rm -f core conftest.err conftest.$ac_objext \
  1707. conftest$ac_exeext conftest.$ac_ext
  1708. fi
  1709. eval ac_res=\$$3
  1710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1711. $as_echo "$ac_res" >&6; }
  1712. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1713. } # ac_fn_c_check_func
  1714. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  1715. # ----------------------------------------------------
  1716. # Tries to find if the field MEMBER exists in type AGGR, after including
  1717. # INCLUDES, setting cache variable VAR accordingly.
  1718. ac_fn_c_check_member ()
  1719. {
  1720. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1722. $as_echo_n "checking for $2.$3... " >&6; }
  1723. if eval \${$4+:} false; then :
  1724. $as_echo_n "(cached) " >&6
  1725. else
  1726. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1727. /* end confdefs.h. */
  1728. $5
  1729. int
  1730. main ()
  1731. {
  1732. static $2 ac_aggr;
  1733. if (ac_aggr.$3)
  1734. return 0;
  1735. ;
  1736. return 0;
  1737. }
  1738. _ACEOF
  1739. if ac_fn_c_try_compile "$LINENO"; then :
  1740. eval "$4=yes"
  1741. else
  1742. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1743. /* end confdefs.h. */
  1744. $5
  1745. int
  1746. main ()
  1747. {
  1748. static $2 ac_aggr;
  1749. if (sizeof ac_aggr.$3)
  1750. return 0;
  1751. ;
  1752. return 0;
  1753. }
  1754. _ACEOF
  1755. if ac_fn_c_try_compile "$LINENO"; then :
  1756. eval "$4=yes"
  1757. else
  1758. eval "$4=no"
  1759. fi
  1760. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1761. fi
  1762. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1763. fi
  1764. eval ac_res=\$$4
  1765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1766. $as_echo "$ac_res" >&6; }
  1767. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1768. } # ac_fn_c_check_member
  1769. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1770. # --------------------------------------------
  1771. # Tries to find the compile-time value of EXPR in a program that includes
  1772. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1773. # computed
  1774. ac_fn_c_compute_int ()
  1775. {
  1776. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1777. if test "$cross_compiling" = yes; then
  1778. # Depending upon the size, compute the lo and hi bounds.
  1779. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1780. /* end confdefs.h. */
  1781. $4
  1782. int
  1783. main ()
  1784. {
  1785. static int test_array [1 - 2 * !(($2) >= 0)];
  1786. test_array [0] = 0;
  1787. return test_array [0];
  1788. ;
  1789. return 0;
  1790. }
  1791. _ACEOF
  1792. if ac_fn_c_try_compile "$LINENO"; then :
  1793. ac_lo=0 ac_mid=0
  1794. while :; do
  1795. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1796. /* end confdefs.h. */
  1797. $4
  1798. int
  1799. main ()
  1800. {
  1801. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1802. test_array [0] = 0;
  1803. return test_array [0];
  1804. ;
  1805. return 0;
  1806. }
  1807. _ACEOF
  1808. if ac_fn_c_try_compile "$LINENO"; then :
  1809. ac_hi=$ac_mid; break
  1810. else
  1811. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1812. if test $ac_lo -le $ac_mid; then
  1813. ac_lo= ac_hi=
  1814. break
  1815. fi
  1816. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1817. fi
  1818. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1819. done
  1820. else
  1821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1822. /* end confdefs.h. */
  1823. $4
  1824. int
  1825. main ()
  1826. {
  1827. static int test_array [1 - 2 * !(($2) < 0)];
  1828. test_array [0] = 0;
  1829. return test_array [0];
  1830. ;
  1831. return 0;
  1832. }
  1833. _ACEOF
  1834. if ac_fn_c_try_compile "$LINENO"; then :
  1835. ac_hi=-1 ac_mid=-1
  1836. while :; do
  1837. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1838. /* end confdefs.h. */
  1839. $4
  1840. int
  1841. main ()
  1842. {
  1843. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1844. test_array [0] = 0;
  1845. return test_array [0];
  1846. ;
  1847. return 0;
  1848. }
  1849. _ACEOF
  1850. if ac_fn_c_try_compile "$LINENO"; then :
  1851. ac_lo=$ac_mid; break
  1852. else
  1853. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1854. if test $ac_mid -le $ac_hi; then
  1855. ac_lo= ac_hi=
  1856. break
  1857. fi
  1858. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1859. fi
  1860. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1861. done
  1862. else
  1863. ac_lo= ac_hi=
  1864. fi
  1865. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1866. fi
  1867. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1868. # Binary search between lo and hi bounds.
  1869. while test "x$ac_lo" != "x$ac_hi"; do
  1870. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1871. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1872. /* end confdefs.h. */
  1873. $4
  1874. int
  1875. main ()
  1876. {
  1877. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1878. test_array [0] = 0;
  1879. return test_array [0];
  1880. ;
  1881. return 0;
  1882. }
  1883. _ACEOF
  1884. if ac_fn_c_try_compile "$LINENO"; then :
  1885. ac_hi=$ac_mid
  1886. else
  1887. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1888. fi
  1889. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1890. done
  1891. case $ac_lo in #((
  1892. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1893. '') ac_retval=1 ;;
  1894. esac
  1895. else
  1896. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1897. /* end confdefs.h. */
  1898. $4
  1899. static long int longval () { return $2; }
  1900. static unsigned long int ulongval () { return $2; }
  1901. #include <stdio.h>
  1902. #include <stdlib.h>
  1903. int
  1904. main ()
  1905. {
  1906. FILE *f = fopen ("conftest.val", "w");
  1907. if (! f)
  1908. return 1;
  1909. if (($2) < 0)
  1910. {
  1911. long int i = longval ();
  1912. if (i != ($2))
  1913. return 1;
  1914. fprintf (f, "%ld", i);
  1915. }
  1916. else
  1917. {
  1918. unsigned long int i = ulongval ();
  1919. if (i != ($2))
  1920. return 1;
  1921. fprintf (f, "%lu", i);
  1922. }
  1923. /* Do not output a trailing newline, as this causes \r\n confusion
  1924. on some platforms. */
  1925. return ferror (f) || fclose (f) != 0;
  1926. ;
  1927. return 0;
  1928. }
  1929. _ACEOF
  1930. if ac_fn_c_try_run "$LINENO"; then :
  1931. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1932. else
  1933. ac_retval=1
  1934. fi
  1935. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1936. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1937. rm -f conftest.val
  1938. fi
  1939. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1940. as_fn_set_status $ac_retval
  1941. } # ac_fn_c_compute_int
  1942. cat >config.log <<_ACEOF
  1943. This file contains any messages produced by compilers while
  1944. running configure, to aid debugging if configure makes a mistake.
  1945. It was created by ptunnel-ng $as_me 1.41, which was
  1946. generated by GNU Autoconf 2.69. Invocation command line was
  1947. $ $0 $@
  1948. _ACEOF
  1949. exec 5>>config.log
  1950. {
  1951. cat <<_ASUNAME
  1952. ## --------- ##
  1953. ## Platform. ##
  1954. ## --------- ##
  1955. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1956. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1957. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1958. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1959. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1960. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1961. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1962. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1963. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1964. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1965. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1966. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1967. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1968. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1969. _ASUNAME
  1970. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1971. for as_dir in $PATH
  1972. do
  1973. IFS=$as_save_IFS
  1974. test -z "$as_dir" && as_dir=.
  1975. $as_echo "PATH: $as_dir"
  1976. done
  1977. IFS=$as_save_IFS
  1978. } >&5
  1979. cat >&5 <<_ACEOF
  1980. ## ----------- ##
  1981. ## Core tests. ##
  1982. ## ----------- ##
  1983. _ACEOF
  1984. # Keep a trace of the command line.
  1985. # Strip out --no-create and --no-recursion so they do not pile up.
  1986. # Strip out --silent because we don't want to record it for future runs.
  1987. # Also quote any args containing shell meta-characters.
  1988. # Make two passes to allow for proper duplicate-argument suppression.
  1989. ac_configure_args=
  1990. ac_configure_args0=
  1991. ac_configure_args1=
  1992. ac_must_keep_next=false
  1993. for ac_pass in 1 2
  1994. do
  1995. for ac_arg
  1996. do
  1997. case $ac_arg in
  1998. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1999. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2000. | -silent | --silent | --silen | --sile | --sil)
  2001. continue ;;
  2002. *\'*)
  2003. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2004. esac
  2005. case $ac_pass in
  2006. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2007. 2)
  2008. as_fn_append ac_configure_args1 " '$ac_arg'"
  2009. if test $ac_must_keep_next = true; then
  2010. ac_must_keep_next=false # Got value, back to normal.
  2011. else
  2012. case $ac_arg in
  2013. *=* | --config-cache | -C | -disable-* | --disable-* \
  2014. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2015. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2016. | -with-* | --with-* | -without-* | --without-* | --x)
  2017. case "$ac_configure_args0 " in
  2018. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2019. esac
  2020. ;;
  2021. -* ) ac_must_keep_next=true ;;
  2022. esac
  2023. fi
  2024. as_fn_append ac_configure_args " '$ac_arg'"
  2025. ;;
  2026. esac
  2027. done
  2028. done
  2029. { ac_configure_args0=; unset ac_configure_args0;}
  2030. { ac_configure_args1=; unset ac_configure_args1;}
  2031. # When interrupted or exit'd, cleanup temporary files, and complete
  2032. # config.log. We remove comments because anyway the quotes in there
  2033. # would cause problems or look ugly.
  2034. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2035. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2036. trap 'exit_status=$?
  2037. # Save into config.log some information that might help in debugging.
  2038. {
  2039. echo
  2040. $as_echo "## ---------------- ##
  2041. ## Cache variables. ##
  2042. ## ---------------- ##"
  2043. echo
  2044. # The following way of writing the cache mishandles newlines in values,
  2045. (
  2046. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2047. eval ac_val=\$$ac_var
  2048. case $ac_val in #(
  2049. *${as_nl}*)
  2050. case $ac_var in #(
  2051. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2052. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2053. esac
  2054. case $ac_var in #(
  2055. _ | IFS | as_nl) ;; #(
  2056. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2057. *) { eval $ac_var=; unset $ac_var;} ;;
  2058. esac ;;
  2059. esac
  2060. done
  2061. (set) 2>&1 |
  2062. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2063. *${as_nl}ac_space=\ *)
  2064. sed -n \
  2065. "s/'\''/'\''\\\\'\'''\''/g;
  2066. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2067. ;; #(
  2068. *)
  2069. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2070. ;;
  2071. esac |
  2072. sort
  2073. )
  2074. echo
  2075. $as_echo "## ----------------- ##
  2076. ## Output variables. ##
  2077. ## ----------------- ##"
  2078. echo
  2079. for ac_var in $ac_subst_vars
  2080. do
  2081. eval ac_val=\$$ac_var
  2082. case $ac_val in
  2083. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2084. esac
  2085. $as_echo "$ac_var='\''$ac_val'\''"
  2086. done | sort
  2087. echo
  2088. if test -n "$ac_subst_files"; then
  2089. $as_echo "## ------------------- ##
  2090. ## File substitutions. ##
  2091. ## ------------------- ##"
  2092. echo
  2093. for ac_var in $ac_subst_files
  2094. do
  2095. eval ac_val=\$$ac_var
  2096. case $ac_val in
  2097. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2098. esac
  2099. $as_echo "$ac_var='\''$ac_val'\''"
  2100. done | sort
  2101. echo
  2102. fi
  2103. if test -s confdefs.h; then
  2104. $as_echo "## ----------- ##
  2105. ## confdefs.h. ##
  2106. ## ----------- ##"
  2107. echo
  2108. cat confdefs.h
  2109. echo
  2110. fi
  2111. test "$ac_signal" != 0 &&
  2112. $as_echo "$as_me: caught signal $ac_signal"
  2113. $as_echo "$as_me: exit $exit_status"
  2114. } >&5
  2115. rm -f core *.core core.conftest.* &&
  2116. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2117. exit $exit_status
  2118. ' 0
  2119. for ac_signal in 1 2 13 15; do
  2120. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2121. done
  2122. ac_signal=0
  2123. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2124. rm -f -r conftest* confdefs.h
  2125. $as_echo "/* confdefs.h */" > confdefs.h
  2126. # Predefined preprocessor variables.
  2127. cat >>confdefs.h <<_ACEOF
  2128. #define PACKAGE_NAME "$PACKAGE_NAME"
  2129. _ACEOF
  2130. cat >>confdefs.h <<_ACEOF
  2131. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2132. _ACEOF
  2133. cat >>confdefs.h <<_ACEOF
  2134. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2135. _ACEOF
  2136. cat >>confdefs.h <<_ACEOF
  2137. #define PACKAGE_STRING "$PACKAGE_STRING"
  2138. _ACEOF
  2139. cat >>confdefs.h <<_ACEOF
  2140. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2141. _ACEOF
  2142. cat >>confdefs.h <<_ACEOF
  2143. #define PACKAGE_URL "$PACKAGE_URL"
  2144. _ACEOF
  2145. # Let the site file select an alternate cache file if it wants to.
  2146. # Prefer an explicitly selected file to automatically selected ones.
  2147. ac_site_file1=NONE
  2148. ac_site_file2=NONE
  2149. if test -n "$CONFIG_SITE"; then
  2150. # We do not want a PATH search for config.site.
  2151. case $CONFIG_SITE in #((
  2152. -*) ac_site_file1=./$CONFIG_SITE;;
  2153. */*) ac_site_file1=$CONFIG_SITE;;
  2154. *) ac_site_file1=./$CONFIG_SITE;;
  2155. esac
  2156. elif test "x$prefix" != xNONE; then
  2157. ac_site_file1=$prefix/share/config.site
  2158. ac_site_file2=$prefix/etc/config.site
  2159. else
  2160. ac_site_file1=$ac_default_prefix/share/config.site
  2161. ac_site_file2=$ac_default_prefix/etc/config.site
  2162. fi
  2163. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2164. do
  2165. test "x$ac_site_file" = xNONE && continue
  2166. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2167. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2168. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2169. sed 's/^/| /' "$ac_site_file" >&5
  2170. . "$ac_site_file" \
  2171. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2172. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2173. as_fn_error $? "failed to load site script $ac_site_file
  2174. See \`config.log' for more details" "$LINENO" 5; }
  2175. fi
  2176. done
  2177. if test -r "$cache_file"; then
  2178. # Some versions of bash will fail to source /dev/null (special files
  2179. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2180. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2181. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2182. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2183. case $cache_file in
  2184. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2185. *) . "./$cache_file";;
  2186. esac
  2187. fi
  2188. else
  2189. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2190. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2191. >$cache_file
  2192. fi
  2193. # Check that the precious variables saved in the cache have kept the same
  2194. # value.
  2195. ac_cache_corrupted=false
  2196. for ac_var in $ac_precious_vars; do
  2197. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2198. eval ac_new_set=\$ac_env_${ac_var}_set
  2199. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2200. eval ac_new_val=\$ac_env_${ac_var}_value
  2201. case $ac_old_set,$ac_new_set in
  2202. set,)
  2203. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2204. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2205. ac_cache_corrupted=: ;;
  2206. ,set)
  2207. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2208. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2209. ac_cache_corrupted=: ;;
  2210. ,);;
  2211. *)
  2212. if test "x$ac_old_val" != "x$ac_new_val"; then
  2213. # differences in whitespace do not lead to failure.
  2214. ac_old_val_w=`echo x $ac_old_val`
  2215. ac_new_val_w=`echo x $ac_new_val`
  2216. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2217. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2218. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2219. ac_cache_corrupted=:
  2220. else
  2221. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2222. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2223. eval $ac_var=\$ac_old_val
  2224. fi
  2225. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2226. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2227. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2228. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2229. fi;;
  2230. esac
  2231. # Pass precious variables to config.status.
  2232. if test "$ac_new_set" = set; then
  2233. case $ac_new_val in
  2234. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2235. *) ac_arg=$ac_var=$ac_new_val ;;
  2236. esac
  2237. case " $ac_configure_args " in
  2238. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2239. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2240. esac
  2241. fi
  2242. done
  2243. if $ac_cache_corrupted; then
  2244. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2245. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2246. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2247. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2248. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2249. fi
  2250. ## -------------------- ##
  2251. ## Main body of script. ##
  2252. ## -------------------- ##
  2253. ac_ext=c
  2254. ac_cpp='$CPP $CPPFLAGS'
  2255. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2256. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2257. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2258. ac_config_files="$ac_config_files Makefile src/Makefile"
  2259. ac_aux_dir=
  2260. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2261. if test -f "$ac_dir/install-sh"; then
  2262. ac_aux_dir=$ac_dir
  2263. ac_install_sh="$ac_aux_dir/install-sh -c"
  2264. break
  2265. elif test -f "$ac_dir/install.sh"; then
  2266. ac_aux_dir=$ac_dir
  2267. ac_install_sh="$ac_aux_dir/install.sh -c"
  2268. break
  2269. elif test -f "$ac_dir/shtool"; then
  2270. ac_aux_dir=$ac_dir
  2271. ac_install_sh="$ac_aux_dir/shtool install -c"
  2272. break
  2273. fi
  2274. done
  2275. if test -z "$ac_aux_dir"; then
  2276. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2277. fi
  2278. # These three variables are undocumented and unsupported,
  2279. # and are intended to be withdrawn in a future Autoconf release.
  2280. # They can cause serious problems if a builder's source tree is in a directory
  2281. # whose full name contains unusual characters.
  2282. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2283. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2284. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2285. # Make sure we can run config.sub.
  2286. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2287. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2289. $as_echo_n "checking build system type... " >&6; }
  2290. if ${ac_cv_build+:} false; then :
  2291. $as_echo_n "(cached) " >&6
  2292. else
  2293. ac_build_alias=$build_alias
  2294. test "x$ac_build_alias" = x &&
  2295. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2296. test "x$ac_build_alias" = x &&
  2297. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2298. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2299. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2300. fi
  2301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2302. $as_echo "$ac_cv_build" >&6; }
  2303. case $ac_cv_build in
  2304. *-*-*) ;;
  2305. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2306. esac
  2307. build=$ac_cv_build
  2308. ac_save_IFS=$IFS; IFS='-'
  2309. set x $ac_cv_build
  2310. shift
  2311. build_cpu=$1
  2312. build_vendor=$2
  2313. shift; shift
  2314. # Remember, the first character of IFS is used to create $*,
  2315. # except with old shells:
  2316. build_os=$*
  2317. IFS=$ac_save_IFS
  2318. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2320. $as_echo_n "checking host system type... " >&6; }
  2321. if ${ac_cv_host+:} false; then :
  2322. $as_echo_n "(cached) " >&6
  2323. else
  2324. if test "x$host_alias" = x; then
  2325. ac_cv_host=$ac_cv_build
  2326. else
  2327. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2328. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2329. fi
  2330. fi
  2331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2332. $as_echo "$ac_cv_host" >&6; }
  2333. case $ac_cv_host in
  2334. *-*-*) ;;
  2335. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2336. esac
  2337. host=$ac_cv_host
  2338. ac_save_IFS=$IFS; IFS='-'
  2339. set x $ac_cv_host
  2340. shift
  2341. host_cpu=$1
  2342. host_vendor=$2
  2343. shift; shift
  2344. # Remember, the first character of IFS is used to create $*,
  2345. # except with old shells:
  2346. host_os=$*
  2347. IFS=$ac_save_IFS
  2348. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2349. case x"${host}" in
  2350. x*-*-cygwin* | x*-*-mingw32*)
  2351. use_msw=yes
  2352. PROGRAM_EXT=".exe"
  2353. ;;
  2354. *-androideabi)
  2355. use_android=yes
  2356. ;;
  2357. esac
  2358. # Check whether --enable-silent-rules was given.
  2359. if test "${enable_silent_rules+set}" = set; then :
  2360. enableval=$enable_silent_rules;
  2361. fi
  2362. case $enable_silent_rules in # (((
  2363. yes) AM_DEFAULT_VERBOSITY=0;;
  2364. no) AM_DEFAULT_VERBOSITY=1;;
  2365. *) AM_DEFAULT_VERBOSITY=0;;
  2366. esac
  2367. am_make=${MAKE-make}
  2368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2369. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2370. if ${am_cv_make_support_nested_variables+:} false; then :
  2371. $as_echo_n "(cached) " >&6
  2372. else
  2373. if $as_echo 'TRUE=$(BAR$(V))
  2374. BAR0=false
  2375. BAR1=true
  2376. V=1
  2377. am__doit:
  2378. @$(TRUE)
  2379. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2380. am_cv_make_support_nested_variables=yes
  2381. else
  2382. am_cv_make_support_nested_variables=no
  2383. fi
  2384. fi
  2385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2386. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2387. if test $am_cv_make_support_nested_variables = yes; then
  2388. AM_V='$(V)'
  2389. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2390. else
  2391. AM_V=$AM_DEFAULT_VERBOSITY
  2392. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2393. fi
  2394. AM_BACKSLASH='\'
  2395. am__api_version='1.15'
  2396. # Find a good install program. We prefer a C program (faster),
  2397. # so one script is as good as another. But avoid the broken or
  2398. # incompatible versions:
  2399. # SysV /etc/install, /usr/sbin/install
  2400. # SunOS /usr/etc/install
  2401. # IRIX /sbin/install
  2402. # AIX /bin/install
  2403. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2404. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2405. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2406. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2407. # OS/2's system install, which has a completely different semantic
  2408. # ./install, which can be erroneously created by make from ./install.sh.
  2409. # Reject install programs that cannot install multiple files.
  2410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2411. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2412. if test -z "$INSTALL"; then
  2413. if ${ac_cv_path_install+:} false; then :
  2414. $as_echo_n "(cached) " >&6
  2415. else
  2416. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2417. for as_dir in $PATH
  2418. do
  2419. IFS=$as_save_IFS
  2420. test -z "$as_dir" && as_dir=.
  2421. # Account for people who put trailing slashes in PATH elements.
  2422. case $as_dir/ in #((
  2423. ./ | .// | /[cC]/* | \
  2424. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2425. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2426. /usr/ucb/* ) ;;
  2427. *)
  2428. # OSF1 and SCO ODT 3.0 have their own names for install.
  2429. # Don't use installbsd from OSF since it installs stuff as root
  2430. # by default.
  2431. for ac_prog in ginstall scoinst install; do
  2432. for ac_exec_ext in '' $ac_executable_extensions; do
  2433. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2434. if test $ac_prog = install &&
  2435. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2436. # AIX install. It has an incompatible calling convention.
  2437. :
  2438. elif test $ac_prog = install &&
  2439. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2440. # program-specific install script used by HP pwplus--don't use.
  2441. :
  2442. else
  2443. rm -rf conftest.one conftest.two conftest.dir
  2444. echo one > conftest.one
  2445. echo two > conftest.two
  2446. mkdir conftest.dir
  2447. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2448. test -s conftest.one && test -s conftest.two &&
  2449. test -s conftest.dir/conftest.one &&
  2450. test -s conftest.dir/conftest.two
  2451. then
  2452. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2453. break 3
  2454. fi
  2455. fi
  2456. fi
  2457. done
  2458. done
  2459. ;;
  2460. esac
  2461. done
  2462. IFS=$as_save_IFS
  2463. rm -rf conftest.one conftest.two conftest.dir
  2464. fi
  2465. if test "${ac_cv_path_install+set}" = set; then
  2466. INSTALL=$ac_cv_path_install
  2467. else
  2468. # As a last resort, use the slow shell script. Don't cache a
  2469. # value for INSTALL within a source directory, because that will
  2470. # break other packages using the cache if that directory is
  2471. # removed, or if the value is a relative name.
  2472. INSTALL=$ac_install_sh
  2473. fi
  2474. fi
  2475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2476. $as_echo "$INSTALL" >&6; }
  2477. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2478. # It thinks the first close brace ends the variable substitution.
  2479. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2480. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2481. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2483. $as_echo_n "checking whether build environment is sane... " >&6; }
  2484. # Reject unsafe characters in $srcdir or the absolute working directory
  2485. # name. Accept space and tab only in the latter.
  2486. am_lf='
  2487. '
  2488. case `pwd` in
  2489. *[\\\"\#\$\&\'\`$am_lf]*)
  2490. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2491. esac
  2492. case $srcdir in
  2493. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2494. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2495. esac
  2496. # Do 'set' in a subshell so we don't clobber the current shell's
  2497. # arguments. Must try -L first in case configure is actually a
  2498. # symlink; some systems play weird games with the mod time of symlinks
  2499. # (eg FreeBSD returns the mod time of the symlink's containing
  2500. # directory).
  2501. if (
  2502. am_has_slept=no
  2503. for am_try in 1 2; do
  2504. echo "timestamp, slept: $am_has_slept" > conftest.file
  2505. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2506. if test "$*" = "X"; then
  2507. # -L didn't work.
  2508. set X `ls -t "$srcdir/configure" conftest.file`
  2509. fi
  2510. if test "$*" != "X $srcdir/configure conftest.file" \
  2511. && test "$*" != "X conftest.file $srcdir/configure"; then
  2512. # If neither matched, then we have a broken ls. This can happen
  2513. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2514. # broken ls alias from the environment. This has actually
  2515. # happened. Such a system could not be considered "sane".
  2516. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2517. alias in your environment" "$LINENO" 5
  2518. fi
  2519. if test "$2" = conftest.file || test $am_try -eq 2; then
  2520. break
  2521. fi
  2522. # Just in case.
  2523. sleep 1
  2524. am_has_slept=yes
  2525. done
  2526. test "$2" = conftest.file
  2527. )
  2528. then
  2529. # Ok.
  2530. :
  2531. else
  2532. as_fn_error $? "newly created file is older than distributed files!
  2533. Check your system clock" "$LINENO" 5
  2534. fi
  2535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2536. $as_echo "yes" >&6; }
  2537. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2538. # generated files are strictly newer.
  2539. am_sleep_pid=
  2540. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2541. ( sleep 1 ) &
  2542. am_sleep_pid=$!
  2543. fi
  2544. rm -f conftest.file
  2545. test "$program_prefix" != NONE &&
  2546. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2547. # Use a double $ so make ignores it.
  2548. test "$program_suffix" != NONE &&
  2549. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2550. # Double any \ or $.
  2551. # By default was `s,x,x', remove it if useless.
  2552. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2553. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2554. # Expand $ac_aux_dir to an absolute path.
  2555. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2556. if test x"${MISSING+set}" != xset; then
  2557. case $am_aux_dir in
  2558. *\ * | *\ *)
  2559. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2560. *)
  2561. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2562. esac
  2563. fi
  2564. # Use eval to expand $SHELL
  2565. if eval "$MISSING --is-lightweight"; then
  2566. am_missing_run="$MISSING "
  2567. else
  2568. am_missing_run=
  2569. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2570. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2571. fi
  2572. if test x"${install_sh+set}" != xset; then
  2573. case $am_aux_dir in
  2574. *\ * | *\ *)
  2575. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2576. *)
  2577. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2578. esac
  2579. fi
  2580. # Installed binaries are usually stripped using 'strip' when the user
  2581. # run "make install-strip". However 'strip' might not be the right
  2582. # tool to use in cross-compilation environments, therefore Automake
  2583. # will honor the 'STRIP' environment variable to overrule this program.
  2584. if test "$cross_compiling" != no; then
  2585. if test -n "$ac_tool_prefix"; then
  2586. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2587. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2589. $as_echo_n "checking for $ac_word... " >&6; }
  2590. if ${ac_cv_prog_STRIP+:} false; then :
  2591. $as_echo_n "(cached) " >&6
  2592. else
  2593. if test -n "$STRIP"; then
  2594. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2595. else
  2596. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2597. for as_dir in $PATH
  2598. do
  2599. IFS=$as_save_IFS
  2600. test -z "$as_dir" && as_dir=.
  2601. for ac_exec_ext in '' $ac_executable_extensions; do
  2602. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2603. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2604. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2605. break 2
  2606. fi
  2607. done
  2608. done
  2609. IFS=$as_save_IFS
  2610. fi
  2611. fi
  2612. STRIP=$ac_cv_prog_STRIP
  2613. if test -n "$STRIP"; then
  2614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2615. $as_echo "$STRIP" >&6; }
  2616. else
  2617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2618. $as_echo "no" >&6; }
  2619. fi
  2620. fi
  2621. if test -z "$ac_cv_prog_STRIP"; then
  2622. ac_ct_STRIP=$STRIP
  2623. # Extract the first word of "strip", so it can be a program name with args.
  2624. set dummy strip; ac_word=$2
  2625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2626. $as_echo_n "checking for $ac_word... " >&6; }
  2627. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2628. $as_echo_n "(cached) " >&6
  2629. else
  2630. if test -n "$ac_ct_STRIP"; then
  2631. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2632. else
  2633. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2634. for as_dir in $PATH
  2635. do
  2636. IFS=$as_save_IFS
  2637. test -z "$as_dir" && as_dir=.
  2638. for ac_exec_ext in '' $ac_executable_extensions; do
  2639. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2640. ac_cv_prog_ac_ct_STRIP="strip"
  2641. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2642. break 2
  2643. fi
  2644. done
  2645. done
  2646. IFS=$as_save_IFS
  2647. fi
  2648. fi
  2649. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2650. if test -n "$ac_ct_STRIP"; then
  2651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2652. $as_echo "$ac_ct_STRIP" >&6; }
  2653. else
  2654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2655. $as_echo "no" >&6; }
  2656. fi
  2657. if test "x$ac_ct_STRIP" = x; then
  2658. STRIP=":"
  2659. else
  2660. case $cross_compiling:$ac_tool_warned in
  2661. yes:)
  2662. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2663. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2664. ac_tool_warned=yes ;;
  2665. esac
  2666. STRIP=$ac_ct_STRIP
  2667. fi
  2668. else
  2669. STRIP="$ac_cv_prog_STRIP"
  2670. fi
  2671. fi
  2672. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2674. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2675. if test -z "$MKDIR_P"; then
  2676. if ${ac_cv_path_mkdir+:} false; then :
  2677. $as_echo_n "(cached) " >&6
  2678. else
  2679. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2680. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2681. do
  2682. IFS=$as_save_IFS
  2683. test -z "$as_dir" && as_dir=.
  2684. for ac_prog in mkdir gmkdir; do
  2685. for ac_exec_ext in '' $ac_executable_extensions; do
  2686. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2687. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2688. 'mkdir (GNU coreutils) '* | \
  2689. 'mkdir (coreutils) '* | \
  2690. 'mkdir (fileutils) '4.1*)
  2691. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2692. break 3;;
  2693. esac
  2694. done
  2695. done
  2696. done
  2697. IFS=$as_save_IFS
  2698. fi
  2699. test -d ./--version && rmdir ./--version
  2700. if test "${ac_cv_path_mkdir+set}" = set; then
  2701. MKDIR_P="$ac_cv_path_mkdir -p"
  2702. else
  2703. # As a last resort, use the slow shell script. Don't cache a
  2704. # value for MKDIR_P within a source directory, because that will
  2705. # break other packages using the cache if that directory is
  2706. # removed, or if the value is a relative name.
  2707. MKDIR_P="$ac_install_sh -d"
  2708. fi
  2709. fi
  2710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2711. $as_echo "$MKDIR_P" >&6; }
  2712. for ac_prog in gawk mawk nawk awk
  2713. do
  2714. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2715. set dummy $ac_prog; ac_word=$2
  2716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2717. $as_echo_n "checking for $ac_word... " >&6; }
  2718. if ${ac_cv_prog_AWK+:} false; then :
  2719. $as_echo_n "(cached) " >&6
  2720. else
  2721. if test -n "$AWK"; then
  2722. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2723. else
  2724. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2725. for as_dir in $PATH
  2726. do
  2727. IFS=$as_save_IFS
  2728. test -z "$as_dir" && as_dir=.
  2729. for ac_exec_ext in '' $ac_executable_extensions; do
  2730. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2731. ac_cv_prog_AWK="$ac_prog"
  2732. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2733. break 2
  2734. fi
  2735. done
  2736. done
  2737. IFS=$as_save_IFS
  2738. fi
  2739. fi
  2740. AWK=$ac_cv_prog_AWK
  2741. if test -n "$AWK"; then
  2742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2743. $as_echo "$AWK" >&6; }
  2744. else
  2745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2746. $as_echo "no" >&6; }
  2747. fi
  2748. test -n "$AWK" && break
  2749. done
  2750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2751. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2752. set x ${MAKE-make}
  2753. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2754. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2755. $as_echo_n "(cached) " >&6
  2756. else
  2757. cat >conftest.make <<\_ACEOF
  2758. SHELL = /bin/sh
  2759. all:
  2760. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2761. _ACEOF
  2762. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2763. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2764. *@@@%%%=?*=@@@%%%*)
  2765. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2766. *)
  2767. eval ac_cv_prog_make_${ac_make}_set=no;;
  2768. esac
  2769. rm -f conftest.make
  2770. fi
  2771. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2773. $as_echo "yes" >&6; }
  2774. SET_MAKE=
  2775. else
  2776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2777. $as_echo "no" >&6; }
  2778. SET_MAKE="MAKE=${MAKE-make}"
  2779. fi
  2780. rm -rf .tst 2>/dev/null
  2781. mkdir .tst 2>/dev/null
  2782. if test -d .tst; then
  2783. am__leading_dot=.
  2784. else
  2785. am__leading_dot=_
  2786. fi
  2787. rmdir .tst 2>/dev/null
  2788. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2789. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2790. # is not polluted with repeated "-I."
  2791. am__isrc=' -I$(srcdir)'
  2792. # test to see if srcdir already configured
  2793. if test -f $srcdir/config.status; then
  2794. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2795. fi
  2796. fi
  2797. # test whether we have cygpath
  2798. if test -z "$CYGPATH_W"; then
  2799. if (cygpath --version) >/dev/null 2>/dev/null; then
  2800. CYGPATH_W='cygpath -w'
  2801. else
  2802. CYGPATH_W=echo
  2803. fi
  2804. fi
  2805. # Define the identity of the package.
  2806. PACKAGE='ptunnel-ng'
  2807. VERSION='1.41'
  2808. cat >>confdefs.h <<_ACEOF
  2809. #define PACKAGE "$PACKAGE"
  2810. _ACEOF
  2811. cat >>confdefs.h <<_ACEOF
  2812. #define VERSION "$VERSION"
  2813. _ACEOF
  2814. # Some tools Automake needs.
  2815. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2816. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2817. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2818. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2819. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2820. # For better backward compatibility. To be removed once Automake 1.9.x
  2821. # dies out for good. For more background, see:
  2822. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2823. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2824. mkdir_p='$(MKDIR_P)'
  2825. # We need awk for the "check" target (and possibly the TAP driver). The
  2826. # system "awk" is bad on some platforms.
  2827. # Always define AMTAR for backward compatibility. Yes, it's still used
  2828. # in the wild :-( We should find a proper way to deprecate it ...
  2829. AMTAR='$${TAR-tar}'
  2830. # We'll loop over all known methods to create a tar archive until one works.
  2831. _am_tools='gnutar pax cpio none'
  2832. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2833. # POSIX will say in a future version that running "rm -f" with no argument
  2834. # is OK; and we want to be able to make that assumption in our Makefile
  2835. # recipes. So use an aggressive probe to check that the usage we want is
  2836. # actually supported "in the wild" to an acceptable degree.
  2837. # See automake bug#10828.
  2838. # To make any issue more visible, cause the running configure to be aborted
  2839. # by default if the 'rm' program in use doesn't match our expectations; the
  2840. # user can still override this though.
  2841. if rm -f && rm -fr && rm -rf; then : OK; else
  2842. cat >&2 <<'END'
  2843. Oops!
  2844. Your 'rm' program seems unable to run without file operands specified
  2845. on the command line, even when the '-f' option is present. This is contrary
  2846. to the behaviour of most rm programs out there, and not conforming with
  2847. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  2848. Please tell bug-automake@gnu.org about your system, including the value
  2849. of your $PATH and any error possibly output before this message. This
  2850. can help us improve future automake versions.
  2851. END
  2852. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  2853. echo 'Configuration will proceed anyway, since you have set the' >&2
  2854. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  2855. echo >&2
  2856. else
  2857. cat >&2 <<'END'
  2858. Aborting the configuration process, to ensure you take notice of the issue.
  2859. You can download and install GNU coreutils to get an 'rm' implementation
  2860. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  2861. If you want to complete the configuration process using your problematic
  2862. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  2863. to "yes", and re-run configure.
  2864. END
  2865. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  2866. fi
  2867. fi
  2868. ac_ext=c
  2869. ac_cpp='$CPP $CPPFLAGS'
  2870. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2871. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2872. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2873. if test -n "$ac_tool_prefix"; then
  2874. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2875. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2877. $as_echo_n "checking for $ac_word... " >&6; }
  2878. if ${ac_cv_prog_CC+:} false; then :
  2879. $as_echo_n "(cached) " >&6
  2880. else
  2881. if test -n "$CC"; then
  2882. ac_cv_prog_CC="$CC" # Let the user override the test.
  2883. else
  2884. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2885. for as_dir in $PATH
  2886. do
  2887. IFS=$as_save_IFS
  2888. test -z "$as_dir" && as_dir=.
  2889. for ac_exec_ext in '' $ac_executable_extensions; do
  2890. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2891. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2892. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2893. break 2
  2894. fi
  2895. done
  2896. done
  2897. IFS=$as_save_IFS
  2898. fi
  2899. fi
  2900. CC=$ac_cv_prog_CC
  2901. if test -n "$CC"; then
  2902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2903. $as_echo "$CC" >&6; }
  2904. else
  2905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2906. $as_echo "no" >&6; }
  2907. fi
  2908. fi
  2909. if test -z "$ac_cv_prog_CC"; then
  2910. ac_ct_CC=$CC
  2911. # Extract the first word of "gcc", so it can be a program name with args.
  2912. set dummy gcc; ac_word=$2
  2913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2914. $as_echo_n "checking for $ac_word... " >&6; }
  2915. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2916. $as_echo_n "(cached) " >&6
  2917. else
  2918. if test -n "$ac_ct_CC"; then
  2919. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2920. else
  2921. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2922. for as_dir in $PATH
  2923. do
  2924. IFS=$as_save_IFS
  2925. test -z "$as_dir" && as_dir=.
  2926. for ac_exec_ext in '' $ac_executable_extensions; do
  2927. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2928. ac_cv_prog_ac_ct_CC="gcc"
  2929. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2930. break 2
  2931. fi
  2932. done
  2933. done
  2934. IFS=$as_save_IFS
  2935. fi
  2936. fi
  2937. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2938. if test -n "$ac_ct_CC"; then
  2939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2940. $as_echo "$ac_ct_CC" >&6; }
  2941. else
  2942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2943. $as_echo "no" >&6; }
  2944. fi
  2945. if test "x$ac_ct_CC" = x; then
  2946. CC=""
  2947. else
  2948. case $cross_compiling:$ac_tool_warned in
  2949. yes:)
  2950. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2951. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2952. ac_tool_warned=yes ;;
  2953. esac
  2954. CC=$ac_ct_CC
  2955. fi
  2956. else
  2957. CC="$ac_cv_prog_CC"
  2958. fi
  2959. if test -z "$CC"; then
  2960. if test -n "$ac_tool_prefix"; then
  2961. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2962. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2964. $as_echo_n "checking for $ac_word... " >&6; }
  2965. if ${ac_cv_prog_CC+:} false; then :
  2966. $as_echo_n "(cached) " >&6
  2967. else
  2968. if test -n "$CC"; then
  2969. ac_cv_prog_CC="$CC" # Let the user override the test.
  2970. else
  2971. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2972. for as_dir in $PATH
  2973. do
  2974. IFS=$as_save_IFS
  2975. test -z "$as_dir" && as_dir=.
  2976. for ac_exec_ext in '' $ac_executable_extensions; do
  2977. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2978. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2979. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2980. break 2
  2981. fi
  2982. done
  2983. done
  2984. IFS=$as_save_IFS
  2985. fi
  2986. fi
  2987. CC=$ac_cv_prog_CC
  2988. if test -n "$CC"; then
  2989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2990. $as_echo "$CC" >&6; }
  2991. else
  2992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2993. $as_echo "no" >&6; }
  2994. fi
  2995. fi
  2996. fi
  2997. if test -z "$CC"; then
  2998. # Extract the first word of "cc", so it can be a program name with args.
  2999. set dummy cc; ac_word=$2
  3000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3001. $as_echo_n "checking for $ac_word... " >&6; }
  3002. if ${ac_cv_prog_CC+:} false; then :
  3003. $as_echo_n "(cached) " >&6
  3004. else
  3005. if test -n "$CC"; then
  3006. ac_cv_prog_CC="$CC" # Let the user override the test.
  3007. else
  3008. ac_prog_rejected=no
  3009. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3010. for as_dir in $PATH
  3011. do
  3012. IFS=$as_save_IFS
  3013. test -z "$as_dir" && as_dir=.
  3014. for ac_exec_ext in '' $ac_executable_extensions; do
  3015. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3016. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3017. ac_prog_rejected=yes
  3018. continue
  3019. fi
  3020. ac_cv_prog_CC="cc"
  3021. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3022. break 2
  3023. fi
  3024. done
  3025. done
  3026. IFS=$as_save_IFS
  3027. if test $ac_prog_rejected = yes; then
  3028. # We found a bogon in the path, so make sure we never use it.
  3029. set dummy $ac_cv_prog_CC
  3030. shift
  3031. if test $# != 0; then
  3032. # We chose a different compiler from the bogus one.
  3033. # However, it has the same basename, so the bogon will be chosen
  3034. # first if we set CC to just the basename; use the full file name.
  3035. shift
  3036. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3037. fi
  3038. fi
  3039. fi
  3040. fi
  3041. CC=$ac_cv_prog_CC
  3042. if test -n "$CC"; then
  3043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3044. $as_echo "$CC" >&6; }
  3045. else
  3046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3047. $as_echo "no" >&6; }
  3048. fi
  3049. fi
  3050. if test -z "$CC"; then
  3051. if test -n "$ac_tool_prefix"; then
  3052. for ac_prog in cl.exe
  3053. do
  3054. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3055. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3057. $as_echo_n "checking for $ac_word... " >&6; }
  3058. if ${ac_cv_prog_CC+:} false; then :
  3059. $as_echo_n "(cached) " >&6
  3060. else
  3061. if test -n "$CC"; then
  3062. ac_cv_prog_CC="$CC" # Let the user override the test.
  3063. else
  3064. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3065. for as_dir in $PATH
  3066. do
  3067. IFS=$as_save_IFS
  3068. test -z "$as_dir" && as_dir=.
  3069. for ac_exec_ext in '' $ac_executable_extensions; do
  3070. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3071. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3072. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3073. break 2
  3074. fi
  3075. done
  3076. done
  3077. IFS=$as_save_IFS
  3078. fi
  3079. fi
  3080. CC=$ac_cv_prog_CC
  3081. if test -n "$CC"; then
  3082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3083. $as_echo "$CC" >&6; }
  3084. else
  3085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3086. $as_echo "no" >&6; }
  3087. fi
  3088. test -n "$CC" && break
  3089. done
  3090. fi
  3091. if test -z "$CC"; then
  3092. ac_ct_CC=$CC
  3093. for ac_prog in cl.exe
  3094. do
  3095. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3096. set dummy $ac_prog; ac_word=$2
  3097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3098. $as_echo_n "checking for $ac_word... " >&6; }
  3099. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3100. $as_echo_n "(cached) " >&6
  3101. else
  3102. if test -n "$ac_ct_CC"; then
  3103. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3104. else
  3105. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3106. for as_dir in $PATH
  3107. do
  3108. IFS=$as_save_IFS
  3109. test -z "$as_dir" && as_dir=.
  3110. for ac_exec_ext in '' $ac_executable_extensions; do
  3111. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3112. ac_cv_prog_ac_ct_CC="$ac_prog"
  3113. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3114. break 2
  3115. fi
  3116. done
  3117. done
  3118. IFS=$as_save_IFS
  3119. fi
  3120. fi
  3121. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3122. if test -n "$ac_ct_CC"; then
  3123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3124. $as_echo "$ac_ct_CC" >&6; }
  3125. else
  3126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3127. $as_echo "no" >&6; }
  3128. fi
  3129. test -n "$ac_ct_CC" && break
  3130. done
  3131. if test "x$ac_ct_CC" = x; then
  3132. CC=""
  3133. else
  3134. case $cross_compiling:$ac_tool_warned in
  3135. yes:)
  3136. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3137. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3138. ac_tool_warned=yes ;;
  3139. esac
  3140. CC=$ac_ct_CC
  3141. fi
  3142. fi
  3143. fi
  3144. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3145. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3146. as_fn_error $? "no acceptable C compiler found in \$PATH
  3147. See \`config.log' for more details" "$LINENO" 5; }
  3148. # Provide some information about the compiler.
  3149. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3150. set X $ac_compile
  3151. ac_compiler=$2
  3152. for ac_option in --version -v -V -qversion; do
  3153. { { ac_try="$ac_compiler $ac_option >&5"
  3154. case "(($ac_try" in
  3155. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3156. *) ac_try_echo=$ac_try;;
  3157. esac
  3158. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3159. $as_echo "$ac_try_echo"; } >&5
  3160. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3161. ac_status=$?
  3162. if test -s conftest.err; then
  3163. sed '10a\
  3164. ... rest of stderr output deleted ...
  3165. 10q' conftest.err >conftest.er1
  3166. cat conftest.er1 >&5
  3167. fi
  3168. rm -f conftest.er1 conftest.err
  3169. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3170. test $ac_status = 0; }
  3171. done
  3172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3173. /* end confdefs.h. */
  3174. int
  3175. main ()
  3176. {
  3177. ;
  3178. return 0;
  3179. }
  3180. _ACEOF
  3181. ac_clean_files_save=$ac_clean_files
  3182. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3183. # Try to create an executable without -o first, disregard a.out.
  3184. # It will help us diagnose broken compilers, and finding out an intuition
  3185. # of exeext.
  3186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3187. $as_echo_n "checking whether the C compiler works... " >&6; }
  3188. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3189. # The possible output files:
  3190. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3191. ac_rmfiles=
  3192. for ac_file in $ac_files
  3193. do
  3194. case $ac_file in
  3195. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3196. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3197. esac
  3198. done
  3199. rm -f $ac_rmfiles
  3200. if { { ac_try="$ac_link_default"
  3201. case "(($ac_try" in
  3202. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3203. *) ac_try_echo=$ac_try;;
  3204. esac
  3205. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3206. $as_echo "$ac_try_echo"; } >&5
  3207. (eval "$ac_link_default") 2>&5
  3208. ac_status=$?
  3209. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3210. test $ac_status = 0; }; then :
  3211. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3212. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3213. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3214. # so that the user can short-circuit this test for compilers unknown to
  3215. # Autoconf.
  3216. for ac_file in $ac_files ''
  3217. do
  3218. test -f "$ac_file" || continue
  3219. case $ac_file in
  3220. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3221. ;;
  3222. [ab].out )
  3223. # We found the default executable, but exeext='' is most
  3224. # certainly right.
  3225. break;;
  3226. *.* )
  3227. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3228. then :; else
  3229. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3230. fi
  3231. # We set ac_cv_exeext here because the later test for it is not
  3232. # safe: cross compilers may not add the suffix if given an `-o'
  3233. # argument, so we may need to know it at that point already.
  3234. # Even if this section looks crufty: it has the advantage of
  3235. # actually working.
  3236. break;;
  3237. * )
  3238. break;;
  3239. esac
  3240. done
  3241. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3242. else
  3243. ac_file=''
  3244. fi
  3245. if test -z "$ac_file"; then :
  3246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3247. $as_echo "no" >&6; }
  3248. $as_echo "$as_me: failed program was:" >&5
  3249. sed 's/^/| /' conftest.$ac_ext >&5
  3250. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3251. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3252. as_fn_error 77 "C compiler cannot create executables
  3253. See \`config.log' for more details" "$LINENO" 5; }
  3254. else
  3255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3256. $as_echo "yes" >&6; }
  3257. fi
  3258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3259. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3261. $as_echo "$ac_file" >&6; }
  3262. ac_exeext=$ac_cv_exeext
  3263. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3264. ac_clean_files=$ac_clean_files_save
  3265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3266. $as_echo_n "checking for suffix of executables... " >&6; }
  3267. if { { ac_try="$ac_link"
  3268. case "(($ac_try" in
  3269. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3270. *) ac_try_echo=$ac_try;;
  3271. esac
  3272. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3273. $as_echo "$ac_try_echo"; } >&5
  3274. (eval "$ac_link") 2>&5
  3275. ac_status=$?
  3276. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3277. test $ac_status = 0; }; then :
  3278. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3279. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3280. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3281. # `rm'.
  3282. for ac_file in conftest.exe conftest conftest.*; do
  3283. test -f "$ac_file" || continue
  3284. case $ac_file in
  3285. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3286. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3287. break;;
  3288. * ) break;;
  3289. esac
  3290. done
  3291. else
  3292. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3293. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3294. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3295. See \`config.log' for more details" "$LINENO" 5; }
  3296. fi
  3297. rm -f conftest conftest$ac_cv_exeext
  3298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3299. $as_echo "$ac_cv_exeext" >&6; }
  3300. rm -f conftest.$ac_ext
  3301. EXEEXT=$ac_cv_exeext
  3302. ac_exeext=$EXEEXT
  3303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3304. /* end confdefs.h. */
  3305. #include <stdio.h>
  3306. int
  3307. main ()
  3308. {
  3309. FILE *f = fopen ("conftest.out", "w");
  3310. return ferror (f) || fclose (f) != 0;
  3311. ;
  3312. return 0;
  3313. }
  3314. _ACEOF
  3315. ac_clean_files="$ac_clean_files conftest.out"
  3316. # Check that the compiler produces executables we can run. If not, either
  3317. # the compiler is broken, or we cross compile.
  3318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3319. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3320. if test "$cross_compiling" != yes; then
  3321. { { ac_try="$ac_link"
  3322. case "(($ac_try" in
  3323. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3324. *) ac_try_echo=$ac_try;;
  3325. esac
  3326. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3327. $as_echo "$ac_try_echo"; } >&5
  3328. (eval "$ac_link") 2>&5
  3329. ac_status=$?
  3330. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3331. test $ac_status = 0; }
  3332. if { ac_try='./conftest$ac_cv_exeext'
  3333. { { case "(($ac_try" in
  3334. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3335. *) ac_try_echo=$ac_try;;
  3336. esac
  3337. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3338. $as_echo "$ac_try_echo"; } >&5
  3339. (eval "$ac_try") 2>&5
  3340. ac_status=$?
  3341. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3342. test $ac_status = 0; }; }; then
  3343. cross_compiling=no
  3344. else
  3345. if test "$cross_compiling" = maybe; then
  3346. cross_compiling=yes
  3347. else
  3348. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3349. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3350. as_fn_error $? "cannot run C compiled programs.
  3351. If you meant to cross compile, use \`--host'.
  3352. See \`config.log' for more details" "$LINENO" 5; }
  3353. fi
  3354. fi
  3355. fi
  3356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3357. $as_echo "$cross_compiling" >&6; }
  3358. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3359. ac_clean_files=$ac_clean_files_save
  3360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3361. $as_echo_n "checking for suffix of object files... " >&6; }
  3362. if ${ac_cv_objext+:} false; then :
  3363. $as_echo_n "(cached) " >&6
  3364. else
  3365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3366. /* end confdefs.h. */
  3367. int
  3368. main ()
  3369. {
  3370. ;
  3371. return 0;
  3372. }
  3373. _ACEOF
  3374. rm -f conftest.o conftest.obj
  3375. if { { ac_try="$ac_compile"
  3376. case "(($ac_try" in
  3377. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3378. *) ac_try_echo=$ac_try;;
  3379. esac
  3380. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3381. $as_echo "$ac_try_echo"; } >&5
  3382. (eval "$ac_compile") 2>&5
  3383. ac_status=$?
  3384. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3385. test $ac_status = 0; }; then :
  3386. for ac_file in conftest.o conftest.obj conftest.*; do
  3387. test -f "$ac_file" || continue;
  3388. case $ac_file in
  3389. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3390. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3391. break;;
  3392. esac
  3393. done
  3394. else
  3395. $as_echo "$as_me: failed program was:" >&5
  3396. sed 's/^/| /' conftest.$ac_ext >&5
  3397. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3398. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3399. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3400. See \`config.log' for more details" "$LINENO" 5; }
  3401. fi
  3402. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3403. fi
  3404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3405. $as_echo "$ac_cv_objext" >&6; }
  3406. OBJEXT=$ac_cv_objext
  3407. ac_objext=$OBJEXT
  3408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3409. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3410. if ${ac_cv_c_compiler_gnu+:} false; then :
  3411. $as_echo_n "(cached) " >&6
  3412. else
  3413. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3414. /* end confdefs.h. */
  3415. int
  3416. main ()
  3417. {
  3418. #ifndef __GNUC__
  3419. choke me
  3420. #endif
  3421. ;
  3422. return 0;
  3423. }
  3424. _ACEOF
  3425. if ac_fn_c_try_compile "$LINENO"; then :
  3426. ac_compiler_gnu=yes
  3427. else
  3428. ac_compiler_gnu=no
  3429. fi
  3430. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3431. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3432. fi
  3433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3434. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3435. if test $ac_compiler_gnu = yes; then
  3436. GCC=yes
  3437. else
  3438. GCC=
  3439. fi
  3440. ac_test_CFLAGS=${CFLAGS+set}
  3441. ac_save_CFLAGS=$CFLAGS
  3442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3443. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3444. if ${ac_cv_prog_cc_g+:} false; then :
  3445. $as_echo_n "(cached) " >&6
  3446. else
  3447. ac_save_c_werror_flag=$ac_c_werror_flag
  3448. ac_c_werror_flag=yes
  3449. ac_cv_prog_cc_g=no
  3450. CFLAGS="-g"
  3451. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3452. /* end confdefs.h. */
  3453. int
  3454. main ()
  3455. {
  3456. ;
  3457. return 0;
  3458. }
  3459. _ACEOF
  3460. if ac_fn_c_try_compile "$LINENO"; then :
  3461. ac_cv_prog_cc_g=yes
  3462. else
  3463. CFLAGS=""
  3464. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3465. /* end confdefs.h. */
  3466. int
  3467. main ()
  3468. {
  3469. ;
  3470. return 0;
  3471. }
  3472. _ACEOF
  3473. if ac_fn_c_try_compile "$LINENO"; then :
  3474. else
  3475. ac_c_werror_flag=$ac_save_c_werror_flag
  3476. CFLAGS="-g"
  3477. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3478. /* end confdefs.h. */
  3479. int
  3480. main ()
  3481. {
  3482. ;
  3483. return 0;
  3484. }
  3485. _ACEOF
  3486. if ac_fn_c_try_compile "$LINENO"; then :
  3487. ac_cv_prog_cc_g=yes
  3488. fi
  3489. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3490. fi
  3491. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3492. fi
  3493. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3494. ac_c_werror_flag=$ac_save_c_werror_flag
  3495. fi
  3496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3497. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3498. if test "$ac_test_CFLAGS" = set; then
  3499. CFLAGS=$ac_save_CFLAGS
  3500. elif test $ac_cv_prog_cc_g = yes; then
  3501. if test "$GCC" = yes; then
  3502. CFLAGS="-g -O2"
  3503. else
  3504. CFLAGS="-g"
  3505. fi
  3506. else
  3507. if test "$GCC" = yes; then
  3508. CFLAGS="-O2"
  3509. else
  3510. CFLAGS=
  3511. fi
  3512. fi
  3513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3514. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3515. if ${ac_cv_prog_cc_c89+:} false; then :
  3516. $as_echo_n "(cached) " >&6
  3517. else
  3518. ac_cv_prog_cc_c89=no
  3519. ac_save_CC=$CC
  3520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3521. /* end confdefs.h. */
  3522. #include <stdarg.h>
  3523. #include <stdio.h>
  3524. struct stat;
  3525. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3526. struct buf { int x; };
  3527. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3528. static char *e (p, i)
  3529. char **p;
  3530. int i;
  3531. {
  3532. return p[i];
  3533. }
  3534. static char *f (char * (*g) (char **, int), char **p, ...)
  3535. {
  3536. char *s;
  3537. va_list v;
  3538. va_start (v,p);
  3539. s = g (p, va_arg (v,int));
  3540. va_end (v);
  3541. return s;
  3542. }
  3543. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3544. function prototypes and stuff, but not '\xHH' hex character constants.
  3545. These don't provoke an error unfortunately, instead are silently treated
  3546. as 'x'. The following induces an error, until -std is added to get
  3547. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3548. array size at least. It's necessary to write '\x00'==0 to get something
  3549. that's true only with -std. */
  3550. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3551. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3552. inside strings and character constants. */
  3553. #define FOO(x) 'x'
  3554. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3555. int test (int i, double x);
  3556. struct s1 {int (*f) (int a);};
  3557. struct s2 {int (*f) (double a);};
  3558. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3559. int argc;
  3560. char **argv;
  3561. int
  3562. main ()
  3563. {
  3564. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3565. ;
  3566. return 0;
  3567. }
  3568. _ACEOF
  3569. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3570. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3571. do
  3572. CC="$ac_save_CC $ac_arg"
  3573. if ac_fn_c_try_compile "$LINENO"; then :
  3574. ac_cv_prog_cc_c89=$ac_arg
  3575. fi
  3576. rm -f core conftest.err conftest.$ac_objext
  3577. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3578. done
  3579. rm -f conftest.$ac_ext
  3580. CC=$ac_save_CC
  3581. fi
  3582. # AC_CACHE_VAL
  3583. case "x$ac_cv_prog_cc_c89" in
  3584. x)
  3585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3586. $as_echo "none needed" >&6; } ;;
  3587. xno)
  3588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3589. $as_echo "unsupported" >&6; } ;;
  3590. *)
  3591. CC="$CC $ac_cv_prog_cc_c89"
  3592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3593. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3594. esac
  3595. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3596. fi
  3597. ac_ext=c
  3598. ac_cpp='$CPP $CPPFLAGS'
  3599. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3600. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3601. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3602. ac_ext=c
  3603. ac_cpp='$CPP $CPPFLAGS'
  3604. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3605. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3606. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3608. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3609. if ${am_cv_prog_cc_c_o+:} false; then :
  3610. $as_echo_n "(cached) " >&6
  3611. else
  3612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3613. /* end confdefs.h. */
  3614. int
  3615. main ()
  3616. {
  3617. ;
  3618. return 0;
  3619. }
  3620. _ACEOF
  3621. # Make sure it works both with $CC and with simple cc.
  3622. # Following AC_PROG_CC_C_O, we do the test twice because some
  3623. # compilers refuse to overwrite an existing .o file with -o,
  3624. # though they will create one.
  3625. am_cv_prog_cc_c_o=yes
  3626. for am_i in 1 2; do
  3627. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3628. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3629. ac_status=$?
  3630. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3631. (exit $ac_status); } \
  3632. && test -f conftest2.$ac_objext; then
  3633. : OK
  3634. else
  3635. am_cv_prog_cc_c_o=no
  3636. break
  3637. fi
  3638. done
  3639. rm -f core conftest*
  3640. unset am_i
  3641. fi
  3642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3643. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3644. if test "$am_cv_prog_cc_c_o" != yes; then
  3645. # Losing compiler, so override with the script.
  3646. # FIXME: It is wrong to rewrite CC.
  3647. # But if we don't then we get into trouble of one sort or another.
  3648. # A longer-term fix would be to have automake use am__CC in this case,
  3649. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3650. CC="$am_aux_dir/compile $CC"
  3651. fi
  3652. ac_ext=c
  3653. ac_cpp='$CPP $CPPFLAGS'
  3654. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3655. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3656. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3657. DEPDIR="${am__leading_dot}deps"
  3658. ac_config_commands="$ac_config_commands depfiles"
  3659. am_make=${MAKE-make}
  3660. cat > confinc << 'END'
  3661. am__doit:
  3662. @echo this is the am__doit target
  3663. .PHONY: am__doit
  3664. END
  3665. # If we don't find an include directive, just comment out the code.
  3666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3667. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3668. am__include="#"
  3669. am__quote=
  3670. _am_result=none
  3671. # First try GNU make style include.
  3672. echo "include confinc" > confmf
  3673. # Ignore all kinds of additional output from 'make'.
  3674. case `$am_make -s -f confmf 2> /dev/null` in #(
  3675. *the\ am__doit\ target*)
  3676. am__include=include
  3677. am__quote=
  3678. _am_result=GNU
  3679. ;;
  3680. esac
  3681. # Now try BSD make style include.
  3682. if test "$am__include" = "#"; then
  3683. echo '.include "confinc"' > confmf
  3684. case `$am_make -s -f confmf 2> /dev/null` in #(
  3685. *the\ am__doit\ target*)
  3686. am__include=.include
  3687. am__quote="\""
  3688. _am_result=BSD
  3689. ;;
  3690. esac
  3691. fi
  3692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3693. $as_echo "$_am_result" >&6; }
  3694. rm -f confinc confmf
  3695. # Check whether --enable-dependency-tracking was given.
  3696. if test "${enable_dependency_tracking+set}" = set; then :
  3697. enableval=$enable_dependency_tracking;
  3698. fi
  3699. if test "x$enable_dependency_tracking" != xno; then
  3700. am_depcomp="$ac_aux_dir/depcomp"
  3701. AMDEPBACKSLASH='\'
  3702. am__nodep='_no'
  3703. fi
  3704. if test "x$enable_dependency_tracking" != xno; then
  3705. AMDEP_TRUE=
  3706. AMDEP_FALSE='#'
  3707. else
  3708. AMDEP_TRUE='#'
  3709. AMDEP_FALSE=
  3710. fi
  3711. depcc="$CC" am_compiler_list=
  3712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3713. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3714. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3715. $as_echo_n "(cached) " >&6
  3716. else
  3717. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3718. # We make a subdir and do the tests there. Otherwise we can end up
  3719. # making bogus files that we don't know about and never remove. For
  3720. # instance it was reported that on HP-UX the gcc test will end up
  3721. # making a dummy file named 'D' -- because '-MD' means "put the output
  3722. # in D".
  3723. rm -rf conftest.dir
  3724. mkdir conftest.dir
  3725. # Copy depcomp to subdir because otherwise we won't find it if we're
  3726. # using a relative directory.
  3727. cp "$am_depcomp" conftest.dir
  3728. cd conftest.dir
  3729. # We will build objects and dependencies in a subdirectory because
  3730. # it helps to detect inapplicable dependency modes. For instance
  3731. # both Tru64's cc and ICC support -MD to output dependencies as a
  3732. # side effect of compilation, but ICC will put the dependencies in
  3733. # the current directory while Tru64 will put them in the object
  3734. # directory.
  3735. mkdir sub
  3736. am_cv_CC_dependencies_compiler_type=none
  3737. if test "$am_compiler_list" = ""; then
  3738. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3739. fi
  3740. am__universal=false
  3741. case " $depcc " in #(
  3742. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3743. esac
  3744. for depmode in $am_compiler_list; do
  3745. # Setup a source with many dependencies, because some compilers
  3746. # like to wrap large dependency lists on column 80 (with \), and
  3747. # we should not choose a depcomp mode which is confused by this.
  3748. #
  3749. # We need to recreate these files for each test, as the compiler may
  3750. # overwrite some of them when testing with obscure command lines.
  3751. # This happens at least with the AIX C compiler.
  3752. : > sub/conftest.c
  3753. for i in 1 2 3 4 5 6; do
  3754. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3755. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3756. # Solaris 10 /bin/sh.
  3757. echo '/* dummy */' > sub/conftst$i.h
  3758. done
  3759. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3760. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3761. # mode. It turns out that the SunPro C++ compiler does not properly
  3762. # handle '-M -o', and we need to detect this. Also, some Intel
  3763. # versions had trouble with output in subdirs.
  3764. am__obj=sub/conftest.${OBJEXT-o}
  3765. am__minus_obj="-o $am__obj"
  3766. case $depmode in
  3767. gcc)
  3768. # This depmode causes a compiler race in universal mode.
  3769. test "$am__universal" = false || continue
  3770. ;;
  3771. nosideeffect)
  3772. # After this tag, mechanisms are not by side-effect, so they'll
  3773. # only be used when explicitly requested.
  3774. if test "x$enable_dependency_tracking" = xyes; then
  3775. continue
  3776. else
  3777. break
  3778. fi
  3779. ;;
  3780. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3781. # This compiler won't grok '-c -o', but also, the minuso test has
  3782. # not run yet. These depmodes are late enough in the game, and
  3783. # so weak that their functioning should not be impacted.
  3784. am__obj=conftest.${OBJEXT-o}
  3785. am__minus_obj=
  3786. ;;
  3787. none) break ;;
  3788. esac
  3789. if depmode=$depmode \
  3790. source=sub/conftest.c object=$am__obj \
  3791. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3792. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3793. >/dev/null 2>conftest.err &&
  3794. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3795. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3796. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3797. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3798. # icc doesn't choke on unknown options, it will just issue warnings
  3799. # or remarks (even with -Werror). So we grep stderr for any message
  3800. # that says an option was ignored or not supported.
  3801. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3802. # icc: Command line warning: ignoring option '-M'; no argument required
  3803. # The diagnosis changed in icc 8.0:
  3804. # icc: Command line remark: option '-MP' not supported
  3805. if (grep 'ignoring option' conftest.err ||
  3806. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3807. am_cv_CC_dependencies_compiler_type=$depmode
  3808. break
  3809. fi
  3810. fi
  3811. done
  3812. cd ..
  3813. rm -rf conftest.dir
  3814. else
  3815. am_cv_CC_dependencies_compiler_type=none
  3816. fi
  3817. fi
  3818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3819. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3820. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3821. if
  3822. test "x$enable_dependency_tracking" != xno \
  3823. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3824. am__fastdepCC_TRUE=
  3825. am__fastdepCC_FALSE='#'
  3826. else
  3827. am__fastdepCC_TRUE='#'
  3828. am__fastdepCC_FALSE=
  3829. fi
  3830. case $ac_cv_prog_cc_stdc in #(
  3831. no) :
  3832. ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
  3833. *) :
  3834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  3835. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  3836. if ${ac_cv_prog_cc_c99+:} false; then :
  3837. $as_echo_n "(cached) " >&6
  3838. else
  3839. ac_cv_prog_cc_c99=no
  3840. ac_save_CC=$CC
  3841. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3842. /* end confdefs.h. */
  3843. #include <stdarg.h>
  3844. #include <stdbool.h>
  3845. #include <stdlib.h>
  3846. #include <wchar.h>
  3847. #include <stdio.h>
  3848. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  3849. #define debug(...) fprintf (stderr, __VA_ARGS__)
  3850. #define showlist(...) puts (#__VA_ARGS__)
  3851. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  3852. static void
  3853. test_varargs_macros (void)
  3854. {
  3855. int x = 1234;
  3856. int y = 5678;
  3857. debug ("Flag");
  3858. debug ("X = %d\n", x);
  3859. showlist (The first, second, and third items.);
  3860. report (x>y, "x is %d but y is %d", x, y);
  3861. }
  3862. // Check long long types.
  3863. #define BIG64 18446744073709551615ull
  3864. #define BIG32 4294967295ul
  3865. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  3866. #if !BIG_OK
  3867. your preprocessor is broken;
  3868. #endif
  3869. #if BIG_OK
  3870. #else
  3871. your preprocessor is broken;
  3872. #endif
  3873. static long long int bignum = -9223372036854775807LL;
  3874. static unsigned long long int ubignum = BIG64;
  3875. struct incomplete_array
  3876. {
  3877. int datasize;
  3878. double data[];
  3879. };
  3880. struct named_init {
  3881. int number;
  3882. const wchar_t *name;
  3883. double average;
  3884. };
  3885. typedef const char *ccp;
  3886. static inline int
  3887. test_restrict (ccp restrict text)
  3888. {
  3889. // See if C++-style comments work.
  3890. // Iterate through items via the restricted pointer.
  3891. // Also check for declarations in for loops.
  3892. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  3893. continue;
  3894. return 0;
  3895. }
  3896. // Check varargs and va_copy.
  3897. static void
  3898. test_varargs (const char *format, ...)
  3899. {
  3900. va_list args;
  3901. va_start (args, format);
  3902. va_list args_copy;
  3903. va_copy (args_copy, args);
  3904. const char *str;
  3905. int number;
  3906. float fnumber;
  3907. while (*format)
  3908. {
  3909. switch (*format++)
  3910. {
  3911. case 's': // string
  3912. str = va_arg (args_copy, const char *);
  3913. break;
  3914. case 'd': // int
  3915. number = va_arg (args_copy, int);
  3916. break;
  3917. case 'f': // float
  3918. fnumber = va_arg (args_copy, double);
  3919. break;
  3920. default:
  3921. break;
  3922. }
  3923. }
  3924. va_end (args_copy);
  3925. va_end (args);
  3926. }
  3927. int
  3928. main ()
  3929. {
  3930. // Check bool.
  3931. _Bool success = false;
  3932. // Check restrict.
  3933. if (test_restrict ("String literal") == 0)
  3934. success = true;
  3935. char *restrict newvar = "Another string";
  3936. // Check varargs.
  3937. test_varargs ("s, d' f .", "string", 65, 34.234);
  3938. test_varargs_macros ();
  3939. // Check flexible array members.
  3940. struct incomplete_array *ia =
  3941. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  3942. ia->datasize = 10;
  3943. for (int i = 0; i < ia->datasize; ++i)
  3944. ia->data[i] = i * 1.234;
  3945. // Check named initializers.
  3946. struct named_init ni = {
  3947. .number = 34,
  3948. .name = L"Test wide string",
  3949. .average = 543.34343,
  3950. };
  3951. ni.number = 58;
  3952. int dynamic_array[ni.number];
  3953. dynamic_array[ni.number - 1] = 543;
  3954. // work around unused variable warnings
  3955. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  3956. || dynamic_array[ni.number - 1] != 543);
  3957. ;
  3958. return 0;
  3959. }
  3960. _ACEOF
  3961. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
  3962. do
  3963. CC="$ac_save_CC $ac_arg"
  3964. if ac_fn_c_try_compile "$LINENO"; then :
  3965. ac_cv_prog_cc_c99=$ac_arg
  3966. fi
  3967. rm -f core conftest.err conftest.$ac_objext
  3968. test "x$ac_cv_prog_cc_c99" != "xno" && break
  3969. done
  3970. rm -f conftest.$ac_ext
  3971. CC=$ac_save_CC
  3972. fi
  3973. # AC_CACHE_VAL
  3974. case "x$ac_cv_prog_cc_c99" in
  3975. x)
  3976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3977. $as_echo "none needed" >&6; } ;;
  3978. xno)
  3979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3980. $as_echo "unsupported" >&6; } ;;
  3981. *)
  3982. CC="$CC $ac_cv_prog_cc_c99"
  3983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  3984. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  3985. esac
  3986. if test "x$ac_cv_prog_cc_c99" != xno; then :
  3987. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  3988. else
  3989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3990. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3991. if ${ac_cv_prog_cc_c89+:} false; then :
  3992. $as_echo_n "(cached) " >&6
  3993. else
  3994. ac_cv_prog_cc_c89=no
  3995. ac_save_CC=$CC
  3996. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3997. /* end confdefs.h. */
  3998. #include <stdarg.h>
  3999. #include <stdio.h>
  4000. struct stat;
  4001. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4002. struct buf { int x; };
  4003. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4004. static char *e (p, i)
  4005. char **p;
  4006. int i;
  4007. {
  4008. return p[i];
  4009. }
  4010. static char *f (char * (*g) (char **, int), char **p, ...)
  4011. {
  4012. char *s;
  4013. va_list v;
  4014. va_start (v,p);
  4015. s = g (p, va_arg (v,int));
  4016. va_end (v);
  4017. return s;
  4018. }
  4019. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4020. function prototypes and stuff, but not '\xHH' hex character constants.
  4021. These don't provoke an error unfortunately, instead are silently treated
  4022. as 'x'. The following induces an error, until -std is added to get
  4023. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4024. array size at least. It's necessary to write '\x00'==0 to get something
  4025. that's true only with -std. */
  4026. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4027. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4028. inside strings and character constants. */
  4029. #define FOO(x) 'x'
  4030. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4031. int test (int i, double x);
  4032. struct s1 {int (*f) (int a);};
  4033. struct s2 {int (*f) (double a);};
  4034. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4035. int argc;
  4036. char **argv;
  4037. int
  4038. main ()
  4039. {
  4040. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4041. ;
  4042. return 0;
  4043. }
  4044. _ACEOF
  4045. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4046. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4047. do
  4048. CC="$ac_save_CC $ac_arg"
  4049. if ac_fn_c_try_compile "$LINENO"; then :
  4050. ac_cv_prog_cc_c89=$ac_arg
  4051. fi
  4052. rm -f core conftest.err conftest.$ac_objext
  4053. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4054. done
  4055. rm -f conftest.$ac_ext
  4056. CC=$ac_save_CC
  4057. fi
  4058. # AC_CACHE_VAL
  4059. case "x$ac_cv_prog_cc_c89" in
  4060. x)
  4061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4062. $as_echo "none needed" >&6; } ;;
  4063. xno)
  4064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4065. $as_echo "unsupported" >&6; } ;;
  4066. *)
  4067. CC="$CC $ac_cv_prog_cc_c89"
  4068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4069. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4070. esac
  4071. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4072. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4073. else
  4074. ac_cv_prog_cc_stdc=no
  4075. fi
  4076. fi
  4077. ;;
  4078. esac
  4079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
  4080. $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
  4081. if ${ac_cv_prog_cc_stdc+:} false; then :
  4082. $as_echo_n "(cached) " >&6
  4083. fi
  4084. case $ac_cv_prog_cc_stdc in #(
  4085. no) :
  4086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4087. $as_echo "unsupported" >&6; } ;; #(
  4088. '') :
  4089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4090. $as_echo "none needed" >&6; } ;; #(
  4091. *) :
  4092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
  4093. $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
  4094. esac
  4095. ac_ext=c
  4096. ac_cpp='$CPP $CPPFLAGS'
  4097. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4098. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4099. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4101. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4102. # On Suns, sometimes $CPP names a directory.
  4103. if test -n "$CPP" && test -d "$CPP"; then
  4104. CPP=
  4105. fi
  4106. if test -z "$CPP"; then
  4107. if ${ac_cv_prog_CPP+:} false; then :
  4108. $as_echo_n "(cached) " >&6
  4109. else
  4110. # Double quotes because CPP needs to be expanded
  4111. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4112. do
  4113. ac_preproc_ok=false
  4114. for ac_c_preproc_warn_flag in '' yes
  4115. do
  4116. # Use a header file that comes with gcc, so configuring glibc
  4117. # with a fresh cross-compiler works.
  4118. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4119. # <limits.h> exists even on freestanding compilers.
  4120. # On the NeXT, cc -E runs the code through the compiler's parser,
  4121. # not just through cpp. "Syntax error" is here to catch this case.
  4122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4123. /* end confdefs.h. */
  4124. #ifdef __STDC__
  4125. # include <limits.h>
  4126. #else
  4127. # include <assert.h>
  4128. #endif
  4129. Syntax error
  4130. _ACEOF
  4131. if ac_fn_c_try_cpp "$LINENO"; then :
  4132. else
  4133. # Broken: fails on valid input.
  4134. continue
  4135. fi
  4136. rm -f conftest.err conftest.i conftest.$ac_ext
  4137. # OK, works on sane cases. Now check whether nonexistent headers
  4138. # can be detected and how.
  4139. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4140. /* end confdefs.h. */
  4141. #include <ac_nonexistent.h>
  4142. _ACEOF
  4143. if ac_fn_c_try_cpp "$LINENO"; then :
  4144. # Broken: success on invalid input.
  4145. continue
  4146. else
  4147. # Passes both tests.
  4148. ac_preproc_ok=:
  4149. break
  4150. fi
  4151. rm -f conftest.err conftest.i conftest.$ac_ext
  4152. done
  4153. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4154. rm -f conftest.i conftest.err conftest.$ac_ext
  4155. if $ac_preproc_ok; then :
  4156. break
  4157. fi
  4158. done
  4159. ac_cv_prog_CPP=$CPP
  4160. fi
  4161. CPP=$ac_cv_prog_CPP
  4162. else
  4163. ac_cv_prog_CPP=$CPP
  4164. fi
  4165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4166. $as_echo "$CPP" >&6; }
  4167. ac_preproc_ok=false
  4168. for ac_c_preproc_warn_flag in '' yes
  4169. do
  4170. # Use a header file that comes with gcc, so configuring glibc
  4171. # with a fresh cross-compiler works.
  4172. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4173. # <limits.h> exists even on freestanding compilers.
  4174. # On the NeXT, cc -E runs the code through the compiler's parser,
  4175. # not just through cpp. "Syntax error" is here to catch this case.
  4176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4177. /* end confdefs.h. */
  4178. #ifdef __STDC__
  4179. # include <limits.h>
  4180. #else
  4181. # include <assert.h>
  4182. #endif
  4183. Syntax error
  4184. _ACEOF
  4185. if ac_fn_c_try_cpp "$LINENO"; then :
  4186. else
  4187. # Broken: fails on valid input.
  4188. continue
  4189. fi
  4190. rm -f conftest.err conftest.i conftest.$ac_ext
  4191. # OK, works on sane cases. Now check whether nonexistent headers
  4192. # can be detected and how.
  4193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4194. /* end confdefs.h. */
  4195. #include <ac_nonexistent.h>
  4196. _ACEOF
  4197. if ac_fn_c_try_cpp "$LINENO"; then :
  4198. # Broken: success on invalid input.
  4199. continue
  4200. else
  4201. # Passes both tests.
  4202. ac_preproc_ok=:
  4203. break
  4204. fi
  4205. rm -f conftest.err conftest.i conftest.$ac_ext
  4206. done
  4207. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4208. rm -f conftest.i conftest.err conftest.$ac_ext
  4209. if $ac_preproc_ok; then :
  4210. else
  4211. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4212. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4213. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4214. See \`config.log' for more details" "$LINENO" 5; }
  4215. fi
  4216. ac_ext=c
  4217. ac_cpp='$CPP $CPPFLAGS'
  4218. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4219. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4220. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4222. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4223. if ${ac_cv_path_GREP+:} false; then :
  4224. $as_echo_n "(cached) " >&6
  4225. else
  4226. if test -z "$GREP"; then
  4227. ac_path_GREP_found=false
  4228. # Loop through the user's path and test for each of PROGNAME-LIST
  4229. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4230. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4231. do
  4232. IFS=$as_save_IFS
  4233. test -z "$as_dir" && as_dir=.
  4234. for ac_prog in grep ggrep; do
  4235. for ac_exec_ext in '' $ac_executable_extensions; do
  4236. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4237. as_fn_executable_p "$ac_path_GREP" || continue
  4238. # Check for GNU ac_path_GREP and select it if it is found.
  4239. # Check for GNU $ac_path_GREP
  4240. case `"$ac_path_GREP" --version 2>&1` in
  4241. *GNU*)
  4242. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4243. *)
  4244. ac_count=0
  4245. $as_echo_n 0123456789 >"conftest.in"
  4246. while :
  4247. do
  4248. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4249. mv "conftest.tmp" "conftest.in"
  4250. cp "conftest.in" "conftest.nl"
  4251. $as_echo 'GREP' >> "conftest.nl"
  4252. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4253. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4254. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4255. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4256. # Best one so far, save it but keep looking for a better one
  4257. ac_cv_path_GREP="$ac_path_GREP"
  4258. ac_path_GREP_max=$ac_count
  4259. fi
  4260. # 10*(2^10) chars as input seems more than enough
  4261. test $ac_count -gt 10 && break
  4262. done
  4263. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4264. esac
  4265. $ac_path_GREP_found && break 3
  4266. done
  4267. done
  4268. done
  4269. IFS=$as_save_IFS
  4270. if test -z "$ac_cv_path_GREP"; then
  4271. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4272. fi
  4273. else
  4274. ac_cv_path_GREP=$GREP
  4275. fi
  4276. fi
  4277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4278. $as_echo "$ac_cv_path_GREP" >&6; }
  4279. GREP="$ac_cv_path_GREP"
  4280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4281. $as_echo_n "checking for egrep... " >&6; }
  4282. if ${ac_cv_path_EGREP+:} false; then :
  4283. $as_echo_n "(cached) " >&6
  4284. else
  4285. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4286. then ac_cv_path_EGREP="$GREP -E"
  4287. else
  4288. if test -z "$EGREP"; then
  4289. ac_path_EGREP_found=false
  4290. # Loop through the user's path and test for each of PROGNAME-LIST
  4291. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4292. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4293. do
  4294. IFS=$as_save_IFS
  4295. test -z "$as_dir" && as_dir=.
  4296. for ac_prog in egrep; do
  4297. for ac_exec_ext in '' $ac_executable_extensions; do
  4298. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4299. as_fn_executable_p "$ac_path_EGREP" || continue
  4300. # Check for GNU ac_path_EGREP and select it if it is found.
  4301. # Check for GNU $ac_path_EGREP
  4302. case `"$ac_path_EGREP" --version 2>&1` in
  4303. *GNU*)
  4304. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4305. *)
  4306. ac_count=0
  4307. $as_echo_n 0123456789 >"conftest.in"
  4308. while :
  4309. do
  4310. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4311. mv "conftest.tmp" "conftest.in"
  4312. cp "conftest.in" "conftest.nl"
  4313. $as_echo 'EGREP' >> "conftest.nl"
  4314. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4315. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4316. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4317. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4318. # Best one so far, save it but keep looking for a better one
  4319. ac_cv_path_EGREP="$ac_path_EGREP"
  4320. ac_path_EGREP_max=$ac_count
  4321. fi
  4322. # 10*(2^10) chars as input seems more than enough
  4323. test $ac_count -gt 10 && break
  4324. done
  4325. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4326. esac
  4327. $ac_path_EGREP_found && break 3
  4328. done
  4329. done
  4330. done
  4331. IFS=$as_save_IFS
  4332. if test -z "$ac_cv_path_EGREP"; then
  4333. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4334. fi
  4335. else
  4336. ac_cv_path_EGREP=$EGREP
  4337. fi
  4338. fi
  4339. fi
  4340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4341. $as_echo "$ac_cv_path_EGREP" >&6; }
  4342. EGREP="$ac_cv_path_EGREP"
  4343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4344. $as_echo_n "checking for ANSI C header files... " >&6; }
  4345. if ${ac_cv_header_stdc+:} false; then :
  4346. $as_echo_n "(cached) " >&6
  4347. else
  4348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4349. /* end confdefs.h. */
  4350. #include <stdlib.h>
  4351. #include <stdarg.h>
  4352. #include <string.h>
  4353. #include <float.h>
  4354. int
  4355. main ()
  4356. {
  4357. ;
  4358. return 0;
  4359. }
  4360. _ACEOF
  4361. if ac_fn_c_try_compile "$LINENO"; then :
  4362. ac_cv_header_stdc=yes
  4363. else
  4364. ac_cv_header_stdc=no
  4365. fi
  4366. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4367. if test $ac_cv_header_stdc = yes; then
  4368. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4370. /* end confdefs.h. */
  4371. #include <string.h>
  4372. _ACEOF
  4373. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4374. $EGREP "memchr" >/dev/null 2>&1; then :
  4375. else
  4376. ac_cv_header_stdc=no
  4377. fi
  4378. rm -f conftest*
  4379. fi
  4380. if test $ac_cv_header_stdc = yes; then
  4381. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4382. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4383. /* end confdefs.h. */
  4384. #include <stdlib.h>
  4385. _ACEOF
  4386. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4387. $EGREP "free" >/dev/null 2>&1; then :
  4388. else
  4389. ac_cv_header_stdc=no
  4390. fi
  4391. rm -f conftest*
  4392. fi
  4393. if test $ac_cv_header_stdc = yes; then
  4394. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4395. if test "$cross_compiling" = yes; then :
  4396. :
  4397. else
  4398. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4399. /* end confdefs.h. */
  4400. #include <ctype.h>
  4401. #include <stdlib.h>
  4402. #if ((' ' & 0x0FF) == 0x020)
  4403. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4404. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4405. #else
  4406. # define ISLOWER(c) \
  4407. (('a' <= (c) && (c) <= 'i') \
  4408. || ('j' <= (c) && (c) <= 'r') \
  4409. || ('s' <= (c) && (c) <= 'z'))
  4410. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4411. #endif
  4412. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4413. int
  4414. main ()
  4415. {
  4416. int i;
  4417. for (i = 0; i < 256; i++)
  4418. if (XOR (islower (i), ISLOWER (i))
  4419. || toupper (i) != TOUPPER (i))
  4420. return 2;
  4421. return 0;
  4422. }
  4423. _ACEOF
  4424. if ac_fn_c_try_run "$LINENO"; then :
  4425. else
  4426. ac_cv_header_stdc=no
  4427. fi
  4428. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4429. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4430. fi
  4431. fi
  4432. fi
  4433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4434. $as_echo "$ac_cv_header_stdc" >&6; }
  4435. if test $ac_cv_header_stdc = yes; then
  4436. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4437. fi
  4438. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4439. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4440. inttypes.h stdint.h unistd.h
  4441. do :
  4442. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4443. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4444. "
  4445. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4446. cat >>confdefs.h <<_ACEOF
  4447. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4448. _ACEOF
  4449. fi
  4450. done
  4451. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4452. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  4453. MINIX=yes
  4454. else
  4455. MINIX=
  4456. fi
  4457. if test "$MINIX" = yes; then
  4458. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4459. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4460. $as_echo "#define _MINIX 1" >>confdefs.h
  4461. fi
  4462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4463. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4464. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  4465. $as_echo_n "(cached) " >&6
  4466. else
  4467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4468. /* end confdefs.h. */
  4469. # define __EXTENSIONS__ 1
  4470. $ac_includes_default
  4471. int
  4472. main ()
  4473. {
  4474. ;
  4475. return 0;
  4476. }
  4477. _ACEOF
  4478. if ac_fn_c_try_compile "$LINENO"; then :
  4479. ac_cv_safe_to_define___extensions__=yes
  4480. else
  4481. ac_cv_safe_to_define___extensions__=no
  4482. fi
  4483. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4484. fi
  4485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4486. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4487. test $ac_cv_safe_to_define___extensions__ = yes &&
  4488. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4489. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4490. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4491. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4492. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  4494. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  4495. if ${ac_cv_c_const+:} false; then :
  4496. $as_echo_n "(cached) " >&6
  4497. else
  4498. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4499. /* end confdefs.h. */
  4500. int
  4501. main ()
  4502. {
  4503. #ifndef __cplusplus
  4504. /* Ultrix mips cc rejects this sort of thing. */
  4505. typedef int charset[2];
  4506. const charset cs = { 0, 0 };
  4507. /* SunOS 4.1.1 cc rejects this. */
  4508. char const *const *pcpcc;
  4509. char **ppc;
  4510. /* NEC SVR4.0.2 mips cc rejects this. */
  4511. struct point {int x, y;};
  4512. static struct point const zero = {0,0};
  4513. /* AIX XL C 1.02.0.0 rejects this.
  4514. It does not let you subtract one const X* pointer from another in
  4515. an arm of an if-expression whose if-part is not a constant
  4516. expression */
  4517. const char *g = "string";
  4518. pcpcc = &g + (g ? g-g : 0);
  4519. /* HPUX 7.0 cc rejects these. */
  4520. ++pcpcc;
  4521. ppc = (char**) pcpcc;
  4522. pcpcc = (char const *const *) ppc;
  4523. { /* SCO 3.2v4 cc rejects this sort of thing. */
  4524. char tx;
  4525. char *t = &tx;
  4526. char const *s = 0 ? (char *) 0 : (char const *) 0;
  4527. *t++ = 0;
  4528. if (s) return 0;
  4529. }
  4530. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  4531. int x[] = {25, 17};
  4532. const int *foo = &x[0];
  4533. ++foo;
  4534. }
  4535. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  4536. typedef const int *iptr;
  4537. iptr p = 0;
  4538. ++p;
  4539. }
  4540. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  4541. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  4542. struct s { int j; const int *ap[3]; } bx;
  4543. struct s *b = &bx; b->j = 5;
  4544. }
  4545. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  4546. const int foo = 10;
  4547. if (!foo) return 0;
  4548. }
  4549. return !cs[0] && !zero.x;
  4550. #endif
  4551. ;
  4552. return 0;
  4553. }
  4554. _ACEOF
  4555. if ac_fn_c_try_compile "$LINENO"; then :
  4556. ac_cv_c_const=yes
  4557. else
  4558. ac_cv_c_const=no
  4559. fi
  4560. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4561. fi
  4562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  4563. $as_echo "$ac_cv_c_const" >&6; }
  4564. if test $ac_cv_c_const = no; then
  4565. $as_echo "#define const /**/" >>confdefs.h
  4566. fi
  4567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  4568. $as_echo_n "checking for inline... " >&6; }
  4569. if ${ac_cv_c_inline+:} false; then :
  4570. $as_echo_n "(cached) " >&6
  4571. else
  4572. ac_cv_c_inline=no
  4573. for ac_kw in inline __inline__ __inline; do
  4574. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4575. /* end confdefs.h. */
  4576. #ifndef __cplusplus
  4577. typedef int foo_t;
  4578. static $ac_kw foo_t static_foo () {return 0; }
  4579. $ac_kw foo_t foo () {return 0; }
  4580. #endif
  4581. _ACEOF
  4582. if ac_fn_c_try_compile "$LINENO"; then :
  4583. ac_cv_c_inline=$ac_kw
  4584. fi
  4585. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4586. test "$ac_cv_c_inline" != no && break
  4587. done
  4588. fi
  4589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  4590. $as_echo "$ac_cv_c_inline" >&6; }
  4591. case $ac_cv_c_inline in
  4592. inline | yes) ;;
  4593. *)
  4594. case $ac_cv_c_inline in
  4595. no) ac_val=;;
  4596. *) ac_val=$ac_cv_c_inline;;
  4597. esac
  4598. cat >>confdefs.h <<_ACEOF
  4599. #ifndef __cplusplus
  4600. #define inline $ac_val
  4601. #endif
  4602. _ACEOF
  4603. ;;
  4604. esac
  4605. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  4606. if test "x$ac_cv_type_size_t" = xyes; then :
  4607. else
  4608. cat >>confdefs.h <<_ACEOF
  4609. #define size_t unsigned int
  4610. _ACEOF
  4611. fi
  4612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  4613. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  4614. if ${ac_cv_header_stdbool_h+:} false; then :
  4615. $as_echo_n "(cached) " >&6
  4616. else
  4617. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4618. /* end confdefs.h. */
  4619. #include <stdbool.h>
  4620. #ifndef bool
  4621. "error: bool is not defined"
  4622. #endif
  4623. #ifndef false
  4624. "error: false is not defined"
  4625. #endif
  4626. #if false
  4627. "error: false is not 0"
  4628. #endif
  4629. #ifndef true
  4630. "error: true is not defined"
  4631. #endif
  4632. #if true != 1
  4633. "error: true is not 1"
  4634. #endif
  4635. #ifndef __bool_true_false_are_defined
  4636. "error: __bool_true_false_are_defined is not defined"
  4637. #endif
  4638. struct s { _Bool s: 1; _Bool t; } s;
  4639. char a[true == 1 ? 1 : -1];
  4640. char b[false == 0 ? 1 : -1];
  4641. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  4642. char d[(bool) 0.5 == true ? 1 : -1];
  4643. /* See body of main program for 'e'. */
  4644. char f[(_Bool) 0.0 == false ? 1 : -1];
  4645. char g[true];
  4646. char h[sizeof (_Bool)];
  4647. char i[sizeof s.t];
  4648. enum { j = false, k = true, l = false * true, m = true * 256 };
  4649. /* The following fails for
  4650. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  4651. _Bool n[m];
  4652. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  4653. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  4654. /* Catch a bug in an HP-UX C compiler. See
  4655. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  4656. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  4657. */
  4658. _Bool q = true;
  4659. _Bool *pq = &q;
  4660. int
  4661. main ()
  4662. {
  4663. bool e = &s;
  4664. *pq |= q;
  4665. *pq |= ! q;
  4666. /* Refer to every declared value, to avoid compiler optimizations. */
  4667. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  4668. + !m + !n + !o + !p + !q + !pq);
  4669. ;
  4670. return 0;
  4671. }
  4672. _ACEOF
  4673. if ac_fn_c_try_compile "$LINENO"; then :
  4674. ac_cv_header_stdbool_h=yes
  4675. else
  4676. ac_cv_header_stdbool_h=no
  4677. fi
  4678. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4679. fi
  4680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  4681. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  4682. ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  4683. if test "x$ac_cv_type__Bool" = xyes; then :
  4684. cat >>confdefs.h <<_ACEOF
  4685. #define HAVE__BOOL 1
  4686. _ACEOF
  4687. fi
  4688. for ac_func in vprintf
  4689. do :
  4690. ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  4691. if test "x$ac_cv_func_vprintf" = xyes; then :
  4692. cat >>confdefs.h <<_ACEOF
  4693. #define HAVE_VPRINTF 1
  4694. _ACEOF
  4695. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  4696. if test "x$ac_cv_func__doprnt" = xyes; then :
  4697. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  4698. fi
  4699. fi
  4700. done
  4701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  4702. $as_echo_n "checking for working memcmp... " >&6; }
  4703. if ${ac_cv_func_memcmp_working+:} false; then :
  4704. $as_echo_n "(cached) " >&6
  4705. else
  4706. if test "$cross_compiling" = yes; then :
  4707. ac_cv_func_memcmp_working=no
  4708. else
  4709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4710. /* end confdefs.h. */
  4711. $ac_includes_default
  4712. int
  4713. main ()
  4714. {
  4715. /* Some versions of memcmp are not 8-bit clean. */
  4716. char c0 = '\100', c1 = '\200', c2 = '\201';
  4717. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  4718. return 1;
  4719. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  4720. or more and with at least one buffer not starting on a 4-byte boundary.
  4721. William Lewis provided this test program. */
  4722. {
  4723. char foo[21];
  4724. char bar[21];
  4725. int i;
  4726. for (i = 0; i < 4; i++)
  4727. {
  4728. char *a = foo + i;
  4729. char *b = bar + i;
  4730. strcpy (a, "--------01111111");
  4731. strcpy (b, "--------10000000");
  4732. if (memcmp (a, b, 16) >= 0)
  4733. return 1;
  4734. }
  4735. return 0;
  4736. }
  4737. ;
  4738. return 0;
  4739. }
  4740. _ACEOF
  4741. if ac_fn_c_try_run "$LINENO"; then :
  4742. ac_cv_func_memcmp_working=yes
  4743. else
  4744. ac_cv_func_memcmp_working=no
  4745. fi
  4746. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4747. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4748. fi
  4749. fi
  4750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  4751. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  4752. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  4753. *" memcmp.$ac_objext "* ) ;;
  4754. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  4755. ;;
  4756. esac
  4757. if test x"${ac_cv_prog_cc_stdc}" = x"no"; then
  4758. as_fn_error $? "Your compiler does not support \`-std=gnu99\`. This is fatal." "$LINENO" 5
  4759. fi
  4760. for ac_header in stdarg.h stdio.h unistd.h stdlib.h string.h stdint.h time.h signal.h assert.h
  4761. do :
  4762. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4763. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  4764. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4765. cat >>confdefs.h <<_ACEOF
  4766. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4767. _ACEOF
  4768. else
  4769. as_fn_error $? "Missing essential std headers." "$LINENO" 5
  4770. fi
  4771. done
  4772. if test x"${use_msw}" != x"yes"; then
  4773. for ac_header in sys/unistd.h
  4774. do :
  4775. ac_fn_c_check_header_mongrel "$LINENO" "sys/unistd.h" "ac_cv_header_sys_unistd_h" "$ac_includes_default"
  4776. if test "x$ac_cv_header_sys_unistd_h" = xyes; then :
  4777. cat >>confdefs.h <<_ACEOF
  4778. #define HAVE_SYS_UNISTD_H 1
  4779. _ACEOF
  4780. fi
  4781. done
  4782. for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h netdb.h pthread.h errno.h net/ethernet.h syslog.h pwd.h grp.h
  4783. do :
  4784. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4785. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  4786. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4787. cat >>confdefs.h <<_ACEOF
  4788. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4789. _ACEOF
  4790. else
  4791. as_fn_error $? "Missing essential non-Windows std headers." "$LINENO" 5
  4792. fi
  4793. done
  4794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
  4795. $as_echo_n "checking for library containing pthread_create... " >&6; }
  4796. if ${ac_cv_search_pthread_create+:} false; then :
  4797. $as_echo_n "(cached) " >&6
  4798. else
  4799. ac_func_search_save_LIBS=$LIBS
  4800. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4801. /* end confdefs.h. */
  4802. /* Override any GCC internal prototype to avoid an error.
  4803. Use char because int might match the return type of a GCC
  4804. builtin and then its argument prototype would still apply. */
  4805. #ifdef __cplusplus
  4806. extern "C"
  4807. #endif
  4808. char pthread_create ();
  4809. int
  4810. main ()
  4811. {
  4812. return pthread_create ();
  4813. ;
  4814. return 0;
  4815. }
  4816. _ACEOF
  4817. for ac_lib in '' pthread; do
  4818. if test -z "$ac_lib"; then
  4819. ac_res="none required"
  4820. else
  4821. ac_res=-l$ac_lib
  4822. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4823. fi
  4824. if ac_fn_c_try_link "$LINENO"; then :
  4825. ac_cv_search_pthread_create=$ac_res
  4826. fi
  4827. rm -f core conftest.err conftest.$ac_objext \
  4828. conftest$ac_exeext
  4829. if ${ac_cv_search_pthread_create+:} false; then :
  4830. break
  4831. fi
  4832. done
  4833. if ${ac_cv_search_pthread_create+:} false; then :
  4834. else
  4835. ac_cv_search_pthread_create=no
  4836. fi
  4837. rm conftest.$ac_ext
  4838. LIBS=$ac_func_search_save_LIBS
  4839. fi
  4840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
  4841. $as_echo "$ac_cv_search_pthread_create" >&6; }
  4842. ac_res=$ac_cv_search_pthread_create
  4843. if test "$ac_res" != no; then :
  4844. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4845. else
  4846. as_fn_error $? "Missing pthread library." "$LINENO" 5
  4847. fi
  4848. if test x"${use_android}" != x"yes"; then
  4849. for ac_func in signal
  4850. do :
  4851. ac_fn_c_check_func "$LINENO" "signal" "ac_cv_func_signal"
  4852. if test "x$ac_cv_func_signal" = xyes; then :
  4853. cat >>confdefs.h <<_ACEOF
  4854. #define HAVE_SIGNAL 1
  4855. _ACEOF
  4856. else
  4857. as_fn_error $? "Missing essential non-Android std functions." "$LINENO" 5
  4858. fi
  4859. done
  4860. fi
  4861. for ac_func in pthread_mutex_init pthread_mutex_lock pthread_mutex_unlock syslog getaddrinfo freeaddrinfo gai_strerror
  4862. do :
  4863. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4864. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4865. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  4866. cat >>confdefs.h <<_ACEOF
  4867. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4868. _ACEOF
  4869. else
  4870. as_fn_error $? "Missing essential Linux std functions." "$LINENO" 5
  4871. fi
  4872. done
  4873. else
  4874. if test -n "$ac_tool_prefix"; then
  4875. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4876. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4878. $as_echo_n "checking for $ac_word... " >&6; }
  4879. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4880. $as_echo_n "(cached) " >&6
  4881. else
  4882. if test -n "$DLLTOOL"; then
  4883. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4884. else
  4885. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4886. for as_dir in $PATH
  4887. do
  4888. IFS=$as_save_IFS
  4889. test -z "$as_dir" && as_dir=.
  4890. for ac_exec_ext in '' $ac_executable_extensions; do
  4891. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4892. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4893. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4894. break 2
  4895. fi
  4896. done
  4897. done
  4898. IFS=$as_save_IFS
  4899. fi
  4900. fi
  4901. DLLTOOL=$ac_cv_prog_DLLTOOL
  4902. if test -n "$DLLTOOL"; then
  4903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4904. $as_echo "$DLLTOOL" >&6; }
  4905. else
  4906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4907. $as_echo "no" >&6; }
  4908. fi
  4909. fi
  4910. if test -z "$ac_cv_prog_DLLTOOL"; then
  4911. ac_ct_DLLTOOL=$DLLTOOL
  4912. # Extract the first word of "dlltool", so it can be a program name with args.
  4913. set dummy dlltool; ac_word=$2
  4914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4915. $as_echo_n "checking for $ac_word... " >&6; }
  4916. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4917. $as_echo_n "(cached) " >&6
  4918. else
  4919. if test -n "$ac_ct_DLLTOOL"; then
  4920. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4921. else
  4922. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4923. for as_dir in $PATH
  4924. do
  4925. IFS=$as_save_IFS
  4926. test -z "$as_dir" && as_dir=.
  4927. for ac_exec_ext in '' $ac_executable_extensions; do
  4928. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4929. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4930. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4931. break 2
  4932. fi
  4933. done
  4934. done
  4935. IFS=$as_save_IFS
  4936. fi
  4937. fi
  4938. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4939. if test -n "$ac_ct_DLLTOOL"; then
  4940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4941. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4942. else
  4943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4944. $as_echo "no" >&6; }
  4945. fi
  4946. if test "x$ac_ct_DLLTOOL" = x; then
  4947. DLLTOOL=":"
  4948. else
  4949. case $cross_compiling:$ac_tool_warned in
  4950. yes:)
  4951. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4952. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4953. ac_tool_warned=yes ;;
  4954. esac
  4955. DLLTOOL=$ac_ct_DLLTOOL
  4956. fi
  4957. else
  4958. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4959. fi
  4960. if test x"${DLLTOOL}" = x":"; then
  4961. as_fn_error $? "Missing dlltool which is required to build the import library!" "$LINENO" 5
  4962. fi
  4963. for ac_header in winsock2.h windows.h ws2tcpip.h
  4964. do :
  4965. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4966. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  4967. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4968. cat >>confdefs.h <<_ACEOF
  4969. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4970. _ACEOF
  4971. else
  4972. as_fn_error $? "Missing essential Windows std headers." "$LINENO" 5
  4973. fi
  4974. done
  4975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
  4976. $as_echo_n "checking for main in -lws2_32... " >&6; }
  4977. if ${ac_cv_lib_ws2_32_main+:} false; then :
  4978. $as_echo_n "(cached) " >&6
  4979. else
  4980. ac_check_lib_save_LIBS=$LIBS
  4981. LIBS="-lws2_32 $LIBS"
  4982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4983. /* end confdefs.h. */
  4984. int
  4985. main ()
  4986. {
  4987. return main ();
  4988. ;
  4989. return 0;
  4990. }
  4991. _ACEOF
  4992. if ac_fn_c_try_link "$LINENO"; then :
  4993. ac_cv_lib_ws2_32_main=yes
  4994. else
  4995. ac_cv_lib_ws2_32_main=no
  4996. fi
  4997. rm -f core conftest.err conftest.$ac_objext \
  4998. conftest$ac_exeext conftest.$ac_ext
  4999. LIBS=$ac_check_lib_save_LIBS
  5000. fi
  5001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
  5002. $as_echo "$ac_cv_lib_ws2_32_main" >&6; }
  5003. if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
  5004. cat >>confdefs.h <<_ACEOF
  5005. #define HAVE_LIBWS2_32 1
  5006. _ACEOF
  5007. LIBS="-lws2_32 $LIBS"
  5008. fi
  5009. fi
  5010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU getopt_long" >&5
  5011. $as_echo_n "checking for GNU getopt_long... " >&6; }
  5012. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5013. /* end confdefs.h. */
  5014. #include <stdlib.h>
  5015. #include <getopt.h>
  5016. struct option long_options[] = {
  5017. {"opt1", required_argument, 0, 'a'},
  5018. {"opt2", optional_argument, 0, 'b'},
  5019. {"opt3", no_argument, 0, 'c'}
  5020. };
  5021. void parse_opts(int argc, char **argv) {
  5022. getopt_long(argc, argv, "a:b::c", &long_options[0], &optind);
  5023. }
  5024. int
  5025. main ()
  5026. {
  5027. ;
  5028. return 0;
  5029. }
  5030. _ACEOF
  5031. if ac_fn_c_try_compile "$LINENO"; then :
  5032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5033. $as_echo "yes" >&6; }
  5034. else
  5035. as_fn_error $? "Your compiler does not support \`_GNU_SOURCE\`." "$LINENO" 5
  5036. fi
  5037. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5038. ac_fn_c_check_member "$LINENO" "struct timeval" "tv_sec" "ac_cv_member_struct_timeval_tv_sec" "#include <sys/time.h>
  5039. "
  5040. if test "x$ac_cv_member_struct_timeval_tv_sec" = xyes; then :
  5041. else
  5042. as_fn_error $? "Invalid \`struct timeval\` structure." "$LINENO" 5
  5043. fi
  5044. ac_fn_c_check_member "$LINENO" "struct timeval" "tv_usec" "ac_cv_member_struct_timeval_tv_usec" "#include <sys/time.h>
  5045. "
  5046. if test "x$ac_cv_member_struct_timeval_tv_usec" = xyes; then :
  5047. else
  5048. as_fn_error $? "Invalid \`struct timeval\` structure." "$LINENO" 5
  5049. fi
  5050. # The cast to long int works around a bug in the HP C Compiler
  5051. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5052. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5053. # This bug is HP SR number 8606223364.
  5054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
  5055. $as_echo_n "checking size of char... " >&6; }
  5056. if ${ac_cv_sizeof_char+:} false; then :
  5057. $as_echo_n "(cached) " >&6
  5058. else
  5059. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
  5060. else
  5061. if test "$ac_cv_type_char" = yes; then
  5062. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5063. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5064. as_fn_error 77 "cannot compute sizeof (char)
  5065. See \`config.log' for more details" "$LINENO" 5; }
  5066. else
  5067. ac_cv_sizeof_char=0
  5068. fi
  5069. fi
  5070. fi
  5071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
  5072. $as_echo "$ac_cv_sizeof_char" >&6; }
  5073. cat >>confdefs.h <<_ACEOF
  5074. #define SIZEOF_CHAR $ac_cv_sizeof_char
  5075. _ACEOF
  5076. # The cast to long int works around a bug in the HP C Compiler
  5077. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5078. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5079. # This bug is HP SR number 8606223364.
  5080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uint8_t" >&5
  5081. $as_echo_n "checking size of uint8_t... " >&6; }
  5082. if ${ac_cv_sizeof_uint8_t+:} false; then :
  5083. $as_echo_n "(cached) " >&6
  5084. else
  5085. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint8_t))" "ac_cv_sizeof_uint8_t" "$ac_includes_default"; then :
  5086. else
  5087. if test "$ac_cv_type_uint8_t" = yes; then
  5088. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5089. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5090. as_fn_error 77 "cannot compute sizeof (uint8_t)
  5091. See \`config.log' for more details" "$LINENO" 5; }
  5092. else
  5093. ac_cv_sizeof_uint8_t=0
  5094. fi
  5095. fi
  5096. fi
  5097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint8_t" >&5
  5098. $as_echo "$ac_cv_sizeof_uint8_t" >&6; }
  5099. cat >>confdefs.h <<_ACEOF
  5100. #define SIZEOF_UINT8_T $ac_cv_sizeof_uint8_t
  5101. _ACEOF
  5102. # The cast to long int works around a bug in the HP C Compiler
  5103. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5104. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5105. # This bug is HP SR number 8606223364.
  5106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uint16_t" >&5
  5107. $as_echo_n "checking size of uint16_t... " >&6; }
  5108. if ${ac_cv_sizeof_uint16_t+:} false; then :
  5109. $as_echo_n "(cached) " >&6
  5110. else
  5111. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint16_t))" "ac_cv_sizeof_uint16_t" "$ac_includes_default"; then :
  5112. else
  5113. if test "$ac_cv_type_uint16_t" = yes; then
  5114. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5115. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5116. as_fn_error 77 "cannot compute sizeof (uint16_t)
  5117. See \`config.log' for more details" "$LINENO" 5; }
  5118. else
  5119. ac_cv_sizeof_uint16_t=0
  5120. fi
  5121. fi
  5122. fi
  5123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint16_t" >&5
  5124. $as_echo "$ac_cv_sizeof_uint16_t" >&6; }
  5125. cat >>confdefs.h <<_ACEOF
  5126. #define SIZEOF_UINT16_T $ac_cv_sizeof_uint16_t
  5127. _ACEOF
  5128. # The cast to long int works around a bug in the HP C Compiler
  5129. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5130. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5131. # This bug is HP SR number 8606223364.
  5132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uint32_t" >&5
  5133. $as_echo_n "checking size of uint32_t... " >&6; }
  5134. if ${ac_cv_sizeof_uint32_t+:} false; then :
  5135. $as_echo_n "(cached) " >&6
  5136. else
  5137. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint32_t))" "ac_cv_sizeof_uint32_t" "$ac_includes_default"; then :
  5138. else
  5139. if test "$ac_cv_type_uint32_t" = yes; then
  5140. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5141. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5142. as_fn_error 77 "cannot compute sizeof (uint32_t)
  5143. See \`config.log' for more details" "$LINENO" 5; }
  5144. else
  5145. ac_cv_sizeof_uint32_t=0
  5146. fi
  5147. fi
  5148. fi
  5149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint32_t" >&5
  5150. $as_echo "$ac_cv_sizeof_uint32_t" >&6; }
  5151. cat >>confdefs.h <<_ACEOF
  5152. #define SIZEOF_UINT32_T $ac_cv_sizeof_uint32_t
  5153. _ACEOF
  5154. # The cast to long int works around a bug in the HP C Compiler
  5155. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5156. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5157. # This bug is HP SR number 8606223364.
  5158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  5159. $as_echo_n "checking size of int... " >&6; }
  5160. if ${ac_cv_sizeof_int+:} false; then :
  5161. $as_echo_n "(cached) " >&6
  5162. else
  5163. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  5164. else
  5165. if test "$ac_cv_type_int" = yes; then
  5166. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5167. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5168. as_fn_error 77 "cannot compute sizeof (int)
  5169. See \`config.log' for more details" "$LINENO" 5; }
  5170. else
  5171. ac_cv_sizeof_int=0
  5172. fi
  5173. fi
  5174. fi
  5175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  5176. $as_echo "$ac_cv_sizeof_int" >&6; }
  5177. cat >>confdefs.h <<_ACEOF
  5178. #define SIZEOF_INT $ac_cv_sizeof_int
  5179. _ACEOF
  5180. if test $ac_cv_sizeof_char != "1" -o \
  5181. $ac_cv_sizeof_uint8_t != "1" -o \
  5182. $ac_cv_sizeof_uint16_t != "2" -o \
  5183. $ac_cv_sizeof_uint32_t != "4" -o \
  5184. $ac_cv_sizeof_int != "4"; then
  5185. as_fn_error $? "Invalid type size." "$LINENO" 5
  5186. fi
  5187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((packed))" >&5
  5188. $as_echo_n "checking for __attribute__ ((packed))... " >&6; }
  5189. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5190. /* end confdefs.h. */
  5191. #include <stdlib.h>
  5192. struct foo {
  5193. int num;
  5194. char *str;
  5195. void *ptr;
  5196. } __attribute__ ((packed));
  5197. int
  5198. main ()
  5199. {
  5200. ;
  5201. return 0;
  5202. }
  5203. _ACEOF
  5204. if ac_fn_c_try_compile "$LINENO"; then :
  5205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5206. $as_echo "yes" >&6; }
  5207. else
  5208. as_fn_error $? "Your compiler does not support \`__attribute__ ((packed))\`." "$LINENO" 5
  5209. fi
  5210. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5211. for ac_func in malloc calloc free memcpy memset printf sprintf vsnprintf strerror strlen strncmp strstr strtol strtoul fopen fprintf gettimeofday close fclose exit getopt_long
  5212. do :
  5213. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5214. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5215. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  5216. cat >>confdefs.h <<_ACEOF
  5217. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5218. _ACEOF
  5219. else
  5220. as_fn_error $? "Missing essential std functions." "$LINENO" 5
  5221. fi
  5222. done
  5223. # Check whether --enable-pcap was given.
  5224. if test "${enable_pcap+set}" = set; then :
  5225. enableval=$enable_pcap;
  5226. else
  5227. pcap_enabled=yes
  5228. fi
  5229. pcap_enabled=$(echo ${pcap_enabled})
  5230. case ${pcap_enabled} in
  5231. 1|y|yes) pcap_enabled=yes ;;
  5232. ''|0|n|no) pcap_enabled= ;;
  5233. *) as_fn_error $? "Unknown option \`${pcap_enabled}\` for --disable-pcap" "$LINENO" 5 ;;
  5234. esac
  5235. # Check whether --enable-selinux was given.
  5236. if test "${enable_selinux+set}" = set; then :
  5237. enableval=$enable_selinux;
  5238. else
  5239. selinux_enabled=yes
  5240. fi
  5241. selinux_enabled=$(echo ${selinux_enabled})
  5242. case ${selinux_enabled} in
  5243. 1|y|yes) selinux_enabled=yes ;;
  5244. ''|0|n|no) selinux_enabled= ;;
  5245. *) as_fn_error $? "Unknown option \`${selinux_enabled}\` for --disable-selinux" "$LINENO" 5 ;;
  5246. esac
  5247. use_customrng=no
  5248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random device" >&5
  5249. $as_echo_n "checking for random device... " >&6; }
  5250. # Check whether --with-rngdev was given.
  5251. if test "${with_rngdev+set}" = set; then :
  5252. withval=$with_rngdev; use_customrng=yes
  5253. else
  5254. with_rngdev="/dev/random"
  5255. fi
  5256. case ${with_rngdev} in
  5257. yes) with_rngdev="/dev/random" ;;
  5258. /dev/random) ;;
  5259. /dev/urandom) ;;
  5260. *) as_fn_error $? "Unknown random device \`${with_rngdev}\` for --with-rngdev: Only \`/dev/random\` xor \`/dev/urandom\` allowed. This option is unused on Windows targets." "$LINENO" 5 ;;
  5261. esac
  5262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_rngdev}" >&5
  5263. $as_echo "${with_rngdev}" >&6; }
  5264. cat >>confdefs.h <<_ACEOF
  5265. #define RNGDEV "${with_rngdev}"
  5266. _ACEOF
  5267. if test x"${pcap_enabled}" != x -a \
  5268. x"${use_msw}" != xyes; then
  5269. for ac_header in pcap.h
  5270. do :
  5271. ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default"
  5272. if test "x$ac_cv_header_pcap_h" = xyes; then :
  5273. cat >>confdefs.h <<_ACEOF
  5274. #define HAVE_PCAP_H 1
  5275. _ACEOF
  5276. else
  5277. pcap_enabled=
  5278. fi
  5279. done
  5280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pcap_lookupnet" >&5
  5281. $as_echo_n "checking for library containing pcap_lookupnet... " >&6; }
  5282. if ${ac_cv_search_pcap_lookupnet+:} false; then :
  5283. $as_echo_n "(cached) " >&6
  5284. else
  5285. ac_func_search_save_LIBS=$LIBS
  5286. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5287. /* end confdefs.h. */
  5288. /* Override any GCC internal prototype to avoid an error.
  5289. Use char because int might match the return type of a GCC
  5290. builtin and then its argument prototype would still apply. */
  5291. #ifdef __cplusplus
  5292. extern "C"
  5293. #endif
  5294. char pcap_lookupnet ();
  5295. int
  5296. main ()
  5297. {
  5298. return pcap_lookupnet ();
  5299. ;
  5300. return 0;
  5301. }
  5302. _ACEOF
  5303. for ac_lib in '' pcap; do
  5304. if test -z "$ac_lib"; then
  5305. ac_res="none required"
  5306. else
  5307. ac_res=-l$ac_lib
  5308. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5309. fi
  5310. if ac_fn_c_try_link "$LINENO"; then :
  5311. ac_cv_search_pcap_lookupnet=$ac_res
  5312. fi
  5313. rm -f core conftest.err conftest.$ac_objext \
  5314. conftest$ac_exeext
  5315. if ${ac_cv_search_pcap_lookupnet+:} false; then :
  5316. break
  5317. fi
  5318. done
  5319. if ${ac_cv_search_pcap_lookupnet+:} false; then :
  5320. else
  5321. ac_cv_search_pcap_lookupnet=no
  5322. fi
  5323. rm conftest.$ac_ext
  5324. LIBS=$ac_func_search_save_LIBS
  5325. fi
  5326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pcap_lookupnet" >&5
  5327. $as_echo "$ac_cv_search_pcap_lookupnet" >&6; }
  5328. ac_res=$ac_cv_search_pcap_lookupnet
  5329. if test "$ac_res" != no; then :
  5330. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5331. else
  5332. pcap_enabled=
  5333. fi
  5334. for ac_func in pcap_compile pcap_close pcap_setfilter pcap_dispatch
  5335. do :
  5336. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5337. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5338. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  5339. cat >>confdefs.h <<_ACEOF
  5340. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5341. _ACEOF
  5342. else
  5343. pcap_enabled=
  5344. fi
  5345. done
  5346. fi
  5347. if test x"${use_customrng}" != xyes; then
  5348. for ac_header in bsd/stdlib.h
  5349. do :
  5350. ac_fn_c_check_header_mongrel "$LINENO" "bsd/stdlib.h" "ac_cv_header_bsd_stdlib_h" "$ac_includes_default"
  5351. if test "x$ac_cv_header_bsd_stdlib_h" = xyes; then :
  5352. cat >>confdefs.h <<_ACEOF
  5353. #define HAVE_BSD_STDLIB_H 1
  5354. _ACEOF
  5355. fi
  5356. done
  5357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing arc4random" >&5
  5358. $as_echo_n "checking for library containing arc4random... " >&6; }
  5359. if ${ac_cv_search_arc4random+:} false; then :
  5360. $as_echo_n "(cached) " >&6
  5361. else
  5362. ac_func_search_save_LIBS=$LIBS
  5363. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5364. /* end confdefs.h. */
  5365. /* Override any GCC internal prototype to avoid an error.
  5366. Use char because int might match the return type of a GCC
  5367. builtin and then its argument prototype would still apply. */
  5368. #ifdef __cplusplus
  5369. extern "C"
  5370. #endif
  5371. char arc4random ();
  5372. int
  5373. main ()
  5374. {
  5375. return arc4random ();
  5376. ;
  5377. return 0;
  5378. }
  5379. _ACEOF
  5380. for ac_lib in '' bsd; do
  5381. if test -z "$ac_lib"; then
  5382. ac_res="none required"
  5383. else
  5384. ac_res=-l$ac_lib
  5385. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5386. fi
  5387. if ac_fn_c_try_link "$LINENO"; then :
  5388. ac_cv_search_arc4random=$ac_res
  5389. fi
  5390. rm -f core conftest.err conftest.$ac_objext \
  5391. conftest$ac_exeext
  5392. if ${ac_cv_search_arc4random+:} false; then :
  5393. break
  5394. fi
  5395. done
  5396. if ${ac_cv_search_arc4random+:} false; then :
  5397. else
  5398. ac_cv_search_arc4random=no
  5399. fi
  5400. rm conftest.$ac_ext
  5401. LIBS=$ac_func_search_save_LIBS
  5402. fi
  5403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_arc4random" >&5
  5404. $as_echo "$ac_cv_search_arc4random" >&6; }
  5405. ac_res=$ac_cv_search_arc4random
  5406. if test "$ac_res" != no; then :
  5407. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5408. fi
  5409. for ac_func in arc4random
  5410. do :
  5411. ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random"
  5412. if test "x$ac_cv_func_arc4random" = xyes; then :
  5413. cat >>confdefs.h <<_ACEOF
  5414. #define HAVE_ARC4RANDOM 1
  5415. _ACEOF
  5416. arc4random_enabled=yes
  5417. fi
  5418. done
  5419. fi
  5420. if test x"${selinux_enabled}" != x; then
  5421. for ac_header in selinux/selinux.h
  5422. do :
  5423. ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
  5424. if test "x$ac_cv_header_selinux_selinux_h" = xyes; then :
  5425. cat >>confdefs.h <<_ACEOF
  5426. #define HAVE_SELINUX_SELINUX_H 1
  5427. _ACEOF
  5428. else
  5429. selinux_enabled=
  5430. fi
  5431. done
  5432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setcon" >&5
  5433. $as_echo_n "checking for library containing setcon... " >&6; }
  5434. if ${ac_cv_search_setcon+:} false; then :
  5435. $as_echo_n "(cached) " >&6
  5436. else
  5437. ac_func_search_save_LIBS=$LIBS
  5438. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5439. /* end confdefs.h. */
  5440. /* Override any GCC internal prototype to avoid an error.
  5441. Use char because int might match the return type of a GCC
  5442. builtin and then its argument prototype would still apply. */
  5443. #ifdef __cplusplus
  5444. extern "C"
  5445. #endif
  5446. char setcon ();
  5447. int
  5448. main ()
  5449. {
  5450. return setcon ();
  5451. ;
  5452. return 0;
  5453. }
  5454. _ACEOF
  5455. for ac_lib in '' selinux; do
  5456. if test -z "$ac_lib"; then
  5457. ac_res="none required"
  5458. else
  5459. ac_res=-l$ac_lib
  5460. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5461. fi
  5462. if ac_fn_c_try_link "$LINENO"; then :
  5463. ac_cv_search_setcon=$ac_res
  5464. fi
  5465. rm -f core conftest.err conftest.$ac_objext \
  5466. conftest$ac_exeext
  5467. if ${ac_cv_search_setcon+:} false; then :
  5468. break
  5469. fi
  5470. done
  5471. if ${ac_cv_search_setcon+:} false; then :
  5472. else
  5473. ac_cv_search_setcon=no
  5474. fi
  5475. rm conftest.$ac_ext
  5476. LIBS=$ac_func_search_save_LIBS
  5477. fi
  5478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setcon" >&5
  5479. $as_echo "$ac_cv_search_setcon" >&6; }
  5480. ac_res=$ac_cv_search_setcon
  5481. if test "$ac_res" != no; then :
  5482. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5483. else
  5484. selinux_enabled=
  5485. fi
  5486. fi
  5487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working ICMP_FILTER" >&5
  5488. $as_echo_n "checking for working ICMP_FILTER... " >&6; }
  5489. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5490. /* end confdefs.h. */
  5491. #include <netinet/in.h>
  5492. #include <sys/socket.h>
  5493. #include <linux/icmp.h>
  5494. void foo() {
  5495. struct icmp_filter filt;
  5496. int sockfd = socket(AF_INET, SOCK_RAW, IPPROTO_ICMP);
  5497. filt.data = ~((1<<ICMP_ECHO) | (1<<ICMP_ECHOREPLY));
  5498. setsockopt(sockfd, SOL_RAW, ICMP_FILTER, &filt, sizeof filt);
  5499. }
  5500. int
  5501. main ()
  5502. {
  5503. ;
  5504. return 0;
  5505. }
  5506. _ACEOF
  5507. if ac_fn_c_try_compile "$LINENO"; then :
  5508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5509. $as_echo "yes" >&6; }
  5510. with_icmp_filter="yes"
  5511. else
  5512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5513. $as_echo "no" >&6; }
  5514. with_icmp_filter="no"
  5515. fi
  5516. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __android_log_vprint" >&5
  5518. $as_echo_n "checking for library containing __android_log_vprint... " >&6; }
  5519. if ${ac_cv_search___android_log_vprint+:} false; then :
  5520. $as_echo_n "(cached) " >&6
  5521. else
  5522. ac_func_search_save_LIBS=$LIBS
  5523. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5524. /* end confdefs.h. */
  5525. /* Override any GCC internal prototype to avoid an error.
  5526. Use char because int might match the return type of a GCC
  5527. builtin and then its argument prototype would still apply. */
  5528. #ifdef __cplusplus
  5529. extern "C"
  5530. #endif
  5531. char __android_log_vprint ();
  5532. int
  5533. main ()
  5534. {
  5535. return __android_log_vprint ();
  5536. ;
  5537. return 0;
  5538. }
  5539. _ACEOF
  5540. for ac_lib in '' log; do
  5541. if test -z "$ac_lib"; then
  5542. ac_res="none required"
  5543. else
  5544. ac_res=-l$ac_lib
  5545. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5546. fi
  5547. if ac_fn_c_try_link "$LINENO"; then :
  5548. ac_cv_search___android_log_vprint=$ac_res
  5549. fi
  5550. rm -f core conftest.err conftest.$ac_objext \
  5551. conftest$ac_exeext
  5552. if ${ac_cv_search___android_log_vprint+:} false; then :
  5553. break
  5554. fi
  5555. done
  5556. if ${ac_cv_search___android_log_vprint+:} false; then :
  5557. else
  5558. ac_cv_search___android_log_vprint=no
  5559. fi
  5560. rm conftest.$ac_ext
  5561. LIBS=$ac_func_search_save_LIBS
  5562. fi
  5563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___android_log_vprint" >&5
  5564. $as_echo "$ac_cv_search___android_log_vprint" >&6; }
  5565. ac_res=$ac_cv_search___android_log_vprint
  5566. if test "$ac_res" != no; then :
  5567. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5568. fi
  5569. if test x"${pcap_enabled}" = xyes; then
  5570. HAVE_PCAP_TRUE=
  5571. HAVE_PCAP_FALSE='#'
  5572. else
  5573. HAVE_PCAP_TRUE='#'
  5574. HAVE_PCAP_FALSE=
  5575. fi
  5576. if test x"${selinux_enabled}" = xyes; then
  5577. HAVE_SELINUX_TRUE=
  5578. HAVE_SELINUX_FALSE='#'
  5579. else
  5580. HAVE_SELINUX_TRUE='#'
  5581. HAVE_SELINUX_FALSE=
  5582. fi
  5583. if test x"${use_msw}" = xyes; then
  5584. IS_WINDOWS_TRUE=
  5585. IS_WINDOWS_FALSE='#'
  5586. else
  5587. IS_WINDOWS_TRUE='#'
  5588. IS_WINDOWS_FALSE=
  5589. fi
  5590. if test x"${with_icmp_filter}" = xyes; then
  5591. HAVE_ICMPFILTER_TRUE=
  5592. HAVE_ICMPFILTER_FALSE='#'
  5593. else
  5594. HAVE_ICMPFILTER_TRUE='#'
  5595. HAVE_ICMPFILTER_FALSE=
  5596. fi
  5597. if test x"${arc4random_enabled}" = xyes; then
  5598. HAVE_ARC4RANDOM_TRUE=
  5599. HAVE_ARC4RANDOM_FALSE='#'
  5600. else
  5601. HAVE_ARC4RANDOM_TRUE='#'
  5602. HAVE_ARC4RANDOM_FALSE=
  5603. fi
  5604. if test x"${use_customrng}" = xyes; then
  5605. USE_CUSTOMRNG_TRUE=
  5606. USE_CUSTOMRNG_FALSE='#'
  5607. else
  5608. USE_CUSTOMRNG_TRUE='#'
  5609. USE_CUSTOMRNG_FALSE=
  5610. fi
  5611. ac_config_headers="$ac_config_headers src/config.h:src/config.h.in"
  5612. cat >confcache <<\_ACEOF
  5613. # This file is a shell script that caches the results of configure
  5614. # tests run on this system so they can be shared between configure
  5615. # scripts and configure runs, see configure's option --config-cache.
  5616. # It is not useful on other systems. If it contains results you don't
  5617. # want to keep, you may remove or edit it.
  5618. #
  5619. # config.status only pays attention to the cache file if you give it
  5620. # the --recheck option to rerun configure.
  5621. #
  5622. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5623. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5624. # following values.
  5625. _ACEOF
  5626. # The following way of writing the cache mishandles newlines in values,
  5627. # but we know of no workaround that is simple, portable, and efficient.
  5628. # So, we kill variables containing newlines.
  5629. # Ultrix sh set writes to stderr and can't be redirected directly,
  5630. # and sets the high bit in the cache file unless we assign to the vars.
  5631. (
  5632. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5633. eval ac_val=\$$ac_var
  5634. case $ac_val in #(
  5635. *${as_nl}*)
  5636. case $ac_var in #(
  5637. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  5638. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  5639. esac
  5640. case $ac_var in #(
  5641. _ | IFS | as_nl) ;; #(
  5642. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  5643. *) { eval $ac_var=; unset $ac_var;} ;;
  5644. esac ;;
  5645. esac
  5646. done
  5647. (set) 2>&1 |
  5648. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5649. *${as_nl}ac_space=\ *)
  5650. # `set' does not quote correctly, so add quotes: double-quote
  5651. # substitution turns \\\\ into \\, and sed turns \\ into \.
  5652. sed -n \
  5653. "s/'/'\\\\''/g;
  5654. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5655. ;; #(
  5656. *)
  5657. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5658. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5659. ;;
  5660. esac |
  5661. sort
  5662. ) |
  5663. sed '
  5664. /^ac_cv_env_/b end
  5665. t clear
  5666. :clear
  5667. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5668. t end
  5669. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5670. :end' >>confcache
  5671. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5672. if test -w "$cache_file"; then
  5673. if test "x$cache_file" != "x/dev/null"; then
  5674. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  5675. $as_echo "$as_me: updating cache $cache_file" >&6;}
  5676. if test ! -f "$cache_file" || test -h "$cache_file"; then
  5677. cat confcache >"$cache_file"
  5678. else
  5679. case $cache_file in #(
  5680. */* | ?:*)
  5681. mv -f confcache "$cache_file"$$ &&
  5682. mv -f "$cache_file"$$ "$cache_file" ;; #(
  5683. *)
  5684. mv -f confcache "$cache_file" ;;
  5685. esac
  5686. fi
  5687. fi
  5688. else
  5689. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  5690. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5691. fi
  5692. fi
  5693. rm -f confcache
  5694. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  5695. # Let make expand exec_prefix.
  5696. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  5697. DEFS=-DHAVE_CONFIG_H
  5698. ac_libobjs=
  5699. ac_ltlibobjs=
  5700. U=
  5701. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  5702. # 1. Remove the extension, and $U if already installed.
  5703. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  5704. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  5705. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  5706. # will be set to the directory where LIBOBJS objects are built.
  5707. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  5708. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  5709. done
  5710. LIBOBJS=$ac_libobjs
  5711. LTLIBOBJS=$ac_ltlibobjs
  5712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  5713. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  5714. if test -n "$am_sleep_pid"; then
  5715. # Hide warnings about reused PIDs.
  5716. wait $am_sleep_pid 2>/dev/null
  5717. fi
  5718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  5719. $as_echo "done" >&6; }
  5720. if test -n "$EXEEXT"; then
  5721. am__EXEEXT_TRUE=
  5722. am__EXEEXT_FALSE='#'
  5723. else
  5724. am__EXEEXT_TRUE='#'
  5725. am__EXEEXT_FALSE=
  5726. fi
  5727. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  5728. as_fn_error $? "conditional \"AMDEP\" was never defined.
  5729. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  5730. fi
  5731. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  5732. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  5733. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  5734. fi
  5735. if test -z "${HAVE_PCAP_TRUE}" && test -z "${HAVE_PCAP_FALSE}"; then
  5736. as_fn_error $? "conditional \"HAVE_PCAP\" was never defined.
  5737. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  5738. fi
  5739. if test -z "${HAVE_SELINUX_TRUE}" && test -z "${HAVE_SELINUX_FALSE}"; then
  5740. as_fn_error $? "conditional \"HAVE_SELINUX\" was never defined.
  5741. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  5742. fi
  5743. if test -z "${IS_WINDOWS_TRUE}" && test -z "${IS_WINDOWS_FALSE}"; then
  5744. as_fn_error $? "conditional \"IS_WINDOWS\" was never defined.
  5745. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  5746. fi
  5747. if test -z "${HAVE_ICMPFILTER_TRUE}" && test -z "${HAVE_ICMPFILTER_FALSE}"; then
  5748. as_fn_error $? "conditional \"HAVE_ICMPFILTER\" was never defined.
  5749. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  5750. fi
  5751. if test -z "${HAVE_ARC4RANDOM_TRUE}" && test -z "${HAVE_ARC4RANDOM_FALSE}"; then
  5752. as_fn_error $? "conditional \"HAVE_ARC4RANDOM\" was never defined.
  5753. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  5754. fi
  5755. if test -z "${USE_CUSTOMRNG_TRUE}" && test -z "${USE_CUSTOMRNG_FALSE}"; then
  5756. as_fn_error $? "conditional \"USE_CUSTOMRNG\" was never defined.
  5757. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  5758. fi
  5759. : "${CONFIG_STATUS=./config.status}"
  5760. ac_write_fail=0
  5761. ac_clean_files_save=$ac_clean_files
  5762. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  5763. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  5764. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  5765. as_write_fail=0
  5766. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  5767. #! $SHELL
  5768. # Generated by $as_me.
  5769. # Run this file to recreate the current configuration.
  5770. # Compiler output produced by configure, useful for debugging
  5771. # configure, is in config.log if it exists.
  5772. debug=false
  5773. ac_cs_recheck=false
  5774. ac_cs_silent=false
  5775. SHELL=\${CONFIG_SHELL-$SHELL}
  5776. export SHELL
  5777. _ASEOF
  5778. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  5779. ## -------------------- ##
  5780. ## M4sh Initialization. ##
  5781. ## -------------------- ##
  5782. # Be more Bourne compatible
  5783. DUALCASE=1; export DUALCASE # for MKS sh
  5784. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  5785. emulate sh
  5786. NULLCMD=:
  5787. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  5788. # is contrary to our usage. Disable this feature.
  5789. alias -g '${1+"$@"}'='"$@"'
  5790. setopt NO_GLOB_SUBST
  5791. else
  5792. case `(set -o) 2>/dev/null` in #(
  5793. *posix*) :
  5794. set -o posix ;; #(
  5795. *) :
  5796. ;;
  5797. esac
  5798. fi
  5799. as_nl='
  5800. '
  5801. export as_nl
  5802. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  5803. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  5804. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  5805. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  5806. # Prefer a ksh shell builtin over an external printf program on Solaris,
  5807. # but without wasting forks for bash or zsh.
  5808. if test -z "$BASH_VERSION$ZSH_VERSION" \
  5809. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  5810. as_echo='print -r --'
  5811. as_echo_n='print -rn --'
  5812. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  5813. as_echo='printf %s\n'
  5814. as_echo_n='printf %s'
  5815. else
  5816. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  5817. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  5818. as_echo_n='/usr/ucb/echo -n'
  5819. else
  5820. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  5821. as_echo_n_body='eval
  5822. arg=$1;
  5823. case $arg in #(
  5824. *"$as_nl"*)
  5825. expr "X$arg" : "X\\(.*\\)$as_nl";
  5826. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  5827. esac;
  5828. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  5829. '
  5830. export as_echo_n_body
  5831. as_echo_n='sh -c $as_echo_n_body as_echo'
  5832. fi
  5833. export as_echo_body
  5834. as_echo='sh -c $as_echo_body as_echo'
  5835. fi
  5836. # The user is always right.
  5837. if test "${PATH_SEPARATOR+set}" != set; then
  5838. PATH_SEPARATOR=:
  5839. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  5840. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  5841. PATH_SEPARATOR=';'
  5842. }
  5843. fi
  5844. # IFS
  5845. # We need space, tab and new line, in precisely that order. Quoting is
  5846. # there to prevent editors from complaining about space-tab.
  5847. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  5848. # splitting by setting IFS to empty value.)
  5849. IFS=" "" $as_nl"
  5850. # Find who we are. Look in the path if we contain no directory separator.
  5851. as_myself=
  5852. case $0 in #((
  5853. *[\\/]* ) as_myself=$0 ;;
  5854. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5855. for as_dir in $PATH
  5856. do
  5857. IFS=$as_save_IFS
  5858. test -z "$as_dir" && as_dir=.
  5859. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  5860. done
  5861. IFS=$as_save_IFS
  5862. ;;
  5863. esac
  5864. # We did not find ourselves, most probably we were run as `sh COMMAND'
  5865. # in which case we are not to be found in the path.
  5866. if test "x$as_myself" = x; then
  5867. as_myself=$0
  5868. fi
  5869. if test ! -f "$as_myself"; then
  5870. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  5871. exit 1
  5872. fi
  5873. # Unset variables that we do not need and which cause bugs (e.g. in
  5874. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  5875. # suppresses any "Segmentation fault" message there. '((' could
  5876. # trigger a bug in pdksh 5.2.14.
  5877. for as_var in BASH_ENV ENV MAIL MAILPATH
  5878. do eval test x\${$as_var+set} = xset \
  5879. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  5880. done
  5881. PS1='$ '
  5882. PS2='> '
  5883. PS4='+ '
  5884. # NLS nuisances.
  5885. LC_ALL=C
  5886. export LC_ALL
  5887. LANGUAGE=C
  5888. export LANGUAGE
  5889. # CDPATH.
  5890. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  5891. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  5892. # ----------------------------------------
  5893. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  5894. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  5895. # script with STATUS, using 1 if that was 0.
  5896. as_fn_error ()
  5897. {
  5898. as_status=$1; test $as_status -eq 0 && as_status=1
  5899. if test "$4"; then
  5900. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  5901. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  5902. fi
  5903. $as_echo "$as_me: error: $2" >&2
  5904. as_fn_exit $as_status
  5905. } # as_fn_error
  5906. # as_fn_set_status STATUS
  5907. # -----------------------
  5908. # Set $? to STATUS, without forking.
  5909. as_fn_set_status ()
  5910. {
  5911. return $1
  5912. } # as_fn_set_status
  5913. # as_fn_exit STATUS
  5914. # -----------------
  5915. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  5916. as_fn_exit ()
  5917. {
  5918. set +e
  5919. as_fn_set_status $1
  5920. exit $1
  5921. } # as_fn_exit
  5922. # as_fn_unset VAR
  5923. # ---------------
  5924. # Portably unset VAR.
  5925. as_fn_unset ()
  5926. {
  5927. { eval $1=; unset $1;}
  5928. }
  5929. as_unset=as_fn_unset
  5930. # as_fn_append VAR VALUE
  5931. # ----------------------
  5932. # Append the text in VALUE to the end of the definition contained in VAR. Take
  5933. # advantage of any shell optimizations that allow amortized linear growth over
  5934. # repeated appends, instead of the typical quadratic growth present in naive
  5935. # implementations.
  5936. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  5937. eval 'as_fn_append ()
  5938. {
  5939. eval $1+=\$2
  5940. }'
  5941. else
  5942. as_fn_append ()
  5943. {
  5944. eval $1=\$$1\$2
  5945. }
  5946. fi # as_fn_append
  5947. # as_fn_arith ARG...
  5948. # ------------------
  5949. # Perform arithmetic evaluation on the ARGs, and store the result in the
  5950. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  5951. # must be portable across $(()) and expr.
  5952. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  5953. eval 'as_fn_arith ()
  5954. {
  5955. as_val=$(( $* ))
  5956. }'
  5957. else
  5958. as_fn_arith ()
  5959. {
  5960. as_val=`expr "$@" || test $? -eq 1`
  5961. }
  5962. fi # as_fn_arith
  5963. if expr a : '\(a\)' >/dev/null 2>&1 &&
  5964. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  5965. as_expr=expr
  5966. else
  5967. as_expr=false
  5968. fi
  5969. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  5970. as_basename=basename
  5971. else
  5972. as_basename=false
  5973. fi
  5974. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  5975. as_dirname=dirname
  5976. else
  5977. as_dirname=false
  5978. fi
  5979. as_me=`$as_basename -- "$0" ||
  5980. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  5981. X"$0" : 'X\(//\)$' \| \
  5982. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  5983. $as_echo X/"$0" |
  5984. sed '/^.*\/\([^/][^/]*\)\/*$/{
  5985. s//\1/
  5986. q
  5987. }
  5988. /^X\/\(\/\/\)$/{
  5989. s//\1/
  5990. q
  5991. }
  5992. /^X\/\(\/\).*/{
  5993. s//\1/
  5994. q
  5995. }
  5996. s/.*/./; q'`
  5997. # Avoid depending upon Character Ranges.
  5998. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  5999. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  6000. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  6001. as_cr_digits='0123456789'
  6002. as_cr_alnum=$as_cr_Letters$as_cr_digits
  6003. ECHO_C= ECHO_N= ECHO_T=
  6004. case `echo -n x` in #(((((
  6005. -n*)
  6006. case `echo 'xy\c'` in
  6007. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  6008. xy) ECHO_C='\c';;
  6009. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  6010. ECHO_T=' ';;
  6011. esac;;
  6012. *)
  6013. ECHO_N='-n';;
  6014. esac
  6015. rm -f conf$$ conf$$.exe conf$$.file
  6016. if test -d conf$$.dir; then
  6017. rm -f conf$$.dir/conf$$.file
  6018. else
  6019. rm -f conf$$.dir
  6020. mkdir conf$$.dir 2>/dev/null
  6021. fi
  6022. if (echo >conf$$.file) 2>/dev/null; then
  6023. if ln -s conf$$.file conf$$ 2>/dev/null; then
  6024. as_ln_s='ln -s'
  6025. # ... but there are two gotchas:
  6026. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  6027. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  6028. # In both cases, we have to default to `cp -pR'.
  6029. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  6030. as_ln_s='cp -pR'
  6031. elif ln conf$$.file conf$$ 2>/dev/null; then
  6032. as_ln_s=ln
  6033. else
  6034. as_ln_s='cp -pR'
  6035. fi
  6036. else
  6037. as_ln_s='cp -pR'
  6038. fi
  6039. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  6040. rmdir conf$$.dir 2>/dev/null
  6041. # as_fn_mkdir_p
  6042. # -------------
  6043. # Create "$as_dir" as a directory, including parents if necessary.
  6044. as_fn_mkdir_p ()
  6045. {
  6046. case $as_dir in #(
  6047. -*) as_dir=./$as_dir;;
  6048. esac
  6049. test -d "$as_dir" || eval $as_mkdir_p || {
  6050. as_dirs=
  6051. while :; do
  6052. case $as_dir in #(
  6053. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  6054. *) as_qdir=$as_dir;;
  6055. esac
  6056. as_dirs="'$as_qdir' $as_dirs"
  6057. as_dir=`$as_dirname -- "$as_dir" ||
  6058. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  6059. X"$as_dir" : 'X\(//\)[^/]' \| \
  6060. X"$as_dir" : 'X\(//\)$' \| \
  6061. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  6062. $as_echo X"$as_dir" |
  6063. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  6064. s//\1/
  6065. q
  6066. }
  6067. /^X\(\/\/\)[^/].*/{
  6068. s//\1/
  6069. q
  6070. }
  6071. /^X\(\/\/\)$/{
  6072. s//\1/
  6073. q
  6074. }
  6075. /^X\(\/\).*/{
  6076. s//\1/
  6077. q
  6078. }
  6079. s/.*/./; q'`
  6080. test -d "$as_dir" && break
  6081. done
  6082. test -z "$as_dirs" || eval "mkdir $as_dirs"
  6083. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  6084. } # as_fn_mkdir_p
  6085. if mkdir -p . 2>/dev/null; then
  6086. as_mkdir_p='mkdir -p "$as_dir"'
  6087. else
  6088. test -d ./-p && rmdir ./-p
  6089. as_mkdir_p=false
  6090. fi
  6091. # as_fn_executable_p FILE
  6092. # -----------------------
  6093. # Test if FILE is an executable regular file.
  6094. as_fn_executable_p ()
  6095. {
  6096. test -f "$1" && test -x "$1"
  6097. } # as_fn_executable_p
  6098. as_test_x='test -x'
  6099. as_executable_p=as_fn_executable_p
  6100. # Sed expression to map a string onto a valid CPP name.
  6101. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  6102. # Sed expression to map a string onto a valid variable name.
  6103. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  6104. exec 6>&1
  6105. ## ----------------------------------- ##
  6106. ## Main body of $CONFIG_STATUS script. ##
  6107. ## ----------------------------------- ##
  6108. _ASEOF
  6109. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  6110. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6111. # Save the log message, to keep $0 and so on meaningful, and to
  6112. # report actual input values of CONFIG_FILES etc. instead of their
  6113. # values after options handling.
  6114. ac_log="
  6115. This file was extended by ptunnel-ng $as_me 1.41, which was
  6116. generated by GNU Autoconf 2.69. Invocation command line was
  6117. CONFIG_FILES = $CONFIG_FILES
  6118. CONFIG_HEADERS = $CONFIG_HEADERS
  6119. CONFIG_LINKS = $CONFIG_LINKS
  6120. CONFIG_COMMANDS = $CONFIG_COMMANDS
  6121. $ $0 $@
  6122. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  6123. "
  6124. _ACEOF
  6125. case $ac_config_files in *"
  6126. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  6127. esac
  6128. case $ac_config_headers in *"
  6129. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  6130. esac
  6131. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6132. # Files that config.status was made for.
  6133. config_files="$ac_config_files"
  6134. config_headers="$ac_config_headers"
  6135. config_commands="$ac_config_commands"
  6136. _ACEOF
  6137. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6138. ac_cs_usage="\
  6139. \`$as_me' instantiates files and other configuration actions
  6140. from templates according to the current configuration. Unless the files
  6141. and actions are specified as TAGs, all are instantiated by default.
  6142. Usage: $0 [OPTION]... [TAG]...
  6143. -h, --help print this help, then exit
  6144. -V, --version print version number and configuration settings, then exit
  6145. --config print configuration, then exit
  6146. -q, --quiet, --silent
  6147. do not print progress messages
  6148. -d, --debug don't remove temporary files
  6149. --recheck update $as_me by reconfiguring in the same conditions
  6150. --file=FILE[:TEMPLATE]
  6151. instantiate the configuration file FILE
  6152. --header=FILE[:TEMPLATE]
  6153. instantiate the configuration header FILE
  6154. Configuration files:
  6155. $config_files
  6156. Configuration headers:
  6157. $config_headers
  6158. Configuration commands:
  6159. $config_commands
  6160. Report bugs to the package provider."
  6161. _ACEOF
  6162. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6163. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  6164. ac_cs_version="\\
  6165. ptunnel-ng config.status 1.41
  6166. configured by $0, generated by GNU Autoconf 2.69,
  6167. with options \\"\$ac_cs_config\\"
  6168. Copyright (C) 2012 Free Software Foundation, Inc.
  6169. This config.status script is free software; the Free Software Foundation
  6170. gives unlimited permission to copy, distribute and modify it."
  6171. ac_pwd='$ac_pwd'
  6172. srcdir='$srcdir'
  6173. INSTALL='$INSTALL'
  6174. MKDIR_P='$MKDIR_P'
  6175. AWK='$AWK'
  6176. test -n "\$AWK" || AWK=awk
  6177. _ACEOF
  6178. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6179. # The default lists apply if the user does not specify any file.
  6180. ac_need_defaults=:
  6181. while test $# != 0
  6182. do
  6183. case $1 in
  6184. --*=?*)
  6185. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  6186. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  6187. ac_shift=:
  6188. ;;
  6189. --*=)
  6190. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  6191. ac_optarg=
  6192. ac_shift=:
  6193. ;;
  6194. *)
  6195. ac_option=$1
  6196. ac_optarg=$2
  6197. ac_shift=shift
  6198. ;;
  6199. esac
  6200. case $ac_option in
  6201. # Handling of the options.
  6202. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  6203. ac_cs_recheck=: ;;
  6204. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  6205. $as_echo "$ac_cs_version"; exit ;;
  6206. --config | --confi | --conf | --con | --co | --c )
  6207. $as_echo "$ac_cs_config"; exit ;;
  6208. --debug | --debu | --deb | --de | --d | -d )
  6209. debug=: ;;
  6210. --file | --fil | --fi | --f )
  6211. $ac_shift
  6212. case $ac_optarg in
  6213. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  6214. '') as_fn_error $? "missing file argument" ;;
  6215. esac
  6216. as_fn_append CONFIG_FILES " '$ac_optarg'"
  6217. ac_need_defaults=false;;
  6218. --header | --heade | --head | --hea )
  6219. $ac_shift
  6220. case $ac_optarg in
  6221. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  6222. esac
  6223. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  6224. ac_need_defaults=false;;
  6225. --he | --h)
  6226. # Conflict between --help and --header
  6227. as_fn_error $? "ambiguous option: \`$1'
  6228. Try \`$0 --help' for more information.";;
  6229. --help | --hel | -h )
  6230. $as_echo "$ac_cs_usage"; exit ;;
  6231. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  6232. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  6233. ac_cs_silent=: ;;
  6234. # This is an error.
  6235. -*) as_fn_error $? "unrecognized option: \`$1'
  6236. Try \`$0 --help' for more information." ;;
  6237. *) as_fn_append ac_config_targets " $1"
  6238. ac_need_defaults=false ;;
  6239. esac
  6240. shift
  6241. done
  6242. ac_configure_extra_args=
  6243. if $ac_cs_silent; then
  6244. exec 6>/dev/null
  6245. ac_configure_extra_args="$ac_configure_extra_args --silent"
  6246. fi
  6247. _ACEOF
  6248. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6249. if \$ac_cs_recheck; then
  6250. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  6251. shift
  6252. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  6253. CONFIG_SHELL='$SHELL'
  6254. export CONFIG_SHELL
  6255. exec "\$@"
  6256. fi
  6257. _ACEOF
  6258. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6259. exec 5>>config.log
  6260. {
  6261. echo
  6262. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  6263. ## Running $as_me. ##
  6264. _ASBOX
  6265. $as_echo "$ac_log"
  6266. } >&5
  6267. _ACEOF
  6268. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6269. #
  6270. # INIT-COMMANDS
  6271. #
  6272. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  6273. _ACEOF
  6274. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6275. # Handling of arguments.
  6276. for ac_config_target in $ac_config_targets
  6277. do
  6278. case $ac_config_target in
  6279. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  6280. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  6281. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  6282. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.h.in" ;;
  6283. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  6284. esac
  6285. done
  6286. # If the user did not use the arguments to specify the items to instantiate,
  6287. # then the envvar interface is used. Set only those that are not.
  6288. # We use the long form for the default assignment because of an extremely
  6289. # bizarre bug on SunOS 4.1.3.
  6290. if $ac_need_defaults; then
  6291. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  6292. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  6293. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  6294. fi
  6295. # Have a temporary directory for convenience. Make it in the build tree
  6296. # simply because there is no reason against having it here, and in addition,
  6297. # creating and moving files from /tmp can sometimes cause problems.
  6298. # Hook for its removal unless debugging.
  6299. # Note that there is a small window in which the directory will not be cleaned:
  6300. # after its creation but before its name has been assigned to `$tmp'.
  6301. $debug ||
  6302. {
  6303. tmp= ac_tmp=
  6304. trap 'exit_status=$?
  6305. : "${ac_tmp:=$tmp}"
  6306. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  6307. ' 0
  6308. trap 'as_fn_exit 1' 1 2 13 15
  6309. }
  6310. # Create a (secure) tmp directory for tmp files.
  6311. {
  6312. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  6313. test -d "$tmp"
  6314. } ||
  6315. {
  6316. tmp=./conf$$-$RANDOM
  6317. (umask 077 && mkdir "$tmp")
  6318. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  6319. ac_tmp=$tmp
  6320. # Set up the scripts for CONFIG_FILES section.
  6321. # No need to generate them if there are no CONFIG_FILES.
  6322. # This happens for instance with `./config.status config.h'.
  6323. if test -n "$CONFIG_FILES"; then
  6324. ac_cr=`echo X | tr X '\015'`
  6325. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  6326. # But we know of no other shell where ac_cr would be empty at this
  6327. # point, so we can use a bashism as a fallback.
  6328. if test "x$ac_cr" = x; then
  6329. eval ac_cr=\$\'\\r\'
  6330. fi
  6331. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  6332. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  6333. ac_cs_awk_cr='\\r'
  6334. else
  6335. ac_cs_awk_cr=$ac_cr
  6336. fi
  6337. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  6338. _ACEOF
  6339. {
  6340. echo "cat >conf$$subs.awk <<_ACEOF" &&
  6341. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  6342. echo "_ACEOF"
  6343. } >conf$$subs.sh ||
  6344. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  6345. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  6346. ac_delim='%!_!# '
  6347. for ac_last_try in false false false false false :; do
  6348. . ./conf$$subs.sh ||
  6349. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  6350. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  6351. if test $ac_delim_n = $ac_delim_num; then
  6352. break
  6353. elif $ac_last_try; then
  6354. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  6355. else
  6356. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  6357. fi
  6358. done
  6359. rm -f conf$$subs.sh
  6360. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6361. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  6362. _ACEOF
  6363. sed -n '
  6364. h
  6365. s/^/S["/; s/!.*/"]=/
  6366. p
  6367. g
  6368. s/^[^!]*!//
  6369. :repl
  6370. t repl
  6371. s/'"$ac_delim"'$//
  6372. t delim
  6373. :nl
  6374. h
  6375. s/\(.\{148\}\)..*/\1/
  6376. t more1
  6377. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  6378. p
  6379. n
  6380. b repl
  6381. :more1
  6382. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  6383. p
  6384. g
  6385. s/.\{148\}//
  6386. t nl
  6387. :delim
  6388. h
  6389. s/\(.\{148\}\)..*/\1/
  6390. t more2
  6391. s/["\\]/\\&/g; s/^/"/; s/$/"/
  6392. p
  6393. b
  6394. :more2
  6395. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  6396. p
  6397. g
  6398. s/.\{148\}//
  6399. t delim
  6400. ' <conf$$subs.awk | sed '
  6401. /^[^""]/{
  6402. N
  6403. s/\n//
  6404. }
  6405. ' >>$CONFIG_STATUS || ac_write_fail=1
  6406. rm -f conf$$subs.awk
  6407. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6408. _ACAWK
  6409. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  6410. for (key in S) S_is_set[key] = 1
  6411. FS = ""
  6412. }
  6413. {
  6414. line = $ 0
  6415. nfields = split(line, field, "@")
  6416. substed = 0
  6417. len = length(field[1])
  6418. for (i = 2; i < nfields; i++) {
  6419. key = field[i]
  6420. keylen = length(key)
  6421. if (S_is_set[key]) {
  6422. value = S[key]
  6423. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  6424. len += length(value) + length(field[++i])
  6425. substed = 1
  6426. } else
  6427. len += 1 + keylen
  6428. }
  6429. print line
  6430. }
  6431. _ACAWK
  6432. _ACEOF
  6433. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6434. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  6435. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  6436. else
  6437. cat
  6438. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  6439. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  6440. _ACEOF
  6441. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  6442. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  6443. # trailing colons and then remove the whole line if VPATH becomes empty
  6444. # (actually we leave an empty line to preserve line numbers).
  6445. if test "x$srcdir" = x.; then
  6446. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  6447. h
  6448. s///
  6449. s/^/:/
  6450. s/[ ]*$/:/
  6451. s/:\$(srcdir):/:/g
  6452. s/:\${srcdir}:/:/g
  6453. s/:@srcdir@:/:/g
  6454. s/^:*//
  6455. s/:*$//
  6456. x
  6457. s/\(=[ ]*\).*/\1/
  6458. G
  6459. s/\n//
  6460. s/^[^=]*=[ ]*$//
  6461. }'
  6462. fi
  6463. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6464. fi # test -n "$CONFIG_FILES"
  6465. # Set up the scripts for CONFIG_HEADERS section.
  6466. # No need to generate them if there are no CONFIG_HEADERS.
  6467. # This happens for instance with `./config.status Makefile'.
  6468. if test -n "$CONFIG_HEADERS"; then
  6469. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  6470. BEGIN {
  6471. _ACEOF
  6472. # Transform confdefs.h into an awk script `defines.awk', embedded as
  6473. # here-document in config.status, that substitutes the proper values into
  6474. # config.h.in to produce config.h.
  6475. # Create a delimiter string that does not exist in confdefs.h, to ease
  6476. # handling of long lines.
  6477. ac_delim='%!_!# '
  6478. for ac_last_try in false false :; do
  6479. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  6480. if test -z "$ac_tt"; then
  6481. break
  6482. elif $ac_last_try; then
  6483. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  6484. else
  6485. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  6486. fi
  6487. done
  6488. # For the awk script, D is an array of macro values keyed by name,
  6489. # likewise P contains macro parameters if any. Preserve backslash
  6490. # newline sequences.
  6491. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  6492. sed -n '
  6493. s/.\{148\}/&'"$ac_delim"'/g
  6494. t rset
  6495. :rset
  6496. s/^[ ]*#[ ]*define[ ][ ]*/ /
  6497. t def
  6498. d
  6499. :def
  6500. s/\\$//
  6501. t bsnl
  6502. s/["\\]/\\&/g
  6503. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  6504. D["\1"]=" \3"/p
  6505. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  6506. d
  6507. :bsnl
  6508. s/["\\]/\\&/g
  6509. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  6510. D["\1"]=" \3\\\\\\n"\\/p
  6511. t cont
  6512. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  6513. t cont
  6514. d
  6515. :cont
  6516. n
  6517. s/.\{148\}/&'"$ac_delim"'/g
  6518. t clear
  6519. :clear
  6520. s/\\$//
  6521. t bsnlc
  6522. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  6523. d
  6524. :bsnlc
  6525. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  6526. b cont
  6527. ' <confdefs.h | sed '
  6528. s/'"$ac_delim"'/"\\\
  6529. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  6530. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6531. for (key in D) D_is_set[key] = 1
  6532. FS = ""
  6533. }
  6534. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  6535. line = \$ 0
  6536. split(line, arg, " ")
  6537. if (arg[1] == "#") {
  6538. defundef = arg[2]
  6539. mac1 = arg[3]
  6540. } else {
  6541. defundef = substr(arg[1], 2)
  6542. mac1 = arg[2]
  6543. }
  6544. split(mac1, mac2, "(") #)
  6545. macro = mac2[1]
  6546. prefix = substr(line, 1, index(line, defundef) - 1)
  6547. if (D_is_set[macro]) {
  6548. # Preserve the white space surrounding the "#".
  6549. print prefix "define", macro P[macro] D[macro]
  6550. next
  6551. } else {
  6552. # Replace #undef with comments. This is necessary, for example,
  6553. # in the case of _POSIX_SOURCE, which is predefined and required
  6554. # on some systems where configure will not decide to define it.
  6555. if (defundef == "undef") {
  6556. print "/*", prefix defundef, macro, "*/"
  6557. next
  6558. }
  6559. }
  6560. }
  6561. { print }
  6562. _ACAWK
  6563. _ACEOF
  6564. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6565. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  6566. fi # test -n "$CONFIG_HEADERS"
  6567. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  6568. shift
  6569. for ac_tag
  6570. do
  6571. case $ac_tag in
  6572. :[FHLC]) ac_mode=$ac_tag; continue;;
  6573. esac
  6574. case $ac_mode$ac_tag in
  6575. :[FHL]*:*);;
  6576. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  6577. :[FH]-) ac_tag=-:-;;
  6578. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  6579. esac
  6580. ac_save_IFS=$IFS
  6581. IFS=:
  6582. set x $ac_tag
  6583. IFS=$ac_save_IFS
  6584. shift
  6585. ac_file=$1
  6586. shift
  6587. case $ac_mode in
  6588. :L) ac_source=$1;;
  6589. :[FH])
  6590. ac_file_inputs=
  6591. for ac_f
  6592. do
  6593. case $ac_f in
  6594. -) ac_f="$ac_tmp/stdin";;
  6595. *) # Look for the file first in the build tree, then in the source tree
  6596. # (if the path is not absolute). The absolute path cannot be DOS-style,
  6597. # because $ac_f cannot contain `:'.
  6598. test -f "$ac_f" ||
  6599. case $ac_f in
  6600. [\\/$]*) false;;
  6601. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  6602. esac ||
  6603. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  6604. esac
  6605. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  6606. as_fn_append ac_file_inputs " '$ac_f'"
  6607. done
  6608. # Let's still pretend it is `configure' which instantiates (i.e., don't
  6609. # use $as_me), people would be surprised to read:
  6610. # /* config.h. Generated by config.status. */
  6611. configure_input='Generated from '`
  6612. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  6613. `' by configure.'
  6614. if test x"$ac_file" != x-; then
  6615. configure_input="$ac_file. $configure_input"
  6616. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  6617. $as_echo "$as_me: creating $ac_file" >&6;}
  6618. fi
  6619. # Neutralize special characters interpreted by sed in replacement strings.
  6620. case $configure_input in #(
  6621. *\&* | *\|* | *\\* )
  6622. ac_sed_conf_input=`$as_echo "$configure_input" |
  6623. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  6624. *) ac_sed_conf_input=$configure_input;;
  6625. esac
  6626. case $ac_tag in
  6627. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  6628. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  6629. esac
  6630. ;;
  6631. esac
  6632. ac_dir=`$as_dirname -- "$ac_file" ||
  6633. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  6634. X"$ac_file" : 'X\(//\)[^/]' \| \
  6635. X"$ac_file" : 'X\(//\)$' \| \
  6636. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  6637. $as_echo X"$ac_file" |
  6638. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  6639. s//\1/
  6640. q
  6641. }
  6642. /^X\(\/\/\)[^/].*/{
  6643. s//\1/
  6644. q
  6645. }
  6646. /^X\(\/\/\)$/{
  6647. s//\1/
  6648. q
  6649. }
  6650. /^X\(\/\).*/{
  6651. s//\1/
  6652. q
  6653. }
  6654. s/.*/./; q'`
  6655. as_dir="$ac_dir"; as_fn_mkdir_p
  6656. ac_builddir=.
  6657. case "$ac_dir" in
  6658. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  6659. *)
  6660. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  6661. # A ".." for each directory in $ac_dir_suffix.
  6662. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  6663. case $ac_top_builddir_sub in
  6664. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  6665. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  6666. esac ;;
  6667. esac
  6668. ac_abs_top_builddir=$ac_pwd
  6669. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  6670. # for backward compatibility:
  6671. ac_top_builddir=$ac_top_build_prefix
  6672. case $srcdir in
  6673. .) # We are building in place.
  6674. ac_srcdir=.
  6675. ac_top_srcdir=$ac_top_builddir_sub
  6676. ac_abs_top_srcdir=$ac_pwd ;;
  6677. [\\/]* | ?:[\\/]* ) # Absolute name.
  6678. ac_srcdir=$srcdir$ac_dir_suffix;
  6679. ac_top_srcdir=$srcdir
  6680. ac_abs_top_srcdir=$srcdir ;;
  6681. *) # Relative name.
  6682. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  6683. ac_top_srcdir=$ac_top_build_prefix$srcdir
  6684. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  6685. esac
  6686. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  6687. case $ac_mode in
  6688. :F)
  6689. #
  6690. # CONFIG_FILE
  6691. #
  6692. case $INSTALL in
  6693. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  6694. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  6695. esac
  6696. ac_MKDIR_P=$MKDIR_P
  6697. case $MKDIR_P in
  6698. [\\/$]* | ?:[\\/]* ) ;;
  6699. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  6700. esac
  6701. _ACEOF
  6702. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6703. # If the template does not know about datarootdir, expand it.
  6704. # FIXME: This hack should be removed a few years after 2.60.
  6705. ac_datarootdir_hack=; ac_datarootdir_seen=
  6706. ac_sed_dataroot='
  6707. /datarootdir/ {
  6708. p
  6709. q
  6710. }
  6711. /@datadir@/p
  6712. /@docdir@/p
  6713. /@infodir@/p
  6714. /@localedir@/p
  6715. /@mandir@/p'
  6716. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  6717. *datarootdir*) ac_datarootdir_seen=yes;;
  6718. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  6719. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  6720. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  6721. _ACEOF
  6722. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6723. ac_datarootdir_hack='
  6724. s&@datadir@&$datadir&g
  6725. s&@docdir@&$docdir&g
  6726. s&@infodir@&$infodir&g
  6727. s&@localedir@&$localedir&g
  6728. s&@mandir@&$mandir&g
  6729. s&\\\${datarootdir}&$datarootdir&g' ;;
  6730. esac
  6731. _ACEOF
  6732. # Neutralize VPATH when `$srcdir' = `.'.
  6733. # Shell code in configure.ac might set extrasub.
  6734. # FIXME: do we really want to maintain this feature?
  6735. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6736. ac_sed_extra="$ac_vpsub
  6737. $extrasub
  6738. _ACEOF
  6739. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6740. :t
  6741. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  6742. s|@configure_input@|$ac_sed_conf_input|;t t
  6743. s&@top_builddir@&$ac_top_builddir_sub&;t t
  6744. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  6745. s&@srcdir@&$ac_srcdir&;t t
  6746. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  6747. s&@top_srcdir@&$ac_top_srcdir&;t t
  6748. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  6749. s&@builddir@&$ac_builddir&;t t
  6750. s&@abs_builddir@&$ac_abs_builddir&;t t
  6751. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  6752. s&@INSTALL@&$ac_INSTALL&;t t
  6753. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  6754. $ac_datarootdir_hack
  6755. "
  6756. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  6757. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  6758. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  6759. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  6760. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  6761. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  6762. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  6763. which seems to be undefined. Please make sure it is defined" >&5
  6764. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  6765. which seems to be undefined. Please make sure it is defined" >&2;}
  6766. rm -f "$ac_tmp/stdin"
  6767. case $ac_file in
  6768. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  6769. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  6770. esac \
  6771. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  6772. ;;
  6773. :H)
  6774. #
  6775. # CONFIG_HEADER
  6776. #
  6777. if test x"$ac_file" != x-; then
  6778. {
  6779. $as_echo "/* $configure_input */" \
  6780. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  6781. } >"$ac_tmp/config.h" \
  6782. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  6783. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  6784. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  6785. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  6786. else
  6787. rm -f "$ac_file"
  6788. mv "$ac_tmp/config.h" "$ac_file" \
  6789. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  6790. fi
  6791. else
  6792. $as_echo "/* $configure_input */" \
  6793. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  6794. || as_fn_error $? "could not create -" "$LINENO" 5
  6795. fi
  6796. # Compute "$ac_file"'s index in $config_headers.
  6797. _am_arg="$ac_file"
  6798. _am_stamp_count=1
  6799. for _am_header in $config_headers :; do
  6800. case $_am_header in
  6801. $_am_arg | $_am_arg:* )
  6802. break ;;
  6803. * )
  6804. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  6805. esac
  6806. done
  6807. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  6808. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  6809. X"$_am_arg" : 'X\(//\)[^/]' \| \
  6810. X"$_am_arg" : 'X\(//\)$' \| \
  6811. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  6812. $as_echo X"$_am_arg" |
  6813. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  6814. s//\1/
  6815. q
  6816. }
  6817. /^X\(\/\/\)[^/].*/{
  6818. s//\1/
  6819. q
  6820. }
  6821. /^X\(\/\/\)$/{
  6822. s//\1/
  6823. q
  6824. }
  6825. /^X\(\/\).*/{
  6826. s//\1/
  6827. q
  6828. }
  6829. s/.*/./; q'`/stamp-h$_am_stamp_count
  6830. ;;
  6831. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  6832. $as_echo "$as_me: executing $ac_file commands" >&6;}
  6833. ;;
  6834. esac
  6835. case $ac_file$ac_mode in
  6836. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  6837. # Older Autoconf quotes --file arguments for eval, but not when files
  6838. # are listed without --file. Let's play safe and only enable the eval
  6839. # if we detect the quoting.
  6840. case $CONFIG_FILES in
  6841. *\'*) eval set x "$CONFIG_FILES" ;;
  6842. *) set x $CONFIG_FILES ;;
  6843. esac
  6844. shift
  6845. for mf
  6846. do
  6847. # Strip MF so we end up with the name of the file.
  6848. mf=`echo "$mf" | sed -e 's/:.*$//'`
  6849. # Check whether this is an Automake generated Makefile or not.
  6850. # We used to match only the files named 'Makefile.in', but
  6851. # some people rename them; so instead we look at the file content.
  6852. # Grep'ing the first line is not enough: some people post-process
  6853. # each Makefile.in and add a new line on top of each file to say so.
  6854. # Grep'ing the whole file is not good either: AIX grep has a line
  6855. # limit of 2048, but all sed's we know have understand at least 4000.
  6856. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  6857. dirpart=`$as_dirname -- "$mf" ||
  6858. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  6859. X"$mf" : 'X\(//\)[^/]' \| \
  6860. X"$mf" : 'X\(//\)$' \| \
  6861. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  6862. $as_echo X"$mf" |
  6863. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  6864. s//\1/
  6865. q
  6866. }
  6867. /^X\(\/\/\)[^/].*/{
  6868. s//\1/
  6869. q
  6870. }
  6871. /^X\(\/\/\)$/{
  6872. s//\1/
  6873. q
  6874. }
  6875. /^X\(\/\).*/{
  6876. s//\1/
  6877. q
  6878. }
  6879. s/.*/./; q'`
  6880. else
  6881. continue
  6882. fi
  6883. # Extract the definition of DEPDIR, am__include, and am__quote
  6884. # from the Makefile without running 'make'.
  6885. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  6886. test -z "$DEPDIR" && continue
  6887. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  6888. test -z "$am__include" && continue
  6889. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  6890. # Find all dependency output files, they are included files with
  6891. # $(DEPDIR) in their names. We invoke sed twice because it is the
  6892. # simplest approach to changing $(DEPDIR) to its actual value in the
  6893. # expansion.
  6894. for file in `sed -n "
  6895. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  6896. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  6897. # Make sure the directory exists.
  6898. test -f "$dirpart/$file" && continue
  6899. fdir=`$as_dirname -- "$file" ||
  6900. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  6901. X"$file" : 'X\(//\)[^/]' \| \
  6902. X"$file" : 'X\(//\)$' \| \
  6903. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  6904. $as_echo X"$file" |
  6905. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  6906. s//\1/
  6907. q
  6908. }
  6909. /^X\(\/\/\)[^/].*/{
  6910. s//\1/
  6911. q
  6912. }
  6913. /^X\(\/\/\)$/{
  6914. s//\1/
  6915. q
  6916. }
  6917. /^X\(\/\).*/{
  6918. s//\1/
  6919. q
  6920. }
  6921. s/.*/./; q'`
  6922. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  6923. # echo "creating $dirpart/$file"
  6924. echo '# dummy' > "$dirpart/$file"
  6925. done
  6926. done
  6927. }
  6928. ;;
  6929. esac
  6930. done # for ac_tag
  6931. as_fn_exit 0
  6932. _ACEOF
  6933. ac_clean_files=$ac_clean_files_save
  6934. test $ac_write_fail = 0 ||
  6935. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  6936. # configure is writing to config.log, and then calls config.status.
  6937. # config.status does its own redirection, appending to config.log.
  6938. # Unfortunately, on DOS this fails, as config.log is still kept open
  6939. # by configure, so config.status won't be able to write to it; its
  6940. # output is simply discarded. So we exec the FD to /dev/null,
  6941. # effectively closing config.log, so it can be properly (re)opened and
  6942. # appended to by config.status. When coming back to configure, we
  6943. # need to make the FD available again.
  6944. if test "$no_create" != yes; then
  6945. ac_cs_success=:
  6946. ac_config_status_args=
  6947. test "$silent" = yes &&
  6948. ac_config_status_args="$ac_config_status_args --quiet"
  6949. exec 5>/dev/null
  6950. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  6951. exec 5>>config.log
  6952. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  6953. # would make configure fail if this is the last instruction.
  6954. $ac_cs_success || as_fn_exit 1
  6955. fi
  6956. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  6957. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  6958. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  6959. fi