1
0

configure 773 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for tcpreplay 4.2.4.
  4. #
  5. # Report bugs to <https://github.com/appneta/tcpreplay/issues>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  188. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  189. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. PATH=/empty FPATH=/empty; export PATH FPATH
  192. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  193. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  194. test \$(( 1 + 1 )) = 2 || exit 1"
  195. if (eval "$as_required") 2>/dev/null; then :
  196. as_have_required=yes
  197. else
  198. as_have_required=no
  199. fi
  200. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  201. else
  202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  203. as_found=false
  204. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  205. do
  206. IFS=$as_save_IFS
  207. test -z "$as_dir" && as_dir=.
  208. as_found=:
  209. case $as_dir in #(
  210. /*)
  211. for as_base in sh bash ksh sh5; do
  212. # Try only shells that exist, to save several forks.
  213. as_shell=$as_dir/$as_base
  214. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  215. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. CONFIG_SHELL=$as_shell as_have_required=yes
  217. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. break 2
  219. fi
  220. fi
  221. done;;
  222. esac
  223. as_found=false
  224. done
  225. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  226. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi; }
  229. IFS=$as_save_IFS
  230. if test "x$CONFIG_SHELL" != x; then :
  231. export CONFIG_SHELL
  232. # We cannot yet assume a decent shell, so we have to provide a
  233. # neutralization value for shells without unset; and this also
  234. # works around shells that cannot unset nonexistent variables.
  235. # Preserve -v and -x to the replacement shell.
  236. BASH_ENV=/dev/null
  237. ENV=/dev/null
  238. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  239. case $- in # ((((
  240. *v*x* | *x*v* ) as_opts=-vx ;;
  241. *v* ) as_opts=-v ;;
  242. *x* ) as_opts=-x ;;
  243. * ) as_opts= ;;
  244. esac
  245. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  246. # Admittedly, this is quite paranoid, since all the known shells bail
  247. # out after a failed `exec'.
  248. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  249. exit 255
  250. fi
  251. if test x$as_have_required = xno; then :
  252. $as_echo "$0: This script requires a shell more modern than all"
  253. $as_echo "$0: the shells that I found on your system."
  254. if test x${ZSH_VERSION+set} = xset ; then
  255. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  259. $0: https://github.com/appneta/tcpreplay/issues about your
  260. $0: system, including any error possibly output before this
  261. $0: message. Then install a modern shell, or manually run
  262. $0: the script under such a shell if you do have one."
  263. fi
  264. exit 1
  265. fi
  266. fi
  267. fi
  268. SHELL=${CONFIG_SHELL-/bin/sh}
  269. export SHELL
  270. # Unset more variables known to interfere with behavior of common tools.
  271. CLICOLOR_FORCE= GREP_OPTIONS=
  272. unset CLICOLOR_FORCE GREP_OPTIONS
  273. ## --------------------- ##
  274. ## M4sh Shell Functions. ##
  275. ## --------------------- ##
  276. # as_fn_unset VAR
  277. # ---------------
  278. # Portably unset VAR.
  279. as_fn_unset ()
  280. {
  281. { eval $1=; unset $1;}
  282. }
  283. as_unset=as_fn_unset
  284. # as_fn_set_status STATUS
  285. # -----------------------
  286. # Set $? to STATUS, without forking.
  287. as_fn_set_status ()
  288. {
  289. return $1
  290. } # as_fn_set_status
  291. # as_fn_exit STATUS
  292. # -----------------
  293. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  294. as_fn_exit ()
  295. {
  296. set +e
  297. as_fn_set_status $1
  298. exit $1
  299. } # as_fn_exit
  300. # as_fn_mkdir_p
  301. # -------------
  302. # Create "$as_dir" as a directory, including parents if necessary.
  303. as_fn_mkdir_p ()
  304. {
  305. case $as_dir in #(
  306. -*) as_dir=./$as_dir;;
  307. esac
  308. test -d "$as_dir" || eval $as_mkdir_p || {
  309. as_dirs=
  310. while :; do
  311. case $as_dir in #(
  312. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  313. *) as_qdir=$as_dir;;
  314. esac
  315. as_dirs="'$as_qdir' $as_dirs"
  316. as_dir=`$as_dirname -- "$as_dir" ||
  317. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  318. X"$as_dir" : 'X\(//\)[^/]' \| \
  319. X"$as_dir" : 'X\(//\)$' \| \
  320. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  321. $as_echo X"$as_dir" |
  322. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  323. s//\1/
  324. q
  325. }
  326. /^X\(\/\/\)[^/].*/{
  327. s//\1/
  328. q
  329. }
  330. /^X\(\/\/\)$/{
  331. s//\1/
  332. q
  333. }
  334. /^X\(\/\).*/{
  335. s//\1/
  336. q
  337. }
  338. s/.*/./; q'`
  339. test -d "$as_dir" && break
  340. done
  341. test -z "$as_dirs" || eval "mkdir $as_dirs"
  342. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  343. } # as_fn_mkdir_p
  344. # as_fn_executable_p FILE
  345. # -----------------------
  346. # Test if FILE is an executable regular file.
  347. as_fn_executable_p ()
  348. {
  349. test -f "$1" && test -x "$1"
  350. } # as_fn_executable_p
  351. # as_fn_append VAR VALUE
  352. # ----------------------
  353. # Append the text in VALUE to the end of the definition contained in VAR. Take
  354. # advantage of any shell optimizations that allow amortized linear growth over
  355. # repeated appends, instead of the typical quadratic growth present in naive
  356. # implementations.
  357. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  358. eval 'as_fn_append ()
  359. {
  360. eval $1+=\$2
  361. }'
  362. else
  363. as_fn_append ()
  364. {
  365. eval $1=\$$1\$2
  366. }
  367. fi # as_fn_append
  368. # as_fn_arith ARG...
  369. # ------------------
  370. # Perform arithmetic evaluation on the ARGs, and store the result in the
  371. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  372. # must be portable across $(()) and expr.
  373. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  374. eval 'as_fn_arith ()
  375. {
  376. as_val=$(( $* ))
  377. }'
  378. else
  379. as_fn_arith ()
  380. {
  381. as_val=`expr "$@" || test $? -eq 1`
  382. }
  383. fi # as_fn_arith
  384. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  385. # ----------------------------------------
  386. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  387. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  388. # script with STATUS, using 1 if that was 0.
  389. as_fn_error ()
  390. {
  391. as_status=$1; test $as_status -eq 0 && as_status=1
  392. if test "$4"; then
  393. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  394. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  395. fi
  396. $as_echo "$as_me: error: $2" >&2
  397. as_fn_exit $as_status
  398. } # as_fn_error
  399. if expr a : '\(a\)' >/dev/null 2>&1 &&
  400. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  401. as_expr=expr
  402. else
  403. as_expr=false
  404. fi
  405. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  406. as_basename=basename
  407. else
  408. as_basename=false
  409. fi
  410. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  411. as_dirname=dirname
  412. else
  413. as_dirname=false
  414. fi
  415. as_me=`$as_basename -- "$0" ||
  416. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  417. X"$0" : 'X\(//\)$' \| \
  418. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  419. $as_echo X/"$0" |
  420. sed '/^.*\/\([^/][^/]*\)\/*$/{
  421. s//\1/
  422. q
  423. }
  424. /^X\/\(\/\/\)$/{
  425. s//\1/
  426. q
  427. }
  428. /^X\/\(\/\).*/{
  429. s//\1/
  430. q
  431. }
  432. s/.*/./; q'`
  433. # Avoid depending upon Character Ranges.
  434. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  435. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  436. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  437. as_cr_digits='0123456789'
  438. as_cr_alnum=$as_cr_Letters$as_cr_digits
  439. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  440. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  441. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  442. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  443. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  444. sed -n '
  445. p
  446. /[$]LINENO/=
  447. ' <$as_myself |
  448. sed '
  449. s/[$]LINENO.*/&-/
  450. t lineno
  451. b
  452. :lineno
  453. N
  454. :loop
  455. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  456. t loop
  457. s/-\n.*//
  458. ' >$as_me.lineno &&
  459. chmod +x "$as_me.lineno" ||
  460. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  461. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  462. # already done that, so ensure we don't try to do so again and fall
  463. # in an infinite loop. This has already happened in practice.
  464. _as_can_reexec=no; export _as_can_reexec
  465. # Don't try to exec as it changes $[0], causing all sort of problems
  466. # (the dirname of $[0] is not the place where we might find the
  467. # original and so on. Autoconf is especially sensitive to this).
  468. . "./$as_me.lineno"
  469. # Exit status is that of the last command.
  470. exit
  471. }
  472. ECHO_C= ECHO_N= ECHO_T=
  473. case `echo -n x` in #(((((
  474. -n*)
  475. case `echo 'xy\c'` in
  476. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  477. xy) ECHO_C='\c';;
  478. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  479. ECHO_T=' ';;
  480. esac;;
  481. *)
  482. ECHO_N='-n';;
  483. esac
  484. rm -f conf$$ conf$$.exe conf$$.file
  485. if test -d conf$$.dir; then
  486. rm -f conf$$.dir/conf$$.file
  487. else
  488. rm -f conf$$.dir
  489. mkdir conf$$.dir 2>/dev/null
  490. fi
  491. if (echo >conf$$.file) 2>/dev/null; then
  492. if ln -s conf$$.file conf$$ 2>/dev/null; then
  493. as_ln_s='ln -s'
  494. # ... but there are two gotchas:
  495. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  496. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  497. # In both cases, we have to default to `cp -pR'.
  498. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  499. as_ln_s='cp -pR'
  500. elif ln conf$$.file conf$$ 2>/dev/null; then
  501. as_ln_s=ln
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. else
  506. as_ln_s='cp -pR'
  507. fi
  508. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  509. rmdir conf$$.dir 2>/dev/null
  510. if mkdir -p . 2>/dev/null; then
  511. as_mkdir_p='mkdir -p "$as_dir"'
  512. else
  513. test -d ./-p && rmdir ./-p
  514. as_mkdir_p=false
  515. fi
  516. as_test_x='test -x'
  517. as_executable_p=as_fn_executable_p
  518. # Sed expression to map a string onto a valid CPP name.
  519. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  520. # Sed expression to map a string onto a valid variable name.
  521. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  522. SHELL=${CONFIG_SHELL-/bin/sh}
  523. test -n "$DJDIR" || exec 7<&0 </dev/null
  524. exec 6>&1
  525. # Name of the host.
  526. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  527. # so uname gets run too.
  528. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  529. #
  530. # Initializations.
  531. #
  532. ac_default_prefix=/usr/local
  533. ac_clean_files=
  534. ac_config_libobj_dir=.
  535. LIBOBJS=
  536. cross_compiling=no
  537. subdirs=
  538. MFLAGS=
  539. MAKEFLAGS=
  540. # Identity of this package.
  541. PACKAGE_NAME='tcpreplay'
  542. PACKAGE_TARNAME='tcpreplay'
  543. PACKAGE_VERSION='4.2.4'
  544. PACKAGE_STRING='tcpreplay 4.2.4'
  545. PACKAGE_BUGREPORT='https://github.com/appneta/tcpreplay/issues'
  546. PACKAGE_URL='http://tcpreplay.sourceforge.net/'
  547. ac_unique_file="src/tcpreplay.c"
  548. # Factoring default headers for most tests.
  549. ac_includes_default="\
  550. #include <stdio.h>
  551. #ifdef HAVE_SYS_TYPES_H
  552. # include <sys/types.h>
  553. #endif
  554. #ifdef HAVE_SYS_STAT_H
  555. # include <sys/stat.h>
  556. #endif
  557. #ifdef STDC_HEADERS
  558. # include <stdlib.h>
  559. # include <stddef.h>
  560. #else
  561. # ifdef HAVE_STDLIB_H
  562. # include <stdlib.h>
  563. # endif
  564. #endif
  565. #ifdef HAVE_STRING_H
  566. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  567. # include <memory.h>
  568. # endif
  569. # include <string.h>
  570. #endif
  571. #ifdef HAVE_STRINGS_H
  572. # include <strings.h>
  573. #endif
  574. #ifdef HAVE_INTTYPES_H
  575. # include <inttypes.h>
  576. #endif
  577. #ifdef HAVE_STDINT_H
  578. # include <stdint.h>
  579. #endif
  580. #ifdef HAVE_UNISTD_H
  581. # include <unistd.h>
  582. #endif"
  583. ac_header_list=
  584. ac_func_list=
  585. ac_subst_vars='am__EXEEXT_FALSE
  586. am__EXEEXT_TRUE
  587. LTLIBOBJS
  588. LIBOPTS_DIR
  589. LIBOPTS_CFLAGS
  590. LIBOPTS_LDADD
  591. NEED_LIBOPTS_FALSE
  592. NEED_LIBOPTS_TRUE
  593. INSTALL_LIBOPTS_FALSE
  594. INSTALL_LIBOPTS_TRUE
  595. POSIX_SHELL
  596. GL_GENERATE_STDNORETURN_H_FALSE
  597. GL_GENERATE_STDNORETURN_H_TRUE
  598. STDNORETURN_H
  599. nic2
  600. nic1
  601. ENABLE_OSX_FRAMEWORKS_FALSE
  602. ENABLE_OSX_FRAMEWORKS_TRUE
  603. ENABLE_TCPDUMP_FALSE
  604. ENABLE_TCPDUMP_TRUE
  605. tcpdump_path
  606. LNAV_CFLAGS
  607. LNAVLIB
  608. pcncfg
  609. PCAP_BPF_H_FILE
  610. COMPILE_FRAGROUTE_FALSE
  611. COMPILE_FRAGROUTE_TRUE
  612. LDNETLIB
  613. LDNETINC
  614. COMPILE_NETMAP_FALSE
  615. COMPILE_NETMAP_TRUE
  616. NETMAPFLAGS
  617. NETMAPINCDIR
  618. NETMAPUSERINC
  619. NETMAPINC
  620. COMPILE_TCPLIVEPLAY_FALSE
  621. COMPILE_TCPLIVEPLAY_TRUE
  622. COMPILE_TCPBRIDGE_FALSE
  623. COMPILE_TCPBRIDGE_TRUE
  624. LPCAPLIB
  625. LPCAPINC
  626. PCAP_CONFIG
  627. DMALLOC_LIB
  628. timestamp_trace_flag
  629. extra_debug_flag
  630. debug_run_time_flag
  631. debug_flag
  632. WORDS_BIGENDIAN_FALSE
  633. WORDS_BIGENDIAN_TRUE
  634. SYSTEM_STRLCPY_FALSE
  635. SYSTEM_STRLCPY_TRUE
  636. LIBOBJS
  637. rmmod
  638. insmod
  639. depmod
  640. GROFF
  641. AUTOGEN
  642. CUT
  643. ECHO
  644. PRINTF
  645. CXXCPP
  646. am__fastdepCXX_FALSE
  647. am__fastdepCXX_TRUE
  648. CXXDEPMODE
  649. ac_ct_CXX
  650. CXXFLAGS
  651. CXX
  652. CPP
  653. OTOOL64
  654. OTOOL
  655. LIPO
  656. NMEDIT
  657. DSYMUTIL
  658. MANIFEST_TOOL
  659. RANLIB
  660. ac_ct_AR
  661. AR
  662. DLLTOOL
  663. OBJDUMP
  664. LN_S
  665. NM
  666. ac_ct_DUMPBIN
  667. DUMPBIN
  668. LD
  669. FGREP
  670. EGREP
  671. GREP
  672. SED
  673. am__fastdepCC_FALSE
  674. am__fastdepCC_TRUE
  675. CCDEPMODE
  676. am__nodep
  677. AMDEPBACKSLASH
  678. AMDEP_FALSE
  679. AMDEP_TRUE
  680. am__quote
  681. am__include
  682. DEPDIR
  683. OBJEXT
  684. EXEEXT
  685. ac_ct_CC
  686. CPPFLAGS
  687. LDFLAGS
  688. CFLAGS
  689. CC
  690. AM_BACKSLASH
  691. AM_DEFAULT_VERBOSITY
  692. AM_DEFAULT_V
  693. AM_V
  694. am__untar
  695. am__tar
  696. AMTAR
  697. am__leading_dot
  698. SET_MAKE
  699. AWK
  700. mkdir_p
  701. MKDIR_P
  702. INSTALL_STRIP_PROGRAM
  703. STRIP
  704. install_sh
  705. MAKEINFO
  706. AUTOHEADER
  707. AUTOMAKE
  708. AUTOCONF
  709. ACLOCAL
  710. VERSION
  711. PACKAGE
  712. CYGPATH_W
  713. am__isrc
  714. INSTALL_DATA
  715. INSTALL_SCRIPT
  716. INSTALL_PROGRAM
  717. LIBTOOL
  718. MACOSX_SDK_PATH
  719. CROSS_LD
  720. CROSS_ARCH
  721. target_os
  722. target_vendor
  723. target_cpu
  724. target
  725. host_os
  726. host_vendor
  727. host_cpu
  728. host
  729. build_os
  730. build_vendor
  731. build_cpu
  732. build
  733. TCPREPLAY_RELEASE
  734. TCPREPLAY_VERSION
  735. MAINT
  736. MAINTAINER_MODE_FALSE
  737. MAINTAINER_MODE_TRUE
  738. target_alias
  739. host_alias
  740. build_alias
  741. LIBS
  742. ECHO_T
  743. ECHO_N
  744. ECHO_C
  745. DEFS
  746. mandir
  747. localedir
  748. libdir
  749. psdir
  750. pdfdir
  751. dvidir
  752. htmldir
  753. infodir
  754. docdir
  755. oldincludedir
  756. includedir
  757. localstatedir
  758. sharedstatedir
  759. sysconfdir
  760. datadir
  761. datarootdir
  762. libexecdir
  763. sbindir
  764. bindir
  765. program_transform_name
  766. prefix
  767. exec_prefix
  768. PACKAGE_URL
  769. PACKAGE_BUGREPORT
  770. PACKAGE_STRING
  771. PACKAGE_VERSION
  772. PACKAGE_TARNAME
  773. PACKAGE_NAME
  774. PATH_SEPARATOR
  775. SHELL'
  776. ac_subst_files=''
  777. ac_user_opts='
  778. enable_option_checking
  779. enable_maintainer_mode
  780. with_dmalloc
  781. with_macosx_sdk
  782. with_pfring_lib
  783. enable_silent_rules
  784. enable_shared
  785. enable_static
  786. with_pic
  787. enable_fast_install
  788. enable_dependency_tracking
  789. with_gnu_ld
  790. with_sysroot
  791. enable_libtool_lock
  792. enable_largefile
  793. enable_debug
  794. enable_extra_debug
  795. enable_timestamp_trace
  796. enable_dmalloc
  797. enable_pedantic
  798. enable_efence
  799. enable_gprof
  800. enable_pcapconfig
  801. enable_64bits
  802. enable_force_bpf
  803. enable_force_pf
  804. enable_force_libdnet
  805. enable_force_inject
  806. enable_force_sendpacket
  807. enable_static_link
  808. enable_dynamic_link
  809. enable_tuntap
  810. with_libpcap
  811. with_netmap
  812. with_libdnet
  813. with_pcapnav_config
  814. with_tcpdump
  815. with_testnic
  816. with_testnic2
  817. enable_nls
  818. enable_local_libopts
  819. enable_libopts_install
  820. with_autoopts_config
  821. with_regex_header
  822. with_libregex
  823. with_libregex_cflags
  824. with_libregex_libs
  825. enable_optional_args
  826. '
  827. ac_precious_vars='build_alias
  828. host_alias
  829. target_alias
  830. CC
  831. CFLAGS
  832. LDFLAGS
  833. LIBS
  834. CPPFLAGS
  835. CPP
  836. CXX
  837. CXXFLAGS
  838. CCC
  839. CXXCPP'
  840. # Initialize some variables set by options.
  841. ac_init_help=
  842. ac_init_version=false
  843. ac_unrecognized_opts=
  844. ac_unrecognized_sep=
  845. # The variables have the same names as the options, with
  846. # dashes changed to underlines.
  847. cache_file=/dev/null
  848. exec_prefix=NONE
  849. no_create=
  850. no_recursion=
  851. prefix=NONE
  852. program_prefix=NONE
  853. program_suffix=NONE
  854. program_transform_name=s,x,x,
  855. silent=
  856. site=
  857. srcdir=
  858. verbose=
  859. x_includes=NONE
  860. x_libraries=NONE
  861. # Installation directory options.
  862. # These are left unexpanded so users can "make install exec_prefix=/foo"
  863. # and all the variables that are supposed to be based on exec_prefix
  864. # by default will actually change.
  865. # Use braces instead of parens because sh, perl, etc. also accept them.
  866. # (The list follows the same order as the GNU Coding Standards.)
  867. bindir='${exec_prefix}/bin'
  868. sbindir='${exec_prefix}/sbin'
  869. libexecdir='${exec_prefix}/libexec'
  870. datarootdir='${prefix}/share'
  871. datadir='${datarootdir}'
  872. sysconfdir='${prefix}/etc'
  873. sharedstatedir='${prefix}/com'
  874. localstatedir='${prefix}/var'
  875. includedir='${prefix}/include'
  876. oldincludedir='/usr/include'
  877. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  878. infodir='${datarootdir}/info'
  879. htmldir='${docdir}'
  880. dvidir='${docdir}'
  881. pdfdir='${docdir}'
  882. psdir='${docdir}'
  883. libdir='${exec_prefix}/lib'
  884. localedir='${datarootdir}/locale'
  885. mandir='${datarootdir}/man'
  886. ac_prev=
  887. ac_dashdash=
  888. for ac_option
  889. do
  890. # If the previous option needs an argument, assign it.
  891. if test -n "$ac_prev"; then
  892. eval $ac_prev=\$ac_option
  893. ac_prev=
  894. continue
  895. fi
  896. case $ac_option in
  897. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  898. *=) ac_optarg= ;;
  899. *) ac_optarg=yes ;;
  900. esac
  901. # Accept the important Cygnus configure options, so we can diagnose typos.
  902. case $ac_dashdash$ac_option in
  903. --)
  904. ac_dashdash=yes ;;
  905. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  906. ac_prev=bindir ;;
  907. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  908. bindir=$ac_optarg ;;
  909. -build | --build | --buil | --bui | --bu)
  910. ac_prev=build_alias ;;
  911. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  912. build_alias=$ac_optarg ;;
  913. -cache-file | --cache-file | --cache-fil | --cache-fi \
  914. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  915. ac_prev=cache_file ;;
  916. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  917. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  918. cache_file=$ac_optarg ;;
  919. --config-cache | -C)
  920. cache_file=config.cache ;;
  921. -datadir | --datadir | --datadi | --datad)
  922. ac_prev=datadir ;;
  923. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  924. datadir=$ac_optarg ;;
  925. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  926. | --dataroo | --dataro | --datar)
  927. ac_prev=datarootdir ;;
  928. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  929. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  930. datarootdir=$ac_optarg ;;
  931. -disable-* | --disable-*)
  932. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  933. # Reject names that are not valid shell variable names.
  934. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  935. as_fn_error $? "invalid feature name: $ac_useropt"
  936. ac_useropt_orig=$ac_useropt
  937. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  938. case $ac_user_opts in
  939. *"
  940. "enable_$ac_useropt"
  941. "*) ;;
  942. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  943. ac_unrecognized_sep=', ';;
  944. esac
  945. eval enable_$ac_useropt=no ;;
  946. -docdir | --docdir | --docdi | --doc | --do)
  947. ac_prev=docdir ;;
  948. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  949. docdir=$ac_optarg ;;
  950. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  951. ac_prev=dvidir ;;
  952. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  953. dvidir=$ac_optarg ;;
  954. -enable-* | --enable-*)
  955. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  956. # Reject names that are not valid shell variable names.
  957. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  958. as_fn_error $? "invalid feature name: $ac_useropt"
  959. ac_useropt_orig=$ac_useropt
  960. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  961. case $ac_user_opts in
  962. *"
  963. "enable_$ac_useropt"
  964. "*) ;;
  965. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  966. ac_unrecognized_sep=', ';;
  967. esac
  968. eval enable_$ac_useropt=\$ac_optarg ;;
  969. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  970. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  971. | --exec | --exe | --ex)
  972. ac_prev=exec_prefix ;;
  973. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  974. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  975. | --exec=* | --exe=* | --ex=*)
  976. exec_prefix=$ac_optarg ;;
  977. -gas | --gas | --ga | --g)
  978. # Obsolete; use --with-gas.
  979. with_gas=yes ;;
  980. -help | --help | --hel | --he | -h)
  981. ac_init_help=long ;;
  982. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  983. ac_init_help=recursive ;;
  984. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  985. ac_init_help=short ;;
  986. -host | --host | --hos | --ho)
  987. ac_prev=host_alias ;;
  988. -host=* | --host=* | --hos=* | --ho=*)
  989. host_alias=$ac_optarg ;;
  990. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  991. ac_prev=htmldir ;;
  992. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  993. | --ht=*)
  994. htmldir=$ac_optarg ;;
  995. -includedir | --includedir | --includedi | --included | --include \
  996. | --includ | --inclu | --incl | --inc)
  997. ac_prev=includedir ;;
  998. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  999. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1000. includedir=$ac_optarg ;;
  1001. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1002. ac_prev=infodir ;;
  1003. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1004. infodir=$ac_optarg ;;
  1005. -libdir | --libdir | --libdi | --libd)
  1006. ac_prev=libdir ;;
  1007. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1008. libdir=$ac_optarg ;;
  1009. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1010. | --libexe | --libex | --libe)
  1011. ac_prev=libexecdir ;;
  1012. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1013. | --libexe=* | --libex=* | --libe=*)
  1014. libexecdir=$ac_optarg ;;
  1015. -localedir | --localedir | --localedi | --localed | --locale)
  1016. ac_prev=localedir ;;
  1017. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1018. localedir=$ac_optarg ;;
  1019. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1020. | --localstate | --localstat | --localsta | --localst | --locals)
  1021. ac_prev=localstatedir ;;
  1022. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1023. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1024. localstatedir=$ac_optarg ;;
  1025. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1026. ac_prev=mandir ;;
  1027. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1028. mandir=$ac_optarg ;;
  1029. -nfp | --nfp | --nf)
  1030. # Obsolete; use --without-fp.
  1031. with_fp=no ;;
  1032. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1033. | --no-cr | --no-c | -n)
  1034. no_create=yes ;;
  1035. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1036. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1037. no_recursion=yes ;;
  1038. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1039. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1040. | --oldin | --oldi | --old | --ol | --o)
  1041. ac_prev=oldincludedir ;;
  1042. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1043. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1044. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1045. oldincludedir=$ac_optarg ;;
  1046. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1047. ac_prev=prefix ;;
  1048. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1049. prefix=$ac_optarg ;;
  1050. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1051. | --program-pre | --program-pr | --program-p)
  1052. ac_prev=program_prefix ;;
  1053. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1054. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1055. program_prefix=$ac_optarg ;;
  1056. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1057. | --program-suf | --program-su | --program-s)
  1058. ac_prev=program_suffix ;;
  1059. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1060. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1061. program_suffix=$ac_optarg ;;
  1062. -program-transform-name | --program-transform-name \
  1063. | --program-transform-nam | --program-transform-na \
  1064. | --program-transform-n | --program-transform- \
  1065. | --program-transform | --program-transfor \
  1066. | --program-transfo | --program-transf \
  1067. | --program-trans | --program-tran \
  1068. | --progr-tra | --program-tr | --program-t)
  1069. ac_prev=program_transform_name ;;
  1070. -program-transform-name=* | --program-transform-name=* \
  1071. | --program-transform-nam=* | --program-transform-na=* \
  1072. | --program-transform-n=* | --program-transform-=* \
  1073. | --program-transform=* | --program-transfor=* \
  1074. | --program-transfo=* | --program-transf=* \
  1075. | --program-trans=* | --program-tran=* \
  1076. | --progr-tra=* | --program-tr=* | --program-t=*)
  1077. program_transform_name=$ac_optarg ;;
  1078. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1079. ac_prev=pdfdir ;;
  1080. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1081. pdfdir=$ac_optarg ;;
  1082. -psdir | --psdir | --psdi | --psd | --ps)
  1083. ac_prev=psdir ;;
  1084. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1085. psdir=$ac_optarg ;;
  1086. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1087. | -silent | --silent | --silen | --sile | --sil)
  1088. silent=yes ;;
  1089. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1090. ac_prev=sbindir ;;
  1091. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1092. | --sbi=* | --sb=*)
  1093. sbindir=$ac_optarg ;;
  1094. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1095. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1096. | --sharedst | --shareds | --shared | --share | --shar \
  1097. | --sha | --sh)
  1098. ac_prev=sharedstatedir ;;
  1099. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1100. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1101. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1102. | --sha=* | --sh=*)
  1103. sharedstatedir=$ac_optarg ;;
  1104. -site | --site | --sit)
  1105. ac_prev=site ;;
  1106. -site=* | --site=* | --sit=*)
  1107. site=$ac_optarg ;;
  1108. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1109. ac_prev=srcdir ;;
  1110. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1111. srcdir=$ac_optarg ;;
  1112. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1113. | --syscon | --sysco | --sysc | --sys | --sy)
  1114. ac_prev=sysconfdir ;;
  1115. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1116. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1117. sysconfdir=$ac_optarg ;;
  1118. -target | --target | --targe | --targ | --tar | --ta | --t)
  1119. ac_prev=target_alias ;;
  1120. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1121. target_alias=$ac_optarg ;;
  1122. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1123. verbose=yes ;;
  1124. -version | --version | --versio | --versi | --vers | -V)
  1125. ac_init_version=: ;;
  1126. -with-* | --with-*)
  1127. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1128. # Reject names that are not valid shell variable names.
  1129. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1130. as_fn_error $? "invalid package name: $ac_useropt"
  1131. ac_useropt_orig=$ac_useropt
  1132. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1133. case $ac_user_opts in
  1134. *"
  1135. "with_$ac_useropt"
  1136. "*) ;;
  1137. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1138. ac_unrecognized_sep=', ';;
  1139. esac
  1140. eval with_$ac_useropt=\$ac_optarg ;;
  1141. -without-* | --without-*)
  1142. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1143. # Reject names that are not valid shell variable names.
  1144. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1145. as_fn_error $? "invalid package name: $ac_useropt"
  1146. ac_useropt_orig=$ac_useropt
  1147. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1148. case $ac_user_opts in
  1149. *"
  1150. "with_$ac_useropt"
  1151. "*) ;;
  1152. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1153. ac_unrecognized_sep=', ';;
  1154. esac
  1155. eval with_$ac_useropt=no ;;
  1156. --x)
  1157. # Obsolete; use --with-x.
  1158. with_x=yes ;;
  1159. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1160. | --x-incl | --x-inc | --x-in | --x-i)
  1161. ac_prev=x_includes ;;
  1162. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1163. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1164. x_includes=$ac_optarg ;;
  1165. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1166. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1167. ac_prev=x_libraries ;;
  1168. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1169. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1170. x_libraries=$ac_optarg ;;
  1171. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1172. Try \`$0 --help' for more information"
  1173. ;;
  1174. *=*)
  1175. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1176. # Reject names that are not valid shell variable names.
  1177. case $ac_envvar in #(
  1178. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1179. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1180. esac
  1181. eval $ac_envvar=\$ac_optarg
  1182. export $ac_envvar ;;
  1183. *)
  1184. # FIXME: should be removed in autoconf 3.0.
  1185. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1186. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1187. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1188. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1189. ;;
  1190. esac
  1191. done
  1192. if test -n "$ac_prev"; then
  1193. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1194. as_fn_error $? "missing argument to $ac_option"
  1195. fi
  1196. if test -n "$ac_unrecognized_opts"; then
  1197. case $enable_option_checking in
  1198. no) ;;
  1199. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1200. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1201. esac
  1202. fi
  1203. # Check all directory arguments for consistency.
  1204. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1205. datadir sysconfdir sharedstatedir localstatedir includedir \
  1206. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1207. libdir localedir mandir
  1208. do
  1209. eval ac_val=\$$ac_var
  1210. # Remove trailing slashes.
  1211. case $ac_val in
  1212. */ )
  1213. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1214. eval $ac_var=\$ac_val;;
  1215. esac
  1216. # Be sure to have absolute directory names.
  1217. case $ac_val in
  1218. [\\/$]* | ?:[\\/]* ) continue;;
  1219. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1220. esac
  1221. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1222. done
  1223. # There might be people who depend on the old broken behavior: `$host'
  1224. # used to hold the argument of --host etc.
  1225. # FIXME: To remove some day.
  1226. build=$build_alias
  1227. host=$host_alias
  1228. target=$target_alias
  1229. # FIXME: To remove some day.
  1230. if test "x$host_alias" != x; then
  1231. if test "x$build_alias" = x; then
  1232. cross_compiling=maybe
  1233. elif test "x$build_alias" != "x$host_alias"; then
  1234. cross_compiling=yes
  1235. fi
  1236. fi
  1237. ac_tool_prefix=
  1238. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1239. test "$silent" = yes && exec 6>/dev/null
  1240. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1241. ac_ls_di=`ls -di .` &&
  1242. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1243. as_fn_error $? "working directory cannot be determined"
  1244. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1245. as_fn_error $? "pwd does not report name of working directory"
  1246. # Find the source files, if location was not specified.
  1247. if test -z "$srcdir"; then
  1248. ac_srcdir_defaulted=yes
  1249. # Try the directory containing this script, then the parent directory.
  1250. ac_confdir=`$as_dirname -- "$as_myself" ||
  1251. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1252. X"$as_myself" : 'X\(//\)[^/]' \| \
  1253. X"$as_myself" : 'X\(//\)$' \| \
  1254. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1255. $as_echo X"$as_myself" |
  1256. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1257. s//\1/
  1258. q
  1259. }
  1260. /^X\(\/\/\)[^/].*/{
  1261. s//\1/
  1262. q
  1263. }
  1264. /^X\(\/\/\)$/{
  1265. s//\1/
  1266. q
  1267. }
  1268. /^X\(\/\).*/{
  1269. s//\1/
  1270. q
  1271. }
  1272. s/.*/./; q'`
  1273. srcdir=$ac_confdir
  1274. if test ! -r "$srcdir/$ac_unique_file"; then
  1275. srcdir=..
  1276. fi
  1277. else
  1278. ac_srcdir_defaulted=no
  1279. fi
  1280. if test ! -r "$srcdir/$ac_unique_file"; then
  1281. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1282. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1283. fi
  1284. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1285. ac_abs_confdir=`(
  1286. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1287. pwd)`
  1288. # When building in place, set srcdir=.
  1289. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1290. srcdir=.
  1291. fi
  1292. # Remove unnecessary trailing slashes from srcdir.
  1293. # Double slashes in file names in object file debugging info
  1294. # mess up M-x gdb in Emacs.
  1295. case $srcdir in
  1296. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1297. esac
  1298. for ac_var in $ac_precious_vars; do
  1299. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1300. eval ac_env_${ac_var}_value=\$${ac_var}
  1301. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1302. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1303. done
  1304. #
  1305. # Report the --help message.
  1306. #
  1307. if test "$ac_init_help" = "long"; then
  1308. # Omit some internal or obsolete options to make the list less imposing.
  1309. # This message is too long to be a string in the A/UX 3.1 sh.
  1310. cat <<_ACEOF
  1311. \`configure' configures tcpreplay 4.2.4 to adapt to many kinds of systems.
  1312. Usage: $0 [OPTION]... [VAR=VALUE]...
  1313. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1314. VAR=VALUE. See below for descriptions of some of the useful variables.
  1315. Defaults for the options are specified in brackets.
  1316. Configuration:
  1317. -h, --help display this help and exit
  1318. --help=short display options specific to this package
  1319. --help=recursive display the short help of all the included packages
  1320. -V, --version display version information and exit
  1321. -q, --quiet, --silent do not print \`checking ...' messages
  1322. --cache-file=FILE cache test results in FILE [disabled]
  1323. -C, --config-cache alias for \`--cache-file=config.cache'
  1324. -n, --no-create do not create output files
  1325. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1326. Installation directories:
  1327. --prefix=PREFIX install architecture-independent files in PREFIX
  1328. [$ac_default_prefix]
  1329. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1330. [PREFIX]
  1331. By default, \`make install' will install all the files in
  1332. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1333. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1334. for instance \`--prefix=\$HOME'.
  1335. For better control, use the options below.
  1336. Fine tuning of the installation directories:
  1337. --bindir=DIR user executables [EPREFIX/bin]
  1338. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1339. --libexecdir=DIR program executables [EPREFIX/libexec]
  1340. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1341. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1342. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1343. --libdir=DIR object code libraries [EPREFIX/lib]
  1344. --includedir=DIR C header files [PREFIX/include]
  1345. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1346. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1347. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1348. --infodir=DIR info documentation [DATAROOTDIR/info]
  1349. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1350. --mandir=DIR man documentation [DATAROOTDIR/man]
  1351. --docdir=DIR documentation root [DATAROOTDIR/doc/tcpreplay]
  1352. --htmldir=DIR html documentation [DOCDIR]
  1353. --dvidir=DIR dvi documentation [DOCDIR]
  1354. --pdfdir=DIR pdf documentation [DOCDIR]
  1355. --psdir=DIR ps documentation [DOCDIR]
  1356. _ACEOF
  1357. cat <<\_ACEOF
  1358. Program names:
  1359. --program-prefix=PREFIX prepend PREFIX to installed program names
  1360. --program-suffix=SUFFIX append SUFFIX to installed program names
  1361. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1362. System types:
  1363. --build=BUILD configure for building on BUILD [guessed]
  1364. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1365. --target=TARGET configure for building compilers for TARGET [HOST]
  1366. _ACEOF
  1367. fi
  1368. if test -n "$ac_init_help"; then
  1369. case $ac_init_help in
  1370. short | recursive ) echo "Configuration of tcpreplay 4.2.4:";;
  1371. esac
  1372. cat <<\_ACEOF
  1373. Optional Features:
  1374. --disable-option-checking ignore unrecognized --enable/--with options
  1375. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1376. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1377. --enable-maintainer-mode
  1378. enable make rules and dependencies not useful (and
  1379. sometimes confusing) to the casual installer
  1380. --enable-silent-rules less verbose build output (undo: "make V=1")
  1381. --disable-silent-rules verbose build output (undo: "make V=0")
  1382. --enable-shared[=PKGS] build shared libraries [default=yes]
  1383. --enable-static[=PKGS] build static libraries [default=yes]
  1384. --enable-fast-install[=PKGS]
  1385. optimize for fast installation [default=yes]
  1386. --enable-dependency-tracking
  1387. do not reject slow dependency extractors
  1388. --disable-dependency-tracking
  1389. speeds up one-time build
  1390. --disable-libtool-lock avoid locking (might break parallel builds)
  1391. --disable-largefile omit support for large files
  1392. --enable-debug Enable debugging code and support for the -d option
  1393. --enable-extra-debug Enable additional debugging code (may affect
  1394. performance)
  1395. --timestamp-trace Enable dumping of trace timestamps at the end of a
  1396. test
  1397. --enable-dmalloc Enable linking to dmalloc for better memory
  1398. debugging
  1399. --enable-pedantic Enable gcc's -pedantic option
  1400. --enable-efence Enable Electric Fence memory debugger
  1401. --enable-gprof Enable GNU Profiler
  1402. --enable-pcapconfig Enable automatic libpcap config, reverting to system
  1403. scanning
  1404. --disable-64bits Do not use 64bit packet counters
  1405. --enable-force-bpf Force using BPF for sending packets
  1406. --enable-force-pf Force using Linux's PF_PACKET for sending packets
  1407. --enable-force-libdnet Force using libdnet for sending packets
  1408. --enable-force-inject Force using libpcap's pcap_inject() for sending
  1409. packets
  1410. --enable-force-sendpacket
  1411. Force using libpcap's pcap_sendpacket() for sending
  1412. packets
  1413. --enable-static-link Use static libraries ( .a or .A.tbd ) - default no
  1414. --enable-dynamic-link Use shared libraries ( .so .dylib or .tbd ) -
  1415. default yes
  1416. --disable-tuntap Disable tuntap support
  1417. --disable-nls disable nls support in libopts
  1418. --enable-local-libopts Use the supplied libopts tearoff code
  1419. --enable-libopts-install
  1420. Install libopts with client installation
  1421. --disable-optional-args not wanting optional option args
  1422. Optional Packages:
  1423. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1424. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1425. --with-dmalloc use dmalloc, as in http://www.dmalloc.com
  1426. --with-macosx-sdk Use a specific SDK for building.
  1427. Usage: --with-macosx-sdk=<version>
  1428. e. g.: --with-macosx-sdk=10.8
  1429. --with-pfring-lib Use a specific PF_RING static library when using
  1430. PF_RING libpcap.
  1431. Usage: --with-pfring-lib=<library>
  1432. e. g.: --with-pfring-lib=/usr/lib/libpfring_zc_x86_64.a
  1433. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1434. both]
  1435. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1436. --with-sysroot=DIR Search for dependent libraries within DIR
  1437. (or the compiler's sysroot if not specified).
  1438. --with-libpcap=DIR Use libpcap in DIR
  1439. --with-netmap=DIR Use netmap in DIR
  1440. --with-libdnet=DIR Use libdnet in DIR
  1441. --with-pcapnav-config=FILE
  1442. Use given pcapnav-config
  1443. --with-tcpdump=FILE Path to tcpdump binary
  1444. --with-testnic=NIC Select which network card to use for testing
  1445. --with-testnic2=NIC2 Select an optional 2nd network card to use for
  1446. testing
  1447. --with-autoopts-config specify the config-info script
  1448. --with-regex-header a reg expr header is specified
  1449. --with-libregex libregex installation prefix
  1450. --with-libregex-cflags libregex compile flags
  1451. --with-libregex-libs libregex link command arguments
  1452. Some influential environment variables:
  1453. CC C compiler command
  1454. CFLAGS C compiler flags
  1455. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1456. nonstandard directory <lib dir>
  1457. LIBS libraries to pass to the linker, e.g. -l<library>
  1458. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1459. you have headers in a nonstandard directory <include dir>
  1460. CPP C preprocessor
  1461. CXX C++ compiler command
  1462. CXXFLAGS C++ compiler flags
  1463. CXXCPP C++ preprocessor
  1464. Use these variables to override the choices made by `configure' or to help
  1465. it to find libraries and programs with nonstandard names/locations.
  1466. Report bugs to <https://github.com/appneta/tcpreplay/issues>.
  1467. tcpreplay home page: <http://tcpreplay.sourceforge.net/>.
  1468. _ACEOF
  1469. ac_status=$?
  1470. fi
  1471. if test "$ac_init_help" = "recursive"; then
  1472. # If there are subdirs, report their specific --help.
  1473. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1474. test -d "$ac_dir" ||
  1475. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1476. continue
  1477. ac_builddir=.
  1478. case "$ac_dir" in
  1479. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1480. *)
  1481. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1482. # A ".." for each directory in $ac_dir_suffix.
  1483. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1484. case $ac_top_builddir_sub in
  1485. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1486. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1487. esac ;;
  1488. esac
  1489. ac_abs_top_builddir=$ac_pwd
  1490. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1491. # for backward compatibility:
  1492. ac_top_builddir=$ac_top_build_prefix
  1493. case $srcdir in
  1494. .) # We are building in place.
  1495. ac_srcdir=.
  1496. ac_top_srcdir=$ac_top_builddir_sub
  1497. ac_abs_top_srcdir=$ac_pwd ;;
  1498. [\\/]* | ?:[\\/]* ) # Absolute name.
  1499. ac_srcdir=$srcdir$ac_dir_suffix;
  1500. ac_top_srcdir=$srcdir
  1501. ac_abs_top_srcdir=$srcdir ;;
  1502. *) # Relative name.
  1503. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1504. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1505. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1506. esac
  1507. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1508. cd "$ac_dir" || { ac_status=$?; continue; }
  1509. # Check for guested configure.
  1510. if test -f "$ac_srcdir/configure.gnu"; then
  1511. echo &&
  1512. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1513. elif test -f "$ac_srcdir/configure"; then
  1514. echo &&
  1515. $SHELL "$ac_srcdir/configure" --help=recursive
  1516. else
  1517. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1518. fi || ac_status=$?
  1519. cd "$ac_pwd" || { ac_status=$?; break; }
  1520. done
  1521. fi
  1522. test -n "$ac_init_help" && exit $ac_status
  1523. if $ac_init_version; then
  1524. cat <<\_ACEOF
  1525. tcpreplay configure 4.2.4
  1526. generated by GNU Autoconf 2.69
  1527. Copyright (C) 2012 Free Software Foundation, Inc.
  1528. This configure script is free software; the Free Software Foundation
  1529. gives unlimited permission to copy, distribute and modify it.
  1530. _ACEOF
  1531. exit
  1532. fi
  1533. ## ------------------------ ##
  1534. ## Autoconf initialization. ##
  1535. ## ------------------------ ##
  1536. # ac_fn_c_try_compile LINENO
  1537. # --------------------------
  1538. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1539. ac_fn_c_try_compile ()
  1540. {
  1541. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1542. rm -f conftest.$ac_objext
  1543. if { { ac_try="$ac_compile"
  1544. case "(($ac_try" in
  1545. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1546. *) ac_try_echo=$ac_try;;
  1547. esac
  1548. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1549. $as_echo "$ac_try_echo"; } >&5
  1550. (eval "$ac_compile") 2>conftest.err
  1551. ac_status=$?
  1552. if test -s conftest.err; then
  1553. grep -v '^ *+' conftest.err >conftest.er1
  1554. cat conftest.er1 >&5
  1555. mv -f conftest.er1 conftest.err
  1556. fi
  1557. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1558. test $ac_status = 0; } && {
  1559. test -z "$ac_c_werror_flag" ||
  1560. test ! -s conftest.err
  1561. } && test -s conftest.$ac_objext; then :
  1562. ac_retval=0
  1563. else
  1564. $as_echo "$as_me: failed program was:" >&5
  1565. sed 's/^/| /' conftest.$ac_ext >&5
  1566. ac_retval=1
  1567. fi
  1568. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1569. as_fn_set_status $ac_retval
  1570. } # ac_fn_c_try_compile
  1571. # ac_fn_c_try_link LINENO
  1572. # -----------------------
  1573. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1574. ac_fn_c_try_link ()
  1575. {
  1576. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1577. rm -f conftest.$ac_objext conftest$ac_exeext
  1578. if { { ac_try="$ac_link"
  1579. case "(($ac_try" in
  1580. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1581. *) ac_try_echo=$ac_try;;
  1582. esac
  1583. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1584. $as_echo "$ac_try_echo"; } >&5
  1585. (eval "$ac_link") 2>conftest.err
  1586. ac_status=$?
  1587. if test -s conftest.err; then
  1588. grep -v '^ *+' conftest.err >conftest.er1
  1589. cat conftest.er1 >&5
  1590. mv -f conftest.er1 conftest.err
  1591. fi
  1592. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1593. test $ac_status = 0; } && {
  1594. test -z "$ac_c_werror_flag" ||
  1595. test ! -s conftest.err
  1596. } && test -s conftest$ac_exeext && {
  1597. test "$cross_compiling" = yes ||
  1598. test -x conftest$ac_exeext
  1599. }; then :
  1600. ac_retval=0
  1601. else
  1602. $as_echo "$as_me: failed program was:" >&5
  1603. sed 's/^/| /' conftest.$ac_ext >&5
  1604. ac_retval=1
  1605. fi
  1606. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1607. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1608. # interfere with the next link command; also delete a directory that is
  1609. # left behind by Apple's compiler. We do this before executing the actions.
  1610. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1611. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1612. as_fn_set_status $ac_retval
  1613. } # ac_fn_c_try_link
  1614. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1615. # -------------------------------------------------------
  1616. # Tests whether HEADER exists and can be compiled using the include files in
  1617. # INCLUDES, setting the cache variable VAR accordingly.
  1618. ac_fn_c_check_header_compile ()
  1619. {
  1620. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1622. $as_echo_n "checking for $2... " >&6; }
  1623. if eval \${$3+:} false; then :
  1624. $as_echo_n "(cached) " >&6
  1625. else
  1626. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1627. /* end confdefs.h. */
  1628. $4
  1629. #include <$2>
  1630. _ACEOF
  1631. if ac_fn_c_try_compile "$LINENO"; then :
  1632. eval "$3=yes"
  1633. else
  1634. eval "$3=no"
  1635. fi
  1636. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1637. fi
  1638. eval ac_res=\$$3
  1639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1640. $as_echo "$ac_res" >&6; }
  1641. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1642. } # ac_fn_c_check_header_compile
  1643. # ac_fn_c_try_cpp LINENO
  1644. # ----------------------
  1645. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1646. ac_fn_c_try_cpp ()
  1647. {
  1648. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1649. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1650. case "(($ac_try" in
  1651. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1652. *) ac_try_echo=$ac_try;;
  1653. esac
  1654. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1655. $as_echo "$ac_try_echo"; } >&5
  1656. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1657. ac_status=$?
  1658. if test -s conftest.err; then
  1659. grep -v '^ *+' conftest.err >conftest.er1
  1660. cat conftest.er1 >&5
  1661. mv -f conftest.er1 conftest.err
  1662. fi
  1663. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1664. test $ac_status = 0; } > conftest.i && {
  1665. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1666. test ! -s conftest.err
  1667. }; then :
  1668. ac_retval=0
  1669. else
  1670. $as_echo "$as_me: failed program was:" >&5
  1671. sed 's/^/| /' conftest.$ac_ext >&5
  1672. ac_retval=1
  1673. fi
  1674. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1675. as_fn_set_status $ac_retval
  1676. } # ac_fn_c_try_cpp
  1677. # ac_fn_c_try_run LINENO
  1678. # ----------------------
  1679. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1680. # that executables *can* be run.
  1681. ac_fn_c_try_run ()
  1682. {
  1683. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1684. if { { ac_try="$ac_link"
  1685. case "(($ac_try" in
  1686. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1687. *) ac_try_echo=$ac_try;;
  1688. esac
  1689. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1690. $as_echo "$ac_try_echo"; } >&5
  1691. (eval "$ac_link") 2>&5
  1692. ac_status=$?
  1693. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1694. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1695. { { case "(($ac_try" in
  1696. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1697. *) ac_try_echo=$ac_try;;
  1698. esac
  1699. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1700. $as_echo "$ac_try_echo"; } >&5
  1701. (eval "$ac_try") 2>&5
  1702. ac_status=$?
  1703. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1704. test $ac_status = 0; }; }; then :
  1705. ac_retval=0
  1706. else
  1707. $as_echo "$as_me: program exited with status $ac_status" >&5
  1708. $as_echo "$as_me: failed program was:" >&5
  1709. sed 's/^/| /' conftest.$ac_ext >&5
  1710. ac_retval=$ac_status
  1711. fi
  1712. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1713. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1714. as_fn_set_status $ac_retval
  1715. } # ac_fn_c_try_run
  1716. # ac_fn_c_check_func LINENO FUNC VAR
  1717. # ----------------------------------
  1718. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1719. ac_fn_c_check_func ()
  1720. {
  1721. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1723. $as_echo_n "checking for $2... " >&6; }
  1724. if eval \${$3+:} false; then :
  1725. $as_echo_n "(cached) " >&6
  1726. else
  1727. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1728. /* end confdefs.h. */
  1729. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1730. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1731. #define $2 innocuous_$2
  1732. /* System header to define __stub macros and hopefully few prototypes,
  1733. which can conflict with char $2 (); below.
  1734. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1735. <limits.h> exists even on freestanding compilers. */
  1736. #ifdef __STDC__
  1737. # include <limits.h>
  1738. #else
  1739. # include <assert.h>
  1740. #endif
  1741. #undef $2
  1742. /* Override any GCC internal prototype to avoid an error.
  1743. Use char because int might match the return type of a GCC
  1744. builtin and then its argument prototype would still apply. */
  1745. #ifdef __cplusplus
  1746. extern "C"
  1747. #endif
  1748. char $2 ();
  1749. /* The GNU C library defines this for functions which it implements
  1750. to always fail with ENOSYS. Some functions are actually named
  1751. something starting with __ and the normal name is an alias. */
  1752. #if defined __stub_$2 || defined __stub___$2
  1753. choke me
  1754. #endif
  1755. int
  1756. main ()
  1757. {
  1758. return $2 ();
  1759. ;
  1760. return 0;
  1761. }
  1762. _ACEOF
  1763. if ac_fn_c_try_link "$LINENO"; then :
  1764. eval "$3=yes"
  1765. else
  1766. eval "$3=no"
  1767. fi
  1768. rm -f core conftest.err conftest.$ac_objext \
  1769. conftest$ac_exeext conftest.$ac_ext
  1770. fi
  1771. eval ac_res=\$$3
  1772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1773. $as_echo "$ac_res" >&6; }
  1774. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1775. } # ac_fn_c_check_func
  1776. # ac_fn_cxx_try_compile LINENO
  1777. # ----------------------------
  1778. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1779. ac_fn_cxx_try_compile ()
  1780. {
  1781. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1782. rm -f conftest.$ac_objext
  1783. if { { ac_try="$ac_compile"
  1784. case "(($ac_try" in
  1785. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1786. *) ac_try_echo=$ac_try;;
  1787. esac
  1788. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1789. $as_echo "$ac_try_echo"; } >&5
  1790. (eval "$ac_compile") 2>conftest.err
  1791. ac_status=$?
  1792. if test -s conftest.err; then
  1793. grep -v '^ *+' conftest.err >conftest.er1
  1794. cat conftest.er1 >&5
  1795. mv -f conftest.er1 conftest.err
  1796. fi
  1797. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1798. test $ac_status = 0; } && {
  1799. test -z "$ac_cxx_werror_flag" ||
  1800. test ! -s conftest.err
  1801. } && test -s conftest.$ac_objext; then :
  1802. ac_retval=0
  1803. else
  1804. $as_echo "$as_me: failed program was:" >&5
  1805. sed 's/^/| /' conftest.$ac_ext >&5
  1806. ac_retval=1
  1807. fi
  1808. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1809. as_fn_set_status $ac_retval
  1810. } # ac_fn_cxx_try_compile
  1811. # ac_fn_cxx_try_cpp LINENO
  1812. # ------------------------
  1813. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1814. ac_fn_cxx_try_cpp ()
  1815. {
  1816. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1817. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1818. case "(($ac_try" in
  1819. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1820. *) ac_try_echo=$ac_try;;
  1821. esac
  1822. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1823. $as_echo "$ac_try_echo"; } >&5
  1824. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1825. ac_status=$?
  1826. if test -s conftest.err; then
  1827. grep -v '^ *+' conftest.err >conftest.er1
  1828. cat conftest.er1 >&5
  1829. mv -f conftest.er1 conftest.err
  1830. fi
  1831. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1832. test $ac_status = 0; } > conftest.i && {
  1833. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1834. test ! -s conftest.err
  1835. }; then :
  1836. ac_retval=0
  1837. else
  1838. $as_echo "$as_me: failed program was:" >&5
  1839. sed 's/^/| /' conftest.$ac_ext >&5
  1840. ac_retval=1
  1841. fi
  1842. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1843. as_fn_set_status $ac_retval
  1844. } # ac_fn_cxx_try_cpp
  1845. # ac_fn_cxx_try_link LINENO
  1846. # -------------------------
  1847. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1848. ac_fn_cxx_try_link ()
  1849. {
  1850. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1851. rm -f conftest.$ac_objext conftest$ac_exeext
  1852. if { { ac_try="$ac_link"
  1853. case "(($ac_try" in
  1854. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1855. *) ac_try_echo=$ac_try;;
  1856. esac
  1857. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1858. $as_echo "$ac_try_echo"; } >&5
  1859. (eval "$ac_link") 2>conftest.err
  1860. ac_status=$?
  1861. if test -s conftest.err; then
  1862. grep -v '^ *+' conftest.err >conftest.er1
  1863. cat conftest.er1 >&5
  1864. mv -f conftest.er1 conftest.err
  1865. fi
  1866. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1867. test $ac_status = 0; } && {
  1868. test -z "$ac_cxx_werror_flag" ||
  1869. test ! -s conftest.err
  1870. } && test -s conftest$ac_exeext && {
  1871. test "$cross_compiling" = yes ||
  1872. test -x conftest$ac_exeext
  1873. }; then :
  1874. ac_retval=0
  1875. else
  1876. $as_echo "$as_me: failed program was:" >&5
  1877. sed 's/^/| /' conftest.$ac_ext >&5
  1878. ac_retval=1
  1879. fi
  1880. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1881. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1882. # interfere with the next link command; also delete a directory that is
  1883. # left behind by Apple's compiler. We do this before executing the actions.
  1884. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1885. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1886. as_fn_set_status $ac_retval
  1887. } # ac_fn_cxx_try_link
  1888. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1889. # -------------------------------------------------------
  1890. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1891. # the include files in INCLUDES and setting the cache variable VAR
  1892. # accordingly.
  1893. ac_fn_c_check_header_mongrel ()
  1894. {
  1895. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1896. if eval \${$3+:} false; then :
  1897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1898. $as_echo_n "checking for $2... " >&6; }
  1899. if eval \${$3+:} false; then :
  1900. $as_echo_n "(cached) " >&6
  1901. fi
  1902. eval ac_res=\$$3
  1903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1904. $as_echo "$ac_res" >&6; }
  1905. else
  1906. # Is the header compilable?
  1907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1908. $as_echo_n "checking $2 usability... " >&6; }
  1909. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1910. /* end confdefs.h. */
  1911. $4
  1912. #include <$2>
  1913. _ACEOF
  1914. if ac_fn_c_try_compile "$LINENO"; then :
  1915. ac_header_compiler=yes
  1916. else
  1917. ac_header_compiler=no
  1918. fi
  1919. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1921. $as_echo "$ac_header_compiler" >&6; }
  1922. # Is the header present?
  1923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1924. $as_echo_n "checking $2 presence... " >&6; }
  1925. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1926. /* end confdefs.h. */
  1927. #include <$2>
  1928. _ACEOF
  1929. if ac_fn_c_try_cpp "$LINENO"; then :
  1930. ac_header_preproc=yes
  1931. else
  1932. ac_header_preproc=no
  1933. fi
  1934. rm -f conftest.err conftest.i conftest.$ac_ext
  1935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1936. $as_echo "$ac_header_preproc" >&6; }
  1937. # So? What about this header?
  1938. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1939. yes:no: )
  1940. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1941. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1942. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1943. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1944. ;;
  1945. no:yes:* )
  1946. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1947. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1948. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1949. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1950. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1951. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1952. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1953. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1954. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1955. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1956. ( $as_echo "## ---------------------------------------------------------- ##
  1957. ## Report this to https://github.com/appneta/tcpreplay/issues ##
  1958. ## ---------------------------------------------------------- ##"
  1959. ) | sed "s/^/$as_me: WARNING: /" >&2
  1960. ;;
  1961. esac
  1962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1963. $as_echo_n "checking for $2... " >&6; }
  1964. if eval \${$3+:} false; then :
  1965. $as_echo_n "(cached) " >&6
  1966. else
  1967. eval "$3=\$ac_header_compiler"
  1968. fi
  1969. eval ac_res=\$$3
  1970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1971. $as_echo "$ac_res" >&6; }
  1972. fi
  1973. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1974. } # ac_fn_c_check_header_mongrel
  1975. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1976. # -------------------------------------------
  1977. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1978. # variable VAR accordingly.
  1979. ac_fn_c_check_type ()
  1980. {
  1981. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1983. $as_echo_n "checking for $2... " >&6; }
  1984. if eval \${$3+:} false; then :
  1985. $as_echo_n "(cached) " >&6
  1986. else
  1987. eval "$3=no"
  1988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1989. /* end confdefs.h. */
  1990. $4
  1991. int
  1992. main ()
  1993. {
  1994. if (sizeof ($2))
  1995. return 0;
  1996. ;
  1997. return 0;
  1998. }
  1999. _ACEOF
  2000. if ac_fn_c_try_compile "$LINENO"; then :
  2001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2002. /* end confdefs.h. */
  2003. $4
  2004. int
  2005. main ()
  2006. {
  2007. if (sizeof (($2)))
  2008. return 0;
  2009. ;
  2010. return 0;
  2011. }
  2012. _ACEOF
  2013. if ac_fn_c_try_compile "$LINENO"; then :
  2014. else
  2015. eval "$3=yes"
  2016. fi
  2017. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2018. fi
  2019. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2020. fi
  2021. eval ac_res=\$$3
  2022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2023. $as_echo "$ac_res" >&6; }
  2024. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2025. } # ac_fn_c_check_type
  2026. # ac_fn_c_find_intX_t LINENO BITS VAR
  2027. # -----------------------------------
  2028. # Finds a signed integer type with width BITS, setting cache variable VAR
  2029. # accordingly.
  2030. ac_fn_c_find_intX_t ()
  2031. {
  2032. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  2034. $as_echo_n "checking for int$2_t... " >&6; }
  2035. if eval \${$3+:} false; then :
  2036. $as_echo_n "(cached) " >&6
  2037. else
  2038. eval "$3=no"
  2039. # Order is important - never check a type that is potentially smaller
  2040. # than half of the expected target width.
  2041. for ac_type in int$2_t 'int' 'long int' \
  2042. 'long long int' 'short int' 'signed char'; do
  2043. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2044. /* end confdefs.h. */
  2045. $ac_includes_default
  2046. enum { N = $2 / 2 - 1 };
  2047. int
  2048. main ()
  2049. {
  2050. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  2051. test_array [0] = 0;
  2052. return test_array [0];
  2053. ;
  2054. return 0;
  2055. }
  2056. _ACEOF
  2057. if ac_fn_c_try_compile "$LINENO"; then :
  2058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2059. /* end confdefs.h. */
  2060. $ac_includes_default
  2061. enum { N = $2 / 2 - 1 };
  2062. int
  2063. main ()
  2064. {
  2065. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  2066. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  2067. test_array [0] = 0;
  2068. return test_array [0];
  2069. ;
  2070. return 0;
  2071. }
  2072. _ACEOF
  2073. if ac_fn_c_try_compile "$LINENO"; then :
  2074. else
  2075. case $ac_type in #(
  2076. int$2_t) :
  2077. eval "$3=yes" ;; #(
  2078. *) :
  2079. eval "$3=\$ac_type" ;;
  2080. esac
  2081. fi
  2082. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2083. fi
  2084. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2085. if eval test \"x\$"$3"\" = x"no"; then :
  2086. else
  2087. break
  2088. fi
  2089. done
  2090. fi
  2091. eval ac_res=\$$3
  2092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2093. $as_echo "$ac_res" >&6; }
  2094. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2095. } # ac_fn_c_find_intX_t
  2096. # ac_fn_c_find_uintX_t LINENO BITS VAR
  2097. # ------------------------------------
  2098. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  2099. # accordingly.
  2100. ac_fn_c_find_uintX_t ()
  2101. {
  2102. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  2104. $as_echo_n "checking for uint$2_t... " >&6; }
  2105. if eval \${$3+:} false; then :
  2106. $as_echo_n "(cached) " >&6
  2107. else
  2108. eval "$3=no"
  2109. # Order is important - never check a type that is potentially smaller
  2110. # than half of the expected target width.
  2111. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  2112. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  2113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2114. /* end confdefs.h. */
  2115. $ac_includes_default
  2116. int
  2117. main ()
  2118. {
  2119. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  2120. test_array [0] = 0;
  2121. return test_array [0];
  2122. ;
  2123. return 0;
  2124. }
  2125. _ACEOF
  2126. if ac_fn_c_try_compile "$LINENO"; then :
  2127. case $ac_type in #(
  2128. uint$2_t) :
  2129. eval "$3=yes" ;; #(
  2130. *) :
  2131. eval "$3=\$ac_type" ;;
  2132. esac
  2133. fi
  2134. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2135. if eval test \"x\$"$3"\" = x"no"; then :
  2136. else
  2137. break
  2138. fi
  2139. done
  2140. fi
  2141. eval ac_res=\$$3
  2142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2143. $as_echo "$ac_res" >&6; }
  2144. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2145. } # ac_fn_c_find_uintX_t
  2146. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2147. # ----------------------------------------------------
  2148. # Tries to find if the field MEMBER exists in type AGGR, after including
  2149. # INCLUDES, setting cache variable VAR accordingly.
  2150. ac_fn_c_check_member ()
  2151. {
  2152. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2154. $as_echo_n "checking for $2.$3... " >&6; }
  2155. if eval \${$4+:} false; then :
  2156. $as_echo_n "(cached) " >&6
  2157. else
  2158. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2159. /* end confdefs.h. */
  2160. $5
  2161. int
  2162. main ()
  2163. {
  2164. static $2 ac_aggr;
  2165. if (ac_aggr.$3)
  2166. return 0;
  2167. ;
  2168. return 0;
  2169. }
  2170. _ACEOF
  2171. if ac_fn_c_try_compile "$LINENO"; then :
  2172. eval "$4=yes"
  2173. else
  2174. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2175. /* end confdefs.h. */
  2176. $5
  2177. int
  2178. main ()
  2179. {
  2180. static $2 ac_aggr;
  2181. if (sizeof ac_aggr.$3)
  2182. return 0;
  2183. ;
  2184. return 0;
  2185. }
  2186. _ACEOF
  2187. if ac_fn_c_try_compile "$LINENO"; then :
  2188. eval "$4=yes"
  2189. else
  2190. eval "$4=no"
  2191. fi
  2192. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2193. fi
  2194. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2195. fi
  2196. eval ac_res=\$$4
  2197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2198. $as_echo "$ac_res" >&6; }
  2199. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2200. } # ac_fn_c_check_member
  2201. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  2202. # ---------------------------------------------
  2203. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  2204. # accordingly.
  2205. ac_fn_c_check_decl ()
  2206. {
  2207. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2208. as_decl_name=`echo $2|sed 's/ *(.*//'`
  2209. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2211. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  2212. if eval \${$3+:} false; then :
  2213. $as_echo_n "(cached) " >&6
  2214. else
  2215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2216. /* end confdefs.h. */
  2217. $4
  2218. int
  2219. main ()
  2220. {
  2221. #ifndef $as_decl_name
  2222. #ifdef __cplusplus
  2223. (void) $as_decl_use;
  2224. #else
  2225. (void) $as_decl_name;
  2226. #endif
  2227. #endif
  2228. ;
  2229. return 0;
  2230. }
  2231. _ACEOF
  2232. if ac_fn_c_try_compile "$LINENO"; then :
  2233. eval "$3=yes"
  2234. else
  2235. eval "$3=no"
  2236. fi
  2237. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2238. fi
  2239. eval ac_res=\$$3
  2240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2241. $as_echo "$ac_res" >&6; }
  2242. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2243. } # ac_fn_c_check_decl
  2244. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  2245. # --------------------------------------------
  2246. # Tries to find the compile-time value of EXPR in a program that includes
  2247. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2248. # computed
  2249. ac_fn_c_compute_int ()
  2250. {
  2251. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2252. if test "$cross_compiling" = yes; then
  2253. # Depending upon the size, compute the lo and hi bounds.
  2254. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2255. /* end confdefs.h. */
  2256. $4
  2257. int
  2258. main ()
  2259. {
  2260. static int test_array [1 - 2 * !(($2) >= 0)];
  2261. test_array [0] = 0;
  2262. return test_array [0];
  2263. ;
  2264. return 0;
  2265. }
  2266. _ACEOF
  2267. if ac_fn_c_try_compile "$LINENO"; then :
  2268. ac_lo=0 ac_mid=0
  2269. while :; do
  2270. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2271. /* end confdefs.h. */
  2272. $4
  2273. int
  2274. main ()
  2275. {
  2276. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2277. test_array [0] = 0;
  2278. return test_array [0];
  2279. ;
  2280. return 0;
  2281. }
  2282. _ACEOF
  2283. if ac_fn_c_try_compile "$LINENO"; then :
  2284. ac_hi=$ac_mid; break
  2285. else
  2286. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2287. if test $ac_lo -le $ac_mid; then
  2288. ac_lo= ac_hi=
  2289. break
  2290. fi
  2291. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2292. fi
  2293. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2294. done
  2295. else
  2296. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2297. /* end confdefs.h. */
  2298. $4
  2299. int
  2300. main ()
  2301. {
  2302. static int test_array [1 - 2 * !(($2) < 0)];
  2303. test_array [0] = 0;
  2304. return test_array [0];
  2305. ;
  2306. return 0;
  2307. }
  2308. _ACEOF
  2309. if ac_fn_c_try_compile "$LINENO"; then :
  2310. ac_hi=-1 ac_mid=-1
  2311. while :; do
  2312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2313. /* end confdefs.h. */
  2314. $4
  2315. int
  2316. main ()
  2317. {
  2318. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2319. test_array [0] = 0;
  2320. return test_array [0];
  2321. ;
  2322. return 0;
  2323. }
  2324. _ACEOF
  2325. if ac_fn_c_try_compile "$LINENO"; then :
  2326. ac_lo=$ac_mid; break
  2327. else
  2328. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2329. if test $ac_mid -le $ac_hi; then
  2330. ac_lo= ac_hi=
  2331. break
  2332. fi
  2333. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2334. fi
  2335. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2336. done
  2337. else
  2338. ac_lo= ac_hi=
  2339. fi
  2340. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2341. fi
  2342. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2343. # Binary search between lo and hi bounds.
  2344. while test "x$ac_lo" != "x$ac_hi"; do
  2345. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2346. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2347. /* end confdefs.h. */
  2348. $4
  2349. int
  2350. main ()
  2351. {
  2352. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2353. test_array [0] = 0;
  2354. return test_array [0];
  2355. ;
  2356. return 0;
  2357. }
  2358. _ACEOF
  2359. if ac_fn_c_try_compile "$LINENO"; then :
  2360. ac_hi=$ac_mid
  2361. else
  2362. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2363. fi
  2364. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2365. done
  2366. case $ac_lo in #((
  2367. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2368. '') ac_retval=1 ;;
  2369. esac
  2370. else
  2371. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2372. /* end confdefs.h. */
  2373. $4
  2374. static long int longval () { return $2; }
  2375. static unsigned long int ulongval () { return $2; }
  2376. #include <stdio.h>
  2377. #include <stdlib.h>
  2378. int
  2379. main ()
  2380. {
  2381. FILE *f = fopen ("conftest.val", "w");
  2382. if (! f)
  2383. return 1;
  2384. if (($2) < 0)
  2385. {
  2386. long int i = longval ();
  2387. if (i != ($2))
  2388. return 1;
  2389. fprintf (f, "%ld", i);
  2390. }
  2391. else
  2392. {
  2393. unsigned long int i = ulongval ();
  2394. if (i != ($2))
  2395. return 1;
  2396. fprintf (f, "%lu", i);
  2397. }
  2398. /* Do not output a trailing newline, as this causes \r\n confusion
  2399. on some platforms. */
  2400. return ferror (f) || fclose (f) != 0;
  2401. ;
  2402. return 0;
  2403. }
  2404. _ACEOF
  2405. if ac_fn_c_try_run "$LINENO"; then :
  2406. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2407. else
  2408. ac_retval=1
  2409. fi
  2410. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2411. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2412. rm -f conftest.val
  2413. fi
  2414. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2415. as_fn_set_status $ac_retval
  2416. } # ac_fn_c_compute_int
  2417. cat >config.log <<_ACEOF
  2418. This file contains any messages produced by compilers while
  2419. running configure, to aid debugging if configure makes a mistake.
  2420. It was created by tcpreplay $as_me 4.2.4, which was
  2421. generated by GNU Autoconf 2.69. Invocation command line was
  2422. $ $0 $@
  2423. _ACEOF
  2424. exec 5>>config.log
  2425. {
  2426. cat <<_ASUNAME
  2427. ## --------- ##
  2428. ## Platform. ##
  2429. ## --------- ##
  2430. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2431. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2432. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2433. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2434. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2435. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2436. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2437. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2438. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2439. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2440. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2441. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2442. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2443. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2444. _ASUNAME
  2445. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2446. for as_dir in $PATH
  2447. do
  2448. IFS=$as_save_IFS
  2449. test -z "$as_dir" && as_dir=.
  2450. $as_echo "PATH: $as_dir"
  2451. done
  2452. IFS=$as_save_IFS
  2453. } >&5
  2454. cat >&5 <<_ACEOF
  2455. ## ----------- ##
  2456. ## Core tests. ##
  2457. ## ----------- ##
  2458. _ACEOF
  2459. # Keep a trace of the command line.
  2460. # Strip out --no-create and --no-recursion so they do not pile up.
  2461. # Strip out --silent because we don't want to record it for future runs.
  2462. # Also quote any args containing shell meta-characters.
  2463. # Make two passes to allow for proper duplicate-argument suppression.
  2464. ac_configure_args=
  2465. ac_configure_args0=
  2466. ac_configure_args1=
  2467. ac_must_keep_next=false
  2468. for ac_pass in 1 2
  2469. do
  2470. for ac_arg
  2471. do
  2472. case $ac_arg in
  2473. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2474. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2475. | -silent | --silent | --silen | --sile | --sil)
  2476. continue ;;
  2477. *\'*)
  2478. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2479. esac
  2480. case $ac_pass in
  2481. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2482. 2)
  2483. as_fn_append ac_configure_args1 " '$ac_arg'"
  2484. if test $ac_must_keep_next = true; then
  2485. ac_must_keep_next=false # Got value, back to normal.
  2486. else
  2487. case $ac_arg in
  2488. *=* | --config-cache | -C | -disable-* | --disable-* \
  2489. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2490. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2491. | -with-* | --with-* | -without-* | --without-* | --x)
  2492. case "$ac_configure_args0 " in
  2493. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2494. esac
  2495. ;;
  2496. -* ) ac_must_keep_next=true ;;
  2497. esac
  2498. fi
  2499. as_fn_append ac_configure_args " '$ac_arg'"
  2500. ;;
  2501. esac
  2502. done
  2503. done
  2504. { ac_configure_args0=; unset ac_configure_args0;}
  2505. { ac_configure_args1=; unset ac_configure_args1;}
  2506. # When interrupted or exit'd, cleanup temporary files, and complete
  2507. # config.log. We remove comments because anyway the quotes in there
  2508. # would cause problems or look ugly.
  2509. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2510. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2511. trap 'exit_status=$?
  2512. # Save into config.log some information that might help in debugging.
  2513. {
  2514. echo
  2515. $as_echo "## ---------------- ##
  2516. ## Cache variables. ##
  2517. ## ---------------- ##"
  2518. echo
  2519. # The following way of writing the cache mishandles newlines in values,
  2520. (
  2521. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2522. eval ac_val=\$$ac_var
  2523. case $ac_val in #(
  2524. *${as_nl}*)
  2525. case $ac_var in #(
  2526. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2527. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2528. esac
  2529. case $ac_var in #(
  2530. _ | IFS | as_nl) ;; #(
  2531. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2532. *) { eval $ac_var=; unset $ac_var;} ;;
  2533. esac ;;
  2534. esac
  2535. done
  2536. (set) 2>&1 |
  2537. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2538. *${as_nl}ac_space=\ *)
  2539. sed -n \
  2540. "s/'\''/'\''\\\\'\'''\''/g;
  2541. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2542. ;; #(
  2543. *)
  2544. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2545. ;;
  2546. esac |
  2547. sort
  2548. )
  2549. echo
  2550. $as_echo "## ----------------- ##
  2551. ## Output variables. ##
  2552. ## ----------------- ##"
  2553. echo
  2554. for ac_var in $ac_subst_vars
  2555. do
  2556. eval ac_val=\$$ac_var
  2557. case $ac_val in
  2558. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2559. esac
  2560. $as_echo "$ac_var='\''$ac_val'\''"
  2561. done | sort
  2562. echo
  2563. if test -n "$ac_subst_files"; then
  2564. $as_echo "## ------------------- ##
  2565. ## File substitutions. ##
  2566. ## ------------------- ##"
  2567. echo
  2568. for ac_var in $ac_subst_files
  2569. do
  2570. eval ac_val=\$$ac_var
  2571. case $ac_val in
  2572. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2573. esac
  2574. $as_echo "$ac_var='\''$ac_val'\''"
  2575. done | sort
  2576. echo
  2577. fi
  2578. if test -s confdefs.h; then
  2579. $as_echo "## ----------- ##
  2580. ## confdefs.h. ##
  2581. ## ----------- ##"
  2582. echo
  2583. cat confdefs.h
  2584. echo
  2585. fi
  2586. test "$ac_signal" != 0 &&
  2587. $as_echo "$as_me: caught signal $ac_signal"
  2588. $as_echo "$as_me: exit $exit_status"
  2589. } >&5
  2590. rm -f core *.core core.conftest.* &&
  2591. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2592. exit $exit_status
  2593. ' 0
  2594. for ac_signal in 1 2 13 15; do
  2595. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2596. done
  2597. ac_signal=0
  2598. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2599. rm -f -r conftest* confdefs.h
  2600. $as_echo "/* confdefs.h */" > confdefs.h
  2601. # Predefined preprocessor variables.
  2602. cat >>confdefs.h <<_ACEOF
  2603. #define PACKAGE_NAME "$PACKAGE_NAME"
  2604. _ACEOF
  2605. cat >>confdefs.h <<_ACEOF
  2606. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2607. _ACEOF
  2608. cat >>confdefs.h <<_ACEOF
  2609. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2610. _ACEOF
  2611. cat >>confdefs.h <<_ACEOF
  2612. #define PACKAGE_STRING "$PACKAGE_STRING"
  2613. _ACEOF
  2614. cat >>confdefs.h <<_ACEOF
  2615. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2616. _ACEOF
  2617. cat >>confdefs.h <<_ACEOF
  2618. #define PACKAGE_URL "$PACKAGE_URL"
  2619. _ACEOF
  2620. # Let the site file select an alternate cache file if it wants to.
  2621. # Prefer an explicitly selected file to automatically selected ones.
  2622. ac_site_file1=NONE
  2623. ac_site_file2=NONE
  2624. if test -n "$CONFIG_SITE"; then
  2625. # We do not want a PATH search for config.site.
  2626. case $CONFIG_SITE in #((
  2627. -*) ac_site_file1=./$CONFIG_SITE;;
  2628. */*) ac_site_file1=$CONFIG_SITE;;
  2629. *) ac_site_file1=./$CONFIG_SITE;;
  2630. esac
  2631. elif test "x$prefix" != xNONE; then
  2632. ac_site_file1=$prefix/share/config.site
  2633. ac_site_file2=$prefix/etc/config.site
  2634. else
  2635. ac_site_file1=$ac_default_prefix/share/config.site
  2636. ac_site_file2=$ac_default_prefix/etc/config.site
  2637. fi
  2638. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2639. do
  2640. test "x$ac_site_file" = xNONE && continue
  2641. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2642. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2643. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2644. sed 's/^/| /' "$ac_site_file" >&5
  2645. . "$ac_site_file" \
  2646. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2647. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2648. as_fn_error $? "failed to load site script $ac_site_file
  2649. See \`config.log' for more details" "$LINENO" 5; }
  2650. fi
  2651. done
  2652. if test -r "$cache_file"; then
  2653. # Some versions of bash will fail to source /dev/null (special files
  2654. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2655. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2656. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2657. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2658. case $cache_file in
  2659. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2660. *) . "./$cache_file";;
  2661. esac
  2662. fi
  2663. else
  2664. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2665. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2666. >$cache_file
  2667. fi
  2668. as_fn_append ac_header_list " sys/time.h"
  2669. as_fn_append ac_header_list " unistd.h"
  2670. as_fn_append ac_func_list " alarm"
  2671. as_fn_append ac_header_list " stdlib.h"
  2672. as_fn_append ac_header_list " sys/param.h"
  2673. # Check that the precious variables saved in the cache have kept the same
  2674. # value.
  2675. ac_cache_corrupted=false
  2676. for ac_var in $ac_precious_vars; do
  2677. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2678. eval ac_new_set=\$ac_env_${ac_var}_set
  2679. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2680. eval ac_new_val=\$ac_env_${ac_var}_value
  2681. case $ac_old_set,$ac_new_set in
  2682. set,)
  2683. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2684. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2685. ac_cache_corrupted=: ;;
  2686. ,set)
  2687. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2688. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2689. ac_cache_corrupted=: ;;
  2690. ,);;
  2691. *)
  2692. if test "x$ac_old_val" != "x$ac_new_val"; then
  2693. # differences in whitespace do not lead to failure.
  2694. ac_old_val_w=`echo x $ac_old_val`
  2695. ac_new_val_w=`echo x $ac_new_val`
  2696. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2697. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2698. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2699. ac_cache_corrupted=:
  2700. else
  2701. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2702. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2703. eval $ac_var=\$ac_old_val
  2704. fi
  2705. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2706. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2707. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2708. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2709. fi;;
  2710. esac
  2711. # Pass precious variables to config.status.
  2712. if test "$ac_new_set" = set; then
  2713. case $ac_new_val in
  2714. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2715. *) ac_arg=$ac_var=$ac_new_val ;;
  2716. esac
  2717. case " $ac_configure_args " in
  2718. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2719. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2720. esac
  2721. fi
  2722. done
  2723. if $ac_cache_corrupted; then
  2724. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2725. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2726. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2727. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2728. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2729. fi
  2730. ## -------------------- ##
  2731. ## Main body of script. ##
  2732. ## -------------------- ##
  2733. ac_ext=c
  2734. ac_cpp='$CPP $CPPFLAGS'
  2735. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2736. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2737. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2738. ac_config_headers="$ac_config_headers src/config.h"
  2739. ac_aux_dir=
  2740. for ac_dir in config "$srcdir"/config; do
  2741. if test -f "$ac_dir/install-sh"; then
  2742. ac_aux_dir=$ac_dir
  2743. ac_install_sh="$ac_aux_dir/install-sh -c"
  2744. break
  2745. elif test -f "$ac_dir/install.sh"; then
  2746. ac_aux_dir=$ac_dir
  2747. ac_install_sh="$ac_aux_dir/install.sh -c"
  2748. break
  2749. elif test -f "$ac_dir/shtool"; then
  2750. ac_aux_dir=$ac_dir
  2751. ac_install_sh="$ac_aux_dir/shtool install -c"
  2752. break
  2753. fi
  2754. done
  2755. if test -z "$ac_aux_dir"; then
  2756. as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
  2757. fi
  2758. # These three variables are undocumented and unsupported,
  2759. # and are intended to be withdrawn in a future Autoconf release.
  2760. # They can cause serious problems if a builder's source tree is in a directory
  2761. # whose full name contains unusual characters.
  2762. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2763. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2764. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2766. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2767. # Check whether --enable-maintainer-mode was given.
  2768. if test "${enable_maintainer_mode+set}" = set; then :
  2769. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2770. else
  2771. USE_MAINTAINER_MODE=no
  2772. fi
  2773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2774. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2775. if test $USE_MAINTAINER_MODE = yes; then
  2776. MAINTAINER_MODE_TRUE=
  2777. MAINTAINER_MODE_FALSE='#'
  2778. else
  2779. MAINTAINER_MODE_TRUE='#'
  2780. MAINTAINER_MODE_FALSE=
  2781. fi
  2782. MAINT=$MAINTAINER_MODE_TRUE
  2783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
  2784. $as_echo_n "checking if malloc debugging is wanted... " >&6; }
  2785. # Check whether --with-dmalloc was given.
  2786. if test "${with_dmalloc+set}" = set; then :
  2787. withval=$with_dmalloc; if test "$withval" = yes; then
  2788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2789. $as_echo "yes" >&6; }
  2790. $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
  2791. LIBS="$LIBS -ldmalloc"
  2792. LDFLAGS="$LDFLAGS -g"
  2793. else
  2794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2795. $as_echo "no" >&6; }
  2796. fi
  2797. else
  2798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2799. $as_echo "no" >&6; }
  2800. fi
  2801. MAINTAINER_AUTOGEN_VERSION=5.18.4
  2802. TCPREPLAY_VERSION=$PACKAGE_VERSION
  2803. TCPREPLAY_RELEASE=1
  2804. USER_CFLAGS=$CFLAGS
  2805. CFLAGS="-Wall -std=gnu99 ${CFLAGS}"
  2806. # Make sure we can run config.sub.
  2807. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2808. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2810. $as_echo_n "checking build system type... " >&6; }
  2811. if ${ac_cv_build+:} false; then :
  2812. $as_echo_n "(cached) " >&6
  2813. else
  2814. ac_build_alias=$build_alias
  2815. test "x$ac_build_alias" = x &&
  2816. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2817. test "x$ac_build_alias" = x &&
  2818. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2819. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2820. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2821. fi
  2822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2823. $as_echo "$ac_cv_build" >&6; }
  2824. case $ac_cv_build in
  2825. *-*-*) ;;
  2826. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2827. esac
  2828. build=$ac_cv_build
  2829. ac_save_IFS=$IFS; IFS='-'
  2830. set x $ac_cv_build
  2831. shift
  2832. build_cpu=$1
  2833. build_vendor=$2
  2834. shift; shift
  2835. # Remember, the first character of IFS is used to create $*,
  2836. # except with old shells:
  2837. build_os=$*
  2838. IFS=$ac_save_IFS
  2839. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2841. $as_echo_n "checking host system type... " >&6; }
  2842. if ${ac_cv_host+:} false; then :
  2843. $as_echo_n "(cached) " >&6
  2844. else
  2845. if test "x$host_alias" = x; then
  2846. ac_cv_host=$ac_cv_build
  2847. else
  2848. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2849. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2850. fi
  2851. fi
  2852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2853. $as_echo "$ac_cv_host" >&6; }
  2854. case $ac_cv_host in
  2855. *-*-*) ;;
  2856. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2857. esac
  2858. host=$ac_cv_host
  2859. ac_save_IFS=$IFS; IFS='-'
  2860. set x $ac_cv_host
  2861. shift
  2862. host_cpu=$1
  2863. host_vendor=$2
  2864. shift; shift
  2865. # Remember, the first character of IFS is used to create $*,
  2866. # except with old shells:
  2867. host_os=$*
  2868. IFS=$ac_save_IFS
  2869. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2871. $as_echo_n "checking target system type... " >&6; }
  2872. if ${ac_cv_target+:} false; then :
  2873. $as_echo_n "(cached) " >&6
  2874. else
  2875. if test "x$target_alias" = x; then
  2876. ac_cv_target=$ac_cv_host
  2877. else
  2878. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2879. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2880. fi
  2881. fi
  2882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2883. $as_echo "$ac_cv_target" >&6; }
  2884. case $ac_cv_target in
  2885. *-*-*) ;;
  2886. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2887. esac
  2888. target=$ac_cv_target
  2889. ac_save_IFS=$IFS; IFS='-'
  2890. set x $ac_cv_target
  2891. shift
  2892. target_cpu=$1
  2893. target_vendor=$2
  2894. shift; shift
  2895. # Remember, the first character of IFS is used to create $*,
  2896. # except with old shells:
  2897. target_os=$*
  2898. IFS=$ac_save_IFS
  2899. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2900. # The aliases save the names the user supplied, while $host etc.
  2901. # will get canonicalized.
  2902. test -n "$target_alias" &&
  2903. test "$program_prefix$program_suffix$program_transform_name" = \
  2904. NONENONEs,x,x, &&
  2905. program_prefix=${target_alias}-
  2906. CROSS_ARCH=
  2907. CROSS_LD=
  2908. build_arch=$(echo $MACHTYPE | cut -d'-' -f1)
  2909. if test "$cross_compiling" = "yes" ; then
  2910. CROSS_ARCH="ARCH=$host_cpu"
  2911. CROSS_LD="LD=$LD"
  2912. fi
  2913. MULTIARCH=$(dpkg-architecture -qDEB_HOST_MULTIARCH) 2> /dev/null || ${host_cpu}-${host_os}
  2914. # Check whether --with-macosx-sdk was given.
  2915. if test "${with_macosx_sdk+set}" = set; then :
  2916. withval=$with_macosx_sdk;
  2917. fi
  2918. case "$host_os" in
  2919. darwin*) # Mac OS X or iOS
  2920. # If no --with-macosx-sdk option is given, look for one
  2921. # The intent is that for "most" Mac-based developers, a suitable
  2922. # SDK will be found automatically without any configure options.
  2923. # For developers with a current Xcode, the lowest-numbered SDK
  2924. # higher than or equal to the minimum required should be found.
  2925. # To find a list of available version run `xcodebuild -showsdks`
  2926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking what macOS compiler to use" >&5
  2927. $as_echo_n "checking what macOS compiler to use... " >&6; }
  2928. for _macosx_sdk in $with_macosx_sdk 10.8 10.9 10.10 10.11 10.12 10.13 10.14 10.15 10.16.10.17 10.18 10.19 10.20 11.0 11.1 11.2 11.3 11.4 11.5; do
  2929. MACOSX_SDK_PATH=$(xcrun --sdk macosx${_macosx_sdk} --show-sdk-path 2> /dev/null)
  2930. if test -d "$MACOSX_SDK_PATH"; then
  2931. with_macosx_sdk="${_macosx_sdk}"
  2932. break
  2933. else
  2934. MACOSX_SDK_PATH="$(xcode-select -print-path)/Platforms/MacOSX.platform/Developer/SDKs/MacOSX${_macosx_sdk}.sdk"
  2935. if test -d "$MACOSX_SDK_PATH"; then
  2936. with_macosx_sdk="${_macosx_sdk}"
  2937. break
  2938. fi
  2939. fi
  2940. done
  2941. if test -d "$MACOSX_SDK_PATH"; then
  2942. CC="$(xcrun -find clang) -m64 -isysroot $MACOSX_SDK_PATH"
  2943. INSTALL_NAME_TOOL=$(xcrun -find install_name_tool)
  2944. AR=$(xcrun -find ar)
  2945. NM=$(xcrun -find nm)
  2946. STRIP=$(xcrun -find strip)
  2947. LIBTOOL=$(xcrun -find libtool)
  2948. RANLIB=$(xcrun -find ranlib)
  2949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2950. $as_echo "$CC" >&6; }
  2951. else
  2952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: legacy" >&5
  2953. $as_echo "legacy" >&6; }
  2954. fi
  2955. ;;
  2956. esac
  2957. # Note that the OS X libtool command is unrelated to GNU libtool
  2958. # Check whether --with-pfring-lib was given.
  2959. if test "${with_pfring_lib+set}" = set; then :
  2960. withval=$with_pfring_lib;
  2961. fi
  2962. have_cygwin=no
  2963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin development environment" >&5
  2964. $as_echo_n "checking for cygwin development environment... " >&6; }
  2965. if test $(echo $target | grep -c cygwin) -gt 0 ; then
  2966. $as_echo "#define HAVE_WIN32 1" >>confdefs.h
  2967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2968. $as_echo "yes" >&6; }
  2969. have_cygwin=yes
  2970. else
  2971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2972. $as_echo "no" >&6; }
  2973. fi
  2974. am__api_version='1.14'
  2975. # Find a good install program. We prefer a C program (faster),
  2976. # so one script is as good as another. But avoid the broken or
  2977. # incompatible versions:
  2978. # SysV /etc/install, /usr/sbin/install
  2979. # SunOS /usr/etc/install
  2980. # IRIX /sbin/install
  2981. # AIX /bin/install
  2982. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2983. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2984. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2985. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2986. # OS/2's system install, which has a completely different semantic
  2987. # ./install, which can be erroneously created by make from ./install.sh.
  2988. # Reject install programs that cannot install multiple files.
  2989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2990. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2991. if test -z "$INSTALL"; then
  2992. if ${ac_cv_path_install+:} false; then :
  2993. $as_echo_n "(cached) " >&6
  2994. else
  2995. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2996. for as_dir in $PATH
  2997. do
  2998. IFS=$as_save_IFS
  2999. test -z "$as_dir" && as_dir=.
  3000. # Account for people who put trailing slashes in PATH elements.
  3001. case $as_dir/ in #((
  3002. ./ | .// | /[cC]/* | \
  3003. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3004. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3005. /usr/ucb/* ) ;;
  3006. *)
  3007. # OSF1 and SCO ODT 3.0 have their own names for install.
  3008. # Don't use installbsd from OSF since it installs stuff as root
  3009. # by default.
  3010. for ac_prog in ginstall scoinst install; do
  3011. for ac_exec_ext in '' $ac_executable_extensions; do
  3012. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3013. if test $ac_prog = install &&
  3014. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3015. # AIX install. It has an incompatible calling convention.
  3016. :
  3017. elif test $ac_prog = install &&
  3018. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3019. # program-specific install script used by HP pwplus--don't use.
  3020. :
  3021. else
  3022. rm -rf conftest.one conftest.two conftest.dir
  3023. echo one > conftest.one
  3024. echo two > conftest.two
  3025. mkdir conftest.dir
  3026. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3027. test -s conftest.one && test -s conftest.two &&
  3028. test -s conftest.dir/conftest.one &&
  3029. test -s conftest.dir/conftest.two
  3030. then
  3031. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3032. break 3
  3033. fi
  3034. fi
  3035. fi
  3036. done
  3037. done
  3038. ;;
  3039. esac
  3040. done
  3041. IFS=$as_save_IFS
  3042. rm -rf conftest.one conftest.two conftest.dir
  3043. fi
  3044. if test "${ac_cv_path_install+set}" = set; then
  3045. INSTALL=$ac_cv_path_install
  3046. else
  3047. # As a last resort, use the slow shell script. Don't cache a
  3048. # value for INSTALL within a source directory, because that will
  3049. # break other packages using the cache if that directory is
  3050. # removed, or if the value is a relative name.
  3051. INSTALL=$ac_install_sh
  3052. fi
  3053. fi
  3054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3055. $as_echo "$INSTALL" >&6; }
  3056. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3057. # It thinks the first close brace ends the variable substitution.
  3058. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3059. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3060. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  3062. $as_echo_n "checking whether build environment is sane... " >&6; }
  3063. # Reject unsafe characters in $srcdir or the absolute working directory
  3064. # name. Accept space and tab only in the latter.
  3065. am_lf='
  3066. '
  3067. case `pwd` in
  3068. *[\\\"\#\$\&\'\`$am_lf]*)
  3069. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  3070. esac
  3071. case $srcdir in
  3072. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  3073. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  3074. esac
  3075. # Do 'set' in a subshell so we don't clobber the current shell's
  3076. # arguments. Must try -L first in case configure is actually a
  3077. # symlink; some systems play weird games with the mod time of symlinks
  3078. # (eg FreeBSD returns the mod time of the symlink's containing
  3079. # directory).
  3080. if (
  3081. am_has_slept=no
  3082. for am_try in 1 2; do
  3083. echo "timestamp, slept: $am_has_slept" > conftest.file
  3084. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  3085. if test "$*" = "X"; then
  3086. # -L didn't work.
  3087. set X `ls -t "$srcdir/configure" conftest.file`
  3088. fi
  3089. if test "$*" != "X $srcdir/configure conftest.file" \
  3090. && test "$*" != "X conftest.file $srcdir/configure"; then
  3091. # If neither matched, then we have a broken ls. This can happen
  3092. # if, for instance, CONFIG_SHELL is bash and it inherits a
  3093. # broken ls alias from the environment. This has actually
  3094. # happened. Such a system could not be considered "sane".
  3095. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  3096. alias in your environment" "$LINENO" 5
  3097. fi
  3098. if test "$2" = conftest.file || test $am_try -eq 2; then
  3099. break
  3100. fi
  3101. # Just in case.
  3102. sleep 1
  3103. am_has_slept=yes
  3104. done
  3105. test "$2" = conftest.file
  3106. )
  3107. then
  3108. # Ok.
  3109. :
  3110. else
  3111. as_fn_error $? "newly created file is older than distributed files!
  3112. Check your system clock" "$LINENO" 5
  3113. fi
  3114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3115. $as_echo "yes" >&6; }
  3116. # If we didn't sleep, we still need to ensure time stamps of config.status and
  3117. # generated files are strictly newer.
  3118. am_sleep_pid=
  3119. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  3120. ( sleep 1 ) &
  3121. am_sleep_pid=$!
  3122. fi
  3123. rm -f conftest.file
  3124. test "$program_prefix" != NONE &&
  3125. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  3126. # Use a double $ so make ignores it.
  3127. test "$program_suffix" != NONE &&
  3128. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  3129. # Double any \ or $.
  3130. # By default was `s,x,x', remove it if useless.
  3131. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  3132. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  3133. # Expand $ac_aux_dir to an absolute path.
  3134. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  3135. if test x"${MISSING+set}" != xset; then
  3136. case $am_aux_dir in
  3137. *\ * | *\ *)
  3138. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  3139. *)
  3140. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  3141. esac
  3142. fi
  3143. # Use eval to expand $SHELL
  3144. if eval "$MISSING --is-lightweight"; then
  3145. am_missing_run="$MISSING "
  3146. else
  3147. am_missing_run=
  3148. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  3149. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  3150. fi
  3151. if test x"${install_sh}" != xset; then
  3152. case $am_aux_dir in
  3153. *\ * | *\ *)
  3154. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  3155. *)
  3156. install_sh="\${SHELL} $am_aux_dir/install-sh"
  3157. esac
  3158. fi
  3159. # Installed binaries are usually stripped using 'strip' when the user
  3160. # run "make install-strip". However 'strip' might not be the right
  3161. # tool to use in cross-compilation environments, therefore Automake
  3162. # will honor the 'STRIP' environment variable to overrule this program.
  3163. if test "$cross_compiling" != no; then
  3164. if test -n "$ac_tool_prefix"; then
  3165. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  3166. set dummy ${ac_tool_prefix}strip; ac_word=$2
  3167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3168. $as_echo_n "checking for $ac_word... " >&6; }
  3169. if ${ac_cv_prog_STRIP+:} false; then :
  3170. $as_echo_n "(cached) " >&6
  3171. else
  3172. if test -n "$STRIP"; then
  3173. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3174. else
  3175. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3176. for as_dir in $PATH
  3177. do
  3178. IFS=$as_save_IFS
  3179. test -z "$as_dir" && as_dir=.
  3180. for ac_exec_ext in '' $ac_executable_extensions; do
  3181. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3182. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  3183. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3184. break 2
  3185. fi
  3186. done
  3187. done
  3188. IFS=$as_save_IFS
  3189. fi
  3190. fi
  3191. STRIP=$ac_cv_prog_STRIP
  3192. if test -n "$STRIP"; then
  3193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3194. $as_echo "$STRIP" >&6; }
  3195. else
  3196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3197. $as_echo "no" >&6; }
  3198. fi
  3199. fi
  3200. if test -z "$ac_cv_prog_STRIP"; then
  3201. ac_ct_STRIP=$STRIP
  3202. # Extract the first word of "strip", so it can be a program name with args.
  3203. set dummy strip; ac_word=$2
  3204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3205. $as_echo_n "checking for $ac_word... " >&6; }
  3206. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  3207. $as_echo_n "(cached) " >&6
  3208. else
  3209. if test -n "$ac_ct_STRIP"; then
  3210. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3211. else
  3212. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3213. for as_dir in $PATH
  3214. do
  3215. IFS=$as_save_IFS
  3216. test -z "$as_dir" && as_dir=.
  3217. for ac_exec_ext in '' $ac_executable_extensions; do
  3218. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3219. ac_cv_prog_ac_ct_STRIP="strip"
  3220. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3221. break 2
  3222. fi
  3223. done
  3224. done
  3225. IFS=$as_save_IFS
  3226. fi
  3227. fi
  3228. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  3229. if test -n "$ac_ct_STRIP"; then
  3230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  3231. $as_echo "$ac_ct_STRIP" >&6; }
  3232. else
  3233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3234. $as_echo "no" >&6; }
  3235. fi
  3236. if test "x$ac_ct_STRIP" = x; then
  3237. STRIP=":"
  3238. else
  3239. case $cross_compiling:$ac_tool_warned in
  3240. yes:)
  3241. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3242. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3243. ac_tool_warned=yes ;;
  3244. esac
  3245. STRIP=$ac_ct_STRIP
  3246. fi
  3247. else
  3248. STRIP="$ac_cv_prog_STRIP"
  3249. fi
  3250. fi
  3251. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  3252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  3253. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  3254. if test -z "$MKDIR_P"; then
  3255. if ${ac_cv_path_mkdir+:} false; then :
  3256. $as_echo_n "(cached) " >&6
  3257. else
  3258. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3259. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3260. do
  3261. IFS=$as_save_IFS
  3262. test -z "$as_dir" && as_dir=.
  3263. for ac_prog in mkdir gmkdir; do
  3264. for ac_exec_ext in '' $ac_executable_extensions; do
  3265. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  3266. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3267. 'mkdir (GNU coreutils) '* | \
  3268. 'mkdir (coreutils) '* | \
  3269. 'mkdir (fileutils) '4.1*)
  3270. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3271. break 3;;
  3272. esac
  3273. done
  3274. done
  3275. done
  3276. IFS=$as_save_IFS
  3277. fi
  3278. test -d ./--version && rmdir ./--version
  3279. if test "${ac_cv_path_mkdir+set}" = set; then
  3280. MKDIR_P="$ac_cv_path_mkdir -p"
  3281. else
  3282. # As a last resort, use the slow shell script. Don't cache a
  3283. # value for MKDIR_P within a source directory, because that will
  3284. # break other packages using the cache if that directory is
  3285. # removed, or if the value is a relative name.
  3286. MKDIR_P="$ac_install_sh -d"
  3287. fi
  3288. fi
  3289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3290. $as_echo "$MKDIR_P" >&6; }
  3291. for ac_prog in gawk mawk nawk awk
  3292. do
  3293. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3294. set dummy $ac_prog; ac_word=$2
  3295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3296. $as_echo_n "checking for $ac_word... " >&6; }
  3297. if ${ac_cv_prog_AWK+:} false; then :
  3298. $as_echo_n "(cached) " >&6
  3299. else
  3300. if test -n "$AWK"; then
  3301. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3302. else
  3303. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3304. for as_dir in $PATH
  3305. do
  3306. IFS=$as_save_IFS
  3307. test -z "$as_dir" && as_dir=.
  3308. for ac_exec_ext in '' $ac_executable_extensions; do
  3309. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3310. ac_cv_prog_AWK="$ac_prog"
  3311. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3312. break 2
  3313. fi
  3314. done
  3315. done
  3316. IFS=$as_save_IFS
  3317. fi
  3318. fi
  3319. AWK=$ac_cv_prog_AWK
  3320. if test -n "$AWK"; then
  3321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3322. $as_echo "$AWK" >&6; }
  3323. else
  3324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3325. $as_echo "no" >&6; }
  3326. fi
  3327. test -n "$AWK" && break
  3328. done
  3329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3330. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3331. set x ${MAKE-make}
  3332. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3333. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3334. $as_echo_n "(cached) " >&6
  3335. else
  3336. cat >conftest.make <<\_ACEOF
  3337. SHELL = /bin/sh
  3338. all:
  3339. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3340. _ACEOF
  3341. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3342. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3343. *@@@%%%=?*=@@@%%%*)
  3344. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3345. *)
  3346. eval ac_cv_prog_make_${ac_make}_set=no;;
  3347. esac
  3348. rm -f conftest.make
  3349. fi
  3350. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3352. $as_echo "yes" >&6; }
  3353. SET_MAKE=
  3354. else
  3355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3356. $as_echo "no" >&6; }
  3357. SET_MAKE="MAKE=${MAKE-make}"
  3358. fi
  3359. rm -rf .tst 2>/dev/null
  3360. mkdir .tst 2>/dev/null
  3361. if test -d .tst; then
  3362. am__leading_dot=.
  3363. else
  3364. am__leading_dot=_
  3365. fi
  3366. rmdir .tst 2>/dev/null
  3367. # Check whether --enable-silent-rules was given.
  3368. if test "${enable_silent_rules+set}" = set; then :
  3369. enableval=$enable_silent_rules;
  3370. fi
  3371. case $enable_silent_rules in # (((
  3372. yes) AM_DEFAULT_VERBOSITY=0;;
  3373. no) AM_DEFAULT_VERBOSITY=1;;
  3374. *) AM_DEFAULT_VERBOSITY=1;;
  3375. esac
  3376. am_make=${MAKE-make}
  3377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3378. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3379. if ${am_cv_make_support_nested_variables+:} false; then :
  3380. $as_echo_n "(cached) " >&6
  3381. else
  3382. if $as_echo 'TRUE=$(BAR$(V))
  3383. BAR0=false
  3384. BAR1=true
  3385. V=1
  3386. am__doit:
  3387. @$(TRUE)
  3388. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3389. am_cv_make_support_nested_variables=yes
  3390. else
  3391. am_cv_make_support_nested_variables=no
  3392. fi
  3393. fi
  3394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3395. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3396. if test $am_cv_make_support_nested_variables = yes; then
  3397. AM_V='$(V)'
  3398. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3399. else
  3400. AM_V=$AM_DEFAULT_VERBOSITY
  3401. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3402. fi
  3403. AM_BACKSLASH='\'
  3404. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3405. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3406. # is not polluted with repeated "-I."
  3407. am__isrc=' -I$(srcdir)'
  3408. # test to see if srcdir already configured
  3409. if test -f $srcdir/config.status; then
  3410. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3411. fi
  3412. fi
  3413. # test whether we have cygpath
  3414. if test -z "$CYGPATH_W"; then
  3415. if (cygpath --version) >/dev/null 2>/dev/null; then
  3416. CYGPATH_W='cygpath -w'
  3417. else
  3418. CYGPATH_W=echo
  3419. fi
  3420. fi
  3421. # Define the identity of the package.
  3422. PACKAGE='tcpreplay'
  3423. VERSION='4.2.4'
  3424. cat >>confdefs.h <<_ACEOF
  3425. #define PACKAGE "$PACKAGE"
  3426. _ACEOF
  3427. cat >>confdefs.h <<_ACEOF
  3428. #define VERSION "$VERSION"
  3429. _ACEOF
  3430. # Some tools Automake needs.
  3431. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3432. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3433. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3434. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3435. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3436. # For better backward compatibility. To be removed once Automake 1.9.x
  3437. # dies out for good. For more background, see:
  3438. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3439. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3440. mkdir_p='$(MKDIR_P)'
  3441. # We need awk for the "check" target. The system "awk" is bad on
  3442. # some platforms.
  3443. # Always define AMTAR for backward compatibility. Yes, it's still used
  3444. # in the wild :-( We should find a proper way to deprecate it ...
  3445. AMTAR='$${TAR-tar}'
  3446. # We'll loop over all known methods to create a tar archive until one works.
  3447. _am_tools='gnutar pax cpio none'
  3448. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  3449. # POSIX will say in a future version that running "rm -f" with no argument
  3450. # is OK; and we want to be able to make that assumption in our Makefile
  3451. # recipes. So use an aggressive probe to check that the usage we want is
  3452. # actually supported "in the wild" to an acceptable degree.
  3453. # See automake bug#10828.
  3454. # To make any issue more visible, cause the running configure to be aborted
  3455. # by default if the 'rm' program in use doesn't match our expectations; the
  3456. # user can still override this though.
  3457. if rm -f && rm -fr && rm -rf; then : OK; else
  3458. cat >&2 <<'END'
  3459. Oops!
  3460. Your 'rm' program seems unable to run without file operands specified
  3461. on the command line, even when the '-f' option is present. This is contrary
  3462. to the behaviour of most rm programs out there, and not conforming with
  3463. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  3464. Please tell bug-automake@gnu.org about your system, including the value
  3465. of your $PATH and any error possibly output before this message. This
  3466. can help us improve future automake versions.
  3467. END
  3468. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  3469. echo 'Configuration will proceed anyway, since you have set the' >&2
  3470. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3471. echo >&2
  3472. else
  3473. cat >&2 <<'END'
  3474. Aborting the configuration process, to ensure you take notice of the issue.
  3475. You can download and install GNU coreutils to get an 'rm' implementation
  3476. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  3477. If you want to complete the configuration process using your problematic
  3478. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3479. to "yes", and re-run configure.
  3480. END
  3481. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3482. fi
  3483. fi
  3484. # Check whether --enable-silent-rules was given.
  3485. if test "${enable_silent_rules+set}" = set; then :
  3486. enableval=$enable_silent_rules;
  3487. fi
  3488. case $enable_silent_rules in # (((
  3489. yes) AM_DEFAULT_VERBOSITY=0;;
  3490. no) AM_DEFAULT_VERBOSITY=1;;
  3491. *) AM_DEFAULT_VERBOSITY=0;;
  3492. esac
  3493. am_make=${MAKE-make}
  3494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3495. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3496. if ${am_cv_make_support_nested_variables+:} false; then :
  3497. $as_echo_n "(cached) " >&6
  3498. else
  3499. if $as_echo 'TRUE=$(BAR$(V))
  3500. BAR0=false
  3501. BAR1=true
  3502. V=1
  3503. am__doit:
  3504. @$(TRUE)
  3505. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3506. am_cv_make_support_nested_variables=yes
  3507. else
  3508. am_cv_make_support_nested_variables=no
  3509. fi
  3510. fi
  3511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3512. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3513. if test $am_cv_make_support_nested_variables = yes; then
  3514. AM_V='$(V)'
  3515. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3516. else
  3517. AM_V=$AM_DEFAULT_VERBOSITY
  3518. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3519. fi
  3520. AM_BACKSLASH='\'
  3521. case `pwd` in
  3522. *\ * | *\ *)
  3523. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3524. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3525. esac
  3526. macro_version='2.4.2'
  3527. macro_revision='1.3337'
  3528. ltmain="$ac_aux_dir/ltmain.sh"
  3529. # Backslashify metacharacters that are still active within
  3530. # double-quoted strings.
  3531. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3532. # Same as above, but do not quote variable references.
  3533. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3534. # Sed substitution to delay expansion of an escaped shell variable in a
  3535. # double_quote_subst'ed string.
  3536. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3537. # Sed substitution to delay expansion of an escaped single quote.
  3538. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3539. # Sed substitution to avoid accidental globbing in evaled expressions
  3540. no_glob_subst='s/\*/\\\*/g'
  3541. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3542. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3543. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3545. $as_echo_n "checking how to print strings... " >&6; }
  3546. # Test print first, because it will be a builtin if present.
  3547. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3548. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3549. ECHO='print -r --'
  3550. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3551. ECHO='printf %s\n'
  3552. else
  3553. # Use this function as a fallback that always works.
  3554. func_fallback_echo ()
  3555. {
  3556. eval 'cat <<_LTECHO_EOF
  3557. $1
  3558. _LTECHO_EOF'
  3559. }
  3560. ECHO='func_fallback_echo'
  3561. fi
  3562. # func_echo_all arg...
  3563. # Invoke $ECHO with all args, space-separated.
  3564. func_echo_all ()
  3565. {
  3566. $ECHO ""
  3567. }
  3568. case "$ECHO" in
  3569. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3570. $as_echo "printf" >&6; } ;;
  3571. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3572. $as_echo "print -r" >&6; } ;;
  3573. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3574. $as_echo "cat" >&6; } ;;
  3575. esac
  3576. DEPDIR="${am__leading_dot}deps"
  3577. ac_config_commands="$ac_config_commands depfiles"
  3578. am_make=${MAKE-make}
  3579. cat > confinc << 'END'
  3580. am__doit:
  3581. @echo this is the am__doit target
  3582. .PHONY: am__doit
  3583. END
  3584. # If we don't find an include directive, just comment out the code.
  3585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3586. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3587. am__include="#"
  3588. am__quote=
  3589. _am_result=none
  3590. # First try GNU make style include.
  3591. echo "include confinc" > confmf
  3592. # Ignore all kinds of additional output from 'make'.
  3593. case `$am_make -s -f confmf 2> /dev/null` in #(
  3594. *the\ am__doit\ target*)
  3595. am__include=include
  3596. am__quote=
  3597. _am_result=GNU
  3598. ;;
  3599. esac
  3600. # Now try BSD make style include.
  3601. if test "$am__include" = "#"; then
  3602. echo '.include "confinc"' > confmf
  3603. case `$am_make -s -f confmf 2> /dev/null` in #(
  3604. *the\ am__doit\ target*)
  3605. am__include=.include
  3606. am__quote="\""
  3607. _am_result=BSD
  3608. ;;
  3609. esac
  3610. fi
  3611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3612. $as_echo "$_am_result" >&6; }
  3613. rm -f confinc confmf
  3614. # Check whether --enable-dependency-tracking was given.
  3615. if test "${enable_dependency_tracking+set}" = set; then :
  3616. enableval=$enable_dependency_tracking;
  3617. fi
  3618. if test "x$enable_dependency_tracking" != xno; then
  3619. am_depcomp="$ac_aux_dir/depcomp"
  3620. AMDEPBACKSLASH='\'
  3621. am__nodep='_no'
  3622. fi
  3623. if test "x$enable_dependency_tracking" != xno; then
  3624. AMDEP_TRUE=
  3625. AMDEP_FALSE='#'
  3626. else
  3627. AMDEP_TRUE='#'
  3628. AMDEP_FALSE=
  3629. fi
  3630. ac_ext=c
  3631. ac_cpp='$CPP $CPPFLAGS'
  3632. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3633. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3634. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3635. if test -n "$ac_tool_prefix"; then
  3636. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3637. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3639. $as_echo_n "checking for $ac_word... " >&6; }
  3640. if ${ac_cv_prog_CC+:} false; then :
  3641. $as_echo_n "(cached) " >&6
  3642. else
  3643. if test -n "$CC"; then
  3644. ac_cv_prog_CC="$CC" # Let the user override the test.
  3645. else
  3646. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3647. for as_dir in $PATH
  3648. do
  3649. IFS=$as_save_IFS
  3650. test -z "$as_dir" && as_dir=.
  3651. for ac_exec_ext in '' $ac_executable_extensions; do
  3652. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3653. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3654. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3655. break 2
  3656. fi
  3657. done
  3658. done
  3659. IFS=$as_save_IFS
  3660. fi
  3661. fi
  3662. CC=$ac_cv_prog_CC
  3663. if test -n "$CC"; then
  3664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3665. $as_echo "$CC" >&6; }
  3666. else
  3667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3668. $as_echo "no" >&6; }
  3669. fi
  3670. fi
  3671. if test -z "$ac_cv_prog_CC"; then
  3672. ac_ct_CC=$CC
  3673. # Extract the first word of "gcc", so it can be a program name with args.
  3674. set dummy gcc; ac_word=$2
  3675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3676. $as_echo_n "checking for $ac_word... " >&6; }
  3677. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3678. $as_echo_n "(cached) " >&6
  3679. else
  3680. if test -n "$ac_ct_CC"; then
  3681. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3682. else
  3683. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3684. for as_dir in $PATH
  3685. do
  3686. IFS=$as_save_IFS
  3687. test -z "$as_dir" && as_dir=.
  3688. for ac_exec_ext in '' $ac_executable_extensions; do
  3689. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3690. ac_cv_prog_ac_ct_CC="gcc"
  3691. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3692. break 2
  3693. fi
  3694. done
  3695. done
  3696. IFS=$as_save_IFS
  3697. fi
  3698. fi
  3699. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3700. if test -n "$ac_ct_CC"; then
  3701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3702. $as_echo "$ac_ct_CC" >&6; }
  3703. else
  3704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3705. $as_echo "no" >&6; }
  3706. fi
  3707. if test "x$ac_ct_CC" = x; then
  3708. CC=""
  3709. else
  3710. case $cross_compiling:$ac_tool_warned in
  3711. yes:)
  3712. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3713. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3714. ac_tool_warned=yes ;;
  3715. esac
  3716. CC=$ac_ct_CC
  3717. fi
  3718. else
  3719. CC="$ac_cv_prog_CC"
  3720. fi
  3721. if test -z "$CC"; then
  3722. if test -n "$ac_tool_prefix"; then
  3723. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3724. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3726. $as_echo_n "checking for $ac_word... " >&6; }
  3727. if ${ac_cv_prog_CC+:} false; then :
  3728. $as_echo_n "(cached) " >&6
  3729. else
  3730. if test -n "$CC"; then
  3731. ac_cv_prog_CC="$CC" # Let the user override the test.
  3732. else
  3733. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3734. for as_dir in $PATH
  3735. do
  3736. IFS=$as_save_IFS
  3737. test -z "$as_dir" && as_dir=.
  3738. for ac_exec_ext in '' $ac_executable_extensions; do
  3739. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3740. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3741. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3742. break 2
  3743. fi
  3744. done
  3745. done
  3746. IFS=$as_save_IFS
  3747. fi
  3748. fi
  3749. CC=$ac_cv_prog_CC
  3750. if test -n "$CC"; then
  3751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3752. $as_echo "$CC" >&6; }
  3753. else
  3754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3755. $as_echo "no" >&6; }
  3756. fi
  3757. fi
  3758. fi
  3759. if test -z "$CC"; then
  3760. # Extract the first word of "cc", so it can be a program name with args.
  3761. set dummy cc; ac_word=$2
  3762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3763. $as_echo_n "checking for $ac_word... " >&6; }
  3764. if ${ac_cv_prog_CC+:} false; then :
  3765. $as_echo_n "(cached) " >&6
  3766. else
  3767. if test -n "$CC"; then
  3768. ac_cv_prog_CC="$CC" # Let the user override the test.
  3769. else
  3770. ac_prog_rejected=no
  3771. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3772. for as_dir in $PATH
  3773. do
  3774. IFS=$as_save_IFS
  3775. test -z "$as_dir" && as_dir=.
  3776. for ac_exec_ext in '' $ac_executable_extensions; do
  3777. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3778. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3779. ac_prog_rejected=yes
  3780. continue
  3781. fi
  3782. ac_cv_prog_CC="cc"
  3783. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3784. break 2
  3785. fi
  3786. done
  3787. done
  3788. IFS=$as_save_IFS
  3789. if test $ac_prog_rejected = yes; then
  3790. # We found a bogon in the path, so make sure we never use it.
  3791. set dummy $ac_cv_prog_CC
  3792. shift
  3793. if test $# != 0; then
  3794. # We chose a different compiler from the bogus one.
  3795. # However, it has the same basename, so the bogon will be chosen
  3796. # first if we set CC to just the basename; use the full file name.
  3797. shift
  3798. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3799. fi
  3800. fi
  3801. fi
  3802. fi
  3803. CC=$ac_cv_prog_CC
  3804. if test -n "$CC"; then
  3805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3806. $as_echo "$CC" >&6; }
  3807. else
  3808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3809. $as_echo "no" >&6; }
  3810. fi
  3811. fi
  3812. if test -z "$CC"; then
  3813. if test -n "$ac_tool_prefix"; then
  3814. for ac_prog in cl.exe
  3815. do
  3816. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3817. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3819. $as_echo_n "checking for $ac_word... " >&6; }
  3820. if ${ac_cv_prog_CC+:} false; then :
  3821. $as_echo_n "(cached) " >&6
  3822. else
  3823. if test -n "$CC"; then
  3824. ac_cv_prog_CC="$CC" # Let the user override the test.
  3825. else
  3826. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3827. for as_dir in $PATH
  3828. do
  3829. IFS=$as_save_IFS
  3830. test -z "$as_dir" && as_dir=.
  3831. for ac_exec_ext in '' $ac_executable_extensions; do
  3832. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3833. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3834. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3835. break 2
  3836. fi
  3837. done
  3838. done
  3839. IFS=$as_save_IFS
  3840. fi
  3841. fi
  3842. CC=$ac_cv_prog_CC
  3843. if test -n "$CC"; then
  3844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3845. $as_echo "$CC" >&6; }
  3846. else
  3847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3848. $as_echo "no" >&6; }
  3849. fi
  3850. test -n "$CC" && break
  3851. done
  3852. fi
  3853. if test -z "$CC"; then
  3854. ac_ct_CC=$CC
  3855. for ac_prog in cl.exe
  3856. do
  3857. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3858. set dummy $ac_prog; ac_word=$2
  3859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3860. $as_echo_n "checking for $ac_word... " >&6; }
  3861. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3862. $as_echo_n "(cached) " >&6
  3863. else
  3864. if test -n "$ac_ct_CC"; then
  3865. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3866. else
  3867. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3868. for as_dir in $PATH
  3869. do
  3870. IFS=$as_save_IFS
  3871. test -z "$as_dir" && as_dir=.
  3872. for ac_exec_ext in '' $ac_executable_extensions; do
  3873. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3874. ac_cv_prog_ac_ct_CC="$ac_prog"
  3875. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3876. break 2
  3877. fi
  3878. done
  3879. done
  3880. IFS=$as_save_IFS
  3881. fi
  3882. fi
  3883. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3884. if test -n "$ac_ct_CC"; then
  3885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3886. $as_echo "$ac_ct_CC" >&6; }
  3887. else
  3888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3889. $as_echo "no" >&6; }
  3890. fi
  3891. test -n "$ac_ct_CC" && break
  3892. done
  3893. if test "x$ac_ct_CC" = x; then
  3894. CC=""
  3895. else
  3896. case $cross_compiling:$ac_tool_warned in
  3897. yes:)
  3898. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3899. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3900. ac_tool_warned=yes ;;
  3901. esac
  3902. CC=$ac_ct_CC
  3903. fi
  3904. fi
  3905. fi
  3906. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3907. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3908. as_fn_error $? "no acceptable C compiler found in \$PATH
  3909. See \`config.log' for more details" "$LINENO" 5; }
  3910. # Provide some information about the compiler.
  3911. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3912. set X $ac_compile
  3913. ac_compiler=$2
  3914. for ac_option in --version -v -V -qversion; do
  3915. { { ac_try="$ac_compiler $ac_option >&5"
  3916. case "(($ac_try" in
  3917. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3918. *) ac_try_echo=$ac_try;;
  3919. esac
  3920. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3921. $as_echo "$ac_try_echo"; } >&5
  3922. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3923. ac_status=$?
  3924. if test -s conftest.err; then
  3925. sed '10a\
  3926. ... rest of stderr output deleted ...
  3927. 10q' conftest.err >conftest.er1
  3928. cat conftest.er1 >&5
  3929. fi
  3930. rm -f conftest.er1 conftest.err
  3931. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3932. test $ac_status = 0; }
  3933. done
  3934. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3935. /* end confdefs.h. */
  3936. int
  3937. main ()
  3938. {
  3939. ;
  3940. return 0;
  3941. }
  3942. _ACEOF
  3943. ac_clean_files_save=$ac_clean_files
  3944. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3945. # Try to create an executable without -o first, disregard a.out.
  3946. # It will help us diagnose broken compilers, and finding out an intuition
  3947. # of exeext.
  3948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3949. $as_echo_n "checking whether the C compiler works... " >&6; }
  3950. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3951. # The possible output files:
  3952. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3953. ac_rmfiles=
  3954. for ac_file in $ac_files
  3955. do
  3956. case $ac_file in
  3957. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3958. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3959. esac
  3960. done
  3961. rm -f $ac_rmfiles
  3962. if { { ac_try="$ac_link_default"
  3963. case "(($ac_try" in
  3964. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3965. *) ac_try_echo=$ac_try;;
  3966. esac
  3967. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3968. $as_echo "$ac_try_echo"; } >&5
  3969. (eval "$ac_link_default") 2>&5
  3970. ac_status=$?
  3971. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3972. test $ac_status = 0; }; then :
  3973. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3974. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3975. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3976. # so that the user can short-circuit this test for compilers unknown to
  3977. # Autoconf.
  3978. for ac_file in $ac_files ''
  3979. do
  3980. test -f "$ac_file" || continue
  3981. case $ac_file in
  3982. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3983. ;;
  3984. [ab].out )
  3985. # We found the default executable, but exeext='' is most
  3986. # certainly right.
  3987. break;;
  3988. *.* )
  3989. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3990. then :; else
  3991. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3992. fi
  3993. # We set ac_cv_exeext here because the later test for it is not
  3994. # safe: cross compilers may not add the suffix if given an `-o'
  3995. # argument, so we may need to know it at that point already.
  3996. # Even if this section looks crufty: it has the advantage of
  3997. # actually working.
  3998. break;;
  3999. * )
  4000. break;;
  4001. esac
  4002. done
  4003. test "$ac_cv_exeext" = no && ac_cv_exeext=
  4004. else
  4005. ac_file=''
  4006. fi
  4007. if test -z "$ac_file"; then :
  4008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4009. $as_echo "no" >&6; }
  4010. $as_echo "$as_me: failed program was:" >&5
  4011. sed 's/^/| /' conftest.$ac_ext >&5
  4012. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4013. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4014. as_fn_error 77 "C compiler cannot create executables
  4015. See \`config.log' for more details" "$LINENO" 5; }
  4016. else
  4017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4018. $as_echo "yes" >&6; }
  4019. fi
  4020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  4021. $as_echo_n "checking for C compiler default output file name... " >&6; }
  4022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  4023. $as_echo "$ac_file" >&6; }
  4024. ac_exeext=$ac_cv_exeext
  4025. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  4026. ac_clean_files=$ac_clean_files_save
  4027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  4028. $as_echo_n "checking for suffix of executables... " >&6; }
  4029. if { { ac_try="$ac_link"
  4030. case "(($ac_try" in
  4031. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4032. *) ac_try_echo=$ac_try;;
  4033. esac
  4034. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4035. $as_echo "$ac_try_echo"; } >&5
  4036. (eval "$ac_link") 2>&5
  4037. ac_status=$?
  4038. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4039. test $ac_status = 0; }; then :
  4040. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  4041. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  4042. # work properly (i.e., refer to `conftest.exe'), while it won't with
  4043. # `rm'.
  4044. for ac_file in conftest.exe conftest conftest.*; do
  4045. test -f "$ac_file" || continue
  4046. case $ac_file in
  4047. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4048. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4049. break;;
  4050. * ) break;;
  4051. esac
  4052. done
  4053. else
  4054. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4055. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4056. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  4057. See \`config.log' for more details" "$LINENO" 5; }
  4058. fi
  4059. rm -f conftest conftest$ac_cv_exeext
  4060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  4061. $as_echo "$ac_cv_exeext" >&6; }
  4062. rm -f conftest.$ac_ext
  4063. EXEEXT=$ac_cv_exeext
  4064. ac_exeext=$EXEEXT
  4065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4066. /* end confdefs.h. */
  4067. #include <stdio.h>
  4068. int
  4069. main ()
  4070. {
  4071. FILE *f = fopen ("conftest.out", "w");
  4072. return ferror (f) || fclose (f) != 0;
  4073. ;
  4074. return 0;
  4075. }
  4076. _ACEOF
  4077. ac_clean_files="$ac_clean_files conftest.out"
  4078. # Check that the compiler produces executables we can run. If not, either
  4079. # the compiler is broken, or we cross compile.
  4080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  4081. $as_echo_n "checking whether we are cross compiling... " >&6; }
  4082. if test "$cross_compiling" != yes; then
  4083. { { ac_try="$ac_link"
  4084. case "(($ac_try" in
  4085. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4086. *) ac_try_echo=$ac_try;;
  4087. esac
  4088. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4089. $as_echo "$ac_try_echo"; } >&5
  4090. (eval "$ac_link") 2>&5
  4091. ac_status=$?
  4092. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4093. test $ac_status = 0; }
  4094. if { ac_try='./conftest$ac_cv_exeext'
  4095. { { case "(($ac_try" in
  4096. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4097. *) ac_try_echo=$ac_try;;
  4098. esac
  4099. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4100. $as_echo "$ac_try_echo"; } >&5
  4101. (eval "$ac_try") 2>&5
  4102. ac_status=$?
  4103. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4104. test $ac_status = 0; }; }; then
  4105. cross_compiling=no
  4106. else
  4107. if test "$cross_compiling" = maybe; then
  4108. cross_compiling=yes
  4109. else
  4110. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4111. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4112. as_fn_error $? "cannot run C compiled programs.
  4113. If you meant to cross compile, use \`--host'.
  4114. See \`config.log' for more details" "$LINENO" 5; }
  4115. fi
  4116. fi
  4117. fi
  4118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  4119. $as_echo "$cross_compiling" >&6; }
  4120. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  4121. ac_clean_files=$ac_clean_files_save
  4122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  4123. $as_echo_n "checking for suffix of object files... " >&6; }
  4124. if ${ac_cv_objext+:} false; then :
  4125. $as_echo_n "(cached) " >&6
  4126. else
  4127. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4128. /* end confdefs.h. */
  4129. int
  4130. main ()
  4131. {
  4132. ;
  4133. return 0;
  4134. }
  4135. _ACEOF
  4136. rm -f conftest.o conftest.obj
  4137. if { { ac_try="$ac_compile"
  4138. case "(($ac_try" in
  4139. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4140. *) ac_try_echo=$ac_try;;
  4141. esac
  4142. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4143. $as_echo "$ac_try_echo"; } >&5
  4144. (eval "$ac_compile") 2>&5
  4145. ac_status=$?
  4146. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4147. test $ac_status = 0; }; then :
  4148. for ac_file in conftest.o conftest.obj conftest.*; do
  4149. test -f "$ac_file" || continue;
  4150. case $ac_file in
  4151. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  4152. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  4153. break;;
  4154. esac
  4155. done
  4156. else
  4157. $as_echo "$as_me: failed program was:" >&5
  4158. sed 's/^/| /' conftest.$ac_ext >&5
  4159. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4160. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4161. as_fn_error $? "cannot compute suffix of object files: cannot compile
  4162. See \`config.log' for more details" "$LINENO" 5; }
  4163. fi
  4164. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  4165. fi
  4166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  4167. $as_echo "$ac_cv_objext" >&6; }
  4168. OBJEXT=$ac_cv_objext
  4169. ac_objext=$OBJEXT
  4170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4171. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4172. if ${ac_cv_c_compiler_gnu+:} false; then :
  4173. $as_echo_n "(cached) " >&6
  4174. else
  4175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4176. /* end confdefs.h. */
  4177. int
  4178. main ()
  4179. {
  4180. #ifndef __GNUC__
  4181. choke me
  4182. #endif
  4183. ;
  4184. return 0;
  4185. }
  4186. _ACEOF
  4187. if ac_fn_c_try_compile "$LINENO"; then :
  4188. ac_compiler_gnu=yes
  4189. else
  4190. ac_compiler_gnu=no
  4191. fi
  4192. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4193. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4194. fi
  4195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4196. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4197. if test $ac_compiler_gnu = yes; then
  4198. GCC=yes
  4199. else
  4200. GCC=
  4201. fi
  4202. ac_test_CFLAGS=${CFLAGS+set}
  4203. ac_save_CFLAGS=$CFLAGS
  4204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4205. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4206. if ${ac_cv_prog_cc_g+:} false; then :
  4207. $as_echo_n "(cached) " >&6
  4208. else
  4209. ac_save_c_werror_flag=$ac_c_werror_flag
  4210. ac_c_werror_flag=yes
  4211. ac_cv_prog_cc_g=no
  4212. CFLAGS="-g"
  4213. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4214. /* end confdefs.h. */
  4215. int
  4216. main ()
  4217. {
  4218. ;
  4219. return 0;
  4220. }
  4221. _ACEOF
  4222. if ac_fn_c_try_compile "$LINENO"; then :
  4223. ac_cv_prog_cc_g=yes
  4224. else
  4225. CFLAGS=""
  4226. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4227. /* end confdefs.h. */
  4228. int
  4229. main ()
  4230. {
  4231. ;
  4232. return 0;
  4233. }
  4234. _ACEOF
  4235. if ac_fn_c_try_compile "$LINENO"; then :
  4236. else
  4237. ac_c_werror_flag=$ac_save_c_werror_flag
  4238. CFLAGS="-g"
  4239. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4240. /* end confdefs.h. */
  4241. int
  4242. main ()
  4243. {
  4244. ;
  4245. return 0;
  4246. }
  4247. _ACEOF
  4248. if ac_fn_c_try_compile "$LINENO"; then :
  4249. ac_cv_prog_cc_g=yes
  4250. fi
  4251. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4252. fi
  4253. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4254. fi
  4255. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4256. ac_c_werror_flag=$ac_save_c_werror_flag
  4257. fi
  4258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4259. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4260. if test "$ac_test_CFLAGS" = set; then
  4261. CFLAGS=$ac_save_CFLAGS
  4262. elif test $ac_cv_prog_cc_g = yes; then
  4263. if test "$GCC" = yes; then
  4264. CFLAGS="-g -O2"
  4265. else
  4266. CFLAGS="-g"
  4267. fi
  4268. else
  4269. if test "$GCC" = yes; then
  4270. CFLAGS="-O2"
  4271. else
  4272. CFLAGS=
  4273. fi
  4274. fi
  4275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4276. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4277. if ${ac_cv_prog_cc_c89+:} false; then :
  4278. $as_echo_n "(cached) " >&6
  4279. else
  4280. ac_cv_prog_cc_c89=no
  4281. ac_save_CC=$CC
  4282. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4283. /* end confdefs.h. */
  4284. #include <stdarg.h>
  4285. #include <stdio.h>
  4286. struct stat;
  4287. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4288. struct buf { int x; };
  4289. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4290. static char *e (p, i)
  4291. char **p;
  4292. int i;
  4293. {
  4294. return p[i];
  4295. }
  4296. static char *f (char * (*g) (char **, int), char **p, ...)
  4297. {
  4298. char *s;
  4299. va_list v;
  4300. va_start (v,p);
  4301. s = g (p, va_arg (v,int));
  4302. va_end (v);
  4303. return s;
  4304. }
  4305. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4306. function prototypes and stuff, but not '\xHH' hex character constants.
  4307. These don't provoke an error unfortunately, instead are silently treated
  4308. as 'x'. The following induces an error, until -std is added to get
  4309. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4310. array size at least. It's necessary to write '\x00'==0 to get something
  4311. that's true only with -std. */
  4312. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4313. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4314. inside strings and character constants. */
  4315. #define FOO(x) 'x'
  4316. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4317. int test (int i, double x);
  4318. struct s1 {int (*f) (int a);};
  4319. struct s2 {int (*f) (double a);};
  4320. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4321. int argc;
  4322. char **argv;
  4323. int
  4324. main ()
  4325. {
  4326. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4327. ;
  4328. return 0;
  4329. }
  4330. _ACEOF
  4331. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4332. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4333. do
  4334. CC="$ac_save_CC $ac_arg"
  4335. if ac_fn_c_try_compile "$LINENO"; then :
  4336. ac_cv_prog_cc_c89=$ac_arg
  4337. fi
  4338. rm -f core conftest.err conftest.$ac_objext
  4339. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4340. done
  4341. rm -f conftest.$ac_ext
  4342. CC=$ac_save_CC
  4343. fi
  4344. # AC_CACHE_VAL
  4345. case "x$ac_cv_prog_cc_c89" in
  4346. x)
  4347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4348. $as_echo "none needed" >&6; } ;;
  4349. xno)
  4350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4351. $as_echo "unsupported" >&6; } ;;
  4352. *)
  4353. CC="$CC $ac_cv_prog_cc_c89"
  4354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4355. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4356. esac
  4357. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4358. fi
  4359. ac_ext=c
  4360. ac_cpp='$CPP $CPPFLAGS'
  4361. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4362. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4363. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4364. ac_ext=c
  4365. ac_cpp='$CPP $CPPFLAGS'
  4366. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4367. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4368. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4370. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  4371. if ${am_cv_prog_cc_c_o+:} false; then :
  4372. $as_echo_n "(cached) " >&6
  4373. else
  4374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4375. /* end confdefs.h. */
  4376. int
  4377. main ()
  4378. {
  4379. ;
  4380. return 0;
  4381. }
  4382. _ACEOF
  4383. # Make sure it works both with $CC and with simple cc.
  4384. # Following AC_PROG_CC_C_O, we do the test twice because some
  4385. # compilers refuse to overwrite an existing .o file with -o,
  4386. # though they will create one.
  4387. am_cv_prog_cc_c_o=yes
  4388. for am_i in 1 2; do
  4389. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4390. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4391. ac_status=$?
  4392. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4393. (exit $ac_status); } \
  4394. && test -f conftest2.$ac_objext; then
  4395. : OK
  4396. else
  4397. am_cv_prog_cc_c_o=no
  4398. break
  4399. fi
  4400. done
  4401. rm -f core conftest*
  4402. unset am_i
  4403. fi
  4404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4405. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  4406. if test "$am_cv_prog_cc_c_o" != yes; then
  4407. # Losing compiler, so override with the script.
  4408. # FIXME: It is wrong to rewrite CC.
  4409. # But if we don't then we get into trouble of one sort or another.
  4410. # A longer-term fix would be to have automake use am__CC in this case,
  4411. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4412. CC="$am_aux_dir/compile $CC"
  4413. fi
  4414. ac_ext=c
  4415. ac_cpp='$CPP $CPPFLAGS'
  4416. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4417. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4418. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4419. depcc="$CC" am_compiler_list=
  4420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4421. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4422. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4423. $as_echo_n "(cached) " >&6
  4424. else
  4425. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4426. # We make a subdir and do the tests there. Otherwise we can end up
  4427. # making bogus files that we don't know about and never remove. For
  4428. # instance it was reported that on HP-UX the gcc test will end up
  4429. # making a dummy file named 'D' -- because '-MD' means "put the output
  4430. # in D".
  4431. rm -rf conftest.dir
  4432. mkdir conftest.dir
  4433. # Copy depcomp to subdir because otherwise we won't find it if we're
  4434. # using a relative directory.
  4435. cp "$am_depcomp" conftest.dir
  4436. cd conftest.dir
  4437. # We will build objects and dependencies in a subdirectory because
  4438. # it helps to detect inapplicable dependency modes. For instance
  4439. # both Tru64's cc and ICC support -MD to output dependencies as a
  4440. # side effect of compilation, but ICC will put the dependencies in
  4441. # the current directory while Tru64 will put them in the object
  4442. # directory.
  4443. mkdir sub
  4444. am_cv_CC_dependencies_compiler_type=none
  4445. if test "$am_compiler_list" = ""; then
  4446. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4447. fi
  4448. am__universal=false
  4449. case " $depcc " in #(
  4450. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4451. esac
  4452. for depmode in $am_compiler_list; do
  4453. # Setup a source with many dependencies, because some compilers
  4454. # like to wrap large dependency lists on column 80 (with \), and
  4455. # we should not choose a depcomp mode which is confused by this.
  4456. #
  4457. # We need to recreate these files for each test, as the compiler may
  4458. # overwrite some of them when testing with obscure command lines.
  4459. # This happens at least with the AIX C compiler.
  4460. : > sub/conftest.c
  4461. for i in 1 2 3 4 5 6; do
  4462. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4463. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4464. # Solaris 10 /bin/sh.
  4465. echo '/* dummy */' > sub/conftst$i.h
  4466. done
  4467. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4468. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4469. # mode. It turns out that the SunPro C++ compiler does not properly
  4470. # handle '-M -o', and we need to detect this. Also, some Intel
  4471. # versions had trouble with output in subdirs.
  4472. am__obj=sub/conftest.${OBJEXT-o}
  4473. am__minus_obj="-o $am__obj"
  4474. case $depmode in
  4475. gcc)
  4476. # This depmode causes a compiler race in universal mode.
  4477. test "$am__universal" = false || continue
  4478. ;;
  4479. nosideeffect)
  4480. # After this tag, mechanisms are not by side-effect, so they'll
  4481. # only be used when explicitly requested.
  4482. if test "x$enable_dependency_tracking" = xyes; then
  4483. continue
  4484. else
  4485. break
  4486. fi
  4487. ;;
  4488. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4489. # This compiler won't grok '-c -o', but also, the minuso test has
  4490. # not run yet. These depmodes are late enough in the game, and
  4491. # so weak that their functioning should not be impacted.
  4492. am__obj=conftest.${OBJEXT-o}
  4493. am__minus_obj=
  4494. ;;
  4495. none) break ;;
  4496. esac
  4497. if depmode=$depmode \
  4498. source=sub/conftest.c object=$am__obj \
  4499. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4500. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4501. >/dev/null 2>conftest.err &&
  4502. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4503. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4504. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4505. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4506. # icc doesn't choke on unknown options, it will just issue warnings
  4507. # or remarks (even with -Werror). So we grep stderr for any message
  4508. # that says an option was ignored or not supported.
  4509. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4510. # icc: Command line warning: ignoring option '-M'; no argument required
  4511. # The diagnosis changed in icc 8.0:
  4512. # icc: Command line remark: option '-MP' not supported
  4513. if (grep 'ignoring option' conftest.err ||
  4514. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4515. am_cv_CC_dependencies_compiler_type=$depmode
  4516. break
  4517. fi
  4518. fi
  4519. done
  4520. cd ..
  4521. rm -rf conftest.dir
  4522. else
  4523. am_cv_CC_dependencies_compiler_type=none
  4524. fi
  4525. fi
  4526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4527. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4528. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4529. if
  4530. test "x$enable_dependency_tracking" != xno \
  4531. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4532. am__fastdepCC_TRUE=
  4533. am__fastdepCC_FALSE='#'
  4534. else
  4535. am__fastdepCC_TRUE='#'
  4536. am__fastdepCC_FALSE=
  4537. fi
  4538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4539. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4540. if ${ac_cv_path_SED+:} false; then :
  4541. $as_echo_n "(cached) " >&6
  4542. else
  4543. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4544. for ac_i in 1 2 3 4 5 6 7; do
  4545. ac_script="$ac_script$as_nl$ac_script"
  4546. done
  4547. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4548. { ac_script=; unset ac_script;}
  4549. if test -z "$SED"; then
  4550. ac_path_SED_found=false
  4551. # Loop through the user's path and test for each of PROGNAME-LIST
  4552. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4553. for as_dir in $PATH
  4554. do
  4555. IFS=$as_save_IFS
  4556. test -z "$as_dir" && as_dir=.
  4557. for ac_prog in sed gsed; do
  4558. for ac_exec_ext in '' $ac_executable_extensions; do
  4559. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4560. as_fn_executable_p "$ac_path_SED" || continue
  4561. # Check for GNU ac_path_SED and select it if it is found.
  4562. # Check for GNU $ac_path_SED
  4563. case `"$ac_path_SED" --version 2>&1` in
  4564. *GNU*)
  4565. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4566. *)
  4567. ac_count=0
  4568. $as_echo_n 0123456789 >"conftest.in"
  4569. while :
  4570. do
  4571. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4572. mv "conftest.tmp" "conftest.in"
  4573. cp "conftest.in" "conftest.nl"
  4574. $as_echo '' >> "conftest.nl"
  4575. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4576. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4577. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4578. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4579. # Best one so far, save it but keep looking for a better one
  4580. ac_cv_path_SED="$ac_path_SED"
  4581. ac_path_SED_max=$ac_count
  4582. fi
  4583. # 10*(2^10) chars as input seems more than enough
  4584. test $ac_count -gt 10 && break
  4585. done
  4586. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4587. esac
  4588. $ac_path_SED_found && break 3
  4589. done
  4590. done
  4591. done
  4592. IFS=$as_save_IFS
  4593. if test -z "$ac_cv_path_SED"; then
  4594. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4595. fi
  4596. else
  4597. ac_cv_path_SED=$SED
  4598. fi
  4599. fi
  4600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4601. $as_echo "$ac_cv_path_SED" >&6; }
  4602. SED="$ac_cv_path_SED"
  4603. rm -f conftest.sed
  4604. test -z "$SED" && SED=sed
  4605. Xsed="$SED -e 1s/^X//"
  4606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4607. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4608. if ${ac_cv_path_GREP+:} false; then :
  4609. $as_echo_n "(cached) " >&6
  4610. else
  4611. if test -z "$GREP"; then
  4612. ac_path_GREP_found=false
  4613. # Loop through the user's path and test for each of PROGNAME-LIST
  4614. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4615. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4616. do
  4617. IFS=$as_save_IFS
  4618. test -z "$as_dir" && as_dir=.
  4619. for ac_prog in grep ggrep; do
  4620. for ac_exec_ext in '' $ac_executable_extensions; do
  4621. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4622. as_fn_executable_p "$ac_path_GREP" || continue
  4623. # Check for GNU ac_path_GREP and select it if it is found.
  4624. # Check for GNU $ac_path_GREP
  4625. case `"$ac_path_GREP" --version 2>&1` in
  4626. *GNU*)
  4627. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4628. *)
  4629. ac_count=0
  4630. $as_echo_n 0123456789 >"conftest.in"
  4631. while :
  4632. do
  4633. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4634. mv "conftest.tmp" "conftest.in"
  4635. cp "conftest.in" "conftest.nl"
  4636. $as_echo 'GREP' >> "conftest.nl"
  4637. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4638. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4639. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4640. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4641. # Best one so far, save it but keep looking for a better one
  4642. ac_cv_path_GREP="$ac_path_GREP"
  4643. ac_path_GREP_max=$ac_count
  4644. fi
  4645. # 10*(2^10) chars as input seems more than enough
  4646. test $ac_count -gt 10 && break
  4647. done
  4648. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4649. esac
  4650. $ac_path_GREP_found && break 3
  4651. done
  4652. done
  4653. done
  4654. IFS=$as_save_IFS
  4655. if test -z "$ac_cv_path_GREP"; then
  4656. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4657. fi
  4658. else
  4659. ac_cv_path_GREP=$GREP
  4660. fi
  4661. fi
  4662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4663. $as_echo "$ac_cv_path_GREP" >&6; }
  4664. GREP="$ac_cv_path_GREP"
  4665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4666. $as_echo_n "checking for egrep... " >&6; }
  4667. if ${ac_cv_path_EGREP+:} false; then :
  4668. $as_echo_n "(cached) " >&6
  4669. else
  4670. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4671. then ac_cv_path_EGREP="$GREP -E"
  4672. else
  4673. if test -z "$EGREP"; then
  4674. ac_path_EGREP_found=false
  4675. # Loop through the user's path and test for each of PROGNAME-LIST
  4676. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4677. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4678. do
  4679. IFS=$as_save_IFS
  4680. test -z "$as_dir" && as_dir=.
  4681. for ac_prog in egrep; do
  4682. for ac_exec_ext in '' $ac_executable_extensions; do
  4683. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4684. as_fn_executable_p "$ac_path_EGREP" || continue
  4685. # Check for GNU ac_path_EGREP and select it if it is found.
  4686. # Check for GNU $ac_path_EGREP
  4687. case `"$ac_path_EGREP" --version 2>&1` in
  4688. *GNU*)
  4689. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4690. *)
  4691. ac_count=0
  4692. $as_echo_n 0123456789 >"conftest.in"
  4693. while :
  4694. do
  4695. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4696. mv "conftest.tmp" "conftest.in"
  4697. cp "conftest.in" "conftest.nl"
  4698. $as_echo 'EGREP' >> "conftest.nl"
  4699. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4700. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4701. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4702. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4703. # Best one so far, save it but keep looking for a better one
  4704. ac_cv_path_EGREP="$ac_path_EGREP"
  4705. ac_path_EGREP_max=$ac_count
  4706. fi
  4707. # 10*(2^10) chars as input seems more than enough
  4708. test $ac_count -gt 10 && break
  4709. done
  4710. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4711. esac
  4712. $ac_path_EGREP_found && break 3
  4713. done
  4714. done
  4715. done
  4716. IFS=$as_save_IFS
  4717. if test -z "$ac_cv_path_EGREP"; then
  4718. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4719. fi
  4720. else
  4721. ac_cv_path_EGREP=$EGREP
  4722. fi
  4723. fi
  4724. fi
  4725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4726. $as_echo "$ac_cv_path_EGREP" >&6; }
  4727. EGREP="$ac_cv_path_EGREP"
  4728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4729. $as_echo_n "checking for fgrep... " >&6; }
  4730. if ${ac_cv_path_FGREP+:} false; then :
  4731. $as_echo_n "(cached) " >&6
  4732. else
  4733. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4734. then ac_cv_path_FGREP="$GREP -F"
  4735. else
  4736. if test -z "$FGREP"; then
  4737. ac_path_FGREP_found=false
  4738. # Loop through the user's path and test for each of PROGNAME-LIST
  4739. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4740. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4741. do
  4742. IFS=$as_save_IFS
  4743. test -z "$as_dir" && as_dir=.
  4744. for ac_prog in fgrep; do
  4745. for ac_exec_ext in '' $ac_executable_extensions; do
  4746. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4747. as_fn_executable_p "$ac_path_FGREP" || continue
  4748. # Check for GNU ac_path_FGREP and select it if it is found.
  4749. # Check for GNU $ac_path_FGREP
  4750. case `"$ac_path_FGREP" --version 2>&1` in
  4751. *GNU*)
  4752. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4753. *)
  4754. ac_count=0
  4755. $as_echo_n 0123456789 >"conftest.in"
  4756. while :
  4757. do
  4758. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4759. mv "conftest.tmp" "conftest.in"
  4760. cp "conftest.in" "conftest.nl"
  4761. $as_echo 'FGREP' >> "conftest.nl"
  4762. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4763. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4764. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4765. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4766. # Best one so far, save it but keep looking for a better one
  4767. ac_cv_path_FGREP="$ac_path_FGREP"
  4768. ac_path_FGREP_max=$ac_count
  4769. fi
  4770. # 10*(2^10) chars as input seems more than enough
  4771. test $ac_count -gt 10 && break
  4772. done
  4773. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4774. esac
  4775. $ac_path_FGREP_found && break 3
  4776. done
  4777. done
  4778. done
  4779. IFS=$as_save_IFS
  4780. if test -z "$ac_cv_path_FGREP"; then
  4781. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4782. fi
  4783. else
  4784. ac_cv_path_FGREP=$FGREP
  4785. fi
  4786. fi
  4787. fi
  4788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4789. $as_echo "$ac_cv_path_FGREP" >&6; }
  4790. FGREP="$ac_cv_path_FGREP"
  4791. test -z "$GREP" && GREP=grep
  4792. # Check whether --with-gnu-ld was given.
  4793. if test "${with_gnu_ld+set}" = set; then :
  4794. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4795. else
  4796. with_gnu_ld=no
  4797. fi
  4798. ac_prog=ld
  4799. if test "$GCC" = yes; then
  4800. # Check if gcc -print-prog-name=ld gives a path.
  4801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4802. $as_echo_n "checking for ld used by $CC... " >&6; }
  4803. case $host in
  4804. *-*-mingw*)
  4805. # gcc leaves a trailing carriage return which upsets mingw
  4806. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4807. *)
  4808. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4809. esac
  4810. case $ac_prog in
  4811. # Accept absolute paths.
  4812. [\\/]* | ?:[\\/]*)
  4813. re_direlt='/[^/][^/]*/\.\./'
  4814. # Canonicalize the pathname of ld
  4815. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4816. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4817. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4818. done
  4819. test -z "$LD" && LD="$ac_prog"
  4820. ;;
  4821. "")
  4822. # If it fails, then pretend we aren't using GCC.
  4823. ac_prog=ld
  4824. ;;
  4825. *)
  4826. # If it is relative, then search for the first ld in PATH.
  4827. with_gnu_ld=unknown
  4828. ;;
  4829. esac
  4830. elif test "$with_gnu_ld" = yes; then
  4831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4832. $as_echo_n "checking for GNU ld... " >&6; }
  4833. else
  4834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4835. $as_echo_n "checking for non-GNU ld... " >&6; }
  4836. fi
  4837. if ${lt_cv_path_LD+:} false; then :
  4838. $as_echo_n "(cached) " >&6
  4839. else
  4840. if test -z "$LD"; then
  4841. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4842. for ac_dir in $PATH; do
  4843. IFS="$lt_save_ifs"
  4844. test -z "$ac_dir" && ac_dir=.
  4845. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4846. lt_cv_path_LD="$ac_dir/$ac_prog"
  4847. # Check to see if the program is GNU ld. I'd rather use --version,
  4848. # but apparently some variants of GNU ld only accept -v.
  4849. # Break only if it was the GNU/non-GNU ld that we prefer.
  4850. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4851. *GNU* | *'with BFD'*)
  4852. test "$with_gnu_ld" != no && break
  4853. ;;
  4854. *)
  4855. test "$with_gnu_ld" != yes && break
  4856. ;;
  4857. esac
  4858. fi
  4859. done
  4860. IFS="$lt_save_ifs"
  4861. else
  4862. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4863. fi
  4864. fi
  4865. LD="$lt_cv_path_LD"
  4866. if test -n "$LD"; then
  4867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4868. $as_echo "$LD" >&6; }
  4869. else
  4870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4871. $as_echo "no" >&6; }
  4872. fi
  4873. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4875. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4876. if ${lt_cv_prog_gnu_ld+:} false; then :
  4877. $as_echo_n "(cached) " >&6
  4878. else
  4879. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4880. case `$LD -v 2>&1 </dev/null` in
  4881. *GNU* | *'with BFD'*)
  4882. lt_cv_prog_gnu_ld=yes
  4883. ;;
  4884. *)
  4885. lt_cv_prog_gnu_ld=no
  4886. ;;
  4887. esac
  4888. fi
  4889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4890. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4891. with_gnu_ld=$lt_cv_prog_gnu_ld
  4892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4893. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4894. if ${lt_cv_path_NM+:} false; then :
  4895. $as_echo_n "(cached) " >&6
  4896. else
  4897. if test -n "$NM"; then
  4898. # Let the user override the test.
  4899. lt_cv_path_NM="$NM"
  4900. else
  4901. lt_nm_to_check="${ac_tool_prefix}nm"
  4902. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4903. lt_nm_to_check="$lt_nm_to_check nm"
  4904. fi
  4905. for lt_tmp_nm in $lt_nm_to_check; do
  4906. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4907. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4908. IFS="$lt_save_ifs"
  4909. test -z "$ac_dir" && ac_dir=.
  4910. tmp_nm="$ac_dir/$lt_tmp_nm"
  4911. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4912. # Check to see if the nm accepts a BSD-compat flag.
  4913. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4914. # nm: unknown option "B" ignored
  4915. # Tru64's nm complains that /dev/null is an invalid object file
  4916. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4917. */dev/null* | *'Invalid file or object type'*)
  4918. lt_cv_path_NM="$tmp_nm -B"
  4919. break
  4920. ;;
  4921. *)
  4922. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4923. */dev/null*)
  4924. lt_cv_path_NM="$tmp_nm -p"
  4925. break
  4926. ;;
  4927. *)
  4928. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4929. continue # so that we can try to find one that supports BSD flags
  4930. ;;
  4931. esac
  4932. ;;
  4933. esac
  4934. fi
  4935. done
  4936. IFS="$lt_save_ifs"
  4937. done
  4938. : ${lt_cv_path_NM=no}
  4939. fi
  4940. fi
  4941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4942. $as_echo "$lt_cv_path_NM" >&6; }
  4943. if test "$lt_cv_path_NM" != "no"; then
  4944. NM="$lt_cv_path_NM"
  4945. else
  4946. # Didn't find any BSD compatible name lister, look for dumpbin.
  4947. if test -n "$DUMPBIN"; then :
  4948. # Let the user override the test.
  4949. else
  4950. if test -n "$ac_tool_prefix"; then
  4951. for ac_prog in dumpbin "link -dump"
  4952. do
  4953. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4954. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4956. $as_echo_n "checking for $ac_word... " >&6; }
  4957. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4958. $as_echo_n "(cached) " >&6
  4959. else
  4960. if test -n "$DUMPBIN"; then
  4961. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4962. else
  4963. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4964. for as_dir in $PATH
  4965. do
  4966. IFS=$as_save_IFS
  4967. test -z "$as_dir" && as_dir=.
  4968. for ac_exec_ext in '' $ac_executable_extensions; do
  4969. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4970. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4971. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4972. break 2
  4973. fi
  4974. done
  4975. done
  4976. IFS=$as_save_IFS
  4977. fi
  4978. fi
  4979. DUMPBIN=$ac_cv_prog_DUMPBIN
  4980. if test -n "$DUMPBIN"; then
  4981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4982. $as_echo "$DUMPBIN" >&6; }
  4983. else
  4984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4985. $as_echo "no" >&6; }
  4986. fi
  4987. test -n "$DUMPBIN" && break
  4988. done
  4989. fi
  4990. if test -z "$DUMPBIN"; then
  4991. ac_ct_DUMPBIN=$DUMPBIN
  4992. for ac_prog in dumpbin "link -dump"
  4993. do
  4994. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4995. set dummy $ac_prog; ac_word=$2
  4996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4997. $as_echo_n "checking for $ac_word... " >&6; }
  4998. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4999. $as_echo_n "(cached) " >&6
  5000. else
  5001. if test -n "$ac_ct_DUMPBIN"; then
  5002. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5003. else
  5004. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5005. for as_dir in $PATH
  5006. do
  5007. IFS=$as_save_IFS
  5008. test -z "$as_dir" && as_dir=.
  5009. for ac_exec_ext in '' $ac_executable_extensions; do
  5010. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5011. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5012. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5013. break 2
  5014. fi
  5015. done
  5016. done
  5017. IFS=$as_save_IFS
  5018. fi
  5019. fi
  5020. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5021. if test -n "$ac_ct_DUMPBIN"; then
  5022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5023. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5024. else
  5025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5026. $as_echo "no" >&6; }
  5027. fi
  5028. test -n "$ac_ct_DUMPBIN" && break
  5029. done
  5030. if test "x$ac_ct_DUMPBIN" = x; then
  5031. DUMPBIN=":"
  5032. else
  5033. case $cross_compiling:$ac_tool_warned in
  5034. yes:)
  5035. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5036. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5037. ac_tool_warned=yes ;;
  5038. esac
  5039. DUMPBIN=$ac_ct_DUMPBIN
  5040. fi
  5041. fi
  5042. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5043. *COFF*)
  5044. DUMPBIN="$DUMPBIN -symbols"
  5045. ;;
  5046. *)
  5047. DUMPBIN=:
  5048. ;;
  5049. esac
  5050. fi
  5051. if test "$DUMPBIN" != ":"; then
  5052. NM="$DUMPBIN"
  5053. fi
  5054. fi
  5055. test -z "$NM" && NM=nm
  5056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5057. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5058. if ${lt_cv_nm_interface+:} false; then :
  5059. $as_echo_n "(cached) " >&6
  5060. else
  5061. lt_cv_nm_interface="BSD nm"
  5062. echo "int some_variable = 0;" > conftest.$ac_ext
  5063. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5064. (eval "$ac_compile" 2>conftest.err)
  5065. cat conftest.err >&5
  5066. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5067. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5068. cat conftest.err >&5
  5069. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5070. cat conftest.out >&5
  5071. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5072. lt_cv_nm_interface="MS dumpbin"
  5073. fi
  5074. rm -f conftest*
  5075. fi
  5076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5077. $as_echo "$lt_cv_nm_interface" >&6; }
  5078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5079. $as_echo_n "checking whether ln -s works... " >&6; }
  5080. LN_S=$as_ln_s
  5081. if test "$LN_S" = "ln -s"; then
  5082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5083. $as_echo "yes" >&6; }
  5084. else
  5085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5086. $as_echo "no, using $LN_S" >&6; }
  5087. fi
  5088. # find the maximum length of command line arguments
  5089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5090. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5091. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5092. $as_echo_n "(cached) " >&6
  5093. else
  5094. i=0
  5095. teststring="ABCD"
  5096. case $build_os in
  5097. msdosdjgpp*)
  5098. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5099. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5100. # during glob expansion). Even if it were fixed, the result of this
  5101. # check would be larger than it should be.
  5102. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5103. ;;
  5104. gnu*)
  5105. # Under GNU Hurd, this test is not required because there is
  5106. # no limit to the length of command line arguments.
  5107. # Libtool will interpret -1 as no limit whatsoever
  5108. lt_cv_sys_max_cmd_len=-1;
  5109. ;;
  5110. cygwin* | mingw* | cegcc*)
  5111. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5112. # about 5 minutes as the teststring grows exponentially.
  5113. # Worse, since 9x/ME are not pre-emptively multitasking,
  5114. # you end up with a "frozen" computer, even though with patience
  5115. # the test eventually succeeds (with a max line length of 256k).
  5116. # Instead, let's just punt: use the minimum linelength reported by
  5117. # all of the supported platforms: 8192 (on NT/2K/XP).
  5118. lt_cv_sys_max_cmd_len=8192;
  5119. ;;
  5120. mint*)
  5121. # On MiNT this can take a long time and run out of memory.
  5122. lt_cv_sys_max_cmd_len=8192;
  5123. ;;
  5124. amigaos*)
  5125. # On AmigaOS with pdksh, this test takes hours, literally.
  5126. # So we just punt and use a minimum line length of 8192.
  5127. lt_cv_sys_max_cmd_len=8192;
  5128. ;;
  5129. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5130. # This has been around since 386BSD, at least. Likely further.
  5131. if test -x /sbin/sysctl; then
  5132. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5133. elif test -x /usr/sbin/sysctl; then
  5134. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5135. else
  5136. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5137. fi
  5138. # And add a safety zone
  5139. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5140. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5141. ;;
  5142. interix*)
  5143. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5144. lt_cv_sys_max_cmd_len=196608
  5145. ;;
  5146. os2*)
  5147. # The test takes a long time on OS/2.
  5148. lt_cv_sys_max_cmd_len=8192
  5149. ;;
  5150. osf*)
  5151. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5152. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5153. # nice to cause kernel panics so lets avoid the loop below.
  5154. # First set a reasonable default.
  5155. lt_cv_sys_max_cmd_len=16384
  5156. #
  5157. if test -x /sbin/sysconfig; then
  5158. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5159. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5160. esac
  5161. fi
  5162. ;;
  5163. sco3.2v5*)
  5164. lt_cv_sys_max_cmd_len=102400
  5165. ;;
  5166. sysv5* | sco5v6* | sysv4.2uw2*)
  5167. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5168. if test -n "$kargmax"; then
  5169. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5170. else
  5171. lt_cv_sys_max_cmd_len=32768
  5172. fi
  5173. ;;
  5174. *)
  5175. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5176. if test -n "$lt_cv_sys_max_cmd_len" && \
  5177. test undefined != "$lt_cv_sys_max_cmd_len"; then
  5178. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5179. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5180. else
  5181. # Make teststring a little bigger before we do anything with it.
  5182. # a 1K string should be a reasonable start.
  5183. for i in 1 2 3 4 5 6 7 8 ; do
  5184. teststring=$teststring$teststring
  5185. done
  5186. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5187. # If test is not a shell built-in, we'll probably end up computing a
  5188. # maximum length that is only half of the actual maximum length, but
  5189. # we can't tell.
  5190. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  5191. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5192. test $i != 17 # 1/2 MB should be enough
  5193. do
  5194. i=`expr $i + 1`
  5195. teststring=$teststring$teststring
  5196. done
  5197. # Only check the string length outside the loop.
  5198. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5199. teststring=
  5200. # Add a significant safety factor because C++ compilers can tack on
  5201. # massive amounts of additional arguments before passing them to the
  5202. # linker. It appears as though 1/2 is a usable value.
  5203. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5204. fi
  5205. ;;
  5206. esac
  5207. fi
  5208. if test -n $lt_cv_sys_max_cmd_len ; then
  5209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5210. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5211. else
  5212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5213. $as_echo "none" >&6; }
  5214. fi
  5215. max_cmd_len=$lt_cv_sys_max_cmd_len
  5216. : ${CP="cp -f"}
  5217. : ${MV="mv -f"}
  5218. : ${RM="rm -f"}
  5219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5220. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5221. # Try some XSI features
  5222. xsi_shell=no
  5223. ( _lt_dummy="a/b/c"
  5224. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  5225. = c,a/b,b/c, \
  5226. && eval 'test $(( 1 + 1 )) -eq 2 \
  5227. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5228. && xsi_shell=yes
  5229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5230. $as_echo "$xsi_shell" >&6; }
  5231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5232. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5233. lt_shell_append=no
  5234. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5235. >/dev/null 2>&1 \
  5236. && lt_shell_append=yes
  5237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5238. $as_echo "$lt_shell_append" >&6; }
  5239. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5240. lt_unset=unset
  5241. else
  5242. lt_unset=false
  5243. fi
  5244. # test EBCDIC or ASCII
  5245. case `echo X|tr X '\101'` in
  5246. A) # ASCII based system
  5247. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5248. lt_SP2NL='tr \040 \012'
  5249. lt_NL2SP='tr \015\012 \040\040'
  5250. ;;
  5251. *) # EBCDIC based system
  5252. lt_SP2NL='tr \100 \n'
  5253. lt_NL2SP='tr \r\n \100\100'
  5254. ;;
  5255. esac
  5256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5257. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5258. if ${lt_cv_to_host_file_cmd+:} false; then :
  5259. $as_echo_n "(cached) " >&6
  5260. else
  5261. case $host in
  5262. *-*-mingw* )
  5263. case $build in
  5264. *-*-mingw* ) # actually msys
  5265. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5266. ;;
  5267. *-*-cygwin* )
  5268. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5269. ;;
  5270. * ) # otherwise, assume *nix
  5271. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5272. ;;
  5273. esac
  5274. ;;
  5275. *-*-cygwin* )
  5276. case $build in
  5277. *-*-mingw* ) # actually msys
  5278. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5279. ;;
  5280. *-*-cygwin* )
  5281. lt_cv_to_host_file_cmd=func_convert_file_noop
  5282. ;;
  5283. * ) # otherwise, assume *nix
  5284. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5285. ;;
  5286. esac
  5287. ;;
  5288. * ) # unhandled hosts (and "normal" native builds)
  5289. lt_cv_to_host_file_cmd=func_convert_file_noop
  5290. ;;
  5291. esac
  5292. fi
  5293. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5295. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5297. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5298. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5299. $as_echo_n "(cached) " >&6
  5300. else
  5301. #assume ordinary cross tools, or native build.
  5302. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5303. case $host in
  5304. *-*-mingw* )
  5305. case $build in
  5306. *-*-mingw* ) # actually msys
  5307. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5308. ;;
  5309. esac
  5310. ;;
  5311. esac
  5312. fi
  5313. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5315. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5317. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5318. if ${lt_cv_ld_reload_flag+:} false; then :
  5319. $as_echo_n "(cached) " >&6
  5320. else
  5321. lt_cv_ld_reload_flag='-r'
  5322. fi
  5323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5324. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5325. reload_flag=$lt_cv_ld_reload_flag
  5326. case $reload_flag in
  5327. "" | " "*) ;;
  5328. *) reload_flag=" $reload_flag" ;;
  5329. esac
  5330. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5331. case $host_os in
  5332. cygwin* | mingw* | pw32* | cegcc*)
  5333. if test "$GCC" != yes; then
  5334. reload_cmds=false
  5335. fi
  5336. ;;
  5337. darwin*)
  5338. if test "$GCC" = yes; then
  5339. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5340. else
  5341. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5342. fi
  5343. ;;
  5344. esac
  5345. if test -n "$ac_tool_prefix"; then
  5346. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5347. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5349. $as_echo_n "checking for $ac_word... " >&6; }
  5350. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5351. $as_echo_n "(cached) " >&6
  5352. else
  5353. if test -n "$OBJDUMP"; then
  5354. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5355. else
  5356. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5357. for as_dir in $PATH
  5358. do
  5359. IFS=$as_save_IFS
  5360. test -z "$as_dir" && as_dir=.
  5361. for ac_exec_ext in '' $ac_executable_extensions; do
  5362. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5363. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5364. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5365. break 2
  5366. fi
  5367. done
  5368. done
  5369. IFS=$as_save_IFS
  5370. fi
  5371. fi
  5372. OBJDUMP=$ac_cv_prog_OBJDUMP
  5373. if test -n "$OBJDUMP"; then
  5374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5375. $as_echo "$OBJDUMP" >&6; }
  5376. else
  5377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5378. $as_echo "no" >&6; }
  5379. fi
  5380. fi
  5381. if test -z "$ac_cv_prog_OBJDUMP"; then
  5382. ac_ct_OBJDUMP=$OBJDUMP
  5383. # Extract the first word of "objdump", so it can be a program name with args.
  5384. set dummy objdump; ac_word=$2
  5385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5386. $as_echo_n "checking for $ac_word... " >&6; }
  5387. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5388. $as_echo_n "(cached) " >&6
  5389. else
  5390. if test -n "$ac_ct_OBJDUMP"; then
  5391. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5392. else
  5393. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5394. for as_dir in $PATH
  5395. do
  5396. IFS=$as_save_IFS
  5397. test -z "$as_dir" && as_dir=.
  5398. for ac_exec_ext in '' $ac_executable_extensions; do
  5399. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5400. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5401. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5402. break 2
  5403. fi
  5404. done
  5405. done
  5406. IFS=$as_save_IFS
  5407. fi
  5408. fi
  5409. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5410. if test -n "$ac_ct_OBJDUMP"; then
  5411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5412. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5413. else
  5414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5415. $as_echo "no" >&6; }
  5416. fi
  5417. if test "x$ac_ct_OBJDUMP" = x; then
  5418. OBJDUMP="false"
  5419. else
  5420. case $cross_compiling:$ac_tool_warned in
  5421. yes:)
  5422. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5423. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5424. ac_tool_warned=yes ;;
  5425. esac
  5426. OBJDUMP=$ac_ct_OBJDUMP
  5427. fi
  5428. else
  5429. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5430. fi
  5431. test -z "$OBJDUMP" && OBJDUMP=objdump
  5432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5433. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5434. if ${lt_cv_deplibs_check_method+:} false; then :
  5435. $as_echo_n "(cached) " >&6
  5436. else
  5437. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5438. lt_cv_file_magic_test_file=
  5439. lt_cv_deplibs_check_method='unknown'
  5440. # Need to set the preceding variable on all platforms that support
  5441. # interlibrary dependencies.
  5442. # 'none' -- dependencies not supported.
  5443. # `unknown' -- same as none, but documents that we really don't know.
  5444. # 'pass_all' -- all dependencies passed with no checks.
  5445. # 'test_compile' -- check by making test program.
  5446. # 'file_magic [[regex]]' -- check by looking for files in library path
  5447. # which responds to the $file_magic_cmd with a given extended regex.
  5448. # If you have `file' or equivalent on your system and you're not sure
  5449. # whether `pass_all' will *always* work, you probably want this one.
  5450. case $host_os in
  5451. aix[4-9]*)
  5452. lt_cv_deplibs_check_method=pass_all
  5453. ;;
  5454. beos*)
  5455. lt_cv_deplibs_check_method=pass_all
  5456. ;;
  5457. bsdi[45]*)
  5458. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5459. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5460. lt_cv_file_magic_test_file=/shlib/libc.so
  5461. ;;
  5462. cygwin*)
  5463. # func_win32_libid is a shell function defined in ltmain.sh
  5464. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5465. lt_cv_file_magic_cmd='func_win32_libid'
  5466. ;;
  5467. mingw* | pw32*)
  5468. # Base MSYS/MinGW do not provide the 'file' command needed by
  5469. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5470. # unless we find 'file', for example because we are cross-compiling.
  5471. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5472. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5473. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5474. lt_cv_file_magic_cmd='func_win32_libid'
  5475. else
  5476. # Keep this pattern in sync with the one in func_win32_libid.
  5477. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5478. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5479. fi
  5480. ;;
  5481. cegcc*)
  5482. # use the weaker test based on 'objdump'. See mingw*.
  5483. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5484. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5485. ;;
  5486. darwin* | rhapsody*)
  5487. lt_cv_deplibs_check_method=pass_all
  5488. ;;
  5489. freebsd* | dragonfly*)
  5490. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5491. case $host_cpu in
  5492. i*86 )
  5493. # Not sure whether the presence of OpenBSD here was a mistake.
  5494. # Let's accept both of them until this is cleared up.
  5495. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5496. lt_cv_file_magic_cmd=/usr/bin/file
  5497. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5498. ;;
  5499. esac
  5500. else
  5501. lt_cv_deplibs_check_method=pass_all
  5502. fi
  5503. ;;
  5504. haiku*)
  5505. lt_cv_deplibs_check_method=pass_all
  5506. ;;
  5507. hpux10.20* | hpux11*)
  5508. lt_cv_file_magic_cmd=/usr/bin/file
  5509. case $host_cpu in
  5510. ia64*)
  5511. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5512. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5513. ;;
  5514. hppa*64*)
  5515. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  5516. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5517. ;;
  5518. *)
  5519. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5520. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5521. ;;
  5522. esac
  5523. ;;
  5524. interix[3-9]*)
  5525. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5526. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5527. ;;
  5528. irix5* | irix6* | nonstopux*)
  5529. case $LD in
  5530. *-32|*"-32 ") libmagic=32-bit;;
  5531. *-n32|*"-n32 ") libmagic=N32;;
  5532. *-64|*"-64 ") libmagic=64-bit;;
  5533. *) libmagic=never-match;;
  5534. esac
  5535. lt_cv_deplibs_check_method=pass_all
  5536. ;;
  5537. # This must be glibc/ELF.
  5538. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5539. lt_cv_deplibs_check_method=pass_all
  5540. ;;
  5541. netbsd* | netbsdelf*-gnu)
  5542. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5543. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5544. else
  5545. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5546. fi
  5547. ;;
  5548. newos6*)
  5549. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5550. lt_cv_file_magic_cmd=/usr/bin/file
  5551. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5552. ;;
  5553. *nto* | *qnx*)
  5554. lt_cv_deplibs_check_method=pass_all
  5555. ;;
  5556. openbsd*)
  5557. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5558. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5559. else
  5560. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5561. fi
  5562. ;;
  5563. osf3* | osf4* | osf5*)
  5564. lt_cv_deplibs_check_method=pass_all
  5565. ;;
  5566. rdos*)
  5567. lt_cv_deplibs_check_method=pass_all
  5568. ;;
  5569. solaris*)
  5570. lt_cv_deplibs_check_method=pass_all
  5571. ;;
  5572. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5573. lt_cv_deplibs_check_method=pass_all
  5574. ;;
  5575. sysv4 | sysv4.3*)
  5576. case $host_vendor in
  5577. motorola)
  5578. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  5579. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5580. ;;
  5581. ncr)
  5582. lt_cv_deplibs_check_method=pass_all
  5583. ;;
  5584. sequent)
  5585. lt_cv_file_magic_cmd='/bin/file'
  5586. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5587. ;;
  5588. sni)
  5589. lt_cv_file_magic_cmd='/bin/file'
  5590. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5591. lt_cv_file_magic_test_file=/lib/libc.so
  5592. ;;
  5593. siemens)
  5594. lt_cv_deplibs_check_method=pass_all
  5595. ;;
  5596. pc)
  5597. lt_cv_deplibs_check_method=pass_all
  5598. ;;
  5599. esac
  5600. ;;
  5601. tpf*)
  5602. lt_cv_deplibs_check_method=pass_all
  5603. ;;
  5604. esac
  5605. fi
  5606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5607. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5608. file_magic_glob=
  5609. want_nocaseglob=no
  5610. if test "$build" = "$host"; then
  5611. case $host_os in
  5612. mingw* | pw32*)
  5613. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5614. want_nocaseglob=yes
  5615. else
  5616. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5617. fi
  5618. ;;
  5619. esac
  5620. fi
  5621. file_magic_cmd=$lt_cv_file_magic_cmd
  5622. deplibs_check_method=$lt_cv_deplibs_check_method
  5623. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5624. if test -n "$ac_tool_prefix"; then
  5625. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5626. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5628. $as_echo_n "checking for $ac_word... " >&6; }
  5629. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5630. $as_echo_n "(cached) " >&6
  5631. else
  5632. if test -n "$DLLTOOL"; then
  5633. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5634. else
  5635. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5636. for as_dir in $PATH
  5637. do
  5638. IFS=$as_save_IFS
  5639. test -z "$as_dir" && as_dir=.
  5640. for ac_exec_ext in '' $ac_executable_extensions; do
  5641. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5642. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5643. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5644. break 2
  5645. fi
  5646. done
  5647. done
  5648. IFS=$as_save_IFS
  5649. fi
  5650. fi
  5651. DLLTOOL=$ac_cv_prog_DLLTOOL
  5652. if test -n "$DLLTOOL"; then
  5653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5654. $as_echo "$DLLTOOL" >&6; }
  5655. else
  5656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5657. $as_echo "no" >&6; }
  5658. fi
  5659. fi
  5660. if test -z "$ac_cv_prog_DLLTOOL"; then
  5661. ac_ct_DLLTOOL=$DLLTOOL
  5662. # Extract the first word of "dlltool", so it can be a program name with args.
  5663. set dummy dlltool; ac_word=$2
  5664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5665. $as_echo_n "checking for $ac_word... " >&6; }
  5666. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5667. $as_echo_n "(cached) " >&6
  5668. else
  5669. if test -n "$ac_ct_DLLTOOL"; then
  5670. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5671. else
  5672. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5673. for as_dir in $PATH
  5674. do
  5675. IFS=$as_save_IFS
  5676. test -z "$as_dir" && as_dir=.
  5677. for ac_exec_ext in '' $ac_executable_extensions; do
  5678. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5679. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5680. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5681. break 2
  5682. fi
  5683. done
  5684. done
  5685. IFS=$as_save_IFS
  5686. fi
  5687. fi
  5688. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5689. if test -n "$ac_ct_DLLTOOL"; then
  5690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5691. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5692. else
  5693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5694. $as_echo "no" >&6; }
  5695. fi
  5696. if test "x$ac_ct_DLLTOOL" = x; then
  5697. DLLTOOL="false"
  5698. else
  5699. case $cross_compiling:$ac_tool_warned in
  5700. yes:)
  5701. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5702. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5703. ac_tool_warned=yes ;;
  5704. esac
  5705. DLLTOOL=$ac_ct_DLLTOOL
  5706. fi
  5707. else
  5708. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5709. fi
  5710. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5712. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5713. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5714. $as_echo_n "(cached) " >&6
  5715. else
  5716. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5717. case $host_os in
  5718. cygwin* | mingw* | pw32* | cegcc*)
  5719. # two different shell functions defined in ltmain.sh
  5720. # decide which to use based on capabilities of $DLLTOOL
  5721. case `$DLLTOOL --help 2>&1` in
  5722. *--identify-strict*)
  5723. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5724. ;;
  5725. *)
  5726. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5727. ;;
  5728. esac
  5729. ;;
  5730. *)
  5731. # fallback: assume linklib IS sharedlib
  5732. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  5733. ;;
  5734. esac
  5735. fi
  5736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5737. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5738. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5739. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5740. if test -n "$ac_tool_prefix"; then
  5741. for ac_prog in ar
  5742. do
  5743. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5744. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5746. $as_echo_n "checking for $ac_word... " >&6; }
  5747. if ${ac_cv_prog_AR+:} false; then :
  5748. $as_echo_n "(cached) " >&6
  5749. else
  5750. if test -n "$AR"; then
  5751. ac_cv_prog_AR="$AR" # Let the user override the test.
  5752. else
  5753. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5754. for as_dir in $PATH
  5755. do
  5756. IFS=$as_save_IFS
  5757. test -z "$as_dir" && as_dir=.
  5758. for ac_exec_ext in '' $ac_executable_extensions; do
  5759. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5760. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5761. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5762. break 2
  5763. fi
  5764. done
  5765. done
  5766. IFS=$as_save_IFS
  5767. fi
  5768. fi
  5769. AR=$ac_cv_prog_AR
  5770. if test -n "$AR"; then
  5771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5772. $as_echo "$AR" >&6; }
  5773. else
  5774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5775. $as_echo "no" >&6; }
  5776. fi
  5777. test -n "$AR" && break
  5778. done
  5779. fi
  5780. if test -z "$AR"; then
  5781. ac_ct_AR=$AR
  5782. for ac_prog in ar
  5783. do
  5784. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5785. set dummy $ac_prog; ac_word=$2
  5786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5787. $as_echo_n "checking for $ac_word... " >&6; }
  5788. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5789. $as_echo_n "(cached) " >&6
  5790. else
  5791. if test -n "$ac_ct_AR"; then
  5792. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5793. else
  5794. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5795. for as_dir in $PATH
  5796. do
  5797. IFS=$as_save_IFS
  5798. test -z "$as_dir" && as_dir=.
  5799. for ac_exec_ext in '' $ac_executable_extensions; do
  5800. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5801. ac_cv_prog_ac_ct_AR="$ac_prog"
  5802. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5803. break 2
  5804. fi
  5805. done
  5806. done
  5807. IFS=$as_save_IFS
  5808. fi
  5809. fi
  5810. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5811. if test -n "$ac_ct_AR"; then
  5812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5813. $as_echo "$ac_ct_AR" >&6; }
  5814. else
  5815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5816. $as_echo "no" >&6; }
  5817. fi
  5818. test -n "$ac_ct_AR" && break
  5819. done
  5820. if test "x$ac_ct_AR" = x; then
  5821. AR="false"
  5822. else
  5823. case $cross_compiling:$ac_tool_warned in
  5824. yes:)
  5825. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5826. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5827. ac_tool_warned=yes ;;
  5828. esac
  5829. AR=$ac_ct_AR
  5830. fi
  5831. fi
  5832. : ${AR=ar}
  5833. : ${AR_FLAGS=cru}
  5834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5835. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5836. if ${lt_cv_ar_at_file+:} false; then :
  5837. $as_echo_n "(cached) " >&6
  5838. else
  5839. lt_cv_ar_at_file=no
  5840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5841. /* end confdefs.h. */
  5842. int
  5843. main ()
  5844. {
  5845. ;
  5846. return 0;
  5847. }
  5848. _ACEOF
  5849. if ac_fn_c_try_compile "$LINENO"; then :
  5850. echo conftest.$ac_objext > conftest.lst
  5851. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5852. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5853. (eval $lt_ar_try) 2>&5
  5854. ac_status=$?
  5855. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5856. test $ac_status = 0; }
  5857. if test "$ac_status" -eq 0; then
  5858. # Ensure the archiver fails upon bogus file names.
  5859. rm -f conftest.$ac_objext libconftest.a
  5860. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5861. (eval $lt_ar_try) 2>&5
  5862. ac_status=$?
  5863. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5864. test $ac_status = 0; }
  5865. if test "$ac_status" -ne 0; then
  5866. lt_cv_ar_at_file=@
  5867. fi
  5868. fi
  5869. rm -f conftest.* libconftest.a
  5870. fi
  5871. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5872. fi
  5873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5874. $as_echo "$lt_cv_ar_at_file" >&6; }
  5875. if test "x$lt_cv_ar_at_file" = xno; then
  5876. archiver_list_spec=
  5877. else
  5878. archiver_list_spec=$lt_cv_ar_at_file
  5879. fi
  5880. if test -n "$ac_tool_prefix"; then
  5881. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5882. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5884. $as_echo_n "checking for $ac_word... " >&6; }
  5885. if ${ac_cv_prog_STRIP+:} false; then :
  5886. $as_echo_n "(cached) " >&6
  5887. else
  5888. if test -n "$STRIP"; then
  5889. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5890. else
  5891. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5892. for as_dir in $PATH
  5893. do
  5894. IFS=$as_save_IFS
  5895. test -z "$as_dir" && as_dir=.
  5896. for ac_exec_ext in '' $ac_executable_extensions; do
  5897. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5898. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5899. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5900. break 2
  5901. fi
  5902. done
  5903. done
  5904. IFS=$as_save_IFS
  5905. fi
  5906. fi
  5907. STRIP=$ac_cv_prog_STRIP
  5908. if test -n "$STRIP"; then
  5909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5910. $as_echo "$STRIP" >&6; }
  5911. else
  5912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5913. $as_echo "no" >&6; }
  5914. fi
  5915. fi
  5916. if test -z "$ac_cv_prog_STRIP"; then
  5917. ac_ct_STRIP=$STRIP
  5918. # Extract the first word of "strip", so it can be a program name with args.
  5919. set dummy strip; ac_word=$2
  5920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5921. $as_echo_n "checking for $ac_word... " >&6; }
  5922. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5923. $as_echo_n "(cached) " >&6
  5924. else
  5925. if test -n "$ac_ct_STRIP"; then
  5926. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5927. else
  5928. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5929. for as_dir in $PATH
  5930. do
  5931. IFS=$as_save_IFS
  5932. test -z "$as_dir" && as_dir=.
  5933. for ac_exec_ext in '' $ac_executable_extensions; do
  5934. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5935. ac_cv_prog_ac_ct_STRIP="strip"
  5936. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5937. break 2
  5938. fi
  5939. done
  5940. done
  5941. IFS=$as_save_IFS
  5942. fi
  5943. fi
  5944. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5945. if test -n "$ac_ct_STRIP"; then
  5946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5947. $as_echo "$ac_ct_STRIP" >&6; }
  5948. else
  5949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5950. $as_echo "no" >&6; }
  5951. fi
  5952. if test "x$ac_ct_STRIP" = x; then
  5953. STRIP=":"
  5954. else
  5955. case $cross_compiling:$ac_tool_warned in
  5956. yes:)
  5957. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5958. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5959. ac_tool_warned=yes ;;
  5960. esac
  5961. STRIP=$ac_ct_STRIP
  5962. fi
  5963. else
  5964. STRIP="$ac_cv_prog_STRIP"
  5965. fi
  5966. test -z "$STRIP" && STRIP=:
  5967. if test -n "$ac_tool_prefix"; then
  5968. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5969. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5971. $as_echo_n "checking for $ac_word... " >&6; }
  5972. if ${ac_cv_prog_RANLIB+:} false; then :
  5973. $as_echo_n "(cached) " >&6
  5974. else
  5975. if test -n "$RANLIB"; then
  5976. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5977. else
  5978. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5979. for as_dir in $PATH
  5980. do
  5981. IFS=$as_save_IFS
  5982. test -z "$as_dir" && as_dir=.
  5983. for ac_exec_ext in '' $ac_executable_extensions; do
  5984. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5985. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5986. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5987. break 2
  5988. fi
  5989. done
  5990. done
  5991. IFS=$as_save_IFS
  5992. fi
  5993. fi
  5994. RANLIB=$ac_cv_prog_RANLIB
  5995. if test -n "$RANLIB"; then
  5996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5997. $as_echo "$RANLIB" >&6; }
  5998. else
  5999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6000. $as_echo "no" >&6; }
  6001. fi
  6002. fi
  6003. if test -z "$ac_cv_prog_RANLIB"; then
  6004. ac_ct_RANLIB=$RANLIB
  6005. # Extract the first word of "ranlib", so it can be a program name with args.
  6006. set dummy ranlib; ac_word=$2
  6007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6008. $as_echo_n "checking for $ac_word... " >&6; }
  6009. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6010. $as_echo_n "(cached) " >&6
  6011. else
  6012. if test -n "$ac_ct_RANLIB"; then
  6013. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6014. else
  6015. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6016. for as_dir in $PATH
  6017. do
  6018. IFS=$as_save_IFS
  6019. test -z "$as_dir" && as_dir=.
  6020. for ac_exec_ext in '' $ac_executable_extensions; do
  6021. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6022. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6023. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6024. break 2
  6025. fi
  6026. done
  6027. done
  6028. IFS=$as_save_IFS
  6029. fi
  6030. fi
  6031. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6032. if test -n "$ac_ct_RANLIB"; then
  6033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6034. $as_echo "$ac_ct_RANLIB" >&6; }
  6035. else
  6036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6037. $as_echo "no" >&6; }
  6038. fi
  6039. if test "x$ac_ct_RANLIB" = x; then
  6040. RANLIB=":"
  6041. else
  6042. case $cross_compiling:$ac_tool_warned in
  6043. yes:)
  6044. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6045. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6046. ac_tool_warned=yes ;;
  6047. esac
  6048. RANLIB=$ac_ct_RANLIB
  6049. fi
  6050. else
  6051. RANLIB="$ac_cv_prog_RANLIB"
  6052. fi
  6053. test -z "$RANLIB" && RANLIB=:
  6054. # Determine commands to create old-style static archives.
  6055. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6056. old_postinstall_cmds='chmod 644 $oldlib'
  6057. old_postuninstall_cmds=
  6058. if test -n "$RANLIB"; then
  6059. case $host_os in
  6060. openbsd*)
  6061. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6062. ;;
  6063. *)
  6064. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6065. ;;
  6066. esac
  6067. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6068. fi
  6069. case $host_os in
  6070. darwin*)
  6071. lock_old_archive_extraction=yes ;;
  6072. *)
  6073. lock_old_archive_extraction=no ;;
  6074. esac
  6075. # If no C compiler was specified, use CC.
  6076. LTCC=${LTCC-"$CC"}
  6077. # If no C compiler flags were specified, use CFLAGS.
  6078. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6079. # Allow CC to be a program name with arguments.
  6080. compiler=$CC
  6081. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6083. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6084. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6085. $as_echo_n "(cached) " >&6
  6086. else
  6087. # These are sane defaults that work on at least a few old systems.
  6088. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6089. # Character class describing NM global symbol codes.
  6090. symcode='[BCDEGRST]'
  6091. # Regexp to match symbols that can be accessed directly from C.
  6092. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6093. # Define system-specific variables.
  6094. case $host_os in
  6095. aix*)
  6096. symcode='[BCDT]'
  6097. ;;
  6098. cygwin* | mingw* | pw32* | cegcc*)
  6099. symcode='[ABCDGISTW]'
  6100. ;;
  6101. hpux*)
  6102. if test "$host_cpu" = ia64; then
  6103. symcode='[ABCDEGRST]'
  6104. fi
  6105. ;;
  6106. irix* | nonstopux*)
  6107. symcode='[BCDEGRST]'
  6108. ;;
  6109. osf*)
  6110. symcode='[BCDEGQRST]'
  6111. ;;
  6112. solaris*)
  6113. symcode='[BDRT]'
  6114. ;;
  6115. sco3.2v5*)
  6116. symcode='[DT]'
  6117. ;;
  6118. sysv4.2uw2*)
  6119. symcode='[DT]'
  6120. ;;
  6121. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6122. symcode='[ABDT]'
  6123. ;;
  6124. sysv4)
  6125. symcode='[DFNSTU]'
  6126. ;;
  6127. esac
  6128. # If we're using GNU nm, then use its standard symbol codes.
  6129. case `$NM -V 2>&1` in
  6130. *GNU* | *'with BFD'*)
  6131. symcode='[ABCDGIRSTW]' ;;
  6132. esac
  6133. # Transform an extracted symbol line into a proper C declaration.
  6134. # Some systems (esp. on ia64) link data and code symbols differently,
  6135. # so use this general approach.
  6136. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6137. # Transform an extracted symbol line into symbol name and symbol address
  6138. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6139. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  6140. # Handle CRLF in mingw tool chain
  6141. opt_cr=
  6142. case $build_os in
  6143. mingw*)
  6144. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6145. ;;
  6146. esac
  6147. # Try without a prefix underscore, then with it.
  6148. for ac_symprfx in "" "_"; do
  6149. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6150. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6151. # Write the raw and C identifiers.
  6152. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6153. # Fake it for dumpbin and say T for any non-static function
  6154. # and D for any global variable.
  6155. # Also find C++ and __fastcall symbols from MSVC++,
  6156. # which start with @ or ?.
  6157. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6158. " {last_section=section; section=\$ 3};"\
  6159. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6160. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6161. " \$ 0!~/External *\|/{next};"\
  6162. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6163. " {if(hide[section]) next};"\
  6164. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6165. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6166. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6167. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6168. " ' prfx=^$ac_symprfx"
  6169. else
  6170. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6171. fi
  6172. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6173. # Check to see that the pipe works correctly.
  6174. pipe_works=no
  6175. rm -f conftest*
  6176. cat > conftest.$ac_ext <<_LT_EOF
  6177. #ifdef __cplusplus
  6178. extern "C" {
  6179. #endif
  6180. char nm_test_var;
  6181. void nm_test_func(void);
  6182. void nm_test_func(void){}
  6183. #ifdef __cplusplus
  6184. }
  6185. #endif
  6186. int main(){nm_test_var='a';nm_test_func();return(0);}
  6187. _LT_EOF
  6188. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6189. (eval $ac_compile) 2>&5
  6190. ac_status=$?
  6191. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6192. test $ac_status = 0; }; then
  6193. # Now try to grab the symbols.
  6194. nlist=conftest.nm
  6195. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6196. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6197. ac_status=$?
  6198. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6199. test $ac_status = 0; } && test -s "$nlist"; then
  6200. # Try sorting and uniquifying the output.
  6201. if sort "$nlist" | uniq > "$nlist"T; then
  6202. mv -f "$nlist"T "$nlist"
  6203. else
  6204. rm -f "$nlist"T
  6205. fi
  6206. # Make sure that we snagged all the symbols we need.
  6207. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6208. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6209. cat <<_LT_EOF > conftest.$ac_ext
  6210. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6211. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  6212. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  6213. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6214. # define LT_DLSYM_CONST
  6215. #elif defined(__osf__)
  6216. /* This system does not cope well with relocations in const data. */
  6217. # define LT_DLSYM_CONST
  6218. #else
  6219. # define LT_DLSYM_CONST const
  6220. #endif
  6221. #ifdef __cplusplus
  6222. extern "C" {
  6223. #endif
  6224. _LT_EOF
  6225. # Now generate the symbol file.
  6226. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6227. cat <<_LT_EOF >> conftest.$ac_ext
  6228. /* The mapping between symbol names and symbols. */
  6229. LT_DLSYM_CONST struct {
  6230. const char *name;
  6231. void *address;
  6232. }
  6233. lt__PROGRAM__LTX_preloaded_symbols[] =
  6234. {
  6235. { "@PROGRAM@", (void *) 0 },
  6236. _LT_EOF
  6237. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6238. cat <<\_LT_EOF >> conftest.$ac_ext
  6239. {0, (void *) 0}
  6240. };
  6241. /* This works around a problem in FreeBSD linker */
  6242. #ifdef FREEBSD_WORKAROUND
  6243. static const void *lt_preloaded_setup() {
  6244. return lt__PROGRAM__LTX_preloaded_symbols;
  6245. }
  6246. #endif
  6247. #ifdef __cplusplus
  6248. }
  6249. #endif
  6250. _LT_EOF
  6251. # Now try linking the two files.
  6252. mv conftest.$ac_objext conftstm.$ac_objext
  6253. lt_globsym_save_LIBS=$LIBS
  6254. lt_globsym_save_CFLAGS=$CFLAGS
  6255. LIBS="conftstm.$ac_objext"
  6256. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6257. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6258. (eval $ac_link) 2>&5
  6259. ac_status=$?
  6260. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6261. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6262. pipe_works=yes
  6263. fi
  6264. LIBS=$lt_globsym_save_LIBS
  6265. CFLAGS=$lt_globsym_save_CFLAGS
  6266. else
  6267. echo "cannot find nm_test_func in $nlist" >&5
  6268. fi
  6269. else
  6270. echo "cannot find nm_test_var in $nlist" >&5
  6271. fi
  6272. else
  6273. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6274. fi
  6275. else
  6276. echo "$progname: failed program was:" >&5
  6277. cat conftest.$ac_ext >&5
  6278. fi
  6279. rm -rf conftest* conftst*
  6280. # Do not use the global_symbol_pipe unless it works.
  6281. if test "$pipe_works" = yes; then
  6282. break
  6283. else
  6284. lt_cv_sys_global_symbol_pipe=
  6285. fi
  6286. done
  6287. fi
  6288. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6289. lt_cv_sys_global_symbol_to_cdecl=
  6290. fi
  6291. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6293. $as_echo "failed" >&6; }
  6294. else
  6295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6296. $as_echo "ok" >&6; }
  6297. fi
  6298. # Response file support.
  6299. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6300. nm_file_list_spec='@'
  6301. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6302. nm_file_list_spec='@'
  6303. fi
  6304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6305. $as_echo_n "checking for sysroot... " >&6; }
  6306. # Check whether --with-sysroot was given.
  6307. if test "${with_sysroot+set}" = set; then :
  6308. withval=$with_sysroot;
  6309. else
  6310. with_sysroot=no
  6311. fi
  6312. lt_sysroot=
  6313. case ${with_sysroot} in #(
  6314. yes)
  6315. if test "$GCC" = yes; then
  6316. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6317. fi
  6318. ;; #(
  6319. /*)
  6320. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6321. ;; #(
  6322. no|'')
  6323. ;; #(
  6324. *)
  6325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  6326. $as_echo "${with_sysroot}" >&6; }
  6327. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6328. ;;
  6329. esac
  6330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6331. $as_echo "${lt_sysroot:-no}" >&6; }
  6332. # Check whether --enable-libtool-lock was given.
  6333. if test "${enable_libtool_lock+set}" = set; then :
  6334. enableval=$enable_libtool_lock;
  6335. fi
  6336. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6337. # Some flags need to be propagated to the compiler or linker for good
  6338. # libtool support.
  6339. case $host in
  6340. ia64-*-hpux*)
  6341. # Find out which ABI we are using.
  6342. echo 'int i;' > conftest.$ac_ext
  6343. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6344. (eval $ac_compile) 2>&5
  6345. ac_status=$?
  6346. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6347. test $ac_status = 0; }; then
  6348. case `/usr/bin/file conftest.$ac_objext` in
  6349. *ELF-32*)
  6350. HPUX_IA64_MODE="32"
  6351. ;;
  6352. *ELF-64*)
  6353. HPUX_IA64_MODE="64"
  6354. ;;
  6355. esac
  6356. fi
  6357. rm -rf conftest*
  6358. ;;
  6359. *-*-irix6*)
  6360. # Find out which ABI we are using.
  6361. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6362. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6363. (eval $ac_compile) 2>&5
  6364. ac_status=$?
  6365. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6366. test $ac_status = 0; }; then
  6367. if test "$lt_cv_prog_gnu_ld" = yes; then
  6368. case `/usr/bin/file conftest.$ac_objext` in
  6369. *32-bit*)
  6370. LD="${LD-ld} -melf32bsmip"
  6371. ;;
  6372. *N32*)
  6373. LD="${LD-ld} -melf32bmipn32"
  6374. ;;
  6375. *64-bit*)
  6376. LD="${LD-ld} -melf64bmip"
  6377. ;;
  6378. esac
  6379. else
  6380. case `/usr/bin/file conftest.$ac_objext` in
  6381. *32-bit*)
  6382. LD="${LD-ld} -32"
  6383. ;;
  6384. *N32*)
  6385. LD="${LD-ld} -n32"
  6386. ;;
  6387. *64-bit*)
  6388. LD="${LD-ld} -64"
  6389. ;;
  6390. esac
  6391. fi
  6392. fi
  6393. rm -rf conftest*
  6394. ;;
  6395. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6396. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6397. # Find out which ABI we are using.
  6398. echo 'int i;' > conftest.$ac_ext
  6399. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6400. (eval $ac_compile) 2>&5
  6401. ac_status=$?
  6402. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6403. test $ac_status = 0; }; then
  6404. case `/usr/bin/file conftest.o` in
  6405. *32-bit*)
  6406. case $host in
  6407. x86_64-*kfreebsd*-gnu)
  6408. LD="${LD-ld} -m elf_i386_fbsd"
  6409. ;;
  6410. x86_64-*linux*)
  6411. case `/usr/bin/file conftest.o` in
  6412. *x86-64*)
  6413. LD="${LD-ld} -m elf32_x86_64"
  6414. ;;
  6415. *)
  6416. LD="${LD-ld} -m elf_i386"
  6417. ;;
  6418. esac
  6419. ;;
  6420. powerpc64le-*)
  6421. LD="${LD-ld} -m elf32lppclinux"
  6422. ;;
  6423. powerpc64-*)
  6424. LD="${LD-ld} -m elf32ppclinux"
  6425. ;;
  6426. s390x-*linux*)
  6427. LD="${LD-ld} -m elf_s390"
  6428. ;;
  6429. sparc64-*linux*)
  6430. LD="${LD-ld} -m elf32_sparc"
  6431. ;;
  6432. esac
  6433. ;;
  6434. *64-bit*)
  6435. case $host in
  6436. x86_64-*kfreebsd*-gnu)
  6437. LD="${LD-ld} -m elf_x86_64_fbsd"
  6438. ;;
  6439. x86_64-*linux*)
  6440. LD="${LD-ld} -m elf_x86_64"
  6441. ;;
  6442. powerpcle-*)
  6443. LD="${LD-ld} -m elf64lppc"
  6444. ;;
  6445. powerpc-*)
  6446. LD="${LD-ld} -m elf64ppc"
  6447. ;;
  6448. s390*-*linux*|s390*-*tpf*)
  6449. LD="${LD-ld} -m elf64_s390"
  6450. ;;
  6451. sparc*-*linux*)
  6452. LD="${LD-ld} -m elf64_sparc"
  6453. ;;
  6454. esac
  6455. ;;
  6456. esac
  6457. fi
  6458. rm -rf conftest*
  6459. ;;
  6460. *-*-sco3.2v5*)
  6461. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6462. SAVE_CFLAGS="$CFLAGS"
  6463. CFLAGS="$CFLAGS -belf"
  6464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6465. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6466. if ${lt_cv_cc_needs_belf+:} false; then :
  6467. $as_echo_n "(cached) " >&6
  6468. else
  6469. ac_ext=c
  6470. ac_cpp='$CPP $CPPFLAGS'
  6471. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6472. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6473. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6474. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6475. /* end confdefs.h. */
  6476. int
  6477. main ()
  6478. {
  6479. ;
  6480. return 0;
  6481. }
  6482. _ACEOF
  6483. if ac_fn_c_try_link "$LINENO"; then :
  6484. lt_cv_cc_needs_belf=yes
  6485. else
  6486. lt_cv_cc_needs_belf=no
  6487. fi
  6488. rm -f core conftest.err conftest.$ac_objext \
  6489. conftest$ac_exeext conftest.$ac_ext
  6490. ac_ext=c
  6491. ac_cpp='$CPP $CPPFLAGS'
  6492. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6493. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6494. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6495. fi
  6496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6497. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6498. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6499. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6500. CFLAGS="$SAVE_CFLAGS"
  6501. fi
  6502. ;;
  6503. *-*solaris*)
  6504. # Find out which ABI we are using.
  6505. echo 'int i;' > conftest.$ac_ext
  6506. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6507. (eval $ac_compile) 2>&5
  6508. ac_status=$?
  6509. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6510. test $ac_status = 0; }; then
  6511. case `/usr/bin/file conftest.o` in
  6512. *64-bit*)
  6513. case $lt_cv_prog_gnu_ld in
  6514. yes*)
  6515. case $host in
  6516. i?86-*-solaris*)
  6517. LD="${LD-ld} -m elf_x86_64"
  6518. ;;
  6519. sparc*-*-solaris*)
  6520. LD="${LD-ld} -m elf64_sparc"
  6521. ;;
  6522. esac
  6523. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6524. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6525. LD="${LD-ld}_sol2"
  6526. fi
  6527. ;;
  6528. *)
  6529. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6530. LD="${LD-ld} -64"
  6531. fi
  6532. ;;
  6533. esac
  6534. ;;
  6535. esac
  6536. fi
  6537. rm -rf conftest*
  6538. ;;
  6539. esac
  6540. need_locks="$enable_libtool_lock"
  6541. if test -n "$ac_tool_prefix"; then
  6542. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6543. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6545. $as_echo_n "checking for $ac_word... " >&6; }
  6546. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6547. $as_echo_n "(cached) " >&6
  6548. else
  6549. if test -n "$MANIFEST_TOOL"; then
  6550. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6551. else
  6552. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6553. for as_dir in $PATH
  6554. do
  6555. IFS=$as_save_IFS
  6556. test -z "$as_dir" && as_dir=.
  6557. for ac_exec_ext in '' $ac_executable_extensions; do
  6558. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6559. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6560. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6561. break 2
  6562. fi
  6563. done
  6564. done
  6565. IFS=$as_save_IFS
  6566. fi
  6567. fi
  6568. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6569. if test -n "$MANIFEST_TOOL"; then
  6570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6571. $as_echo "$MANIFEST_TOOL" >&6; }
  6572. else
  6573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6574. $as_echo "no" >&6; }
  6575. fi
  6576. fi
  6577. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6578. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6579. # Extract the first word of "mt", so it can be a program name with args.
  6580. set dummy mt; ac_word=$2
  6581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6582. $as_echo_n "checking for $ac_word... " >&6; }
  6583. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6584. $as_echo_n "(cached) " >&6
  6585. else
  6586. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6587. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6588. else
  6589. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6590. for as_dir in $PATH
  6591. do
  6592. IFS=$as_save_IFS
  6593. test -z "$as_dir" && as_dir=.
  6594. for ac_exec_ext in '' $ac_executable_extensions; do
  6595. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6596. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6597. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6598. break 2
  6599. fi
  6600. done
  6601. done
  6602. IFS=$as_save_IFS
  6603. fi
  6604. fi
  6605. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6606. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6608. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6609. else
  6610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6611. $as_echo "no" >&6; }
  6612. fi
  6613. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6614. MANIFEST_TOOL=":"
  6615. else
  6616. case $cross_compiling:$ac_tool_warned in
  6617. yes:)
  6618. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6619. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6620. ac_tool_warned=yes ;;
  6621. esac
  6622. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6623. fi
  6624. else
  6625. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6626. fi
  6627. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6629. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6630. if ${lt_cv_path_mainfest_tool+:} false; then :
  6631. $as_echo_n "(cached) " >&6
  6632. else
  6633. lt_cv_path_mainfest_tool=no
  6634. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6635. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6636. cat conftest.err >&5
  6637. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6638. lt_cv_path_mainfest_tool=yes
  6639. fi
  6640. rm -f conftest*
  6641. fi
  6642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6643. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6644. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6645. MANIFEST_TOOL=:
  6646. fi
  6647. case $host_os in
  6648. rhapsody* | darwin*)
  6649. if test -n "$ac_tool_prefix"; then
  6650. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6651. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6653. $as_echo_n "checking for $ac_word... " >&6; }
  6654. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6655. $as_echo_n "(cached) " >&6
  6656. else
  6657. if test -n "$DSYMUTIL"; then
  6658. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6659. else
  6660. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6661. for as_dir in $PATH
  6662. do
  6663. IFS=$as_save_IFS
  6664. test -z "$as_dir" && as_dir=.
  6665. for ac_exec_ext in '' $ac_executable_extensions; do
  6666. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6667. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6668. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6669. break 2
  6670. fi
  6671. done
  6672. done
  6673. IFS=$as_save_IFS
  6674. fi
  6675. fi
  6676. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6677. if test -n "$DSYMUTIL"; then
  6678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6679. $as_echo "$DSYMUTIL" >&6; }
  6680. else
  6681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6682. $as_echo "no" >&6; }
  6683. fi
  6684. fi
  6685. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6686. ac_ct_DSYMUTIL=$DSYMUTIL
  6687. # Extract the first word of "dsymutil", so it can be a program name with args.
  6688. set dummy dsymutil; ac_word=$2
  6689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6690. $as_echo_n "checking for $ac_word... " >&6; }
  6691. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6692. $as_echo_n "(cached) " >&6
  6693. else
  6694. if test -n "$ac_ct_DSYMUTIL"; then
  6695. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6696. else
  6697. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6698. for as_dir in $PATH
  6699. do
  6700. IFS=$as_save_IFS
  6701. test -z "$as_dir" && as_dir=.
  6702. for ac_exec_ext in '' $ac_executable_extensions; do
  6703. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6704. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6705. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6706. break 2
  6707. fi
  6708. done
  6709. done
  6710. IFS=$as_save_IFS
  6711. fi
  6712. fi
  6713. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6714. if test -n "$ac_ct_DSYMUTIL"; then
  6715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6716. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6717. else
  6718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6719. $as_echo "no" >&6; }
  6720. fi
  6721. if test "x$ac_ct_DSYMUTIL" = x; then
  6722. DSYMUTIL=":"
  6723. else
  6724. case $cross_compiling:$ac_tool_warned in
  6725. yes:)
  6726. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6727. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6728. ac_tool_warned=yes ;;
  6729. esac
  6730. DSYMUTIL=$ac_ct_DSYMUTIL
  6731. fi
  6732. else
  6733. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6734. fi
  6735. if test -n "$ac_tool_prefix"; then
  6736. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6737. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6739. $as_echo_n "checking for $ac_word... " >&6; }
  6740. if ${ac_cv_prog_NMEDIT+:} false; then :
  6741. $as_echo_n "(cached) " >&6
  6742. else
  6743. if test -n "$NMEDIT"; then
  6744. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6745. else
  6746. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6747. for as_dir in $PATH
  6748. do
  6749. IFS=$as_save_IFS
  6750. test -z "$as_dir" && as_dir=.
  6751. for ac_exec_ext in '' $ac_executable_extensions; do
  6752. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6753. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6754. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6755. break 2
  6756. fi
  6757. done
  6758. done
  6759. IFS=$as_save_IFS
  6760. fi
  6761. fi
  6762. NMEDIT=$ac_cv_prog_NMEDIT
  6763. if test -n "$NMEDIT"; then
  6764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6765. $as_echo "$NMEDIT" >&6; }
  6766. else
  6767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6768. $as_echo "no" >&6; }
  6769. fi
  6770. fi
  6771. if test -z "$ac_cv_prog_NMEDIT"; then
  6772. ac_ct_NMEDIT=$NMEDIT
  6773. # Extract the first word of "nmedit", so it can be a program name with args.
  6774. set dummy nmedit; ac_word=$2
  6775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6776. $as_echo_n "checking for $ac_word... " >&6; }
  6777. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6778. $as_echo_n "(cached) " >&6
  6779. else
  6780. if test -n "$ac_ct_NMEDIT"; then
  6781. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6782. else
  6783. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6784. for as_dir in $PATH
  6785. do
  6786. IFS=$as_save_IFS
  6787. test -z "$as_dir" && as_dir=.
  6788. for ac_exec_ext in '' $ac_executable_extensions; do
  6789. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6790. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6791. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6792. break 2
  6793. fi
  6794. done
  6795. done
  6796. IFS=$as_save_IFS
  6797. fi
  6798. fi
  6799. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6800. if test -n "$ac_ct_NMEDIT"; then
  6801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6802. $as_echo "$ac_ct_NMEDIT" >&6; }
  6803. else
  6804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6805. $as_echo "no" >&6; }
  6806. fi
  6807. if test "x$ac_ct_NMEDIT" = x; then
  6808. NMEDIT=":"
  6809. else
  6810. case $cross_compiling:$ac_tool_warned in
  6811. yes:)
  6812. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6813. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6814. ac_tool_warned=yes ;;
  6815. esac
  6816. NMEDIT=$ac_ct_NMEDIT
  6817. fi
  6818. else
  6819. NMEDIT="$ac_cv_prog_NMEDIT"
  6820. fi
  6821. if test -n "$ac_tool_prefix"; then
  6822. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6823. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6825. $as_echo_n "checking for $ac_word... " >&6; }
  6826. if ${ac_cv_prog_LIPO+:} false; then :
  6827. $as_echo_n "(cached) " >&6
  6828. else
  6829. if test -n "$LIPO"; then
  6830. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6831. else
  6832. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6833. for as_dir in $PATH
  6834. do
  6835. IFS=$as_save_IFS
  6836. test -z "$as_dir" && as_dir=.
  6837. for ac_exec_ext in '' $ac_executable_extensions; do
  6838. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6839. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6840. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6841. break 2
  6842. fi
  6843. done
  6844. done
  6845. IFS=$as_save_IFS
  6846. fi
  6847. fi
  6848. LIPO=$ac_cv_prog_LIPO
  6849. if test -n "$LIPO"; then
  6850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6851. $as_echo "$LIPO" >&6; }
  6852. else
  6853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6854. $as_echo "no" >&6; }
  6855. fi
  6856. fi
  6857. if test -z "$ac_cv_prog_LIPO"; then
  6858. ac_ct_LIPO=$LIPO
  6859. # Extract the first word of "lipo", so it can be a program name with args.
  6860. set dummy lipo; ac_word=$2
  6861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6862. $as_echo_n "checking for $ac_word... " >&6; }
  6863. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6864. $as_echo_n "(cached) " >&6
  6865. else
  6866. if test -n "$ac_ct_LIPO"; then
  6867. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6868. else
  6869. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6870. for as_dir in $PATH
  6871. do
  6872. IFS=$as_save_IFS
  6873. test -z "$as_dir" && as_dir=.
  6874. for ac_exec_ext in '' $ac_executable_extensions; do
  6875. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6876. ac_cv_prog_ac_ct_LIPO="lipo"
  6877. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6878. break 2
  6879. fi
  6880. done
  6881. done
  6882. IFS=$as_save_IFS
  6883. fi
  6884. fi
  6885. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6886. if test -n "$ac_ct_LIPO"; then
  6887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6888. $as_echo "$ac_ct_LIPO" >&6; }
  6889. else
  6890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6891. $as_echo "no" >&6; }
  6892. fi
  6893. if test "x$ac_ct_LIPO" = x; then
  6894. LIPO=":"
  6895. else
  6896. case $cross_compiling:$ac_tool_warned in
  6897. yes:)
  6898. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6899. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6900. ac_tool_warned=yes ;;
  6901. esac
  6902. LIPO=$ac_ct_LIPO
  6903. fi
  6904. else
  6905. LIPO="$ac_cv_prog_LIPO"
  6906. fi
  6907. if test -n "$ac_tool_prefix"; then
  6908. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6909. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6911. $as_echo_n "checking for $ac_word... " >&6; }
  6912. if ${ac_cv_prog_OTOOL+:} false; then :
  6913. $as_echo_n "(cached) " >&6
  6914. else
  6915. if test -n "$OTOOL"; then
  6916. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6917. else
  6918. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6919. for as_dir in $PATH
  6920. do
  6921. IFS=$as_save_IFS
  6922. test -z "$as_dir" && as_dir=.
  6923. for ac_exec_ext in '' $ac_executable_extensions; do
  6924. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6925. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6926. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6927. break 2
  6928. fi
  6929. done
  6930. done
  6931. IFS=$as_save_IFS
  6932. fi
  6933. fi
  6934. OTOOL=$ac_cv_prog_OTOOL
  6935. if test -n "$OTOOL"; then
  6936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6937. $as_echo "$OTOOL" >&6; }
  6938. else
  6939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6940. $as_echo "no" >&6; }
  6941. fi
  6942. fi
  6943. if test -z "$ac_cv_prog_OTOOL"; then
  6944. ac_ct_OTOOL=$OTOOL
  6945. # Extract the first word of "otool", so it can be a program name with args.
  6946. set dummy otool; ac_word=$2
  6947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6948. $as_echo_n "checking for $ac_word... " >&6; }
  6949. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6950. $as_echo_n "(cached) " >&6
  6951. else
  6952. if test -n "$ac_ct_OTOOL"; then
  6953. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6954. else
  6955. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6956. for as_dir in $PATH
  6957. do
  6958. IFS=$as_save_IFS
  6959. test -z "$as_dir" && as_dir=.
  6960. for ac_exec_ext in '' $ac_executable_extensions; do
  6961. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6962. ac_cv_prog_ac_ct_OTOOL="otool"
  6963. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6964. break 2
  6965. fi
  6966. done
  6967. done
  6968. IFS=$as_save_IFS
  6969. fi
  6970. fi
  6971. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6972. if test -n "$ac_ct_OTOOL"; then
  6973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6974. $as_echo "$ac_ct_OTOOL" >&6; }
  6975. else
  6976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6977. $as_echo "no" >&6; }
  6978. fi
  6979. if test "x$ac_ct_OTOOL" = x; then
  6980. OTOOL=":"
  6981. else
  6982. case $cross_compiling:$ac_tool_warned in
  6983. yes:)
  6984. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6985. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6986. ac_tool_warned=yes ;;
  6987. esac
  6988. OTOOL=$ac_ct_OTOOL
  6989. fi
  6990. else
  6991. OTOOL="$ac_cv_prog_OTOOL"
  6992. fi
  6993. if test -n "$ac_tool_prefix"; then
  6994. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6995. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6997. $as_echo_n "checking for $ac_word... " >&6; }
  6998. if ${ac_cv_prog_OTOOL64+:} false; then :
  6999. $as_echo_n "(cached) " >&6
  7000. else
  7001. if test -n "$OTOOL64"; then
  7002. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7003. else
  7004. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7005. for as_dir in $PATH
  7006. do
  7007. IFS=$as_save_IFS
  7008. test -z "$as_dir" && as_dir=.
  7009. for ac_exec_ext in '' $ac_executable_extensions; do
  7010. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7011. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7012. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7013. break 2
  7014. fi
  7015. done
  7016. done
  7017. IFS=$as_save_IFS
  7018. fi
  7019. fi
  7020. OTOOL64=$ac_cv_prog_OTOOL64
  7021. if test -n "$OTOOL64"; then
  7022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7023. $as_echo "$OTOOL64" >&6; }
  7024. else
  7025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7026. $as_echo "no" >&6; }
  7027. fi
  7028. fi
  7029. if test -z "$ac_cv_prog_OTOOL64"; then
  7030. ac_ct_OTOOL64=$OTOOL64
  7031. # Extract the first word of "otool64", so it can be a program name with args.
  7032. set dummy otool64; ac_word=$2
  7033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7034. $as_echo_n "checking for $ac_word... " >&6; }
  7035. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7036. $as_echo_n "(cached) " >&6
  7037. else
  7038. if test -n "$ac_ct_OTOOL64"; then
  7039. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7040. else
  7041. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7042. for as_dir in $PATH
  7043. do
  7044. IFS=$as_save_IFS
  7045. test -z "$as_dir" && as_dir=.
  7046. for ac_exec_ext in '' $ac_executable_extensions; do
  7047. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7048. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7049. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7050. break 2
  7051. fi
  7052. done
  7053. done
  7054. IFS=$as_save_IFS
  7055. fi
  7056. fi
  7057. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7058. if test -n "$ac_ct_OTOOL64"; then
  7059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7060. $as_echo "$ac_ct_OTOOL64" >&6; }
  7061. else
  7062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7063. $as_echo "no" >&6; }
  7064. fi
  7065. if test "x$ac_ct_OTOOL64" = x; then
  7066. OTOOL64=":"
  7067. else
  7068. case $cross_compiling:$ac_tool_warned in
  7069. yes:)
  7070. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7071. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7072. ac_tool_warned=yes ;;
  7073. esac
  7074. OTOOL64=$ac_ct_OTOOL64
  7075. fi
  7076. else
  7077. OTOOL64="$ac_cv_prog_OTOOL64"
  7078. fi
  7079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7080. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7081. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7082. $as_echo_n "(cached) " >&6
  7083. else
  7084. lt_cv_apple_cc_single_mod=no
  7085. if test -z "${LT_MULTI_MODULE}"; then
  7086. # By default we will add the -single_module flag. You can override
  7087. # by either setting the environment variable LT_MULTI_MODULE
  7088. # non-empty at configure time, or by adding -multi_module to the
  7089. # link flags.
  7090. rm -rf libconftest.dylib*
  7091. echo "int foo(void){return 1;}" > conftest.c
  7092. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7093. -dynamiclib -Wl,-single_module conftest.c" >&5
  7094. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7095. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7096. _lt_result=$?
  7097. # If there is a non-empty error log, and "single_module"
  7098. # appears in it, assume the flag caused a linker warning
  7099. if test -s conftest.err && $GREP single_module conftest.err; then
  7100. cat conftest.err >&5
  7101. # Otherwise, if the output was created with a 0 exit code from
  7102. # the compiler, it worked.
  7103. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  7104. lt_cv_apple_cc_single_mod=yes
  7105. else
  7106. cat conftest.err >&5
  7107. fi
  7108. rm -rf libconftest.dylib*
  7109. rm -f conftest.*
  7110. fi
  7111. fi
  7112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7113. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7115. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7116. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7117. $as_echo_n "(cached) " >&6
  7118. else
  7119. lt_cv_ld_exported_symbols_list=no
  7120. save_LDFLAGS=$LDFLAGS
  7121. echo "_main" > conftest.sym
  7122. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7123. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7124. /* end confdefs.h. */
  7125. int
  7126. main ()
  7127. {
  7128. ;
  7129. return 0;
  7130. }
  7131. _ACEOF
  7132. if ac_fn_c_try_link "$LINENO"; then :
  7133. lt_cv_ld_exported_symbols_list=yes
  7134. else
  7135. lt_cv_ld_exported_symbols_list=no
  7136. fi
  7137. rm -f core conftest.err conftest.$ac_objext \
  7138. conftest$ac_exeext conftest.$ac_ext
  7139. LDFLAGS="$save_LDFLAGS"
  7140. fi
  7141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7142. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7144. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7145. if ${lt_cv_ld_force_load+:} false; then :
  7146. $as_echo_n "(cached) " >&6
  7147. else
  7148. lt_cv_ld_force_load=no
  7149. cat > conftest.c << _LT_EOF
  7150. int forced_loaded() { return 2;}
  7151. _LT_EOF
  7152. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7153. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7154. echo "$AR cru libconftest.a conftest.o" >&5
  7155. $AR cru libconftest.a conftest.o 2>&5
  7156. echo "$RANLIB libconftest.a" >&5
  7157. $RANLIB libconftest.a 2>&5
  7158. cat > conftest.c << _LT_EOF
  7159. int main() { return 0;}
  7160. _LT_EOF
  7161. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7162. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7163. _lt_result=$?
  7164. if test -s conftest.err && $GREP force_load conftest.err; then
  7165. cat conftest.err >&5
  7166. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  7167. lt_cv_ld_force_load=yes
  7168. else
  7169. cat conftest.err >&5
  7170. fi
  7171. rm -f conftest.err libconftest.a conftest conftest.c
  7172. rm -rf conftest.dSYM
  7173. fi
  7174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7175. $as_echo "$lt_cv_ld_force_load" >&6; }
  7176. case $host_os in
  7177. rhapsody* | darwin1.[012])
  7178. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7179. darwin1.*)
  7180. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7181. darwin*) # darwin 5.x on
  7182. # if running on 10.5 or later, the deployment target defaults
  7183. # to the OS version, if on x86, and 10.4, the deployment
  7184. # target defaults to 10.4. Don't you love it?
  7185. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7186. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7187. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7188. 10.[012]*)
  7189. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7190. 10.*)
  7191. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7192. esac
  7193. ;;
  7194. esac
  7195. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7196. _lt_dar_single_mod='$single_module'
  7197. fi
  7198. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7199. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7200. else
  7201. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7202. fi
  7203. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7204. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7205. else
  7206. _lt_dsymutil=
  7207. fi
  7208. ;;
  7209. esac
  7210. ac_ext=c
  7211. ac_cpp='$CPP $CPPFLAGS'
  7212. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7213. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7214. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  7216. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  7217. # On Suns, sometimes $CPP names a directory.
  7218. if test -n "$CPP" && test -d "$CPP"; then
  7219. CPP=
  7220. fi
  7221. if test -z "$CPP"; then
  7222. if ${ac_cv_prog_CPP+:} false; then :
  7223. $as_echo_n "(cached) " >&6
  7224. else
  7225. # Double quotes because CPP needs to be expanded
  7226. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  7227. do
  7228. ac_preproc_ok=false
  7229. for ac_c_preproc_warn_flag in '' yes
  7230. do
  7231. # Use a header file that comes with gcc, so configuring glibc
  7232. # with a fresh cross-compiler works.
  7233. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7234. # <limits.h> exists even on freestanding compilers.
  7235. # On the NeXT, cc -E runs the code through the compiler's parser,
  7236. # not just through cpp. "Syntax error" is here to catch this case.
  7237. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7238. /* end confdefs.h. */
  7239. #ifdef __STDC__
  7240. # include <limits.h>
  7241. #else
  7242. # include <assert.h>
  7243. #endif
  7244. Syntax error
  7245. _ACEOF
  7246. if ac_fn_c_try_cpp "$LINENO"; then :
  7247. else
  7248. # Broken: fails on valid input.
  7249. continue
  7250. fi
  7251. rm -f conftest.err conftest.i conftest.$ac_ext
  7252. # OK, works on sane cases. Now check whether nonexistent headers
  7253. # can be detected and how.
  7254. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7255. /* end confdefs.h. */
  7256. #include <ac_nonexistent.h>
  7257. _ACEOF
  7258. if ac_fn_c_try_cpp "$LINENO"; then :
  7259. # Broken: success on invalid input.
  7260. continue
  7261. else
  7262. # Passes both tests.
  7263. ac_preproc_ok=:
  7264. break
  7265. fi
  7266. rm -f conftest.err conftest.i conftest.$ac_ext
  7267. done
  7268. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7269. rm -f conftest.i conftest.err conftest.$ac_ext
  7270. if $ac_preproc_ok; then :
  7271. break
  7272. fi
  7273. done
  7274. ac_cv_prog_CPP=$CPP
  7275. fi
  7276. CPP=$ac_cv_prog_CPP
  7277. else
  7278. ac_cv_prog_CPP=$CPP
  7279. fi
  7280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  7281. $as_echo "$CPP" >&6; }
  7282. ac_preproc_ok=false
  7283. for ac_c_preproc_warn_flag in '' yes
  7284. do
  7285. # Use a header file that comes with gcc, so configuring glibc
  7286. # with a fresh cross-compiler works.
  7287. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7288. # <limits.h> exists even on freestanding compilers.
  7289. # On the NeXT, cc -E runs the code through the compiler's parser,
  7290. # not just through cpp. "Syntax error" is here to catch this case.
  7291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7292. /* end confdefs.h. */
  7293. #ifdef __STDC__
  7294. # include <limits.h>
  7295. #else
  7296. # include <assert.h>
  7297. #endif
  7298. Syntax error
  7299. _ACEOF
  7300. if ac_fn_c_try_cpp "$LINENO"; then :
  7301. else
  7302. # Broken: fails on valid input.
  7303. continue
  7304. fi
  7305. rm -f conftest.err conftest.i conftest.$ac_ext
  7306. # OK, works on sane cases. Now check whether nonexistent headers
  7307. # can be detected and how.
  7308. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7309. /* end confdefs.h. */
  7310. #include <ac_nonexistent.h>
  7311. _ACEOF
  7312. if ac_fn_c_try_cpp "$LINENO"; then :
  7313. # Broken: success on invalid input.
  7314. continue
  7315. else
  7316. # Passes both tests.
  7317. ac_preproc_ok=:
  7318. break
  7319. fi
  7320. rm -f conftest.err conftest.i conftest.$ac_ext
  7321. done
  7322. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7323. rm -f conftest.i conftest.err conftest.$ac_ext
  7324. if $ac_preproc_ok; then :
  7325. else
  7326. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7327. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7328. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  7329. See \`config.log' for more details" "$LINENO" 5; }
  7330. fi
  7331. ac_ext=c
  7332. ac_cpp='$CPP $CPPFLAGS'
  7333. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7334. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7335. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  7337. $as_echo_n "checking for ANSI C header files... " >&6; }
  7338. if ${ac_cv_header_stdc+:} false; then :
  7339. $as_echo_n "(cached) " >&6
  7340. else
  7341. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7342. /* end confdefs.h. */
  7343. #include <stdlib.h>
  7344. #include <stdarg.h>
  7345. #include <string.h>
  7346. #include <float.h>
  7347. int
  7348. main ()
  7349. {
  7350. ;
  7351. return 0;
  7352. }
  7353. _ACEOF
  7354. if ac_fn_c_try_compile "$LINENO"; then :
  7355. ac_cv_header_stdc=yes
  7356. else
  7357. ac_cv_header_stdc=no
  7358. fi
  7359. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7360. if test $ac_cv_header_stdc = yes; then
  7361. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7362. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7363. /* end confdefs.h. */
  7364. #include <string.h>
  7365. _ACEOF
  7366. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7367. $EGREP "memchr" >/dev/null 2>&1; then :
  7368. else
  7369. ac_cv_header_stdc=no
  7370. fi
  7371. rm -f conftest*
  7372. fi
  7373. if test $ac_cv_header_stdc = yes; then
  7374. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7375. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7376. /* end confdefs.h. */
  7377. #include <stdlib.h>
  7378. _ACEOF
  7379. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7380. $EGREP "free" >/dev/null 2>&1; then :
  7381. else
  7382. ac_cv_header_stdc=no
  7383. fi
  7384. rm -f conftest*
  7385. fi
  7386. if test $ac_cv_header_stdc = yes; then
  7387. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7388. if test "$cross_compiling" = yes; then :
  7389. :
  7390. else
  7391. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7392. /* end confdefs.h. */
  7393. #include <ctype.h>
  7394. #include <stdlib.h>
  7395. #if ((' ' & 0x0FF) == 0x020)
  7396. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7397. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7398. #else
  7399. # define ISLOWER(c) \
  7400. (('a' <= (c) && (c) <= 'i') \
  7401. || ('j' <= (c) && (c) <= 'r') \
  7402. || ('s' <= (c) && (c) <= 'z'))
  7403. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7404. #endif
  7405. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7406. int
  7407. main ()
  7408. {
  7409. int i;
  7410. for (i = 0; i < 256; i++)
  7411. if (XOR (islower (i), ISLOWER (i))
  7412. || toupper (i) != TOUPPER (i))
  7413. return 2;
  7414. return 0;
  7415. }
  7416. _ACEOF
  7417. if ac_fn_c_try_run "$LINENO"; then :
  7418. else
  7419. ac_cv_header_stdc=no
  7420. fi
  7421. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7422. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7423. fi
  7424. fi
  7425. fi
  7426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7427. $as_echo "$ac_cv_header_stdc" >&6; }
  7428. if test $ac_cv_header_stdc = yes; then
  7429. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7430. fi
  7431. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7432. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7433. inttypes.h stdint.h unistd.h
  7434. do :
  7435. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7436. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7437. "
  7438. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7439. cat >>confdefs.h <<_ACEOF
  7440. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7441. _ACEOF
  7442. fi
  7443. done
  7444. for ac_header in dlfcn.h
  7445. do :
  7446. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7447. "
  7448. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7449. cat >>confdefs.h <<_ACEOF
  7450. #define HAVE_DLFCN_H 1
  7451. _ACEOF
  7452. fi
  7453. done
  7454. # Set options
  7455. enable_dlopen=no
  7456. enable_win32_dll=no
  7457. # Check whether --enable-shared was given.
  7458. if test "${enable_shared+set}" = set; then :
  7459. enableval=$enable_shared; p=${PACKAGE-default}
  7460. case $enableval in
  7461. yes) enable_shared=yes ;;
  7462. no) enable_shared=no ;;
  7463. *)
  7464. enable_shared=no
  7465. # Look at the argument we got. We use all the common list separators.
  7466. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7467. for pkg in $enableval; do
  7468. IFS="$lt_save_ifs"
  7469. if test "X$pkg" = "X$p"; then
  7470. enable_shared=yes
  7471. fi
  7472. done
  7473. IFS="$lt_save_ifs"
  7474. ;;
  7475. esac
  7476. else
  7477. enable_shared=yes
  7478. fi
  7479. # Check whether --enable-static was given.
  7480. if test "${enable_static+set}" = set; then :
  7481. enableval=$enable_static; p=${PACKAGE-default}
  7482. case $enableval in
  7483. yes) enable_static=yes ;;
  7484. no) enable_static=no ;;
  7485. *)
  7486. enable_static=no
  7487. # Look at the argument we got. We use all the common list separators.
  7488. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7489. for pkg in $enableval; do
  7490. IFS="$lt_save_ifs"
  7491. if test "X$pkg" = "X$p"; then
  7492. enable_static=yes
  7493. fi
  7494. done
  7495. IFS="$lt_save_ifs"
  7496. ;;
  7497. esac
  7498. else
  7499. enable_static=yes
  7500. fi
  7501. # Check whether --with-pic was given.
  7502. if test "${with_pic+set}" = set; then :
  7503. withval=$with_pic; lt_p=${PACKAGE-default}
  7504. case $withval in
  7505. yes|no) pic_mode=$withval ;;
  7506. *)
  7507. pic_mode=default
  7508. # Look at the argument we got. We use all the common list separators.
  7509. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7510. for lt_pkg in $withval; do
  7511. IFS="$lt_save_ifs"
  7512. if test "X$lt_pkg" = "X$lt_p"; then
  7513. pic_mode=yes
  7514. fi
  7515. done
  7516. IFS="$lt_save_ifs"
  7517. ;;
  7518. esac
  7519. else
  7520. pic_mode=default
  7521. fi
  7522. test -z "$pic_mode" && pic_mode=default
  7523. # Check whether --enable-fast-install was given.
  7524. if test "${enable_fast_install+set}" = set; then :
  7525. enableval=$enable_fast_install; p=${PACKAGE-default}
  7526. case $enableval in
  7527. yes) enable_fast_install=yes ;;
  7528. no) enable_fast_install=no ;;
  7529. *)
  7530. enable_fast_install=no
  7531. # Look at the argument we got. We use all the common list separators.
  7532. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7533. for pkg in $enableval; do
  7534. IFS="$lt_save_ifs"
  7535. if test "X$pkg" = "X$p"; then
  7536. enable_fast_install=yes
  7537. fi
  7538. done
  7539. IFS="$lt_save_ifs"
  7540. ;;
  7541. esac
  7542. else
  7543. enable_fast_install=yes
  7544. fi
  7545. # This can be used to rebuild libtool when needed
  7546. LIBTOOL_DEPS="$ltmain"
  7547. # Always use our own libtool.
  7548. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7549. test -z "$LN_S" && LN_S="ln -s"
  7550. if test -n "${ZSH_VERSION+set}" ; then
  7551. setopt NO_GLOB_SUBST
  7552. fi
  7553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7554. $as_echo_n "checking for objdir... " >&6; }
  7555. if ${lt_cv_objdir+:} false; then :
  7556. $as_echo_n "(cached) " >&6
  7557. else
  7558. rm -f .libs 2>/dev/null
  7559. mkdir .libs 2>/dev/null
  7560. if test -d .libs; then
  7561. lt_cv_objdir=.libs
  7562. else
  7563. # MS-DOS does not allow filenames that begin with a dot.
  7564. lt_cv_objdir=_libs
  7565. fi
  7566. rmdir .libs 2>/dev/null
  7567. fi
  7568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7569. $as_echo "$lt_cv_objdir" >&6; }
  7570. objdir=$lt_cv_objdir
  7571. cat >>confdefs.h <<_ACEOF
  7572. #define LT_OBJDIR "$lt_cv_objdir/"
  7573. _ACEOF
  7574. case $host_os in
  7575. aix3*)
  7576. # AIX sometimes has problems with the GCC collect2 program. For some
  7577. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7578. # vanish in a puff of smoke.
  7579. if test "X${COLLECT_NAMES+set}" != Xset; then
  7580. COLLECT_NAMES=
  7581. export COLLECT_NAMES
  7582. fi
  7583. ;;
  7584. esac
  7585. # Global variables:
  7586. ofile=libtool
  7587. can_build_shared=yes
  7588. # All known linkers require a `.a' archive for static linking (except MSVC,
  7589. # which needs '.lib').
  7590. libext=a
  7591. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7592. old_CC="$CC"
  7593. old_CFLAGS="$CFLAGS"
  7594. # Set sane defaults for various variables
  7595. test -z "$CC" && CC=cc
  7596. test -z "$LTCC" && LTCC=$CC
  7597. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7598. test -z "$LD" && LD=ld
  7599. test -z "$ac_objext" && ac_objext=o
  7600. for cc_temp in $compiler""; do
  7601. case $cc_temp in
  7602. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7603. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7604. \-*) ;;
  7605. *) break;;
  7606. esac
  7607. done
  7608. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7609. # Only perform the check for file, if the check method requires it
  7610. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7611. case $deplibs_check_method in
  7612. file_magic*)
  7613. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7615. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7616. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7617. $as_echo_n "(cached) " >&6
  7618. else
  7619. case $MAGIC_CMD in
  7620. [\\/*] | ?:[\\/]*)
  7621. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7622. ;;
  7623. *)
  7624. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7625. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7626. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7627. for ac_dir in $ac_dummy; do
  7628. IFS="$lt_save_ifs"
  7629. test -z "$ac_dir" && ac_dir=.
  7630. if test -f $ac_dir/${ac_tool_prefix}file; then
  7631. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7632. if test -n "$file_magic_test_file"; then
  7633. case $deplibs_check_method in
  7634. "file_magic "*)
  7635. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7636. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7637. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7638. $EGREP "$file_magic_regex" > /dev/null; then
  7639. :
  7640. else
  7641. cat <<_LT_EOF 1>&2
  7642. *** Warning: the command libtool uses to detect shared libraries,
  7643. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7644. *** The result is that libtool may fail to recognize shared libraries
  7645. *** as such. This will affect the creation of libtool libraries that
  7646. *** depend on shared libraries, but programs linked with such libtool
  7647. *** libraries will work regardless of this problem. Nevertheless, you
  7648. *** may want to report the problem to your system manager and/or to
  7649. *** bug-libtool@gnu.org
  7650. _LT_EOF
  7651. fi ;;
  7652. esac
  7653. fi
  7654. break
  7655. fi
  7656. done
  7657. IFS="$lt_save_ifs"
  7658. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7659. ;;
  7660. esac
  7661. fi
  7662. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7663. if test -n "$MAGIC_CMD"; then
  7664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7665. $as_echo "$MAGIC_CMD" >&6; }
  7666. else
  7667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7668. $as_echo "no" >&6; }
  7669. fi
  7670. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7671. if test -n "$ac_tool_prefix"; then
  7672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7673. $as_echo_n "checking for file... " >&6; }
  7674. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7675. $as_echo_n "(cached) " >&6
  7676. else
  7677. case $MAGIC_CMD in
  7678. [\\/*] | ?:[\\/]*)
  7679. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7680. ;;
  7681. *)
  7682. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7683. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7684. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7685. for ac_dir in $ac_dummy; do
  7686. IFS="$lt_save_ifs"
  7687. test -z "$ac_dir" && ac_dir=.
  7688. if test -f $ac_dir/file; then
  7689. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7690. if test -n "$file_magic_test_file"; then
  7691. case $deplibs_check_method in
  7692. "file_magic "*)
  7693. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7694. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7695. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7696. $EGREP "$file_magic_regex" > /dev/null; then
  7697. :
  7698. else
  7699. cat <<_LT_EOF 1>&2
  7700. *** Warning: the command libtool uses to detect shared libraries,
  7701. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7702. *** The result is that libtool may fail to recognize shared libraries
  7703. *** as such. This will affect the creation of libtool libraries that
  7704. *** depend on shared libraries, but programs linked with such libtool
  7705. *** libraries will work regardless of this problem. Nevertheless, you
  7706. *** may want to report the problem to your system manager and/or to
  7707. *** bug-libtool@gnu.org
  7708. _LT_EOF
  7709. fi ;;
  7710. esac
  7711. fi
  7712. break
  7713. fi
  7714. done
  7715. IFS="$lt_save_ifs"
  7716. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7717. ;;
  7718. esac
  7719. fi
  7720. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7721. if test -n "$MAGIC_CMD"; then
  7722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7723. $as_echo "$MAGIC_CMD" >&6; }
  7724. else
  7725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7726. $as_echo "no" >&6; }
  7727. fi
  7728. else
  7729. MAGIC_CMD=:
  7730. fi
  7731. fi
  7732. fi
  7733. ;;
  7734. esac
  7735. # Use C for the default configuration in the libtool script
  7736. lt_save_CC="$CC"
  7737. ac_ext=c
  7738. ac_cpp='$CPP $CPPFLAGS'
  7739. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7740. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7741. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7742. # Source file extension for C test sources.
  7743. ac_ext=c
  7744. # Object file extension for compiled C test sources.
  7745. objext=o
  7746. objext=$objext
  7747. # Code to be used in simple compile tests
  7748. lt_simple_compile_test_code="int some_variable = 0;"
  7749. # Code to be used in simple link tests
  7750. lt_simple_link_test_code='int main(){return(0);}'
  7751. # If no C compiler was specified, use CC.
  7752. LTCC=${LTCC-"$CC"}
  7753. # If no C compiler flags were specified, use CFLAGS.
  7754. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7755. # Allow CC to be a program name with arguments.
  7756. compiler=$CC
  7757. # Save the default compiler, since it gets overwritten when the other
  7758. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7759. compiler_DEFAULT=$CC
  7760. # save warnings/boilerplate of simple test code
  7761. ac_outfile=conftest.$ac_objext
  7762. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7763. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7764. _lt_compiler_boilerplate=`cat conftest.err`
  7765. $RM conftest*
  7766. ac_outfile=conftest.$ac_objext
  7767. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7768. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7769. _lt_linker_boilerplate=`cat conftest.err`
  7770. $RM -r conftest*
  7771. ## CAVEAT EMPTOR:
  7772. ## There is no encapsulation within the following macros, do not change
  7773. ## the running order or otherwise move them around unless you know exactly
  7774. ## what you are doing...
  7775. if test -n "$compiler"; then
  7776. lt_prog_compiler_no_builtin_flag=
  7777. if test "$GCC" = yes; then
  7778. case $cc_basename in
  7779. nvcc*)
  7780. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7781. *)
  7782. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7783. esac
  7784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7785. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7786. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7787. $as_echo_n "(cached) " >&6
  7788. else
  7789. lt_cv_prog_compiler_rtti_exceptions=no
  7790. ac_outfile=conftest.$ac_objext
  7791. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7792. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7793. # Insert the option either (1) after the last *FLAGS variable, or
  7794. # (2) before a word containing "conftest.", or (3) at the end.
  7795. # Note that $ac_compile itself does not contain backslashes and begins
  7796. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7797. # The option is referenced via a variable to avoid confusing sed.
  7798. lt_compile=`echo "$ac_compile" | $SED \
  7799. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7800. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7801. -e 's:$: $lt_compiler_flag:'`
  7802. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7803. (eval "$lt_compile" 2>conftest.err)
  7804. ac_status=$?
  7805. cat conftest.err >&5
  7806. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7807. if (exit $ac_status) && test -s "$ac_outfile"; then
  7808. # The compiler can only warn and ignore the option if not recognized
  7809. # So say no if there are warnings other than the usual output.
  7810. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7811. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7812. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7813. lt_cv_prog_compiler_rtti_exceptions=yes
  7814. fi
  7815. fi
  7816. $RM conftest*
  7817. fi
  7818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7819. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7820. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7821. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7822. else
  7823. :
  7824. fi
  7825. fi
  7826. lt_prog_compiler_wl=
  7827. lt_prog_compiler_pic=
  7828. lt_prog_compiler_static=
  7829. if test "$GCC" = yes; then
  7830. lt_prog_compiler_wl='-Wl,'
  7831. lt_prog_compiler_static='-static'
  7832. case $host_os in
  7833. aix*)
  7834. # All AIX code is PIC.
  7835. if test "$host_cpu" = ia64; then
  7836. # AIX 5 now supports IA64 processor
  7837. lt_prog_compiler_static='-Bstatic'
  7838. fi
  7839. ;;
  7840. amigaos*)
  7841. case $host_cpu in
  7842. powerpc)
  7843. # see comment about AmigaOS4 .so support
  7844. lt_prog_compiler_pic='-fPIC'
  7845. ;;
  7846. m68k)
  7847. # FIXME: we need at least 68020 code to build shared libraries, but
  7848. # adding the `-m68020' flag to GCC prevents building anything better,
  7849. # like `-m68040'.
  7850. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7851. ;;
  7852. esac
  7853. ;;
  7854. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7855. # PIC is the default for these OSes.
  7856. ;;
  7857. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7858. # This hack is so that the source file can tell whether it is being
  7859. # built for inclusion in a dll (and should export symbols for example).
  7860. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7861. # (--disable-auto-import) libraries
  7862. lt_prog_compiler_pic='-DDLL_EXPORT'
  7863. ;;
  7864. darwin* | rhapsody*)
  7865. # PIC is the default on this platform
  7866. # Common symbols not allowed in MH_DYLIB files
  7867. lt_prog_compiler_pic='-fno-common'
  7868. ;;
  7869. haiku*)
  7870. # PIC is the default for Haiku.
  7871. # The "-static" flag exists, but is broken.
  7872. lt_prog_compiler_static=
  7873. ;;
  7874. hpux*)
  7875. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7876. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7877. # sets the default TLS model and affects inlining.
  7878. case $host_cpu in
  7879. hppa*64*)
  7880. # +Z the default
  7881. ;;
  7882. *)
  7883. lt_prog_compiler_pic='-fPIC'
  7884. ;;
  7885. esac
  7886. ;;
  7887. interix[3-9]*)
  7888. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7889. # Instead, we relocate shared libraries at runtime.
  7890. ;;
  7891. msdosdjgpp*)
  7892. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7893. # on systems that don't support them.
  7894. lt_prog_compiler_can_build_shared=no
  7895. enable_shared=no
  7896. ;;
  7897. *nto* | *qnx*)
  7898. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7899. # it will coredump.
  7900. lt_prog_compiler_pic='-fPIC -shared'
  7901. ;;
  7902. sysv4*MP*)
  7903. if test -d /usr/nec; then
  7904. lt_prog_compiler_pic=-Kconform_pic
  7905. fi
  7906. ;;
  7907. *)
  7908. lt_prog_compiler_pic='-fPIC'
  7909. ;;
  7910. esac
  7911. case $cc_basename in
  7912. nvcc*) # Cuda Compiler Driver 2.2
  7913. lt_prog_compiler_wl='-Xlinker '
  7914. if test -n "$lt_prog_compiler_pic"; then
  7915. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7916. fi
  7917. ;;
  7918. esac
  7919. else
  7920. # PORTME Check for flag to pass linker flags through the system compiler.
  7921. case $host_os in
  7922. aix*)
  7923. lt_prog_compiler_wl='-Wl,'
  7924. if test "$host_cpu" = ia64; then
  7925. # AIX 5 now supports IA64 processor
  7926. lt_prog_compiler_static='-Bstatic'
  7927. else
  7928. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7929. fi
  7930. ;;
  7931. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7932. # This hack is so that the source file can tell whether it is being
  7933. # built for inclusion in a dll (and should export symbols for example).
  7934. lt_prog_compiler_pic='-DDLL_EXPORT'
  7935. ;;
  7936. hpux9* | hpux10* | hpux11*)
  7937. lt_prog_compiler_wl='-Wl,'
  7938. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7939. # not for PA HP-UX.
  7940. case $host_cpu in
  7941. hppa*64*|ia64*)
  7942. # +Z the default
  7943. ;;
  7944. *)
  7945. lt_prog_compiler_pic='+Z'
  7946. ;;
  7947. esac
  7948. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7949. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7950. ;;
  7951. irix5* | irix6* | nonstopux*)
  7952. lt_prog_compiler_wl='-Wl,'
  7953. # PIC (with -KPIC) is the default.
  7954. lt_prog_compiler_static='-non_shared'
  7955. ;;
  7956. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  7957. case $cc_basename in
  7958. # old Intel for x86_64 which still supported -KPIC.
  7959. ecc*)
  7960. lt_prog_compiler_wl='-Wl,'
  7961. lt_prog_compiler_pic='-KPIC'
  7962. lt_prog_compiler_static='-static'
  7963. ;;
  7964. # icc used to be incompatible with GCC.
  7965. # ICC 10 doesn't accept -KPIC any more.
  7966. icc* | ifort*)
  7967. lt_prog_compiler_wl='-Wl,'
  7968. lt_prog_compiler_pic='-fPIC'
  7969. lt_prog_compiler_static='-static'
  7970. ;;
  7971. # Lahey Fortran 8.1.
  7972. lf95*)
  7973. lt_prog_compiler_wl='-Wl,'
  7974. lt_prog_compiler_pic='--shared'
  7975. lt_prog_compiler_static='--static'
  7976. ;;
  7977. nagfor*)
  7978. # NAG Fortran compiler
  7979. lt_prog_compiler_wl='-Wl,-Wl,,'
  7980. lt_prog_compiler_pic='-PIC'
  7981. lt_prog_compiler_static='-Bstatic'
  7982. ;;
  7983. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7984. # Portland Group compilers (*not* the Pentium gcc compiler,
  7985. # which looks to be a dead project)
  7986. lt_prog_compiler_wl='-Wl,'
  7987. lt_prog_compiler_pic='-fpic'
  7988. lt_prog_compiler_static='-Bstatic'
  7989. ;;
  7990. ccc*)
  7991. lt_prog_compiler_wl='-Wl,'
  7992. # All Alpha code is PIC.
  7993. lt_prog_compiler_static='-non_shared'
  7994. ;;
  7995. xl* | bgxl* | bgf* | mpixl*)
  7996. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7997. lt_prog_compiler_wl='-Wl,'
  7998. lt_prog_compiler_pic='-qpic'
  7999. lt_prog_compiler_static='-qstaticlink'
  8000. ;;
  8001. *)
  8002. case `$CC -V 2>&1 | sed 5q` in
  8003. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8004. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8005. lt_prog_compiler_pic='-KPIC'
  8006. lt_prog_compiler_static='-Bstatic'
  8007. lt_prog_compiler_wl=''
  8008. ;;
  8009. *Sun\ F* | *Sun*Fortran*)
  8010. lt_prog_compiler_pic='-KPIC'
  8011. lt_prog_compiler_static='-Bstatic'
  8012. lt_prog_compiler_wl='-Qoption ld '
  8013. ;;
  8014. *Sun\ C*)
  8015. # Sun C 5.9
  8016. lt_prog_compiler_pic='-KPIC'
  8017. lt_prog_compiler_static='-Bstatic'
  8018. lt_prog_compiler_wl='-Wl,'
  8019. ;;
  8020. *Intel*\ [CF]*Compiler*)
  8021. lt_prog_compiler_wl='-Wl,'
  8022. lt_prog_compiler_pic='-fPIC'
  8023. lt_prog_compiler_static='-static'
  8024. ;;
  8025. *Portland\ Group*)
  8026. lt_prog_compiler_wl='-Wl,'
  8027. lt_prog_compiler_pic='-fpic'
  8028. lt_prog_compiler_static='-Bstatic'
  8029. ;;
  8030. esac
  8031. ;;
  8032. esac
  8033. ;;
  8034. newsos6)
  8035. lt_prog_compiler_pic='-KPIC'
  8036. lt_prog_compiler_static='-Bstatic'
  8037. ;;
  8038. *nto* | *qnx*)
  8039. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8040. # it will coredump.
  8041. lt_prog_compiler_pic='-fPIC -shared'
  8042. ;;
  8043. osf3* | osf4* | osf5*)
  8044. lt_prog_compiler_wl='-Wl,'
  8045. # All OSF/1 code is PIC.
  8046. lt_prog_compiler_static='-non_shared'
  8047. ;;
  8048. rdos*)
  8049. lt_prog_compiler_static='-non_shared'
  8050. ;;
  8051. solaris*)
  8052. lt_prog_compiler_pic='-KPIC'
  8053. lt_prog_compiler_static='-Bstatic'
  8054. case $cc_basename in
  8055. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8056. lt_prog_compiler_wl='-Qoption ld ';;
  8057. *)
  8058. lt_prog_compiler_wl='-Wl,';;
  8059. esac
  8060. ;;
  8061. sunos4*)
  8062. lt_prog_compiler_wl='-Qoption ld '
  8063. lt_prog_compiler_pic='-PIC'
  8064. lt_prog_compiler_static='-Bstatic'
  8065. ;;
  8066. sysv4 | sysv4.2uw2* | sysv4.3*)
  8067. lt_prog_compiler_wl='-Wl,'
  8068. lt_prog_compiler_pic='-KPIC'
  8069. lt_prog_compiler_static='-Bstatic'
  8070. ;;
  8071. sysv4*MP*)
  8072. if test -d /usr/nec ;then
  8073. lt_prog_compiler_pic='-Kconform_pic'
  8074. lt_prog_compiler_static='-Bstatic'
  8075. fi
  8076. ;;
  8077. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8078. lt_prog_compiler_wl='-Wl,'
  8079. lt_prog_compiler_pic='-KPIC'
  8080. lt_prog_compiler_static='-Bstatic'
  8081. ;;
  8082. unicos*)
  8083. lt_prog_compiler_wl='-Wl,'
  8084. lt_prog_compiler_can_build_shared=no
  8085. ;;
  8086. uts4*)
  8087. lt_prog_compiler_pic='-pic'
  8088. lt_prog_compiler_static='-Bstatic'
  8089. ;;
  8090. *)
  8091. lt_prog_compiler_can_build_shared=no
  8092. ;;
  8093. esac
  8094. fi
  8095. case $host_os in
  8096. # For platforms which do not support PIC, -DPIC is meaningless:
  8097. *djgpp*)
  8098. lt_prog_compiler_pic=
  8099. ;;
  8100. *)
  8101. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8102. ;;
  8103. esac
  8104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8105. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8106. if ${lt_cv_prog_compiler_pic+:} false; then :
  8107. $as_echo_n "(cached) " >&6
  8108. else
  8109. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8110. fi
  8111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8112. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  8113. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8114. #
  8115. # Check to make sure the PIC flag actually works.
  8116. #
  8117. if test -n "$lt_prog_compiler_pic"; then
  8118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8119. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8120. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8121. $as_echo_n "(cached) " >&6
  8122. else
  8123. lt_cv_prog_compiler_pic_works=no
  8124. ac_outfile=conftest.$ac_objext
  8125. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8126. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  8127. # Insert the option either (1) after the last *FLAGS variable, or
  8128. # (2) before a word containing "conftest.", or (3) at the end.
  8129. # Note that $ac_compile itself does not contain backslashes and begins
  8130. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8131. # The option is referenced via a variable to avoid confusing sed.
  8132. lt_compile=`echo "$ac_compile" | $SED \
  8133. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8134. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8135. -e 's:$: $lt_compiler_flag:'`
  8136. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8137. (eval "$lt_compile" 2>conftest.err)
  8138. ac_status=$?
  8139. cat conftest.err >&5
  8140. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8141. if (exit $ac_status) && test -s "$ac_outfile"; then
  8142. # The compiler can only warn and ignore the option if not recognized
  8143. # So say no if there are warnings other than the usual output.
  8144. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8145. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8146. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8147. lt_cv_prog_compiler_pic_works=yes
  8148. fi
  8149. fi
  8150. $RM conftest*
  8151. fi
  8152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8153. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8154. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8155. case $lt_prog_compiler_pic in
  8156. "" | " "*) ;;
  8157. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8158. esac
  8159. else
  8160. lt_prog_compiler_pic=
  8161. lt_prog_compiler_can_build_shared=no
  8162. fi
  8163. fi
  8164. #
  8165. # Check to make sure the static flag actually works.
  8166. #
  8167. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8169. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8170. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8171. $as_echo_n "(cached) " >&6
  8172. else
  8173. lt_cv_prog_compiler_static_works=no
  8174. save_LDFLAGS="$LDFLAGS"
  8175. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8176. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8177. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8178. # The linker can only warn and ignore the option if not recognized
  8179. # So say no if there are warnings
  8180. if test -s conftest.err; then
  8181. # Append any errors to the config.log.
  8182. cat conftest.err 1>&5
  8183. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8184. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8185. if diff conftest.exp conftest.er2 >/dev/null; then
  8186. lt_cv_prog_compiler_static_works=yes
  8187. fi
  8188. else
  8189. lt_cv_prog_compiler_static_works=yes
  8190. fi
  8191. fi
  8192. $RM -r conftest*
  8193. LDFLAGS="$save_LDFLAGS"
  8194. fi
  8195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8196. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8197. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8198. :
  8199. else
  8200. lt_prog_compiler_static=
  8201. fi
  8202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8203. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8204. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8205. $as_echo_n "(cached) " >&6
  8206. else
  8207. lt_cv_prog_compiler_c_o=no
  8208. $RM -r conftest 2>/dev/null
  8209. mkdir conftest
  8210. cd conftest
  8211. mkdir out
  8212. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8213. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8214. # Insert the option either (1) after the last *FLAGS variable, or
  8215. # (2) before a word containing "conftest.", or (3) at the end.
  8216. # Note that $ac_compile itself does not contain backslashes and begins
  8217. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8218. lt_compile=`echo "$ac_compile" | $SED \
  8219. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8220. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8221. -e 's:$: $lt_compiler_flag:'`
  8222. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8223. (eval "$lt_compile" 2>out/conftest.err)
  8224. ac_status=$?
  8225. cat out/conftest.err >&5
  8226. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8227. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8228. then
  8229. # The compiler can only warn and ignore the option if not recognized
  8230. # So say no if there are warnings
  8231. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8232. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8233. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8234. lt_cv_prog_compiler_c_o=yes
  8235. fi
  8236. fi
  8237. chmod u+w . 2>&5
  8238. $RM conftest*
  8239. # SGI C++ compiler will create directory out/ii_files/ for
  8240. # template instantiation
  8241. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8242. $RM out/* && rmdir out
  8243. cd ..
  8244. $RM -r conftest
  8245. $RM conftest*
  8246. fi
  8247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8248. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8250. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8251. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8252. $as_echo_n "(cached) " >&6
  8253. else
  8254. lt_cv_prog_compiler_c_o=no
  8255. $RM -r conftest 2>/dev/null
  8256. mkdir conftest
  8257. cd conftest
  8258. mkdir out
  8259. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8260. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8261. # Insert the option either (1) after the last *FLAGS variable, or
  8262. # (2) before a word containing "conftest.", or (3) at the end.
  8263. # Note that $ac_compile itself does not contain backslashes and begins
  8264. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8265. lt_compile=`echo "$ac_compile" | $SED \
  8266. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8267. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8268. -e 's:$: $lt_compiler_flag:'`
  8269. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8270. (eval "$lt_compile" 2>out/conftest.err)
  8271. ac_status=$?
  8272. cat out/conftest.err >&5
  8273. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8274. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8275. then
  8276. # The compiler can only warn and ignore the option if not recognized
  8277. # So say no if there are warnings
  8278. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8279. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8280. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8281. lt_cv_prog_compiler_c_o=yes
  8282. fi
  8283. fi
  8284. chmod u+w . 2>&5
  8285. $RM conftest*
  8286. # SGI C++ compiler will create directory out/ii_files/ for
  8287. # template instantiation
  8288. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8289. $RM out/* && rmdir out
  8290. cd ..
  8291. $RM -r conftest
  8292. $RM conftest*
  8293. fi
  8294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8295. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8296. hard_links="nottested"
  8297. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8298. # do not overwrite the value of need_locks provided by the user
  8299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8300. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8301. hard_links=yes
  8302. $RM conftest*
  8303. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8304. touch conftest.a
  8305. ln conftest.a conftest.b 2>&5 || hard_links=no
  8306. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8308. $as_echo "$hard_links" >&6; }
  8309. if test "$hard_links" = no; then
  8310. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8311. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8312. need_locks=warn
  8313. fi
  8314. else
  8315. need_locks=no
  8316. fi
  8317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8318. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8319. runpath_var=
  8320. allow_undefined_flag=
  8321. always_export_symbols=no
  8322. archive_cmds=
  8323. archive_expsym_cmds=
  8324. compiler_needs_object=no
  8325. enable_shared_with_static_runtimes=no
  8326. export_dynamic_flag_spec=
  8327. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8328. hardcode_automatic=no
  8329. hardcode_direct=no
  8330. hardcode_direct_absolute=no
  8331. hardcode_libdir_flag_spec=
  8332. hardcode_libdir_separator=
  8333. hardcode_minus_L=no
  8334. hardcode_shlibpath_var=unsupported
  8335. inherit_rpath=no
  8336. link_all_deplibs=unknown
  8337. module_cmds=
  8338. module_expsym_cmds=
  8339. old_archive_from_new_cmds=
  8340. old_archive_from_expsyms_cmds=
  8341. thread_safe_flag_spec=
  8342. whole_archive_flag_spec=
  8343. # include_expsyms should be a list of space-separated symbols to be *always*
  8344. # included in the symbol list
  8345. include_expsyms=
  8346. # exclude_expsyms can be an extended regexp of symbols to exclude
  8347. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8348. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8349. # as well as any symbol that contains `d'.
  8350. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8351. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8352. # platforms (ab)use it in PIC code, but their linkers get confused if
  8353. # the symbol is explicitly referenced. Since portable code cannot
  8354. # rely on this symbol name, it's probably fine to never include it in
  8355. # preloaded symbol tables.
  8356. # Exclude shared library initialization/finalization symbols.
  8357. extract_expsyms_cmds=
  8358. case $host_os in
  8359. cygwin* | mingw* | pw32* | cegcc*)
  8360. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8361. # When not using gcc, we currently assume that we are using
  8362. # Microsoft Visual C++.
  8363. if test "$GCC" != yes; then
  8364. with_gnu_ld=no
  8365. fi
  8366. ;;
  8367. interix*)
  8368. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8369. with_gnu_ld=yes
  8370. ;;
  8371. openbsd*)
  8372. with_gnu_ld=no
  8373. ;;
  8374. linux* | k*bsd*-gnu | gnu*)
  8375. link_all_deplibs=no
  8376. ;;
  8377. esac
  8378. ld_shlibs=yes
  8379. # On some targets, GNU ld is compatible enough with the native linker
  8380. # that we're better off using the native interface for both.
  8381. lt_use_gnu_ld_interface=no
  8382. if test "$with_gnu_ld" = yes; then
  8383. case $host_os in
  8384. aix*)
  8385. # The AIX port of GNU ld has always aspired to compatibility
  8386. # with the native linker. However, as the warning in the GNU ld
  8387. # block says, versions before 2.19.5* couldn't really create working
  8388. # shared libraries, regardless of the interface used.
  8389. case `$LD -v 2>&1` in
  8390. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8391. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8392. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8393. *)
  8394. lt_use_gnu_ld_interface=yes
  8395. ;;
  8396. esac
  8397. ;;
  8398. *)
  8399. lt_use_gnu_ld_interface=yes
  8400. ;;
  8401. esac
  8402. fi
  8403. if test "$lt_use_gnu_ld_interface" = yes; then
  8404. # If archive_cmds runs LD, not CC, wlarc should be empty
  8405. wlarc='${wl}'
  8406. # Set some defaults for GNU ld with shared library support. These
  8407. # are reset later if shared libraries are not supported. Putting them
  8408. # here allows them to be overridden if necessary.
  8409. runpath_var=LD_RUN_PATH
  8410. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8411. export_dynamic_flag_spec='${wl}--export-dynamic'
  8412. # ancient GNU ld didn't support --whole-archive et. al.
  8413. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8414. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8415. else
  8416. whole_archive_flag_spec=
  8417. fi
  8418. supports_anon_versioning=no
  8419. case `$LD -v 2>&1` in
  8420. *GNU\ gold*) supports_anon_versioning=yes ;;
  8421. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8422. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8423. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8424. *\ 2.11.*) ;; # other 2.11 versions
  8425. *) supports_anon_versioning=yes ;;
  8426. esac
  8427. # See if GNU ld supports shared libraries.
  8428. case $host_os in
  8429. aix[3-9]*)
  8430. # On AIX/PPC, the GNU linker is very broken
  8431. if test "$host_cpu" != ia64; then
  8432. ld_shlibs=no
  8433. cat <<_LT_EOF 1>&2
  8434. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8435. *** to be unable to reliably create shared libraries on AIX.
  8436. *** Therefore, libtool is disabling shared libraries support. If you
  8437. *** really care for shared libraries, you may want to install binutils
  8438. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8439. *** You will then need to restart the configuration process.
  8440. _LT_EOF
  8441. fi
  8442. ;;
  8443. amigaos*)
  8444. case $host_cpu in
  8445. powerpc)
  8446. # see comment about AmigaOS4 .so support
  8447. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8448. archive_expsym_cmds=''
  8449. ;;
  8450. m68k)
  8451. archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  8452. hardcode_libdir_flag_spec='-L$libdir'
  8453. hardcode_minus_L=yes
  8454. ;;
  8455. esac
  8456. ;;
  8457. beos*)
  8458. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8459. allow_undefined_flag=unsupported
  8460. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8461. # support --undefined. This deserves some investigation. FIXME
  8462. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8463. else
  8464. ld_shlibs=no
  8465. fi
  8466. ;;
  8467. cygwin* | mingw* | pw32* | cegcc*)
  8468. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8469. # as there is no search path for DLLs.
  8470. hardcode_libdir_flag_spec='-L$libdir'
  8471. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8472. allow_undefined_flag=unsupported
  8473. always_export_symbols=no
  8474. enable_shared_with_static_runtimes=yes
  8475. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  8476. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8477. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8478. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8479. # If the export-symbols file already is a .def file (1st line
  8480. # is EXPORTS), use it as is; otherwise, prepend...
  8481. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8482. cp $export_symbols $output_objdir/$soname.def;
  8483. else
  8484. echo EXPORTS > $output_objdir/$soname.def;
  8485. cat $export_symbols >> $output_objdir/$soname.def;
  8486. fi~
  8487. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8488. else
  8489. ld_shlibs=no
  8490. fi
  8491. ;;
  8492. haiku*)
  8493. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8494. link_all_deplibs=yes
  8495. ;;
  8496. interix[3-9]*)
  8497. hardcode_direct=no
  8498. hardcode_shlibpath_var=no
  8499. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8500. export_dynamic_flag_spec='${wl}-E'
  8501. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8502. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8503. # default) and relocated if they conflict, which is a slow very memory
  8504. # consuming and fragmenting process. To avoid this, we pick a random,
  8505. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8506. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8507. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8508. archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8509. ;;
  8510. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8511. tmp_diet=no
  8512. if test "$host_os" = linux-dietlibc; then
  8513. case $cc_basename in
  8514. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8515. esac
  8516. fi
  8517. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8518. && test "$tmp_diet" = no
  8519. then
  8520. tmp_addflag=' $pic_flag'
  8521. tmp_sharedflag='-shared'
  8522. case $cc_basename,$host_cpu in
  8523. pgcc*) # Portland Group C compiler
  8524. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8525. tmp_addflag=' $pic_flag'
  8526. ;;
  8527. pgf77* | pgf90* | pgf95* | pgfortran*)
  8528. # Portland Group f77 and f90 compilers
  8529. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8530. tmp_addflag=' $pic_flag -Mnomain' ;;
  8531. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8532. tmp_addflag=' -i_dynamic' ;;
  8533. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8534. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8535. ifc* | ifort*) # Intel Fortran compiler
  8536. tmp_addflag=' -nofor_main' ;;
  8537. lf95*) # Lahey Fortran 8.1
  8538. whole_archive_flag_spec=
  8539. tmp_sharedflag='--shared' ;;
  8540. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8541. tmp_sharedflag='-qmkshrobj'
  8542. tmp_addflag= ;;
  8543. nvcc*) # Cuda Compiler Driver 2.2
  8544. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8545. compiler_needs_object=yes
  8546. ;;
  8547. esac
  8548. case `$CC -V 2>&1 | sed 5q` in
  8549. *Sun\ C*) # Sun C 5.9
  8550. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8551. compiler_needs_object=yes
  8552. tmp_sharedflag='-G' ;;
  8553. *Sun\ F*) # Sun Fortran 8.3
  8554. tmp_sharedflag='-G' ;;
  8555. esac
  8556. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8557. if test "x$supports_anon_versioning" = xyes; then
  8558. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8559. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8560. echo "local: *; };" >> $output_objdir/$libname.ver~
  8561. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8562. fi
  8563. case $cc_basename in
  8564. xlf* | bgf* | bgxlf* | mpixlf*)
  8565. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8566. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8567. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8568. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8569. if test "x$supports_anon_versioning" = xyes; then
  8570. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8571. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8572. echo "local: *; };" >> $output_objdir/$libname.ver~
  8573. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8574. fi
  8575. ;;
  8576. esac
  8577. else
  8578. ld_shlibs=no
  8579. fi
  8580. ;;
  8581. netbsd* | netbsdelf*-gnu)
  8582. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8583. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8584. wlarc=
  8585. else
  8586. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8587. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8588. fi
  8589. ;;
  8590. solaris*)
  8591. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8592. ld_shlibs=no
  8593. cat <<_LT_EOF 1>&2
  8594. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8595. *** create shared libraries on Solaris systems. Therefore, libtool
  8596. *** is disabling shared libraries support. We urge you to upgrade GNU
  8597. *** binutils to release 2.9.1 or newer. Another option is to modify
  8598. *** your PATH or compiler configuration so that the native linker is
  8599. *** used, and then restart.
  8600. _LT_EOF
  8601. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8602. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8603. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8604. else
  8605. ld_shlibs=no
  8606. fi
  8607. ;;
  8608. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8609. case `$LD -v 2>&1` in
  8610. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8611. ld_shlibs=no
  8612. cat <<_LT_EOF 1>&2
  8613. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8614. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8615. *** is disabling shared libraries support. We urge you to upgrade GNU
  8616. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8617. *** your PATH or compiler configuration so that the native linker is
  8618. *** used, and then restart.
  8619. _LT_EOF
  8620. ;;
  8621. *)
  8622. # For security reasons, it is highly recommended that you always
  8623. # use absolute paths for naming shared libraries, and exclude the
  8624. # DT_RUNPATH tag from executables and libraries. But doing so
  8625. # requires that you compile everything twice, which is a pain.
  8626. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8627. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8628. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8629. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8630. else
  8631. ld_shlibs=no
  8632. fi
  8633. ;;
  8634. esac
  8635. ;;
  8636. sunos4*)
  8637. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8638. wlarc=
  8639. hardcode_direct=yes
  8640. hardcode_shlibpath_var=no
  8641. ;;
  8642. *)
  8643. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8644. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8645. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8646. else
  8647. ld_shlibs=no
  8648. fi
  8649. ;;
  8650. esac
  8651. if test "$ld_shlibs" = no; then
  8652. runpath_var=
  8653. hardcode_libdir_flag_spec=
  8654. export_dynamic_flag_spec=
  8655. whole_archive_flag_spec=
  8656. fi
  8657. else
  8658. # PORTME fill in a description of your system's linker (not GNU ld)
  8659. case $host_os in
  8660. aix3*)
  8661. allow_undefined_flag=unsupported
  8662. always_export_symbols=yes
  8663. archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  8664. # Note: this linker hardcodes the directories in LIBPATH if there
  8665. # are no directories specified by -L.
  8666. hardcode_minus_L=yes
  8667. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8668. # Neither direct hardcoding nor static linking is supported with a
  8669. # broken collect2.
  8670. hardcode_direct=unsupported
  8671. fi
  8672. ;;
  8673. aix[4-9]*)
  8674. if test "$host_cpu" = ia64; then
  8675. # On IA64, the linker does run time linking by default, so we don't
  8676. # have to do anything special.
  8677. aix_use_runtimelinking=no
  8678. exp_sym_flag='-Bexport'
  8679. no_entry_flag=""
  8680. else
  8681. # If we're using GNU nm, then we don't want the "-C" option.
  8682. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8683. # Also, AIX nm treats weak defined symbols like other global
  8684. # defined symbols, whereas GNU nm marks them as "W".
  8685. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8686. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8687. else
  8688. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8689. fi
  8690. aix_use_runtimelinking=no
  8691. # Test if we are trying to use run time linking or normal
  8692. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8693. # need to do runtime linking.
  8694. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8695. for ld_flag in $LDFLAGS; do
  8696. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8697. aix_use_runtimelinking=yes
  8698. break
  8699. fi
  8700. done
  8701. ;;
  8702. esac
  8703. exp_sym_flag='-bexport'
  8704. no_entry_flag='-bnoentry'
  8705. fi
  8706. # When large executables or shared objects are built, AIX ld can
  8707. # have problems creating the table of contents. If linking a library
  8708. # or program results in "error TOC overflow" add -mminimal-toc to
  8709. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8710. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8711. archive_cmds=''
  8712. hardcode_direct=yes
  8713. hardcode_direct_absolute=yes
  8714. hardcode_libdir_separator=':'
  8715. link_all_deplibs=yes
  8716. file_list_spec='${wl}-f,'
  8717. if test "$GCC" = yes; then
  8718. case $host_os in aix4.[012]|aix4.[012].*)
  8719. # We only want to do this on AIX 4.2 and lower, the check
  8720. # below for broken collect2 doesn't work under 4.3+
  8721. collect2name=`${CC} -print-prog-name=collect2`
  8722. if test -f "$collect2name" &&
  8723. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8724. then
  8725. # We have reworked collect2
  8726. :
  8727. else
  8728. # We have old collect2
  8729. hardcode_direct=unsupported
  8730. # It fails to find uninstalled libraries when the uninstalled
  8731. # path is not listed in the libpath. Setting hardcode_minus_L
  8732. # to unsupported forces relinking
  8733. hardcode_minus_L=yes
  8734. hardcode_libdir_flag_spec='-L$libdir'
  8735. hardcode_libdir_separator=
  8736. fi
  8737. ;;
  8738. esac
  8739. shared_flag='-shared'
  8740. if test "$aix_use_runtimelinking" = yes; then
  8741. shared_flag="$shared_flag "'${wl}-G'
  8742. fi
  8743. link_all_deplibs=no
  8744. else
  8745. # not using gcc
  8746. if test "$host_cpu" = ia64; then
  8747. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8748. # chokes on -Wl,-G. The following line is correct:
  8749. shared_flag='-G'
  8750. else
  8751. if test "$aix_use_runtimelinking" = yes; then
  8752. shared_flag='${wl}-G'
  8753. else
  8754. shared_flag='${wl}-bM:SRE'
  8755. fi
  8756. fi
  8757. fi
  8758. export_dynamic_flag_spec='${wl}-bexpall'
  8759. # It seems that -bexpall does not export symbols beginning with
  8760. # underscore (_), so it is better to generate a list of symbols to export.
  8761. always_export_symbols=yes
  8762. if test "$aix_use_runtimelinking" = yes; then
  8763. # Warning - without using the other runtime loading flags (-brtl),
  8764. # -berok will link without error, but may produce a broken library.
  8765. allow_undefined_flag='-berok'
  8766. # Determine the default libpath from the value encoded in an
  8767. # empty executable.
  8768. if test "${lt_cv_aix_libpath+set}" = set; then
  8769. aix_libpath=$lt_cv_aix_libpath
  8770. else
  8771. if ${lt_cv_aix_libpath_+:} false; then :
  8772. $as_echo_n "(cached) " >&6
  8773. else
  8774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8775. /* end confdefs.h. */
  8776. int
  8777. main ()
  8778. {
  8779. ;
  8780. return 0;
  8781. }
  8782. _ACEOF
  8783. if ac_fn_c_try_link "$LINENO"; then :
  8784. lt_aix_libpath_sed='
  8785. /Import File Strings/,/^$/ {
  8786. /^0/ {
  8787. s/^0 *\([^ ]*\) *$/\1/
  8788. p
  8789. }
  8790. }'
  8791. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8792. # Check for a 64-bit object if we didn't find anything.
  8793. if test -z "$lt_cv_aix_libpath_"; then
  8794. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8795. fi
  8796. fi
  8797. rm -f core conftest.err conftest.$ac_objext \
  8798. conftest$ac_exeext conftest.$ac_ext
  8799. if test -z "$lt_cv_aix_libpath_"; then
  8800. lt_cv_aix_libpath_="/usr/lib:/lib"
  8801. fi
  8802. fi
  8803. aix_libpath=$lt_cv_aix_libpath_
  8804. fi
  8805. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8806. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8807. else
  8808. if test "$host_cpu" = ia64; then
  8809. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8810. allow_undefined_flag="-z nodefs"
  8811. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  8812. else
  8813. # Determine the default libpath from the value encoded in an
  8814. # empty executable.
  8815. if test "${lt_cv_aix_libpath+set}" = set; then
  8816. aix_libpath=$lt_cv_aix_libpath
  8817. else
  8818. if ${lt_cv_aix_libpath_+:} false; then :
  8819. $as_echo_n "(cached) " >&6
  8820. else
  8821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8822. /* end confdefs.h. */
  8823. int
  8824. main ()
  8825. {
  8826. ;
  8827. return 0;
  8828. }
  8829. _ACEOF
  8830. if ac_fn_c_try_link "$LINENO"; then :
  8831. lt_aix_libpath_sed='
  8832. /Import File Strings/,/^$/ {
  8833. /^0/ {
  8834. s/^0 *\([^ ]*\) *$/\1/
  8835. p
  8836. }
  8837. }'
  8838. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8839. # Check for a 64-bit object if we didn't find anything.
  8840. if test -z "$lt_cv_aix_libpath_"; then
  8841. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8842. fi
  8843. fi
  8844. rm -f core conftest.err conftest.$ac_objext \
  8845. conftest$ac_exeext conftest.$ac_ext
  8846. if test -z "$lt_cv_aix_libpath_"; then
  8847. lt_cv_aix_libpath_="/usr/lib:/lib"
  8848. fi
  8849. fi
  8850. aix_libpath=$lt_cv_aix_libpath_
  8851. fi
  8852. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8853. # Warning - without using the other run time loading flags,
  8854. # -berok will link without error, but may produce a broken library.
  8855. no_undefined_flag=' ${wl}-bernotok'
  8856. allow_undefined_flag=' ${wl}-berok'
  8857. if test "$with_gnu_ld" = yes; then
  8858. # We only use this code for GNU lds that support --whole-archive.
  8859. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8860. else
  8861. # Exported symbols can be pulled into shared objects from archives
  8862. whole_archive_flag_spec='$convenience'
  8863. fi
  8864. archive_cmds_need_lc=yes
  8865. # This is similar to how AIX traditionally builds its shared libraries.
  8866. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  8867. fi
  8868. fi
  8869. ;;
  8870. amigaos*)
  8871. case $host_cpu in
  8872. powerpc)
  8873. # see comment about AmigaOS4 .so support
  8874. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8875. archive_expsym_cmds=''
  8876. ;;
  8877. m68k)
  8878. archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  8879. hardcode_libdir_flag_spec='-L$libdir'
  8880. hardcode_minus_L=yes
  8881. ;;
  8882. esac
  8883. ;;
  8884. bsdi[45]*)
  8885. export_dynamic_flag_spec=-rdynamic
  8886. ;;
  8887. cygwin* | mingw* | pw32* | cegcc*)
  8888. # When not using gcc, we currently assume that we are using
  8889. # Microsoft Visual C++.
  8890. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8891. # no search path for DLLs.
  8892. case $cc_basename in
  8893. cl*)
  8894. # Native MSVC
  8895. hardcode_libdir_flag_spec=' '
  8896. allow_undefined_flag=unsupported
  8897. always_export_symbols=yes
  8898. file_list_spec='@'
  8899. # Tell ltmain to make .lib files, not .a files.
  8900. libext=lib
  8901. # Tell ltmain to make .dll files, not .so files.
  8902. shrext_cmds=".dll"
  8903. # FIXME: Setting linknames here is a bad hack.
  8904. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8905. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8906. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8907. else
  8908. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8909. fi~
  8910. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8911. linknames='
  8912. # The linker will not automatically build a static lib if we build a DLL.
  8913. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8914. enable_shared_with_static_runtimes=yes
  8915. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8916. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8917. # Don't use ranlib
  8918. old_postinstall_cmds='chmod 644 $oldlib'
  8919. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8920. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8921. case $lt_outputfile in
  8922. *.exe|*.EXE) ;;
  8923. *)
  8924. lt_outputfile="$lt_outputfile.exe"
  8925. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8926. ;;
  8927. esac~
  8928. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8929. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8930. $RM "$lt_outputfile.manifest";
  8931. fi'
  8932. ;;
  8933. *)
  8934. # Assume MSVC wrapper
  8935. hardcode_libdir_flag_spec=' '
  8936. allow_undefined_flag=unsupported
  8937. # Tell ltmain to make .lib files, not .a files.
  8938. libext=lib
  8939. # Tell ltmain to make .dll files, not .so files.
  8940. shrext_cmds=".dll"
  8941. # FIXME: Setting linknames here is a bad hack.
  8942. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8943. # The linker will automatically build a .lib file if we build a DLL.
  8944. old_archive_from_new_cmds='true'
  8945. # FIXME: Should let the user specify the lib program.
  8946. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8947. enable_shared_with_static_runtimes=yes
  8948. ;;
  8949. esac
  8950. ;;
  8951. darwin* | rhapsody*)
  8952. archive_cmds_need_lc=no
  8953. hardcode_direct=no
  8954. hardcode_automatic=yes
  8955. hardcode_shlibpath_var=unsupported
  8956. if test "$lt_cv_ld_force_load" = "yes"; then
  8957. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  8958. else
  8959. whole_archive_flag_spec=''
  8960. fi
  8961. link_all_deplibs=yes
  8962. allow_undefined_flag="$_lt_dar_allow_undefined"
  8963. case $cc_basename in
  8964. ifort*) _lt_dar_can_shared=yes ;;
  8965. *) _lt_dar_can_shared=$GCC ;;
  8966. esac
  8967. if test "$_lt_dar_can_shared" = "yes"; then
  8968. output_verbose_link_cmd=func_echo_all
  8969. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8970. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8971. archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  8972. module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  8973. else
  8974. ld_shlibs=no
  8975. fi
  8976. ;;
  8977. dgux*)
  8978. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8979. hardcode_libdir_flag_spec='-L$libdir'
  8980. hardcode_shlibpath_var=no
  8981. ;;
  8982. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8983. # support. Future versions do this automatically, but an explicit c++rt0.o
  8984. # does not break anything, and helps significantly (at the cost of a little
  8985. # extra space).
  8986. freebsd2.2*)
  8987. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8988. hardcode_libdir_flag_spec='-R$libdir'
  8989. hardcode_direct=yes
  8990. hardcode_shlibpath_var=no
  8991. ;;
  8992. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8993. freebsd2.*)
  8994. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8995. hardcode_direct=yes
  8996. hardcode_minus_L=yes
  8997. hardcode_shlibpath_var=no
  8998. ;;
  8999. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9000. freebsd* | dragonfly*)
  9001. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9002. hardcode_libdir_flag_spec='-R$libdir'
  9003. hardcode_direct=yes
  9004. hardcode_shlibpath_var=no
  9005. ;;
  9006. hpux9*)
  9007. if test "$GCC" = yes; then
  9008. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  9009. else
  9010. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  9011. fi
  9012. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9013. hardcode_libdir_separator=:
  9014. hardcode_direct=yes
  9015. # hardcode_minus_L: Not really in the search PATH,
  9016. # but as the default location of the library.
  9017. hardcode_minus_L=yes
  9018. export_dynamic_flag_spec='${wl}-E'
  9019. ;;
  9020. hpux10*)
  9021. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9022. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9023. else
  9024. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9025. fi
  9026. if test "$with_gnu_ld" = no; then
  9027. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9028. hardcode_libdir_separator=:
  9029. hardcode_direct=yes
  9030. hardcode_direct_absolute=yes
  9031. export_dynamic_flag_spec='${wl}-E'
  9032. # hardcode_minus_L: Not really in the search PATH,
  9033. # but as the default location of the library.
  9034. hardcode_minus_L=yes
  9035. fi
  9036. ;;
  9037. hpux11*)
  9038. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9039. case $host_cpu in
  9040. hppa*64*)
  9041. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9042. ;;
  9043. ia64*)
  9044. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9045. ;;
  9046. *)
  9047. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9048. ;;
  9049. esac
  9050. else
  9051. case $host_cpu in
  9052. hppa*64*)
  9053. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9054. ;;
  9055. ia64*)
  9056. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9057. ;;
  9058. *)
  9059. # Older versions of the 11.00 compiler do not understand -b yet
  9060. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9062. $as_echo_n "checking if $CC understands -b... " >&6; }
  9063. if ${lt_cv_prog_compiler__b+:} false; then :
  9064. $as_echo_n "(cached) " >&6
  9065. else
  9066. lt_cv_prog_compiler__b=no
  9067. save_LDFLAGS="$LDFLAGS"
  9068. LDFLAGS="$LDFLAGS -b"
  9069. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9070. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9071. # The linker can only warn and ignore the option if not recognized
  9072. # So say no if there are warnings
  9073. if test -s conftest.err; then
  9074. # Append any errors to the config.log.
  9075. cat conftest.err 1>&5
  9076. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9077. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9078. if diff conftest.exp conftest.er2 >/dev/null; then
  9079. lt_cv_prog_compiler__b=yes
  9080. fi
  9081. else
  9082. lt_cv_prog_compiler__b=yes
  9083. fi
  9084. fi
  9085. $RM -r conftest*
  9086. LDFLAGS="$save_LDFLAGS"
  9087. fi
  9088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9089. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9090. if test x"$lt_cv_prog_compiler__b" = xyes; then
  9091. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9092. else
  9093. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9094. fi
  9095. ;;
  9096. esac
  9097. fi
  9098. if test "$with_gnu_ld" = no; then
  9099. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9100. hardcode_libdir_separator=:
  9101. case $host_cpu in
  9102. hppa*64*|ia64*)
  9103. hardcode_direct=no
  9104. hardcode_shlibpath_var=no
  9105. ;;
  9106. *)
  9107. hardcode_direct=yes
  9108. hardcode_direct_absolute=yes
  9109. export_dynamic_flag_spec='${wl}-E'
  9110. # hardcode_minus_L: Not really in the search PATH,
  9111. # but as the default location of the library.
  9112. hardcode_minus_L=yes
  9113. ;;
  9114. esac
  9115. fi
  9116. ;;
  9117. irix5* | irix6* | nonstopux*)
  9118. if test "$GCC" = yes; then
  9119. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9120. # Try to use the -exported_symbol ld option, if it does not
  9121. # work, assume that -exports_file does not work either and
  9122. # implicitly export all symbols.
  9123. # This should be the same for all languages, so no per-tag cache variable.
  9124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9125. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9126. if ${lt_cv_irix_exported_symbol+:} false; then :
  9127. $as_echo_n "(cached) " >&6
  9128. else
  9129. save_LDFLAGS="$LDFLAGS"
  9130. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  9131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9132. /* end confdefs.h. */
  9133. int foo (void) { return 0; }
  9134. _ACEOF
  9135. if ac_fn_c_try_link "$LINENO"; then :
  9136. lt_cv_irix_exported_symbol=yes
  9137. else
  9138. lt_cv_irix_exported_symbol=no
  9139. fi
  9140. rm -f core conftest.err conftest.$ac_objext \
  9141. conftest$ac_exeext conftest.$ac_ext
  9142. LDFLAGS="$save_LDFLAGS"
  9143. fi
  9144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9145. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9146. if test "$lt_cv_irix_exported_symbol" = yes; then
  9147. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  9148. fi
  9149. else
  9150. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  9151. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  9152. fi
  9153. archive_cmds_need_lc='no'
  9154. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9155. hardcode_libdir_separator=:
  9156. inherit_rpath=yes
  9157. link_all_deplibs=yes
  9158. ;;
  9159. netbsd* | netbsdelf*-gnu)
  9160. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9161. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9162. else
  9163. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9164. fi
  9165. hardcode_libdir_flag_spec='-R$libdir'
  9166. hardcode_direct=yes
  9167. hardcode_shlibpath_var=no
  9168. ;;
  9169. newsos6)
  9170. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9171. hardcode_direct=yes
  9172. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9173. hardcode_libdir_separator=:
  9174. hardcode_shlibpath_var=no
  9175. ;;
  9176. *nto* | *qnx*)
  9177. ;;
  9178. openbsd*)
  9179. if test -f /usr/libexec/ld.so; then
  9180. hardcode_direct=yes
  9181. hardcode_shlibpath_var=no
  9182. hardcode_direct_absolute=yes
  9183. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9184. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9185. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9186. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9187. export_dynamic_flag_spec='${wl}-E'
  9188. else
  9189. case $host_os in
  9190. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9191. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9192. hardcode_libdir_flag_spec='-R$libdir'
  9193. ;;
  9194. *)
  9195. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9196. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9197. ;;
  9198. esac
  9199. fi
  9200. else
  9201. ld_shlibs=no
  9202. fi
  9203. ;;
  9204. os2*)
  9205. hardcode_libdir_flag_spec='-L$libdir'
  9206. hardcode_minus_L=yes
  9207. allow_undefined_flag=unsupported
  9208. archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  9209. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9210. ;;
  9211. osf3*)
  9212. if test "$GCC" = yes; then
  9213. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9214. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9215. else
  9216. allow_undefined_flag=' -expect_unresolved \*'
  9217. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  9218. fi
  9219. archive_cmds_need_lc='no'
  9220. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9221. hardcode_libdir_separator=:
  9222. ;;
  9223. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9224. if test "$GCC" = yes; then
  9225. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9226. archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9227. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9228. else
  9229. allow_undefined_flag=' -expect_unresolved \*'
  9230. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  9231. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  9232. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  9233. # Both c and cxx compiler support -rpath directly
  9234. hardcode_libdir_flag_spec='-rpath $libdir'
  9235. fi
  9236. archive_cmds_need_lc='no'
  9237. hardcode_libdir_separator=:
  9238. ;;
  9239. solaris*)
  9240. no_undefined_flag=' -z defs'
  9241. if test "$GCC" = yes; then
  9242. wlarc='${wl}'
  9243. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9244. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9245. $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9246. else
  9247. case `$CC -V 2>&1` in
  9248. *"Compilers 5.0"*)
  9249. wlarc=''
  9250. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9251. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9252. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9253. ;;
  9254. *)
  9255. wlarc='${wl}'
  9256. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9257. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9258. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9259. ;;
  9260. esac
  9261. fi
  9262. hardcode_libdir_flag_spec='-R$libdir'
  9263. hardcode_shlibpath_var=no
  9264. case $host_os in
  9265. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9266. *)
  9267. # The compiler driver will combine and reorder linker options,
  9268. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9269. # but is careful enough not to reorder.
  9270. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9271. if test "$GCC" = yes; then
  9272. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9273. else
  9274. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9275. fi
  9276. ;;
  9277. esac
  9278. link_all_deplibs=yes
  9279. ;;
  9280. sunos4*)
  9281. if test "x$host_vendor" = xsequent; then
  9282. # Use $CC to link under sequent, because it throws in some extra .o
  9283. # files that make .init and .fini sections work.
  9284. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9285. else
  9286. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9287. fi
  9288. hardcode_libdir_flag_spec='-L$libdir'
  9289. hardcode_direct=yes
  9290. hardcode_minus_L=yes
  9291. hardcode_shlibpath_var=no
  9292. ;;
  9293. sysv4)
  9294. case $host_vendor in
  9295. sni)
  9296. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9297. hardcode_direct=yes # is this really true???
  9298. ;;
  9299. siemens)
  9300. ## LD is ld it makes a PLAMLIB
  9301. ## CC just makes a GrossModule.
  9302. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9303. reload_cmds='$CC -r -o $output$reload_objs'
  9304. hardcode_direct=no
  9305. ;;
  9306. motorola)
  9307. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9308. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9309. ;;
  9310. esac
  9311. runpath_var='LD_RUN_PATH'
  9312. hardcode_shlibpath_var=no
  9313. ;;
  9314. sysv4.3*)
  9315. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9316. hardcode_shlibpath_var=no
  9317. export_dynamic_flag_spec='-Bexport'
  9318. ;;
  9319. sysv4*MP*)
  9320. if test -d /usr/nec; then
  9321. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9322. hardcode_shlibpath_var=no
  9323. runpath_var=LD_RUN_PATH
  9324. hardcode_runpath_var=yes
  9325. ld_shlibs=yes
  9326. fi
  9327. ;;
  9328. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9329. no_undefined_flag='${wl}-z,text'
  9330. archive_cmds_need_lc=no
  9331. hardcode_shlibpath_var=no
  9332. runpath_var='LD_RUN_PATH'
  9333. if test "$GCC" = yes; then
  9334. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9335. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9336. else
  9337. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9338. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9339. fi
  9340. ;;
  9341. sysv5* | sco3.2v5* | sco5v6*)
  9342. # Note: We can NOT use -z defs as we might desire, because we do not
  9343. # link with -lc, and that would cause any symbols used from libc to
  9344. # always be unresolved, which means just about no library would
  9345. # ever link correctly. If we're not using GNU ld we use -z text
  9346. # though, which does catch some bad symbols but isn't as heavy-handed
  9347. # as -z defs.
  9348. no_undefined_flag='${wl}-z,text'
  9349. allow_undefined_flag='${wl}-z,nodefs'
  9350. archive_cmds_need_lc=no
  9351. hardcode_shlibpath_var=no
  9352. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9353. hardcode_libdir_separator=':'
  9354. link_all_deplibs=yes
  9355. export_dynamic_flag_spec='${wl}-Bexport'
  9356. runpath_var='LD_RUN_PATH'
  9357. if test "$GCC" = yes; then
  9358. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9359. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9360. else
  9361. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9362. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9363. fi
  9364. ;;
  9365. uts4*)
  9366. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9367. hardcode_libdir_flag_spec='-L$libdir'
  9368. hardcode_shlibpath_var=no
  9369. ;;
  9370. *)
  9371. ld_shlibs=no
  9372. ;;
  9373. esac
  9374. if test x$host_vendor = xsni; then
  9375. case $host in
  9376. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9377. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9378. ;;
  9379. esac
  9380. fi
  9381. fi
  9382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9383. $as_echo "$ld_shlibs" >&6; }
  9384. test "$ld_shlibs" = no && can_build_shared=no
  9385. with_gnu_ld=$with_gnu_ld
  9386. #
  9387. # Do we need to explicitly link libc?
  9388. #
  9389. case "x$archive_cmds_need_lc" in
  9390. x|xyes)
  9391. # Assume -lc should be added
  9392. archive_cmds_need_lc=yes
  9393. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9394. case $archive_cmds in
  9395. *'~'*)
  9396. # FIXME: we may have to deal with multi-command sequences.
  9397. ;;
  9398. '$CC '*)
  9399. # Test whether the compiler implicitly links with -lc since on some
  9400. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9401. # to ld, don't add -lc before -lgcc.
  9402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9403. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9404. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9405. $as_echo_n "(cached) " >&6
  9406. else
  9407. $RM conftest*
  9408. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9409. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9410. (eval $ac_compile) 2>&5
  9411. ac_status=$?
  9412. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9413. test $ac_status = 0; } 2>conftest.err; then
  9414. soname=conftest
  9415. lib=conftest
  9416. libobjs=conftest.$ac_objext
  9417. deplibs=
  9418. wl=$lt_prog_compiler_wl
  9419. pic_flag=$lt_prog_compiler_pic
  9420. compiler_flags=-v
  9421. linker_flags=-v
  9422. verstring=
  9423. output_objdir=.
  9424. libname=conftest
  9425. lt_save_allow_undefined_flag=$allow_undefined_flag
  9426. allow_undefined_flag=
  9427. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9428. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9429. ac_status=$?
  9430. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9431. test $ac_status = 0; }
  9432. then
  9433. lt_cv_archive_cmds_need_lc=no
  9434. else
  9435. lt_cv_archive_cmds_need_lc=yes
  9436. fi
  9437. allow_undefined_flag=$lt_save_allow_undefined_flag
  9438. else
  9439. cat conftest.err 1>&5
  9440. fi
  9441. $RM conftest*
  9442. fi
  9443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9444. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9445. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9446. ;;
  9447. esac
  9448. fi
  9449. ;;
  9450. esac
  9451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9452. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9453. if test "$GCC" = yes; then
  9454. case $host_os in
  9455. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9456. *) lt_awk_arg="/^libraries:/" ;;
  9457. esac
  9458. case $host_os in
  9459. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9460. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9461. esac
  9462. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9463. case $lt_search_path_spec in
  9464. *\;*)
  9465. # if the path contains ";" then we assume it to be the separator
  9466. # otherwise default to the standard path separator (i.e. ":") - it is
  9467. # assumed that no part of a normal pathname contains ";" but that should
  9468. # okay in the real world where ";" in dirpaths is itself problematic.
  9469. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9470. ;;
  9471. *)
  9472. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9473. ;;
  9474. esac
  9475. # Ok, now we have the path, separated by spaces, we can step through it
  9476. # and add multilib dir if necessary.
  9477. lt_tmp_lt_search_path_spec=
  9478. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9479. for lt_sys_path in $lt_search_path_spec; do
  9480. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9481. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9482. else
  9483. test -d "$lt_sys_path" && \
  9484. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9485. fi
  9486. done
  9487. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9488. BEGIN {RS=" "; FS="/|\n";} {
  9489. lt_foo="";
  9490. lt_count=0;
  9491. for (lt_i = NF; lt_i > 0; lt_i--) {
  9492. if ($lt_i != "" && $lt_i != ".") {
  9493. if ($lt_i == "..") {
  9494. lt_count++;
  9495. } else {
  9496. if (lt_count == 0) {
  9497. lt_foo="/" $lt_i lt_foo;
  9498. } else {
  9499. lt_count--;
  9500. }
  9501. }
  9502. }
  9503. }
  9504. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9505. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9506. }'`
  9507. # AWK program above erroneously prepends '/' to C:/dos/paths
  9508. # for these hosts.
  9509. case $host_os in
  9510. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9511. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9512. esac
  9513. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9514. else
  9515. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9516. fi
  9517. library_names_spec=
  9518. libname_spec='lib$name'
  9519. soname_spec=
  9520. shrext_cmds=".so"
  9521. postinstall_cmds=
  9522. postuninstall_cmds=
  9523. finish_cmds=
  9524. finish_eval=
  9525. shlibpath_var=
  9526. shlibpath_overrides_runpath=unknown
  9527. version_type=none
  9528. dynamic_linker="$host_os ld.so"
  9529. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9530. need_lib_prefix=unknown
  9531. hardcode_into_libs=no
  9532. # when you set need_version to no, make sure it does not cause -set_version
  9533. # flags to be left without arguments
  9534. need_version=unknown
  9535. case $host_os in
  9536. aix3*)
  9537. version_type=linux # correct to gnu/linux during the next big refactor
  9538. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9539. shlibpath_var=LIBPATH
  9540. # AIX 3 has no versioning support, so we append a major version to the name.
  9541. soname_spec='${libname}${release}${shared_ext}$major'
  9542. ;;
  9543. aix[4-9]*)
  9544. version_type=linux # correct to gnu/linux during the next big refactor
  9545. need_lib_prefix=no
  9546. need_version=no
  9547. hardcode_into_libs=yes
  9548. if test "$host_cpu" = ia64; then
  9549. # AIX 5 supports IA64
  9550. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9551. shlibpath_var=LD_LIBRARY_PATH
  9552. else
  9553. # With GCC up to 2.95.x, collect2 would create an import file
  9554. # for dependence libraries. The import file would start with
  9555. # the line `#! .'. This would cause the generated library to
  9556. # depend on `.', always an invalid library. This was fixed in
  9557. # development snapshots of GCC prior to 3.0.
  9558. case $host_os in
  9559. aix4 | aix4.[01] | aix4.[01].*)
  9560. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9561. echo ' yes '
  9562. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9563. :
  9564. else
  9565. can_build_shared=no
  9566. fi
  9567. ;;
  9568. esac
  9569. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9570. # soname into executable. Probably we can add versioning support to
  9571. # collect2, so additional links can be useful in future.
  9572. if test "$aix_use_runtimelinking" = yes; then
  9573. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9574. # instead of lib<name>.a to let people know that these are not
  9575. # typical AIX shared libraries.
  9576. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9577. else
  9578. # We preserve .a as extension for shared libraries through AIX4.2
  9579. # and later when we are not doing run time linking.
  9580. library_names_spec='${libname}${release}.a $libname.a'
  9581. soname_spec='${libname}${release}${shared_ext}$major'
  9582. fi
  9583. shlibpath_var=LIBPATH
  9584. fi
  9585. ;;
  9586. amigaos*)
  9587. case $host_cpu in
  9588. powerpc)
  9589. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9590. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9591. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9592. ;;
  9593. m68k)
  9594. library_names_spec='$libname.ixlibrary $libname.a'
  9595. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9596. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  9597. ;;
  9598. esac
  9599. ;;
  9600. beos*)
  9601. library_names_spec='${libname}${shared_ext}'
  9602. dynamic_linker="$host_os ld.so"
  9603. shlibpath_var=LIBRARY_PATH
  9604. ;;
  9605. bsdi[45]*)
  9606. version_type=linux # correct to gnu/linux during the next big refactor
  9607. need_version=no
  9608. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9609. soname_spec='${libname}${release}${shared_ext}$major'
  9610. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9611. shlibpath_var=LD_LIBRARY_PATH
  9612. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9613. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9614. # the default ld.so.conf also contains /usr/contrib/lib and
  9615. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9616. # libtool to hard-code these into programs
  9617. ;;
  9618. cygwin* | mingw* | pw32* | cegcc*)
  9619. version_type=windows
  9620. shrext_cmds=".dll"
  9621. need_version=no
  9622. need_lib_prefix=no
  9623. case $GCC,$cc_basename in
  9624. yes,*)
  9625. # gcc
  9626. library_names_spec='$libname.dll.a'
  9627. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9628. postinstall_cmds='base_file=`basename \${file}`~
  9629. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9630. dldir=$destdir/`dirname \$dlpath`~
  9631. test -d \$dldir || mkdir -p \$dldir~
  9632. $install_prog $dir/$dlname \$dldir/$dlname~
  9633. chmod a+x \$dldir/$dlname~
  9634. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9635. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9636. fi'
  9637. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9638. dlpath=$dir/\$dldll~
  9639. $RM \$dlpath'
  9640. shlibpath_overrides_runpath=yes
  9641. case $host_os in
  9642. cygwin*)
  9643. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9644. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9645. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9646. ;;
  9647. mingw* | cegcc*)
  9648. # MinGW DLLs use traditional 'lib' prefix
  9649. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9650. ;;
  9651. pw32*)
  9652. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9653. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9654. ;;
  9655. esac
  9656. dynamic_linker='Win32 ld.exe'
  9657. ;;
  9658. *,cl*)
  9659. # Native MSVC
  9660. libname_spec='$name'
  9661. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9662. library_names_spec='${libname}.dll.lib'
  9663. case $build_os in
  9664. mingw*)
  9665. sys_lib_search_path_spec=
  9666. lt_save_ifs=$IFS
  9667. IFS=';'
  9668. for lt_path in $LIB
  9669. do
  9670. IFS=$lt_save_ifs
  9671. # Let DOS variable expansion print the short 8.3 style file name.
  9672. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9673. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9674. done
  9675. IFS=$lt_save_ifs
  9676. # Convert to MSYS style.
  9677. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9678. ;;
  9679. cygwin*)
  9680. # Convert to unix form, then to dos form, then back to unix form
  9681. # but this time dos style (no spaces!) so that the unix form looks
  9682. # like /cygdrive/c/PROGRA~1:/cygdr...
  9683. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9684. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9685. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9686. ;;
  9687. *)
  9688. sys_lib_search_path_spec="$LIB"
  9689. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9690. # It is most probably a Windows format PATH.
  9691. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9692. else
  9693. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9694. fi
  9695. # FIXME: find the short name or the path components, as spaces are
  9696. # common. (e.g. "Program Files" -> "PROGRA~1")
  9697. ;;
  9698. esac
  9699. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9700. postinstall_cmds='base_file=`basename \${file}`~
  9701. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9702. dldir=$destdir/`dirname \$dlpath`~
  9703. test -d \$dldir || mkdir -p \$dldir~
  9704. $install_prog $dir/$dlname \$dldir/$dlname'
  9705. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9706. dlpath=$dir/\$dldll~
  9707. $RM \$dlpath'
  9708. shlibpath_overrides_runpath=yes
  9709. dynamic_linker='Win32 link.exe'
  9710. ;;
  9711. *)
  9712. # Assume MSVC wrapper
  9713. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9714. dynamic_linker='Win32 ld.exe'
  9715. ;;
  9716. esac
  9717. # FIXME: first we should search . and the directory the executable is in
  9718. shlibpath_var=PATH
  9719. ;;
  9720. darwin* | rhapsody*)
  9721. dynamic_linker="$host_os dyld"
  9722. version_type=darwin
  9723. need_lib_prefix=no
  9724. need_version=no
  9725. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9726. soname_spec='${libname}${release}${major}$shared_ext'
  9727. shlibpath_overrides_runpath=yes
  9728. shlibpath_var=DYLD_LIBRARY_PATH
  9729. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9730. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9731. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9732. ;;
  9733. dgux*)
  9734. version_type=linux # correct to gnu/linux during the next big refactor
  9735. need_lib_prefix=no
  9736. need_version=no
  9737. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9738. soname_spec='${libname}${release}${shared_ext}$major'
  9739. shlibpath_var=LD_LIBRARY_PATH
  9740. ;;
  9741. freebsd* | dragonfly*)
  9742. # DragonFly does not have aout. When/if they implement a new
  9743. # versioning mechanism, adjust this.
  9744. if test -x /usr/bin/objformat; then
  9745. objformat=`/usr/bin/objformat`
  9746. else
  9747. case $host_os in
  9748. freebsd[23].*) objformat=aout ;;
  9749. *) objformat=elf ;;
  9750. esac
  9751. fi
  9752. version_type=freebsd-$objformat
  9753. case $version_type in
  9754. freebsd-elf*)
  9755. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9756. need_version=no
  9757. need_lib_prefix=no
  9758. ;;
  9759. freebsd-*)
  9760. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9761. need_version=yes
  9762. ;;
  9763. esac
  9764. shlibpath_var=LD_LIBRARY_PATH
  9765. case $host_os in
  9766. freebsd2.*)
  9767. shlibpath_overrides_runpath=yes
  9768. ;;
  9769. freebsd3.[01]* | freebsdelf3.[01]*)
  9770. shlibpath_overrides_runpath=yes
  9771. hardcode_into_libs=yes
  9772. ;;
  9773. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9774. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9775. shlibpath_overrides_runpath=no
  9776. hardcode_into_libs=yes
  9777. ;;
  9778. *) # from 4.6 on, and DragonFly
  9779. shlibpath_overrides_runpath=yes
  9780. hardcode_into_libs=yes
  9781. ;;
  9782. esac
  9783. ;;
  9784. haiku*)
  9785. version_type=linux # correct to gnu/linux during the next big refactor
  9786. need_lib_prefix=no
  9787. need_version=no
  9788. dynamic_linker="$host_os runtime_loader"
  9789. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9790. soname_spec='${libname}${release}${shared_ext}$major'
  9791. shlibpath_var=LIBRARY_PATH
  9792. shlibpath_overrides_runpath=yes
  9793. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9794. hardcode_into_libs=yes
  9795. ;;
  9796. hpux9* | hpux10* | hpux11*)
  9797. # Give a soname corresponding to the major version so that dld.sl refuses to
  9798. # link against other versions.
  9799. version_type=sunos
  9800. need_lib_prefix=no
  9801. need_version=no
  9802. case $host_cpu in
  9803. ia64*)
  9804. shrext_cmds='.so'
  9805. hardcode_into_libs=yes
  9806. dynamic_linker="$host_os dld.so"
  9807. shlibpath_var=LD_LIBRARY_PATH
  9808. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9809. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9810. soname_spec='${libname}${release}${shared_ext}$major'
  9811. if test "X$HPUX_IA64_MODE" = X32; then
  9812. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9813. else
  9814. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9815. fi
  9816. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9817. ;;
  9818. hppa*64*)
  9819. shrext_cmds='.sl'
  9820. hardcode_into_libs=yes
  9821. dynamic_linker="$host_os dld.sl"
  9822. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9823. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9824. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9825. soname_spec='${libname}${release}${shared_ext}$major'
  9826. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9827. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9828. ;;
  9829. *)
  9830. shrext_cmds='.sl'
  9831. dynamic_linker="$host_os dld.sl"
  9832. shlibpath_var=SHLIB_PATH
  9833. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9834. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9835. soname_spec='${libname}${release}${shared_ext}$major'
  9836. ;;
  9837. esac
  9838. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9839. postinstall_cmds='chmod 555 $lib'
  9840. # or fails outright, so override atomically:
  9841. install_override_mode=555
  9842. ;;
  9843. interix[3-9]*)
  9844. version_type=linux # correct to gnu/linux during the next big refactor
  9845. need_lib_prefix=no
  9846. need_version=no
  9847. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9848. soname_spec='${libname}${release}${shared_ext}$major'
  9849. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9850. shlibpath_var=LD_LIBRARY_PATH
  9851. shlibpath_overrides_runpath=no
  9852. hardcode_into_libs=yes
  9853. ;;
  9854. irix5* | irix6* | nonstopux*)
  9855. case $host_os in
  9856. nonstopux*) version_type=nonstopux ;;
  9857. *)
  9858. if test "$lt_cv_prog_gnu_ld" = yes; then
  9859. version_type=linux # correct to gnu/linux during the next big refactor
  9860. else
  9861. version_type=irix
  9862. fi ;;
  9863. esac
  9864. need_lib_prefix=no
  9865. need_version=no
  9866. soname_spec='${libname}${release}${shared_ext}$major'
  9867. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9868. case $host_os in
  9869. irix5* | nonstopux*)
  9870. libsuff= shlibsuff=
  9871. ;;
  9872. *)
  9873. case $LD in # libtool.m4 will add one of these switches to LD
  9874. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9875. libsuff= shlibsuff= libmagic=32-bit;;
  9876. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9877. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9878. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9879. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9880. *) libsuff= shlibsuff= libmagic=never-match;;
  9881. esac
  9882. ;;
  9883. esac
  9884. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9885. shlibpath_overrides_runpath=no
  9886. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9887. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9888. hardcode_into_libs=yes
  9889. ;;
  9890. # No shared lib support for Linux oldld, aout, or coff.
  9891. linux*oldld* | linux*aout* | linux*coff*)
  9892. dynamic_linker=no
  9893. ;;
  9894. # This must be glibc/ELF.
  9895. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9896. version_type=linux # correct to gnu/linux during the next big refactor
  9897. need_lib_prefix=no
  9898. need_version=no
  9899. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9900. soname_spec='${libname}${release}${shared_ext}$major'
  9901. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9902. shlibpath_var=LD_LIBRARY_PATH
  9903. shlibpath_overrides_runpath=no
  9904. # Some binutils ld are patched to set DT_RUNPATH
  9905. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9906. $as_echo_n "(cached) " >&6
  9907. else
  9908. lt_cv_shlibpath_overrides_runpath=no
  9909. save_LDFLAGS=$LDFLAGS
  9910. save_libdir=$libdir
  9911. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9912. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9914. /* end confdefs.h. */
  9915. int
  9916. main ()
  9917. {
  9918. ;
  9919. return 0;
  9920. }
  9921. _ACEOF
  9922. if ac_fn_c_try_link "$LINENO"; then :
  9923. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9924. lt_cv_shlibpath_overrides_runpath=yes
  9925. fi
  9926. fi
  9927. rm -f core conftest.err conftest.$ac_objext \
  9928. conftest$ac_exeext conftest.$ac_ext
  9929. LDFLAGS=$save_LDFLAGS
  9930. libdir=$save_libdir
  9931. fi
  9932. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9933. # This implies no fast_install, which is unacceptable.
  9934. # Some rework will be needed to allow for fast_install
  9935. # before this can be enabled.
  9936. hardcode_into_libs=yes
  9937. # Append ld.so.conf contents to the search path
  9938. if test -f /etc/ld.so.conf; then
  9939. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  9940. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9941. fi
  9942. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9943. # powerpc, because MkLinux only supported shared libraries with the
  9944. # GNU dynamic linker. Since this was broken with cross compilers,
  9945. # most powerpc-linux boxes support dynamic linking these days and
  9946. # people can always --disable-shared, the test was removed, and we
  9947. # assume the GNU/Linux dynamic linker is in use.
  9948. dynamic_linker='GNU/Linux ld.so'
  9949. ;;
  9950. netbsdelf*-gnu)
  9951. version_type=linux
  9952. need_lib_prefix=no
  9953. need_version=no
  9954. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9955. soname_spec='${libname}${release}${shared_ext}$major'
  9956. shlibpath_var=LD_LIBRARY_PATH
  9957. shlibpath_overrides_runpath=no
  9958. hardcode_into_libs=yes
  9959. dynamic_linker='NetBSD ld.elf_so'
  9960. ;;
  9961. netbsd*)
  9962. version_type=sunos
  9963. need_lib_prefix=no
  9964. need_version=no
  9965. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9966. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9967. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9968. dynamic_linker='NetBSD (a.out) ld.so'
  9969. else
  9970. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9971. soname_spec='${libname}${release}${shared_ext}$major'
  9972. dynamic_linker='NetBSD ld.elf_so'
  9973. fi
  9974. shlibpath_var=LD_LIBRARY_PATH
  9975. shlibpath_overrides_runpath=yes
  9976. hardcode_into_libs=yes
  9977. ;;
  9978. newsos6)
  9979. version_type=linux # correct to gnu/linux during the next big refactor
  9980. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9981. shlibpath_var=LD_LIBRARY_PATH
  9982. shlibpath_overrides_runpath=yes
  9983. ;;
  9984. *nto* | *qnx*)
  9985. version_type=qnx
  9986. need_lib_prefix=no
  9987. need_version=no
  9988. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9989. soname_spec='${libname}${release}${shared_ext}$major'
  9990. shlibpath_var=LD_LIBRARY_PATH
  9991. shlibpath_overrides_runpath=no
  9992. hardcode_into_libs=yes
  9993. dynamic_linker='ldqnx.so'
  9994. ;;
  9995. openbsd*)
  9996. version_type=sunos
  9997. sys_lib_dlsearch_path_spec="/usr/lib"
  9998. need_lib_prefix=no
  9999. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  10000. case $host_os in
  10001. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  10002. *) need_version=no ;;
  10003. esac
  10004. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10005. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10006. shlibpath_var=LD_LIBRARY_PATH
  10007. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10008. case $host_os in
  10009. openbsd2.[89] | openbsd2.[89].*)
  10010. shlibpath_overrides_runpath=no
  10011. ;;
  10012. *)
  10013. shlibpath_overrides_runpath=yes
  10014. ;;
  10015. esac
  10016. else
  10017. shlibpath_overrides_runpath=yes
  10018. fi
  10019. ;;
  10020. os2*)
  10021. libname_spec='$name'
  10022. shrext_cmds=".dll"
  10023. need_lib_prefix=no
  10024. library_names_spec='$libname${shared_ext} $libname.a'
  10025. dynamic_linker='OS/2 ld.exe'
  10026. shlibpath_var=LIBPATH
  10027. ;;
  10028. osf3* | osf4* | osf5*)
  10029. version_type=osf
  10030. need_lib_prefix=no
  10031. need_version=no
  10032. soname_spec='${libname}${release}${shared_ext}$major'
  10033. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10034. shlibpath_var=LD_LIBRARY_PATH
  10035. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10036. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10037. ;;
  10038. rdos*)
  10039. dynamic_linker=no
  10040. ;;
  10041. solaris*)
  10042. version_type=linux # correct to gnu/linux during the next big refactor
  10043. need_lib_prefix=no
  10044. need_version=no
  10045. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10046. soname_spec='${libname}${release}${shared_ext}$major'
  10047. shlibpath_var=LD_LIBRARY_PATH
  10048. shlibpath_overrides_runpath=yes
  10049. hardcode_into_libs=yes
  10050. # ldd complains unless libraries are executable
  10051. postinstall_cmds='chmod +x $lib'
  10052. ;;
  10053. sunos4*)
  10054. version_type=sunos
  10055. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10056. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10057. shlibpath_var=LD_LIBRARY_PATH
  10058. shlibpath_overrides_runpath=yes
  10059. if test "$with_gnu_ld" = yes; then
  10060. need_lib_prefix=no
  10061. fi
  10062. need_version=yes
  10063. ;;
  10064. sysv4 | sysv4.3*)
  10065. version_type=linux # correct to gnu/linux during the next big refactor
  10066. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10067. soname_spec='${libname}${release}${shared_ext}$major'
  10068. shlibpath_var=LD_LIBRARY_PATH
  10069. case $host_vendor in
  10070. sni)
  10071. shlibpath_overrides_runpath=no
  10072. need_lib_prefix=no
  10073. runpath_var=LD_RUN_PATH
  10074. ;;
  10075. siemens)
  10076. need_lib_prefix=no
  10077. ;;
  10078. motorola)
  10079. need_lib_prefix=no
  10080. need_version=no
  10081. shlibpath_overrides_runpath=no
  10082. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10083. ;;
  10084. esac
  10085. ;;
  10086. sysv4*MP*)
  10087. if test -d /usr/nec ;then
  10088. version_type=linux # correct to gnu/linux during the next big refactor
  10089. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10090. soname_spec='$libname${shared_ext}.$major'
  10091. shlibpath_var=LD_LIBRARY_PATH
  10092. fi
  10093. ;;
  10094. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10095. version_type=freebsd-elf
  10096. need_lib_prefix=no
  10097. need_version=no
  10098. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10099. soname_spec='${libname}${release}${shared_ext}$major'
  10100. shlibpath_var=LD_LIBRARY_PATH
  10101. shlibpath_overrides_runpath=yes
  10102. hardcode_into_libs=yes
  10103. if test "$with_gnu_ld" = yes; then
  10104. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10105. else
  10106. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10107. case $host_os in
  10108. sco3.2v5*)
  10109. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10110. ;;
  10111. esac
  10112. fi
  10113. sys_lib_dlsearch_path_spec='/usr/lib'
  10114. ;;
  10115. tpf*)
  10116. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10117. version_type=linux # correct to gnu/linux during the next big refactor
  10118. need_lib_prefix=no
  10119. need_version=no
  10120. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10121. shlibpath_var=LD_LIBRARY_PATH
  10122. shlibpath_overrides_runpath=no
  10123. hardcode_into_libs=yes
  10124. ;;
  10125. uts4*)
  10126. version_type=linux # correct to gnu/linux during the next big refactor
  10127. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10128. soname_spec='${libname}${release}${shared_ext}$major'
  10129. shlibpath_var=LD_LIBRARY_PATH
  10130. ;;
  10131. *)
  10132. dynamic_linker=no
  10133. ;;
  10134. esac
  10135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10136. $as_echo "$dynamic_linker" >&6; }
  10137. test "$dynamic_linker" = no && can_build_shared=no
  10138. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10139. if test "$GCC" = yes; then
  10140. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10141. fi
  10142. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  10143. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  10144. fi
  10145. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  10146. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  10147. fi
  10148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10149. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10150. hardcode_action=
  10151. if test -n "$hardcode_libdir_flag_spec" ||
  10152. test -n "$runpath_var" ||
  10153. test "X$hardcode_automatic" = "Xyes" ; then
  10154. # We can hardcode non-existent directories.
  10155. if test "$hardcode_direct" != no &&
  10156. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10157. # have to relink, otherwise we might link with an installed library
  10158. # when we should be linking with a yet-to-be-installed one
  10159. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  10160. test "$hardcode_minus_L" != no; then
  10161. # Linking always hardcodes the temporary library directory.
  10162. hardcode_action=relink
  10163. else
  10164. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10165. hardcode_action=immediate
  10166. fi
  10167. else
  10168. # We cannot hardcode anything, or else we can only hardcode existing
  10169. # directories.
  10170. hardcode_action=unsupported
  10171. fi
  10172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10173. $as_echo "$hardcode_action" >&6; }
  10174. if test "$hardcode_action" = relink ||
  10175. test "$inherit_rpath" = yes; then
  10176. # Fast installation is not supported
  10177. enable_fast_install=no
  10178. elif test "$shlibpath_overrides_runpath" = yes ||
  10179. test "$enable_shared" = no; then
  10180. # Fast installation is not necessary
  10181. enable_fast_install=needless
  10182. fi
  10183. if test "x$enable_dlopen" != xyes; then
  10184. enable_dlopen=unknown
  10185. enable_dlopen_self=unknown
  10186. enable_dlopen_self_static=unknown
  10187. else
  10188. lt_cv_dlopen=no
  10189. lt_cv_dlopen_libs=
  10190. case $host_os in
  10191. beos*)
  10192. lt_cv_dlopen="load_add_on"
  10193. lt_cv_dlopen_libs=
  10194. lt_cv_dlopen_self=yes
  10195. ;;
  10196. mingw* | pw32* | cegcc*)
  10197. lt_cv_dlopen="LoadLibrary"
  10198. lt_cv_dlopen_libs=
  10199. ;;
  10200. cygwin*)
  10201. lt_cv_dlopen="dlopen"
  10202. lt_cv_dlopen_libs=
  10203. ;;
  10204. darwin*)
  10205. # if libdl is installed we need to link against it
  10206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10207. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10208. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10209. $as_echo_n "(cached) " >&6
  10210. else
  10211. ac_check_lib_save_LIBS=$LIBS
  10212. LIBS="-ldl $LIBS"
  10213. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10214. /* end confdefs.h. */
  10215. /* Override any GCC internal prototype to avoid an error.
  10216. Use char because int might match the return type of a GCC
  10217. builtin and then its argument prototype would still apply. */
  10218. #ifdef __cplusplus
  10219. extern "C"
  10220. #endif
  10221. char dlopen ();
  10222. int
  10223. main ()
  10224. {
  10225. return dlopen ();
  10226. ;
  10227. return 0;
  10228. }
  10229. _ACEOF
  10230. if ac_fn_c_try_link "$LINENO"; then :
  10231. ac_cv_lib_dl_dlopen=yes
  10232. else
  10233. ac_cv_lib_dl_dlopen=no
  10234. fi
  10235. rm -f core conftest.err conftest.$ac_objext \
  10236. conftest$ac_exeext conftest.$ac_ext
  10237. LIBS=$ac_check_lib_save_LIBS
  10238. fi
  10239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10240. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10241. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10242. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10243. else
  10244. lt_cv_dlopen="dyld"
  10245. lt_cv_dlopen_libs=
  10246. lt_cv_dlopen_self=yes
  10247. fi
  10248. ;;
  10249. *)
  10250. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10251. if test "x$ac_cv_func_shl_load" = xyes; then :
  10252. lt_cv_dlopen="shl_load"
  10253. else
  10254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10255. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10256. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10257. $as_echo_n "(cached) " >&6
  10258. else
  10259. ac_check_lib_save_LIBS=$LIBS
  10260. LIBS="-ldld $LIBS"
  10261. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10262. /* end confdefs.h. */
  10263. /* Override any GCC internal prototype to avoid an error.
  10264. Use char because int might match the return type of a GCC
  10265. builtin and then its argument prototype would still apply. */
  10266. #ifdef __cplusplus
  10267. extern "C"
  10268. #endif
  10269. char shl_load ();
  10270. int
  10271. main ()
  10272. {
  10273. return shl_load ();
  10274. ;
  10275. return 0;
  10276. }
  10277. _ACEOF
  10278. if ac_fn_c_try_link "$LINENO"; then :
  10279. ac_cv_lib_dld_shl_load=yes
  10280. else
  10281. ac_cv_lib_dld_shl_load=no
  10282. fi
  10283. rm -f core conftest.err conftest.$ac_objext \
  10284. conftest$ac_exeext conftest.$ac_ext
  10285. LIBS=$ac_check_lib_save_LIBS
  10286. fi
  10287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10288. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10289. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10290. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10291. else
  10292. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10293. if test "x$ac_cv_func_dlopen" = xyes; then :
  10294. lt_cv_dlopen="dlopen"
  10295. else
  10296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10297. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10298. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10299. $as_echo_n "(cached) " >&6
  10300. else
  10301. ac_check_lib_save_LIBS=$LIBS
  10302. LIBS="-ldl $LIBS"
  10303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10304. /* end confdefs.h. */
  10305. /* Override any GCC internal prototype to avoid an error.
  10306. Use char because int might match the return type of a GCC
  10307. builtin and then its argument prototype would still apply. */
  10308. #ifdef __cplusplus
  10309. extern "C"
  10310. #endif
  10311. char dlopen ();
  10312. int
  10313. main ()
  10314. {
  10315. return dlopen ();
  10316. ;
  10317. return 0;
  10318. }
  10319. _ACEOF
  10320. if ac_fn_c_try_link "$LINENO"; then :
  10321. ac_cv_lib_dl_dlopen=yes
  10322. else
  10323. ac_cv_lib_dl_dlopen=no
  10324. fi
  10325. rm -f core conftest.err conftest.$ac_objext \
  10326. conftest$ac_exeext conftest.$ac_ext
  10327. LIBS=$ac_check_lib_save_LIBS
  10328. fi
  10329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10330. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10331. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10332. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10333. else
  10334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10335. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10336. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10337. $as_echo_n "(cached) " >&6
  10338. else
  10339. ac_check_lib_save_LIBS=$LIBS
  10340. LIBS="-lsvld $LIBS"
  10341. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10342. /* end confdefs.h. */
  10343. /* Override any GCC internal prototype to avoid an error.
  10344. Use char because int might match the return type of a GCC
  10345. builtin and then its argument prototype would still apply. */
  10346. #ifdef __cplusplus
  10347. extern "C"
  10348. #endif
  10349. char dlopen ();
  10350. int
  10351. main ()
  10352. {
  10353. return dlopen ();
  10354. ;
  10355. return 0;
  10356. }
  10357. _ACEOF
  10358. if ac_fn_c_try_link "$LINENO"; then :
  10359. ac_cv_lib_svld_dlopen=yes
  10360. else
  10361. ac_cv_lib_svld_dlopen=no
  10362. fi
  10363. rm -f core conftest.err conftest.$ac_objext \
  10364. conftest$ac_exeext conftest.$ac_ext
  10365. LIBS=$ac_check_lib_save_LIBS
  10366. fi
  10367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10368. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10369. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10370. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10371. else
  10372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10373. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10374. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10375. $as_echo_n "(cached) " >&6
  10376. else
  10377. ac_check_lib_save_LIBS=$LIBS
  10378. LIBS="-ldld $LIBS"
  10379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10380. /* end confdefs.h. */
  10381. /* Override any GCC internal prototype to avoid an error.
  10382. Use char because int might match the return type of a GCC
  10383. builtin and then its argument prototype would still apply. */
  10384. #ifdef __cplusplus
  10385. extern "C"
  10386. #endif
  10387. char dld_link ();
  10388. int
  10389. main ()
  10390. {
  10391. return dld_link ();
  10392. ;
  10393. return 0;
  10394. }
  10395. _ACEOF
  10396. if ac_fn_c_try_link "$LINENO"; then :
  10397. ac_cv_lib_dld_dld_link=yes
  10398. else
  10399. ac_cv_lib_dld_dld_link=no
  10400. fi
  10401. rm -f core conftest.err conftest.$ac_objext \
  10402. conftest$ac_exeext conftest.$ac_ext
  10403. LIBS=$ac_check_lib_save_LIBS
  10404. fi
  10405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10406. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10407. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10408. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10409. fi
  10410. fi
  10411. fi
  10412. fi
  10413. fi
  10414. fi
  10415. ;;
  10416. esac
  10417. if test "x$lt_cv_dlopen" != xno; then
  10418. enable_dlopen=yes
  10419. else
  10420. enable_dlopen=no
  10421. fi
  10422. case $lt_cv_dlopen in
  10423. dlopen)
  10424. save_CPPFLAGS="$CPPFLAGS"
  10425. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10426. save_LDFLAGS="$LDFLAGS"
  10427. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10428. save_LIBS="$LIBS"
  10429. LIBS="$lt_cv_dlopen_libs $LIBS"
  10430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10431. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10432. if ${lt_cv_dlopen_self+:} false; then :
  10433. $as_echo_n "(cached) " >&6
  10434. else
  10435. if test "$cross_compiling" = yes; then :
  10436. lt_cv_dlopen_self=cross
  10437. else
  10438. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10439. lt_status=$lt_dlunknown
  10440. cat > conftest.$ac_ext <<_LT_EOF
  10441. #line $LINENO "configure"
  10442. #include "confdefs.h"
  10443. #if HAVE_DLFCN_H
  10444. #include <dlfcn.h>
  10445. #endif
  10446. #include <stdio.h>
  10447. #ifdef RTLD_GLOBAL
  10448. # define LT_DLGLOBAL RTLD_GLOBAL
  10449. #else
  10450. # ifdef DL_GLOBAL
  10451. # define LT_DLGLOBAL DL_GLOBAL
  10452. # else
  10453. # define LT_DLGLOBAL 0
  10454. # endif
  10455. #endif
  10456. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10457. find out it does not work in some platform. */
  10458. #ifndef LT_DLLAZY_OR_NOW
  10459. # ifdef RTLD_LAZY
  10460. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10461. # else
  10462. # ifdef DL_LAZY
  10463. # define LT_DLLAZY_OR_NOW DL_LAZY
  10464. # else
  10465. # ifdef RTLD_NOW
  10466. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10467. # else
  10468. # ifdef DL_NOW
  10469. # define LT_DLLAZY_OR_NOW DL_NOW
  10470. # else
  10471. # define LT_DLLAZY_OR_NOW 0
  10472. # endif
  10473. # endif
  10474. # endif
  10475. # endif
  10476. #endif
  10477. /* When -fvisbility=hidden is used, assume the code has been annotated
  10478. correspondingly for the symbols needed. */
  10479. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10480. int fnord () __attribute__((visibility("default")));
  10481. #endif
  10482. int fnord () { return 42; }
  10483. int main ()
  10484. {
  10485. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10486. int status = $lt_dlunknown;
  10487. if (self)
  10488. {
  10489. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10490. else
  10491. {
  10492. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10493. else puts (dlerror ());
  10494. }
  10495. /* dlclose (self); */
  10496. }
  10497. else
  10498. puts (dlerror ());
  10499. return status;
  10500. }
  10501. _LT_EOF
  10502. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10503. (eval $ac_link) 2>&5
  10504. ac_status=$?
  10505. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10506. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10507. (./conftest; exit; ) >&5 2>/dev/null
  10508. lt_status=$?
  10509. case x$lt_status in
  10510. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10511. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10512. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10513. esac
  10514. else :
  10515. # compilation failed
  10516. lt_cv_dlopen_self=no
  10517. fi
  10518. fi
  10519. rm -fr conftest*
  10520. fi
  10521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10522. $as_echo "$lt_cv_dlopen_self" >&6; }
  10523. if test "x$lt_cv_dlopen_self" = xyes; then
  10524. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10526. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10527. if ${lt_cv_dlopen_self_static+:} false; then :
  10528. $as_echo_n "(cached) " >&6
  10529. else
  10530. if test "$cross_compiling" = yes; then :
  10531. lt_cv_dlopen_self_static=cross
  10532. else
  10533. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10534. lt_status=$lt_dlunknown
  10535. cat > conftest.$ac_ext <<_LT_EOF
  10536. #line $LINENO "configure"
  10537. #include "confdefs.h"
  10538. #if HAVE_DLFCN_H
  10539. #include <dlfcn.h>
  10540. #endif
  10541. #include <stdio.h>
  10542. #ifdef RTLD_GLOBAL
  10543. # define LT_DLGLOBAL RTLD_GLOBAL
  10544. #else
  10545. # ifdef DL_GLOBAL
  10546. # define LT_DLGLOBAL DL_GLOBAL
  10547. # else
  10548. # define LT_DLGLOBAL 0
  10549. # endif
  10550. #endif
  10551. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10552. find out it does not work in some platform. */
  10553. #ifndef LT_DLLAZY_OR_NOW
  10554. # ifdef RTLD_LAZY
  10555. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10556. # else
  10557. # ifdef DL_LAZY
  10558. # define LT_DLLAZY_OR_NOW DL_LAZY
  10559. # else
  10560. # ifdef RTLD_NOW
  10561. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10562. # else
  10563. # ifdef DL_NOW
  10564. # define LT_DLLAZY_OR_NOW DL_NOW
  10565. # else
  10566. # define LT_DLLAZY_OR_NOW 0
  10567. # endif
  10568. # endif
  10569. # endif
  10570. # endif
  10571. #endif
  10572. /* When -fvisbility=hidden is used, assume the code has been annotated
  10573. correspondingly for the symbols needed. */
  10574. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10575. int fnord () __attribute__((visibility("default")));
  10576. #endif
  10577. int fnord () { return 42; }
  10578. int main ()
  10579. {
  10580. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10581. int status = $lt_dlunknown;
  10582. if (self)
  10583. {
  10584. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10585. else
  10586. {
  10587. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10588. else puts (dlerror ());
  10589. }
  10590. /* dlclose (self); */
  10591. }
  10592. else
  10593. puts (dlerror ());
  10594. return status;
  10595. }
  10596. _LT_EOF
  10597. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10598. (eval $ac_link) 2>&5
  10599. ac_status=$?
  10600. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10601. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10602. (./conftest; exit; ) >&5 2>/dev/null
  10603. lt_status=$?
  10604. case x$lt_status in
  10605. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10606. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10607. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10608. esac
  10609. else :
  10610. # compilation failed
  10611. lt_cv_dlopen_self_static=no
  10612. fi
  10613. fi
  10614. rm -fr conftest*
  10615. fi
  10616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10617. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10618. fi
  10619. CPPFLAGS="$save_CPPFLAGS"
  10620. LDFLAGS="$save_LDFLAGS"
  10621. LIBS="$save_LIBS"
  10622. ;;
  10623. esac
  10624. case $lt_cv_dlopen_self in
  10625. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10626. *) enable_dlopen_self=unknown ;;
  10627. esac
  10628. case $lt_cv_dlopen_self_static in
  10629. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10630. *) enable_dlopen_self_static=unknown ;;
  10631. esac
  10632. fi
  10633. striplib=
  10634. old_striplib=
  10635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10636. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10637. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10638. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10639. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10641. $as_echo "yes" >&6; }
  10642. else
  10643. # FIXME - insert some real tests, host_os isn't really good enough
  10644. case $host_os in
  10645. darwin*)
  10646. if test -n "$STRIP" ; then
  10647. striplib="$STRIP -x"
  10648. old_striplib="$STRIP -S"
  10649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10650. $as_echo "yes" >&6; }
  10651. else
  10652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10653. $as_echo "no" >&6; }
  10654. fi
  10655. ;;
  10656. *)
  10657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10658. $as_echo "no" >&6; }
  10659. ;;
  10660. esac
  10661. fi
  10662. # Report which library types will actually be built
  10663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10664. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10666. $as_echo "$can_build_shared" >&6; }
  10667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10668. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10669. test "$can_build_shared" = "no" && enable_shared=no
  10670. # On AIX, shared libraries and static libraries use the same namespace, and
  10671. # are all built from PIC.
  10672. case $host_os in
  10673. aix3*)
  10674. test "$enable_shared" = yes && enable_static=no
  10675. if test -n "$RANLIB"; then
  10676. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10677. postinstall_cmds='$RANLIB $lib'
  10678. fi
  10679. ;;
  10680. aix[4-9]*)
  10681. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10682. test "$enable_shared" = yes && enable_static=no
  10683. fi
  10684. ;;
  10685. esac
  10686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10687. $as_echo "$enable_shared" >&6; }
  10688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10689. $as_echo_n "checking whether to build static libraries... " >&6; }
  10690. # Make sure either enable_shared or enable_static is yes.
  10691. test "$enable_shared" = yes || enable_static=yes
  10692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10693. $as_echo "$enable_static" >&6; }
  10694. fi
  10695. ac_ext=c
  10696. ac_cpp='$CPP $CPPFLAGS'
  10697. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10698. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10699. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10700. CC="$lt_save_CC"
  10701. ac_config_commands="$ac_config_commands libtool"
  10702. # Only expand once:
  10703. case $ac_cv_prog_cc_stdc in #(
  10704. no) :
  10705. ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
  10706. *) :
  10707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  10708. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  10709. if ${ac_cv_prog_cc_c99+:} false; then :
  10710. $as_echo_n "(cached) " >&6
  10711. else
  10712. ac_cv_prog_cc_c99=no
  10713. ac_save_CC=$CC
  10714. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10715. /* end confdefs.h. */
  10716. #include <stdarg.h>
  10717. #include <stdbool.h>
  10718. #include <stdlib.h>
  10719. #include <wchar.h>
  10720. #include <stdio.h>
  10721. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  10722. #define debug(...) fprintf (stderr, __VA_ARGS__)
  10723. #define showlist(...) puts (#__VA_ARGS__)
  10724. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  10725. static void
  10726. test_varargs_macros (void)
  10727. {
  10728. int x = 1234;
  10729. int y = 5678;
  10730. debug ("Flag");
  10731. debug ("X = %d\n", x);
  10732. showlist (The first, second, and third items.);
  10733. report (x>y, "x is %d but y is %d", x, y);
  10734. }
  10735. // Check long long types.
  10736. #define BIG64 18446744073709551615ull
  10737. #define BIG32 4294967295ul
  10738. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  10739. #if !BIG_OK
  10740. your preprocessor is broken;
  10741. #endif
  10742. #if BIG_OK
  10743. #else
  10744. your preprocessor is broken;
  10745. #endif
  10746. static long long int bignum = -9223372036854775807LL;
  10747. static unsigned long long int ubignum = BIG64;
  10748. struct incomplete_array
  10749. {
  10750. int datasize;
  10751. double data[];
  10752. };
  10753. struct named_init {
  10754. int number;
  10755. const wchar_t *name;
  10756. double average;
  10757. };
  10758. typedef const char *ccp;
  10759. static inline int
  10760. test_restrict (ccp restrict text)
  10761. {
  10762. // See if C++-style comments work.
  10763. // Iterate through items via the restricted pointer.
  10764. // Also check for declarations in for loops.
  10765. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  10766. continue;
  10767. return 0;
  10768. }
  10769. // Check varargs and va_copy.
  10770. static void
  10771. test_varargs (const char *format, ...)
  10772. {
  10773. va_list args;
  10774. va_start (args, format);
  10775. va_list args_copy;
  10776. va_copy (args_copy, args);
  10777. const char *str;
  10778. int number;
  10779. float fnumber;
  10780. while (*format)
  10781. {
  10782. switch (*format++)
  10783. {
  10784. case 's': // string
  10785. str = va_arg (args_copy, const char *);
  10786. break;
  10787. case 'd': // int
  10788. number = va_arg (args_copy, int);
  10789. break;
  10790. case 'f': // float
  10791. fnumber = va_arg (args_copy, double);
  10792. break;
  10793. default:
  10794. break;
  10795. }
  10796. }
  10797. va_end (args_copy);
  10798. va_end (args);
  10799. }
  10800. int
  10801. main ()
  10802. {
  10803. // Check bool.
  10804. _Bool success = false;
  10805. // Check restrict.
  10806. if (test_restrict ("String literal") == 0)
  10807. success = true;
  10808. char *restrict newvar = "Another string";
  10809. // Check varargs.
  10810. test_varargs ("s, d' f .", "string", 65, 34.234);
  10811. test_varargs_macros ();
  10812. // Check flexible array members.
  10813. struct incomplete_array *ia =
  10814. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  10815. ia->datasize = 10;
  10816. for (int i = 0; i < ia->datasize; ++i)
  10817. ia->data[i] = i * 1.234;
  10818. // Check named initializers.
  10819. struct named_init ni = {
  10820. .number = 34,
  10821. .name = L"Test wide string",
  10822. .average = 543.34343,
  10823. };
  10824. ni.number = 58;
  10825. int dynamic_array[ni.number];
  10826. dynamic_array[ni.number - 1] = 543;
  10827. // work around unused variable warnings
  10828. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  10829. || dynamic_array[ni.number - 1] != 543);
  10830. ;
  10831. return 0;
  10832. }
  10833. _ACEOF
  10834. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
  10835. do
  10836. CC="$ac_save_CC $ac_arg"
  10837. if ac_fn_c_try_compile "$LINENO"; then :
  10838. ac_cv_prog_cc_c99=$ac_arg
  10839. fi
  10840. rm -f core conftest.err conftest.$ac_objext
  10841. test "x$ac_cv_prog_cc_c99" != "xno" && break
  10842. done
  10843. rm -f conftest.$ac_ext
  10844. CC=$ac_save_CC
  10845. fi
  10846. # AC_CACHE_VAL
  10847. case "x$ac_cv_prog_cc_c99" in
  10848. x)
  10849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10850. $as_echo "none needed" >&6; } ;;
  10851. xno)
  10852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10853. $as_echo "unsupported" >&6; } ;;
  10854. *)
  10855. CC="$CC $ac_cv_prog_cc_c99"
  10856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  10857. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  10858. esac
  10859. if test "x$ac_cv_prog_cc_c99" != xno; then :
  10860. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  10861. else
  10862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10863. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10864. if ${ac_cv_prog_cc_c89+:} false; then :
  10865. $as_echo_n "(cached) " >&6
  10866. else
  10867. ac_cv_prog_cc_c89=no
  10868. ac_save_CC=$CC
  10869. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10870. /* end confdefs.h. */
  10871. #include <stdarg.h>
  10872. #include <stdio.h>
  10873. struct stat;
  10874. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10875. struct buf { int x; };
  10876. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10877. static char *e (p, i)
  10878. char **p;
  10879. int i;
  10880. {
  10881. return p[i];
  10882. }
  10883. static char *f (char * (*g) (char **, int), char **p, ...)
  10884. {
  10885. char *s;
  10886. va_list v;
  10887. va_start (v,p);
  10888. s = g (p, va_arg (v,int));
  10889. va_end (v);
  10890. return s;
  10891. }
  10892. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10893. function prototypes and stuff, but not '\xHH' hex character constants.
  10894. These don't provoke an error unfortunately, instead are silently treated
  10895. as 'x'. The following induces an error, until -std is added to get
  10896. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10897. array size at least. It's necessary to write '\x00'==0 to get something
  10898. that's true only with -std. */
  10899. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10900. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10901. inside strings and character constants. */
  10902. #define FOO(x) 'x'
  10903. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10904. int test (int i, double x);
  10905. struct s1 {int (*f) (int a);};
  10906. struct s2 {int (*f) (double a);};
  10907. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10908. int argc;
  10909. char **argv;
  10910. int
  10911. main ()
  10912. {
  10913. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10914. ;
  10915. return 0;
  10916. }
  10917. _ACEOF
  10918. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10919. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10920. do
  10921. CC="$ac_save_CC $ac_arg"
  10922. if ac_fn_c_try_compile "$LINENO"; then :
  10923. ac_cv_prog_cc_c89=$ac_arg
  10924. fi
  10925. rm -f core conftest.err conftest.$ac_objext
  10926. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10927. done
  10928. rm -f conftest.$ac_ext
  10929. CC=$ac_save_CC
  10930. fi
  10931. # AC_CACHE_VAL
  10932. case "x$ac_cv_prog_cc_c89" in
  10933. x)
  10934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10935. $as_echo "none needed" >&6; } ;;
  10936. xno)
  10937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10938. $as_echo "unsupported" >&6; } ;;
  10939. *)
  10940. CC="$CC $ac_cv_prog_cc_c89"
  10941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10942. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10943. esac
  10944. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10945. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  10946. else
  10947. ac_cv_prog_cc_stdc=no
  10948. fi
  10949. fi
  10950. ;;
  10951. esac
  10952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
  10953. $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
  10954. if ${ac_cv_prog_cc_stdc+:} false; then :
  10955. $as_echo_n "(cached) " >&6
  10956. fi
  10957. case $ac_cv_prog_cc_stdc in #(
  10958. no) :
  10959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10960. $as_echo "unsupported" >&6; } ;; #(
  10961. '') :
  10962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10963. $as_echo "none needed" >&6; } ;; #(
  10964. *) :
  10965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
  10966. $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
  10967. esac
  10968. ac_ext=cpp
  10969. ac_cpp='$CXXCPP $CPPFLAGS'
  10970. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10971. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10972. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10973. if test -z "$CXX"; then
  10974. if test -n "$CCC"; then
  10975. CXX=$CCC
  10976. else
  10977. if test -n "$ac_tool_prefix"; then
  10978. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10979. do
  10980. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10981. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10983. $as_echo_n "checking for $ac_word... " >&6; }
  10984. if ${ac_cv_prog_CXX+:} false; then :
  10985. $as_echo_n "(cached) " >&6
  10986. else
  10987. if test -n "$CXX"; then
  10988. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10989. else
  10990. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10991. for as_dir in $PATH
  10992. do
  10993. IFS=$as_save_IFS
  10994. test -z "$as_dir" && as_dir=.
  10995. for ac_exec_ext in '' $ac_executable_extensions; do
  10996. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10997. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10998. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10999. break 2
  11000. fi
  11001. done
  11002. done
  11003. IFS=$as_save_IFS
  11004. fi
  11005. fi
  11006. CXX=$ac_cv_prog_CXX
  11007. if test -n "$CXX"; then
  11008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  11009. $as_echo "$CXX" >&6; }
  11010. else
  11011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11012. $as_echo "no" >&6; }
  11013. fi
  11014. test -n "$CXX" && break
  11015. done
  11016. fi
  11017. if test -z "$CXX"; then
  11018. ac_ct_CXX=$CXX
  11019. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  11020. do
  11021. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11022. set dummy $ac_prog; ac_word=$2
  11023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11024. $as_echo_n "checking for $ac_word... " >&6; }
  11025. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  11026. $as_echo_n "(cached) " >&6
  11027. else
  11028. if test -n "$ac_ct_CXX"; then
  11029. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  11030. else
  11031. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11032. for as_dir in $PATH
  11033. do
  11034. IFS=$as_save_IFS
  11035. test -z "$as_dir" && as_dir=.
  11036. for ac_exec_ext in '' $ac_executable_extensions; do
  11037. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11038. ac_cv_prog_ac_ct_CXX="$ac_prog"
  11039. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11040. break 2
  11041. fi
  11042. done
  11043. done
  11044. IFS=$as_save_IFS
  11045. fi
  11046. fi
  11047. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  11048. if test -n "$ac_ct_CXX"; then
  11049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  11050. $as_echo "$ac_ct_CXX" >&6; }
  11051. else
  11052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11053. $as_echo "no" >&6; }
  11054. fi
  11055. test -n "$ac_ct_CXX" && break
  11056. done
  11057. if test "x$ac_ct_CXX" = x; then
  11058. CXX="g++"
  11059. else
  11060. case $cross_compiling:$ac_tool_warned in
  11061. yes:)
  11062. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11063. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11064. ac_tool_warned=yes ;;
  11065. esac
  11066. CXX=$ac_ct_CXX
  11067. fi
  11068. fi
  11069. fi
  11070. fi
  11071. # Provide some information about the compiler.
  11072. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  11073. set X $ac_compile
  11074. ac_compiler=$2
  11075. for ac_option in --version -v -V -qversion; do
  11076. { { ac_try="$ac_compiler $ac_option >&5"
  11077. case "(($ac_try" in
  11078. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11079. *) ac_try_echo=$ac_try;;
  11080. esac
  11081. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11082. $as_echo "$ac_try_echo"; } >&5
  11083. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11084. ac_status=$?
  11085. if test -s conftest.err; then
  11086. sed '10a\
  11087. ... rest of stderr output deleted ...
  11088. 10q' conftest.err >conftest.er1
  11089. cat conftest.er1 >&5
  11090. fi
  11091. rm -f conftest.er1 conftest.err
  11092. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11093. test $ac_status = 0; }
  11094. done
  11095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  11096. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  11097. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  11098. $as_echo_n "(cached) " >&6
  11099. else
  11100. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11101. /* end confdefs.h. */
  11102. int
  11103. main ()
  11104. {
  11105. #ifndef __GNUC__
  11106. choke me
  11107. #endif
  11108. ;
  11109. return 0;
  11110. }
  11111. _ACEOF
  11112. if ac_fn_cxx_try_compile "$LINENO"; then :
  11113. ac_compiler_gnu=yes
  11114. else
  11115. ac_compiler_gnu=no
  11116. fi
  11117. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11118. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  11119. fi
  11120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  11121. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  11122. if test $ac_compiler_gnu = yes; then
  11123. GXX=yes
  11124. else
  11125. GXX=
  11126. fi
  11127. ac_test_CXXFLAGS=${CXXFLAGS+set}
  11128. ac_save_CXXFLAGS=$CXXFLAGS
  11129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  11130. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  11131. if ${ac_cv_prog_cxx_g+:} false; then :
  11132. $as_echo_n "(cached) " >&6
  11133. else
  11134. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  11135. ac_cxx_werror_flag=yes
  11136. ac_cv_prog_cxx_g=no
  11137. CXXFLAGS="-g"
  11138. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11139. /* end confdefs.h. */
  11140. int
  11141. main ()
  11142. {
  11143. ;
  11144. return 0;
  11145. }
  11146. _ACEOF
  11147. if ac_fn_cxx_try_compile "$LINENO"; then :
  11148. ac_cv_prog_cxx_g=yes
  11149. else
  11150. CXXFLAGS=""
  11151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11152. /* end confdefs.h. */
  11153. int
  11154. main ()
  11155. {
  11156. ;
  11157. return 0;
  11158. }
  11159. _ACEOF
  11160. if ac_fn_cxx_try_compile "$LINENO"; then :
  11161. else
  11162. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  11163. CXXFLAGS="-g"
  11164. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11165. /* end confdefs.h. */
  11166. int
  11167. main ()
  11168. {
  11169. ;
  11170. return 0;
  11171. }
  11172. _ACEOF
  11173. if ac_fn_cxx_try_compile "$LINENO"; then :
  11174. ac_cv_prog_cxx_g=yes
  11175. fi
  11176. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11177. fi
  11178. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11179. fi
  11180. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11181. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  11182. fi
  11183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  11184. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  11185. if test "$ac_test_CXXFLAGS" = set; then
  11186. CXXFLAGS=$ac_save_CXXFLAGS
  11187. elif test $ac_cv_prog_cxx_g = yes; then
  11188. if test "$GXX" = yes; then
  11189. CXXFLAGS="-g -O2"
  11190. else
  11191. CXXFLAGS="-g"
  11192. fi
  11193. else
  11194. if test "$GXX" = yes; then
  11195. CXXFLAGS="-O2"
  11196. else
  11197. CXXFLAGS=
  11198. fi
  11199. fi
  11200. ac_ext=c
  11201. ac_cpp='$CPP $CPPFLAGS'
  11202. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11203. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11204. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11205. depcc="$CXX" am_compiler_list=
  11206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  11207. $as_echo_n "checking dependency style of $depcc... " >&6; }
  11208. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  11209. $as_echo_n "(cached) " >&6
  11210. else
  11211. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  11212. # We make a subdir and do the tests there. Otherwise we can end up
  11213. # making bogus files that we don't know about and never remove. For
  11214. # instance it was reported that on HP-UX the gcc test will end up
  11215. # making a dummy file named 'D' -- because '-MD' means "put the output
  11216. # in D".
  11217. rm -rf conftest.dir
  11218. mkdir conftest.dir
  11219. # Copy depcomp to subdir because otherwise we won't find it if we're
  11220. # using a relative directory.
  11221. cp "$am_depcomp" conftest.dir
  11222. cd conftest.dir
  11223. # We will build objects and dependencies in a subdirectory because
  11224. # it helps to detect inapplicable dependency modes. For instance
  11225. # both Tru64's cc and ICC support -MD to output dependencies as a
  11226. # side effect of compilation, but ICC will put the dependencies in
  11227. # the current directory while Tru64 will put them in the object
  11228. # directory.
  11229. mkdir sub
  11230. am_cv_CXX_dependencies_compiler_type=none
  11231. if test "$am_compiler_list" = ""; then
  11232. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  11233. fi
  11234. am__universal=false
  11235. case " $depcc " in #(
  11236. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  11237. esac
  11238. for depmode in $am_compiler_list; do
  11239. # Setup a source with many dependencies, because some compilers
  11240. # like to wrap large dependency lists on column 80 (with \), and
  11241. # we should not choose a depcomp mode which is confused by this.
  11242. #
  11243. # We need to recreate these files for each test, as the compiler may
  11244. # overwrite some of them when testing with obscure command lines.
  11245. # This happens at least with the AIX C compiler.
  11246. : > sub/conftest.c
  11247. for i in 1 2 3 4 5 6; do
  11248. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  11249. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  11250. # Solaris 10 /bin/sh.
  11251. echo '/* dummy */' > sub/conftst$i.h
  11252. done
  11253. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  11254. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  11255. # mode. It turns out that the SunPro C++ compiler does not properly
  11256. # handle '-M -o', and we need to detect this. Also, some Intel
  11257. # versions had trouble with output in subdirs.
  11258. am__obj=sub/conftest.${OBJEXT-o}
  11259. am__minus_obj="-o $am__obj"
  11260. case $depmode in
  11261. gcc)
  11262. # This depmode causes a compiler race in universal mode.
  11263. test "$am__universal" = false || continue
  11264. ;;
  11265. nosideeffect)
  11266. # After this tag, mechanisms are not by side-effect, so they'll
  11267. # only be used when explicitly requested.
  11268. if test "x$enable_dependency_tracking" = xyes; then
  11269. continue
  11270. else
  11271. break
  11272. fi
  11273. ;;
  11274. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  11275. # This compiler won't grok '-c -o', but also, the minuso test has
  11276. # not run yet. These depmodes are late enough in the game, and
  11277. # so weak that their functioning should not be impacted.
  11278. am__obj=conftest.${OBJEXT-o}
  11279. am__minus_obj=
  11280. ;;
  11281. none) break ;;
  11282. esac
  11283. if depmode=$depmode \
  11284. source=sub/conftest.c object=$am__obj \
  11285. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  11286. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  11287. >/dev/null 2>conftest.err &&
  11288. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  11289. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  11290. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  11291. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  11292. # icc doesn't choke on unknown options, it will just issue warnings
  11293. # or remarks (even with -Werror). So we grep stderr for any message
  11294. # that says an option was ignored or not supported.
  11295. # When given -MP, icc 7.0 and 7.1 complain thusly:
  11296. # icc: Command line warning: ignoring option '-M'; no argument required
  11297. # The diagnosis changed in icc 8.0:
  11298. # icc: Command line remark: option '-MP' not supported
  11299. if (grep 'ignoring option' conftest.err ||
  11300. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  11301. am_cv_CXX_dependencies_compiler_type=$depmode
  11302. break
  11303. fi
  11304. fi
  11305. done
  11306. cd ..
  11307. rm -rf conftest.dir
  11308. else
  11309. am_cv_CXX_dependencies_compiler_type=none
  11310. fi
  11311. fi
  11312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  11313. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  11314. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  11315. if
  11316. test "x$enable_dependency_tracking" != xno \
  11317. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  11318. am__fastdepCXX_TRUE=
  11319. am__fastdepCXX_FALSE='#'
  11320. else
  11321. am__fastdepCXX_TRUE='#'
  11322. am__fastdepCXX_FALSE=
  11323. fi
  11324. func_stripname_cnf ()
  11325. {
  11326. case ${2} in
  11327. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  11328. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  11329. esac
  11330. } # func_stripname_cnf
  11331. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  11332. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  11333. (test "X$CXX" != "Xg++"))) ; then
  11334. ac_ext=cpp
  11335. ac_cpp='$CXXCPP $CPPFLAGS'
  11336. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11337. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11338. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  11340. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  11341. if test -z "$CXXCPP"; then
  11342. if ${ac_cv_prog_CXXCPP+:} false; then :
  11343. $as_echo_n "(cached) " >&6
  11344. else
  11345. # Double quotes because CXXCPP needs to be expanded
  11346. for CXXCPP in "$CXX -E" "/lib/cpp"
  11347. do
  11348. ac_preproc_ok=false
  11349. for ac_cxx_preproc_warn_flag in '' yes
  11350. do
  11351. # Use a header file that comes with gcc, so configuring glibc
  11352. # with a fresh cross-compiler works.
  11353. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11354. # <limits.h> exists even on freestanding compilers.
  11355. # On the NeXT, cc -E runs the code through the compiler's parser,
  11356. # not just through cpp. "Syntax error" is here to catch this case.
  11357. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11358. /* end confdefs.h. */
  11359. #ifdef __STDC__
  11360. # include <limits.h>
  11361. #else
  11362. # include <assert.h>
  11363. #endif
  11364. Syntax error
  11365. _ACEOF
  11366. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11367. else
  11368. # Broken: fails on valid input.
  11369. continue
  11370. fi
  11371. rm -f conftest.err conftest.i conftest.$ac_ext
  11372. # OK, works on sane cases. Now check whether nonexistent headers
  11373. # can be detected and how.
  11374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11375. /* end confdefs.h. */
  11376. #include <ac_nonexistent.h>
  11377. _ACEOF
  11378. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11379. # Broken: success on invalid input.
  11380. continue
  11381. else
  11382. # Passes both tests.
  11383. ac_preproc_ok=:
  11384. break
  11385. fi
  11386. rm -f conftest.err conftest.i conftest.$ac_ext
  11387. done
  11388. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11389. rm -f conftest.i conftest.err conftest.$ac_ext
  11390. if $ac_preproc_ok; then :
  11391. break
  11392. fi
  11393. done
  11394. ac_cv_prog_CXXCPP=$CXXCPP
  11395. fi
  11396. CXXCPP=$ac_cv_prog_CXXCPP
  11397. else
  11398. ac_cv_prog_CXXCPP=$CXXCPP
  11399. fi
  11400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  11401. $as_echo "$CXXCPP" >&6; }
  11402. ac_preproc_ok=false
  11403. for ac_cxx_preproc_warn_flag in '' yes
  11404. do
  11405. # Use a header file that comes with gcc, so configuring glibc
  11406. # with a fresh cross-compiler works.
  11407. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11408. # <limits.h> exists even on freestanding compilers.
  11409. # On the NeXT, cc -E runs the code through the compiler's parser,
  11410. # not just through cpp. "Syntax error" is here to catch this case.
  11411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11412. /* end confdefs.h. */
  11413. #ifdef __STDC__
  11414. # include <limits.h>
  11415. #else
  11416. # include <assert.h>
  11417. #endif
  11418. Syntax error
  11419. _ACEOF
  11420. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11421. else
  11422. # Broken: fails on valid input.
  11423. continue
  11424. fi
  11425. rm -f conftest.err conftest.i conftest.$ac_ext
  11426. # OK, works on sane cases. Now check whether nonexistent headers
  11427. # can be detected and how.
  11428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11429. /* end confdefs.h. */
  11430. #include <ac_nonexistent.h>
  11431. _ACEOF
  11432. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11433. # Broken: success on invalid input.
  11434. continue
  11435. else
  11436. # Passes both tests.
  11437. ac_preproc_ok=:
  11438. break
  11439. fi
  11440. rm -f conftest.err conftest.i conftest.$ac_ext
  11441. done
  11442. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11443. rm -f conftest.i conftest.err conftest.$ac_ext
  11444. if $ac_preproc_ok; then :
  11445. else
  11446. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11447. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11448. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  11449. See \`config.log' for more details" "$LINENO" 5; }
  11450. fi
  11451. ac_ext=c
  11452. ac_cpp='$CPP $CPPFLAGS'
  11453. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11454. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11455. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11456. else
  11457. _lt_caught_CXX_error=yes
  11458. fi
  11459. ac_ext=cpp
  11460. ac_cpp='$CXXCPP $CPPFLAGS'
  11461. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11462. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11463. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11464. archive_cmds_need_lc_CXX=no
  11465. allow_undefined_flag_CXX=
  11466. always_export_symbols_CXX=no
  11467. archive_expsym_cmds_CXX=
  11468. compiler_needs_object_CXX=no
  11469. export_dynamic_flag_spec_CXX=
  11470. hardcode_direct_CXX=no
  11471. hardcode_direct_absolute_CXX=no
  11472. hardcode_libdir_flag_spec_CXX=
  11473. hardcode_libdir_separator_CXX=
  11474. hardcode_minus_L_CXX=no
  11475. hardcode_shlibpath_var_CXX=unsupported
  11476. hardcode_automatic_CXX=no
  11477. inherit_rpath_CXX=no
  11478. module_cmds_CXX=
  11479. module_expsym_cmds_CXX=
  11480. link_all_deplibs_CXX=unknown
  11481. old_archive_cmds_CXX=$old_archive_cmds
  11482. reload_flag_CXX=$reload_flag
  11483. reload_cmds_CXX=$reload_cmds
  11484. no_undefined_flag_CXX=
  11485. whole_archive_flag_spec_CXX=
  11486. enable_shared_with_static_runtimes_CXX=no
  11487. # Source file extension for C++ test sources.
  11488. ac_ext=cpp
  11489. # Object file extension for compiled C++ test sources.
  11490. objext=o
  11491. objext_CXX=$objext
  11492. # No sense in running all these tests if we already determined that
  11493. # the CXX compiler isn't working. Some variables (like enable_shared)
  11494. # are currently assumed to apply to all compilers on this platform,
  11495. # and will be corrupted by setting them based on a non-working compiler.
  11496. if test "$_lt_caught_CXX_error" != yes; then
  11497. # Code to be used in simple compile tests
  11498. lt_simple_compile_test_code="int some_variable = 0;"
  11499. # Code to be used in simple link tests
  11500. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  11501. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11502. # If no C compiler was specified, use CC.
  11503. LTCC=${LTCC-"$CC"}
  11504. # If no C compiler flags were specified, use CFLAGS.
  11505. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11506. # Allow CC to be a program name with arguments.
  11507. compiler=$CC
  11508. # save warnings/boilerplate of simple test code
  11509. ac_outfile=conftest.$ac_objext
  11510. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11511. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11512. _lt_compiler_boilerplate=`cat conftest.err`
  11513. $RM conftest*
  11514. ac_outfile=conftest.$ac_objext
  11515. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11516. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11517. _lt_linker_boilerplate=`cat conftest.err`
  11518. $RM -r conftest*
  11519. # Allow CC to be a program name with arguments.
  11520. lt_save_CC=$CC
  11521. lt_save_CFLAGS=$CFLAGS
  11522. lt_save_LD=$LD
  11523. lt_save_GCC=$GCC
  11524. GCC=$GXX
  11525. lt_save_with_gnu_ld=$with_gnu_ld
  11526. lt_save_path_LD=$lt_cv_path_LD
  11527. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11528. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11529. else
  11530. $as_unset lt_cv_prog_gnu_ld
  11531. fi
  11532. if test -n "${lt_cv_path_LDCXX+set}"; then
  11533. lt_cv_path_LD=$lt_cv_path_LDCXX
  11534. else
  11535. $as_unset lt_cv_path_LD
  11536. fi
  11537. test -z "${LDCXX+set}" || LD=$LDCXX
  11538. CC=${CXX-"c++"}
  11539. CFLAGS=$CXXFLAGS
  11540. compiler=$CC
  11541. compiler_CXX=$CC
  11542. for cc_temp in $compiler""; do
  11543. case $cc_temp in
  11544. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11545. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11546. \-*) ;;
  11547. *) break;;
  11548. esac
  11549. done
  11550. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  11551. if test -n "$compiler"; then
  11552. # We don't want -fno-exception when compiling C++ code, so set the
  11553. # no_builtin_flag separately
  11554. if test "$GXX" = yes; then
  11555. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11556. else
  11557. lt_prog_compiler_no_builtin_flag_CXX=
  11558. fi
  11559. if test "$GXX" = yes; then
  11560. # Set up default GNU C++ configuration
  11561. # Check whether --with-gnu-ld was given.
  11562. if test "${with_gnu_ld+set}" = set; then :
  11563. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11564. else
  11565. with_gnu_ld=no
  11566. fi
  11567. ac_prog=ld
  11568. if test "$GCC" = yes; then
  11569. # Check if gcc -print-prog-name=ld gives a path.
  11570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11571. $as_echo_n "checking for ld used by $CC... " >&6; }
  11572. case $host in
  11573. *-*-mingw*)
  11574. # gcc leaves a trailing carriage return which upsets mingw
  11575. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11576. *)
  11577. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11578. esac
  11579. case $ac_prog in
  11580. # Accept absolute paths.
  11581. [\\/]* | ?:[\\/]*)
  11582. re_direlt='/[^/][^/]*/\.\./'
  11583. # Canonicalize the pathname of ld
  11584. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11585. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11586. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11587. done
  11588. test -z "$LD" && LD="$ac_prog"
  11589. ;;
  11590. "")
  11591. # If it fails, then pretend we aren't using GCC.
  11592. ac_prog=ld
  11593. ;;
  11594. *)
  11595. # If it is relative, then search for the first ld in PATH.
  11596. with_gnu_ld=unknown
  11597. ;;
  11598. esac
  11599. elif test "$with_gnu_ld" = yes; then
  11600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11601. $as_echo_n "checking for GNU ld... " >&6; }
  11602. else
  11603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11604. $as_echo_n "checking for non-GNU ld... " >&6; }
  11605. fi
  11606. if ${lt_cv_path_LD+:} false; then :
  11607. $as_echo_n "(cached) " >&6
  11608. else
  11609. if test -z "$LD"; then
  11610. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11611. for ac_dir in $PATH; do
  11612. IFS="$lt_save_ifs"
  11613. test -z "$ac_dir" && ac_dir=.
  11614. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11615. lt_cv_path_LD="$ac_dir/$ac_prog"
  11616. # Check to see if the program is GNU ld. I'd rather use --version,
  11617. # but apparently some variants of GNU ld only accept -v.
  11618. # Break only if it was the GNU/non-GNU ld that we prefer.
  11619. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11620. *GNU* | *'with BFD'*)
  11621. test "$with_gnu_ld" != no && break
  11622. ;;
  11623. *)
  11624. test "$with_gnu_ld" != yes && break
  11625. ;;
  11626. esac
  11627. fi
  11628. done
  11629. IFS="$lt_save_ifs"
  11630. else
  11631. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  11632. fi
  11633. fi
  11634. LD="$lt_cv_path_LD"
  11635. if test -n "$LD"; then
  11636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11637. $as_echo "$LD" >&6; }
  11638. else
  11639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11640. $as_echo "no" >&6; }
  11641. fi
  11642. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11644. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11645. if ${lt_cv_prog_gnu_ld+:} false; then :
  11646. $as_echo_n "(cached) " >&6
  11647. else
  11648. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11649. case `$LD -v 2>&1 </dev/null` in
  11650. *GNU* | *'with BFD'*)
  11651. lt_cv_prog_gnu_ld=yes
  11652. ;;
  11653. *)
  11654. lt_cv_prog_gnu_ld=no
  11655. ;;
  11656. esac
  11657. fi
  11658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11659. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11660. with_gnu_ld=$lt_cv_prog_gnu_ld
  11661. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11662. # archiving commands below assume that GNU ld is being used.
  11663. if test "$with_gnu_ld" = yes; then
  11664. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11665. archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11666. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11667. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11668. # If archive_cmds runs LD, not CC, wlarc should be empty
  11669. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11670. # investigate it a little bit more. (MM)
  11671. wlarc='${wl}'
  11672. # ancient GNU ld didn't support --whole-archive et. al.
  11673. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11674. $GREP 'no-whole-archive' > /dev/null; then
  11675. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11676. else
  11677. whole_archive_flag_spec_CXX=
  11678. fi
  11679. else
  11680. with_gnu_ld=no
  11681. wlarc=
  11682. # A generic and very simple default shared library creation
  11683. # command for GNU C++ for the case where it uses the native
  11684. # linker, instead of GNU ld. If possible, this setting should
  11685. # overridden to take advantage of the native linker features on
  11686. # the platform it is being used on.
  11687. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11688. fi
  11689. # Commands to make compiler produce verbose output that lists
  11690. # what "hidden" libraries, object files and flags are used when
  11691. # linking a shared library.
  11692. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11693. else
  11694. GXX=no
  11695. with_gnu_ld=no
  11696. wlarc=
  11697. fi
  11698. # PORTME: fill in a description of your system's C++ link characteristics
  11699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11700. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11701. ld_shlibs_CXX=yes
  11702. case $host_os in
  11703. aix3*)
  11704. # FIXME: insert proper C++ library support
  11705. ld_shlibs_CXX=no
  11706. ;;
  11707. aix[4-9]*)
  11708. if test "$host_cpu" = ia64; then
  11709. # On IA64, the linker does run time linking by default, so we don't
  11710. # have to do anything special.
  11711. aix_use_runtimelinking=no
  11712. exp_sym_flag='-Bexport'
  11713. no_entry_flag=""
  11714. else
  11715. aix_use_runtimelinking=no
  11716. # Test if we are trying to use run time linking or normal
  11717. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11718. # need to do runtime linking.
  11719. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11720. for ld_flag in $LDFLAGS; do
  11721. case $ld_flag in
  11722. *-brtl*)
  11723. aix_use_runtimelinking=yes
  11724. break
  11725. ;;
  11726. esac
  11727. done
  11728. ;;
  11729. esac
  11730. exp_sym_flag='-bexport'
  11731. no_entry_flag='-bnoentry'
  11732. fi
  11733. # When large executables or shared objects are built, AIX ld can
  11734. # have problems creating the table of contents. If linking a library
  11735. # or program results in "error TOC overflow" add -mminimal-toc to
  11736. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11737. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11738. archive_cmds_CXX=''
  11739. hardcode_direct_CXX=yes
  11740. hardcode_direct_absolute_CXX=yes
  11741. hardcode_libdir_separator_CXX=':'
  11742. link_all_deplibs_CXX=yes
  11743. file_list_spec_CXX='${wl}-f,'
  11744. if test "$GXX" = yes; then
  11745. case $host_os in aix4.[012]|aix4.[012].*)
  11746. # We only want to do this on AIX 4.2 and lower, the check
  11747. # below for broken collect2 doesn't work under 4.3+
  11748. collect2name=`${CC} -print-prog-name=collect2`
  11749. if test -f "$collect2name" &&
  11750. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11751. then
  11752. # We have reworked collect2
  11753. :
  11754. else
  11755. # We have old collect2
  11756. hardcode_direct_CXX=unsupported
  11757. # It fails to find uninstalled libraries when the uninstalled
  11758. # path is not listed in the libpath. Setting hardcode_minus_L
  11759. # to unsupported forces relinking
  11760. hardcode_minus_L_CXX=yes
  11761. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11762. hardcode_libdir_separator_CXX=
  11763. fi
  11764. esac
  11765. shared_flag='-shared'
  11766. if test "$aix_use_runtimelinking" = yes; then
  11767. shared_flag="$shared_flag "'${wl}-G'
  11768. fi
  11769. else
  11770. # not using gcc
  11771. if test "$host_cpu" = ia64; then
  11772. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11773. # chokes on -Wl,-G. The following line is correct:
  11774. shared_flag='-G'
  11775. else
  11776. if test "$aix_use_runtimelinking" = yes; then
  11777. shared_flag='${wl}-G'
  11778. else
  11779. shared_flag='${wl}-bM:SRE'
  11780. fi
  11781. fi
  11782. fi
  11783. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11784. # It seems that -bexpall does not export symbols beginning with
  11785. # underscore (_), so it is better to generate a list of symbols to
  11786. # export.
  11787. always_export_symbols_CXX=yes
  11788. if test "$aix_use_runtimelinking" = yes; then
  11789. # Warning - without using the other runtime loading flags (-brtl),
  11790. # -berok will link without error, but may produce a broken library.
  11791. allow_undefined_flag_CXX='-berok'
  11792. # Determine the default libpath from the value encoded in an empty
  11793. # executable.
  11794. if test "${lt_cv_aix_libpath+set}" = set; then
  11795. aix_libpath=$lt_cv_aix_libpath
  11796. else
  11797. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11798. $as_echo_n "(cached) " >&6
  11799. else
  11800. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11801. /* end confdefs.h. */
  11802. int
  11803. main ()
  11804. {
  11805. ;
  11806. return 0;
  11807. }
  11808. _ACEOF
  11809. if ac_fn_cxx_try_link "$LINENO"; then :
  11810. lt_aix_libpath_sed='
  11811. /Import File Strings/,/^$/ {
  11812. /^0/ {
  11813. s/^0 *\([^ ]*\) *$/\1/
  11814. p
  11815. }
  11816. }'
  11817. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11818. # Check for a 64-bit object if we didn't find anything.
  11819. if test -z "$lt_cv_aix_libpath__CXX"; then
  11820. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11821. fi
  11822. fi
  11823. rm -f core conftest.err conftest.$ac_objext \
  11824. conftest$ac_exeext conftest.$ac_ext
  11825. if test -z "$lt_cv_aix_libpath__CXX"; then
  11826. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11827. fi
  11828. fi
  11829. aix_libpath=$lt_cv_aix_libpath__CXX
  11830. fi
  11831. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11832. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  11833. else
  11834. if test "$host_cpu" = ia64; then
  11835. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11836. allow_undefined_flag_CXX="-z nodefs"
  11837. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  11838. else
  11839. # Determine the default libpath from the value encoded in an
  11840. # empty executable.
  11841. if test "${lt_cv_aix_libpath+set}" = set; then
  11842. aix_libpath=$lt_cv_aix_libpath
  11843. else
  11844. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11845. $as_echo_n "(cached) " >&6
  11846. else
  11847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11848. /* end confdefs.h. */
  11849. int
  11850. main ()
  11851. {
  11852. ;
  11853. return 0;
  11854. }
  11855. _ACEOF
  11856. if ac_fn_cxx_try_link "$LINENO"; then :
  11857. lt_aix_libpath_sed='
  11858. /Import File Strings/,/^$/ {
  11859. /^0/ {
  11860. s/^0 *\([^ ]*\) *$/\1/
  11861. p
  11862. }
  11863. }'
  11864. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11865. # Check for a 64-bit object if we didn't find anything.
  11866. if test -z "$lt_cv_aix_libpath__CXX"; then
  11867. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11868. fi
  11869. fi
  11870. rm -f core conftest.err conftest.$ac_objext \
  11871. conftest$ac_exeext conftest.$ac_ext
  11872. if test -z "$lt_cv_aix_libpath__CXX"; then
  11873. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11874. fi
  11875. fi
  11876. aix_libpath=$lt_cv_aix_libpath__CXX
  11877. fi
  11878. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11879. # Warning - without using the other run time loading flags,
  11880. # -berok will link without error, but may produce a broken library.
  11881. no_undefined_flag_CXX=' ${wl}-bernotok'
  11882. allow_undefined_flag_CXX=' ${wl}-berok'
  11883. if test "$with_gnu_ld" = yes; then
  11884. # We only use this code for GNU lds that support --whole-archive.
  11885. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11886. else
  11887. # Exported symbols can be pulled into shared objects from archives
  11888. whole_archive_flag_spec_CXX='$convenience'
  11889. fi
  11890. archive_cmds_need_lc_CXX=yes
  11891. # This is similar to how AIX traditionally builds its shared
  11892. # libraries.
  11893. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  11894. fi
  11895. fi
  11896. ;;
  11897. beos*)
  11898. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11899. allow_undefined_flag_CXX=unsupported
  11900. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11901. # support --undefined. This deserves some investigation. FIXME
  11902. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11903. else
  11904. ld_shlibs_CXX=no
  11905. fi
  11906. ;;
  11907. chorus*)
  11908. case $cc_basename in
  11909. *)
  11910. # FIXME: insert proper C++ library support
  11911. ld_shlibs_CXX=no
  11912. ;;
  11913. esac
  11914. ;;
  11915. cygwin* | mingw* | pw32* | cegcc*)
  11916. case $GXX,$cc_basename in
  11917. ,cl* | no,cl*)
  11918. # Native MSVC
  11919. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11920. # no search path for DLLs.
  11921. hardcode_libdir_flag_spec_CXX=' '
  11922. allow_undefined_flag_CXX=unsupported
  11923. always_export_symbols_CXX=yes
  11924. file_list_spec_CXX='@'
  11925. # Tell ltmain to make .lib files, not .a files.
  11926. libext=lib
  11927. # Tell ltmain to make .dll files, not .so files.
  11928. shrext_cmds=".dll"
  11929. # FIXME: Setting linknames here is a bad hack.
  11930. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11931. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11932. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11933. else
  11934. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11935. fi~
  11936. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11937. linknames='
  11938. # The linker will not automatically build a static lib if we build a DLL.
  11939. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11940. enable_shared_with_static_runtimes_CXX=yes
  11941. # Don't use ranlib
  11942. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11943. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11944. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11945. case $lt_outputfile in
  11946. *.exe|*.EXE) ;;
  11947. *)
  11948. lt_outputfile="$lt_outputfile.exe"
  11949. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11950. ;;
  11951. esac~
  11952. func_to_tool_file "$lt_outputfile"~
  11953. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11954. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11955. $RM "$lt_outputfile.manifest";
  11956. fi'
  11957. ;;
  11958. *)
  11959. # g++
  11960. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11961. # as there is no search path for DLLs.
  11962. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11963. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11964. allow_undefined_flag_CXX=unsupported
  11965. always_export_symbols_CXX=no
  11966. enable_shared_with_static_runtimes_CXX=yes
  11967. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11968. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11969. # If the export-symbols file already is a .def file (1st line
  11970. # is EXPORTS), use it as is; otherwise, prepend...
  11971. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11972. cp $export_symbols $output_objdir/$soname.def;
  11973. else
  11974. echo EXPORTS > $output_objdir/$soname.def;
  11975. cat $export_symbols >> $output_objdir/$soname.def;
  11976. fi~
  11977. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11978. else
  11979. ld_shlibs_CXX=no
  11980. fi
  11981. ;;
  11982. esac
  11983. ;;
  11984. darwin* | rhapsody*)
  11985. archive_cmds_need_lc_CXX=no
  11986. hardcode_direct_CXX=no
  11987. hardcode_automatic_CXX=yes
  11988. hardcode_shlibpath_var_CXX=unsupported
  11989. if test "$lt_cv_ld_force_load" = "yes"; then
  11990. whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  11991. else
  11992. whole_archive_flag_spec_CXX=''
  11993. fi
  11994. link_all_deplibs_CXX=yes
  11995. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11996. case $cc_basename in
  11997. ifort*) _lt_dar_can_shared=yes ;;
  11998. *) _lt_dar_can_shared=$GCC ;;
  11999. esac
  12000. if test "$_lt_dar_can_shared" = "yes"; then
  12001. output_verbose_link_cmd=func_echo_all
  12002. archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  12003. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  12004. archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  12005. module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  12006. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  12007. archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  12008. archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
  12009. fi
  12010. else
  12011. ld_shlibs_CXX=no
  12012. fi
  12013. ;;
  12014. dgux*)
  12015. case $cc_basename in
  12016. ec++*)
  12017. # FIXME: insert proper C++ library support
  12018. ld_shlibs_CXX=no
  12019. ;;
  12020. ghcx*)
  12021. # Green Hills C++ Compiler
  12022. # FIXME: insert proper C++ library support
  12023. ld_shlibs_CXX=no
  12024. ;;
  12025. *)
  12026. # FIXME: insert proper C++ library support
  12027. ld_shlibs_CXX=no
  12028. ;;
  12029. esac
  12030. ;;
  12031. freebsd2.*)
  12032. # C++ shared libraries reported to be fairly broken before
  12033. # switch to ELF
  12034. ld_shlibs_CXX=no
  12035. ;;
  12036. freebsd-elf*)
  12037. archive_cmds_need_lc_CXX=no
  12038. ;;
  12039. freebsd* | dragonfly*)
  12040. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  12041. # conventions
  12042. ld_shlibs_CXX=yes
  12043. ;;
  12044. haiku*)
  12045. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12046. link_all_deplibs_CXX=yes
  12047. ;;
  12048. hpux9*)
  12049. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  12050. hardcode_libdir_separator_CXX=:
  12051. export_dynamic_flag_spec_CXX='${wl}-E'
  12052. hardcode_direct_CXX=yes
  12053. hardcode_minus_L_CXX=yes # Not in the search PATH,
  12054. # but as the default
  12055. # location of the library.
  12056. case $cc_basename in
  12057. CC*)
  12058. # FIXME: insert proper C++ library support
  12059. ld_shlibs_CXX=no
  12060. ;;
  12061. aCC*)
  12062. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  12063. # Commands to make compiler produce verbose output that lists
  12064. # what "hidden" libraries, object files and flags are used when
  12065. # linking a shared library.
  12066. #
  12067. # There doesn't appear to be a way to prevent this compiler from
  12068. # explicitly linking system object files so we need to strip them
  12069. # from the output so that they don't get included in the library
  12070. # dependencies.
  12071. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  12072. ;;
  12073. *)
  12074. if test "$GXX" = yes; then
  12075. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  12076. else
  12077. # FIXME: insert proper C++ library support
  12078. ld_shlibs_CXX=no
  12079. fi
  12080. ;;
  12081. esac
  12082. ;;
  12083. hpux10*|hpux11*)
  12084. if test $with_gnu_ld = no; then
  12085. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  12086. hardcode_libdir_separator_CXX=:
  12087. case $host_cpu in
  12088. hppa*64*|ia64*)
  12089. ;;
  12090. *)
  12091. export_dynamic_flag_spec_CXX='${wl}-E'
  12092. ;;
  12093. esac
  12094. fi
  12095. case $host_cpu in
  12096. hppa*64*|ia64*)
  12097. hardcode_direct_CXX=no
  12098. hardcode_shlibpath_var_CXX=no
  12099. ;;
  12100. *)
  12101. hardcode_direct_CXX=yes
  12102. hardcode_direct_absolute_CXX=yes
  12103. hardcode_minus_L_CXX=yes # Not in the search PATH,
  12104. # but as the default
  12105. # location of the library.
  12106. ;;
  12107. esac
  12108. case $cc_basename in
  12109. CC*)
  12110. # FIXME: insert proper C++ library support
  12111. ld_shlibs_CXX=no
  12112. ;;
  12113. aCC*)
  12114. case $host_cpu in
  12115. hppa*64*)
  12116. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12117. ;;
  12118. ia64*)
  12119. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12120. ;;
  12121. *)
  12122. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12123. ;;
  12124. esac
  12125. # Commands to make compiler produce verbose output that lists
  12126. # what "hidden" libraries, object files and flags are used when
  12127. # linking a shared library.
  12128. #
  12129. # There doesn't appear to be a way to prevent this compiler from
  12130. # explicitly linking system object files so we need to strip them
  12131. # from the output so that they don't get included in the library
  12132. # dependencies.
  12133. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  12134. ;;
  12135. *)
  12136. if test "$GXX" = yes; then
  12137. if test $with_gnu_ld = no; then
  12138. case $host_cpu in
  12139. hppa*64*)
  12140. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12141. ;;
  12142. ia64*)
  12143. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12144. ;;
  12145. *)
  12146. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12147. ;;
  12148. esac
  12149. fi
  12150. else
  12151. # FIXME: insert proper C++ library support
  12152. ld_shlibs_CXX=no
  12153. fi
  12154. ;;
  12155. esac
  12156. ;;
  12157. interix[3-9]*)
  12158. hardcode_direct_CXX=no
  12159. hardcode_shlibpath_var_CXX=no
  12160. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  12161. export_dynamic_flag_spec_CXX='${wl}-E'
  12162. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  12163. # Instead, shared libraries are loaded at an image base (0x10000000 by
  12164. # default) and relocated if they conflict, which is a slow very memory
  12165. # consuming and fragmenting process. To avoid this, we pick a random,
  12166. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  12167. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  12168. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  12169. archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  12170. ;;
  12171. irix5* | irix6*)
  12172. case $cc_basename in
  12173. CC*)
  12174. # SGI C++
  12175. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  12176. # Archives containing C++ object files must be created using
  12177. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  12178. # necessary to make sure instantiated templates are included
  12179. # in the archive.
  12180. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  12181. ;;
  12182. *)
  12183. if test "$GXX" = yes; then
  12184. if test "$with_gnu_ld" = no; then
  12185. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12186. else
  12187. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
  12188. fi
  12189. fi
  12190. link_all_deplibs_CXX=yes
  12191. ;;
  12192. esac
  12193. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12194. hardcode_libdir_separator_CXX=:
  12195. inherit_rpath_CXX=yes
  12196. ;;
  12197. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12198. case $cc_basename in
  12199. KCC*)
  12200. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12201. # KCC will only create a shared library if the output file
  12202. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12203. # to its proper name (with version) after linking.
  12204. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  12205. archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  12206. # Commands to make compiler produce verbose output that lists
  12207. # what "hidden" libraries, object files and flags are used when
  12208. # linking a shared library.
  12209. #
  12210. # There doesn't appear to be a way to prevent this compiler from
  12211. # explicitly linking system object files so we need to strip them
  12212. # from the output so that they don't get included in the library
  12213. # dependencies.
  12214. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  12215. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  12216. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  12217. # Archives containing C++ object files must be created using
  12218. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  12219. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  12220. ;;
  12221. icpc* | ecpc* )
  12222. # Intel C++
  12223. with_gnu_ld=yes
  12224. # version 8.0 and above of icpc choke on multiply defined symbols
  12225. # if we add $predep_objects and $postdep_objects, however 7.1 and
  12226. # earlier do not add the objects themselves.
  12227. case `$CC -V 2>&1` in
  12228. *"Version 7."*)
  12229. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12230. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12231. ;;
  12232. *) # Version 8.0 or newer
  12233. tmp_idyn=
  12234. case $host_cpu in
  12235. ia64*) tmp_idyn=' -i_dynamic';;
  12236. esac
  12237. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12238. archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12239. ;;
  12240. esac
  12241. archive_cmds_need_lc_CXX=no
  12242. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  12243. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  12244. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  12245. ;;
  12246. pgCC* | pgcpp*)
  12247. # Portland Group C++ compiler
  12248. case `$CC -V` in
  12249. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  12250. prelink_cmds_CXX='tpldir=Template.dir~
  12251. rm -rf $tpldir~
  12252. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  12253. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  12254. old_archive_cmds_CXX='tpldir=Template.dir~
  12255. rm -rf $tpldir~
  12256. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  12257. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  12258. $RANLIB $oldlib'
  12259. archive_cmds_CXX='tpldir=Template.dir~
  12260. rm -rf $tpldir~
  12261. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12262. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  12263. archive_expsym_cmds_CXX='tpldir=Template.dir~
  12264. rm -rf $tpldir~
  12265. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12266. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  12267. ;;
  12268. *) # Version 6 and above use weak symbols
  12269. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  12270. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  12271. ;;
  12272. esac
  12273. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  12274. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  12275. whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  12276. ;;
  12277. cxx*)
  12278. # Compaq C++
  12279. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12280. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  12281. runpath_var=LD_RUN_PATH
  12282. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12283. hardcode_libdir_separator_CXX=:
  12284. # Commands to make compiler produce verbose output that lists
  12285. # what "hidden" libraries, object files and flags are used when
  12286. # linking a shared library.
  12287. #
  12288. # There doesn't appear to be a way to prevent this compiler from
  12289. # explicitly linking system object files so we need to strip them
  12290. # from the output so that they don't get included in the library
  12291. # dependencies.
  12292. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  12293. ;;
  12294. xl* | mpixl* | bgxl*)
  12295. # IBM XL 8.0 on PPC, with GNU ld
  12296. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12297. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  12298. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12299. if test "x$supports_anon_versioning" = xyes; then
  12300. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  12301. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12302. echo "local: *; };" >> $output_objdir/$libname.ver~
  12303. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  12304. fi
  12305. ;;
  12306. *)
  12307. case `$CC -V 2>&1 | sed 5q` in
  12308. *Sun\ C*)
  12309. # Sun C++ 5.9
  12310. no_undefined_flag_CXX=' -zdefs'
  12311. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12312. archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  12313. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12314. whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  12315. compiler_needs_object_CXX=yes
  12316. # Not sure whether something based on
  12317. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  12318. # would be better.
  12319. output_verbose_link_cmd='func_echo_all'
  12320. # Archives containing C++ object files must be created using
  12321. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12322. # necessary to make sure instantiated templates are included
  12323. # in the archive.
  12324. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12325. ;;
  12326. esac
  12327. ;;
  12328. esac
  12329. ;;
  12330. lynxos*)
  12331. # FIXME: insert proper C++ library support
  12332. ld_shlibs_CXX=no
  12333. ;;
  12334. m88k*)
  12335. # FIXME: insert proper C++ library support
  12336. ld_shlibs_CXX=no
  12337. ;;
  12338. mvs*)
  12339. case $cc_basename in
  12340. cxx*)
  12341. # FIXME: insert proper C++ library support
  12342. ld_shlibs_CXX=no
  12343. ;;
  12344. *)
  12345. # FIXME: insert proper C++ library support
  12346. ld_shlibs_CXX=no
  12347. ;;
  12348. esac
  12349. ;;
  12350. netbsd*)
  12351. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12352. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  12353. wlarc=
  12354. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12355. hardcode_direct_CXX=yes
  12356. hardcode_shlibpath_var_CXX=no
  12357. fi
  12358. # Workaround some broken pre-1.5 toolchains
  12359. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  12360. ;;
  12361. *nto* | *qnx*)
  12362. ld_shlibs_CXX=yes
  12363. ;;
  12364. openbsd2*)
  12365. # C++ shared libraries are fairly broken
  12366. ld_shlibs_CXX=no
  12367. ;;
  12368. openbsd*)
  12369. if test -f /usr/libexec/ld.so; then
  12370. hardcode_direct_CXX=yes
  12371. hardcode_shlibpath_var_CXX=no
  12372. hardcode_direct_absolute_CXX=yes
  12373. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12374. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  12375. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12376. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  12377. export_dynamic_flag_spec_CXX='${wl}-E'
  12378. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  12379. fi
  12380. output_verbose_link_cmd=func_echo_all
  12381. else
  12382. ld_shlibs_CXX=no
  12383. fi
  12384. ;;
  12385. osf3* | osf4* | osf5*)
  12386. case $cc_basename in
  12387. KCC*)
  12388. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12389. # KCC will only create a shared library if the output file
  12390. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12391. # to its proper name (with version) after linking.
  12392. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  12393. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  12394. hardcode_libdir_separator_CXX=:
  12395. # Archives containing C++ object files must be created using
  12396. # the KAI C++ compiler.
  12397. case $host in
  12398. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  12399. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  12400. esac
  12401. ;;
  12402. RCC*)
  12403. # Rational C++ 2.4.1
  12404. # FIXME: insert proper C++ library support
  12405. ld_shlibs_CXX=no
  12406. ;;
  12407. cxx*)
  12408. case $host in
  12409. osf3*)
  12410. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  12411. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  12412. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12413. ;;
  12414. *)
  12415. allow_undefined_flag_CXX=' -expect_unresolved \*'
  12416. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  12417. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  12418. echo "-hidden">> $lib.exp~
  12419. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
  12420. $RM $lib.exp'
  12421. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12422. ;;
  12423. esac
  12424. hardcode_libdir_separator_CXX=:
  12425. # Commands to make compiler produce verbose output that lists
  12426. # what "hidden" libraries, object files and flags are used when
  12427. # linking a shared library.
  12428. #
  12429. # There doesn't appear to be a way to prevent this compiler from
  12430. # explicitly linking system object files so we need to strip them
  12431. # from the output so that they don't get included in the library
  12432. # dependencies.
  12433. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  12434. ;;
  12435. *)
  12436. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  12437. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  12438. case $host in
  12439. osf3*)
  12440. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12441. ;;
  12442. *)
  12443. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12444. ;;
  12445. esac
  12446. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12447. hardcode_libdir_separator_CXX=:
  12448. # Commands to make compiler produce verbose output that lists
  12449. # what "hidden" libraries, object files and flags are used when
  12450. # linking a shared library.
  12451. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12452. else
  12453. # FIXME: insert proper C++ library support
  12454. ld_shlibs_CXX=no
  12455. fi
  12456. ;;
  12457. esac
  12458. ;;
  12459. psos*)
  12460. # FIXME: insert proper C++ library support
  12461. ld_shlibs_CXX=no
  12462. ;;
  12463. sunos4*)
  12464. case $cc_basename in
  12465. CC*)
  12466. # Sun C++ 4.x
  12467. # FIXME: insert proper C++ library support
  12468. ld_shlibs_CXX=no
  12469. ;;
  12470. lcc*)
  12471. # Lucid
  12472. # FIXME: insert proper C++ library support
  12473. ld_shlibs_CXX=no
  12474. ;;
  12475. *)
  12476. # FIXME: insert proper C++ library support
  12477. ld_shlibs_CXX=no
  12478. ;;
  12479. esac
  12480. ;;
  12481. solaris*)
  12482. case $cc_basename in
  12483. CC* | sunCC*)
  12484. # Sun C++ 4.2, 5.x and Centerline C++
  12485. archive_cmds_need_lc_CXX=yes
  12486. no_undefined_flag_CXX=' -zdefs'
  12487. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12488. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12489. $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12490. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12491. hardcode_shlibpath_var_CXX=no
  12492. case $host_os in
  12493. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12494. *)
  12495. # The compiler driver will combine and reorder linker options,
  12496. # but understands `-z linker_flag'.
  12497. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12498. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  12499. ;;
  12500. esac
  12501. link_all_deplibs_CXX=yes
  12502. output_verbose_link_cmd='func_echo_all'
  12503. # Archives containing C++ object files must be created using
  12504. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12505. # necessary to make sure instantiated templates are included
  12506. # in the archive.
  12507. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12508. ;;
  12509. gcx*)
  12510. # Green Hills C++ Compiler
  12511. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12512. # The C++ compiler must be used to create the archive.
  12513. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  12514. ;;
  12515. *)
  12516. # GNU C++ compiler with Solaris linker
  12517. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  12518. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  12519. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  12520. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12521. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12522. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12523. # Commands to make compiler produce verbose output that lists
  12524. # what "hidden" libraries, object files and flags are used when
  12525. # linking a shared library.
  12526. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12527. else
  12528. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  12529. # platform.
  12530. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12531. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12532. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12533. # Commands to make compiler produce verbose output that lists
  12534. # what "hidden" libraries, object files and flags are used when
  12535. # linking a shared library.
  12536. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12537. fi
  12538. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  12539. case $host_os in
  12540. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12541. *)
  12542. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  12543. ;;
  12544. esac
  12545. fi
  12546. ;;
  12547. esac
  12548. ;;
  12549. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12550. no_undefined_flag_CXX='${wl}-z,text'
  12551. archive_cmds_need_lc_CXX=no
  12552. hardcode_shlibpath_var_CXX=no
  12553. runpath_var='LD_RUN_PATH'
  12554. case $cc_basename in
  12555. CC*)
  12556. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12557. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12558. ;;
  12559. *)
  12560. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12561. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12562. ;;
  12563. esac
  12564. ;;
  12565. sysv5* | sco3.2v5* | sco5v6*)
  12566. # Note: We can NOT use -z defs as we might desire, because we do not
  12567. # link with -lc, and that would cause any symbols used from libc to
  12568. # always be unresolved, which means just about no library would
  12569. # ever link correctly. If we're not using GNU ld we use -z text
  12570. # though, which does catch some bad symbols but isn't as heavy-handed
  12571. # as -z defs.
  12572. no_undefined_flag_CXX='${wl}-z,text'
  12573. allow_undefined_flag_CXX='${wl}-z,nodefs'
  12574. archive_cmds_need_lc_CXX=no
  12575. hardcode_shlibpath_var_CXX=no
  12576. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  12577. hardcode_libdir_separator_CXX=':'
  12578. link_all_deplibs_CXX=yes
  12579. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  12580. runpath_var='LD_RUN_PATH'
  12581. case $cc_basename in
  12582. CC*)
  12583. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12584. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12585. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12586. '"$old_archive_cmds_CXX"
  12587. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12588. '"$reload_cmds_CXX"
  12589. ;;
  12590. *)
  12591. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12592. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12593. ;;
  12594. esac
  12595. ;;
  12596. tandem*)
  12597. case $cc_basename in
  12598. NCC*)
  12599. # NonStop-UX NCC 3.20
  12600. # FIXME: insert proper C++ library support
  12601. ld_shlibs_CXX=no
  12602. ;;
  12603. *)
  12604. # FIXME: insert proper C++ library support
  12605. ld_shlibs_CXX=no
  12606. ;;
  12607. esac
  12608. ;;
  12609. vxworks*)
  12610. # FIXME: insert proper C++ library support
  12611. ld_shlibs_CXX=no
  12612. ;;
  12613. *)
  12614. # FIXME: insert proper C++ library support
  12615. ld_shlibs_CXX=no
  12616. ;;
  12617. esac
  12618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12619. $as_echo "$ld_shlibs_CXX" >&6; }
  12620. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12621. GCC_CXX="$GXX"
  12622. LD_CXX="$LD"
  12623. ## CAVEAT EMPTOR:
  12624. ## There is no encapsulation within the following macros, do not change
  12625. ## the running order or otherwise move them around unless you know exactly
  12626. ## what you are doing...
  12627. # Dependencies to place before and after the object being linked:
  12628. predep_objects_CXX=
  12629. postdep_objects_CXX=
  12630. predeps_CXX=
  12631. postdeps_CXX=
  12632. compiler_lib_search_path_CXX=
  12633. cat > conftest.$ac_ext <<_LT_EOF
  12634. class Foo
  12635. {
  12636. public:
  12637. Foo (void) { a = 0; }
  12638. private:
  12639. int a;
  12640. };
  12641. _LT_EOF
  12642. _lt_libdeps_save_CFLAGS=$CFLAGS
  12643. case "$CC $CFLAGS " in #(
  12644. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12645. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12646. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  12647. esac
  12648. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12649. (eval $ac_compile) 2>&5
  12650. ac_status=$?
  12651. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12652. test $ac_status = 0; }; then
  12653. # Parse the compiler output and extract the necessary
  12654. # objects, libraries and library flags.
  12655. # Sentinel used to keep track of whether or not we are before
  12656. # the conftest object file.
  12657. pre_test_object_deps_done=no
  12658. for p in `eval "$output_verbose_link_cmd"`; do
  12659. case ${prev}${p} in
  12660. -L* | -R* | -l*)
  12661. # Some compilers place space between "-{L,R}" and the path.
  12662. # Remove the space.
  12663. if test $p = "-L" ||
  12664. test $p = "-R"; then
  12665. prev=$p
  12666. continue
  12667. fi
  12668. # Expand the sysroot to ease extracting the directories later.
  12669. if test -z "$prev"; then
  12670. case $p in
  12671. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12672. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12673. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12674. esac
  12675. fi
  12676. case $p in
  12677. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12678. esac
  12679. if test "$pre_test_object_deps_done" = no; then
  12680. case ${prev} in
  12681. -L | -R)
  12682. # Internal compiler library paths should come after those
  12683. # provided the user. The postdeps already come after the
  12684. # user supplied libs so there is no need to process them.
  12685. if test -z "$compiler_lib_search_path_CXX"; then
  12686. compiler_lib_search_path_CXX="${prev}${p}"
  12687. else
  12688. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12689. fi
  12690. ;;
  12691. # The "-l" case would never come before the object being
  12692. # linked, so don't bother handling this case.
  12693. esac
  12694. else
  12695. if test -z "$postdeps_CXX"; then
  12696. postdeps_CXX="${prev}${p}"
  12697. else
  12698. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12699. fi
  12700. fi
  12701. prev=
  12702. ;;
  12703. *.lto.$objext) ;; # Ignore GCC LTO objects
  12704. *.$objext)
  12705. # This assumes that the test object file only shows up
  12706. # once in the compiler output.
  12707. if test "$p" = "conftest.$objext"; then
  12708. pre_test_object_deps_done=yes
  12709. continue
  12710. fi
  12711. if test "$pre_test_object_deps_done" = no; then
  12712. if test -z "$predep_objects_CXX"; then
  12713. predep_objects_CXX="$p"
  12714. else
  12715. predep_objects_CXX="$predep_objects_CXX $p"
  12716. fi
  12717. else
  12718. if test -z "$postdep_objects_CXX"; then
  12719. postdep_objects_CXX="$p"
  12720. else
  12721. postdep_objects_CXX="$postdep_objects_CXX $p"
  12722. fi
  12723. fi
  12724. ;;
  12725. *) ;; # Ignore the rest.
  12726. esac
  12727. done
  12728. # Clean up.
  12729. rm -f a.out a.exe
  12730. else
  12731. echo "libtool.m4: error: problem compiling CXX test program"
  12732. fi
  12733. $RM -f confest.$objext
  12734. CFLAGS=$_lt_libdeps_save_CFLAGS
  12735. # PORTME: override above test on systems where it is broken
  12736. case $host_os in
  12737. interix[3-9]*)
  12738. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12739. # hack all around it, let's just trust "g++" to DTRT.
  12740. predep_objects_CXX=
  12741. postdep_objects_CXX=
  12742. postdeps_CXX=
  12743. ;;
  12744. linux*)
  12745. case `$CC -V 2>&1 | sed 5q` in
  12746. *Sun\ C*)
  12747. # Sun C++ 5.9
  12748. # The more standards-conforming stlport4 library is
  12749. # incompatible with the Cstd library. Avoid specifying
  12750. # it if it's in CXXFLAGS. Ignore libCrun as
  12751. # -library=stlport4 depends on it.
  12752. case " $CXX $CXXFLAGS " in
  12753. *" -library=stlport4 "*)
  12754. solaris_use_stlport4=yes
  12755. ;;
  12756. esac
  12757. if test "$solaris_use_stlport4" != yes; then
  12758. postdeps_CXX='-library=Cstd -library=Crun'
  12759. fi
  12760. ;;
  12761. esac
  12762. ;;
  12763. solaris*)
  12764. case $cc_basename in
  12765. CC* | sunCC*)
  12766. # The more standards-conforming stlport4 library is
  12767. # incompatible with the Cstd library. Avoid specifying
  12768. # it if it's in CXXFLAGS. Ignore libCrun as
  12769. # -library=stlport4 depends on it.
  12770. case " $CXX $CXXFLAGS " in
  12771. *" -library=stlport4 "*)
  12772. solaris_use_stlport4=yes
  12773. ;;
  12774. esac
  12775. # Adding this requires a known-good setup of shared libraries for
  12776. # Sun compiler versions before 5.6, else PIC objects from an old
  12777. # archive will be linked into the output, leading to subtle bugs.
  12778. if test "$solaris_use_stlport4" != yes; then
  12779. postdeps_CXX='-library=Cstd -library=Crun'
  12780. fi
  12781. ;;
  12782. esac
  12783. ;;
  12784. esac
  12785. case " $postdeps_CXX " in
  12786. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12787. esac
  12788. compiler_lib_search_dirs_CXX=
  12789. if test -n "${compiler_lib_search_path_CXX}"; then
  12790. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12791. fi
  12792. lt_prog_compiler_wl_CXX=
  12793. lt_prog_compiler_pic_CXX=
  12794. lt_prog_compiler_static_CXX=
  12795. # C++ specific cases for pic, static, wl, etc.
  12796. if test "$GXX" = yes; then
  12797. lt_prog_compiler_wl_CXX='-Wl,'
  12798. lt_prog_compiler_static_CXX='-static'
  12799. case $host_os in
  12800. aix*)
  12801. # All AIX code is PIC.
  12802. if test "$host_cpu" = ia64; then
  12803. # AIX 5 now supports IA64 processor
  12804. lt_prog_compiler_static_CXX='-Bstatic'
  12805. fi
  12806. ;;
  12807. amigaos*)
  12808. case $host_cpu in
  12809. powerpc)
  12810. # see comment about AmigaOS4 .so support
  12811. lt_prog_compiler_pic_CXX='-fPIC'
  12812. ;;
  12813. m68k)
  12814. # FIXME: we need at least 68020 code to build shared libraries, but
  12815. # adding the `-m68020' flag to GCC prevents building anything better,
  12816. # like `-m68040'.
  12817. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12818. ;;
  12819. esac
  12820. ;;
  12821. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12822. # PIC is the default for these OSes.
  12823. ;;
  12824. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12825. # This hack is so that the source file can tell whether it is being
  12826. # built for inclusion in a dll (and should export symbols for example).
  12827. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12828. # (--disable-auto-import) libraries
  12829. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12830. ;;
  12831. darwin* | rhapsody*)
  12832. # PIC is the default on this platform
  12833. # Common symbols not allowed in MH_DYLIB files
  12834. lt_prog_compiler_pic_CXX='-fno-common'
  12835. ;;
  12836. *djgpp*)
  12837. # DJGPP does not support shared libraries at all
  12838. lt_prog_compiler_pic_CXX=
  12839. ;;
  12840. haiku*)
  12841. # PIC is the default for Haiku.
  12842. # The "-static" flag exists, but is broken.
  12843. lt_prog_compiler_static_CXX=
  12844. ;;
  12845. interix[3-9]*)
  12846. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12847. # Instead, we relocate shared libraries at runtime.
  12848. ;;
  12849. sysv4*MP*)
  12850. if test -d /usr/nec; then
  12851. lt_prog_compiler_pic_CXX=-Kconform_pic
  12852. fi
  12853. ;;
  12854. hpux*)
  12855. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12856. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12857. # sets the default TLS model and affects inlining.
  12858. case $host_cpu in
  12859. hppa*64*)
  12860. ;;
  12861. *)
  12862. lt_prog_compiler_pic_CXX='-fPIC'
  12863. ;;
  12864. esac
  12865. ;;
  12866. *qnx* | *nto*)
  12867. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12868. # it will coredump.
  12869. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12870. ;;
  12871. *)
  12872. lt_prog_compiler_pic_CXX='-fPIC'
  12873. ;;
  12874. esac
  12875. else
  12876. case $host_os in
  12877. aix[4-9]*)
  12878. # All AIX code is PIC.
  12879. if test "$host_cpu" = ia64; then
  12880. # AIX 5 now supports IA64 processor
  12881. lt_prog_compiler_static_CXX='-Bstatic'
  12882. else
  12883. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12884. fi
  12885. ;;
  12886. chorus*)
  12887. case $cc_basename in
  12888. cxch68*)
  12889. # Green Hills C++ Compiler
  12890. # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  12891. ;;
  12892. esac
  12893. ;;
  12894. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12895. # This hack is so that the source file can tell whether it is being
  12896. # built for inclusion in a dll (and should export symbols for example).
  12897. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12898. ;;
  12899. dgux*)
  12900. case $cc_basename in
  12901. ec++*)
  12902. lt_prog_compiler_pic_CXX='-KPIC'
  12903. ;;
  12904. ghcx*)
  12905. # Green Hills C++ Compiler
  12906. lt_prog_compiler_pic_CXX='-pic'
  12907. ;;
  12908. *)
  12909. ;;
  12910. esac
  12911. ;;
  12912. freebsd* | dragonfly*)
  12913. # FreeBSD uses GNU C++
  12914. ;;
  12915. hpux9* | hpux10* | hpux11*)
  12916. case $cc_basename in
  12917. CC*)
  12918. lt_prog_compiler_wl_CXX='-Wl,'
  12919. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12920. if test "$host_cpu" != ia64; then
  12921. lt_prog_compiler_pic_CXX='+Z'
  12922. fi
  12923. ;;
  12924. aCC*)
  12925. lt_prog_compiler_wl_CXX='-Wl,'
  12926. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12927. case $host_cpu in
  12928. hppa*64*|ia64*)
  12929. # +Z the default
  12930. ;;
  12931. *)
  12932. lt_prog_compiler_pic_CXX='+Z'
  12933. ;;
  12934. esac
  12935. ;;
  12936. *)
  12937. ;;
  12938. esac
  12939. ;;
  12940. interix*)
  12941. # This is c89, which is MS Visual C++ (no shared libs)
  12942. # Anyone wants to do a port?
  12943. ;;
  12944. irix5* | irix6* | nonstopux*)
  12945. case $cc_basename in
  12946. CC*)
  12947. lt_prog_compiler_wl_CXX='-Wl,'
  12948. lt_prog_compiler_static_CXX='-non_shared'
  12949. # CC pic flag -KPIC is the default.
  12950. ;;
  12951. *)
  12952. ;;
  12953. esac
  12954. ;;
  12955. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12956. case $cc_basename in
  12957. KCC*)
  12958. # KAI C++ Compiler
  12959. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12960. lt_prog_compiler_pic_CXX='-fPIC'
  12961. ;;
  12962. ecpc* )
  12963. # old Intel C++ for x86_64 which still supported -KPIC.
  12964. lt_prog_compiler_wl_CXX='-Wl,'
  12965. lt_prog_compiler_pic_CXX='-KPIC'
  12966. lt_prog_compiler_static_CXX='-static'
  12967. ;;
  12968. icpc* )
  12969. # Intel C++, used to be incompatible with GCC.
  12970. # ICC 10 doesn't accept -KPIC any more.
  12971. lt_prog_compiler_wl_CXX='-Wl,'
  12972. lt_prog_compiler_pic_CXX='-fPIC'
  12973. lt_prog_compiler_static_CXX='-static'
  12974. ;;
  12975. pgCC* | pgcpp*)
  12976. # Portland Group C++ compiler
  12977. lt_prog_compiler_wl_CXX='-Wl,'
  12978. lt_prog_compiler_pic_CXX='-fpic'
  12979. lt_prog_compiler_static_CXX='-Bstatic'
  12980. ;;
  12981. cxx*)
  12982. # Compaq C++
  12983. # Make sure the PIC flag is empty. It appears that all Alpha
  12984. # Linux and Compaq Tru64 Unix objects are PIC.
  12985. lt_prog_compiler_pic_CXX=
  12986. lt_prog_compiler_static_CXX='-non_shared'
  12987. ;;
  12988. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12989. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12990. lt_prog_compiler_wl_CXX='-Wl,'
  12991. lt_prog_compiler_pic_CXX='-qpic'
  12992. lt_prog_compiler_static_CXX='-qstaticlink'
  12993. ;;
  12994. *)
  12995. case `$CC -V 2>&1 | sed 5q` in
  12996. *Sun\ C*)
  12997. # Sun C++ 5.9
  12998. lt_prog_compiler_pic_CXX='-KPIC'
  12999. lt_prog_compiler_static_CXX='-Bstatic'
  13000. lt_prog_compiler_wl_CXX='-Qoption ld '
  13001. ;;
  13002. esac
  13003. ;;
  13004. esac
  13005. ;;
  13006. lynxos*)
  13007. ;;
  13008. m88k*)
  13009. ;;
  13010. mvs*)
  13011. case $cc_basename in
  13012. cxx*)
  13013. lt_prog_compiler_pic_CXX='-W c,exportall'
  13014. ;;
  13015. *)
  13016. ;;
  13017. esac
  13018. ;;
  13019. netbsd* | netbsdelf*-gnu)
  13020. ;;
  13021. *qnx* | *nto*)
  13022. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13023. # it will coredump.
  13024. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13025. ;;
  13026. osf3* | osf4* | osf5*)
  13027. case $cc_basename in
  13028. KCC*)
  13029. lt_prog_compiler_wl_CXX='--backend -Wl,'
  13030. ;;
  13031. RCC*)
  13032. # Rational C++ 2.4.1
  13033. lt_prog_compiler_pic_CXX='-pic'
  13034. ;;
  13035. cxx*)
  13036. # Digital/Compaq C++
  13037. lt_prog_compiler_wl_CXX='-Wl,'
  13038. # Make sure the PIC flag is empty. It appears that all Alpha
  13039. # Linux and Compaq Tru64 Unix objects are PIC.
  13040. lt_prog_compiler_pic_CXX=
  13041. lt_prog_compiler_static_CXX='-non_shared'
  13042. ;;
  13043. *)
  13044. ;;
  13045. esac
  13046. ;;
  13047. psos*)
  13048. ;;
  13049. solaris*)
  13050. case $cc_basename in
  13051. CC* | sunCC*)
  13052. # Sun C++ 4.2, 5.x and Centerline C++
  13053. lt_prog_compiler_pic_CXX='-KPIC'
  13054. lt_prog_compiler_static_CXX='-Bstatic'
  13055. lt_prog_compiler_wl_CXX='-Qoption ld '
  13056. ;;
  13057. gcx*)
  13058. # Green Hills C++ Compiler
  13059. lt_prog_compiler_pic_CXX='-PIC'
  13060. ;;
  13061. *)
  13062. ;;
  13063. esac
  13064. ;;
  13065. sunos4*)
  13066. case $cc_basename in
  13067. CC*)
  13068. # Sun C++ 4.x
  13069. lt_prog_compiler_pic_CXX='-pic'
  13070. lt_prog_compiler_static_CXX='-Bstatic'
  13071. ;;
  13072. lcc*)
  13073. # Lucid
  13074. lt_prog_compiler_pic_CXX='-pic'
  13075. ;;
  13076. *)
  13077. ;;
  13078. esac
  13079. ;;
  13080. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  13081. case $cc_basename in
  13082. CC*)
  13083. lt_prog_compiler_wl_CXX='-Wl,'
  13084. lt_prog_compiler_pic_CXX='-KPIC'
  13085. lt_prog_compiler_static_CXX='-Bstatic'
  13086. ;;
  13087. esac
  13088. ;;
  13089. tandem*)
  13090. case $cc_basename in
  13091. NCC*)
  13092. # NonStop-UX NCC 3.20
  13093. lt_prog_compiler_pic_CXX='-KPIC'
  13094. ;;
  13095. *)
  13096. ;;
  13097. esac
  13098. ;;
  13099. vxworks*)
  13100. ;;
  13101. *)
  13102. lt_prog_compiler_can_build_shared_CXX=no
  13103. ;;
  13104. esac
  13105. fi
  13106. case $host_os in
  13107. # For platforms which do not support PIC, -DPIC is meaningless:
  13108. *djgpp*)
  13109. lt_prog_compiler_pic_CXX=
  13110. ;;
  13111. *)
  13112. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  13113. ;;
  13114. esac
  13115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  13116. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  13117. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  13118. $as_echo_n "(cached) " >&6
  13119. else
  13120. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  13121. fi
  13122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  13123. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  13124. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  13125. #
  13126. # Check to make sure the PIC flag actually works.
  13127. #
  13128. if test -n "$lt_prog_compiler_pic_CXX"; then
  13129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  13130. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  13131. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  13132. $as_echo_n "(cached) " >&6
  13133. else
  13134. lt_cv_prog_compiler_pic_works_CXX=no
  13135. ac_outfile=conftest.$ac_objext
  13136. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13137. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  13138. # Insert the option either (1) after the last *FLAGS variable, or
  13139. # (2) before a word containing "conftest.", or (3) at the end.
  13140. # Note that $ac_compile itself does not contain backslashes and begins
  13141. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13142. # The option is referenced via a variable to avoid confusing sed.
  13143. lt_compile=`echo "$ac_compile" | $SED \
  13144. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13145. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13146. -e 's:$: $lt_compiler_flag:'`
  13147. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13148. (eval "$lt_compile" 2>conftest.err)
  13149. ac_status=$?
  13150. cat conftest.err >&5
  13151. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13152. if (exit $ac_status) && test -s "$ac_outfile"; then
  13153. # The compiler can only warn and ignore the option if not recognized
  13154. # So say no if there are warnings other than the usual output.
  13155. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  13156. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13157. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  13158. lt_cv_prog_compiler_pic_works_CXX=yes
  13159. fi
  13160. fi
  13161. $RM conftest*
  13162. fi
  13163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  13164. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  13165. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  13166. case $lt_prog_compiler_pic_CXX in
  13167. "" | " "*) ;;
  13168. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  13169. esac
  13170. else
  13171. lt_prog_compiler_pic_CXX=
  13172. lt_prog_compiler_can_build_shared_CXX=no
  13173. fi
  13174. fi
  13175. #
  13176. # Check to make sure the static flag actually works.
  13177. #
  13178. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  13179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  13180. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  13181. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  13182. $as_echo_n "(cached) " >&6
  13183. else
  13184. lt_cv_prog_compiler_static_works_CXX=no
  13185. save_LDFLAGS="$LDFLAGS"
  13186. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  13187. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  13188. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  13189. # The linker can only warn and ignore the option if not recognized
  13190. # So say no if there are warnings
  13191. if test -s conftest.err; then
  13192. # Append any errors to the config.log.
  13193. cat conftest.err 1>&5
  13194. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  13195. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13196. if diff conftest.exp conftest.er2 >/dev/null; then
  13197. lt_cv_prog_compiler_static_works_CXX=yes
  13198. fi
  13199. else
  13200. lt_cv_prog_compiler_static_works_CXX=yes
  13201. fi
  13202. fi
  13203. $RM -r conftest*
  13204. LDFLAGS="$save_LDFLAGS"
  13205. fi
  13206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  13207. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  13208. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  13209. :
  13210. else
  13211. lt_prog_compiler_static_CXX=
  13212. fi
  13213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13214. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13215. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  13216. $as_echo_n "(cached) " >&6
  13217. else
  13218. lt_cv_prog_compiler_c_o_CXX=no
  13219. $RM -r conftest 2>/dev/null
  13220. mkdir conftest
  13221. cd conftest
  13222. mkdir out
  13223. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13224. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13225. # Insert the option either (1) after the last *FLAGS variable, or
  13226. # (2) before a word containing "conftest.", or (3) at the end.
  13227. # Note that $ac_compile itself does not contain backslashes and begins
  13228. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13229. lt_compile=`echo "$ac_compile" | $SED \
  13230. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13231. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13232. -e 's:$: $lt_compiler_flag:'`
  13233. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13234. (eval "$lt_compile" 2>out/conftest.err)
  13235. ac_status=$?
  13236. cat out/conftest.err >&5
  13237. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13238. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13239. then
  13240. # The compiler can only warn and ignore the option if not recognized
  13241. # So say no if there are warnings
  13242. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13243. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13244. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13245. lt_cv_prog_compiler_c_o_CXX=yes
  13246. fi
  13247. fi
  13248. chmod u+w . 2>&5
  13249. $RM conftest*
  13250. # SGI C++ compiler will create directory out/ii_files/ for
  13251. # template instantiation
  13252. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13253. $RM out/* && rmdir out
  13254. cd ..
  13255. $RM -r conftest
  13256. $RM conftest*
  13257. fi
  13258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13259. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13261. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13262. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  13263. $as_echo_n "(cached) " >&6
  13264. else
  13265. lt_cv_prog_compiler_c_o_CXX=no
  13266. $RM -r conftest 2>/dev/null
  13267. mkdir conftest
  13268. cd conftest
  13269. mkdir out
  13270. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13271. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13272. # Insert the option either (1) after the last *FLAGS variable, or
  13273. # (2) before a word containing "conftest.", or (3) at the end.
  13274. # Note that $ac_compile itself does not contain backslashes and begins
  13275. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13276. lt_compile=`echo "$ac_compile" | $SED \
  13277. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13278. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13279. -e 's:$: $lt_compiler_flag:'`
  13280. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13281. (eval "$lt_compile" 2>out/conftest.err)
  13282. ac_status=$?
  13283. cat out/conftest.err >&5
  13284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13285. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13286. then
  13287. # The compiler can only warn and ignore the option if not recognized
  13288. # So say no if there are warnings
  13289. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13290. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13291. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13292. lt_cv_prog_compiler_c_o_CXX=yes
  13293. fi
  13294. fi
  13295. chmod u+w . 2>&5
  13296. $RM conftest*
  13297. # SGI C++ compiler will create directory out/ii_files/ for
  13298. # template instantiation
  13299. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13300. $RM out/* && rmdir out
  13301. cd ..
  13302. $RM -r conftest
  13303. $RM conftest*
  13304. fi
  13305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13306. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13307. hard_links="nottested"
  13308. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  13309. # do not overwrite the value of need_locks provided by the user
  13310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  13311. $as_echo_n "checking if we can lock with hard links... " >&6; }
  13312. hard_links=yes
  13313. $RM conftest*
  13314. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13315. touch conftest.a
  13316. ln conftest.a conftest.b 2>&5 || hard_links=no
  13317. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  13319. $as_echo "$hard_links" >&6; }
  13320. if test "$hard_links" = no; then
  13321. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  13322. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  13323. need_locks=warn
  13324. fi
  13325. else
  13326. need_locks=no
  13327. fi
  13328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13329. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  13330. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13331. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  13332. case $host_os in
  13333. aix[4-9]*)
  13334. # If we're using GNU nm, then we don't want the "-C" option.
  13335. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  13336. # Also, AIX nm treats weak defined symbols like other global defined
  13337. # symbols, whereas GNU nm marks them as "W".
  13338. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  13339. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  13340. else
  13341. export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  13342. fi
  13343. ;;
  13344. pw32*)
  13345. export_symbols_cmds_CXX="$ltdll_cmds"
  13346. ;;
  13347. cygwin* | mingw* | cegcc*)
  13348. case $cc_basename in
  13349. cl*)
  13350. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  13351. ;;
  13352. *)
  13353. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  13354. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  13355. ;;
  13356. esac
  13357. ;;
  13358. linux* | k*bsd*-gnu | gnu*)
  13359. link_all_deplibs_CXX=no
  13360. ;;
  13361. *)
  13362. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13363. ;;
  13364. esac
  13365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13366. $as_echo "$ld_shlibs_CXX" >&6; }
  13367. test "$ld_shlibs_CXX" = no && can_build_shared=no
  13368. with_gnu_ld_CXX=$with_gnu_ld
  13369. #
  13370. # Do we need to explicitly link libc?
  13371. #
  13372. case "x$archive_cmds_need_lc_CXX" in
  13373. x|xyes)
  13374. # Assume -lc should be added
  13375. archive_cmds_need_lc_CXX=yes
  13376. if test "$enable_shared" = yes && test "$GCC" = yes; then
  13377. case $archive_cmds_CXX in
  13378. *'~'*)
  13379. # FIXME: we may have to deal with multi-command sequences.
  13380. ;;
  13381. '$CC '*)
  13382. # Test whether the compiler implicitly links with -lc since on some
  13383. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13384. # to ld, don't add -lc before -lgcc.
  13385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  13386. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  13387. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  13388. $as_echo_n "(cached) " >&6
  13389. else
  13390. $RM conftest*
  13391. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13392. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13393. (eval $ac_compile) 2>&5
  13394. ac_status=$?
  13395. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13396. test $ac_status = 0; } 2>conftest.err; then
  13397. soname=conftest
  13398. lib=conftest
  13399. libobjs=conftest.$ac_objext
  13400. deplibs=
  13401. wl=$lt_prog_compiler_wl_CXX
  13402. pic_flag=$lt_prog_compiler_pic_CXX
  13403. compiler_flags=-v
  13404. linker_flags=-v
  13405. verstring=
  13406. output_objdir=.
  13407. libname=conftest
  13408. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  13409. allow_undefined_flag_CXX=
  13410. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  13411. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13412. ac_status=$?
  13413. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13414. test $ac_status = 0; }
  13415. then
  13416. lt_cv_archive_cmds_need_lc_CXX=no
  13417. else
  13418. lt_cv_archive_cmds_need_lc_CXX=yes
  13419. fi
  13420. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  13421. else
  13422. cat conftest.err 1>&5
  13423. fi
  13424. $RM conftest*
  13425. fi
  13426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  13427. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  13428. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  13429. ;;
  13430. esac
  13431. fi
  13432. ;;
  13433. esac
  13434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  13435. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  13436. library_names_spec=
  13437. libname_spec='lib$name'
  13438. soname_spec=
  13439. shrext_cmds=".so"
  13440. postinstall_cmds=
  13441. postuninstall_cmds=
  13442. finish_cmds=
  13443. finish_eval=
  13444. shlibpath_var=
  13445. shlibpath_overrides_runpath=unknown
  13446. version_type=none
  13447. dynamic_linker="$host_os ld.so"
  13448. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13449. need_lib_prefix=unknown
  13450. hardcode_into_libs=no
  13451. # when you set need_version to no, make sure it does not cause -set_version
  13452. # flags to be left without arguments
  13453. need_version=unknown
  13454. case $host_os in
  13455. aix3*)
  13456. version_type=linux # correct to gnu/linux during the next big refactor
  13457. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  13458. shlibpath_var=LIBPATH
  13459. # AIX 3 has no versioning support, so we append a major version to the name.
  13460. soname_spec='${libname}${release}${shared_ext}$major'
  13461. ;;
  13462. aix[4-9]*)
  13463. version_type=linux # correct to gnu/linux during the next big refactor
  13464. need_lib_prefix=no
  13465. need_version=no
  13466. hardcode_into_libs=yes
  13467. if test "$host_cpu" = ia64; then
  13468. # AIX 5 supports IA64
  13469. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  13470. shlibpath_var=LD_LIBRARY_PATH
  13471. else
  13472. # With GCC up to 2.95.x, collect2 would create an import file
  13473. # for dependence libraries. The import file would start with
  13474. # the line `#! .'. This would cause the generated library to
  13475. # depend on `.', always an invalid library. This was fixed in
  13476. # development snapshots of GCC prior to 3.0.
  13477. case $host_os in
  13478. aix4 | aix4.[01] | aix4.[01].*)
  13479. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13480. echo ' yes '
  13481. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  13482. :
  13483. else
  13484. can_build_shared=no
  13485. fi
  13486. ;;
  13487. esac
  13488. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  13489. # soname into executable. Probably we can add versioning support to
  13490. # collect2, so additional links can be useful in future.
  13491. if test "$aix_use_runtimelinking" = yes; then
  13492. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13493. # instead of lib<name>.a to let people know that these are not
  13494. # typical AIX shared libraries.
  13495. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13496. else
  13497. # We preserve .a as extension for shared libraries through AIX4.2
  13498. # and later when we are not doing run time linking.
  13499. library_names_spec='${libname}${release}.a $libname.a'
  13500. soname_spec='${libname}${release}${shared_ext}$major'
  13501. fi
  13502. shlibpath_var=LIBPATH
  13503. fi
  13504. ;;
  13505. amigaos*)
  13506. case $host_cpu in
  13507. powerpc)
  13508. # Since July 2007 AmigaOS4 officially supports .so libraries.
  13509. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  13510. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13511. ;;
  13512. m68k)
  13513. library_names_spec='$libname.ixlibrary $libname.a'
  13514. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13515. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  13516. ;;
  13517. esac
  13518. ;;
  13519. beos*)
  13520. library_names_spec='${libname}${shared_ext}'
  13521. dynamic_linker="$host_os ld.so"
  13522. shlibpath_var=LIBRARY_PATH
  13523. ;;
  13524. bsdi[45]*)
  13525. version_type=linux # correct to gnu/linux during the next big refactor
  13526. need_version=no
  13527. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13528. soname_spec='${libname}${release}${shared_ext}$major'
  13529. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13530. shlibpath_var=LD_LIBRARY_PATH
  13531. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13532. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13533. # the default ld.so.conf also contains /usr/contrib/lib and
  13534. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13535. # libtool to hard-code these into programs
  13536. ;;
  13537. cygwin* | mingw* | pw32* | cegcc*)
  13538. version_type=windows
  13539. shrext_cmds=".dll"
  13540. need_version=no
  13541. need_lib_prefix=no
  13542. case $GCC,$cc_basename in
  13543. yes,*)
  13544. # gcc
  13545. library_names_spec='$libname.dll.a'
  13546. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13547. postinstall_cmds='base_file=`basename \${file}`~
  13548. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13549. dldir=$destdir/`dirname \$dlpath`~
  13550. test -d \$dldir || mkdir -p \$dldir~
  13551. $install_prog $dir/$dlname \$dldir/$dlname~
  13552. chmod a+x \$dldir/$dlname~
  13553. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13554. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13555. fi'
  13556. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13557. dlpath=$dir/\$dldll~
  13558. $RM \$dlpath'
  13559. shlibpath_overrides_runpath=yes
  13560. case $host_os in
  13561. cygwin*)
  13562. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13563. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13564. ;;
  13565. mingw* | cegcc*)
  13566. # MinGW DLLs use traditional 'lib' prefix
  13567. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13568. ;;
  13569. pw32*)
  13570. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13571. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13572. ;;
  13573. esac
  13574. dynamic_linker='Win32 ld.exe'
  13575. ;;
  13576. *,cl*)
  13577. # Native MSVC
  13578. libname_spec='$name'
  13579. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13580. library_names_spec='${libname}.dll.lib'
  13581. case $build_os in
  13582. mingw*)
  13583. sys_lib_search_path_spec=
  13584. lt_save_ifs=$IFS
  13585. IFS=';'
  13586. for lt_path in $LIB
  13587. do
  13588. IFS=$lt_save_ifs
  13589. # Let DOS variable expansion print the short 8.3 style file name.
  13590. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13591. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13592. done
  13593. IFS=$lt_save_ifs
  13594. # Convert to MSYS style.
  13595. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13596. ;;
  13597. cygwin*)
  13598. # Convert to unix form, then to dos form, then back to unix form
  13599. # but this time dos style (no spaces!) so that the unix form looks
  13600. # like /cygdrive/c/PROGRA~1:/cygdr...
  13601. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13602. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13603. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13604. ;;
  13605. *)
  13606. sys_lib_search_path_spec="$LIB"
  13607. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13608. # It is most probably a Windows format PATH.
  13609. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13610. else
  13611. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13612. fi
  13613. # FIXME: find the short name or the path components, as spaces are
  13614. # common. (e.g. "Program Files" -> "PROGRA~1")
  13615. ;;
  13616. esac
  13617. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13618. postinstall_cmds='base_file=`basename \${file}`~
  13619. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13620. dldir=$destdir/`dirname \$dlpath`~
  13621. test -d \$dldir || mkdir -p \$dldir~
  13622. $install_prog $dir/$dlname \$dldir/$dlname'
  13623. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13624. dlpath=$dir/\$dldll~
  13625. $RM \$dlpath'
  13626. shlibpath_overrides_runpath=yes
  13627. dynamic_linker='Win32 link.exe'
  13628. ;;
  13629. *)
  13630. # Assume MSVC wrapper
  13631. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13632. dynamic_linker='Win32 ld.exe'
  13633. ;;
  13634. esac
  13635. # FIXME: first we should search . and the directory the executable is in
  13636. shlibpath_var=PATH
  13637. ;;
  13638. darwin* | rhapsody*)
  13639. dynamic_linker="$host_os dyld"
  13640. version_type=darwin
  13641. need_lib_prefix=no
  13642. need_version=no
  13643. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13644. soname_spec='${libname}${release}${major}$shared_ext'
  13645. shlibpath_overrides_runpath=yes
  13646. shlibpath_var=DYLD_LIBRARY_PATH
  13647. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13648. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13649. ;;
  13650. dgux*)
  13651. version_type=linux # correct to gnu/linux during the next big refactor
  13652. need_lib_prefix=no
  13653. need_version=no
  13654. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13655. soname_spec='${libname}${release}${shared_ext}$major'
  13656. shlibpath_var=LD_LIBRARY_PATH
  13657. ;;
  13658. freebsd* | dragonfly*)
  13659. # DragonFly does not have aout. When/if they implement a new
  13660. # versioning mechanism, adjust this.
  13661. if test -x /usr/bin/objformat; then
  13662. objformat=`/usr/bin/objformat`
  13663. else
  13664. case $host_os in
  13665. freebsd[23].*) objformat=aout ;;
  13666. *) objformat=elf ;;
  13667. esac
  13668. fi
  13669. version_type=freebsd-$objformat
  13670. case $version_type in
  13671. freebsd-elf*)
  13672. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13673. need_version=no
  13674. need_lib_prefix=no
  13675. ;;
  13676. freebsd-*)
  13677. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13678. need_version=yes
  13679. ;;
  13680. esac
  13681. shlibpath_var=LD_LIBRARY_PATH
  13682. case $host_os in
  13683. freebsd2.*)
  13684. shlibpath_overrides_runpath=yes
  13685. ;;
  13686. freebsd3.[01]* | freebsdelf3.[01]*)
  13687. shlibpath_overrides_runpath=yes
  13688. hardcode_into_libs=yes
  13689. ;;
  13690. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13691. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13692. shlibpath_overrides_runpath=no
  13693. hardcode_into_libs=yes
  13694. ;;
  13695. *) # from 4.6 on, and DragonFly
  13696. shlibpath_overrides_runpath=yes
  13697. hardcode_into_libs=yes
  13698. ;;
  13699. esac
  13700. ;;
  13701. haiku*)
  13702. version_type=linux # correct to gnu/linux during the next big refactor
  13703. need_lib_prefix=no
  13704. need_version=no
  13705. dynamic_linker="$host_os runtime_loader"
  13706. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13707. soname_spec='${libname}${release}${shared_ext}$major'
  13708. shlibpath_var=LIBRARY_PATH
  13709. shlibpath_overrides_runpath=yes
  13710. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13711. hardcode_into_libs=yes
  13712. ;;
  13713. hpux9* | hpux10* | hpux11*)
  13714. # Give a soname corresponding to the major version so that dld.sl refuses to
  13715. # link against other versions.
  13716. version_type=sunos
  13717. need_lib_prefix=no
  13718. need_version=no
  13719. case $host_cpu in
  13720. ia64*)
  13721. shrext_cmds='.so'
  13722. hardcode_into_libs=yes
  13723. dynamic_linker="$host_os dld.so"
  13724. shlibpath_var=LD_LIBRARY_PATH
  13725. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13726. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13727. soname_spec='${libname}${release}${shared_ext}$major'
  13728. if test "X$HPUX_IA64_MODE" = X32; then
  13729. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13730. else
  13731. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13732. fi
  13733. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13734. ;;
  13735. hppa*64*)
  13736. shrext_cmds='.sl'
  13737. hardcode_into_libs=yes
  13738. dynamic_linker="$host_os dld.sl"
  13739. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13740. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13741. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13742. soname_spec='${libname}${release}${shared_ext}$major'
  13743. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13744. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13745. ;;
  13746. *)
  13747. shrext_cmds='.sl'
  13748. dynamic_linker="$host_os dld.sl"
  13749. shlibpath_var=SHLIB_PATH
  13750. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13751. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13752. soname_spec='${libname}${release}${shared_ext}$major'
  13753. ;;
  13754. esac
  13755. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13756. postinstall_cmds='chmod 555 $lib'
  13757. # or fails outright, so override atomically:
  13758. install_override_mode=555
  13759. ;;
  13760. interix[3-9]*)
  13761. version_type=linux # correct to gnu/linux during the next big refactor
  13762. need_lib_prefix=no
  13763. need_version=no
  13764. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13765. soname_spec='${libname}${release}${shared_ext}$major'
  13766. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13767. shlibpath_var=LD_LIBRARY_PATH
  13768. shlibpath_overrides_runpath=no
  13769. hardcode_into_libs=yes
  13770. ;;
  13771. irix5* | irix6* | nonstopux*)
  13772. case $host_os in
  13773. nonstopux*) version_type=nonstopux ;;
  13774. *)
  13775. if test "$lt_cv_prog_gnu_ld" = yes; then
  13776. version_type=linux # correct to gnu/linux during the next big refactor
  13777. else
  13778. version_type=irix
  13779. fi ;;
  13780. esac
  13781. need_lib_prefix=no
  13782. need_version=no
  13783. soname_spec='${libname}${release}${shared_ext}$major'
  13784. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13785. case $host_os in
  13786. irix5* | nonstopux*)
  13787. libsuff= shlibsuff=
  13788. ;;
  13789. *)
  13790. case $LD in # libtool.m4 will add one of these switches to LD
  13791. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13792. libsuff= shlibsuff= libmagic=32-bit;;
  13793. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13794. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13795. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13796. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13797. *) libsuff= shlibsuff= libmagic=never-match;;
  13798. esac
  13799. ;;
  13800. esac
  13801. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13802. shlibpath_overrides_runpath=no
  13803. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13804. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13805. hardcode_into_libs=yes
  13806. ;;
  13807. # No shared lib support for Linux oldld, aout, or coff.
  13808. linux*oldld* | linux*aout* | linux*coff*)
  13809. dynamic_linker=no
  13810. ;;
  13811. # This must be glibc/ELF.
  13812. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13813. version_type=linux # correct to gnu/linux during the next big refactor
  13814. need_lib_prefix=no
  13815. need_version=no
  13816. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13817. soname_spec='${libname}${release}${shared_ext}$major'
  13818. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13819. shlibpath_var=LD_LIBRARY_PATH
  13820. shlibpath_overrides_runpath=no
  13821. # Some binutils ld are patched to set DT_RUNPATH
  13822. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13823. $as_echo_n "(cached) " >&6
  13824. else
  13825. lt_cv_shlibpath_overrides_runpath=no
  13826. save_LDFLAGS=$LDFLAGS
  13827. save_libdir=$libdir
  13828. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13829. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13830. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13831. /* end confdefs.h. */
  13832. int
  13833. main ()
  13834. {
  13835. ;
  13836. return 0;
  13837. }
  13838. _ACEOF
  13839. if ac_fn_cxx_try_link "$LINENO"; then :
  13840. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13841. lt_cv_shlibpath_overrides_runpath=yes
  13842. fi
  13843. fi
  13844. rm -f core conftest.err conftest.$ac_objext \
  13845. conftest$ac_exeext conftest.$ac_ext
  13846. LDFLAGS=$save_LDFLAGS
  13847. libdir=$save_libdir
  13848. fi
  13849. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13850. # This implies no fast_install, which is unacceptable.
  13851. # Some rework will be needed to allow for fast_install
  13852. # before this can be enabled.
  13853. hardcode_into_libs=yes
  13854. # Append ld.so.conf contents to the search path
  13855. if test -f /etc/ld.so.conf; then
  13856. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  13857. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13858. fi
  13859. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13860. # powerpc, because MkLinux only supported shared libraries with the
  13861. # GNU dynamic linker. Since this was broken with cross compilers,
  13862. # most powerpc-linux boxes support dynamic linking these days and
  13863. # people can always --disable-shared, the test was removed, and we
  13864. # assume the GNU/Linux dynamic linker is in use.
  13865. dynamic_linker='GNU/Linux ld.so'
  13866. ;;
  13867. netbsdelf*-gnu)
  13868. version_type=linux
  13869. need_lib_prefix=no
  13870. need_version=no
  13871. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13872. soname_spec='${libname}${release}${shared_ext}$major'
  13873. shlibpath_var=LD_LIBRARY_PATH
  13874. shlibpath_overrides_runpath=no
  13875. hardcode_into_libs=yes
  13876. dynamic_linker='NetBSD ld.elf_so'
  13877. ;;
  13878. netbsd*)
  13879. version_type=sunos
  13880. need_lib_prefix=no
  13881. need_version=no
  13882. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13883. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13884. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13885. dynamic_linker='NetBSD (a.out) ld.so'
  13886. else
  13887. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13888. soname_spec='${libname}${release}${shared_ext}$major'
  13889. dynamic_linker='NetBSD ld.elf_so'
  13890. fi
  13891. shlibpath_var=LD_LIBRARY_PATH
  13892. shlibpath_overrides_runpath=yes
  13893. hardcode_into_libs=yes
  13894. ;;
  13895. newsos6)
  13896. version_type=linux # correct to gnu/linux during the next big refactor
  13897. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13898. shlibpath_var=LD_LIBRARY_PATH
  13899. shlibpath_overrides_runpath=yes
  13900. ;;
  13901. *nto* | *qnx*)
  13902. version_type=qnx
  13903. need_lib_prefix=no
  13904. need_version=no
  13905. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13906. soname_spec='${libname}${release}${shared_ext}$major'
  13907. shlibpath_var=LD_LIBRARY_PATH
  13908. shlibpath_overrides_runpath=no
  13909. hardcode_into_libs=yes
  13910. dynamic_linker='ldqnx.so'
  13911. ;;
  13912. openbsd*)
  13913. version_type=sunos
  13914. sys_lib_dlsearch_path_spec="/usr/lib"
  13915. need_lib_prefix=no
  13916. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13917. case $host_os in
  13918. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13919. *) need_version=no ;;
  13920. esac
  13921. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13922. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13923. shlibpath_var=LD_LIBRARY_PATH
  13924. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13925. case $host_os in
  13926. openbsd2.[89] | openbsd2.[89].*)
  13927. shlibpath_overrides_runpath=no
  13928. ;;
  13929. *)
  13930. shlibpath_overrides_runpath=yes
  13931. ;;
  13932. esac
  13933. else
  13934. shlibpath_overrides_runpath=yes
  13935. fi
  13936. ;;
  13937. os2*)
  13938. libname_spec='$name'
  13939. shrext_cmds=".dll"
  13940. need_lib_prefix=no
  13941. library_names_spec='$libname${shared_ext} $libname.a'
  13942. dynamic_linker='OS/2 ld.exe'
  13943. shlibpath_var=LIBPATH
  13944. ;;
  13945. osf3* | osf4* | osf5*)
  13946. version_type=osf
  13947. need_lib_prefix=no
  13948. need_version=no
  13949. soname_spec='${libname}${release}${shared_ext}$major'
  13950. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13951. shlibpath_var=LD_LIBRARY_PATH
  13952. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13953. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13954. ;;
  13955. rdos*)
  13956. dynamic_linker=no
  13957. ;;
  13958. solaris*)
  13959. version_type=linux # correct to gnu/linux during the next big refactor
  13960. need_lib_prefix=no
  13961. need_version=no
  13962. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13963. soname_spec='${libname}${release}${shared_ext}$major'
  13964. shlibpath_var=LD_LIBRARY_PATH
  13965. shlibpath_overrides_runpath=yes
  13966. hardcode_into_libs=yes
  13967. # ldd complains unless libraries are executable
  13968. postinstall_cmds='chmod +x $lib'
  13969. ;;
  13970. sunos4*)
  13971. version_type=sunos
  13972. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13973. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13974. shlibpath_var=LD_LIBRARY_PATH
  13975. shlibpath_overrides_runpath=yes
  13976. if test "$with_gnu_ld" = yes; then
  13977. need_lib_prefix=no
  13978. fi
  13979. need_version=yes
  13980. ;;
  13981. sysv4 | sysv4.3*)
  13982. version_type=linux # correct to gnu/linux during the next big refactor
  13983. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13984. soname_spec='${libname}${release}${shared_ext}$major'
  13985. shlibpath_var=LD_LIBRARY_PATH
  13986. case $host_vendor in
  13987. sni)
  13988. shlibpath_overrides_runpath=no
  13989. need_lib_prefix=no
  13990. runpath_var=LD_RUN_PATH
  13991. ;;
  13992. siemens)
  13993. need_lib_prefix=no
  13994. ;;
  13995. motorola)
  13996. need_lib_prefix=no
  13997. need_version=no
  13998. shlibpath_overrides_runpath=no
  13999. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14000. ;;
  14001. esac
  14002. ;;
  14003. sysv4*MP*)
  14004. if test -d /usr/nec ;then
  14005. version_type=linux # correct to gnu/linux during the next big refactor
  14006. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  14007. soname_spec='$libname${shared_ext}.$major'
  14008. shlibpath_var=LD_LIBRARY_PATH
  14009. fi
  14010. ;;
  14011. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  14012. version_type=freebsd-elf
  14013. need_lib_prefix=no
  14014. need_version=no
  14015. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  14016. soname_spec='${libname}${release}${shared_ext}$major'
  14017. shlibpath_var=LD_LIBRARY_PATH
  14018. shlibpath_overrides_runpath=yes
  14019. hardcode_into_libs=yes
  14020. if test "$with_gnu_ld" = yes; then
  14021. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  14022. else
  14023. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  14024. case $host_os in
  14025. sco3.2v5*)
  14026. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  14027. ;;
  14028. esac
  14029. fi
  14030. sys_lib_dlsearch_path_spec='/usr/lib'
  14031. ;;
  14032. tpf*)
  14033. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  14034. version_type=linux # correct to gnu/linux during the next big refactor
  14035. need_lib_prefix=no
  14036. need_version=no
  14037. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14038. shlibpath_var=LD_LIBRARY_PATH
  14039. shlibpath_overrides_runpath=no
  14040. hardcode_into_libs=yes
  14041. ;;
  14042. uts4*)
  14043. version_type=linux # correct to gnu/linux during the next big refactor
  14044. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14045. soname_spec='${libname}${release}${shared_ext}$major'
  14046. shlibpath_var=LD_LIBRARY_PATH
  14047. ;;
  14048. *)
  14049. dynamic_linker=no
  14050. ;;
  14051. esac
  14052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  14053. $as_echo "$dynamic_linker" >&6; }
  14054. test "$dynamic_linker" = no && can_build_shared=no
  14055. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14056. if test "$GCC" = yes; then
  14057. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14058. fi
  14059. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  14060. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  14061. fi
  14062. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  14063. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  14064. fi
  14065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  14066. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  14067. hardcode_action_CXX=
  14068. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  14069. test -n "$runpath_var_CXX" ||
  14070. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  14071. # We can hardcode non-existent directories.
  14072. if test "$hardcode_direct_CXX" != no &&
  14073. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14074. # have to relink, otherwise we might link with an installed library
  14075. # when we should be linking with a yet-to-be-installed one
  14076. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  14077. test "$hardcode_minus_L_CXX" != no; then
  14078. # Linking always hardcodes the temporary library directory.
  14079. hardcode_action_CXX=relink
  14080. else
  14081. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14082. hardcode_action_CXX=immediate
  14083. fi
  14084. else
  14085. # We cannot hardcode anything, or else we can only hardcode existing
  14086. # directories.
  14087. hardcode_action_CXX=unsupported
  14088. fi
  14089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  14090. $as_echo "$hardcode_action_CXX" >&6; }
  14091. if test "$hardcode_action_CXX" = relink ||
  14092. test "$inherit_rpath_CXX" = yes; then
  14093. # Fast installation is not supported
  14094. enable_fast_install=no
  14095. elif test "$shlibpath_overrides_runpath" = yes ||
  14096. test "$enable_shared" = no; then
  14097. # Fast installation is not necessary
  14098. enable_fast_install=needless
  14099. fi
  14100. fi # test -n "$compiler"
  14101. CC=$lt_save_CC
  14102. CFLAGS=$lt_save_CFLAGS
  14103. LDCXX=$LD
  14104. LD=$lt_save_LD
  14105. GCC=$lt_save_GCC
  14106. with_gnu_ld=$lt_save_with_gnu_ld
  14107. lt_cv_path_LDCXX=$lt_cv_path_LD
  14108. lt_cv_path_LD=$lt_save_path_LD
  14109. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  14110. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  14111. fi # test "$_lt_caught_CXX_error" != yes
  14112. ac_ext=c
  14113. ac_cpp='$CPP $CPPFLAGS'
  14114. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14115. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14116. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14117. ac_ext=c
  14118. ac_cpp='$CPP $CPPFLAGS'
  14119. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14120. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14121. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  14123. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  14124. # On Suns, sometimes $CPP names a directory.
  14125. if test -n "$CPP" && test -d "$CPP"; then
  14126. CPP=
  14127. fi
  14128. if test -z "$CPP"; then
  14129. if ${ac_cv_prog_CPP+:} false; then :
  14130. $as_echo_n "(cached) " >&6
  14131. else
  14132. # Double quotes because CPP needs to be expanded
  14133. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  14134. do
  14135. ac_preproc_ok=false
  14136. for ac_c_preproc_warn_flag in '' yes
  14137. do
  14138. # Use a header file that comes with gcc, so configuring glibc
  14139. # with a fresh cross-compiler works.
  14140. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  14141. # <limits.h> exists even on freestanding compilers.
  14142. # On the NeXT, cc -E runs the code through the compiler's parser,
  14143. # not just through cpp. "Syntax error" is here to catch this case.
  14144. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14145. /* end confdefs.h. */
  14146. #ifdef __STDC__
  14147. # include <limits.h>
  14148. #else
  14149. # include <assert.h>
  14150. #endif
  14151. Syntax error
  14152. _ACEOF
  14153. if ac_fn_c_try_cpp "$LINENO"; then :
  14154. else
  14155. # Broken: fails on valid input.
  14156. continue
  14157. fi
  14158. rm -f conftest.err conftest.i conftest.$ac_ext
  14159. # OK, works on sane cases. Now check whether nonexistent headers
  14160. # can be detected and how.
  14161. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14162. /* end confdefs.h. */
  14163. #include <ac_nonexistent.h>
  14164. _ACEOF
  14165. if ac_fn_c_try_cpp "$LINENO"; then :
  14166. # Broken: success on invalid input.
  14167. continue
  14168. else
  14169. # Passes both tests.
  14170. ac_preproc_ok=:
  14171. break
  14172. fi
  14173. rm -f conftest.err conftest.i conftest.$ac_ext
  14174. done
  14175. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  14176. rm -f conftest.i conftest.err conftest.$ac_ext
  14177. if $ac_preproc_ok; then :
  14178. break
  14179. fi
  14180. done
  14181. ac_cv_prog_CPP=$CPP
  14182. fi
  14183. CPP=$ac_cv_prog_CPP
  14184. else
  14185. ac_cv_prog_CPP=$CPP
  14186. fi
  14187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  14188. $as_echo "$CPP" >&6; }
  14189. ac_preproc_ok=false
  14190. for ac_c_preproc_warn_flag in '' yes
  14191. do
  14192. # Use a header file that comes with gcc, so configuring glibc
  14193. # with a fresh cross-compiler works.
  14194. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  14195. # <limits.h> exists even on freestanding compilers.
  14196. # On the NeXT, cc -E runs the code through the compiler's parser,
  14197. # not just through cpp. "Syntax error" is here to catch this case.
  14198. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14199. /* end confdefs.h. */
  14200. #ifdef __STDC__
  14201. # include <limits.h>
  14202. #else
  14203. # include <assert.h>
  14204. #endif
  14205. Syntax error
  14206. _ACEOF
  14207. if ac_fn_c_try_cpp "$LINENO"; then :
  14208. else
  14209. # Broken: fails on valid input.
  14210. continue
  14211. fi
  14212. rm -f conftest.err conftest.i conftest.$ac_ext
  14213. # OK, works on sane cases. Now check whether nonexistent headers
  14214. # can be detected and how.
  14215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14216. /* end confdefs.h. */
  14217. #include <ac_nonexistent.h>
  14218. _ACEOF
  14219. if ac_fn_c_try_cpp "$LINENO"; then :
  14220. # Broken: success on invalid input.
  14221. continue
  14222. else
  14223. # Passes both tests.
  14224. ac_preproc_ok=:
  14225. break
  14226. fi
  14227. rm -f conftest.err conftest.i conftest.$ac_ext
  14228. done
  14229. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  14230. rm -f conftest.i conftest.err conftest.$ac_ext
  14231. if $ac_preproc_ok; then :
  14232. else
  14233. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14234. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14235. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  14236. See \`config.log' for more details" "$LINENO" 5; }
  14237. fi
  14238. ac_ext=c
  14239. ac_cpp='$CPP $CPPFLAGS'
  14240. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14241. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14242. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  14244. $as_echo_n "checking whether ln -s works... " >&6; }
  14245. LN_S=$as_ln_s
  14246. if test "$LN_S" = "ln -s"; then
  14247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14248. $as_echo "yes" >&6; }
  14249. else
  14250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  14251. $as_echo "no, using $LN_S" >&6; }
  14252. fi
  14253. for ac_prog in gawk mawk nawk awk
  14254. do
  14255. # Extract the first word of "$ac_prog", so it can be a program name with args.
  14256. set dummy $ac_prog; ac_word=$2
  14257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14258. $as_echo_n "checking for $ac_word... " >&6; }
  14259. if ${ac_cv_prog_AWK+:} false; then :
  14260. $as_echo_n "(cached) " >&6
  14261. else
  14262. if test -n "$AWK"; then
  14263. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  14264. else
  14265. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14266. for as_dir in $PATH
  14267. do
  14268. IFS=$as_save_IFS
  14269. test -z "$as_dir" && as_dir=.
  14270. for ac_exec_ext in '' $ac_executable_extensions; do
  14271. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14272. ac_cv_prog_AWK="$ac_prog"
  14273. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14274. break 2
  14275. fi
  14276. done
  14277. done
  14278. IFS=$as_save_IFS
  14279. fi
  14280. fi
  14281. AWK=$ac_cv_prog_AWK
  14282. if test -n "$AWK"; then
  14283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  14284. $as_echo "$AWK" >&6; }
  14285. else
  14286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14287. $as_echo "no" >&6; }
  14288. fi
  14289. test -n "$AWK" && break
  14290. done
  14291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  14292. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  14293. if ${ac_cv_path_SED+:} false; then :
  14294. $as_echo_n "(cached) " >&6
  14295. else
  14296. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  14297. for ac_i in 1 2 3 4 5 6 7; do
  14298. ac_script="$ac_script$as_nl$ac_script"
  14299. done
  14300. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  14301. { ac_script=; unset ac_script;}
  14302. if test -z "$SED"; then
  14303. ac_path_SED_found=false
  14304. # Loop through the user's path and test for each of PROGNAME-LIST
  14305. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14306. for as_dir in $PATH
  14307. do
  14308. IFS=$as_save_IFS
  14309. test -z "$as_dir" && as_dir=.
  14310. for ac_prog in sed gsed; do
  14311. for ac_exec_ext in '' $ac_executable_extensions; do
  14312. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  14313. as_fn_executable_p "$ac_path_SED" || continue
  14314. # Check for GNU ac_path_SED and select it if it is found.
  14315. # Check for GNU $ac_path_SED
  14316. case `"$ac_path_SED" --version 2>&1` in
  14317. *GNU*)
  14318. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  14319. *)
  14320. ac_count=0
  14321. $as_echo_n 0123456789 >"conftest.in"
  14322. while :
  14323. do
  14324. cat "conftest.in" "conftest.in" >"conftest.tmp"
  14325. mv "conftest.tmp" "conftest.in"
  14326. cp "conftest.in" "conftest.nl"
  14327. $as_echo '' >> "conftest.nl"
  14328. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  14329. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  14330. as_fn_arith $ac_count + 1 && ac_count=$as_val
  14331. if test $ac_count -gt ${ac_path_SED_max-0}; then
  14332. # Best one so far, save it but keep looking for a better one
  14333. ac_cv_path_SED="$ac_path_SED"
  14334. ac_path_SED_max=$ac_count
  14335. fi
  14336. # 10*(2^10) chars as input seems more than enough
  14337. test $ac_count -gt 10 && break
  14338. done
  14339. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  14340. esac
  14341. $ac_path_SED_found && break 3
  14342. done
  14343. done
  14344. done
  14345. IFS=$as_save_IFS
  14346. if test -z "$ac_cv_path_SED"; then
  14347. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  14348. fi
  14349. else
  14350. ac_cv_path_SED=$SED
  14351. fi
  14352. fi
  14353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  14354. $as_echo "$ac_cv_path_SED" >&6; }
  14355. SED="$ac_cv_path_SED"
  14356. rm -f conftest.sed
  14357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  14358. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  14359. set x ${MAKE-make}
  14360. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  14361. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  14362. $as_echo_n "(cached) " >&6
  14363. else
  14364. cat >conftest.make <<\_ACEOF
  14365. SHELL = /bin/sh
  14366. all:
  14367. @echo '@@@%%%=$(MAKE)=@@@%%%'
  14368. _ACEOF
  14369. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  14370. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  14371. *@@@%%%=?*=@@@%%%*)
  14372. eval ac_cv_prog_make_${ac_make}_set=yes;;
  14373. *)
  14374. eval ac_cv_prog_make_${ac_make}_set=no;;
  14375. esac
  14376. rm -f conftest.make
  14377. fi
  14378. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  14379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14380. $as_echo "yes" >&6; }
  14381. SET_MAKE=
  14382. else
  14383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14384. $as_echo "no" >&6; }
  14385. SET_MAKE="MAKE=${MAKE-make}"
  14386. fi
  14387. # Extract the first word of "printf", so it can be a program name with args.
  14388. set dummy printf; ac_word=$2
  14389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14390. $as_echo_n "checking for $ac_word... " >&6; }
  14391. if ${ac_cv_path_PRINTF+:} false; then :
  14392. $as_echo_n "(cached) " >&6
  14393. else
  14394. case $PRINTF in
  14395. [\\/]* | ?:[\\/]*)
  14396. ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
  14397. ;;
  14398. *)
  14399. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14400. for as_dir in $PATH
  14401. do
  14402. IFS=$as_save_IFS
  14403. test -z "$as_dir" && as_dir=.
  14404. for ac_exec_ext in '' $ac_executable_extensions; do
  14405. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14406. ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
  14407. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14408. break 2
  14409. fi
  14410. done
  14411. done
  14412. IFS=$as_save_IFS
  14413. ;;
  14414. esac
  14415. fi
  14416. PRINTF=$ac_cv_path_PRINTF
  14417. if test -n "$PRINTF"; then
  14418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
  14419. $as_echo "$PRINTF" >&6; }
  14420. else
  14421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14422. $as_echo "no" >&6; }
  14423. fi
  14424. # Extract the first word of "echo", so it can be a program name with args.
  14425. set dummy echo; ac_word=$2
  14426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14427. $as_echo_n "checking for $ac_word... " >&6; }
  14428. if ${ac_cv_path_ECHO+:} false; then :
  14429. $as_echo_n "(cached) " >&6
  14430. else
  14431. case $ECHO in
  14432. [\\/]* | ?:[\\/]*)
  14433. ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
  14434. ;;
  14435. *)
  14436. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14437. for as_dir in $PATH
  14438. do
  14439. IFS=$as_save_IFS
  14440. test -z "$as_dir" && as_dir=.
  14441. for ac_exec_ext in '' $ac_executable_extensions; do
  14442. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14443. ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
  14444. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14445. break 2
  14446. fi
  14447. done
  14448. done
  14449. IFS=$as_save_IFS
  14450. ;;
  14451. esac
  14452. fi
  14453. ECHO=$ac_cv_path_ECHO
  14454. if test -n "$ECHO"; then
  14455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
  14456. $as_echo "$ECHO" >&6; }
  14457. else
  14458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14459. $as_echo "no" >&6; }
  14460. fi
  14461. # Extract the first word of "cut", so it can be a program name with args.
  14462. set dummy cut; ac_word=$2
  14463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14464. $as_echo_n "checking for $ac_word... " >&6; }
  14465. if ${ac_cv_path_CUT+:} false; then :
  14466. $as_echo_n "(cached) " >&6
  14467. else
  14468. case $CUT in
  14469. [\\/]* | ?:[\\/]*)
  14470. ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
  14471. ;;
  14472. *)
  14473. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14474. for as_dir in $PATH
  14475. do
  14476. IFS=$as_save_IFS
  14477. test -z "$as_dir" && as_dir=.
  14478. for ac_exec_ext in '' $ac_executable_extensions; do
  14479. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14480. ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
  14481. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14482. break 2
  14483. fi
  14484. done
  14485. done
  14486. IFS=$as_save_IFS
  14487. ;;
  14488. esac
  14489. fi
  14490. CUT=$ac_cv_path_CUT
  14491. if test -n "$CUT"; then
  14492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
  14493. $as_echo "$CUT" >&6; }
  14494. else
  14495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14496. $as_echo "no" >&6; }
  14497. fi
  14498. # Extract the first word of "autogen", so it can be a program name with args.
  14499. set dummy autogen; ac_word=$2
  14500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14501. $as_echo_n "checking for $ac_word... " >&6; }
  14502. if ${ac_cv_path_AUTOGEN+:} false; then :
  14503. $as_echo_n "(cached) " >&6
  14504. else
  14505. case $AUTOGEN in
  14506. [\\/]* | ?:[\\/]*)
  14507. ac_cv_path_AUTOGEN="$AUTOGEN" # Let the user override the test with a path.
  14508. ;;
  14509. *)
  14510. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14511. for as_dir in $PATH
  14512. do
  14513. IFS=$as_save_IFS
  14514. test -z "$as_dir" && as_dir=.
  14515. for ac_exec_ext in '' $ac_executable_extensions; do
  14516. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14517. ac_cv_path_AUTOGEN="$as_dir/$ac_word$ac_exec_ext"
  14518. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14519. break 2
  14520. fi
  14521. done
  14522. done
  14523. IFS=$as_save_IFS
  14524. ;;
  14525. esac
  14526. fi
  14527. AUTOGEN=$ac_cv_path_AUTOGEN
  14528. if test -n "$AUTOGEN"; then
  14529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOGEN" >&5
  14530. $as_echo "$AUTOGEN" >&6; }
  14531. else
  14532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14533. $as_echo "no" >&6; }
  14534. fi
  14535. # Extract the first word of "groff", so it can be a program name with args.
  14536. set dummy groff; ac_word=$2
  14537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14538. $as_echo_n "checking for $ac_word... " >&6; }
  14539. if ${ac_cv_path_GROFF+:} false; then :
  14540. $as_echo_n "(cached) " >&6
  14541. else
  14542. case $GROFF in
  14543. [\\/]* | ?:[\\/]*)
  14544. ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
  14545. ;;
  14546. *)
  14547. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14548. for as_dir in $PATH
  14549. do
  14550. IFS=$as_save_IFS
  14551. test -z "$as_dir" && as_dir=.
  14552. for ac_exec_ext in '' $ac_executable_extensions; do
  14553. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14554. ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
  14555. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14556. break 2
  14557. fi
  14558. done
  14559. done
  14560. IFS=$as_save_IFS
  14561. ;;
  14562. esac
  14563. fi
  14564. GROFF=$ac_cv_path_GROFF
  14565. if test -n "$GROFF"; then
  14566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5
  14567. $as_echo "$GROFF" >&6; }
  14568. else
  14569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14570. $as_echo "no" >&6; }
  14571. fi
  14572. # Extract the first word of "depmod", so it can be a program name with args.
  14573. set dummy depmod; ac_word=$2
  14574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14575. $as_echo_n "checking for $ac_word... " >&6; }
  14576. if ${ac_cv_path_depmod+:} false; then :
  14577. $as_echo_n "(cached) " >&6
  14578. else
  14579. case $depmod in
  14580. [\\/]* | ?:[\\/]*)
  14581. ac_cv_path_depmod="$depmod" # Let the user override the test with a path.
  14582. ;;
  14583. *)
  14584. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14585. as_dummy="$PATH:/sbin"
  14586. for as_dir in $as_dummy
  14587. do
  14588. IFS=$as_save_IFS
  14589. test -z "$as_dir" && as_dir=.
  14590. for ac_exec_ext in '' $ac_executable_extensions; do
  14591. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14592. ac_cv_path_depmod="$as_dir/$ac_word$ac_exec_ext"
  14593. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14594. break 2
  14595. fi
  14596. done
  14597. done
  14598. IFS=$as_save_IFS
  14599. test -z "$ac_cv_path_depmod" && ac_cv_path_depmod="/sbin/depmod"
  14600. ;;
  14601. esac
  14602. fi
  14603. depmod=$ac_cv_path_depmod
  14604. if test -n "$depmod"; then
  14605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $depmod" >&5
  14606. $as_echo "$depmod" >&6; }
  14607. else
  14608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14609. $as_echo "no" >&6; }
  14610. fi
  14611. # Extract the first word of "insmod", so it can be a program name with args.
  14612. set dummy insmod; ac_word=$2
  14613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14614. $as_echo_n "checking for $ac_word... " >&6; }
  14615. if ${ac_cv_path_insmod+:} false; then :
  14616. $as_echo_n "(cached) " >&6
  14617. else
  14618. case $insmod in
  14619. [\\/]* | ?:[\\/]*)
  14620. ac_cv_path_insmod="$insmod" # Let the user override the test with a path.
  14621. ;;
  14622. *)
  14623. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14624. as_dummy="$PATH:/sbin"
  14625. for as_dir in $as_dummy
  14626. do
  14627. IFS=$as_save_IFS
  14628. test -z "$as_dir" && as_dir=.
  14629. for ac_exec_ext in '' $ac_executable_extensions; do
  14630. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14631. ac_cv_path_insmod="$as_dir/$ac_word$ac_exec_ext"
  14632. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14633. break 2
  14634. fi
  14635. done
  14636. done
  14637. IFS=$as_save_IFS
  14638. test -z "$ac_cv_path_insmod" && ac_cv_path_insmod="/sbin/insmod"
  14639. ;;
  14640. esac
  14641. fi
  14642. insmod=$ac_cv_path_insmod
  14643. if test -n "$insmod"; then
  14644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $insmod" >&5
  14645. $as_echo "$insmod" >&6; }
  14646. else
  14647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14648. $as_echo "no" >&6; }
  14649. fi
  14650. # Extract the first word of "rmmod", so it can be a program name with args.
  14651. set dummy rmmod; ac_word=$2
  14652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14653. $as_echo_n "checking for $ac_word... " >&6; }
  14654. if ${ac_cv_path_rmmod+:} false; then :
  14655. $as_echo_n "(cached) " >&6
  14656. else
  14657. case $rmmod in
  14658. [\\/]* | ?:[\\/]*)
  14659. ac_cv_path_rmmod="$rmmod" # Let the user override the test with a path.
  14660. ;;
  14661. *)
  14662. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14663. as_dummy="$PATH:/sbin"
  14664. for as_dir in $as_dummy
  14665. do
  14666. IFS=$as_save_IFS
  14667. test -z "$as_dir" && as_dir=.
  14668. for ac_exec_ext in '' $ac_executable_extensions; do
  14669. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14670. ac_cv_path_rmmod="$as_dir/$ac_word$ac_exec_ext"
  14671. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14672. break 2
  14673. fi
  14674. done
  14675. done
  14676. IFS=$as_save_IFS
  14677. test -z "$ac_cv_path_rmmod" && ac_cv_path_rmmod="/sbin/rmmod"
  14678. ;;
  14679. esac
  14680. fi
  14681. rmmod=$ac_cv_path_rmmod
  14682. if test -n "$rmmod"; then
  14683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rmmod" >&5
  14684. $as_echo "$rmmod" >&6; }
  14685. else
  14686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14687. $as_echo "no" >&6; }
  14688. fi
  14689. AUTOGEN_VERSION="unknown - man pages will not be built"
  14690. if test -n "${AUTOGEN}" ; then
  14691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for autogen version >= 5.18.x" >&5
  14692. $as_echo_n "checking for autogen version >= 5.18.x... " >&6; }
  14693. ${AUTOGEN} -v >autogen.version
  14694. AUTOGEN_VERSION=$(cat autogen.version | ${SED} 's|.* \([0-9\.]\{5,\}\).*|\1|')
  14695. AUTOGEN_MAJOR=$(echo ${AUTOGEN_VERSION} | ${CUT} -d '.' -f 1)
  14696. AUTOGEN_MINOR=$(echo ${AUTOGEN_VERSION} | ${CUT} -d '.' -f 2)
  14697. if ( test ${AUTOGEN_MAJOR} -eq 5 && test ${AUTOGEN_MINOR} -lt 18 ) || test ${AUTOGEN_MAJOR} -lt 5 ; then
  14698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14699. $as_echo "no" >&6; }
  14700. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${AUTOGEN} is too old (${AUTOGEN_VERSION}) for building from source code. Please upgrade to 5.18.4)" >&5
  14701. $as_echo "$as_me: WARNING: ${AUTOGEN} is too old (${AUTOGEN_VERSION}) for building from source code. Please upgrade to 5.18.4)" >&2;}
  14702. else
  14703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14704. $as_echo "yes" >&6; }
  14705. fi
  14706. rm -f autogen.version
  14707. if test ! -f src/tcpreplay_opts.c && test "x$enable_local_libopts" = "xyes" ; then
  14708. if test $MAINTAINER_AUTOGEN_VERSION != $AUTOGEN_VERSION ; then
  14709. as_fn_error $? "Your version of autogen ($AUTOGEN_VERSION) != libopts tear off ($MAINTAINER_AUTOGEN_VERSION) Either install the correct version or specify --disable-local-libopts" "$LINENO" 5
  14710. fi
  14711. fi
  14712. else
  14713. if test ! -f src/tcpreplay_opts.c ; then
  14714. as_fn_error $? "Please install GNU autogen $MAINTAINER_AUTOGEN_VERSION if you are building from GitHub. To avoid this message download source from http://tcpreplay.appneta.com/wiki/installation.html" "$LINENO" 5
  14715. fi
  14716. fi
  14717. $as_echo "#define AUTOGEN_VERSION \${AUTOGEN_VERSION}" >>confdefs.h
  14718. if test "x$enable_local_libopts" = "xyes" ; then
  14719. { $as_echo "$as_me:${as_lineno-$LINENO}: Using included libopts tearoff" >&5
  14720. $as_echo "$as_me: Using included libopts tearoff" >&6;}
  14721. else
  14722. { $as_echo "$as_me:${as_lineno-$LINENO}: Using system libopts" >&5
  14723. $as_echo "$as_me: Using system libopts" >&6;}
  14724. fi
  14725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  14726. $as_echo_n "checking for ANSI C header files... " >&6; }
  14727. if ${ac_cv_header_stdc+:} false; then :
  14728. $as_echo_n "(cached) " >&6
  14729. else
  14730. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14731. /* end confdefs.h. */
  14732. #include <stdlib.h>
  14733. #include <stdarg.h>
  14734. #include <string.h>
  14735. #include <float.h>
  14736. int
  14737. main ()
  14738. {
  14739. ;
  14740. return 0;
  14741. }
  14742. _ACEOF
  14743. if ac_fn_c_try_compile "$LINENO"; then :
  14744. ac_cv_header_stdc=yes
  14745. else
  14746. ac_cv_header_stdc=no
  14747. fi
  14748. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14749. if test $ac_cv_header_stdc = yes; then
  14750. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  14751. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14752. /* end confdefs.h. */
  14753. #include <string.h>
  14754. _ACEOF
  14755. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14756. $EGREP "memchr" >/dev/null 2>&1; then :
  14757. else
  14758. ac_cv_header_stdc=no
  14759. fi
  14760. rm -f conftest*
  14761. fi
  14762. if test $ac_cv_header_stdc = yes; then
  14763. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  14764. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14765. /* end confdefs.h. */
  14766. #include <stdlib.h>
  14767. _ACEOF
  14768. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14769. $EGREP "free" >/dev/null 2>&1; then :
  14770. else
  14771. ac_cv_header_stdc=no
  14772. fi
  14773. rm -f conftest*
  14774. fi
  14775. if test $ac_cv_header_stdc = yes; then
  14776. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  14777. if test "$cross_compiling" = yes; then :
  14778. :
  14779. else
  14780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14781. /* end confdefs.h. */
  14782. #include <ctype.h>
  14783. #include <stdlib.h>
  14784. #if ((' ' & 0x0FF) == 0x020)
  14785. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  14786. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  14787. #else
  14788. # define ISLOWER(c) \
  14789. (('a' <= (c) && (c) <= 'i') \
  14790. || ('j' <= (c) && (c) <= 'r') \
  14791. || ('s' <= (c) && (c) <= 'z'))
  14792. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  14793. #endif
  14794. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  14795. int
  14796. main ()
  14797. {
  14798. int i;
  14799. for (i = 0; i < 256; i++)
  14800. if (XOR (islower (i), ISLOWER (i))
  14801. || toupper (i) != TOUPPER (i))
  14802. return 2;
  14803. return 0;
  14804. }
  14805. _ACEOF
  14806. if ac_fn_c_try_run "$LINENO"; then :
  14807. else
  14808. ac_cv_header_stdc=no
  14809. fi
  14810. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14811. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14812. fi
  14813. fi
  14814. fi
  14815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  14816. $as_echo "$ac_cv_header_stdc" >&6; }
  14817. if test $ac_cv_header_stdc = yes; then
  14818. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  14819. fi
  14820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
  14821. $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
  14822. if ${ac_cv_header_sys_types_h_makedev+:} false; then :
  14823. $as_echo_n "(cached) " >&6
  14824. else
  14825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14826. /* end confdefs.h. */
  14827. #include <sys/types.h>
  14828. int
  14829. main ()
  14830. {
  14831. return makedev(0, 0);
  14832. ;
  14833. return 0;
  14834. }
  14835. _ACEOF
  14836. if ac_fn_c_try_link "$LINENO"; then :
  14837. ac_cv_header_sys_types_h_makedev=yes
  14838. else
  14839. ac_cv_header_sys_types_h_makedev=no
  14840. fi
  14841. rm -f core conftest.err conftest.$ac_objext \
  14842. conftest$ac_exeext conftest.$ac_ext
  14843. fi
  14844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
  14845. $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
  14846. if test $ac_cv_header_sys_types_h_makedev = no; then
  14847. ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
  14848. if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
  14849. $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
  14850. fi
  14851. if test $ac_cv_header_sys_mkdev_h = no; then
  14852. ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
  14853. if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
  14854. $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
  14855. fi
  14856. fi
  14857. fi
  14858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  14859. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  14860. if ${ac_cv_header_stdbool_h+:} false; then :
  14861. $as_echo_n "(cached) " >&6
  14862. else
  14863. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14864. /* end confdefs.h. */
  14865. #include <stdbool.h>
  14866. #ifndef bool
  14867. "error: bool is not defined"
  14868. #endif
  14869. #ifndef false
  14870. "error: false is not defined"
  14871. #endif
  14872. #if false
  14873. "error: false is not 0"
  14874. #endif
  14875. #ifndef true
  14876. "error: true is not defined"
  14877. #endif
  14878. #if true != 1
  14879. "error: true is not 1"
  14880. #endif
  14881. #ifndef __bool_true_false_are_defined
  14882. "error: __bool_true_false_are_defined is not defined"
  14883. #endif
  14884. struct s { _Bool s: 1; _Bool t; } s;
  14885. char a[true == 1 ? 1 : -1];
  14886. char b[false == 0 ? 1 : -1];
  14887. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  14888. char d[(bool) 0.5 == true ? 1 : -1];
  14889. /* See body of main program for 'e'. */
  14890. char f[(_Bool) 0.0 == false ? 1 : -1];
  14891. char g[true];
  14892. char h[sizeof (_Bool)];
  14893. char i[sizeof s.t];
  14894. enum { j = false, k = true, l = false * true, m = true * 256 };
  14895. /* The following fails for
  14896. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  14897. _Bool n[m];
  14898. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  14899. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  14900. /* Catch a bug in an HP-UX C compiler. See
  14901. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  14902. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  14903. */
  14904. _Bool q = true;
  14905. _Bool *pq = &q;
  14906. int
  14907. main ()
  14908. {
  14909. bool e = &s;
  14910. *pq |= q;
  14911. *pq |= ! q;
  14912. /* Refer to every declared value, to avoid compiler optimizations. */
  14913. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  14914. + !m + !n + !o + !p + !q + !pq);
  14915. ;
  14916. return 0;
  14917. }
  14918. _ACEOF
  14919. if ac_fn_c_try_compile "$LINENO"; then :
  14920. ac_cv_header_stdbool_h=yes
  14921. else
  14922. ac_cv_header_stdbool_h=no
  14923. fi
  14924. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14925. fi
  14926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  14927. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  14928. ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  14929. if test "x$ac_cv_type__Bool" = xyes; then :
  14930. cat >>confdefs.h <<_ACEOF
  14931. #define HAVE__BOOL 1
  14932. _ACEOF
  14933. fi
  14934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  14935. $as_echo_n "checking for inline... " >&6; }
  14936. if ${ac_cv_c_inline+:} false; then :
  14937. $as_echo_n "(cached) " >&6
  14938. else
  14939. ac_cv_c_inline=no
  14940. for ac_kw in inline __inline__ __inline; do
  14941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14942. /* end confdefs.h. */
  14943. #ifndef __cplusplus
  14944. typedef int foo_t;
  14945. static $ac_kw foo_t static_foo () {return 0; }
  14946. $ac_kw foo_t foo () {return 0; }
  14947. #endif
  14948. _ACEOF
  14949. if ac_fn_c_try_compile "$LINENO"; then :
  14950. ac_cv_c_inline=$ac_kw
  14951. fi
  14952. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14953. test "$ac_cv_c_inline" != no && break
  14954. done
  14955. fi
  14956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  14957. $as_echo "$ac_cv_c_inline" >&6; }
  14958. case $ac_cv_c_inline in
  14959. inline | yes) ;;
  14960. *)
  14961. case $ac_cv_c_inline in
  14962. no) ac_val=;;
  14963. *) ac_val=$ac_cv_c_inline;;
  14964. esac
  14965. cat >>confdefs.h <<_ACEOF
  14966. #ifndef __cplusplus
  14967. #define inline $ac_val
  14968. #endif
  14969. _ACEOF
  14970. ;;
  14971. esac
  14972. ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
  14973. case $ac_cv_c_int16_t in #(
  14974. no|yes) ;; #(
  14975. *)
  14976. cat >>confdefs.h <<_ACEOF
  14977. #define int16_t $ac_cv_c_int16_t
  14978. _ACEOF
  14979. ;;
  14980. esac
  14981. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  14982. case $ac_cv_c_int32_t in #(
  14983. no|yes) ;; #(
  14984. *)
  14985. cat >>confdefs.h <<_ACEOF
  14986. #define int32_t $ac_cv_c_int32_t
  14987. _ACEOF
  14988. ;;
  14989. esac
  14990. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  14991. case $ac_cv_c_int64_t in #(
  14992. no|yes) ;; #(
  14993. *)
  14994. cat >>confdefs.h <<_ACEOF
  14995. #define int64_t $ac_cv_c_int64_t
  14996. _ACEOF
  14997. ;;
  14998. esac
  14999. ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
  15000. case $ac_cv_c_int8_t in #(
  15001. no|yes) ;; #(
  15002. *)
  15003. cat >>confdefs.h <<_ACEOF
  15004. #define int8_t $ac_cv_c_int8_t
  15005. _ACEOF
  15006. ;;
  15007. esac
  15008. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  15009. if test "x$ac_cv_type_off_t" = xyes; then :
  15010. else
  15011. cat >>confdefs.h <<_ACEOF
  15012. #define off_t long int
  15013. _ACEOF
  15014. fi
  15015. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  15016. if test "x$ac_cv_type_pid_t" = xyes; then :
  15017. else
  15018. cat >>confdefs.h <<_ACEOF
  15019. #define pid_t int
  15020. _ACEOF
  15021. fi
  15022. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  15023. if test "x$ac_cv_type_size_t" = xyes; then :
  15024. else
  15025. cat >>confdefs.h <<_ACEOF
  15026. #define size_t unsigned int
  15027. _ACEOF
  15028. fi
  15029. ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
  15030. if test "x$ac_cv_type_ssize_t" = xyes; then :
  15031. else
  15032. cat >>confdefs.h <<_ACEOF
  15033. #define ssize_t int
  15034. _ACEOF
  15035. fi
  15036. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  15037. case $ac_cv_c_uint16_t in #(
  15038. no|yes) ;; #(
  15039. *)
  15040. cat >>confdefs.h <<_ACEOF
  15041. #define uint16_t $ac_cv_c_uint16_t
  15042. _ACEOF
  15043. ;;
  15044. esac
  15045. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  15046. case $ac_cv_c_uint32_t in #(
  15047. no|yes) ;; #(
  15048. *)
  15049. $as_echo "#define _UINT32_T 1" >>confdefs.h
  15050. cat >>confdefs.h <<_ACEOF
  15051. #define uint32_t $ac_cv_c_uint32_t
  15052. _ACEOF
  15053. ;;
  15054. esac
  15055. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  15056. case $ac_cv_c_uint64_t in #(
  15057. no|yes) ;; #(
  15058. *)
  15059. $as_echo "#define _UINT64_T 1" >>confdefs.h
  15060. cat >>confdefs.h <<_ACEOF
  15061. #define uint64_t $ac_cv_c_uint64_t
  15062. _ACEOF
  15063. ;;
  15064. esac
  15065. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  15066. case $ac_cv_c_uint8_t in #(
  15067. no|yes) ;; #(
  15068. *)
  15069. $as_echo "#define _UINT8_T 1" >>confdefs.h
  15070. cat >>confdefs.h <<_ACEOF
  15071. #define uint8_t $ac_cv_c_uint8_t
  15072. _ACEOF
  15073. ;;
  15074. esac
  15075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  15076. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  15077. if ${ac_cv_header_time+:} false; then :
  15078. $as_echo_n "(cached) " >&6
  15079. else
  15080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15081. /* end confdefs.h. */
  15082. #include <sys/types.h>
  15083. #include <sys/time.h>
  15084. #include <time.h>
  15085. int
  15086. main ()
  15087. {
  15088. if ((struct tm *) 0)
  15089. return 0;
  15090. ;
  15091. return 0;
  15092. }
  15093. _ACEOF
  15094. if ac_fn_c_try_compile "$LINENO"; then :
  15095. ac_cv_header_time=yes
  15096. else
  15097. ac_cv_header_time=no
  15098. fi
  15099. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15100. fi
  15101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  15102. $as_echo "$ac_cv_header_time" >&6; }
  15103. if test $ac_cv_header_time = yes; then
  15104. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  15105. fi
  15106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  15107. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  15108. if ${ac_cv_c_const+:} false; then :
  15109. $as_echo_n "(cached) " >&6
  15110. else
  15111. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15112. /* end confdefs.h. */
  15113. int
  15114. main ()
  15115. {
  15116. #ifndef __cplusplus
  15117. /* Ultrix mips cc rejects this sort of thing. */
  15118. typedef int charset[2];
  15119. const charset cs = { 0, 0 };
  15120. /* SunOS 4.1.1 cc rejects this. */
  15121. char const *const *pcpcc;
  15122. char **ppc;
  15123. /* NEC SVR4.0.2 mips cc rejects this. */
  15124. struct point {int x, y;};
  15125. static struct point const zero = {0,0};
  15126. /* AIX XL C 1.02.0.0 rejects this.
  15127. It does not let you subtract one const X* pointer from another in
  15128. an arm of an if-expression whose if-part is not a constant
  15129. expression */
  15130. const char *g = "string";
  15131. pcpcc = &g + (g ? g-g : 0);
  15132. /* HPUX 7.0 cc rejects these. */
  15133. ++pcpcc;
  15134. ppc = (char**) pcpcc;
  15135. pcpcc = (char const *const *) ppc;
  15136. { /* SCO 3.2v4 cc rejects this sort of thing. */
  15137. char tx;
  15138. char *t = &tx;
  15139. char const *s = 0 ? (char *) 0 : (char const *) 0;
  15140. *t++ = 0;
  15141. if (s) return 0;
  15142. }
  15143. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  15144. int x[] = {25, 17};
  15145. const int *foo = &x[0];
  15146. ++foo;
  15147. }
  15148. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  15149. typedef const int *iptr;
  15150. iptr p = 0;
  15151. ++p;
  15152. }
  15153. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  15154. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  15155. struct s { int j; const int *ap[3]; } bx;
  15156. struct s *b = &bx; b->j = 5;
  15157. }
  15158. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  15159. const int foo = 10;
  15160. if (!foo) return 0;
  15161. }
  15162. return !cs[0] && !zero.x;
  15163. #endif
  15164. ;
  15165. return 0;
  15166. }
  15167. _ACEOF
  15168. if ac_fn_c_try_compile "$LINENO"; then :
  15169. ac_cv_c_const=yes
  15170. else
  15171. ac_cv_c_const=no
  15172. fi
  15173. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15174. fi
  15175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  15176. $as_echo "$ac_cv_c_const" >&6; }
  15177. if test $ac_cv_c_const = no; then
  15178. $as_echo "#define const /**/" >>confdefs.h
  15179. fi
  15180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  15181. $as_echo_n "checking for inline... " >&6; }
  15182. if ${ac_cv_c_inline+:} false; then :
  15183. $as_echo_n "(cached) " >&6
  15184. else
  15185. ac_cv_c_inline=no
  15186. for ac_kw in inline __inline__ __inline; do
  15187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15188. /* end confdefs.h. */
  15189. #ifndef __cplusplus
  15190. typedef int foo_t;
  15191. static $ac_kw foo_t static_foo () {return 0; }
  15192. $ac_kw foo_t foo () {return 0; }
  15193. #endif
  15194. _ACEOF
  15195. if ac_fn_c_try_compile "$LINENO"; then :
  15196. ac_cv_c_inline=$ac_kw
  15197. fi
  15198. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15199. test "$ac_cv_c_inline" != no && break
  15200. done
  15201. fi
  15202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  15203. $as_echo "$ac_cv_c_inline" >&6; }
  15204. case $ac_cv_c_inline in
  15205. inline | yes) ;;
  15206. *)
  15207. case $ac_cv_c_inline in
  15208. no) ac_val=;;
  15209. *) ac_val=$ac_cv_c_inline;;
  15210. esac
  15211. cat >>confdefs.h <<_ACEOF
  15212. #ifndef __cplusplus
  15213. #define inline $ac_val
  15214. #endif
  15215. _ACEOF
  15216. ;;
  15217. esac
  15218. # Check whether --enable-largefile was given.
  15219. if test "${enable_largefile+set}" = set; then :
  15220. enableval=$enable_largefile;
  15221. fi
  15222. if test "$enable_largefile" != no; then
  15223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  15224. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  15225. if ${ac_cv_sys_largefile_CC+:} false; then :
  15226. $as_echo_n "(cached) " >&6
  15227. else
  15228. ac_cv_sys_largefile_CC=no
  15229. if test "$GCC" != yes; then
  15230. ac_save_CC=$CC
  15231. while :; do
  15232. # IRIX 6.2 and later do not support large files by default,
  15233. # so use the C compiler's -n32 option if that helps.
  15234. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15235. /* end confdefs.h. */
  15236. #include <sys/types.h>
  15237. /* Check that off_t can represent 2**63 - 1 correctly.
  15238. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15239. since some C++ compilers masquerading as C compilers
  15240. incorrectly reject 9223372036854775807. */
  15241. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  15242. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15243. && LARGE_OFF_T % 2147483647 == 1)
  15244. ? 1 : -1];
  15245. int
  15246. main ()
  15247. {
  15248. ;
  15249. return 0;
  15250. }
  15251. _ACEOF
  15252. if ac_fn_c_try_compile "$LINENO"; then :
  15253. break
  15254. fi
  15255. rm -f core conftest.err conftest.$ac_objext
  15256. CC="$CC -n32"
  15257. if ac_fn_c_try_compile "$LINENO"; then :
  15258. ac_cv_sys_largefile_CC=' -n32'; break
  15259. fi
  15260. rm -f core conftest.err conftest.$ac_objext
  15261. break
  15262. done
  15263. CC=$ac_save_CC
  15264. rm -f conftest.$ac_ext
  15265. fi
  15266. fi
  15267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  15268. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  15269. if test "$ac_cv_sys_largefile_CC" != no; then
  15270. CC=$CC$ac_cv_sys_largefile_CC
  15271. fi
  15272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  15273. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  15274. if ${ac_cv_sys_file_offset_bits+:} false; then :
  15275. $as_echo_n "(cached) " >&6
  15276. else
  15277. while :; do
  15278. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15279. /* end confdefs.h. */
  15280. #include <sys/types.h>
  15281. /* Check that off_t can represent 2**63 - 1 correctly.
  15282. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15283. since some C++ compilers masquerading as C compilers
  15284. incorrectly reject 9223372036854775807. */
  15285. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  15286. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15287. && LARGE_OFF_T % 2147483647 == 1)
  15288. ? 1 : -1];
  15289. int
  15290. main ()
  15291. {
  15292. ;
  15293. return 0;
  15294. }
  15295. _ACEOF
  15296. if ac_fn_c_try_compile "$LINENO"; then :
  15297. ac_cv_sys_file_offset_bits=no; break
  15298. fi
  15299. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15300. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15301. /* end confdefs.h. */
  15302. #define _FILE_OFFSET_BITS 64
  15303. #include <sys/types.h>
  15304. /* Check that off_t can represent 2**63 - 1 correctly.
  15305. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15306. since some C++ compilers masquerading as C compilers
  15307. incorrectly reject 9223372036854775807. */
  15308. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  15309. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15310. && LARGE_OFF_T % 2147483647 == 1)
  15311. ? 1 : -1];
  15312. int
  15313. main ()
  15314. {
  15315. ;
  15316. return 0;
  15317. }
  15318. _ACEOF
  15319. if ac_fn_c_try_compile "$LINENO"; then :
  15320. ac_cv_sys_file_offset_bits=64; break
  15321. fi
  15322. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15323. ac_cv_sys_file_offset_bits=unknown
  15324. break
  15325. done
  15326. fi
  15327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  15328. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  15329. case $ac_cv_sys_file_offset_bits in #(
  15330. no | unknown) ;;
  15331. *)
  15332. cat >>confdefs.h <<_ACEOF
  15333. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  15334. _ACEOF
  15335. ;;
  15336. esac
  15337. rm -rf conftest*
  15338. if test $ac_cv_sys_file_offset_bits = unknown; then
  15339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  15340. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  15341. if ${ac_cv_sys_large_files+:} false; then :
  15342. $as_echo_n "(cached) " >&6
  15343. else
  15344. while :; do
  15345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15346. /* end confdefs.h. */
  15347. #include <sys/types.h>
  15348. /* Check that off_t can represent 2**63 - 1 correctly.
  15349. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15350. since some C++ compilers masquerading as C compilers
  15351. incorrectly reject 9223372036854775807. */
  15352. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  15353. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15354. && LARGE_OFF_T % 2147483647 == 1)
  15355. ? 1 : -1];
  15356. int
  15357. main ()
  15358. {
  15359. ;
  15360. return 0;
  15361. }
  15362. _ACEOF
  15363. if ac_fn_c_try_compile "$LINENO"; then :
  15364. ac_cv_sys_large_files=no; break
  15365. fi
  15366. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15368. /* end confdefs.h. */
  15369. #define _LARGE_FILES 1
  15370. #include <sys/types.h>
  15371. /* Check that off_t can represent 2**63 - 1 correctly.
  15372. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15373. since some C++ compilers masquerading as C compilers
  15374. incorrectly reject 9223372036854775807. */
  15375. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  15376. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15377. && LARGE_OFF_T % 2147483647 == 1)
  15378. ? 1 : -1];
  15379. int
  15380. main ()
  15381. {
  15382. ;
  15383. return 0;
  15384. }
  15385. _ACEOF
  15386. if ac_fn_c_try_compile "$LINENO"; then :
  15387. ac_cv_sys_large_files=1; break
  15388. fi
  15389. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15390. ac_cv_sys_large_files=unknown
  15391. break
  15392. done
  15393. fi
  15394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  15395. $as_echo "$ac_cv_sys_large_files" >&6; }
  15396. case $ac_cv_sys_large_files in #(
  15397. no | unknown) ;;
  15398. *)
  15399. cat >>confdefs.h <<_ACEOF
  15400. #define _LARGE_FILES $ac_cv_sys_large_files
  15401. _ACEOF
  15402. ;;
  15403. esac
  15404. rm -rf conftest*
  15405. fi
  15406. fi
  15407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  15408. $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
  15409. if ${ac_cv_sys_largefile_source+:} false; then :
  15410. $as_echo_n "(cached) " >&6
  15411. else
  15412. while :; do
  15413. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15414. /* end confdefs.h. */
  15415. #include <sys/types.h> /* for off_t */
  15416. #include <stdio.h>
  15417. int
  15418. main ()
  15419. {
  15420. int (*fp) (FILE *, off_t, int) = fseeko;
  15421. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  15422. ;
  15423. return 0;
  15424. }
  15425. _ACEOF
  15426. if ac_fn_c_try_link "$LINENO"; then :
  15427. ac_cv_sys_largefile_source=no; break
  15428. fi
  15429. rm -f core conftest.err conftest.$ac_objext \
  15430. conftest$ac_exeext conftest.$ac_ext
  15431. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15432. /* end confdefs.h. */
  15433. #define _LARGEFILE_SOURCE 1
  15434. #include <sys/types.h> /* for off_t */
  15435. #include <stdio.h>
  15436. int
  15437. main ()
  15438. {
  15439. int (*fp) (FILE *, off_t, int) = fseeko;
  15440. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  15441. ;
  15442. return 0;
  15443. }
  15444. _ACEOF
  15445. if ac_fn_c_try_link "$LINENO"; then :
  15446. ac_cv_sys_largefile_source=1; break
  15447. fi
  15448. rm -f core conftest.err conftest.$ac_objext \
  15449. conftest$ac_exeext conftest.$ac_ext
  15450. ac_cv_sys_largefile_source=unknown
  15451. break
  15452. done
  15453. fi
  15454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
  15455. $as_echo "$ac_cv_sys_largefile_source" >&6; }
  15456. case $ac_cv_sys_largefile_source in #(
  15457. no | unknown) ;;
  15458. *)
  15459. cat >>confdefs.h <<_ACEOF
  15460. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  15461. _ACEOF
  15462. ;;
  15463. esac
  15464. rm -rf conftest*
  15465. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  15466. # in glibc 2.1.3, but that breaks too many other things.
  15467. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  15468. if test $ac_cv_sys_largefile_source != unknown; then
  15469. $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
  15470. fi
  15471. ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default"
  15472. if test "x$ac_cv_type_u_int8_t" = xyes; then :
  15473. else
  15474. cat >>confdefs.h <<_ACEOF
  15475. #define u_int8_t uint8_t
  15476. _ACEOF
  15477. fi
  15478. ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
  15479. if test "x$ac_cv_type_u_int16_t" = xyes; then :
  15480. else
  15481. cat >>confdefs.h <<_ACEOF
  15482. #define u_int16_t uint16_t
  15483. _ACEOF
  15484. fi
  15485. ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
  15486. if test "x$ac_cv_type_u_int32_t" = xyes; then :
  15487. else
  15488. cat >>confdefs.h <<_ACEOF
  15489. #define u_int32_t uint32_t
  15490. _ACEOF
  15491. fi
  15492. ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default"
  15493. if test "x$ac_cv_type_u_int64_t" = xyes; then :
  15494. else
  15495. cat >>confdefs.h <<_ACEOF
  15496. #define u_int64_t uint64_t
  15497. _ACEOF
  15498. fi
  15499. case $host in
  15500. *-apple-darwin*)
  15501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC -Wno-macro-redefined" >&5
  15502. $as_echo_n "checking for $CC -Wno-macro-redefined... " >&6; }
  15503. OLD_CFLAGS=$CFLAGS
  15504. CFLAGS="$CFLAGS -Wno-macro-redefined"
  15505. wno_macro_redefined=""
  15506. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15507. /* end confdefs.h. */
  15508. #include <stdlib.h>
  15509. int main(int argc, char *argv[]) { return(0); }
  15510. _ACEOF
  15511. if ac_fn_c_try_compile "$LINENO"; then :
  15512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15513. $as_echo "yes" >&6; }
  15514. wno_macro_redefined="-Wno-macro-redefined"
  15515. else
  15516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15517. $as_echo "no" >&6; }
  15518. fi
  15519. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15520. CFLAGS="$OLD_CFLAGS $wno_macro_redefined"
  15521. ;;
  15522. esac
  15523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC -Wextra support" >&5
  15524. $as_echo_n "checking for $CC -Wextra support... " >&6; }
  15525. OLD_CFLAGS=$CFLAGS
  15526. CFLAGS="$CFLAGS -Wextra -Werror"
  15527. wextra=""
  15528. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15529. /* end confdefs.h. */
  15530. #include <stdlib.h>
  15531. int main(int argc, char *argv[]) { return(0); }
  15532. _ACEOF
  15533. if ac_fn_c_try_compile "$LINENO"; then :
  15534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15535. $as_echo "yes" >&6; }
  15536. wextra="-Wextra"
  15537. else
  15538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15539. $as_echo "no" >&6; }
  15540. fi
  15541. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15542. CFLAGS="$OLD_CFLAGS $wextra"
  15543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC -Wno-variadic-macros support" >&5
  15544. $as_echo_n "checking for $CC -Wno-variadic-macros support... " >&6; }
  15545. OLD_CFLAGS=$CFLAGS
  15546. CFLAGS="$CFLAGS -Wno-variadic-macros -Werror"
  15547. wno_variadic_macros=""
  15548. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15549. /* end confdefs.h. */
  15550. #include <stdlib.h>
  15551. int main(int argc, char *argv[]) { return(0); }
  15552. _ACEOF
  15553. if ac_fn_c_try_compile "$LINENO"; then :
  15554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15555. $as_echo "yes" >&6; }
  15556. wno_variadic_macros="-Wno-variadic-macros"
  15557. else
  15558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15559. $as_echo "no" >&6; }
  15560. fi
  15561. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15562. CFLAGS="$OLD_CFLAGS $wno_variadic_macros"
  15563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC -Wfatal-errors support" >&5
  15564. $as_echo_n "checking for $CC -Wfatal-errors support... " >&6; }
  15565. OLD_CFLAGS=$CFLAGS
  15566. CFLAGS="$CFLAGS -Wfatal-errors -Werror"
  15567. wfatal_errors=""
  15568. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15569. /* end confdefs.h. */
  15570. #include <stdlib.h>
  15571. int main(int argc, char *argv[]) { return(0); }
  15572. _ACEOF
  15573. if ac_fn_c_try_compile "$LINENO"; then :
  15574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15575. $as_echo "yes" >&6; }
  15576. wfatal_errors="-Wfatal-errors"
  15577. else
  15578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15579. $as_echo "no" >&6; }
  15580. fi
  15581. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15582. CFLAGS="$OLD_CFLAGS $wfatal_errors"
  15583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC -Wno-format-contains-nul support" >&5
  15584. $as_echo_n "checking for $CC -Wno-format-contains-nul support... " >&6; }
  15585. OLD_CFLAGS=$CFLAGS
  15586. CFLAGS="$CFLAGS -Wno-format-contains-nul -Werror"
  15587. wno_format_contains_nul=""
  15588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15589. /* end confdefs.h. */
  15590. #include <stdlib.h>
  15591. int main(int argc, char *argv[]) { return(0); }
  15592. _ACEOF
  15593. if ac_fn_c_try_compile "$LINENO"; then :
  15594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15595. $as_echo "yes" >&6; }
  15596. wno_format_contains_nul="-Wno-format-contains-nul"
  15597. else
  15598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15599. $as_echo "no" >&6; }
  15600. fi
  15601. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15602. CFLAGS="$OLD_CFLAGS $wno_format_contains_nul"
  15603. for ac_header in fcntl.h stddef.h sys/socket.h arpa/inet.h sys/time.h signal.h string.h strings.h sys/types.h stdint.h sys/select.h netinet/in.h netinet/in_systm.h poll.h sys/poll.h unistd.h sys/param.h inttypes.h libintl.h sys/file.h sys/ioctl.h sys/systeminfo.h
  15604. do :
  15605. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15606. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  15607. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  15608. cat >>confdefs.h <<_ACEOF
  15609. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15610. _ACEOF
  15611. fi
  15612. done
  15613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  15614. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  15615. if ${ac_cv_header_stdbool_h+:} false; then :
  15616. $as_echo_n "(cached) " >&6
  15617. else
  15618. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15619. /* end confdefs.h. */
  15620. #include <stdbool.h>
  15621. #ifndef bool
  15622. "error: bool is not defined"
  15623. #endif
  15624. #ifndef false
  15625. "error: false is not defined"
  15626. #endif
  15627. #if false
  15628. "error: false is not 0"
  15629. #endif
  15630. #ifndef true
  15631. "error: true is not defined"
  15632. #endif
  15633. #if true != 1
  15634. "error: true is not 1"
  15635. #endif
  15636. #ifndef __bool_true_false_are_defined
  15637. "error: __bool_true_false_are_defined is not defined"
  15638. #endif
  15639. struct s { _Bool s: 1; _Bool t; } s;
  15640. char a[true == 1 ? 1 : -1];
  15641. char b[false == 0 ? 1 : -1];
  15642. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  15643. char d[(bool) 0.5 == true ? 1 : -1];
  15644. /* See body of main program for 'e'. */
  15645. char f[(_Bool) 0.0 == false ? 1 : -1];
  15646. char g[true];
  15647. char h[sizeof (_Bool)];
  15648. char i[sizeof s.t];
  15649. enum { j = false, k = true, l = false * true, m = true * 256 };
  15650. /* The following fails for
  15651. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  15652. _Bool n[m];
  15653. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  15654. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  15655. /* Catch a bug in an HP-UX C compiler. See
  15656. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  15657. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  15658. */
  15659. _Bool q = true;
  15660. _Bool *pq = &q;
  15661. int
  15662. main ()
  15663. {
  15664. bool e = &s;
  15665. *pq |= q;
  15666. *pq |= ! q;
  15667. /* Refer to every declared value, to avoid compiler optimizations. */
  15668. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  15669. + !m + !n + !o + !p + !q + !pq);
  15670. ;
  15671. return 0;
  15672. }
  15673. _ACEOF
  15674. if ac_fn_c_try_compile "$LINENO"; then :
  15675. ac_cv_header_stdbool_h=yes
  15676. else
  15677. ac_cv_header_stdbool_h=no
  15678. fi
  15679. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15680. fi
  15681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  15682. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  15683. ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  15684. if test "x$ac_cv_type__Bool" = xyes; then :
  15685. cat >>confdefs.h <<_ACEOF
  15686. #define HAVE__BOOL 1
  15687. _ACEOF
  15688. fi
  15689. if test $ac_cv_header_stdbool_h = yes; then
  15690. $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
  15691. fi
  15692. for ac_header in sys/sysctl.h net/route.h
  15693. do :
  15694. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15695. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
  15696. #if HAVE_SYS_PARAM_H
  15697. #include <sys/param.h>
  15698. #endif
  15699. #if HAVE_SYS_TYPES_H
  15700. #include <sys/types.h>
  15701. #endif
  15702. #if HAVE_SYS_SOCKET_H
  15703. #include <sys/socket.h>
  15704. #endif
  15705. "
  15706. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  15707. cat >>confdefs.h <<_ACEOF
  15708. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15709. _ACEOF
  15710. fi
  15711. done
  15712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
  15713. $as_echo_n "checking for socket in -lsocket... " >&6; }
  15714. if ${ac_cv_lib_socket_socket+:} false; then :
  15715. $as_echo_n "(cached) " >&6
  15716. else
  15717. ac_check_lib_save_LIBS=$LIBS
  15718. LIBS="-lsocket $LIBS"
  15719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15720. /* end confdefs.h. */
  15721. /* Override any GCC internal prototype to avoid an error.
  15722. Use char because int might match the return type of a GCC
  15723. builtin and then its argument prototype would still apply. */
  15724. #ifdef __cplusplus
  15725. extern "C"
  15726. #endif
  15727. char socket ();
  15728. int
  15729. main ()
  15730. {
  15731. return socket ();
  15732. ;
  15733. return 0;
  15734. }
  15735. _ACEOF
  15736. if ac_fn_c_try_link "$LINENO"; then :
  15737. ac_cv_lib_socket_socket=yes
  15738. else
  15739. ac_cv_lib_socket_socket=no
  15740. fi
  15741. rm -f core conftest.err conftest.$ac_objext \
  15742. conftest$ac_exeext conftest.$ac_ext
  15743. LIBS=$ac_check_lib_save_LIBS
  15744. fi
  15745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
  15746. $as_echo "$ac_cv_lib_socket_socket" >&6; }
  15747. if test "x$ac_cv_lib_socket_socket" = xyes; then :
  15748. cat >>confdefs.h <<_ACEOF
  15749. #define HAVE_LIBSOCKET 1
  15750. _ACEOF
  15751. LIBS="-lsocket $LIBS"
  15752. fi
  15753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  15754. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  15755. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  15756. $as_echo_n "(cached) " >&6
  15757. else
  15758. ac_check_lib_save_LIBS=$LIBS
  15759. LIBS="-lnsl $LIBS"
  15760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15761. /* end confdefs.h. */
  15762. /* Override any GCC internal prototype to avoid an error.
  15763. Use char because int might match the return type of a GCC
  15764. builtin and then its argument prototype would still apply. */
  15765. #ifdef __cplusplus
  15766. extern "C"
  15767. #endif
  15768. char gethostbyname ();
  15769. int
  15770. main ()
  15771. {
  15772. return gethostbyname ();
  15773. ;
  15774. return 0;
  15775. }
  15776. _ACEOF
  15777. if ac_fn_c_try_link "$LINENO"; then :
  15778. ac_cv_lib_nsl_gethostbyname=yes
  15779. else
  15780. ac_cv_lib_nsl_gethostbyname=no
  15781. fi
  15782. rm -f core conftest.err conftest.$ac_objext \
  15783. conftest$ac_exeext conftest.$ac_ext
  15784. LIBS=$ac_check_lib_save_LIBS
  15785. fi
  15786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  15787. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  15788. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  15789. cat >>confdefs.h <<_ACEOF
  15790. #define HAVE_LIBNSL 1
  15791. _ACEOF
  15792. LIBS="-lnsl $LIBS"
  15793. fi
  15794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
  15795. $as_echo_n "checking for nanosleep in -lrt... " >&6; }
  15796. if ${ac_cv_lib_rt_nanosleep+:} false; then :
  15797. $as_echo_n "(cached) " >&6
  15798. else
  15799. ac_check_lib_save_LIBS=$LIBS
  15800. LIBS="-lrt $LIBS"
  15801. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15802. /* end confdefs.h. */
  15803. /* Override any GCC internal prototype to avoid an error.
  15804. Use char because int might match the return type of a GCC
  15805. builtin and then its argument prototype would still apply. */
  15806. #ifdef __cplusplus
  15807. extern "C"
  15808. #endif
  15809. char nanosleep ();
  15810. int
  15811. main ()
  15812. {
  15813. return nanosleep ();
  15814. ;
  15815. return 0;
  15816. }
  15817. _ACEOF
  15818. if ac_fn_c_try_link "$LINENO"; then :
  15819. ac_cv_lib_rt_nanosleep=yes
  15820. else
  15821. ac_cv_lib_rt_nanosleep=no
  15822. fi
  15823. rm -f core conftest.err conftest.$ac_objext \
  15824. conftest$ac_exeext conftest.$ac_ext
  15825. LIBS=$ac_check_lib_save_LIBS
  15826. fi
  15827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
  15828. $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
  15829. if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
  15830. cat >>confdefs.h <<_ACEOF
  15831. #define HAVE_LIBRT 1
  15832. _ACEOF
  15833. LIBS="-lrt $LIBS"
  15834. fi
  15835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolv in -lresolv" >&5
  15836. $as_echo_n "checking for resolv in -lresolv... " >&6; }
  15837. if ${ac_cv_lib_resolv_resolv+:} false; then :
  15838. $as_echo_n "(cached) " >&6
  15839. else
  15840. ac_check_lib_save_LIBS=$LIBS
  15841. LIBS="-lresolv $LIBS"
  15842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15843. /* end confdefs.h. */
  15844. /* Override any GCC internal prototype to avoid an error.
  15845. Use char because int might match the return type of a GCC
  15846. builtin and then its argument prototype would still apply. */
  15847. #ifdef __cplusplus
  15848. extern "C"
  15849. #endif
  15850. char resolv ();
  15851. int
  15852. main ()
  15853. {
  15854. return resolv ();
  15855. ;
  15856. return 0;
  15857. }
  15858. _ACEOF
  15859. if ac_fn_c_try_link "$LINENO"; then :
  15860. ac_cv_lib_resolv_resolv=yes
  15861. else
  15862. ac_cv_lib_resolv_resolv=no
  15863. fi
  15864. rm -f core conftest.err conftest.$ac_objext \
  15865. conftest$ac_exeext conftest.$ac_ext
  15866. LIBS=$ac_check_lib_save_LIBS
  15867. fi
  15868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_resolv" >&5
  15869. $as_echo "$ac_cv_lib_resolv_resolv" >&6; }
  15870. if test "x$ac_cv_lib_resolv_resolv" = xyes; then :
  15871. cat >>confdefs.h <<_ACEOF
  15872. #define HAVE_LIBRESOLV 1
  15873. _ACEOF
  15874. LIBS="-lresolv $LIBS"
  15875. fi
  15876. for ac_header in vfork.h
  15877. do :
  15878. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  15879. if test "x$ac_cv_header_vfork_h" = xyes; then :
  15880. cat >>confdefs.h <<_ACEOF
  15881. #define HAVE_VFORK_H 1
  15882. _ACEOF
  15883. fi
  15884. done
  15885. for ac_func in fork vfork
  15886. do :
  15887. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15888. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15889. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15890. cat >>confdefs.h <<_ACEOF
  15891. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15892. _ACEOF
  15893. fi
  15894. done
  15895. if test "x$ac_cv_func_fork" = xyes; then
  15896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  15897. $as_echo_n "checking for working fork... " >&6; }
  15898. if ${ac_cv_func_fork_works+:} false; then :
  15899. $as_echo_n "(cached) " >&6
  15900. else
  15901. if test "$cross_compiling" = yes; then :
  15902. ac_cv_func_fork_works=cross
  15903. else
  15904. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15905. /* end confdefs.h. */
  15906. $ac_includes_default
  15907. int
  15908. main ()
  15909. {
  15910. /* By Ruediger Kuhlmann. */
  15911. return fork () < 0;
  15912. ;
  15913. return 0;
  15914. }
  15915. _ACEOF
  15916. if ac_fn_c_try_run "$LINENO"; then :
  15917. ac_cv_func_fork_works=yes
  15918. else
  15919. ac_cv_func_fork_works=no
  15920. fi
  15921. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15922. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15923. fi
  15924. fi
  15925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  15926. $as_echo "$ac_cv_func_fork_works" >&6; }
  15927. else
  15928. ac_cv_func_fork_works=$ac_cv_func_fork
  15929. fi
  15930. if test "x$ac_cv_func_fork_works" = xcross; then
  15931. case $host in
  15932. *-*-amigaos* | *-*-msdosdjgpp*)
  15933. # Override, as these systems have only a dummy fork() stub
  15934. ac_cv_func_fork_works=no
  15935. ;;
  15936. *)
  15937. ac_cv_func_fork_works=yes
  15938. ;;
  15939. esac
  15940. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  15941. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  15942. fi
  15943. ac_cv_func_vfork_works=$ac_cv_func_vfork
  15944. if test "x$ac_cv_func_vfork" = xyes; then
  15945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  15946. $as_echo_n "checking for working vfork... " >&6; }
  15947. if ${ac_cv_func_vfork_works+:} false; then :
  15948. $as_echo_n "(cached) " >&6
  15949. else
  15950. if test "$cross_compiling" = yes; then :
  15951. ac_cv_func_vfork_works=cross
  15952. else
  15953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15954. /* end confdefs.h. */
  15955. /* Thanks to Paul Eggert for this test. */
  15956. $ac_includes_default
  15957. #include <sys/wait.h>
  15958. #ifdef HAVE_VFORK_H
  15959. # include <vfork.h>
  15960. #endif
  15961. /* On some sparc systems, changes by the child to local and incoming
  15962. argument registers are propagated back to the parent. The compiler
  15963. is told about this with #include <vfork.h>, but some compilers
  15964. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  15965. static variable whose address is put into a register that is
  15966. clobbered by the vfork. */
  15967. static void
  15968. #ifdef __cplusplus
  15969. sparc_address_test (int arg)
  15970. # else
  15971. sparc_address_test (arg) int arg;
  15972. #endif
  15973. {
  15974. static pid_t child;
  15975. if (!child) {
  15976. child = vfork ();
  15977. if (child < 0) {
  15978. perror ("vfork");
  15979. _exit(2);
  15980. }
  15981. if (!child) {
  15982. arg = getpid();
  15983. write(-1, "", 0);
  15984. _exit (arg);
  15985. }
  15986. }
  15987. }
  15988. int
  15989. main ()
  15990. {
  15991. pid_t parent = getpid ();
  15992. pid_t child;
  15993. sparc_address_test (0);
  15994. child = vfork ();
  15995. if (child == 0) {
  15996. /* Here is another test for sparc vfork register problems. This
  15997. test uses lots of local variables, at least as many local
  15998. variables as main has allocated so far including compiler
  15999. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  16000. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  16001. reuse the register of parent for one of the local variables,
  16002. since it will think that parent can't possibly be used any more
  16003. in this routine. Assigning to the local variable will thus
  16004. munge parent in the parent process. */
  16005. pid_t
  16006. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  16007. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  16008. /* Convince the compiler that p..p7 are live; otherwise, it might
  16009. use the same hardware register for all 8 local variables. */
  16010. if (p != p1 || p != p2 || p != p3 || p != p4
  16011. || p != p5 || p != p6 || p != p7)
  16012. _exit(1);
  16013. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  16014. from child file descriptors. If the child closes a descriptor
  16015. before it execs or exits, this munges the parent's descriptor
  16016. as well. Test for this by closing stdout in the child. */
  16017. _exit(close(fileno(stdout)) != 0);
  16018. } else {
  16019. int status;
  16020. struct stat st;
  16021. while (wait(&status) != child)
  16022. ;
  16023. return (
  16024. /* Was there some problem with vforking? */
  16025. child < 0
  16026. /* Did the child fail? (This shouldn't happen.) */
  16027. || status
  16028. /* Did the vfork/compiler bug occur? */
  16029. || parent != getpid()
  16030. /* Did the file descriptor bug occur? */
  16031. || fstat(fileno(stdout), &st) != 0
  16032. );
  16033. }
  16034. }
  16035. _ACEOF
  16036. if ac_fn_c_try_run "$LINENO"; then :
  16037. ac_cv_func_vfork_works=yes
  16038. else
  16039. ac_cv_func_vfork_works=no
  16040. fi
  16041. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16042. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16043. fi
  16044. fi
  16045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  16046. $as_echo "$ac_cv_func_vfork_works" >&6; }
  16047. fi;
  16048. if test "x$ac_cv_func_fork_works" = xcross; then
  16049. ac_cv_func_vfork_works=$ac_cv_func_vfork
  16050. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  16051. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  16052. fi
  16053. if test "x$ac_cv_func_vfork_works" = xyes; then
  16054. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  16055. else
  16056. $as_echo "#define vfork fork" >>confdefs.h
  16057. fi
  16058. if test "x$ac_cv_func_fork_works" = xyes; then
  16059. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  16060. fi
  16061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  16062. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  16063. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  16064. $as_echo_n "(cached) " >&6
  16065. else
  16066. rm -f conftest.sym conftest.file
  16067. echo >conftest.file
  16068. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  16069. if test "$cross_compiling" = yes; then :
  16070. ac_cv_func_lstat_dereferences_slashed_symlink=no
  16071. else
  16072. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16073. /* end confdefs.h. */
  16074. $ac_includes_default
  16075. int
  16076. main ()
  16077. {
  16078. struct stat sbuf;
  16079. /* Linux will dereference the symlink and fail, as required by POSIX.
  16080. That is better in the sense that it means we will not
  16081. have to compile and use the lstat wrapper. */
  16082. return lstat ("conftest.sym/", &sbuf) == 0;
  16083. ;
  16084. return 0;
  16085. }
  16086. _ACEOF
  16087. if ac_fn_c_try_run "$LINENO"; then :
  16088. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  16089. else
  16090. ac_cv_func_lstat_dereferences_slashed_symlink=no
  16091. fi
  16092. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16093. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16094. fi
  16095. else
  16096. # If the `ln -s' command failed, then we probably don't even
  16097. # have an lstat function.
  16098. ac_cv_func_lstat_dereferences_slashed_symlink=no
  16099. fi
  16100. rm -f conftest.sym conftest.file
  16101. fi
  16102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  16103. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  16104. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  16105. cat >>confdefs.h <<_ACEOF
  16106. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  16107. _ACEOF
  16108. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  16109. case " $LIBOBJS " in
  16110. *" lstat.$ac_objext "* ) ;;
  16111. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  16112. ;;
  16113. esac
  16114. fi
  16115. for ac_header in stdlib.h
  16116. do :
  16117. ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  16118. if test "x$ac_cv_header_stdlib_h" = xyes; then :
  16119. cat >>confdefs.h <<_ACEOF
  16120. #define HAVE_STDLIB_H 1
  16121. _ACEOF
  16122. fi
  16123. done
  16124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
  16125. $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  16126. if ${ac_cv_func_malloc_0_nonnull+:} false; then :
  16127. $as_echo_n "(cached) " >&6
  16128. else
  16129. if test "$cross_compiling" = yes; then :
  16130. ac_cv_func_malloc_0_nonnull=no
  16131. else
  16132. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16133. /* end confdefs.h. */
  16134. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  16135. # include <stdlib.h>
  16136. #else
  16137. char *malloc ();
  16138. #endif
  16139. int
  16140. main ()
  16141. {
  16142. return ! malloc (0);
  16143. ;
  16144. return 0;
  16145. }
  16146. _ACEOF
  16147. if ac_fn_c_try_run "$LINENO"; then :
  16148. ac_cv_func_malloc_0_nonnull=yes
  16149. else
  16150. ac_cv_func_malloc_0_nonnull=no
  16151. fi
  16152. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16153. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16154. fi
  16155. fi
  16156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
  16157. $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  16158. if test $ac_cv_func_malloc_0_nonnull = yes; then :
  16159. $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
  16160. else
  16161. $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
  16162. case " $LIBOBJS " in
  16163. *" malloc.$ac_objext "* ) ;;
  16164. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  16165. ;;
  16166. esac
  16167. $as_echo "#define malloc rpl_malloc" >>confdefs.h
  16168. fi
  16169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  16170. $as_echo_n "checking for working memcmp... " >&6; }
  16171. if ${ac_cv_func_memcmp_working+:} false; then :
  16172. $as_echo_n "(cached) " >&6
  16173. else
  16174. if test "$cross_compiling" = yes; then :
  16175. ac_cv_func_memcmp_working=no
  16176. else
  16177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16178. /* end confdefs.h. */
  16179. $ac_includes_default
  16180. int
  16181. main ()
  16182. {
  16183. /* Some versions of memcmp are not 8-bit clean. */
  16184. char c0 = '\100', c1 = '\200', c2 = '\201';
  16185. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  16186. return 1;
  16187. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  16188. or more and with at least one buffer not starting on a 4-byte boundary.
  16189. William Lewis provided this test program. */
  16190. {
  16191. char foo[21];
  16192. char bar[21];
  16193. int i;
  16194. for (i = 0; i < 4; i++)
  16195. {
  16196. char *a = foo + i;
  16197. char *b = bar + i;
  16198. strcpy (a, "--------01111111");
  16199. strcpy (b, "--------10000000");
  16200. if (memcmp (a, b, 16) >= 0)
  16201. return 1;
  16202. }
  16203. return 0;
  16204. }
  16205. ;
  16206. return 0;
  16207. }
  16208. _ACEOF
  16209. if ac_fn_c_try_run "$LINENO"; then :
  16210. ac_cv_func_memcmp_working=yes
  16211. else
  16212. ac_cv_func_memcmp_working=no
  16213. fi
  16214. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16215. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16216. fi
  16217. fi
  16218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  16219. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  16220. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  16221. *" memcmp.$ac_objext "* ) ;;
  16222. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  16223. ;;
  16224. esac
  16225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  16226. $as_echo_n "checking return type of signal handlers... " >&6; }
  16227. if ${ac_cv_type_signal+:} false; then :
  16228. $as_echo_n "(cached) " >&6
  16229. else
  16230. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16231. /* end confdefs.h. */
  16232. #include <sys/types.h>
  16233. #include <signal.h>
  16234. int
  16235. main ()
  16236. {
  16237. return *(signal (0, 0)) (0) == 1;
  16238. ;
  16239. return 0;
  16240. }
  16241. _ACEOF
  16242. if ac_fn_c_try_compile "$LINENO"; then :
  16243. ac_cv_type_signal=int
  16244. else
  16245. ac_cv_type_signal=void
  16246. fi
  16247. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16248. fi
  16249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  16250. $as_echo "$ac_cv_type_signal" >&6; }
  16251. cat >>confdefs.h <<_ACEOF
  16252. #define RETSIGTYPE $ac_cv_type_signal
  16253. _ACEOF
  16254. for ac_func in vprintf
  16255. do :
  16256. ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  16257. if test "x$ac_cv_func_vprintf" = xyes; then :
  16258. cat >>confdefs.h <<_ACEOF
  16259. #define HAVE_VPRINTF 1
  16260. _ACEOF
  16261. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  16262. if test "x$ac_cv_func__doprnt" = xyes; then :
  16263. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  16264. fi
  16265. fi
  16266. done
  16267. for ac_header in $ac_header_list
  16268. do :
  16269. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16270. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  16271. "
  16272. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  16273. cat >>confdefs.h <<_ACEOF
  16274. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16275. _ACEOF
  16276. fi
  16277. done
  16278. for ac_func in $ac_func_list
  16279. do :
  16280. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16281. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  16282. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  16283. cat >>confdefs.h <<_ACEOF
  16284. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16285. _ACEOF
  16286. fi
  16287. done
  16288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
  16289. $as_echo_n "checking for working mktime... " >&6; }
  16290. if ${ac_cv_func_working_mktime+:} false; then :
  16291. $as_echo_n "(cached) " >&6
  16292. else
  16293. if test "$cross_compiling" = yes; then :
  16294. ac_cv_func_working_mktime=no
  16295. else
  16296. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16297. /* end confdefs.h. */
  16298. /* Test program from Paul Eggert and Tony Leneis. */
  16299. #ifdef TIME_WITH_SYS_TIME
  16300. # include <sys/time.h>
  16301. # include <time.h>
  16302. #else
  16303. # ifdef HAVE_SYS_TIME_H
  16304. # include <sys/time.h>
  16305. # else
  16306. # include <time.h>
  16307. # endif
  16308. #endif
  16309. #include <limits.h>
  16310. #include <stdlib.h>
  16311. #ifdef HAVE_UNISTD_H
  16312. # include <unistd.h>
  16313. #endif
  16314. #ifndef HAVE_ALARM
  16315. # define alarm(X) /* empty */
  16316. #endif
  16317. /* Work around redefinition to rpl_putenv by other config tests. */
  16318. #undef putenv
  16319. static time_t time_t_max;
  16320. static time_t time_t_min;
  16321. /* Values we'll use to set the TZ environment variable. */
  16322. static const char *tz_strings[] = {
  16323. (const char *) 0, "TZ=GMT0", "TZ=JST-9",
  16324. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  16325. };
  16326. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  16327. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  16328. Based on a problem report from Andreas Jaeger. */
  16329. static int
  16330. spring_forward_gap ()
  16331. {
  16332. /* glibc (up to about 1998-10-07) failed this test. */
  16333. struct tm tm;
  16334. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  16335. instead of "TZ=America/Vancouver" in order to detect the bug even
  16336. on systems that don't support the Olson extension, or don't have the
  16337. full zoneinfo tables installed. */
  16338. putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
  16339. tm.tm_year = 98;
  16340. tm.tm_mon = 3;
  16341. tm.tm_mday = 5;
  16342. tm.tm_hour = 2;
  16343. tm.tm_min = 0;
  16344. tm.tm_sec = 0;
  16345. tm.tm_isdst = -1;
  16346. return mktime (&tm) != (time_t) -1;
  16347. }
  16348. static int
  16349. mktime_test1 (time_t now)
  16350. {
  16351. struct tm *lt;
  16352. return ! (lt = localtime (&now)) || mktime (lt) == now;
  16353. }
  16354. static int
  16355. mktime_test (time_t now)
  16356. {
  16357. return (mktime_test1 (now)
  16358. && mktime_test1 ((time_t) (time_t_max - now))
  16359. && mktime_test1 ((time_t) (time_t_min + now)));
  16360. }
  16361. static int
  16362. irix_6_4_bug ()
  16363. {
  16364. /* Based on code from Ariel Faigon. */
  16365. struct tm tm;
  16366. tm.tm_year = 96;
  16367. tm.tm_mon = 3;
  16368. tm.tm_mday = 0;
  16369. tm.tm_hour = 0;
  16370. tm.tm_min = 0;
  16371. tm.tm_sec = 0;
  16372. tm.tm_isdst = -1;
  16373. mktime (&tm);
  16374. return tm.tm_mon == 2 && tm.tm_mday == 31;
  16375. }
  16376. static int
  16377. bigtime_test (int j)
  16378. {
  16379. struct tm tm;
  16380. time_t now;
  16381. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  16382. now = mktime (&tm);
  16383. if (now != (time_t) -1)
  16384. {
  16385. struct tm *lt = localtime (&now);
  16386. if (! (lt
  16387. && lt->tm_year == tm.tm_year
  16388. && lt->tm_mon == tm.tm_mon
  16389. && lt->tm_mday == tm.tm_mday
  16390. && lt->tm_hour == tm.tm_hour
  16391. && lt->tm_min == tm.tm_min
  16392. && lt->tm_sec == tm.tm_sec
  16393. && lt->tm_yday == tm.tm_yday
  16394. && lt->tm_wday == tm.tm_wday
  16395. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  16396. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  16397. return 0;
  16398. }
  16399. return 1;
  16400. }
  16401. static int
  16402. year_2050_test ()
  16403. {
  16404. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  16405. ignoring leap seconds. */
  16406. unsigned long int answer = 2527315200UL;
  16407. struct tm tm;
  16408. time_t t;
  16409. tm.tm_year = 2050 - 1900;
  16410. tm.tm_mon = 2 - 1;
  16411. tm.tm_mday = 1;
  16412. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  16413. tm.tm_isdst = -1;
  16414. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  16415. instead of "TZ=America/Vancouver" in order to detect the bug even
  16416. on systems that don't support the Olson extension, or don't have the
  16417. full zoneinfo tables installed. */
  16418. putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
  16419. t = mktime (&tm);
  16420. /* Check that the result is either a failure, or close enough
  16421. to the correct answer that we can assume the discrepancy is
  16422. due to leap seconds. */
  16423. return (t == (time_t) -1
  16424. || (0 < t && answer - 120 <= t && t <= answer + 120));
  16425. }
  16426. int
  16427. main ()
  16428. {
  16429. time_t t, delta;
  16430. int i, j;
  16431. /* This test makes some buggy mktime implementations loop.
  16432. Give up after 60 seconds; a mktime slower than that
  16433. isn't worth using anyway. */
  16434. alarm (60);
  16435. for (;;)
  16436. {
  16437. t = (time_t_max << 1) + 1;
  16438. if (t <= time_t_max)
  16439. break;
  16440. time_t_max = t;
  16441. }
  16442. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  16443. delta = time_t_max / 997; /* a suitable prime number */
  16444. for (i = 0; i < N_STRINGS; i++)
  16445. {
  16446. if (tz_strings[i])
  16447. putenv ((char*) tz_strings[i]);
  16448. for (t = 0; t <= time_t_max - delta; t += delta)
  16449. if (! mktime_test (t))
  16450. return 1;
  16451. if (! (mktime_test ((time_t) 1)
  16452. && mktime_test ((time_t) (60 * 60))
  16453. && mktime_test ((time_t) (60 * 60 * 24))))
  16454. return 1;
  16455. for (j = 1; ; j <<= 1)
  16456. if (! bigtime_test (j))
  16457. return 1;
  16458. else if (INT_MAX / 2 < j)
  16459. break;
  16460. if (! bigtime_test (INT_MAX))
  16461. return 1;
  16462. }
  16463. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  16464. }
  16465. _ACEOF
  16466. if ac_fn_c_try_run "$LINENO"; then :
  16467. ac_cv_func_working_mktime=yes
  16468. else
  16469. ac_cv_func_working_mktime=no
  16470. fi
  16471. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16472. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16473. fi
  16474. fi
  16475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
  16476. $as_echo "$ac_cv_func_working_mktime" >&6; }
  16477. if test $ac_cv_func_working_mktime = no; then
  16478. case " $LIBOBJS " in
  16479. *" mktime.$ac_objext "* ) ;;
  16480. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  16481. ;;
  16482. esac
  16483. fi
  16484. for ac_func in getpagesize
  16485. do :
  16486. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  16487. if test "x$ac_cv_func_getpagesize" = xyes; then :
  16488. cat >>confdefs.h <<_ACEOF
  16489. #define HAVE_GETPAGESIZE 1
  16490. _ACEOF
  16491. fi
  16492. done
  16493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  16494. $as_echo_n "checking for working mmap... " >&6; }
  16495. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  16496. $as_echo_n "(cached) " >&6
  16497. else
  16498. if test "$cross_compiling" = yes; then :
  16499. ac_cv_func_mmap_fixed_mapped=no
  16500. else
  16501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16502. /* end confdefs.h. */
  16503. $ac_includes_default
  16504. /* malloc might have been renamed as rpl_malloc. */
  16505. #undef malloc
  16506. /* Thanks to Mike Haertel and Jim Avera for this test.
  16507. Here is a matrix of mmap possibilities:
  16508. mmap private not fixed
  16509. mmap private fixed at somewhere currently unmapped
  16510. mmap private fixed at somewhere already mapped
  16511. mmap shared not fixed
  16512. mmap shared fixed at somewhere currently unmapped
  16513. mmap shared fixed at somewhere already mapped
  16514. For private mappings, we should verify that changes cannot be read()
  16515. back from the file, nor mmap's back from the file at a different
  16516. address. (There have been systems where private was not correctly
  16517. implemented like the infamous i386 svr4.0, and systems where the
  16518. VM page cache was not coherent with the file system buffer cache
  16519. like early versions of FreeBSD and possibly contemporary NetBSD.)
  16520. For shared mappings, we should conversely verify that changes get
  16521. propagated back to all the places they're supposed to be.
  16522. Grep wants private fixed already mapped.
  16523. The main things grep needs to know about mmap are:
  16524. * does it exist and is it safe to write into the mmap'd area
  16525. * how to use it (BSD variants) */
  16526. #include <fcntl.h>
  16527. #include <sys/mman.h>
  16528. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  16529. char *malloc ();
  16530. #endif
  16531. /* This mess was copied from the GNU getpagesize.h. */
  16532. #ifndef HAVE_GETPAGESIZE
  16533. # ifdef _SC_PAGESIZE
  16534. # define getpagesize() sysconf(_SC_PAGESIZE)
  16535. # else /* no _SC_PAGESIZE */
  16536. # ifdef HAVE_SYS_PARAM_H
  16537. # include <sys/param.h>
  16538. # ifdef EXEC_PAGESIZE
  16539. # define getpagesize() EXEC_PAGESIZE
  16540. # else /* no EXEC_PAGESIZE */
  16541. # ifdef NBPG
  16542. # define getpagesize() NBPG * CLSIZE
  16543. # ifndef CLSIZE
  16544. # define CLSIZE 1
  16545. # endif /* no CLSIZE */
  16546. # else /* no NBPG */
  16547. # ifdef NBPC
  16548. # define getpagesize() NBPC
  16549. # else /* no NBPC */
  16550. # ifdef PAGESIZE
  16551. # define getpagesize() PAGESIZE
  16552. # endif /* PAGESIZE */
  16553. # endif /* no NBPC */
  16554. # endif /* no NBPG */
  16555. # endif /* no EXEC_PAGESIZE */
  16556. # else /* no HAVE_SYS_PARAM_H */
  16557. # define getpagesize() 8192 /* punt totally */
  16558. # endif /* no HAVE_SYS_PARAM_H */
  16559. # endif /* no _SC_PAGESIZE */
  16560. #endif /* no HAVE_GETPAGESIZE */
  16561. int
  16562. main ()
  16563. {
  16564. char *data, *data2, *data3;
  16565. const char *cdata2;
  16566. int i, pagesize;
  16567. int fd, fd2;
  16568. pagesize = getpagesize ();
  16569. /* First, make a file with some known garbage in it. */
  16570. data = (char *) malloc (pagesize);
  16571. if (!data)
  16572. return 1;
  16573. for (i = 0; i < pagesize; ++i)
  16574. *(data + i) = rand ();
  16575. umask (0);
  16576. fd = creat ("conftest.mmap", 0600);
  16577. if (fd < 0)
  16578. return 2;
  16579. if (write (fd, data, pagesize) != pagesize)
  16580. return 3;
  16581. close (fd);
  16582. /* Next, check that the tail of a page is zero-filled. File must have
  16583. non-zero length, otherwise we risk SIGBUS for entire page. */
  16584. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  16585. if (fd2 < 0)
  16586. return 4;
  16587. cdata2 = "";
  16588. if (write (fd2, cdata2, 1) != 1)
  16589. return 5;
  16590. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  16591. if (data2 == MAP_FAILED)
  16592. return 6;
  16593. for (i = 0; i < pagesize; ++i)
  16594. if (*(data2 + i))
  16595. return 7;
  16596. close (fd2);
  16597. if (munmap (data2, pagesize))
  16598. return 8;
  16599. /* Next, try to mmap the file at a fixed address which already has
  16600. something else allocated at it. If we can, also make sure that
  16601. we see the same garbage. */
  16602. fd = open ("conftest.mmap", O_RDWR);
  16603. if (fd < 0)
  16604. return 9;
  16605. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  16606. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  16607. return 10;
  16608. for (i = 0; i < pagesize; ++i)
  16609. if (*(data + i) != *(data2 + i))
  16610. return 11;
  16611. /* Finally, make sure that changes to the mapped area do not
  16612. percolate back to the file as seen by read(). (This is a bug on
  16613. some variants of i386 svr4.0.) */
  16614. for (i = 0; i < pagesize; ++i)
  16615. *(data2 + i) = *(data2 + i) + 1;
  16616. data3 = (char *) malloc (pagesize);
  16617. if (!data3)
  16618. return 12;
  16619. if (read (fd, data3, pagesize) != pagesize)
  16620. return 13;
  16621. for (i = 0; i < pagesize; ++i)
  16622. if (*(data + i) != *(data3 + i))
  16623. return 14;
  16624. close (fd);
  16625. return 0;
  16626. }
  16627. _ACEOF
  16628. if ac_fn_c_try_run "$LINENO"; then :
  16629. ac_cv_func_mmap_fixed_mapped=yes
  16630. else
  16631. ac_cv_func_mmap_fixed_mapped=no
  16632. fi
  16633. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16634. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16635. fi
  16636. fi
  16637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  16638. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  16639. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  16640. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  16641. fi
  16642. rm -f conftest.mmap conftest.txt
  16643. for ac_header in stdlib.h
  16644. do :
  16645. ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  16646. if test "x$ac_cv_header_stdlib_h" = xyes; then :
  16647. cat >>confdefs.h <<_ACEOF
  16648. #define HAVE_STDLIB_H 1
  16649. _ACEOF
  16650. fi
  16651. done
  16652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
  16653. $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
  16654. if ${ac_cv_func_realloc_0_nonnull+:} false; then :
  16655. $as_echo_n "(cached) " >&6
  16656. else
  16657. if test "$cross_compiling" = yes; then :
  16658. ac_cv_func_realloc_0_nonnull=no
  16659. else
  16660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16661. /* end confdefs.h. */
  16662. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  16663. # include <stdlib.h>
  16664. #else
  16665. char *realloc ();
  16666. #endif
  16667. int
  16668. main ()
  16669. {
  16670. return ! realloc (0, 0);
  16671. ;
  16672. return 0;
  16673. }
  16674. _ACEOF
  16675. if ac_fn_c_try_run "$LINENO"; then :
  16676. ac_cv_func_realloc_0_nonnull=yes
  16677. else
  16678. ac_cv_func_realloc_0_nonnull=no
  16679. fi
  16680. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16681. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16682. fi
  16683. fi
  16684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
  16685. $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
  16686. if test $ac_cv_func_realloc_0_nonnull = yes; then :
  16687. $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
  16688. else
  16689. $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
  16690. case " $LIBOBJS " in
  16691. *" realloc.$ac_objext "* ) ;;
  16692. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  16693. ;;
  16694. esac
  16695. $as_echo "#define realloc rpl_realloc" >>confdefs.h
  16696. fi
  16697. ac_fn_c_check_member "$LINENO" "struct timeval" "tv_sec" "ac_cv_member_struct_timeval_tv_sec" "$ac_includes_default"
  16698. if test "x$ac_cv_member_struct_timeval_tv_sec" = xyes; then :
  16699. cat >>confdefs.h <<_ACEOF
  16700. #define HAVE_STRUCT_TIMEVAL_TV_SEC 1
  16701. _ACEOF
  16702. fi
  16703. for ac_func in alarm atexit bzero dup2 gethostbyname getpagesize gettimeofday ctime inet_ntoa memmove memset munmap pow putenv realpath regcomp strdup select socket strcasecmp strchr strcspn strdup strerror strtol strncpy strtoull poll ntohll mmap snprintf vsnprintf strsignal strpbrk strrchr strspn strstr strtoul
  16704. do :
  16705. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16706. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  16707. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  16708. cat >>confdefs.h <<_ACEOF
  16709. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16710. _ACEOF
  16711. fi
  16712. done
  16713. for ac_func in strlcpy
  16714. do :
  16715. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  16716. if test "x$ac_cv_func_strlcpy" = xyes; then :
  16717. cat >>confdefs.h <<_ACEOF
  16718. #define HAVE_STRLCPY 1
  16719. _ACEOF
  16720. have_strlcpy=true
  16721. else
  16722. have_strlcpy=false
  16723. fi
  16724. done
  16725. if test x$have_strlcpy = xtrue; then
  16726. SYSTEM_STRLCPY_TRUE=
  16727. SYSTEM_STRLCPY_FALSE='#'
  16728. else
  16729. SYSTEM_STRLCPY_TRUE='#'
  16730. SYSTEM_STRLCPY_FALSE=
  16731. fi
  16732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  16733. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  16734. if ${ac_cv_c_bigendian+:} false; then :
  16735. $as_echo_n "(cached) " >&6
  16736. else
  16737. ac_cv_c_bigendian=unknown
  16738. # See if we're dealing with a universal compiler.
  16739. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16740. /* end confdefs.h. */
  16741. #ifndef __APPLE_CC__
  16742. not a universal capable compiler
  16743. #endif
  16744. typedef int dummy;
  16745. _ACEOF
  16746. if ac_fn_c_try_compile "$LINENO"; then :
  16747. # Check for potential -arch flags. It is not universal unless
  16748. # there are at least two -arch flags with different values.
  16749. ac_arch=
  16750. ac_prev=
  16751. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  16752. if test -n "$ac_prev"; then
  16753. case $ac_word in
  16754. i?86 | x86_64 | ppc | ppc64)
  16755. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  16756. ac_arch=$ac_word
  16757. else
  16758. ac_cv_c_bigendian=universal
  16759. break
  16760. fi
  16761. ;;
  16762. esac
  16763. ac_prev=
  16764. elif test "x$ac_word" = "x-arch"; then
  16765. ac_prev=arch
  16766. fi
  16767. done
  16768. fi
  16769. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16770. if test $ac_cv_c_bigendian = unknown; then
  16771. # See if sys/param.h defines the BYTE_ORDER macro.
  16772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16773. /* end confdefs.h. */
  16774. #include <sys/types.h>
  16775. #include <sys/param.h>
  16776. int
  16777. main ()
  16778. {
  16779. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  16780. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  16781. && LITTLE_ENDIAN)
  16782. bogus endian macros
  16783. #endif
  16784. ;
  16785. return 0;
  16786. }
  16787. _ACEOF
  16788. if ac_fn_c_try_compile "$LINENO"; then :
  16789. # It does; now see whether it defined to BIG_ENDIAN or not.
  16790. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16791. /* end confdefs.h. */
  16792. #include <sys/types.h>
  16793. #include <sys/param.h>
  16794. int
  16795. main ()
  16796. {
  16797. #if BYTE_ORDER != BIG_ENDIAN
  16798. not big endian
  16799. #endif
  16800. ;
  16801. return 0;
  16802. }
  16803. _ACEOF
  16804. if ac_fn_c_try_compile "$LINENO"; then :
  16805. ac_cv_c_bigendian=yes
  16806. else
  16807. ac_cv_c_bigendian=no
  16808. fi
  16809. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16810. fi
  16811. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16812. fi
  16813. if test $ac_cv_c_bigendian = unknown; then
  16814. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  16815. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16816. /* end confdefs.h. */
  16817. #include <limits.h>
  16818. int
  16819. main ()
  16820. {
  16821. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  16822. bogus endian macros
  16823. #endif
  16824. ;
  16825. return 0;
  16826. }
  16827. _ACEOF
  16828. if ac_fn_c_try_compile "$LINENO"; then :
  16829. # It does; now see whether it defined to _BIG_ENDIAN or not.
  16830. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16831. /* end confdefs.h. */
  16832. #include <limits.h>
  16833. int
  16834. main ()
  16835. {
  16836. #ifndef _BIG_ENDIAN
  16837. not big endian
  16838. #endif
  16839. ;
  16840. return 0;
  16841. }
  16842. _ACEOF
  16843. if ac_fn_c_try_compile "$LINENO"; then :
  16844. ac_cv_c_bigendian=yes
  16845. else
  16846. ac_cv_c_bigendian=no
  16847. fi
  16848. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16849. fi
  16850. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16851. fi
  16852. if test $ac_cv_c_bigendian = unknown; then
  16853. # Compile a test program.
  16854. if test "$cross_compiling" = yes; then :
  16855. # Try to guess by grepping values from an object file.
  16856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16857. /* end confdefs.h. */
  16858. short int ascii_mm[] =
  16859. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  16860. short int ascii_ii[] =
  16861. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  16862. int use_ascii (int i) {
  16863. return ascii_mm[i] + ascii_ii[i];
  16864. }
  16865. short int ebcdic_ii[] =
  16866. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  16867. short int ebcdic_mm[] =
  16868. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  16869. int use_ebcdic (int i) {
  16870. return ebcdic_mm[i] + ebcdic_ii[i];
  16871. }
  16872. extern int foo;
  16873. int
  16874. main ()
  16875. {
  16876. return use_ascii (foo) == use_ebcdic (foo);
  16877. ;
  16878. return 0;
  16879. }
  16880. _ACEOF
  16881. if ac_fn_c_try_compile "$LINENO"; then :
  16882. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  16883. ac_cv_c_bigendian=yes
  16884. fi
  16885. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  16886. if test "$ac_cv_c_bigendian" = unknown; then
  16887. ac_cv_c_bigendian=no
  16888. else
  16889. # finding both strings is unlikely to happen, but who knows?
  16890. ac_cv_c_bigendian=unknown
  16891. fi
  16892. fi
  16893. fi
  16894. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16895. else
  16896. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16897. /* end confdefs.h. */
  16898. $ac_includes_default
  16899. int
  16900. main ()
  16901. {
  16902. /* Are we little or big endian? From Harbison&Steele. */
  16903. union
  16904. {
  16905. long int l;
  16906. char c[sizeof (long int)];
  16907. } u;
  16908. u.l = 1;
  16909. return u.c[sizeof (long int) - 1] == 1;
  16910. ;
  16911. return 0;
  16912. }
  16913. _ACEOF
  16914. if ac_fn_c_try_run "$LINENO"; then :
  16915. ac_cv_c_bigendian=no
  16916. else
  16917. ac_cv_c_bigendian=yes
  16918. fi
  16919. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16920. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16921. fi
  16922. fi
  16923. fi
  16924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  16925. $as_echo "$ac_cv_c_bigendian" >&6; }
  16926. case $ac_cv_c_bigendian in #(
  16927. yes)
  16928. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  16929. ;; #(
  16930. no)
  16931. ;; #(
  16932. universal)
  16933. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  16934. ;; #(
  16935. *)
  16936. as_fn_error $? "unknown endianness
  16937. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  16938. esac
  16939. if test x$ac_cv_c_bigendian = xyes ; then
  16940. WORDS_BIGENDIAN_TRUE=
  16941. WORDS_BIGENDIAN_FALSE='#'
  16942. else
  16943. WORDS_BIGENDIAN_TRUE='#'
  16944. WORDS_BIGENDIAN_FALSE=
  16945. fi
  16946. debug=no
  16947. debug_flag=NDEBUG
  16948. debug_run_time_flag=
  16949. # Check whether --enable-debug was given.
  16950. if test "${enable_debug+set}" = set; then :
  16951. enableval=$enable_debug; if test x$enableval = xyes; then
  16952. debug=yes
  16953. CFLAGS="${USER_CFLAGS} -g -O0 -std=gnu99 -Wall $wextra $wfatal_errors $wno_variadic_macros $wno_format_contains_nul"
  16954. # We may also want to add:
  16955. # -Wformat-security -Wswitch-default -Wunused-paramter -Wpadded"
  16956. debug_flag=DEBUG
  16957. debug_run_time_flag=--dbug=1
  16958. $as_echo "#define DEBUG 1" >>confdefs.h
  16959. fi
  16960. fi
  16961. extra_debug=no
  16962. extra_debug_flag=NEXTRA_DBUG
  16963. # Check whether --enable-extra-debug was given.
  16964. if test "${enable_extra_debug+set}" = set; then :
  16965. enableval=$enable_extra_debug; if test x$enableval = xyes; then
  16966. extra_debug=yes
  16967. extra_debug_flag=EXTRA_DEBUG
  16968. $as_echo "#define EXTRA_DEBUG 1" >>confdefs.h
  16969. fi
  16970. fi
  16971. timestamp_trace=no
  16972. # Check whether --enable-timestamp-trace was given.
  16973. if test "${enable_timestamp_trace+set}" = set; then :
  16974. enableval=$enable_timestamp_trace; if test x$enableval = xyes; then
  16975. timestamp_trace=yes
  16976. CFLAGS="${USER_CFLAGS} -DTIMESTAMP_TRACE"
  16977. $as_echo "#define TIMESTAMP_TRACE 1" >>confdefs.h
  16978. fi
  16979. fi
  16980. # Check whether --enable-dmalloc was given.
  16981. if test "${enable_dmalloc+set}" = set; then :
  16982. enableval=$enable_dmalloc; if test x$enableval = xyes ; then
  16983. dmalloc=yes
  16984. $as_echo "#define ENABLE_DMALLOC 1" >>confdefs.h
  16985. $as_echo "#define DMALLOC_FUNC_CHECK 1" >>confdefs.h
  16986. CFLAGS="${CFLAGS} -I/opt/local/include"
  16987. DMALLOC_LIB="/opt/local/lib/libdmalloc.a"
  16988. fi
  16989. fi
  16990. # Check whether --enable-pedantic was given.
  16991. if test "${enable_pedantic+set}" = set; then :
  16992. enableval=$enable_pedantic; if test x$enableval = xyes; then
  16993. CFLAGS="$CFLAGS -pedantic"
  16994. fi
  16995. fi
  16996. # Check whether --enable-efence was given.
  16997. if test "${enable_efence+set}" = set; then :
  16998. enableval=$enable_efence; if test x$enableval = xyes; then
  16999. CFLAGS="$CFLAGS -lefence"
  17000. $as_echo "#define EFENCE 1" >>confdefs.h
  17001. fi
  17002. fi
  17003. # Check whether --enable-gprof was given.
  17004. if test "${enable_gprof+set}" = set; then :
  17005. enableval=$enable_gprof; if test x$enableval = xyes; then
  17006. if test $debug = yes; then
  17007. CFLAGS="$CFLAGS -pg"
  17008. else
  17009. # GPROF requires gdb
  17010. CFLAGS="$CFLAGS -ggdb -pg -fprofile-arcs"
  17011. fi
  17012. $as_echo "#define GPROF 1" >>confdefs.h
  17013. fi
  17014. fi
  17015. enable_pcap_config=no
  17016. # Check whether --enable-pcapconfig was given.
  17017. if test "${enable_pcapconfig+set}" = set; then :
  17018. enableval=$enable_pcapconfig;
  17019. if test $enableval = yes; then
  17020. enable_pcap_config=yes
  17021. { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling libpcap discovery via pcap_config" >&5
  17022. $as_echo "$as_me: Enabling libpcap discovery via pcap_config" >&6;}
  17023. else
  17024. enable_pcap_config=no
  17025. { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling libpcap discovery via pcap_config" >&5
  17026. $as_echo "$as_me: Disabling libpcap discovery via pcap_config" >&6;}
  17027. fi
  17028. else
  17029. { $as_echo "$as_me:${as_lineno-$LINENO}: Bypassing libpcap discovery via pcap_config" >&5
  17030. $as_echo "$as_me: Bypassing libpcap discovery via pcap_config" >&6;}
  17031. fi
  17032. use64bit_counters=yes
  17033. # Check whether --enable-64bits was given.
  17034. if test "${enable_64bits+set}" = set; then :
  17035. enableval=$enable_64bits;
  17036. { $as_echo "$as_me:${as_lineno-$LINENO}: Using u_int32_t for packet counters" >&5
  17037. $as_echo "$as_me: Using u_int32_t for packet counters" >&6;}
  17038. else
  17039. $as_echo "#define ENABLE_64BITS 1" >>confdefs.h
  17040. { $as_echo "$as_me:${as_lineno-$LINENO}: Using u_int64_t for packet counters" >&5
  17041. $as_echo "$as_me: Using u_int64_t for packet counters" >&6;}
  17042. fi
  17043. # If we're running gcc add '-D_U_="__attribute__((unused))"' to CFLAGS as well,
  17044. # so we can use _U_ to flag unused function arguments and not get warnings
  17045. # about them. Otherwise, add '-D_U_=""', so that _U_ used to flag an unused
  17046. # function argument will compile with non-GCC compilers.
  17047. #
  17048. if test "x$GCC" = "xyes" ; then
  17049. CFLAGS="-D_U_=\"__attribute__((unused))\" $CFLAGS"
  17050. else
  17051. CFLAGS="-D_U_=\"\" $CFLAGS"
  17052. fi
  17053. # Check whether --enable-force-bpf was given.
  17054. if test "${enable_force_bpf+set}" = set; then :
  17055. enableval=$enable_force_bpf;
  17056. $as_echo "#define FORCE_INJECT_BPF 1" >>confdefs.h
  17057. fi
  17058. # Check whether --enable-force-pf was given.
  17059. if test "${enable_force_pf+set}" = set; then :
  17060. enableval=$enable_force_pf;
  17061. $as_echo "#define FORCE_INJECT_PF 1" >>confdefs.h
  17062. fi
  17063. # Check whether --enable-force-libdnet was given.
  17064. if test "${enable_force_libdnet+set}" = set; then :
  17065. enableval=$enable_force_libdnet;
  17066. $as_echo "#define FORCE_INJECT_LIBDNET 1" >>confdefs.h
  17067. fi
  17068. # Check whether --enable-force-inject was given.
  17069. if test "${enable_force_inject+set}" = set; then :
  17070. enableval=$enable_force_inject;
  17071. $as_echo "#define FORCE_INJECT_PCAP_INJECT 1" >>confdefs.h
  17072. fi
  17073. # Check whether --enable-force-sendpacket was given.
  17074. if test "${enable_force_sendpacket+set}" = set; then :
  17075. enableval=$enable_force_sendpacket;
  17076. $as_echo "#define FORCE_INJECT_PCAP_SENDPACKET 1" >>confdefs.h
  17077. fi
  17078. static_link=no
  17079. dynamic_link=yes
  17080. # Check whether --enable-static-link was given.
  17081. if test "${enable_static_link+set}" = set; then :
  17082. enableval=$enable_static_link;
  17083. if test $enableval = yes; then
  17084. static_link=yes
  17085. dynamic_link=no
  17086. fi
  17087. fi
  17088. # Check whether --enable-dynamic-link was given.
  17089. if test "${enable_dynamic_link+set}" = set; then :
  17090. enableval=$enable_dynamic_link;
  17091. if test $enableval = no; then
  17092. dynamic_link=no
  17093. static_link=yes
  17094. elif test $static_link = yes; then
  17095. as_fn_error $? "Cannot specify both --enable-dynamic-link and --enable-static-link" "$LINENO" 5
  17096. fi
  17097. fi
  17098. if test $static_link = yes; then
  17099. $as_echo "#define ENABLE_STATIC_LINK 1" >>confdefs.h
  17100. else
  17101. $as_echo "#define ENABLE_DYNAMIC_LINK 1" >>confdefs.h
  17102. fi
  17103. ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
  17104. if test "x$ac_cv_func_inet_aton" = xyes; then :
  17105. $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
  17106. inet_aton=yes
  17107. else
  17108. inet_aton=no
  17109. fi
  17110. ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
  17111. if test "x$ac_cv_func_inet_pton" = xyes; then :
  17112. $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
  17113. inet_pton=yes
  17114. else
  17115. inet_pton=no
  17116. fi
  17117. ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
  17118. if test "x$ac_cv_func_inet_ntop" = xyes; then :
  17119. $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
  17120. inet_ntop=yes
  17121. else
  17122. inet_ntop=no
  17123. fi
  17124. if test "$inet_ntop" = "no" -a "$inet_pton" = "no" ; then
  17125. as_fn_error $? "We need either inet_ntop or inet_pton" "$LINENO" 5
  17126. fi
  17127. ac_fn_c_check_func "$LINENO" "inet_addr" "ac_cv_func_inet_addr"
  17128. if test "x$ac_cv_func_inet_addr" = xyes; then :
  17129. $as_echo "#define HAVE_INET_ADDR 1" >>confdefs.h
  17130. inet_addr=yes
  17131. else
  17132. inet_addr=no
  17133. fi
  17134. if test x$inet_addr = no ; then
  17135. as_fn_error $? "We need inet_addr. See bug 26" "$LINENO" 5
  17136. fi
  17137. have_tuntap=no
  17138. # Check whether --enable-tuntap was given.
  17139. if test "${enable_tuntap+set}" = set; then :
  17140. enableval=$enable_tuntap; :
  17141. else
  17142. case "$build_os" in
  17143. linux*)
  17144. ac_fn_c_check_header_mongrel "$LINENO" "linux/if_tun.h" "ac_cv_header_linux_if_tun_h" "$ac_includes_default"
  17145. if test "x$ac_cv_header_linux_if_tun_h" = xyes; then :
  17146. have_tuntap=yes
  17147. fi
  17148. ;;
  17149. freebsd*)
  17150. ac_fn_c_check_header_mongrel "$LINENO" "net/if_tun.h" "ac_cv_header_net_if_tun_h" "$ac_includes_default"
  17151. if test "x$ac_cv_header_net_if_tun_h" = xyes; then :
  17152. have_tuntap=yes
  17153. fi
  17154. ;;
  17155. esac
  17156. fi
  17157. if test $have_tuntap = yes ; then
  17158. $as_echo "#define HAVE_TUNTAP 1" >>confdefs.h
  17159. fi
  17160. foundpcap=no
  17161. pf_ring_found=no
  17162. pf_ring_lib=${with_pfring_lib}
  17163. using_pcap_config=no
  17164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcap" >&5
  17165. $as_echo_n "checking for libpcap... " >&6; }
  17166. # Check whether --with-libpcap was given.
  17167. if test "${with_libpcap+set}" = set; then :
  17168. withval=$with_libpcap;
  17169. testdir=$withval
  17170. for incl in ${testdir}/include/pcap.h ${testdir}/pcap.h ${testdir}/pcap/pcap.h; do
  17171. if ! test -f "${incl}"; then
  17172. continue
  17173. fi
  17174. LPCAPINC=${incl}
  17175. LPCAPINCDIR=${testdir}
  17176. if test $dynamic_link = yes; then
  17177. for ext in .dylib .so .tbd ; do
  17178. for dir in . lib lib64 lib/${host_cpu}-${host_os} ${host_cpu}-${host_os} lib/${MULTIARCH} ${MULTIARCH}; do
  17179. sharefile=$(ls ${testdir}/$dir/libpcap${ext}* 2> /dev/null | sort | head -n1)
  17180. if test -n "${sharefile}"; then
  17181. LPCAPLIB="-L$(dirname ${sharefile}) -lpcap"
  17182. foundpcap=$testdir
  17183. break
  17184. fi
  17185. done
  17186. if ! test $foundpcap = no; then
  17187. break
  17188. fi
  17189. done
  17190. else
  17191. for ext in ${libext} .a .A.tbd ; do
  17192. for dir in . lib lib64 lib/${host_cpu}-${host_os} ${host_cpu}-${host_os} lib/${MULTIARCH} ${MULTIARCH}; do
  17193. staticfile=$(ls ${testdir}/$dir/libpcap${ext} 2> /dev/null | sort | head -n1)
  17194. if test -n "${staticfile}"; then
  17195. LPCAPLIB="${staticfile}"
  17196. foundpcap=${testdir}
  17197. break
  17198. fi
  17199. done
  17200. if ! test $foundpcap = no; then
  17201. ## could be PF_RING
  17202. #
  17203. # library is static and in PF_RING build tree
  17204. #
  17205. # Need access to libpfring library
  17206. # and must find an associated libpfring.a
  17207. if test -n "${with_pfring_lib}"; then
  17208. if test -f ${with_pfring_lib}; then
  17209. pf_ring_lib=${with_pfring_lib}
  17210. pf_ring_found=yes
  17211. else
  17212. as_fn_error $? "\"Unable to find PF_RING library ${with_pfring_lib}\"" "$LINENO" 5
  17213. fi
  17214. else
  17215. ## search locally for most likely PF_RING library
  17216. for lib in ${foundpcap}/../lib/libs/libpfring_zc_${host_cpu}.a \
  17217. ${foundpcap}/../lib/libs/libpfring_dna_${host_cpu}.a \
  17218. ${foundpcap}/../lib/libs/libpfring_zero_${host_cpu}.a \
  17219. ${foundpcap}/../lib/libs/libpfring_nt_${host_cpu}.a \
  17220. ${foundpcap}/../lib/libpfring.a; do
  17221. if test -f "${lib}"; then
  17222. pf_ring_lib=${lib}
  17223. pf_ring_found=yes
  17224. break
  17225. fi
  17226. done
  17227. fi
  17228. break
  17229. fi
  17230. done
  17231. fi
  17232. if test $foundpcap = no; then
  17233. as_fn_error $? "\"Unable to find matching library for header file in ${testdir}\"" "$LINENO" 5
  17234. fi
  17235. break
  17236. done
  17237. else
  17238. #
  17239. # Look for pcap-config.
  17240. #
  17241. # I wish this option could be the default, but it is only enabled with --enable-pcapconfig
  17242. #
  17243. # The issue is that libpcap is one of those libraries that is nearly impossible to set up
  17244. # properly across all platforms. The 'pcap-config' script is shipped with new versions of libpcap,
  17245. # and was created to address portability issues. Unfortunately, the script is not updated properly
  17246. # outside of the base distribution. Examples: PF_RING requires 'pthreads', 'numa' and 'rt', but
  17247. # this is not reflect that in the script. OS X Xcode 10.11 SDK creates its own very broken
  17248. # 'pcap-config' script that only occassionally works for dynamic defintions, and defintely
  17249. # does not work for static.
  17250. #
  17251. # The ability to enable this script exists for corner cases where libpcap distributions starts
  17252. # using even more libraries than I am currently not aware of. Originally, you only had to worry
  17253. # about 'nl', but now we have to be prepared to add 'nl-3', 'nl-genl-3' and 'dbus-1' to make
  17254. # libpcap fucntional. In the future, there may be more.
  17255. #
  17256. # (sigh)
  17257. #
  17258. # So, in the future if libpcap changes and stops working, try setting --enable-pcapconfig. It
  17259. # it may work for you.
  17260. if test $enable_pcap_config = yes; then
  17261. if test -n "$ac_tool_prefix"; then
  17262. # Extract the first word of "${ac_tool_prefix}pcap-config", so it can be a program name with args.
  17263. set dummy ${ac_tool_prefix}pcap-config; ac_word=$2
  17264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17265. $as_echo_n "checking for $ac_word... " >&6; }
  17266. if ${ac_cv_path_PCAP_CONFIG+:} false; then :
  17267. $as_echo_n "(cached) " >&6
  17268. else
  17269. case $PCAP_CONFIG in
  17270. [\\/]* | ?:[\\/]*)
  17271. ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
  17272. ;;
  17273. *)
  17274. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17275. for as_dir in $PATH
  17276. do
  17277. IFS=$as_save_IFS
  17278. test -z "$as_dir" && as_dir=.
  17279. for ac_exec_ext in '' $ac_executable_extensions; do
  17280. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17281. ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17282. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17283. break 2
  17284. fi
  17285. done
  17286. done
  17287. IFS=$as_save_IFS
  17288. ;;
  17289. esac
  17290. fi
  17291. PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
  17292. if test -n "$PCAP_CONFIG"; then
  17293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCAP_CONFIG" >&5
  17294. $as_echo "$PCAP_CONFIG" >&6; }
  17295. else
  17296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17297. $as_echo "no" >&6; }
  17298. fi
  17299. fi
  17300. if test -z "$ac_cv_path_PCAP_CONFIG"; then
  17301. ac_pt_PCAP_CONFIG=$PCAP_CONFIG
  17302. # Extract the first word of "pcap-config", so it can be a program name with args.
  17303. set dummy pcap-config; ac_word=$2
  17304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17305. $as_echo_n "checking for $ac_word... " >&6; }
  17306. if ${ac_cv_path_ac_pt_PCAP_CONFIG+:} false; then :
  17307. $as_echo_n "(cached) " >&6
  17308. else
  17309. case $ac_pt_PCAP_CONFIG in
  17310. [\\/]* | ?:[\\/]*)
  17311. ac_cv_path_ac_pt_PCAP_CONFIG="$ac_pt_PCAP_CONFIG" # Let the user override the test with a path.
  17312. ;;
  17313. *)
  17314. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17315. for as_dir in $PATH
  17316. do
  17317. IFS=$as_save_IFS
  17318. test -z "$as_dir" && as_dir=.
  17319. for ac_exec_ext in '' $ac_executable_extensions; do
  17320. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17321. ac_cv_path_ac_pt_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17322. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17323. break 2
  17324. fi
  17325. done
  17326. done
  17327. IFS=$as_save_IFS
  17328. ;;
  17329. esac
  17330. fi
  17331. ac_pt_PCAP_CONFIG=$ac_cv_path_ac_pt_PCAP_CONFIG
  17332. if test -n "$ac_pt_PCAP_CONFIG"; then
  17333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PCAP_CONFIG" >&5
  17334. $as_echo "$ac_pt_PCAP_CONFIG" >&6; }
  17335. else
  17336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17337. $as_echo "no" >&6; }
  17338. fi
  17339. if test "x$ac_pt_PCAP_CONFIG" = x; then
  17340. PCAP_CONFIG=""
  17341. else
  17342. case $cross_compiling:$ac_tool_warned in
  17343. yes:)
  17344. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17345. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17346. ac_tool_warned=yes ;;
  17347. esac
  17348. PCAP_CONFIG=$ac_pt_PCAP_CONFIG
  17349. fi
  17350. else
  17351. PCAP_CONFIG="$ac_cv_path_PCAP_CONFIG"
  17352. fi
  17353. if test -n "$PCAP_CONFIG"; then
  17354. #
  17355. # Found - use it to get the include flags for
  17356. # libpcap and the flags to link with libpcap.
  17357. #
  17358. # Please read section 11.6 "Shell Substitutions"
  17359. # in the autoconf manual before doing anything
  17360. # to this that involves quoting. Especially note
  17361. # the statement "There is just no portable way to use
  17362. # double-quoted strings inside double-quoted back-quoted
  17363. # expressions (pfew!)."
  17364. #
  17365. if test $dynamic_link = yes; then
  17366. LPCAPLIB=$($PCAP_CONFIG --libs)
  17367. else
  17368. LPCAPLIB=$($PCAP_CONFIG --libs --static)
  17369. fi
  17370. CFLAGS="$CFLAGS $($PCAP_CONFIG --cflags)"
  17371. if test -n "$LPCAPLIB"; then
  17372. foundpcap=yes
  17373. using_pcap_config=yes
  17374. else
  17375. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to find libpcap using pcap-config" >&5
  17376. $as_echo "$as_me: WARNING: Unable to find libpcap using pcap-config" >&2;}
  17377. fi
  17378. fi
  17379. fi
  17380. if test ! $foundpcap = yes; then
  17381. #
  17382. # Not found; look for pcap.
  17383. #
  17384. for testdir in /usr/local /opt/local /usr /wpdpack $MACOSX_SDK_PATH/usr /usr/local/opt/libpcap ; do
  17385. if test -f "${testdir}/include/pcap.h"; then
  17386. LPCAPINC="${testdir}/include/pcap.h"
  17387. LPCAPINCDIR="${testdir}/include"
  17388. if test $dynamic_link = yes; then
  17389. for ext in .dylib .so .tbd; do
  17390. for dir in . lib lib64 ${host_cpu} lib/${host_cpu} ${host_cpu}-${host_os} lib/${host_cpu}-${host_os} ${MULTIARCH} lib/${MULTIARCH}; do
  17391. sharefile=$(ls "${testdir}/$dir/libpcap${ext}" 2> /dev/null | sort | head -n1)
  17392. if test -n "${sharefile}"; then
  17393. LPCAPLIB="-L$(dirname ${sharefile}) -lpcap"
  17394. foundpcap=$testdir
  17395. break
  17396. fi
  17397. done
  17398. if ! test $foundpcap = no; then
  17399. break
  17400. fi
  17401. done
  17402. fi
  17403. if test $foundpcap = no ; then
  17404. for ext in ${libext} .a .A.tbd ; do
  17405. for dir in . lib lib64 lib/${host_cpu}-${host_os} ${host_cpu}-${host_os} lib/${MULTIARCH} ${MULTIARCH}; do
  17406. staticfile=$(ls "${testdir}/$dir/libpcap${ext}" 2> /dev/null | sort | head -n1)
  17407. if test -n "${staticfile}"; then
  17408. LPCAPLIB="${staticfile}"
  17409. foundpcap=$testdir
  17410. break
  17411. fi
  17412. done
  17413. if ! test $foundpcap = no; then
  17414. break
  17415. fi
  17416. done
  17417. fi
  17418. if test $foundpcap = no -a -f "${testdir}/lib/libwpcap.${libext}" ; then
  17419. LPCAPLIB="${testdir}/lib/libwpcap.${libext}"
  17420. $as_echo "#define HAVE_WINPCAP 1" >>confdefs.h
  17421. foundpcap=$testdir
  17422. fi
  17423. fi
  17424. if ! test $foundpcap = no; then
  17425. break
  17426. fi
  17427. done
  17428. fi
  17429. fi
  17430. if test $foundpcap = no ; then
  17431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17432. $as_echo "no" >&6; }
  17433. as_fn_error $? "libpcap not found" "$LINENO" 5
  17434. else
  17435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $foundpcap" >&5
  17436. $as_echo "$foundpcap" >&6; }
  17437. fi
  17438. # libpcap can require libnl
  17439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nl_handle_alloc" >&5
  17440. $as_echo_n "checking for library containing nl_handle_alloc... " >&6; }
  17441. if ${ac_cv_search_nl_handle_alloc+:} false; then :
  17442. $as_echo_n "(cached) " >&6
  17443. else
  17444. ac_func_search_save_LIBS=$LIBS
  17445. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17446. /* end confdefs.h. */
  17447. /* Override any GCC internal prototype to avoid an error.
  17448. Use char because int might match the return type of a GCC
  17449. builtin and then its argument prototype would still apply. */
  17450. #ifdef __cplusplus
  17451. extern "C"
  17452. #endif
  17453. char nl_handle_alloc ();
  17454. int
  17455. main ()
  17456. {
  17457. return nl_handle_alloc ();
  17458. ;
  17459. return 0;
  17460. }
  17461. _ACEOF
  17462. for ac_lib in '' nl; do
  17463. if test -z "$ac_lib"; then
  17464. ac_res="none required"
  17465. else
  17466. ac_res=-l$ac_lib
  17467. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  17468. fi
  17469. if ac_fn_c_try_link "$LINENO"; then :
  17470. ac_cv_search_nl_handle_alloc=$ac_res
  17471. fi
  17472. rm -f core conftest.err conftest.$ac_objext \
  17473. conftest$ac_exeext
  17474. if ${ac_cv_search_nl_handle_alloc+:} false; then :
  17475. break
  17476. fi
  17477. done
  17478. if ${ac_cv_search_nl_handle_alloc+:} false; then :
  17479. else
  17480. ac_cv_search_nl_handle_alloc=no
  17481. fi
  17482. rm conftest.$ac_ext
  17483. LIBS=$ac_func_search_save_LIBS
  17484. fi
  17485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nl_handle_alloc" >&5
  17486. $as_echo "$ac_cv_search_nl_handle_alloc" >&6; }
  17487. ac_res=$ac_cv_search_nl_handle_alloc
  17488. if test "$ac_res" != no; then :
  17489. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  17490. { $as_echo "$as_me:${as_lineno-$LINENO}: Unable to find nl library - may be needed by libpcap" >&5
  17491. $as_echo "$as_me: Unable to find nl library - may be needed by libpcap" >&6;}
  17492. fi
  17493. ##
  17494. ## If not automatically configured,
  17495. ## check for newer and full-featured libpcap's
  17496. ##
  17497. if ! test $using_pcap_config = yes; then
  17498. ## newer libpcap requires dbus and latest nl (e.g. -lnl-genl-3 -lnl-3 -ldbus-1)
  17499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_cache_alloc in -lnl" >&5
  17500. $as_echo_n "checking for nl_cache_alloc in -lnl... " >&6; }
  17501. if ${ac_cv_lib_nl_nl_cache_alloc+:} false; then :
  17502. $as_echo_n "(cached) " >&6
  17503. else
  17504. ac_check_lib_save_LIBS=$LIBS
  17505. LIBS="-lnl $LIBS"
  17506. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17507. /* end confdefs.h. */
  17508. /* Override any GCC internal prototype to avoid an error.
  17509. Use char because int might match the return type of a GCC
  17510. builtin and then its argument prototype would still apply. */
  17511. #ifdef __cplusplus
  17512. extern "C"
  17513. #endif
  17514. char nl_cache_alloc ();
  17515. int
  17516. main ()
  17517. {
  17518. return nl_cache_alloc ();
  17519. ;
  17520. return 0;
  17521. }
  17522. _ACEOF
  17523. if ac_fn_c_try_link "$LINENO"; then :
  17524. ac_cv_lib_nl_nl_cache_alloc=yes
  17525. else
  17526. ac_cv_lib_nl_nl_cache_alloc=no
  17527. fi
  17528. rm -f core conftest.err conftest.$ac_objext \
  17529. conftest$ac_exeext conftest.$ac_ext
  17530. LIBS=$ac_check_lib_save_LIBS
  17531. fi
  17532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_cache_alloc" >&5
  17533. $as_echo "$ac_cv_lib_nl_nl_cache_alloc" >&6; }
  17534. if test "x$ac_cv_lib_nl_nl_cache_alloc" = xyes; then :
  17535. nl_found=yes
  17536. fi
  17537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genl_connect in -lnl-genl-3" >&5
  17538. $as_echo_n "checking for genl_connect in -lnl-genl-3... " >&6; }
  17539. if ${ac_cv_lib_nl_genl_3_genl_connect+:} false; then :
  17540. $as_echo_n "(cached) " >&6
  17541. else
  17542. ac_check_lib_save_LIBS=$LIBS
  17543. LIBS="-lnl-genl-3 $LIBS"
  17544. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17545. /* end confdefs.h. */
  17546. /* Override any GCC internal prototype to avoid an error.
  17547. Use char because int might match the return type of a GCC
  17548. builtin and then its argument prototype would still apply. */
  17549. #ifdef __cplusplus
  17550. extern "C"
  17551. #endif
  17552. char genl_connect ();
  17553. int
  17554. main ()
  17555. {
  17556. return genl_connect ();
  17557. ;
  17558. return 0;
  17559. }
  17560. _ACEOF
  17561. if ac_fn_c_try_link "$LINENO"; then :
  17562. ac_cv_lib_nl_genl_3_genl_connect=yes
  17563. else
  17564. ac_cv_lib_nl_genl_3_genl_connect=no
  17565. fi
  17566. rm -f core conftest.err conftest.$ac_objext \
  17567. conftest$ac_exeext conftest.$ac_ext
  17568. LIBS=$ac_check_lib_save_LIBS
  17569. fi
  17570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_genl_3_genl_connect" >&5
  17571. $as_echo "$ac_cv_lib_nl_genl_3_genl_connect" >&6; }
  17572. if test "x$ac_cv_lib_nl_genl_3_genl_connect" = xyes; then :
  17573. nl_genl_3_found=yes
  17574. fi
  17575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_cache_alloc in -lnl-3" >&5
  17576. $as_echo_n "checking for nl_cache_alloc in -lnl-3... " >&6; }
  17577. if ${ac_cv_lib_nl_3_nl_cache_alloc+:} false; then :
  17578. $as_echo_n "(cached) " >&6
  17579. else
  17580. ac_check_lib_save_LIBS=$LIBS
  17581. LIBS="-lnl-3 $LIBS"
  17582. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17583. /* end confdefs.h. */
  17584. /* Override any GCC internal prototype to avoid an error.
  17585. Use char because int might match the return type of a GCC
  17586. builtin and then its argument prototype would still apply. */
  17587. #ifdef __cplusplus
  17588. extern "C"
  17589. #endif
  17590. char nl_cache_alloc ();
  17591. int
  17592. main ()
  17593. {
  17594. return nl_cache_alloc ();
  17595. ;
  17596. return 0;
  17597. }
  17598. _ACEOF
  17599. if ac_fn_c_try_link "$LINENO"; then :
  17600. ac_cv_lib_nl_3_nl_cache_alloc=yes
  17601. else
  17602. ac_cv_lib_nl_3_nl_cache_alloc=no
  17603. fi
  17604. rm -f core conftest.err conftest.$ac_objext \
  17605. conftest$ac_exeext conftest.$ac_ext
  17606. LIBS=$ac_check_lib_save_LIBS
  17607. fi
  17608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_3_nl_cache_alloc" >&5
  17609. $as_echo "$ac_cv_lib_nl_3_nl_cache_alloc" >&6; }
  17610. if test "x$ac_cv_lib_nl_3_nl_cache_alloc" = xyes; then :
  17611. nl_3_found=yes
  17612. fi
  17613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_malloc in -ldbus-1" >&5
  17614. $as_echo_n "checking for dbus_malloc in -ldbus-1... " >&6; }
  17615. if ${ac_cv_lib_dbus_1_dbus_malloc+:} false; then :
  17616. $as_echo_n "(cached) " >&6
  17617. else
  17618. ac_check_lib_save_LIBS=$LIBS
  17619. LIBS="-ldbus-1 $LIBS"
  17620. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17621. /* end confdefs.h. */
  17622. /* Override any GCC internal prototype to avoid an error.
  17623. Use char because int might match the return type of a GCC
  17624. builtin and then its argument prototype would still apply. */
  17625. #ifdef __cplusplus
  17626. extern "C"
  17627. #endif
  17628. char dbus_malloc ();
  17629. int
  17630. main ()
  17631. {
  17632. return dbus_malloc ();
  17633. ;
  17634. return 0;
  17635. }
  17636. _ACEOF
  17637. if ac_fn_c_try_link "$LINENO"; then :
  17638. ac_cv_lib_dbus_1_dbus_malloc=yes
  17639. else
  17640. ac_cv_lib_dbus_1_dbus_malloc=no
  17641. fi
  17642. rm -f core conftest.err conftest.$ac_objext \
  17643. conftest$ac_exeext conftest.$ac_ext
  17644. LIBS=$ac_check_lib_save_LIBS
  17645. fi
  17646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_1_dbus_malloc" >&5
  17647. $as_echo "$ac_cv_lib_dbus_1_dbus_malloc" >&6; }
  17648. if test "x$ac_cv_lib_dbus_1_dbus_malloc" = xyes; then :
  17649. dbus_1_found=yes
  17650. fi
  17651. if test "$nl_found" = "yes"; then
  17652. LPCAPLIB="$LPCAPLIB -lnl"
  17653. fi
  17654. if test "$nl_genl_3_found" = "yes"; then
  17655. LPCAPLIB="$LPCAPLIB -lnl-genl-3"
  17656. fi
  17657. if test "$nl_3_found" = "yes"; then
  17658. LPCAPLIB="$LPCAPLIB -lnl-3"
  17659. fi
  17660. if test "$dbus_1_found" = "yes"; then
  17661. LPCAPLIB="$LPCAPLIB -ldbus-1"
  17662. fi
  17663. ## See if prereqs for PF_RING exist
  17664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for numa_available in -lnuma" >&5
  17665. $as_echo_n "checking for numa_available in -lnuma... " >&6; }
  17666. if ${ac_cv_lib_numa_numa_available+:} false; then :
  17667. $as_echo_n "(cached) " >&6
  17668. else
  17669. ac_check_lib_save_LIBS=$LIBS
  17670. LIBS="-lnuma $LIBS"
  17671. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17672. /* end confdefs.h. */
  17673. /* Override any GCC internal prototype to avoid an error.
  17674. Use char because int might match the return type of a GCC
  17675. builtin and then its argument prototype would still apply. */
  17676. #ifdef __cplusplus
  17677. extern "C"
  17678. #endif
  17679. char numa_available ();
  17680. int
  17681. main ()
  17682. {
  17683. return numa_available ();
  17684. ;
  17685. return 0;
  17686. }
  17687. _ACEOF
  17688. if ac_fn_c_try_link "$LINENO"; then :
  17689. ac_cv_lib_numa_numa_available=yes
  17690. else
  17691. ac_cv_lib_numa_numa_available=no
  17692. fi
  17693. rm -f core conftest.err conftest.$ac_objext \
  17694. conftest$ac_exeext conftest.$ac_ext
  17695. LIBS=$ac_check_lib_save_LIBS
  17696. fi
  17697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_numa_numa_available" >&5
  17698. $as_echo "$ac_cv_lib_numa_numa_available" >&6; }
  17699. if test "x$ac_cv_lib_numa_numa_available" = xyes; then :
  17700. numa_found=yes
  17701. fi
  17702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
  17703. $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
  17704. if ${ac_cv_lib_pthread_pthread_create+:} false; then :
  17705. $as_echo_n "(cached) " >&6
  17706. else
  17707. ac_check_lib_save_LIBS=$LIBS
  17708. LIBS="-lpthread $LIBS"
  17709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17710. /* end confdefs.h. */
  17711. /* Override any GCC internal prototype to avoid an error.
  17712. Use char because int might match the return type of a GCC
  17713. builtin and then its argument prototype would still apply. */
  17714. #ifdef __cplusplus
  17715. extern "C"
  17716. #endif
  17717. char pthread_create ();
  17718. int
  17719. main ()
  17720. {
  17721. return pthread_create ();
  17722. ;
  17723. return 0;
  17724. }
  17725. _ACEOF
  17726. if ac_fn_c_try_link "$LINENO"; then :
  17727. ac_cv_lib_pthread_pthread_create=yes
  17728. else
  17729. ac_cv_lib_pthread_pthread_create=no
  17730. fi
  17731. rm -f core conftest.err conftest.$ac_objext \
  17732. conftest$ac_exeext conftest.$ac_ext
  17733. LIBS=$ac_check_lib_save_LIBS
  17734. fi
  17735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
  17736. $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
  17737. if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
  17738. pthread_found=yes
  17739. fi
  17740. if test $pf_ring_found = yes; then
  17741. if ! test "${numa_found}" = "yes"; then
  17742. as_fn_error $? "PF_RING requires libnuma and/or libnuma-dev" "$LINENO" 5
  17743. fi
  17744. if ! test "${pthread_found}" = "yes"; then
  17745. as_fn_error $? "PF_RING requires libpthread" "$LINENO" 5
  17746. fi
  17747. LPCAPLIB="$LPCAPLIB ${pf_ring_lib} -lnuma -lpthread -lrt"
  17748. fi
  17749. fi
  17750. OLDLIBS="$LIBS"
  17751. if test -n "$LPCAPINCDIR"; then
  17752. OLDCFLAGS="$CFLAGS -I$LPCAPINCDIR"
  17753. CFLAGS="$CFLAGS -I$LPCAPINCDIR"
  17754. else
  17755. OLDCFLAGS="$CFLAGS"
  17756. LPCAPINCDIR=$(echo $CFLAGS | sed -e 's/^\-I//')
  17757. LPCAPINC="$LPCAPINCDIR/pcap.h"
  17758. fi
  17759. LIBS="$LPCAPLIB"
  17760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pcap_get_pfring_id" >&5
  17761. $as_echo_n "checking for library containing pcap_get_pfring_id... " >&6; }
  17762. if ${ac_cv_search_pcap_get_pfring_id+:} false; then :
  17763. $as_echo_n "(cached) " >&6
  17764. else
  17765. ac_func_search_save_LIBS=$LIBS
  17766. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17767. /* end confdefs.h. */
  17768. /* Override any GCC internal prototype to avoid an error.
  17769. Use char because int might match the return type of a GCC
  17770. builtin and then its argument prototype would still apply. */
  17771. #ifdef __cplusplus
  17772. extern "C"
  17773. #endif
  17774. char pcap_get_pfring_id ();
  17775. int
  17776. main ()
  17777. {
  17778. return pcap_get_pfring_id ();
  17779. ;
  17780. return 0;
  17781. }
  17782. _ACEOF
  17783. for ac_lib in '' pcap; do
  17784. if test -z "$ac_lib"; then
  17785. ac_res="none required"
  17786. else
  17787. ac_res=-l$ac_lib
  17788. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  17789. fi
  17790. if ac_fn_c_try_link "$LINENO"; then :
  17791. ac_cv_search_pcap_get_pfring_id=$ac_res
  17792. fi
  17793. rm -f core conftest.err conftest.$ac_objext \
  17794. conftest$ac_exeext
  17795. if ${ac_cv_search_pcap_get_pfring_id+:} false; then :
  17796. break
  17797. fi
  17798. done
  17799. if ${ac_cv_search_pcap_get_pfring_id+:} false; then :
  17800. else
  17801. ac_cv_search_pcap_get_pfring_id=no
  17802. fi
  17803. rm conftest.$ac_ext
  17804. LIBS=$ac_func_search_save_LIBS
  17805. fi
  17806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pcap_get_pfring_id" >&5
  17807. $as_echo "$ac_cv_search_pcap_get_pfring_id" >&6; }
  17808. ac_res=$ac_cv_search_pcap_get_pfring_id
  17809. if test "$ac_res" != no; then :
  17810. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  17811. $as_echo "#define HAVE_PF_RING_PCAP 1" >>confdefs.h
  17812. fi
  17813. ## Does libpcap work with selected libraries?
  17814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pcap_close" >&5
  17815. $as_echo_n "checking for library containing pcap_close... " >&6; }
  17816. if ${ac_cv_search_pcap_close+:} false; then :
  17817. $as_echo_n "(cached) " >&6
  17818. else
  17819. ac_func_search_save_LIBS=$LIBS
  17820. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17821. /* end confdefs.h. */
  17822. /* Override any GCC internal prototype to avoid an error.
  17823. Use char because int might match the return type of a GCC
  17824. builtin and then its argument prototype would still apply. */
  17825. #ifdef __cplusplus
  17826. extern "C"
  17827. #endif
  17828. char pcap_close ();
  17829. int
  17830. main ()
  17831. {
  17832. return pcap_close ();
  17833. ;
  17834. return 0;
  17835. }
  17836. _ACEOF
  17837. for ac_lib in '' pcap; do
  17838. if test -z "$ac_lib"; then
  17839. ac_res="none required"
  17840. else
  17841. ac_res=-l$ac_lib
  17842. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  17843. fi
  17844. if ac_fn_c_try_link "$LINENO"; then :
  17845. ac_cv_search_pcap_close=$ac_res
  17846. fi
  17847. rm -f core conftest.err conftest.$ac_objext \
  17848. conftest$ac_exeext
  17849. if ${ac_cv_search_pcap_close+:} false; then :
  17850. break
  17851. fi
  17852. done
  17853. if ${ac_cv_search_pcap_close+:} false; then :
  17854. else
  17855. ac_cv_search_pcap_close=no
  17856. fi
  17857. rm conftest.$ac_ext
  17858. LIBS=$ac_func_search_save_LIBS
  17859. fi
  17860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pcap_close" >&5
  17861. $as_echo "$ac_cv_search_pcap_close" >&6; }
  17862. ac_res=$ac_cv_search_pcap_close
  17863. if test "$ac_res" != no; then :
  17864. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  17865. else
  17866. as_fn_error $? "Unable to link libpcap in ${foundpcap}" "$LINENO" 5
  17867. fi
  17868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcap version" >&5
  17869. $as_echo_n "checking for libpcap version... " >&6; }
  17870. if test "$cross_compiling" = yes; then :
  17871. libpcap_version_096=yes
  17872. else
  17873. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17874. /* end confdefs.h. */
  17875. #include <string.h>
  17876. #include <stdlib.h>
  17877. #include <stdio.h>
  17878. #include "$LPCAPINC"
  17879. #define PCAP_TEST "0.9.6"
  17880. int
  17881. main ()
  17882. {
  17883. /*
  17884. * simple proggy to test the version of libpcap
  17885. * returns zero if version >= 0.9.6
  17886. * or one otherwise
  17887. */
  17888. if (strncmp(pcap_lib_version(), PCAP_TEST, 5) >= 0) {
  17889. printf("%s ", pcap_lib_version());
  17890. exit(0);
  17891. }
  17892. exit(1);
  17893. ;
  17894. return 0;
  17895. }
  17896. _ACEOF
  17897. if ac_fn_c_try_run "$LINENO"; then :
  17898. libpcap_version_096=yes
  17899. else
  17900. libpcap_version_096=no
  17901. fi
  17902. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17903. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17904. fi
  17905. if test "$cross_compiling" = yes; then :
  17906. libpcap_ver8=yes
  17907. else
  17908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17909. /* end confdefs.h. */
  17910. #include <string.h>
  17911. #include <stdlib.h>
  17912. #include <stdio.h>
  17913. #include "$LPCAPINC"
  17914. #define PCAP_TEST "0.8"
  17915. int
  17916. main ()
  17917. {
  17918. /*
  17919. * simple proggy to test the version of libpcap
  17920. * returns zero if version >= 0.8.0
  17921. * or one otherwise
  17922. */
  17923. if (strncmp(pcap_lib_version(), PCAP_TEST, 3) >= 0)
  17924. exit(0);
  17925. /* winpcap? */
  17926. if (strncmp(pcap_lib_version(), "WinPcap", 7) == 0)
  17927. exit(0);
  17928. exit(1);
  17929. ;
  17930. return 0;
  17931. }
  17932. _ACEOF
  17933. if ac_fn_c_try_run "$LINENO"; then :
  17934. libpcap_ver8=yes
  17935. else
  17936. libpcap_ver8=no
  17937. fi
  17938. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17939. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17940. fi
  17941. if test "$cross_compiling" = yes; then :
  17942. libpcap_ver7=yes
  17943. else
  17944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17945. /* end confdefs.h. */
  17946. #include <string.h>
  17947. #include <stdlib.h>
  17948. #include <stdio.h>
  17949. #include "$LPCAPINC"
  17950. #define PCAP_TEST "0.7.2"
  17951. extern const char pcap_version[[]]; /* double up since autoconf escapes things */
  17952. int
  17953. main ()
  17954. {
  17955. /*
  17956. * simple proggy to test the version of libpcap
  17957. * returns zero if version >= 0.7.2
  17958. * or one otherwise
  17959. */
  17960. if (strncmp(pcap_version, PCAP_TEST, 5) >= 0)
  17961. exit(0);
  17962. exit(1);
  17963. ;
  17964. return 0;
  17965. }
  17966. _ACEOF
  17967. if ac_fn_c_try_run "$LINENO"; then :
  17968. libpcap_ver7=yes
  17969. else
  17970. libpcap_ver7=no
  17971. fi
  17972. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17973. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17974. fi
  17975. if test x$libpcap_ver8 = xyes ; then
  17976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: >= 0.8.0" >&5
  17977. $as_echo ">= 0.8.0" >&6; }
  17978. elif test x$libpcap_ver7 = xyes ; then
  17979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: >= 0.7.2" >&5
  17980. $as_echo ">= 0.7.2" >&6; }
  17981. else
  17982. as_fn_error $? "Libpcap versions < 0.7.2 are not supported
  17983. Please upgrade to version 0.7.2 or better" "$LINENO" 5
  17984. fi
  17985. libpcap_version=unknown
  17986. if test x$libpcap_version_096 = xyes ; then
  17987. libpcap_version=">= 0.9.6"
  17988. elif test x$libpcap_ver8 = xyes ; then
  17989. libpcap_version=">= 0.8.0"
  17990. elif test x$libcap_ver7 = xyes ; then
  17991. libpcap_version=">= 0.7.0"
  17992. fi
  17993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_setnonblock" >&5
  17994. $as_echo_n "checking for pcap_setnonblock... " >&6; }
  17995. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17996. /* end confdefs.h. */
  17997. #include <stdio.h>
  17998. #include <stdlib.h>
  17999. #include <string.h>
  18000. #include "$LPCAPINC"
  18001. int
  18002. main ()
  18003. {
  18004. pcap_t *p;
  18005. char *errbuf;
  18006. pcap_setnonblock(p, 1, errbuf);
  18007. exit(0);
  18008. ;
  18009. return 0;
  18010. }
  18011. _ACEOF
  18012. if ac_fn_c_try_link "$LINENO"; then :
  18013. have_pcap_setnonblock=yes
  18014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18015. $as_echo "yes" >&6; }
  18016. else
  18017. have_pcap_setnonblock=no
  18018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18019. $as_echo "no" >&6; }
  18020. fi
  18021. rm -f core conftest.err conftest.$ac_objext \
  18022. conftest$ac_exeext conftest.$ac_ext
  18023. if test $have_pcap_setnonblock = yes ; then
  18024. $as_echo "#define HAVE_PCAP_SETNONBLOCK 1" >>confdefs.h
  18025. fi
  18026. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_datalink_val_to_description" >&5
  18027. $as_echo_n "checking for pcap_datalink_val_to_description... " >&6; }
  18028. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18029. /* end confdefs.h. */
  18030. #include <stdio.h>
  18031. #include <stdlib.h>
  18032. #include <string.h>
  18033. #include "$LPCAPINC"
  18034. int
  18035. main ()
  18036. {
  18037. if (strcmp(pcap_datalink_val_to_description(1), "Ethernet (10Mb)") == 0)
  18038. exit(0);
  18039. exit(1);
  18040. ;
  18041. return 0;
  18042. }
  18043. _ACEOF
  18044. if ac_fn_c_try_link "$LINENO"; then :
  18045. have_dlt_to_desc=yes
  18046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18047. $as_echo "yes" >&6; }
  18048. else
  18049. have_dlt_to_desc=no
  18050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18051. $as_echo "no" >&6; }
  18052. fi
  18053. rm -f core conftest.err conftest.$ac_objext \
  18054. conftest$ac_exeext conftest.$ac_ext
  18055. if test $have_dlt_to_desc = yes ; then
  18056. $as_echo "#define HAVE_DLT_VAL_TO_DESC 1" >>confdefs.h
  18057. fi
  18058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_get_selectable_fd" >&5
  18059. $as_echo_n "checking for pcap_get_selectable_fd... " >&6; }
  18060. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18061. /* end confdefs.h. */
  18062. #include <stdio.h>
  18063. #include <stdlib.h>
  18064. #include <string.h>
  18065. #include "$LPCAPINC"
  18066. int
  18067. main ()
  18068. {
  18069. int f;
  18070. pcap_t *p;
  18071. f = pcap_get_selectable_fd(p);
  18072. exit(0);
  18073. ;
  18074. return 0;
  18075. }
  18076. _ACEOF
  18077. if ac_fn_c_try_link "$LINENO"; then :
  18078. have_pcap_get_selectable_fd=yes
  18079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18080. $as_echo "yes" >&6; }
  18081. else
  18082. have_pcap_get_selectable_fd=no
  18083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18084. $as_echo "no" >&6; }
  18085. fi
  18086. rm -f core conftest.err conftest.$ac_objext \
  18087. conftest$ac_exeext conftest.$ac_ext
  18088. if test x$have_pcap_get_selectable_fd = xyes ; then
  18089. $as_echo "#define HAVE_PCAP_GET_SELECTABLE_FD 1" >>confdefs.h
  18090. fi
  18091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_dump_fopen" >&5
  18092. $as_echo_n "checking for pcap_dump_fopen... " >&6; }
  18093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18094. /* end confdefs.h. */
  18095. #include <stdio.h>
  18096. #include <stdlib.h>
  18097. #include <string.h>
  18098. #include "$LPCAPINC"
  18099. int
  18100. main ()
  18101. {
  18102. pcap_dumper_t *dump;
  18103. pcap_t *pcap;
  18104. FILE *foo;
  18105. dump = pcap_dump_fopen(pcap, foo);
  18106. ;
  18107. return 0;
  18108. }
  18109. _ACEOF
  18110. if ac_fn_c_try_link "$LINENO"; then :
  18111. have_pcap_dump_fopen=yes
  18112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18113. $as_echo "yes" >&6; }
  18114. else
  18115. have_pcap_dump_fopen=no
  18116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18117. $as_echo "no" >&6; }
  18118. fi
  18119. rm -f core conftest.err conftest.$ac_objext \
  18120. conftest$ac_exeext conftest.$ac_ext
  18121. if test $have_pcap_dump_fopen = yes ; then
  18122. $as_echo "#define HAVE_PCAP_DUMP_FOPEN 1" >>confdefs.h
  18123. else
  18124. { $as_echo "$as_me:${as_lineno-$LINENO}: --verbose mode requires libpcap >= 0.9.0" >&5
  18125. $as_echo "$as_me: --verbose mode requires libpcap >= 0.9.0" >&6;}
  18126. fi
  18127. have_pcap_inject=no
  18128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_inject sending support" >&5
  18129. $as_echo_n "checking for pcap_inject sending support... " >&6; }
  18130. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18131. /* end confdefs.h. */
  18132. #include <stdio.h>
  18133. #include <stdlib.h>
  18134. #include <string.h>
  18135. #include "$LPCAPINC"
  18136. int
  18137. main ()
  18138. {
  18139. pcap_t *pcap;
  18140. char *buf;
  18141. pcap_inject(pcap, (void *)buf, 0);
  18142. ;
  18143. return 0;
  18144. }
  18145. _ACEOF
  18146. if ac_fn_c_try_link "$LINENO"; then :
  18147. have_pcap_inject=yes
  18148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18149. $as_echo "yes" >&6; }
  18150. else
  18151. have_pcap_inject=no
  18152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18153. $as_echo "no" >&6; }
  18154. fi
  18155. rm -f core conftest.err conftest.$ac_objext \
  18156. conftest$ac_exeext conftest.$ac_ext
  18157. if test $have_pcap_inject = yes ; then
  18158. $as_echo "#define HAVE_PCAP_INJECT 1" >>confdefs.h
  18159. fi
  18160. have_pcap_sendpacket=no
  18161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_sendpacket sending support" >&5
  18162. $as_echo_n "checking for pcap_sendpacket sending support... " >&6; }
  18163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18164. /* end confdefs.h. */
  18165. #include <stdio.h>
  18166. #include <stdlib.h>
  18167. #include <string.h>
  18168. #include "$LPCAPINC"
  18169. int
  18170. main ()
  18171. {
  18172. pcap_t *pcap;
  18173. u_char *buf;
  18174. pcap_sendpacket(pcap, buf, 0);
  18175. ;
  18176. return 0;
  18177. }
  18178. _ACEOF
  18179. if ac_fn_c_try_link "$LINENO"; then :
  18180. have_pcap_sendpacket=yes
  18181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18182. $as_echo "yes" >&6; }
  18183. else
  18184. have_pcap_sendpacket=no
  18185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18186. $as_echo "no" >&6; }
  18187. fi
  18188. rm -f core conftest.err conftest.$ac_objext \
  18189. conftest$ac_exeext conftest.$ac_ext
  18190. if test $have_pcap_sendpacket = yes ; then
  18191. $as_echo "#define HAVE_PCAP_SENDPACKET 1" >>confdefs.h
  18192. fi
  18193. have_pcap_breakloop=no
  18194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_breakloop" >&5
  18195. $as_echo_n "checking for pcap_breakloop... " >&6; }
  18196. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18197. /* end confdefs.h. */
  18198. #include <stdio.h>
  18199. #include <stdlib.h>
  18200. #include <string.h>
  18201. #include "$LPCAPINC"
  18202. int
  18203. main ()
  18204. {
  18205. pcap_t *pcap;
  18206. pcap_sendpacket(pcap);
  18207. ;
  18208. return 0;
  18209. }
  18210. _ACEOF
  18211. if ac_fn_c_try_link "$LINENO"; then :
  18212. have_pcap_breakloop=yes
  18213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18214. $as_echo "yes" >&6; }
  18215. else
  18216. have_pcap_breakloop=no
  18217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18218. $as_echo "no" >&6; }
  18219. fi
  18220. rm -f core conftest.err conftest.$ac_objext \
  18221. conftest$ac_exeext conftest.$ac_ext
  18222. if test $have_pcap_breakloop = yes ; then
  18223. $as_echo "#define HAVE_PCAP_BREAKLOOP 1" >>confdefs.h
  18224. fi
  18225. have_pcap_version=no
  18226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_version" >&5
  18227. $as_echo_n "checking for pcap_version... " >&6; }
  18228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18229. /* end confdefs.h. */
  18230. #include <stdio.h>
  18231. #include <stdlib.h>
  18232. #include <string.h>
  18233. #include "$LPCAPINC"
  18234. extern char pcap_version[];
  18235. int
  18236. main ()
  18237. {
  18238. printf("%s", pcap_version);
  18239. ;
  18240. return 0;
  18241. }
  18242. _ACEOF
  18243. if ac_fn_c_try_link "$LINENO"; then :
  18244. $as_echo "#define HAVE_PCAP_VERSION 1" >>confdefs.h
  18245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18246. $as_echo "yes" >&6; }
  18247. else
  18248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18249. $as_echo "no" >&6; }
  18250. fi
  18251. rm -f core conftest.err conftest.$ac_objext \
  18252. conftest$ac_exeext conftest.$ac_ext
  18253. have_pcap_snapshot=no
  18254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_snapshot" >&5
  18255. $as_echo_n "checking for pcap_snapshot... " >&6; }
  18256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18257. /* end confdefs.h. */
  18258. #include <stdio.h>
  18259. #include <stdlib.h>
  18260. #include <string.h>
  18261. #include "$LPCAPINC"
  18262. int
  18263. main ()
  18264. {
  18265. pcap_t *p;
  18266. int len;
  18267. len = pcap_snapshot(p);
  18268. exit(0);
  18269. ;
  18270. return 0;
  18271. }
  18272. _ACEOF
  18273. if ac_fn_c_try_link "$LINENO"; then :
  18274. have_pcap_snapshot=yes
  18275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18276. $as_echo "yes" >&6; }
  18277. else
  18278. have_pcap_snapshot=no
  18279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18280. $as_echo "no" >&6; }
  18281. fi
  18282. rm -f core conftest.err conftest.$ac_objext \
  18283. conftest$ac_exeext conftest.$ac_ext
  18284. if test $have_pcap_snapshot = yes ; then
  18285. $as_echo "#define HAVE_PCAP_SNAPSHOT 1" >>confdefs.h
  18286. fi
  18287. # Tcpbridge requires libpcap and pcap_sendpacket()
  18288. enable_tcpbridge=no
  18289. if test x$foundpcap != xno -a x$have_pcap_sendpacket = xyes ; then
  18290. # if we have pcap_sendpacket() then we can build tcpbridge on non-BPF systems
  18291. if test x$have_bpf = xno; then
  18292. $as_echo "#define ENABLE_TCPBRIDGE 1" >>confdefs.h
  18293. enable_tcpbridge=yes
  18294. { $as_echo "$as_me:${as_lineno-$LINENO}: Building tcpbridge" >&5
  18295. $as_echo "$as_me: Building tcpbridge" >&6;}
  18296. # BPF systems need to also have pcap_setnonblock()
  18297. elif test x$have_pcap_setnonblock = xyes ; then
  18298. $as_echo "#define ENABLE_TCPBRIDGE 1" >>confdefs.h
  18299. enable_tcpbridge=yes
  18300. { $as_echo "$as_me:${as_lineno-$LINENO}: Building tcpbridge" >&5
  18301. $as_echo "$as_me: Building tcpbridge" >&6;}
  18302. else
  18303. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to build tcpbridge. Try installing latest libpcap!" >&5
  18304. $as_echo "$as_me: WARNING: Unable to build tcpbridge. Try installing latest libpcap!" >&2;}
  18305. fi
  18306. fi
  18307. if test x$enable_tcpbridge = xyes ; then
  18308. COMPILE_TCPBRIDGE_TRUE=
  18309. COMPILE_TCPBRIDGE_FALSE='#'
  18310. else
  18311. COMPILE_TCPBRIDGE_TRUE='#'
  18312. COMPILE_TCPBRIDGE_FALSE=
  18313. fi
  18314. # tcpliveplay requires linux OS to function properly
  18315. enable_tcpliveplay=no
  18316. case $host in
  18317. *-*-linux*)
  18318. $as_echo "#define ENABLE_TCPLIVEPLAY 1" >>confdefs.h
  18319. enable_tcpliveplay=yes
  18320. { $as_echo "$as_me:${as_lineno-$LINENO}: Building tcpliveplay" >&5
  18321. $as_echo "$as_me: Building tcpliveplay" >&6;}
  18322. ;;
  18323. *)
  18324. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to build tcpliveplay. This tool is only enabled on linux environments." >&5
  18325. $as_echo "$as_me: WARNING: Unable to build tcpliveplay. This tool is only enabled on linux environments." >&2;}
  18326. ;;
  18327. esac
  18328. if test x$enable_tcpliveplay = xyes ; then
  18329. COMPILE_TCPLIVEPLAY_TRUE=
  18330. COMPILE_TCPLIVEPLAY_FALSE='#'
  18331. else
  18332. COMPILE_TCPLIVEPLAY_TRUE='#'
  18333. COMPILE_TCPLIVEPLAY_FALSE=
  18334. fi
  18335. have_netmap=no
  18336. enable_netmap=no
  18337. trynetmapdir=
  18338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netmap socket sending support" >&5
  18339. $as_echo_n "checking for netmap socket sending support... " >&6; }
  18340. # Check whether --with-netmap was given.
  18341. if test "${with_netmap+set}" = set; then :
  18342. withval=$with_netmap; trynetmapdir=$withval
  18343. fi
  18344. NETMAP_SEARCH_DIRS=
  18345. if test "$cross_compiling" = yes; then
  18346. if test "x$trynetmapdir" != "x"; then
  18347. NETMAP_SEARCH_DIRS=$trynetmapdir
  18348. fi
  18349. else
  18350. NETMAP_SEARCH_DIRS="$trynetmapdir /opt/netmap /usr/src/netmap-release /usr/src/netmap /usr/local/src/netmap-release /usr/local/src/netmap /usr/include"
  18351. fi
  18352. for testdir in $NETMAP_SEARCH_DIRS; do
  18353. if test -f "${testdir}/sys/net/netmap.h" ; then
  18354. NETMAPINC="${testdir}/sys/net/netmap.h"
  18355. NETMAPUSERINC="${testdir}/sys/net/netmap_user.h"
  18356. NETMAPINCDIR="${testdir}/sys"
  18357. have_netmap="yes $testdir"
  18358. enable_netmap=yes
  18359. else
  18360. if test -f "${testdir}/net/netmap.h" ; then
  18361. NETMAPINC="${testdir}/net/netmap.h"
  18362. NETMAPUSERINC="${testdir}/net/netmap_user.h"
  18363. NETMAPINCDIR="${testdir}"
  18364. have_netmap="yes $testdir"
  18365. enable_netmap=yes
  18366. fi
  18367. fi
  18368. if test "$have_netmap" != no ; then
  18369. NETMAPFLAGS="-DHAVE_NETMAP"
  18370. OLDCFLAGS="$CFLAGS -I$NETMAPINCDIR"
  18371. CFLAGS="$CFLAGS -DNETMAP_WITH_LIBS -DND -I$NETMAPINCDIR"
  18372. $as_echo "#define HAVE_NETMAP 1" >>confdefs.h
  18373. have_netmap="yes $testdir"
  18374. enable_netmap=yes
  18375. break;
  18376. fi
  18377. done
  18378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_netmap" >&5
  18379. $as_echo "$have_netmap" >&6; }
  18380. if test x$enable_netmap = xyes ; then
  18381. COMPILE_NETMAP_TRUE=
  18382. COMPILE_NETMAP_FALSE='#'
  18383. else
  18384. COMPILE_NETMAP_TRUE='#'
  18385. COMPILE_NETMAP_FALSE=
  18386. fi
  18387. if test "x$NETMAPINCDIR" != "x"; then
  18388. OLDCPPFLAGS="$CPPFLAGS"
  18389. CPPFLAGS="$CPPFLAGS -DNETMAP_WITH_LIBS -DND -I$NETMAPINCDIR"
  18390. for ac_header in stdio.h net/netmap_user.h
  18391. do :
  18392. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18393. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  18394. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  18395. cat >>confdefs.h <<_ACEOF
  18396. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18397. _ACEOF
  18398. fi
  18399. done
  18400. have_nm_open=no
  18401. have_nm_nr_reg_mask=no
  18402. have_nm_nr_flags=no
  18403. have_nmring_head_tail=no
  18404. if test "$have_netmap" != no ; then
  18405. ac_fn_c_check_decl "$LINENO" "nm_open" "ac_cv_have_decl_nm_open" "
  18406. #include <stdio.h>
  18407. #include \"${NETMAPUSERINC}\"
  18408. "
  18409. if test "x$ac_cv_have_decl_nm_open" = xyes; then :
  18410. have_nm_open=yes
  18411. fi
  18412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netmap NR_REG_MASK definition" >&5
  18413. $as_echo_n "checking for netmap NR_REG_MASK definition... " >&6; }
  18414. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18415. /* end confdefs.h. */
  18416. #include <stdint.h>
  18417. #include <sys/socket.h>
  18418. #include <net/if.h>
  18419. #include <net/netmap.h>
  18420. int
  18421. main ()
  18422. {
  18423. #ifdef NR_REG_MASK
  18424. /* OK */
  18425. #else
  18426. # error NR_REG_MASK not found
  18427. #endif
  18428. ;
  18429. return 0;
  18430. }
  18431. _ACEOF
  18432. if ac_fn_c_try_compile "$LINENO"; then :
  18433. have_nm_nr_reg_mask=yes
  18434. fi
  18435. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nm_nr_reg_mask" >&5
  18437. $as_echo "$have_nm_nr_reg_mask" >&6; }
  18438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netmap nr_flags definition" >&5
  18439. $as_echo_n "checking for netmap nr_flags definition... " >&6; }
  18440. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18441. /* end confdefs.h. */
  18442. #include <stdint.h>
  18443. #include <sys/socket.h>
  18444. #include <net/if.h>
  18445. #include <net/netmap.h>
  18446. int
  18447. main ()
  18448. {
  18449. struct nmreq nmr;
  18450. nmr.nr_flags = 0;
  18451. ;
  18452. return 0;
  18453. }
  18454. _ACEOF
  18455. if ac_fn_c_try_compile "$LINENO"; then :
  18456. have_nm_nr_flags=yes
  18457. fi
  18458. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nm_nr_flags" >&5
  18460. $as_echo "$have_nm_nr_flags" >&6; }
  18461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netmap ring head/tail definitions" >&5
  18462. $as_echo_n "checking for netmap ring head/tail definitions... " >&6; }
  18463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18464. /* end confdefs.h. */
  18465. #include <stdint.h>
  18466. #include <sys/socket.h>
  18467. #include <net/if.h>
  18468. #include <net/netmap.h>
  18469. int
  18470. main ()
  18471. {
  18472. struct netmap_ring r;
  18473. r.head = r.tail = 0;
  18474. ;
  18475. return 0;
  18476. }
  18477. _ACEOF
  18478. if ac_fn_c_try_compile "$LINENO"; then :
  18479. have_nmring_head_tail=yes
  18480. fi
  18481. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nmring_head_tail" >&5
  18483. $as_echo "$have_nmring_head_tail" >&6; }
  18484. fi
  18485. if test "$have_nm_open" = yes ; then
  18486. $as_echo "#define HAVE_NETMAP_NM_OPEN 1" >>confdefs.h
  18487. fi
  18488. if test "$have_nm_nr_reg_mask" = yes ; then
  18489. $as_echo "#define HAVE_NETMAP_NR_REG 1" >>confdefs.h
  18490. fi
  18491. if test "$have_nm_nr_flags" = yes ; then
  18492. $as_echo "#define HAVE_NETMAP_NR_FLAGS 1" >>confdefs.h
  18493. fi
  18494. if test "$have_nmring_head_tail" = yes ; then
  18495. $as_echo "#define HAVE_NETMAP_RING_HEAD_TAIL 1" >>confdefs.h
  18496. fi
  18497. CPPFLAGS="$OLDCPPFLAGS"
  18498. fi
  18499. have_pf=no
  18500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PF_PACKET socket sending support" >&5
  18501. $as_echo_n "checking for PF_PACKET socket sending support... " >&6; }
  18502. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18503. /* end confdefs.h. */
  18504. #include <sys/socket.h>
  18505. #include <netpacket/packet.h>
  18506. #include <net/ethernet.h> /* the L2 protocols */
  18507. #include <netinet/in.h> /* htons */
  18508. int
  18509. main ()
  18510. {
  18511. int pf_socket;
  18512. pf_socket = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
  18513. ;
  18514. return 0;
  18515. }
  18516. _ACEOF
  18517. if ac_fn_c_try_compile "$LINENO"; then :
  18518. $as_echo "#define HAVE_PF_PACKET 1" >>confdefs.h
  18519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18520. $as_echo "yes" >&6; }
  18521. have_pf=yes
  18522. else
  18523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18524. $as_echo "no" >&6; }
  18525. fi
  18526. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18527. have_tx_ring=no
  18528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TX_RING socket sending support" >&5
  18529. $as_echo_n "checking for TX_RING socket sending support... " >&6; }
  18530. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18531. /* end confdefs.h. */
  18532. #include <sys/socket.h>
  18533. #include <netpacket/packet.h>
  18534. #include <net/ethernet.h> /* the L2 protocols */
  18535. #include <netinet/in.h> /* htons */
  18536. #include <linux/if_packet.h>
  18537. int
  18538. main ()
  18539. {
  18540. int test;
  18541. test = TP_STATUS_WRONG_FORMAT
  18542. ;
  18543. return 0;
  18544. }
  18545. _ACEOF
  18546. if ac_fn_c_try_compile "$LINENO"; then :
  18547. $as_echo "#define HAVE_TX_RING 1" >>confdefs.h
  18548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18549. $as_echo "yes" >&6; }
  18550. have_tx_ring=yes
  18551. else
  18552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18553. $as_echo "no" >&6; }
  18554. fi
  18555. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18556. for ac_header in net/bpf.h
  18557. do :
  18558. ac_fn_c_check_header_mongrel "$LINENO" "net/bpf.h" "ac_cv_header_net_bpf_h" "$ac_includes_default"
  18559. if test "x$ac_cv_header_net_bpf_h" = xyes; then :
  18560. cat >>confdefs.h <<_ACEOF
  18561. #define HAVE_NET_BPF_H 1
  18562. _ACEOF
  18563. have_bpf=yes
  18564. else
  18565. have_bpf=no
  18566. fi
  18567. done
  18568. if test $have_bpf = yes ; then
  18569. $as_echo "#define HAVE_BPF 1" >>confdefs.h
  18570. fi
  18571. founddnet=no
  18572. have_libdnet=no
  18573. libdnet_version=
  18574. enable_fragroute=no
  18575. trydnetdir=/usr/local
  18576. if test $have_cygwin = no ; then
  18577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdnet" >&5
  18578. $as_echo_n "checking for libdnet... " >&6; }
  18579. # Check whether --with-libdnet was given.
  18580. if test "${with_libdnet+set}" = set; then :
  18581. withval=$with_libdnet; trydnetdir=$withval
  18582. fi
  18583. for testdir in $trydnetdir /usr/local /opt/local $MACOSX_SDK_PATH/usr /usr ; do
  18584. if test -x ${testdir}/bin/dnet-config -a $founddnet = no ; then
  18585. LDNETINC="$($testdir/bin/dnet-config --cflags)"
  18586. LDNETLIB="$($testdir/bin/dnet-config --libs)"
  18587. libdnet_version="$($testdir/bin/dnet-config --version)"
  18588. founddnet=$testdir
  18589. fi
  18590. done
  18591. if test $founddnet = no ; then
  18592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18593. $as_echo "no" >&6; }
  18594. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdnet not found, disabling fragroute feature" >&5
  18595. $as_echo "$as_me: WARNING: libdnet not found, disabling fragroute feature" >&2;}
  18596. else
  18597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $founddnet" >&5
  18598. $as_echo "$founddnet" >&6; }
  18599. enable_fragroute=yes
  18600. have_libdnet=yes
  18601. $as_echo "#define HAVE_LIBDNET 1" >>confdefs.h
  18602. old_cflags=$CFLAGS
  18603. CFLAGS=$LDNETINC
  18604. for ac_header in dumbnet.h dnet.h
  18605. do :
  18606. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18607. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  18608. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  18609. cat >>confdefs.h <<_ACEOF
  18610. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18611. _ACEOF
  18612. fi
  18613. done
  18614. CFLAGS=$old_cflags
  18615. fi
  18616. else
  18617. { $as_echo "$as_me:${as_lineno-$LINENO}: Skipping libdnet check under Cygwin for compatibility reasons" >&5
  18618. $as_echo "$as_me: Skipping libdnet check under Cygwin for compatibility reasons" >&6;}
  18619. fi
  18620. cat >>confdefs.h <<_ACEOF
  18621. #define LIBDNET_VERSION "$libdnet_version"
  18622. _ACEOF
  18623. if test x$founddnet != xno; then
  18624. COMPILE_FRAGROUTE_TRUE=
  18625. COMPILE_FRAGROUTE_FALSE='#'
  18626. else
  18627. COMPILE_FRAGROUTE_TRUE='#'
  18628. COMPILE_FRAGROUTE_FALSE=
  18629. fi
  18630. if test x$founddnet != xno ; then
  18631. $as_echo "#define ENABLE_FRAGROUTE 1" >>confdefs.h
  18632. fi
  18633. if test $have_bpf = no -a $have_pcap_inject = no -a $have_pcap_sendpacket = no \
  18634. -a $have_libdnet = no -a $have_pf = no ; then
  18635. as_fn_error $? "Unable to find a supported method to send packets. Please upgrade your libpcap or enable libdnet" "$LINENO" 5
  18636. fi
  18637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLT_LINUX_SLL in libpcap" >&5
  18638. $as_echo_n "checking for DLT_LINUX_SLL in libpcap... " >&6; }
  18639. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18640. /* end confdefs.h. */
  18641. #include "$LPCAPINC"
  18642. int
  18643. main ()
  18644. {
  18645. int foo;
  18646. foo = DLT_LINUX_SLL
  18647. ;
  18648. return 0;
  18649. }
  18650. _ACEOF
  18651. if ac_fn_c_try_compile "$LINENO"; then :
  18652. $as_echo "#define HAVE_DLT_LINUX_SLL 1" >>confdefs.h
  18653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18654. $as_echo "yes" >&6; }
  18655. else
  18656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18657. $as_echo "no" >&6; }
  18658. fi
  18659. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLT_C_HDLC in libpcap" >&5
  18661. $as_echo_n "checking for DLT_C_HDLC in libpcap... " >&6; }
  18662. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18663. /* end confdefs.h. */
  18664. #include "$LPCAPINC"
  18665. int
  18666. main ()
  18667. {
  18668. int foo;
  18669. foo = DLT_C_HDLC
  18670. ;
  18671. return 0;
  18672. }
  18673. _ACEOF
  18674. if ac_fn_c_try_compile "$LINENO"; then :
  18675. $as_echo "#define HAVE_DLT_C_HDLC 1" >>confdefs.h
  18676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18677. $as_echo "yes" >&6; }
  18678. else
  18679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18680. $as_echo "no" >&6; }
  18681. fi
  18682. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18683. PCAP_BPF_H_FILE="$LPCAPINCDIR/pcap-bpf.h"
  18684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PCAP_BPF_H_FILE" >&5
  18685. $as_echo_n "checking for $PCAP_BPF_H_FILE... " >&6; }
  18686. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18687. /* end confdefs.h. */
  18688. #include <sys/types.h>
  18689. #include <sys/time.h>
  18690. #include <stdint.h>
  18691. #include "$PCAP_BPF_H_FILE"
  18692. int
  18693. main ()
  18694. {
  18695. int foo;
  18696. foo = BPF_MAJOR_VERSION;
  18697. ;
  18698. return 0;
  18699. }
  18700. _ACEOF
  18701. if ac_fn_c_try_compile "$LINENO"; then :
  18702. $as_echo "#define INCLUDE_PCAP_BPF_HEADER 1" >>confdefs.h
  18703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18704. $as_echo "yes" >&6; }
  18705. else
  18706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18707. $as_echo "no" >&6; }
  18708. fi
  18709. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18710. foundbpfheader=no
  18711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcap bpf header" >&5
  18712. $as_echo_n "checking for libpcap bpf header... " >&6; }
  18713. for testfile in $LPCAPINCDIR/pcap/bpf.h $LPCAPINCDIR/pcap-bpf.h ; do
  18714. if test -f "${testfile}" -a $foundbpfheader = no ; then
  18715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18716. /* end confdefs.h. */
  18717. #include <sys/types.h>
  18718. #include <sys/time.h>
  18719. #include <stdint.h>
  18720. #include "$testfile"
  18721. int
  18722. main ()
  18723. {
  18724. int foo;
  18725. foo = BPF_MAJOR_VERSION;
  18726. ;
  18727. return 0;
  18728. }
  18729. _ACEOF
  18730. if ac_fn_c_try_compile "$LINENO"; then :
  18731. foundbpfheader=yes
  18732. PCAP_BPF_H_FILE=$testfile
  18733. $as_echo "#define INCLUDE_PCAP_BPF_HEADER 1" >>confdefs.h
  18734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $testfile" >&5
  18735. $as_echo "$testfile" >&6; }
  18736. else
  18737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18738. $as_echo "no" >&6; }
  18739. fi
  18740. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18741. fi
  18742. done
  18743. have_pcap_netmap=no
  18744. if test $foundpcap != no ; then
  18745. PCAP_NETMAP_C_FILE="$LPCAPINCDIR/pcap-netmap.c"
  18746. if test -f "${PCAP_NETMAP_C_FILE}" ; then
  18747. $as_echo "#define HAVE_LIBPCAP_NETMAP 1" >>confdefs.h
  18748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18749. $as_echo "yes" >&6; }
  18750. have_pcap_netmap=yes
  18751. fi
  18752. fi
  18753. LIBS="$OLDLIBS"
  18754. CFLAGS="$OLDCFLAGS"
  18755. pcapnav_ver=no
  18756. pcncfg=no
  18757. # Check whether --with-pcapnav-config was given.
  18758. if test "${with_pcapnav_config+set}" = set; then :
  18759. withval=$with_pcapnav_config; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcapnav-config" >&5
  18760. $as_echo_n "checking for pcapnav-config... " >&6; }
  18761. if test -x $withval ; then
  18762. pcncfg=$withval
  18763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcncfg" >&5
  18764. $as_echo "$pcncfg" >&6; }
  18765. elif test x$withval = xno ; then
  18766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18767. $as_echo "no" >&6; }
  18768. else
  18769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Can't find pcapnav-config: disabling offset jump feature" >&5
  18770. $as_echo "Can't find pcapnav-config: disabling offset jump feature" >&6; }
  18771. fi
  18772. else
  18773. # Extract the first word of "pcapnav-config", so it can be a program name with args.
  18774. set dummy pcapnav-config; ac_word=$2
  18775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18776. $as_echo_n "checking for $ac_word... " >&6; }
  18777. if ${ac_cv_path_pcncfg+:} false; then :
  18778. $as_echo_n "(cached) " >&6
  18779. else
  18780. case $pcncfg in
  18781. [\\/]* | ?:[\\/]*)
  18782. ac_cv_path_pcncfg="$pcncfg" # Let the user override the test with a path.
  18783. ;;
  18784. *)
  18785. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18786. for as_dir in $PATH
  18787. do
  18788. IFS=$as_save_IFS
  18789. test -z "$as_dir" && as_dir=.
  18790. for ac_exec_ext in '' $ac_executable_extensions; do
  18791. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18792. ac_cv_path_pcncfg="$as_dir/$ac_word$ac_exec_ext"
  18793. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18794. break 2
  18795. fi
  18796. done
  18797. done
  18798. IFS=$as_save_IFS
  18799. test -z "$ac_cv_path_pcncfg" && ac_cv_path_pcncfg="no "
  18800. ;;
  18801. esac
  18802. fi
  18803. pcncfg=$ac_cv_path_pcncfg
  18804. if test -n "$pcncfg"; then
  18805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcncfg" >&5
  18806. $as_echo "$pcncfg" >&6; }
  18807. else
  18808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18809. $as_echo "no" >&6; }
  18810. fi
  18811. fi
  18812. if test $pcncfg != no ; then
  18813. LNAVLIB=$($pcncfg --libs)
  18814. LNAV_CFLAGS=$($pcncfg --cflags)
  18815. PCAPNAV_VERSION=$($pcncfg --version)
  18816. cat >>confdefs.h <<_ACEOF
  18817. #define PCAPNAV_VERSION "$PCAPNAV_VERSION"
  18818. _ACEOF
  18819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcapnav version" >&5
  18820. $as_echo_n "checking for libpcapnav version... " >&6; }
  18821. if test "$cross_compiling" = yes; then :
  18822. libpcapnav_ver=no
  18823. else
  18824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18825. /* end confdefs.h. */
  18826. #include <string.h>
  18827. #define PCAPNAV_TEST "0.4"
  18828. /*
  18829. * simple proggy to test the version of libpcapnav
  18830. * returns zero if version >= 0.4
  18831. * or one otherwise
  18832. */
  18833. int
  18834. main (int argc, char *argv[])
  18835. {
  18836. if (strncmp(PCAPNAV_VERSION, PCAPNAV_TEST, 3) >= 0)
  18837. exit(0);
  18838. exit(1);
  18839. }
  18840. _ACEOF
  18841. if ac_fn_c_try_run "$LINENO"; then :
  18842. libpcapnav_ver=yes
  18843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: >= 0.4" >&5
  18844. $as_echo ">= 0.4" >&6; }
  18845. else
  18846. libpcapnav_ver=no
  18847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: < 0.4" >&5
  18848. $as_echo "< 0.4" >&6; }
  18849. fi
  18850. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18851. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18852. fi
  18853. if test x$libpcapnav_ver = xno ; then
  18854. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libpcapnav versions < 0.4 are not supported.
  18855. Please upgrade to version 0.4 or better.
  18856. Disabling offset jump feature." >&5
  18857. $as_echo "$as_me: WARNING: Libpcapnav versions < 0.4 are not supported.
  18858. Please upgrade to version 0.4 or better.
  18859. Disabling offset jump feature." >&2;}
  18860. else
  18861. $as_echo "#define HAVE_PCAPNAV 1" >>confdefs.h
  18862. fi
  18863. fi # checking pcapnav version
  18864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for requires strict byte alignment" >&5
  18865. $as_echo_n "checking for requires strict byte alignment... " >&6; }
  18866. if ${unaligned_cv_fail+:} false; then :
  18867. $as_echo_n "(cached) " >&6
  18868. else
  18869. case "$host_cpu" in
  18870. # XXX: should also check that they don't do weird things (like on arm)
  18871. alpha*|arm*|hp*|mips*|sparc*|ia64)
  18872. unaligned_cv_fail=yes
  18873. ;;
  18874. *)
  18875. cat >conftest.c <<EOF
  18876. #include <sys/types.h>
  18877. #include <sys/wait.h>
  18878. #include <stdio.h>
  18879. unsigned char a[5] = { 1, 2, 3, 4, 5 };
  18880. main() {
  18881. unsigned int i;
  18882. pid_t pid;
  18883. int status;
  18884. /* avoid "core dumped" message */
  18885. pid = fork();
  18886. if (pid < 0)
  18887. exit(2);
  18888. if (pid > 0) {
  18889. /* parent */
  18890. pid = waitpid(pid, &status, 0);
  18891. if (pid < 0)
  18892. exit(3);
  18893. exit(!WIFEXITED(status));
  18894. }
  18895. /* child */
  18896. i = *(unsigned int *)&a[1];
  18897. printf("%d\n", i);
  18898. exit(0);
  18899. }
  18900. EOF
  18901. ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
  18902. conftest.c $LIBS >/dev/null 2>&1
  18903. if test ! -x conftest ; then
  18904. unaligned_cv_fail=yes
  18905. else
  18906. ./conftest >conftest.out
  18907. if test ! -s conftest.out ; then
  18908. unaligned_cv_fail=yes
  18909. else
  18910. unaligned_cv_fail=no
  18911. fi
  18912. fi
  18913. rm -f conftest* core core.conftest
  18914. ;;
  18915. esac
  18916. fi
  18917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unaligned_cv_fail" >&5
  18918. $as_echo "$unaligned_cv_fail" >&6; }
  18919. if test $unaligned_cv_fail = yes ; then
  18920. $as_echo "#define FORCE_ALIGN 1" >>confdefs.h
  18921. fi
  18922. tcpdump_path=no
  18923. # Check whether --with-tcpdump was given.
  18924. if test "${with_tcpdump+set}" = set; then :
  18925. withval=$with_tcpdump; if test -x $withval ; then
  18926. tcpdump_path=$withval
  18927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using tcpdump in $tcpdump_path" >&5
  18928. $as_echo "Using tcpdump in $tcpdump_path" >&6; }
  18929. else
  18930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error: $withval does not exist or is not executable" >&5
  18931. $as_echo "Error: $withval does not exist or is not executable" >&6; }
  18932. fi
  18933. else
  18934. # Extract the first word of "tcpdump", so it can be a program name with args.
  18935. set dummy tcpdump; ac_word=$2
  18936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18937. $as_echo_n "checking for $ac_word... " >&6; }
  18938. if ${ac_cv_path_tcpdump_path+:} false; then :
  18939. $as_echo_n "(cached) " >&6
  18940. else
  18941. case $tcpdump_path in
  18942. [\\/]* | ?:[\\/]*)
  18943. ac_cv_path_tcpdump_path="$tcpdump_path" # Let the user override the test with a path.
  18944. ;;
  18945. *)
  18946. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18947. as_dummy="$PATH:/usr/sbin:/sbin:/usr/local/sbin"
  18948. for as_dir in $as_dummy
  18949. do
  18950. IFS=$as_save_IFS
  18951. test -z "$as_dir" && as_dir=.
  18952. for ac_exec_ext in '' $ac_executable_extensions; do
  18953. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18954. ac_cv_path_tcpdump_path="$as_dir/$ac_word$ac_exec_ext"
  18955. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18956. break 2
  18957. fi
  18958. done
  18959. done
  18960. IFS=$as_save_IFS
  18961. test -z "$ac_cv_path_tcpdump_path" && ac_cv_path_tcpdump_path=""no""
  18962. ;;
  18963. esac
  18964. fi
  18965. tcpdump_path=$ac_cv_path_tcpdump_path
  18966. if test -n "$tcpdump_path"; then
  18967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcpdump_path" >&5
  18968. $as_echo "$tcpdump_path" >&6; }
  18969. else
  18970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18971. $as_echo "no" >&6; }
  18972. fi
  18973. fi
  18974. if test "$tcpdump_path" = "no"; then
  18975. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to find tcpdump. Please specify --with-tcpdump.
  18976. Disabling --verbose" >&5
  18977. $as_echo "$as_me: WARNING: Unable to find tcpdump. Please specify --with-tcpdump.
  18978. Disabling --verbose" >&2;}
  18979. else
  18980. $as_echo "#define HAVE_TCPDUMP 1" >>confdefs.h
  18981. cat >>confdefs.h <<_ACEOF
  18982. #define TCPDUMP_BINARY "$tcpdump_path"
  18983. _ACEOF
  18984. fi
  18985. if test "$tcpdump_path" != "no" -a x$have_pcap_dump_fopen = xyes; then
  18986. ENABLE_TCPDUMP_TRUE=
  18987. ENABLE_TCPDUMP_FALSE='#'
  18988. else
  18989. ENABLE_TCPDUMP_TRUE='#'
  18990. ENABLE_TCPDUMP_FALSE=
  18991. fi
  18992. if test x$tcpdump_path != xno -a x$have_pcap_dump_fopen = xyes ; then
  18993. $as_echo "#define ENABLE_VERBOSE 1" >>confdefs.h
  18994. else
  18995. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of libpcap is too old for --verbose support" >&5
  18996. $as_echo "$as_me: WARNING: Your version of libpcap is too old for --verbose support" >&2;}
  18997. fi
  18998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 'make test' profile" >&5
  18999. $as_echo_n "checking for 'make test' profile... " >&6; }
  19000. if test "$host" != "$build" ; then
  19001. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to do tests when cross-compiling" >&5
  19002. $as_echo "$as_me: WARNING: Unable to do tests when cross-compiling" >&2;}
  19003. fi
  19004. # Check whether --with-testnic was given.
  19005. if test "${with_testnic+set}" = set; then :
  19006. withval=$with_testnic; nic1=$withval
  19007. nic2=$withval
  19008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using --with-testnic=$withval" >&5
  19009. $as_echo "Using --with-testnic=$withval" >&6; }
  19010. else
  19011. disable_pcap_findalldevs=no
  19012. osx_frameworks=no
  19013. case $host in
  19014. *-*-linux*)
  19015. nic1=eth0
  19016. nic2=eth0
  19017. $as_echo "#define HAVE_LINUX 1" >>confdefs.h
  19018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux" >&5
  19019. $as_echo "Linux" >&6; }
  19020. ;;
  19021. *-*-solaris*)
  19022. nic1=hme0
  19023. nic2=hme0
  19024. $as_echo "#define HAVE_SOLARIS 1" >>confdefs.h
  19025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris" >&5
  19026. $as_echo "Solaris" >&6; }
  19027. ;;
  19028. *-*-sunos*)
  19029. nic1=hme0
  19030. nic2=hme0
  19031. $as_echo "#define HAVE_SUNOS 1" >>confdefs.h
  19032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: SunOS" >&5
  19033. $as_echo "SunOS" >&6; }
  19034. ;;
  19035. *-apple-darwin*)
  19036. nic1=en0
  19037. nic2=en0
  19038. if test x$libpcap_version_096 = xno ; then
  19039. disable_pcap_findalldevs=yes
  19040. fi
  19041. osx_frameworks=yes
  19042. $as_echo "#define HAVE_DARWIN 1" >>confdefs.h
  19043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Apple OS X" >&5
  19044. $as_echo "Apple OS X" >&6; }
  19045. ;;
  19046. *-*-openbsd*)
  19047. nic1=xl0
  19048. nic2=xl0
  19049. $as_echo "#define HAVE_OPENBSD 1" >>confdefs.h
  19050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenBSD" >&5
  19051. $as_echo "OpenBSD" >&6; }
  19052. ;;
  19053. *-*-freebsd*)
  19054. nic1=em0
  19055. nic2=em0
  19056. $as_echo "#define HAVE_FREEBSD 1" >>confdefs.h
  19057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: FreeBSD" >&5
  19058. $as_echo "FreeBSD" >&6; }
  19059. ;;
  19060. *-*-cygwin)
  19061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Win32/Cygwin" >&5
  19062. $as_echo "Win32/Cygwin" >&6; }
  19063. nic1=%0
  19064. nic2=%0
  19065. $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
  19066. ;;
  19067. *)
  19068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host is unknown! Using first non-loopback interface" >&5
  19069. $as_echo "$host is unknown! Using first non-loopback interface" >&6; }
  19070. nic1=%0
  19071. nic2=%0
  19072. ;;
  19073. esac
  19074. fi
  19075. if test "$osx_frameworks" = "yes"; then
  19076. ENABLE_OSX_FRAMEWORKS_TRUE=
  19077. ENABLE_OSX_FRAMEWORKS_FALSE='#'
  19078. else
  19079. ENABLE_OSX_FRAMEWORKS_TRUE='#'
  19080. ENABLE_OSX_FRAMEWORKS_FALSE=
  19081. fi
  19082. # Check whether --with-testnic2 was given.
  19083. if test "${with_testnic2+set}" = set; then :
  19084. withval=$with_testnic2; nic2=$withval
  19085. fi
  19086. { $as_echo "$as_me:${as_lineno-$LINENO}: Using $nic1 for 1st test network interface card" >&5
  19087. $as_echo "$as_me: Using $nic1 for 1st test network interface card" >&6;}
  19088. { $as_echo "$as_me:${as_lineno-$LINENO}: Using $nic2 for 2nd test network interface card" >&5
  19089. $as_echo "$as_me: Using $nic2 for 2nd test network interface card" >&6;}
  19090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if it's ok to use pcap_findalldevs()" >&5
  19091. $as_echo_n "checking if it's ok to use pcap_findalldevs()... " >&6; }
  19092. if test x$disable_pcap_findalldevs = xno ; then
  19093. $as_echo "#define ENABLE_PCAP_FINDALLDEVS 1" >>confdefs.h
  19094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19095. $as_echo "yes" >&6; }
  19096. else
  19097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19098. $as_echo "no" >&6; }
  19099. fi
  19100. case "${enable_local_libopts+set}" in
  19101. set) ;;
  19102. *) enable_local_libopts=yes ;;
  19103. esac
  19104. case "${enable_libopts_install+set}" in
  19105. set) ;;
  19106. *) enable_libopts_install=no ;;
  19107. esac
  19108. ac_header_dirent=no
  19109. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  19110. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  19111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  19112. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  19113. if eval \${$as_ac_Header+:} false; then :
  19114. $as_echo_n "(cached) " >&6
  19115. else
  19116. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19117. /* end confdefs.h. */
  19118. #include <sys/types.h>
  19119. #include <$ac_hdr>
  19120. int
  19121. main ()
  19122. {
  19123. if ((DIR *) 0)
  19124. return 0;
  19125. ;
  19126. return 0;
  19127. }
  19128. _ACEOF
  19129. if ac_fn_c_try_compile "$LINENO"; then :
  19130. eval "$as_ac_Header=yes"
  19131. else
  19132. eval "$as_ac_Header=no"
  19133. fi
  19134. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19135. fi
  19136. eval ac_res=\$$as_ac_Header
  19137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  19138. $as_echo "$ac_res" >&6; }
  19139. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  19140. cat >>confdefs.h <<_ACEOF
  19141. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  19142. _ACEOF
  19143. ac_header_dirent=$ac_hdr; break
  19144. fi
  19145. done
  19146. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  19147. if test $ac_header_dirent = dirent.h; then
  19148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  19149. $as_echo_n "checking for library containing opendir... " >&6; }
  19150. if ${ac_cv_search_opendir+:} false; then :
  19151. $as_echo_n "(cached) " >&6
  19152. else
  19153. ac_func_search_save_LIBS=$LIBS
  19154. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19155. /* end confdefs.h. */
  19156. /* Override any GCC internal prototype to avoid an error.
  19157. Use char because int might match the return type of a GCC
  19158. builtin and then its argument prototype would still apply. */
  19159. #ifdef __cplusplus
  19160. extern "C"
  19161. #endif
  19162. char opendir ();
  19163. int
  19164. main ()
  19165. {
  19166. return opendir ();
  19167. ;
  19168. return 0;
  19169. }
  19170. _ACEOF
  19171. for ac_lib in '' dir; do
  19172. if test -z "$ac_lib"; then
  19173. ac_res="none required"
  19174. else
  19175. ac_res=-l$ac_lib
  19176. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  19177. fi
  19178. if ac_fn_c_try_link "$LINENO"; then :
  19179. ac_cv_search_opendir=$ac_res
  19180. fi
  19181. rm -f core conftest.err conftest.$ac_objext \
  19182. conftest$ac_exeext
  19183. if ${ac_cv_search_opendir+:} false; then :
  19184. break
  19185. fi
  19186. done
  19187. if ${ac_cv_search_opendir+:} false; then :
  19188. else
  19189. ac_cv_search_opendir=no
  19190. fi
  19191. rm conftest.$ac_ext
  19192. LIBS=$ac_func_search_save_LIBS
  19193. fi
  19194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  19195. $as_echo "$ac_cv_search_opendir" >&6; }
  19196. ac_res=$ac_cv_search_opendir
  19197. if test "$ac_res" != no; then :
  19198. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  19199. fi
  19200. else
  19201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  19202. $as_echo_n "checking for library containing opendir... " >&6; }
  19203. if ${ac_cv_search_opendir+:} false; then :
  19204. $as_echo_n "(cached) " >&6
  19205. else
  19206. ac_func_search_save_LIBS=$LIBS
  19207. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19208. /* end confdefs.h. */
  19209. /* Override any GCC internal prototype to avoid an error.
  19210. Use char because int might match the return type of a GCC
  19211. builtin and then its argument prototype would still apply. */
  19212. #ifdef __cplusplus
  19213. extern "C"
  19214. #endif
  19215. char opendir ();
  19216. int
  19217. main ()
  19218. {
  19219. return opendir ();
  19220. ;
  19221. return 0;
  19222. }
  19223. _ACEOF
  19224. for ac_lib in '' x; do
  19225. if test -z "$ac_lib"; then
  19226. ac_res="none required"
  19227. else
  19228. ac_res=-l$ac_lib
  19229. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  19230. fi
  19231. if ac_fn_c_try_link "$LINENO"; then :
  19232. ac_cv_search_opendir=$ac_res
  19233. fi
  19234. rm -f core conftest.err conftest.$ac_objext \
  19235. conftest$ac_exeext
  19236. if ${ac_cv_search_opendir+:} false; then :
  19237. break
  19238. fi
  19239. done
  19240. if ${ac_cv_search_opendir+:} false; then :
  19241. else
  19242. ac_cv_search_opendir=no
  19243. fi
  19244. rm conftest.$ac_ext
  19245. LIBS=$ac_func_search_save_LIBS
  19246. fi
  19247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  19248. $as_echo "$ac_cv_search_opendir" >&6; }
  19249. ac_res=$ac_cv_search_opendir
  19250. if test "$ac_res" != no; then :
  19251. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  19252. fi
  19253. fi
  19254. # =================
  19255. # AC_CHECK_HEADERS
  19256. # =================
  19257. for ac_header in \
  19258. sys/mman.h sys/param.h sys/poll.h sys/procset.h \
  19259. sys/select.h sys/socket.h sys/stropts.h sys/time.h \
  19260. sys/un.h sys/wait.h dlfcn.h errno.h \
  19261. fcntl.h libgen.h libintl.h memory.h \
  19262. netinet/in.h setjmp.h stdbool.h sysexits.h \
  19263. unistd.h utime.h
  19264. do :
  19265. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19266. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  19267. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  19268. cat >>confdefs.h <<_ACEOF
  19269. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19270. _ACEOF
  19271. fi
  19272. done
  19273. for ac_header in stdarg.h varargs.h
  19274. do :
  19275. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19276. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  19277. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  19278. cat >>confdefs.h <<_ACEOF
  19279. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19280. _ACEOF
  19281. lo_have_arg_hdr=true;break
  19282. else
  19283. lo_have_arg_hdr=false
  19284. fi
  19285. done
  19286. for ac_header in string.h strings.h
  19287. do :
  19288. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19289. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  19290. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  19291. cat >>confdefs.h <<_ACEOF
  19292. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19293. _ACEOF
  19294. lo_have_str_hdr=true;break
  19295. else
  19296. lo_have_str_hdr=false
  19297. fi
  19298. done
  19299. for ac_header in limits.h sys/limits.h values.h
  19300. do :
  19301. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19302. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  19303. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  19304. cat >>confdefs.h <<_ACEOF
  19305. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19306. _ACEOF
  19307. lo_have_lim_hdr=true;break
  19308. else
  19309. lo_have_lim_hdr=false
  19310. fi
  19311. done
  19312. for ac_header in inttypes.h stdint.h
  19313. do :
  19314. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19315. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  19316. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  19317. cat >>confdefs.h <<_ACEOF
  19318. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19319. _ACEOF
  19320. lo_have_typ_hdr=true;break
  19321. else
  19322. lo_have_typ_hdr=false
  19323. fi
  19324. done
  19325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5
  19326. $as_echo_n "checking for working stdnoreturn.h... " >&6; }
  19327. if ${gl_cv_header_working_stdnoreturn_h+:} false; then :
  19328. $as_echo_n "(cached) " >&6
  19329. else
  19330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19331. /* end confdefs.h. */
  19332. #include <stdlib.h>
  19333. #include <stdnoreturn.h>
  19334. /* Do not check for 'noreturn' after the return type.
  19335. C11 allows it, but it's rarely done that way
  19336. and circa-2012 bleeding-edge GCC rejects it when given
  19337. -Werror=old-style-declaration. */
  19338. noreturn void foo1 (void) { exit (0); }
  19339. _Noreturn void foo2 (void) { exit (0); }
  19340. int testit (int argc, char **argv) {
  19341. if (argc & 1)
  19342. return 0;
  19343. (argv[0][0] ? foo1 : foo2) ();
  19344. }
  19345. int
  19346. main ()
  19347. {
  19348. ;
  19349. return 0;
  19350. }
  19351. _ACEOF
  19352. if ac_fn_c_try_compile "$LINENO"; then :
  19353. gl_cv_header_working_stdnoreturn_h=yes
  19354. else
  19355. gl_cv_header_working_stdnoreturn_h=no
  19356. fi
  19357. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19358. fi
  19359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5
  19360. $as_echo "$gl_cv_header_working_stdnoreturn_h" >&6; }
  19361. if test $gl_cv_header_working_stdnoreturn_h = yes; then
  19362. STDNORETURN_H=''
  19363. else
  19364. STDNORETURN_H='stdnoreturn.h'
  19365. fi
  19366. if test -n "$STDNORETURN_H"; then
  19367. GL_GENERATE_STDNORETURN_H_TRUE=
  19368. GL_GENERATE_STDNORETURN_H_FALSE='#'
  19369. else
  19370. GL_GENERATE_STDNORETURN_H_TRUE='#'
  19371. GL_GENERATE_STDNORETURN_H_FALSE=
  19372. fi
  19373. # ----------------------------------------------------------------------
  19374. # check for various programs used during the build.
  19375. # On OS/X, "wchar.h" needs "runetype.h" to work properly.
  19376. # ----------------------------------------------------------------------
  19377. for ac_header in runetype.h wchar.h
  19378. do :
  19379. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19380. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
  19381. $ac_includes_default
  19382. #if HAVE_RUNETYPE_H
  19383. # include <runetype.h>
  19384. #endif
  19385. "
  19386. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  19387. cat >>confdefs.h <<_ACEOF
  19388. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19389. _ACEOF
  19390. fi
  19391. done
  19392. # Check whether --enable-nls was given.
  19393. if test "${enable_nls+set}" = set; then :
  19394. enableval=$enable_nls;
  19395. fi
  19396. if test "x$enable_nls" != "xno" && \
  19397. test "X${ac_cv_header_libintl_h}" = Xyes; then :
  19398. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  19399. fi
  19400. # --------------------------------------------
  19401. # Verify certain entries from AC_CHECK_HEADERS
  19402. # --------------------------------------------
  19403. ${lo_have_arg_hdr} || \
  19404. as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5
  19405. ${lo_have_str_hdr} || \
  19406. as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5
  19407. ${lo_have_lim_hdr} || \
  19408. as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
  19409. ${lo_have_typ_hdr} || \
  19410. as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5
  19411. for f in sys_types sys_param sys_stat string errno stdlib memory setjmp
  19412. do eval as_ac_var=\${ac_cv_header_${f}_h}
  19413. test "X${as_ac_var}" = Xyes || {
  19414. as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5
  19415. }
  19416. done
  19417. test "X${ac_cv_header_inttypes_h-no}" = Xyes || \
  19418. echo '#include <stdint.h>' > inttypes.h
  19419. # ----------------------------------------------------------------------
  19420. # Checks for typedefs
  19421. # ----------------------------------------------------------------------
  19422. ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
  19423. if test "x$ac_cv_type_wchar_t" = xyes; then :
  19424. cat >>confdefs.h <<_ACEOF
  19425. #define HAVE_WCHAR_T 1
  19426. _ACEOF
  19427. fi
  19428. ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
  19429. $ac_includes_default
  19430. #if HAVE_RUNETYPE_H
  19431. # include <runetype.h>
  19432. #endif
  19433. #if HAVE_WCHAR_H
  19434. # include <wchar.h>
  19435. #endif
  19436. "
  19437. if test "x$ac_cv_type_wint_t" = xyes; then :
  19438. cat >>confdefs.h <<_ACEOF
  19439. #define HAVE_WINT_T 1
  19440. _ACEOF
  19441. fi
  19442. ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
  19443. if test "x$ac_cv_type_int8_t" = xyes; then :
  19444. cat >>confdefs.h <<_ACEOF
  19445. #define HAVE_INT8_T 1
  19446. _ACEOF
  19447. fi
  19448. ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
  19449. if test "x$ac_cv_type_uint8_t" = xyes; then :
  19450. cat >>confdefs.h <<_ACEOF
  19451. #define HAVE_UINT8_T 1
  19452. _ACEOF
  19453. fi
  19454. ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
  19455. if test "x$ac_cv_type_int16_t" = xyes; then :
  19456. cat >>confdefs.h <<_ACEOF
  19457. #define HAVE_INT16_T 1
  19458. _ACEOF
  19459. fi
  19460. ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
  19461. if test "x$ac_cv_type_uint16_t" = xyes; then :
  19462. cat >>confdefs.h <<_ACEOF
  19463. #define HAVE_UINT16_T 1
  19464. _ACEOF
  19465. fi
  19466. ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
  19467. if test "x$ac_cv_type_int32_t" = xyes; then :
  19468. cat >>confdefs.h <<_ACEOF
  19469. #define HAVE_INT32_T 1
  19470. _ACEOF
  19471. fi
  19472. ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
  19473. if test "x$ac_cv_type_uint32_t" = xyes; then :
  19474. cat >>confdefs.h <<_ACEOF
  19475. #define HAVE_UINT32_T 1
  19476. _ACEOF
  19477. fi
  19478. ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
  19479. if test "x$ac_cv_type_intptr_t" = xyes; then :
  19480. cat >>confdefs.h <<_ACEOF
  19481. #define HAVE_INTPTR_T 1
  19482. _ACEOF
  19483. fi
  19484. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
  19485. if test "x$ac_cv_type_uintptr_t" = xyes; then :
  19486. cat >>confdefs.h <<_ACEOF
  19487. #define HAVE_UINTPTR_T 1
  19488. _ACEOF
  19489. fi
  19490. ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
  19491. if test "x$ac_cv_type_uint_t" = xyes; then :
  19492. cat >>confdefs.h <<_ACEOF
  19493. #define HAVE_UINT_T 1
  19494. _ACEOF
  19495. fi
  19496. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  19497. if test "x$ac_cv_type_pid_t" = xyes; then :
  19498. cat >>confdefs.h <<_ACEOF
  19499. #define HAVE_PID_T 1
  19500. _ACEOF
  19501. fi
  19502. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  19503. if test "x$ac_cv_type_size_t" = xyes; then :
  19504. cat >>confdefs.h <<_ACEOF
  19505. #define HAVE_SIZE_T 1
  19506. _ACEOF
  19507. fi
  19508. ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  19509. if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
  19510. cat >>confdefs.h <<_ACEOF
  19511. #define HAVE_PTRDIFF_T 1
  19512. _ACEOF
  19513. fi
  19514. # The cast to long int works around a bug in the HP C Compiler
  19515. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  19516. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  19517. # This bug is HP SR number 8606223364.
  19518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5
  19519. $as_echo_n "checking size of char*... " >&6; }
  19520. if ${ac_cv_sizeof_charp+:} false; then :
  19521. $as_echo_n "(cached) " >&6
  19522. else
  19523. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp" "$ac_includes_default"; then :
  19524. else
  19525. if test "$ac_cv_type_charp" = yes; then
  19526. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  19527. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  19528. as_fn_error 77 "cannot compute sizeof (char*)
  19529. See \`config.log' for more details" "$LINENO" 5; }
  19530. else
  19531. ac_cv_sizeof_charp=0
  19532. fi
  19533. fi
  19534. fi
  19535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5
  19536. $as_echo "$ac_cv_sizeof_charp" >&6; }
  19537. cat >>confdefs.h <<_ACEOF
  19538. #define SIZEOF_CHARP $ac_cv_sizeof_charp
  19539. _ACEOF
  19540. # The cast to long int works around a bug in the HP C Compiler
  19541. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  19542. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  19543. # This bug is HP SR number 8606223364.
  19544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  19545. $as_echo_n "checking size of int... " >&6; }
  19546. if ${ac_cv_sizeof_int+:} false; then :
  19547. $as_echo_n "(cached) " >&6
  19548. else
  19549. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  19550. else
  19551. if test "$ac_cv_type_int" = yes; then
  19552. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  19553. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  19554. as_fn_error 77 "cannot compute sizeof (int)
  19555. See \`config.log' for more details" "$LINENO" 5; }
  19556. else
  19557. ac_cv_sizeof_int=0
  19558. fi
  19559. fi
  19560. fi
  19561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  19562. $as_echo "$ac_cv_sizeof_int" >&6; }
  19563. cat >>confdefs.h <<_ACEOF
  19564. #define SIZEOF_INT $ac_cv_sizeof_int
  19565. _ACEOF
  19566. # The cast to long int works around a bug in the HP C Compiler
  19567. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  19568. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  19569. # This bug is HP SR number 8606223364.
  19570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  19571. $as_echo_n "checking size of long... " >&6; }
  19572. if ${ac_cv_sizeof_long+:} false; then :
  19573. $as_echo_n "(cached) " >&6
  19574. else
  19575. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  19576. else
  19577. if test "$ac_cv_type_long" = yes; then
  19578. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  19579. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  19580. as_fn_error 77 "cannot compute sizeof (long)
  19581. See \`config.log' for more details" "$LINENO" 5; }
  19582. else
  19583. ac_cv_sizeof_long=0
  19584. fi
  19585. fi
  19586. fi
  19587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  19588. $as_echo "$ac_cv_sizeof_long" >&6; }
  19589. cat >>confdefs.h <<_ACEOF
  19590. #define SIZEOF_LONG $ac_cv_sizeof_long
  19591. _ACEOF
  19592. # The cast to long int works around a bug in the HP C Compiler
  19593. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  19594. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  19595. # This bug is HP SR number 8606223364.
  19596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  19597. $as_echo_n "checking size of short... " >&6; }
  19598. if ${ac_cv_sizeof_short+:} false; then :
  19599. $as_echo_n "(cached) " >&6
  19600. else
  19601. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
  19602. else
  19603. if test "$ac_cv_type_short" = yes; then
  19604. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  19605. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  19606. as_fn_error 77 "cannot compute sizeof (short)
  19607. See \`config.log' for more details" "$LINENO" 5; }
  19608. else
  19609. ac_cv_sizeof_short=0
  19610. fi
  19611. fi
  19612. fi
  19613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  19614. $as_echo "$ac_cv_sizeof_short" >&6; }
  19615. cat >>confdefs.h <<_ACEOF
  19616. #define SIZEOF_SHORT $ac_cv_sizeof_short
  19617. _ACEOF
  19618. # ------------
  19619. # AC_CHECK_LIB
  19620. # ------------
  19621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
  19622. $as_echo_n "checking for pathfind in -lgen... " >&6; }
  19623. if ${ac_cv_lib_gen_pathfind+:} false; then :
  19624. $as_echo_n "(cached) " >&6
  19625. else
  19626. ac_check_lib_save_LIBS=$LIBS
  19627. LIBS="-lgen $LIBS"
  19628. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19629. /* end confdefs.h. */
  19630. /* Override any GCC internal prototype to avoid an error.
  19631. Use char because int might match the return type of a GCC
  19632. builtin and then its argument prototype would still apply. */
  19633. #ifdef __cplusplus
  19634. extern "C"
  19635. #endif
  19636. char pathfind ();
  19637. int
  19638. main ()
  19639. {
  19640. return pathfind ();
  19641. ;
  19642. return 0;
  19643. }
  19644. _ACEOF
  19645. if ac_fn_c_try_link "$LINENO"; then :
  19646. ac_cv_lib_gen_pathfind=yes
  19647. else
  19648. ac_cv_lib_gen_pathfind=no
  19649. fi
  19650. rm -f core conftest.err conftest.$ac_objext \
  19651. conftest$ac_exeext conftest.$ac_ext
  19652. LIBS=$ac_check_lib_save_LIBS
  19653. fi
  19654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
  19655. $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
  19656. if test "x$ac_cv_lib_gen_pathfind" = xyes; then :
  19657. cat >>confdefs.h <<_ACEOF
  19658. #define HAVE_LIBGEN 1
  19659. _ACEOF
  19660. LIBS="-lgen $LIBS"
  19661. fi
  19662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
  19663. $as_echo_n "checking for gettext in -lintl... " >&6; }
  19664. if ${ac_cv_lib_intl_gettext+:} false; then :
  19665. $as_echo_n "(cached) " >&6
  19666. else
  19667. ac_check_lib_save_LIBS=$LIBS
  19668. LIBS="-lintl $LIBS"
  19669. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19670. /* end confdefs.h. */
  19671. /* Override any GCC internal prototype to avoid an error.
  19672. Use char because int might match the return type of a GCC
  19673. builtin and then its argument prototype would still apply. */
  19674. #ifdef __cplusplus
  19675. extern "C"
  19676. #endif
  19677. char gettext ();
  19678. int
  19679. main ()
  19680. {
  19681. return gettext ();
  19682. ;
  19683. return 0;
  19684. }
  19685. _ACEOF
  19686. if ac_fn_c_try_link "$LINENO"; then :
  19687. ac_cv_lib_intl_gettext=yes
  19688. else
  19689. ac_cv_lib_intl_gettext=no
  19690. fi
  19691. rm -f core conftest.err conftest.$ac_objext \
  19692. conftest$ac_exeext conftest.$ac_ext
  19693. LIBS=$ac_check_lib_save_LIBS
  19694. fi
  19695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
  19696. $as_echo "$ac_cv_lib_intl_gettext" >&6; }
  19697. if test "x$ac_cv_lib_intl_gettext" = xyes; then :
  19698. cat >>confdefs.h <<_ACEOF
  19699. #define HAVE_LIBINTL 1
  19700. _ACEOF
  19701. LIBS="-lintl $LIBS"
  19702. fi
  19703. for ac_func in vprintf
  19704. do :
  19705. ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  19706. if test "x$ac_cv_func_vprintf" = xyes; then :
  19707. cat >>confdefs.h <<_ACEOF
  19708. #define HAVE_VPRINTF 1
  19709. _ACEOF
  19710. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  19711. if test "x$ac_cv_func__doprnt" = xyes; then :
  19712. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  19713. fi
  19714. fi
  19715. done
  19716. for ac_header in vfork.h
  19717. do :
  19718. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  19719. if test "x$ac_cv_header_vfork_h" = xyes; then :
  19720. cat >>confdefs.h <<_ACEOF
  19721. #define HAVE_VFORK_H 1
  19722. _ACEOF
  19723. fi
  19724. done
  19725. for ac_func in fork vfork
  19726. do :
  19727. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19728. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  19729. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  19730. cat >>confdefs.h <<_ACEOF
  19731. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19732. _ACEOF
  19733. fi
  19734. done
  19735. if test "x$ac_cv_func_fork" = xyes; then
  19736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  19737. $as_echo_n "checking for working fork... " >&6; }
  19738. if ${ac_cv_func_fork_works+:} false; then :
  19739. $as_echo_n "(cached) " >&6
  19740. else
  19741. if test "$cross_compiling" = yes; then :
  19742. ac_cv_func_fork_works=cross
  19743. else
  19744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19745. /* end confdefs.h. */
  19746. $ac_includes_default
  19747. int
  19748. main ()
  19749. {
  19750. /* By Ruediger Kuhlmann. */
  19751. return fork () < 0;
  19752. ;
  19753. return 0;
  19754. }
  19755. _ACEOF
  19756. if ac_fn_c_try_run "$LINENO"; then :
  19757. ac_cv_func_fork_works=yes
  19758. else
  19759. ac_cv_func_fork_works=no
  19760. fi
  19761. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  19762. conftest.$ac_objext conftest.beam conftest.$ac_ext
  19763. fi
  19764. fi
  19765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  19766. $as_echo "$ac_cv_func_fork_works" >&6; }
  19767. else
  19768. ac_cv_func_fork_works=$ac_cv_func_fork
  19769. fi
  19770. if test "x$ac_cv_func_fork_works" = xcross; then
  19771. case $host in
  19772. *-*-amigaos* | *-*-msdosdjgpp*)
  19773. # Override, as these systems have only a dummy fork() stub
  19774. ac_cv_func_fork_works=no
  19775. ;;
  19776. *)
  19777. ac_cv_func_fork_works=yes
  19778. ;;
  19779. esac
  19780. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  19781. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  19782. fi
  19783. ac_cv_func_vfork_works=$ac_cv_func_vfork
  19784. if test "x$ac_cv_func_vfork" = xyes; then
  19785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  19786. $as_echo_n "checking for working vfork... " >&6; }
  19787. if ${ac_cv_func_vfork_works+:} false; then :
  19788. $as_echo_n "(cached) " >&6
  19789. else
  19790. if test "$cross_compiling" = yes; then :
  19791. ac_cv_func_vfork_works=cross
  19792. else
  19793. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19794. /* end confdefs.h. */
  19795. /* Thanks to Paul Eggert for this test. */
  19796. $ac_includes_default
  19797. #include <sys/wait.h>
  19798. #ifdef HAVE_VFORK_H
  19799. # include <vfork.h>
  19800. #endif
  19801. /* On some sparc systems, changes by the child to local and incoming
  19802. argument registers are propagated back to the parent. The compiler
  19803. is told about this with #include <vfork.h>, but some compilers
  19804. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  19805. static variable whose address is put into a register that is
  19806. clobbered by the vfork. */
  19807. static void
  19808. #ifdef __cplusplus
  19809. sparc_address_test (int arg)
  19810. # else
  19811. sparc_address_test (arg) int arg;
  19812. #endif
  19813. {
  19814. static pid_t child;
  19815. if (!child) {
  19816. child = vfork ();
  19817. if (child < 0) {
  19818. perror ("vfork");
  19819. _exit(2);
  19820. }
  19821. if (!child) {
  19822. arg = getpid();
  19823. write(-1, "", 0);
  19824. _exit (arg);
  19825. }
  19826. }
  19827. }
  19828. int
  19829. main ()
  19830. {
  19831. pid_t parent = getpid ();
  19832. pid_t child;
  19833. sparc_address_test (0);
  19834. child = vfork ();
  19835. if (child == 0) {
  19836. /* Here is another test for sparc vfork register problems. This
  19837. test uses lots of local variables, at least as many local
  19838. variables as main has allocated so far including compiler
  19839. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  19840. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  19841. reuse the register of parent for one of the local variables,
  19842. since it will think that parent can't possibly be used any more
  19843. in this routine. Assigning to the local variable will thus
  19844. munge parent in the parent process. */
  19845. pid_t
  19846. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  19847. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  19848. /* Convince the compiler that p..p7 are live; otherwise, it might
  19849. use the same hardware register for all 8 local variables. */
  19850. if (p != p1 || p != p2 || p != p3 || p != p4
  19851. || p != p5 || p != p6 || p != p7)
  19852. _exit(1);
  19853. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  19854. from child file descriptors. If the child closes a descriptor
  19855. before it execs or exits, this munges the parent's descriptor
  19856. as well. Test for this by closing stdout in the child. */
  19857. _exit(close(fileno(stdout)) != 0);
  19858. } else {
  19859. int status;
  19860. struct stat st;
  19861. while (wait(&status) != child)
  19862. ;
  19863. return (
  19864. /* Was there some problem with vforking? */
  19865. child < 0
  19866. /* Did the child fail? (This shouldn't happen.) */
  19867. || status
  19868. /* Did the vfork/compiler bug occur? */
  19869. || parent != getpid()
  19870. /* Did the file descriptor bug occur? */
  19871. || fstat(fileno(stdout), &st) != 0
  19872. );
  19873. }
  19874. }
  19875. _ACEOF
  19876. if ac_fn_c_try_run "$LINENO"; then :
  19877. ac_cv_func_vfork_works=yes
  19878. else
  19879. ac_cv_func_vfork_works=no
  19880. fi
  19881. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  19882. conftest.$ac_objext conftest.beam conftest.$ac_ext
  19883. fi
  19884. fi
  19885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  19886. $as_echo "$ac_cv_func_vfork_works" >&6; }
  19887. fi;
  19888. if test "x$ac_cv_func_fork_works" = xcross; then
  19889. ac_cv_func_vfork_works=$ac_cv_func_vfork
  19890. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  19891. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  19892. fi
  19893. if test "x$ac_cv_func_vfork_works" = xyes; then
  19894. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  19895. else
  19896. $as_echo "#define vfork fork" >>confdefs.h
  19897. fi
  19898. if test "x$ac_cv_func_fork_works" = xyes; then
  19899. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  19900. fi
  19901. for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
  19902. strrchr strsignal fchmod fstat chmod
  19903. do :
  19904. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19905. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  19906. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  19907. cat >>confdefs.h <<_ACEOF
  19908. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19909. _ACEOF
  19910. fi
  19911. done
  19912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  19913. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  19914. if ${ac_cv_path_SED+:} false; then :
  19915. $as_echo_n "(cached) " >&6
  19916. else
  19917. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  19918. for ac_i in 1 2 3 4 5 6 7; do
  19919. ac_script="$ac_script$as_nl$ac_script"
  19920. done
  19921. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  19922. { ac_script=; unset ac_script;}
  19923. if test -z "$SED"; then
  19924. ac_path_SED_found=false
  19925. # Loop through the user's path and test for each of PROGNAME-LIST
  19926. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19927. for as_dir in $PATH
  19928. do
  19929. IFS=$as_save_IFS
  19930. test -z "$as_dir" && as_dir=.
  19931. for ac_prog in sed gsed; do
  19932. for ac_exec_ext in '' $ac_executable_extensions; do
  19933. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  19934. as_fn_executable_p "$ac_path_SED" || continue
  19935. # Check for GNU ac_path_SED and select it if it is found.
  19936. # Check for GNU $ac_path_SED
  19937. case `"$ac_path_SED" --version 2>&1` in
  19938. *GNU*)
  19939. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  19940. *)
  19941. ac_count=0
  19942. $as_echo_n 0123456789 >"conftest.in"
  19943. while :
  19944. do
  19945. cat "conftest.in" "conftest.in" >"conftest.tmp"
  19946. mv "conftest.tmp" "conftest.in"
  19947. cp "conftest.in" "conftest.nl"
  19948. $as_echo '' >> "conftest.nl"
  19949. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  19950. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  19951. as_fn_arith $ac_count + 1 && ac_count=$as_val
  19952. if test $ac_count -gt ${ac_path_SED_max-0}; then
  19953. # Best one so far, save it but keep looking for a better one
  19954. ac_cv_path_SED="$ac_path_SED"
  19955. ac_path_SED_max=$ac_count
  19956. fi
  19957. # 10*(2^10) chars as input seems more than enough
  19958. test $ac_count -gt 10 && break
  19959. done
  19960. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  19961. esac
  19962. $ac_path_SED_found && break 3
  19963. done
  19964. done
  19965. done
  19966. IFS=$as_save_IFS
  19967. if test -z "$ac_cv_path_SED"; then
  19968. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  19969. fi
  19970. else
  19971. ac_cv_path_SED=$SED
  19972. fi
  19973. fi
  19974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  19975. $as_echo "$ac_cv_path_SED" >&6; }
  19976. SED="$ac_cv_path_SED"
  19977. rm -f conftest.sed
  19978. while :
  19979. do
  19980. POSIX_SHELL=`which bash`
  19981. test -x "$POSIX_SHELL" && break
  19982. POSIX_SHELL=`which dash`
  19983. test -x "$POSIX_SHELL" && break
  19984. POSIX_SHELL=/usr/xpg4/bin/sh
  19985. test -x "$POSIX_SHELL" && break
  19986. POSIX_SHELL=`/bin/sh -c '
  19987. exec 2>/dev/null
  19988. if ! true ; then exit 1 ; fi
  19989. echo /bin/sh'`
  19990. test -x "$POSIX_SHELL" && break
  19991. as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5
  19992. done
  19993. cat >>confdefs.h <<_ACEOF
  19994. #define POSIX_SHELL "${POSIX_SHELL}"
  19995. _ACEOF
  19996. LIBOPTS_BUILD_BLOCKED=''
  19997. NEED_LIBOPTS_DIR=''
  19998. # Check whether --enable-local-libopts was given.
  19999. if test "${enable_local_libopts+set}" = set; then :
  20000. enableval=$enable_local_libopts;
  20001. if test x$enableval = xyes ; then
  20002. { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
  20003. $as_echo "$as_me: Using supplied libopts tearoff" >&6;}
  20004. LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
  20005. NEED_LIBOPTS_DIR=true
  20006. LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
  20007. fi
  20008. fi
  20009. # Check whether --enable-libopts-install was given.
  20010. if test "${enable_libopts_install+set}" = set; then :
  20011. enableval=$enable_libopts_install;
  20012. fi
  20013. if test "X${enable_libopts_install}" = Xyes; then
  20014. INSTALL_LIBOPTS_TRUE=
  20015. INSTALL_LIBOPTS_FALSE='#'
  20016. else
  20017. INSTALL_LIBOPTS_TRUE='#'
  20018. INSTALL_LIBOPTS_FALSE=
  20019. fi
  20020. if test -z "${NEED_LIBOPTS_DIR}" ; then
  20021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
  20022. $as_echo_n "checking whether autoopts-config can be found... " >&6; }
  20023. # Check whether --with-autoopts-config was given.
  20024. if test "${with_autoopts_config+set}" = set; then :
  20025. withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
  20026. else
  20027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
  20028. $as_echo_n "checking whether autoopts-config is specified... " >&6; }
  20029. if ${lo_cv_with_autoopts_config+:} false; then :
  20030. $as_echo_n "(cached) " >&6
  20031. else
  20032. if autoopts-config --help 2>/dev/null 1>&2
  20033. then lo_cv_with_autoopts_config=autoopts-config
  20034. elif libopts-config --help 2>/dev/null 1>&2
  20035. then lo_cv_with_autoopts_config=libopts-config
  20036. else lo_cv_with_autoopts_config=no ; fi
  20037. fi
  20038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
  20039. $as_echo "$lo_cv_with_autoopts_config" >&6; }
  20040. fi
  20041. # end of AC_ARG_WITH
  20042. if ${lo_cv_test_autoopts+:} false; then :
  20043. $as_echo_n "(cached) " >&6
  20044. else
  20045. if test -z "${lo_cv_with_autoopts_config}" \
  20046. -o X"${lo_cv_with_autoopts_config}" = Xno
  20047. then
  20048. if autoopts-config --help 2>/dev/null 1>&2
  20049. then lo_cv_with_autoopts_config=autoopts-config
  20050. elif libopts-config --help 2>/dev/null 1>&2
  20051. then lo_cv_with_autoopts_config=libopts-config
  20052. else lo_cv_with_autoopts_config=false ; fi
  20053. fi
  20054. lo_cv_test_autoopts=`
  20055. ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
  20056. if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
  20057. then lo_cv_test_autoopts=no ; fi
  20058. fi
  20059. # end of CACHE_VAL
  20060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
  20061. $as_echo "${lo_cv_test_autoopts}" >&6; }
  20062. if test "X${lo_cv_test_autoopts}" != Xno
  20063. then
  20064. LIBOPTS_LDADD="${lo_cv_test_autoopts}"
  20065. LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
  20066. else
  20067. LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
  20068. LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
  20069. NEED_LIBOPTS_DIR=true
  20070. fi
  20071. fi # end of if test -z "${NEED_LIBOPTS_DIR}"
  20072. if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then
  20073. NEED_LIBOPTS_DIR=''
  20074. fi
  20075. if test -n "${NEED_LIBOPTS_DIR}"; then
  20076. NEED_LIBOPTS_TRUE=
  20077. NEED_LIBOPTS_FALSE='#'
  20078. else
  20079. NEED_LIBOPTS_TRUE='#'
  20080. NEED_LIBOPTS_FALSE=
  20081. fi
  20082. LIBOPTS_DIR=libopts
  20083. # end of AC_DEFUN of LIBOPTS_CHECK_COMMON
  20084. if test -z "$NEED_LIBOPTS_TRUE"; then :
  20085. # Check to see if a reg expr header is specified.
  20086. # Check whether --with-regex-header was given.
  20087. if test "${with_regex_header+set}" = set; then :
  20088. withval=$with_regex_header; libopts_cv_with_regex_header=${with_regex_header}
  20089. else
  20090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a reg expr header is specified" >&5
  20091. $as_echo_n "checking whether a reg expr header is specified... " >&6; }
  20092. if ${libopts_cv_with_regex_header+:} false; then :
  20093. $as_echo_n "(cached) " >&6
  20094. else
  20095. libopts_cv_with_regex_header=no
  20096. fi
  20097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_regex_header" >&5
  20098. $as_echo "$libopts_cv_with_regex_header" >&6; }
  20099. fi
  20100. # end of AC_ARG_WITH
  20101. if test "X${libopts_cv_with_regex_header}" != Xno
  20102. then
  20103. cat >>confdefs.h <<_ACEOF
  20104. #define REGEX_HEADER <${libopts_cv_with_regex_header}>
  20105. _ACEOF
  20106. else
  20107. $as_echo "#define REGEX_HEADER <regex.h>" >>confdefs.h
  20108. fi
  20109. # Check to see if a working libregex can be found.
  20110. # Check whether --with-libregex was given.
  20111. if test "${with_libregex+set}" = set; then :
  20112. withval=$with_libregex; libopts_cv_with_libregex_root=${with_libregex}
  20113. else
  20114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex was specified" >&5
  20115. $as_echo_n "checking whether with-libregex was specified... " >&6; }
  20116. if ${libopts_cv_with_libregex_root+:} false; then :
  20117. $as_echo_n "(cached) " >&6
  20118. else
  20119. libopts_cv_with_libregex_root=no
  20120. fi
  20121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_root" >&5
  20122. $as_echo "$libopts_cv_with_libregex_root" >&6; }
  20123. fi
  20124. # end of AC_ARG_WITH libregex
  20125. if test "${with_libregex+set}" = set && \
  20126. test "X${withval}" = Xno
  20127. then ## disabled by request
  20128. libopts_cv_with_libregex_root=no
  20129. libopts_cv_with_libregex_cflags=no
  20130. libopts_cv_with_libregex_libs=no
  20131. else
  20132. # Check whether --with-libregex-cflags was given.
  20133. if test "${with_libregex_cflags+set}" = set; then :
  20134. withval=$with_libregex_cflags; libopts_cv_with_libregex_cflags=${with_libregex_cflags}
  20135. else
  20136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-cflags was specified" >&5
  20137. $as_echo_n "checking whether with-libregex-cflags was specified... " >&6; }
  20138. if ${libopts_cv_with_libregex_cflags+:} false; then :
  20139. $as_echo_n "(cached) " >&6
  20140. else
  20141. libopts_cv_with_libregex_cflags=no
  20142. fi
  20143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_cflags" >&5
  20144. $as_echo "$libopts_cv_with_libregex_cflags" >&6; }
  20145. fi
  20146. # end of AC_ARG_WITH libregex-cflags
  20147. # Check whether --with-libregex-libs was given.
  20148. if test "${with_libregex_libs+set}" = set; then :
  20149. withval=$with_libregex_libs; libopts_cv_with_libregex_libs=${with_libregex_libs}
  20150. else
  20151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-libs was specified" >&5
  20152. $as_echo_n "checking whether with-libregex-libs was specified... " >&6; }
  20153. if ${libopts_cv_with_libregex_libs+:} false; then :
  20154. $as_echo_n "(cached) " >&6
  20155. else
  20156. libopts_cv_with_libregex_libs=no
  20157. fi
  20158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_libs" >&5
  20159. $as_echo "$libopts_cv_with_libregex_libs" >&6; }
  20160. fi
  20161. # end of AC_ARG_WITH libregex-libs
  20162. case "X${libopts_cv_with_libregex_cflags}" in
  20163. Xyes|Xno|X )
  20164. case "X${libopts_cv_with_libregex_root}" in
  20165. Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
  20166. * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
  20167. esac
  20168. esac
  20169. case "X${libopts_cv_with_libregex_libs}" in
  20170. Xyes|Xno|X )
  20171. case "X${libopts_cv_with_libregex_root}" in
  20172. Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
  20173. * ) libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex";;
  20174. esac
  20175. esac
  20176. libopts_save_CPPFLAGS="${CPPFLAGS}"
  20177. libopts_save_LIBS="${LIBS}"
  20178. case "X${libopts_cv_with_libregex_cflags}" in
  20179. Xyes|Xno|X )
  20180. libopts_cv_with_libregex_cflags="" ;;
  20181. * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
  20182. esac
  20183. case "X${libopts_cv_with_libregex_libs}" in
  20184. Xyes|Xno|X )
  20185. libopts_cv_with_libregex_libs="" ;;
  20186. * )
  20187. LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
  20188. esac
  20189. LIBREGEX_CFLAGS=""
  20190. LIBREGEX_LIBS=""
  20191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libregex functions properly" >&5
  20192. $as_echo_n "checking whether libregex functions properly... " >&6; }
  20193. if ${libopts_cv_with_libregex+:} false; then :
  20194. $as_echo_n "(cached) " >&6
  20195. else
  20196. if test "$cross_compiling" = yes; then :
  20197. libopts_cv_with_libregex=no
  20198. else
  20199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20200. /* end confdefs.h. */
  20201. #include <stdio.h>
  20202. #include <stdlib.h>
  20203. #include <sys/types.h>
  20204. #include REGEX_HEADER
  20205. static regex_t re;
  20206. void comp_re( char const* pzPat ) {
  20207. int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
  20208. if (res == 0) return;
  20209. exit( res ); }
  20210. int main() {
  20211. regmatch_t m[2];
  20212. comp_re( "^.*\$" );
  20213. comp_re( "()|no.*" );
  20214. comp_re( "." );
  20215. if (regexec( &re, "X", 2, m, 0 ) != 0) return 1;
  20216. if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
  20217. fputs( "error: regex -->.<-- did not match\n", stderr );
  20218. return 1;
  20219. }
  20220. return 0; }
  20221. _ACEOF
  20222. if ac_fn_c_try_run "$LINENO"; then :
  20223. libopts_cv_with_libregex=yes
  20224. else
  20225. libopts_cv_with_libregex=no
  20226. fi
  20227. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  20228. conftest.$ac_objext conftest.beam conftest.$ac_ext
  20229. fi
  20230. # end of AC_RUN_IFELSE
  20231. fi
  20232. # end of AC_CACHE_VAL for libopts_cv_with_libregex
  20233. fi ## disabled by request
  20234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_with_libregex}" >&5
  20235. $as_echo "${libopts_cv_with_libregex}" >&6; }
  20236. if test "X${libopts_cv_with_libregex}" != Xno
  20237. then
  20238. $as_echo "#define WITH_LIBREGEX 1" >>confdefs.h
  20239. else
  20240. CPPFLAGS="${libopts_save_CPPFLAGS}"
  20241. LIBS="${libopts_save_LIBS}"
  20242. libopts_cv_with_libregex_root=no
  20243. libopts_cv_with_libregex_cflags=no
  20244. libopts_cv_with_libregex_libs=no
  20245. libopts_cv_with_libregex=no
  20246. fi
  20247. # Check to see if pathfind(3) works.
  20248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pathfind(3) works" >&5
  20249. $as_echo_n "checking whether pathfind(3) works... " >&6; }
  20250. if ${libopts_cv_run_pathfind+:} false; then :
  20251. $as_echo_n "(cached) " >&6
  20252. else
  20253. if test "$cross_compiling" = yes; then :
  20254. libopts_cv_run_pathfind=no
  20255. else
  20256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20257. /* end confdefs.h. */
  20258. #include <string.h>
  20259. #include <stdlib.h>
  20260. int main (int argc, char** argv) {
  20261. char* pz = pathfind( getenv( "PATH" ), "sh", "x" );
  20262. return (pz == 0) ? 1 : 0;
  20263. }
  20264. _ACEOF
  20265. if ac_fn_c_try_run "$LINENO"; then :
  20266. libopts_cv_run_pathfind=yes
  20267. else
  20268. libopts_cv_run_pathfind=no
  20269. fi
  20270. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  20271. conftest.$ac_objext conftest.beam conftest.$ac_ext
  20272. fi
  20273. # end of RUN_IFELSE
  20274. fi
  20275. # end of AC_CACHE_VAL for libopts_cv_run_pathfind
  20276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_pathfind}" >&5
  20277. $as_echo "${libopts_cv_run_pathfind}" >&6; }
  20278. if test "X${libopts_cv_run_pathfind}" != Xno
  20279. then
  20280. $as_echo "#define HAVE_PATHFIND 1" >>confdefs.h
  20281. fi
  20282. # Check to see if /dev/zero is readable device.
  20283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/zero is readable device" >&5
  20284. $as_echo_n "checking whether /dev/zero is readable device... " >&6; }
  20285. if ${libopts_cv_test_dev_zero+:} false; then :
  20286. $as_echo_n "(cached) " >&6
  20287. else
  20288. libopts_cv_test_dev_zero=`exec 2> /dev/null
  20289. dzero=\`ls -lL /dev/zero | egrep ^c......r\`
  20290. test -z "${dzero}" && exit 1
  20291. echo ${dzero}`
  20292. if test $? -ne 0 || test -z "$libopts_cv_test_dev_zero"
  20293. then libopts_cv_test_dev_zero=no
  20294. fi
  20295. fi
  20296. # end of CACHE_VAL of libopts_cv_test_dev_zero
  20297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_test_dev_zero}" >&5
  20298. $as_echo "${libopts_cv_test_dev_zero}" >&6; }
  20299. if test "X${libopts_cv_test_dev_zero}" != Xno
  20300. then
  20301. $as_echo "#define HAVE_DEV_ZERO 1" >>confdefs.h
  20302. fi
  20303. # Check to see if we have a functional realpath(3C).
  20304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a functional realpath(3C)" >&5
  20305. $as_echo_n "checking whether we have a functional realpath(3C)... " >&6; }
  20306. if ${libopts_cv_run_realpath+:} false; then :
  20307. $as_echo_n "(cached) " >&6
  20308. else
  20309. if test "$cross_compiling" = yes; then :
  20310. libopts_cv_run_realpath=no
  20311. else
  20312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20313. /* end confdefs.h. */
  20314. #include <limits.h>
  20315. #include <stdlib.h>
  20316. int main (int argc, char** argv) {
  20317. #ifndef PATH_MAX
  20318. choke me!!
  20319. #else
  20320. char zPath[PATH_MAX+1];
  20321. #endif
  20322. char *pz = realpath(argv[0], zPath);
  20323. return (pz == zPath) ? 0 : 1;
  20324. }
  20325. _ACEOF
  20326. if ac_fn_c_try_run "$LINENO"; then :
  20327. libopts_cv_run_realpath=yes
  20328. else
  20329. libopts_cv_run_realpath=no
  20330. fi
  20331. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  20332. conftest.$ac_objext conftest.beam conftest.$ac_ext
  20333. fi
  20334. # end of RUN_IFELSE
  20335. fi
  20336. # end of AC_CACHE_VAL for libopts_cv_run_realpath
  20337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_realpath}" >&5
  20338. $as_echo "${libopts_cv_run_realpath}" >&6; }
  20339. if test "X${libopts_cv_run_realpath}" != Xno
  20340. then
  20341. $as_echo "#define HAVE_REALPATH 1" >>confdefs.h
  20342. fi
  20343. # Check to see if strftime() works.
  20344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strftime() works" >&5
  20345. $as_echo_n "checking whether strftime() works... " >&6; }
  20346. if ${libopts_cv_run_strftime+:} false; then :
  20347. $as_echo_n "(cached) " >&6
  20348. else
  20349. if test "$cross_compiling" = yes; then :
  20350. libopts_cv_run_strftime=no
  20351. else
  20352. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20353. /* end confdefs.h. */
  20354. #include <time.h>
  20355. #include <string.h>
  20356. char t_buf[ 64 ];
  20357. int main() {
  20358. static char const z[] = "Thursday Aug 28 240";
  20359. struct tm tm;
  20360. tm.tm_sec = 36; /* seconds after the minute [0, 61] */
  20361. tm.tm_min = 44; /* minutes after the hour [0, 59] */
  20362. tm.tm_hour = 12; /* hour since midnight [0, 23] */
  20363. tm.tm_mday = 28; /* day of the month [1, 31] */
  20364. tm.tm_mon = 7; /* months since January [0, 11] */
  20365. tm.tm_year = 86; /* years since 1900 */
  20366. tm.tm_wday = 4; /* days since Sunday [0, 6] */
  20367. tm.tm_yday = 239; /* days since January 1 [0, 365] */
  20368. tm.tm_isdst = 1; /* flag for daylight savings time */
  20369. strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
  20370. return (strcmp( t_buf, z ) != 0); }
  20371. _ACEOF
  20372. if ac_fn_c_try_run "$LINENO"; then :
  20373. libopts_cv_run_strftime=yes
  20374. else
  20375. libopts_cv_run_strftime=no
  20376. fi
  20377. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  20378. conftest.$ac_objext conftest.beam conftest.$ac_ext
  20379. fi
  20380. # end of RUN_IFELSE
  20381. fi
  20382. # end of AC_CACHE_VAL for libopts_cv_run_strftime
  20383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_strftime}" >&5
  20384. $as_echo "${libopts_cv_run_strftime}" >&6; }
  20385. if test "X${libopts_cv_run_strftime}" != Xno
  20386. then
  20387. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  20388. fi
  20389. # Check to see if fopen accepts "b" mode.
  20390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"b\" mode" >&5
  20391. $as_echo_n "checking whether fopen accepts \"b\" mode... " >&6; }
  20392. if ${libopts_cv_run_fopen_binary+:} false; then :
  20393. $as_echo_n "(cached) " >&6
  20394. else
  20395. if test "$cross_compiling" = yes; then :
  20396. libopts_cv_run_fopen_binary=no
  20397. else
  20398. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20399. /* end confdefs.h. */
  20400. #include <stdio.h>
  20401. int main (int argc, char** argv) {
  20402. FILE* fp = fopen("conftest.$ac_ext", "rb");
  20403. return (fp == NULL) ? 1 : fclose(fp); }
  20404. _ACEOF
  20405. if ac_fn_c_try_run "$LINENO"; then :
  20406. libopts_cv_run_fopen_binary=yes
  20407. else
  20408. libopts_cv_run_fopen_binary=no
  20409. fi
  20410. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  20411. conftest.$ac_objext conftest.beam conftest.$ac_ext
  20412. fi
  20413. # end of RUN_IFELSE
  20414. fi
  20415. # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
  20416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_binary}" >&5
  20417. $as_echo "${libopts_cv_run_fopen_binary}" >&6; }
  20418. if test "X${libopts_cv_run_fopen_binary}" != Xno
  20419. then
  20420. $as_echo "#define FOPEN_BINARY_FLAG \"b\"" >>confdefs.h
  20421. else
  20422. $as_echo "#define FOPEN_BINARY_FLAG \"\"" >>confdefs.h
  20423. fi
  20424. # Check to see if fopen accepts "t" mode.
  20425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"t\" mode" >&5
  20426. $as_echo_n "checking whether fopen accepts \"t\" mode... " >&6; }
  20427. if ${libopts_cv_run_fopen_text+:} false; then :
  20428. $as_echo_n "(cached) " >&6
  20429. else
  20430. if test "$cross_compiling" = yes; then :
  20431. libopts_cv_run_fopen_text=no
  20432. else
  20433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20434. /* end confdefs.h. */
  20435. #include <stdio.h>
  20436. int main (int argc, char** argv) {
  20437. FILE* fp = fopen("conftest.$ac_ext", "rt");
  20438. return (fp == NULL) ? 1 : fclose(fp); }
  20439. _ACEOF
  20440. if ac_fn_c_try_run "$LINENO"; then :
  20441. libopts_cv_run_fopen_text=yes
  20442. else
  20443. libopts_cv_run_fopen_text=no
  20444. fi
  20445. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  20446. conftest.$ac_objext conftest.beam conftest.$ac_ext
  20447. fi
  20448. # end of RUN_IFELSE
  20449. fi
  20450. # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
  20451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_text}" >&5
  20452. $as_echo "${libopts_cv_run_fopen_text}" >&6; }
  20453. if test "X${libopts_cv_run_fopen_text}" != Xno
  20454. then
  20455. $as_echo "#define FOPEN_TEXT_FLAG \"t\"" >>confdefs.h
  20456. else
  20457. $as_echo "#define FOPEN_TEXT_FLAG \"\"" >>confdefs.h
  20458. fi
  20459. # Check to see if not wanting optional option args.
  20460. # Check whether --enable-optional-args was given.
  20461. if test "${enable_optional_args+set}" = set; then :
  20462. enableval=$enable_optional_args; libopts_cv_enable_optional_args=${enable_optional_args}
  20463. else
  20464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether not wanting optional option args" >&5
  20465. $as_echo_n "checking whether not wanting optional option args... " >&6; }
  20466. if ${libopts_cv_enable_optional_args+:} false; then :
  20467. $as_echo_n "(cached) " >&6
  20468. else
  20469. libopts_cv_enable_optional_args=yes
  20470. fi
  20471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_enable_optional_args" >&5
  20472. $as_echo "$libopts_cv_enable_optional_args" >&6; }
  20473. fi
  20474. # end of AC_ARG_ENABLE
  20475. if test "X${libopts_cv_enable_optional_args}" = Xno
  20476. then
  20477. $as_echo "#define NO_OPTIONAL_OPT_ARGS 1" >>confdefs.h
  20478. fi
  20479. fi
  20480. ac_config_files="$ac_config_files libopts/Makefile"
  20481. # end of AC_DEFUN of LIBOPTS_CHECK
  20482. ac_config_files="$ac_config_files Makefile doxygen.cfg lib/Makefile docs/Makefile src/Makefile src/tcpedit/Makefile src/fragroute/Makefile src/common/Makefile src/defines.h test/Makefile test/config scripts/Makefile"
  20483. cat >confcache <<\_ACEOF
  20484. # This file is a shell script that caches the results of configure
  20485. # tests run on this system so they can be shared between configure
  20486. # scripts and configure runs, see configure's option --config-cache.
  20487. # It is not useful on other systems. If it contains results you don't
  20488. # want to keep, you may remove or edit it.
  20489. #
  20490. # config.status only pays attention to the cache file if you give it
  20491. # the --recheck option to rerun configure.
  20492. #
  20493. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  20494. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  20495. # following values.
  20496. _ACEOF
  20497. # The following way of writing the cache mishandles newlines in values,
  20498. # but we know of no workaround that is simple, portable, and efficient.
  20499. # So, we kill variables containing newlines.
  20500. # Ultrix sh set writes to stderr and can't be redirected directly,
  20501. # and sets the high bit in the cache file unless we assign to the vars.
  20502. (
  20503. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  20504. eval ac_val=\$$ac_var
  20505. case $ac_val in #(
  20506. *${as_nl}*)
  20507. case $ac_var in #(
  20508. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  20509. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  20510. esac
  20511. case $ac_var in #(
  20512. _ | IFS | as_nl) ;; #(
  20513. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  20514. *) { eval $ac_var=; unset $ac_var;} ;;
  20515. esac ;;
  20516. esac
  20517. done
  20518. (set) 2>&1 |
  20519. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  20520. *${as_nl}ac_space=\ *)
  20521. # `set' does not quote correctly, so add quotes: double-quote
  20522. # substitution turns \\\\ into \\, and sed turns \\ into \.
  20523. sed -n \
  20524. "s/'/'\\\\''/g;
  20525. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  20526. ;; #(
  20527. *)
  20528. # `set' quotes correctly as required by POSIX, so do not add quotes.
  20529. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  20530. ;;
  20531. esac |
  20532. sort
  20533. ) |
  20534. sed '
  20535. /^ac_cv_env_/b end
  20536. t clear
  20537. :clear
  20538. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  20539. t end
  20540. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  20541. :end' >>confcache
  20542. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  20543. if test -w "$cache_file"; then
  20544. if test "x$cache_file" != "x/dev/null"; then
  20545. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  20546. $as_echo "$as_me: updating cache $cache_file" >&6;}
  20547. if test ! -f "$cache_file" || test -h "$cache_file"; then
  20548. cat confcache >"$cache_file"
  20549. else
  20550. case $cache_file in #(
  20551. */* | ?:*)
  20552. mv -f confcache "$cache_file"$$ &&
  20553. mv -f "$cache_file"$$ "$cache_file" ;; #(
  20554. *)
  20555. mv -f confcache "$cache_file" ;;
  20556. esac
  20557. fi
  20558. fi
  20559. else
  20560. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  20561. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  20562. fi
  20563. fi
  20564. rm -f confcache
  20565. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  20566. # Let make expand exec_prefix.
  20567. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  20568. DEFS=-DHAVE_CONFIG_H
  20569. ac_libobjs=
  20570. ac_ltlibobjs=
  20571. U=
  20572. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  20573. # 1. Remove the extension, and $U if already installed.
  20574. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  20575. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  20576. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  20577. # will be set to the directory where LIBOBJS objects are built.
  20578. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  20579. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  20580. done
  20581. LIBOBJS=$ac_libobjs
  20582. LTLIBOBJS=$ac_ltlibobjs
  20583. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  20584. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  20585. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  20586. fi
  20587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  20588. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  20589. if test -n "$am_sleep_pid"; then
  20590. # Hide warnings about reused PIDs.
  20591. wait $am_sleep_pid 2>/dev/null
  20592. fi
  20593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  20594. $as_echo "done" >&6; }
  20595. if test -n "$EXEEXT"; then
  20596. am__EXEEXT_TRUE=
  20597. am__EXEEXT_FALSE='#'
  20598. else
  20599. am__EXEEXT_TRUE='#'
  20600. am__EXEEXT_FALSE=
  20601. fi
  20602. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  20603. as_fn_error $? "conditional \"AMDEP\" was never defined.
  20604. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  20605. fi
  20606. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  20607. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  20608. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  20609. fi
  20610. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  20611. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  20612. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  20613. fi
  20614. if test -z "${SYSTEM_STRLCPY_TRUE}" && test -z "${SYSTEM_STRLCPY_FALSE}"; then
  20615. as_fn_error $? "conditional \"SYSTEM_STRLCPY\" was never defined.
  20616. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  20617. fi
  20618. if test -z "${WORDS_BIGENDIAN_TRUE}" && test -z "${WORDS_BIGENDIAN_FALSE}"; then
  20619. as_fn_error $? "conditional \"WORDS_BIGENDIAN\" was never defined.
  20620. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  20621. fi
  20622. if test -z "${COMPILE_TCPBRIDGE_TRUE}" && test -z "${COMPILE_TCPBRIDGE_FALSE}"; then
  20623. as_fn_error $? "conditional \"COMPILE_TCPBRIDGE\" was never defined.
  20624. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  20625. fi
  20626. if test -z "${COMPILE_TCPLIVEPLAY_TRUE}" && test -z "${COMPILE_TCPLIVEPLAY_FALSE}"; then
  20627. as_fn_error $? "conditional \"COMPILE_TCPLIVEPLAY\" was never defined.
  20628. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  20629. fi
  20630. if test -z "${COMPILE_NETMAP_TRUE}" && test -z "${COMPILE_NETMAP_FALSE}"; then
  20631. as_fn_error $? "conditional \"COMPILE_NETMAP\" was never defined.
  20632. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  20633. fi
  20634. if test -z "${COMPILE_FRAGROUTE_TRUE}" && test -z "${COMPILE_FRAGROUTE_FALSE}"; then
  20635. as_fn_error $? "conditional \"COMPILE_FRAGROUTE\" was never defined.
  20636. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  20637. fi
  20638. if test -z "${ENABLE_TCPDUMP_TRUE}" && test -z "${ENABLE_TCPDUMP_FALSE}"; then
  20639. as_fn_error $? "conditional \"ENABLE_TCPDUMP\" was never defined.
  20640. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  20641. fi
  20642. if test -z "${ENABLE_OSX_FRAMEWORKS_TRUE}" && test -z "${ENABLE_OSX_FRAMEWORKS_FALSE}"; then
  20643. as_fn_error $? "conditional \"ENABLE_OSX_FRAMEWORKS\" was never defined.
  20644. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  20645. fi
  20646. if test -z "${GL_GENERATE_STDNORETURN_H_TRUE}" && test -z "${GL_GENERATE_STDNORETURN_H_FALSE}"; then
  20647. as_fn_error $? "conditional \"GL_GENERATE_STDNORETURN_H\" was never defined.
  20648. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  20649. fi
  20650. if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
  20651. as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined.
  20652. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  20653. fi
  20654. if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
  20655. as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined.
  20656. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  20657. fi
  20658. : "${CONFIG_STATUS=./config.status}"
  20659. ac_write_fail=0
  20660. ac_clean_files_save=$ac_clean_files
  20661. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  20662. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  20663. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  20664. as_write_fail=0
  20665. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  20666. #! $SHELL
  20667. # Generated by $as_me.
  20668. # Run this file to recreate the current configuration.
  20669. # Compiler output produced by configure, useful for debugging
  20670. # configure, is in config.log if it exists.
  20671. debug=false
  20672. ac_cs_recheck=false
  20673. ac_cs_silent=false
  20674. SHELL=\${CONFIG_SHELL-$SHELL}
  20675. export SHELL
  20676. _ASEOF
  20677. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  20678. ## -------------------- ##
  20679. ## M4sh Initialization. ##
  20680. ## -------------------- ##
  20681. # Be more Bourne compatible
  20682. DUALCASE=1; export DUALCASE # for MKS sh
  20683. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  20684. emulate sh
  20685. NULLCMD=:
  20686. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20687. # is contrary to our usage. Disable this feature.
  20688. alias -g '${1+"$@"}'='"$@"'
  20689. setopt NO_GLOB_SUBST
  20690. else
  20691. case `(set -o) 2>/dev/null` in #(
  20692. *posix*) :
  20693. set -o posix ;; #(
  20694. *) :
  20695. ;;
  20696. esac
  20697. fi
  20698. as_nl='
  20699. '
  20700. export as_nl
  20701. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  20702. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  20703. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  20704. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  20705. # Prefer a ksh shell builtin over an external printf program on Solaris,
  20706. # but without wasting forks for bash or zsh.
  20707. if test -z "$BASH_VERSION$ZSH_VERSION" \
  20708. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  20709. as_echo='print -r --'
  20710. as_echo_n='print -rn --'
  20711. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  20712. as_echo='printf %s\n'
  20713. as_echo_n='printf %s'
  20714. else
  20715. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  20716. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  20717. as_echo_n='/usr/ucb/echo -n'
  20718. else
  20719. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  20720. as_echo_n_body='eval
  20721. arg=$1;
  20722. case $arg in #(
  20723. *"$as_nl"*)
  20724. expr "X$arg" : "X\\(.*\\)$as_nl";
  20725. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  20726. esac;
  20727. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  20728. '
  20729. export as_echo_n_body
  20730. as_echo_n='sh -c $as_echo_n_body as_echo'
  20731. fi
  20732. export as_echo_body
  20733. as_echo='sh -c $as_echo_body as_echo'
  20734. fi
  20735. # The user is always right.
  20736. if test "${PATH_SEPARATOR+set}" != set; then
  20737. PATH_SEPARATOR=:
  20738. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  20739. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  20740. PATH_SEPARATOR=';'
  20741. }
  20742. fi
  20743. # IFS
  20744. # We need space, tab and new line, in precisely that order. Quoting is
  20745. # there to prevent editors from complaining about space-tab.
  20746. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  20747. # splitting by setting IFS to empty value.)
  20748. IFS=" "" $as_nl"
  20749. # Find who we are. Look in the path if we contain no directory separator.
  20750. as_myself=
  20751. case $0 in #((
  20752. *[\\/]* ) as_myself=$0 ;;
  20753. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20754. for as_dir in $PATH
  20755. do
  20756. IFS=$as_save_IFS
  20757. test -z "$as_dir" && as_dir=.
  20758. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  20759. done
  20760. IFS=$as_save_IFS
  20761. ;;
  20762. esac
  20763. # We did not find ourselves, most probably we were run as `sh COMMAND'
  20764. # in which case we are not to be found in the path.
  20765. if test "x$as_myself" = x; then
  20766. as_myself=$0
  20767. fi
  20768. if test ! -f "$as_myself"; then
  20769. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  20770. exit 1
  20771. fi
  20772. # Unset variables that we do not need and which cause bugs (e.g. in
  20773. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  20774. # suppresses any "Segmentation fault" message there. '((' could
  20775. # trigger a bug in pdksh 5.2.14.
  20776. for as_var in BASH_ENV ENV MAIL MAILPATH
  20777. do eval test x\${$as_var+set} = xset \
  20778. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  20779. done
  20780. PS1='$ '
  20781. PS2='> '
  20782. PS4='+ '
  20783. # NLS nuisances.
  20784. LC_ALL=C
  20785. export LC_ALL
  20786. LANGUAGE=C
  20787. export LANGUAGE
  20788. # CDPATH.
  20789. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  20790. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  20791. # ----------------------------------------
  20792. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  20793. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  20794. # script with STATUS, using 1 if that was 0.
  20795. as_fn_error ()
  20796. {
  20797. as_status=$1; test $as_status -eq 0 && as_status=1
  20798. if test "$4"; then
  20799. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  20800. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  20801. fi
  20802. $as_echo "$as_me: error: $2" >&2
  20803. as_fn_exit $as_status
  20804. } # as_fn_error
  20805. # as_fn_set_status STATUS
  20806. # -----------------------
  20807. # Set $? to STATUS, without forking.
  20808. as_fn_set_status ()
  20809. {
  20810. return $1
  20811. } # as_fn_set_status
  20812. # as_fn_exit STATUS
  20813. # -----------------
  20814. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  20815. as_fn_exit ()
  20816. {
  20817. set +e
  20818. as_fn_set_status $1
  20819. exit $1
  20820. } # as_fn_exit
  20821. # as_fn_unset VAR
  20822. # ---------------
  20823. # Portably unset VAR.
  20824. as_fn_unset ()
  20825. {
  20826. { eval $1=; unset $1;}
  20827. }
  20828. as_unset=as_fn_unset
  20829. # as_fn_append VAR VALUE
  20830. # ----------------------
  20831. # Append the text in VALUE to the end of the definition contained in VAR. Take
  20832. # advantage of any shell optimizations that allow amortized linear growth over
  20833. # repeated appends, instead of the typical quadratic growth present in naive
  20834. # implementations.
  20835. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  20836. eval 'as_fn_append ()
  20837. {
  20838. eval $1+=\$2
  20839. }'
  20840. else
  20841. as_fn_append ()
  20842. {
  20843. eval $1=\$$1\$2
  20844. }
  20845. fi # as_fn_append
  20846. # as_fn_arith ARG...
  20847. # ------------------
  20848. # Perform arithmetic evaluation on the ARGs, and store the result in the
  20849. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  20850. # must be portable across $(()) and expr.
  20851. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  20852. eval 'as_fn_arith ()
  20853. {
  20854. as_val=$(( $* ))
  20855. }'
  20856. else
  20857. as_fn_arith ()
  20858. {
  20859. as_val=`expr "$@" || test $? -eq 1`
  20860. }
  20861. fi # as_fn_arith
  20862. if expr a : '\(a\)' >/dev/null 2>&1 &&
  20863. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  20864. as_expr=expr
  20865. else
  20866. as_expr=false
  20867. fi
  20868. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  20869. as_basename=basename
  20870. else
  20871. as_basename=false
  20872. fi
  20873. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  20874. as_dirname=dirname
  20875. else
  20876. as_dirname=false
  20877. fi
  20878. as_me=`$as_basename -- "$0" ||
  20879. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  20880. X"$0" : 'X\(//\)$' \| \
  20881. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  20882. $as_echo X/"$0" |
  20883. sed '/^.*\/\([^/][^/]*\)\/*$/{
  20884. s//\1/
  20885. q
  20886. }
  20887. /^X\/\(\/\/\)$/{
  20888. s//\1/
  20889. q
  20890. }
  20891. /^X\/\(\/\).*/{
  20892. s//\1/
  20893. q
  20894. }
  20895. s/.*/./; q'`
  20896. # Avoid depending upon Character Ranges.
  20897. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  20898. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  20899. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  20900. as_cr_digits='0123456789'
  20901. as_cr_alnum=$as_cr_Letters$as_cr_digits
  20902. ECHO_C= ECHO_N= ECHO_T=
  20903. case `echo -n x` in #(((((
  20904. -n*)
  20905. case `echo 'xy\c'` in
  20906. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  20907. xy) ECHO_C='\c';;
  20908. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  20909. ECHO_T=' ';;
  20910. esac;;
  20911. *)
  20912. ECHO_N='-n';;
  20913. esac
  20914. rm -f conf$$ conf$$.exe conf$$.file
  20915. if test -d conf$$.dir; then
  20916. rm -f conf$$.dir/conf$$.file
  20917. else
  20918. rm -f conf$$.dir
  20919. mkdir conf$$.dir 2>/dev/null
  20920. fi
  20921. if (echo >conf$$.file) 2>/dev/null; then
  20922. if ln -s conf$$.file conf$$ 2>/dev/null; then
  20923. as_ln_s='ln -s'
  20924. # ... but there are two gotchas:
  20925. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  20926. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  20927. # In both cases, we have to default to `cp -pR'.
  20928. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  20929. as_ln_s='cp -pR'
  20930. elif ln conf$$.file conf$$ 2>/dev/null; then
  20931. as_ln_s=ln
  20932. else
  20933. as_ln_s='cp -pR'
  20934. fi
  20935. else
  20936. as_ln_s='cp -pR'
  20937. fi
  20938. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  20939. rmdir conf$$.dir 2>/dev/null
  20940. # as_fn_mkdir_p
  20941. # -------------
  20942. # Create "$as_dir" as a directory, including parents if necessary.
  20943. as_fn_mkdir_p ()
  20944. {
  20945. case $as_dir in #(
  20946. -*) as_dir=./$as_dir;;
  20947. esac
  20948. test -d "$as_dir" || eval $as_mkdir_p || {
  20949. as_dirs=
  20950. while :; do
  20951. case $as_dir in #(
  20952. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  20953. *) as_qdir=$as_dir;;
  20954. esac
  20955. as_dirs="'$as_qdir' $as_dirs"
  20956. as_dir=`$as_dirname -- "$as_dir" ||
  20957. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20958. X"$as_dir" : 'X\(//\)[^/]' \| \
  20959. X"$as_dir" : 'X\(//\)$' \| \
  20960. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  20961. $as_echo X"$as_dir" |
  20962. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20963. s//\1/
  20964. q
  20965. }
  20966. /^X\(\/\/\)[^/].*/{
  20967. s//\1/
  20968. q
  20969. }
  20970. /^X\(\/\/\)$/{
  20971. s//\1/
  20972. q
  20973. }
  20974. /^X\(\/\).*/{
  20975. s//\1/
  20976. q
  20977. }
  20978. s/.*/./; q'`
  20979. test -d "$as_dir" && break
  20980. done
  20981. test -z "$as_dirs" || eval "mkdir $as_dirs"
  20982. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  20983. } # as_fn_mkdir_p
  20984. if mkdir -p . 2>/dev/null; then
  20985. as_mkdir_p='mkdir -p "$as_dir"'
  20986. else
  20987. test -d ./-p && rmdir ./-p
  20988. as_mkdir_p=false
  20989. fi
  20990. # as_fn_executable_p FILE
  20991. # -----------------------
  20992. # Test if FILE is an executable regular file.
  20993. as_fn_executable_p ()
  20994. {
  20995. test -f "$1" && test -x "$1"
  20996. } # as_fn_executable_p
  20997. as_test_x='test -x'
  20998. as_executable_p=as_fn_executable_p
  20999. # Sed expression to map a string onto a valid CPP name.
  21000. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  21001. # Sed expression to map a string onto a valid variable name.
  21002. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  21003. exec 6>&1
  21004. ## ----------------------------------- ##
  21005. ## Main body of $CONFIG_STATUS script. ##
  21006. ## ----------------------------------- ##
  21007. _ASEOF
  21008. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  21009. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21010. # Save the log message, to keep $0 and so on meaningful, and to
  21011. # report actual input values of CONFIG_FILES etc. instead of their
  21012. # values after options handling.
  21013. ac_log="
  21014. This file was extended by tcpreplay $as_me 4.2.4, which was
  21015. generated by GNU Autoconf 2.69. Invocation command line was
  21016. CONFIG_FILES = $CONFIG_FILES
  21017. CONFIG_HEADERS = $CONFIG_HEADERS
  21018. CONFIG_LINKS = $CONFIG_LINKS
  21019. CONFIG_COMMANDS = $CONFIG_COMMANDS
  21020. $ $0 $@
  21021. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  21022. "
  21023. _ACEOF
  21024. case $ac_config_files in *"
  21025. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  21026. esac
  21027. case $ac_config_headers in *"
  21028. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  21029. esac
  21030. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21031. # Files that config.status was made for.
  21032. config_files="$ac_config_files"
  21033. config_headers="$ac_config_headers"
  21034. config_commands="$ac_config_commands"
  21035. _ACEOF
  21036. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21037. ac_cs_usage="\
  21038. \`$as_me' instantiates files and other configuration actions
  21039. from templates according to the current configuration. Unless the files
  21040. and actions are specified as TAGs, all are instantiated by default.
  21041. Usage: $0 [OPTION]... [TAG]...
  21042. -h, --help print this help, then exit
  21043. -V, --version print version number and configuration settings, then exit
  21044. --config print configuration, then exit
  21045. -q, --quiet, --silent
  21046. do not print progress messages
  21047. -d, --debug don't remove temporary files
  21048. --recheck update $as_me by reconfiguring in the same conditions
  21049. --file=FILE[:TEMPLATE]
  21050. instantiate the configuration file FILE
  21051. --header=FILE[:TEMPLATE]
  21052. instantiate the configuration header FILE
  21053. Configuration files:
  21054. $config_files
  21055. Configuration headers:
  21056. $config_headers
  21057. Configuration commands:
  21058. $config_commands
  21059. Report bugs to <https://github.com/appneta/tcpreplay/issues>.
  21060. tcpreplay home page: <http://tcpreplay.sourceforge.net/>."
  21061. _ACEOF
  21062. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21063. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  21064. ac_cs_version="\\
  21065. tcpreplay config.status 4.2.4
  21066. configured by $0, generated by GNU Autoconf 2.69,
  21067. with options \\"\$ac_cs_config\\"
  21068. Copyright (C) 2012 Free Software Foundation, Inc.
  21069. This config.status script is free software; the Free Software Foundation
  21070. gives unlimited permission to copy, distribute and modify it."
  21071. ac_pwd='$ac_pwd'
  21072. srcdir='$srcdir'
  21073. INSTALL='$INSTALL'
  21074. MKDIR_P='$MKDIR_P'
  21075. AWK='$AWK'
  21076. test -n "\$AWK" || AWK=awk
  21077. _ACEOF
  21078. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21079. # The default lists apply if the user does not specify any file.
  21080. ac_need_defaults=:
  21081. while test $# != 0
  21082. do
  21083. case $1 in
  21084. --*=?*)
  21085. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21086. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  21087. ac_shift=:
  21088. ;;
  21089. --*=)
  21090. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21091. ac_optarg=
  21092. ac_shift=:
  21093. ;;
  21094. *)
  21095. ac_option=$1
  21096. ac_optarg=$2
  21097. ac_shift=shift
  21098. ;;
  21099. esac
  21100. case $ac_option in
  21101. # Handling of the options.
  21102. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  21103. ac_cs_recheck=: ;;
  21104. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  21105. $as_echo "$ac_cs_version"; exit ;;
  21106. --config | --confi | --conf | --con | --co | --c )
  21107. $as_echo "$ac_cs_config"; exit ;;
  21108. --debug | --debu | --deb | --de | --d | -d )
  21109. debug=: ;;
  21110. --file | --fil | --fi | --f )
  21111. $ac_shift
  21112. case $ac_optarg in
  21113. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21114. '') as_fn_error $? "missing file argument" ;;
  21115. esac
  21116. as_fn_append CONFIG_FILES " '$ac_optarg'"
  21117. ac_need_defaults=false;;
  21118. --header | --heade | --head | --hea )
  21119. $ac_shift
  21120. case $ac_optarg in
  21121. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21122. esac
  21123. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  21124. ac_need_defaults=false;;
  21125. --he | --h)
  21126. # Conflict between --help and --header
  21127. as_fn_error $? "ambiguous option: \`$1'
  21128. Try \`$0 --help' for more information.";;
  21129. --help | --hel | -h )
  21130. $as_echo "$ac_cs_usage"; exit ;;
  21131. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  21132. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  21133. ac_cs_silent=: ;;
  21134. # This is an error.
  21135. -*) as_fn_error $? "unrecognized option: \`$1'
  21136. Try \`$0 --help' for more information." ;;
  21137. *) as_fn_append ac_config_targets " $1"
  21138. ac_need_defaults=false ;;
  21139. esac
  21140. shift
  21141. done
  21142. ac_configure_extra_args=
  21143. if $ac_cs_silent; then
  21144. exec 6>/dev/null
  21145. ac_configure_extra_args="$ac_configure_extra_args --silent"
  21146. fi
  21147. _ACEOF
  21148. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21149. if \$ac_cs_recheck; then
  21150. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  21151. shift
  21152. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  21153. CONFIG_SHELL='$SHELL'
  21154. export CONFIG_SHELL
  21155. exec "\$@"
  21156. fi
  21157. _ACEOF
  21158. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21159. exec 5>>config.log
  21160. {
  21161. echo
  21162. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  21163. ## Running $as_me. ##
  21164. _ASBOX
  21165. $as_echo "$ac_log"
  21166. } >&5
  21167. _ACEOF
  21168. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21169. #
  21170. # INIT-COMMANDS
  21171. #
  21172. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  21173. # The HP-UX ksh and POSIX shell print the target directory to stdout
  21174. # if CDPATH is set.
  21175. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  21176. sed_quote_subst='$sed_quote_subst'
  21177. double_quote_subst='$double_quote_subst'
  21178. delay_variable_subst='$delay_variable_subst'
  21179. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  21180. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  21181. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  21182. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  21183. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  21184. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  21185. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  21186. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  21187. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  21188. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  21189. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  21190. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  21191. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  21192. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  21193. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  21194. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  21195. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  21196. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  21197. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  21198. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  21199. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  21200. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  21201. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  21202. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  21203. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  21204. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  21205. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  21206. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  21207. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  21208. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  21209. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  21210. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  21211. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  21212. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  21213. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  21214. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  21215. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  21216. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  21217. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  21218. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  21219. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  21220. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  21221. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  21222. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  21223. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  21224. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  21225. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  21226. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  21227. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  21228. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  21229. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  21230. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  21231. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  21232. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  21233. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  21234. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  21235. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  21236. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  21237. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  21238. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  21239. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  21240. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  21241. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  21242. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  21243. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  21244. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  21245. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  21246. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  21247. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  21248. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  21249. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  21250. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  21251. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  21252. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  21253. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  21254. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  21255. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  21256. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  21257. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  21258. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  21259. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  21260. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  21261. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  21262. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  21263. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  21264. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  21265. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  21266. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  21267. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  21268. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  21269. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  21270. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  21271. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  21272. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  21273. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  21274. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  21275. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  21276. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  21277. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  21278. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  21279. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  21280. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  21281. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  21282. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  21283. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  21284. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  21285. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  21286. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  21287. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  21288. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  21289. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  21290. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  21291. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  21292. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  21293. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  21294. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  21295. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  21296. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  21297. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  21298. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  21299. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  21300. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  21301. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  21302. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  21303. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  21304. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  21305. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  21306. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  21307. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  21308. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  21309. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  21310. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  21311. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  21312. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  21313. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  21314. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  21315. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  21316. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21317. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21318. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21319. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  21320. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  21321. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21322. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  21323. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  21324. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  21325. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  21326. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  21327. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  21328. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21329. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21330. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  21331. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21332. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21333. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21334. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21335. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21336. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21337. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  21338. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21339. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21340. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21341. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  21342. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  21343. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  21344. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  21345. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  21346. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  21347. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  21348. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  21349. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  21350. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21351. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  21352. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  21353. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21354. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21355. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21356. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  21357. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  21358. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  21359. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  21360. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  21361. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  21362. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  21363. LTCC='$LTCC'
  21364. LTCFLAGS='$LTCFLAGS'
  21365. compiler='$compiler_DEFAULT'
  21366. # A function that is used when there is no print builtin or printf.
  21367. func_fallback_echo ()
  21368. {
  21369. eval 'cat <<_LTECHO_EOF
  21370. \$1
  21371. _LTECHO_EOF'
  21372. }
  21373. # Quote evaled strings.
  21374. for var in SHELL \
  21375. ECHO \
  21376. PATH_SEPARATOR \
  21377. SED \
  21378. GREP \
  21379. EGREP \
  21380. FGREP \
  21381. LD \
  21382. NM \
  21383. LN_S \
  21384. lt_SP2NL \
  21385. lt_NL2SP \
  21386. reload_flag \
  21387. OBJDUMP \
  21388. deplibs_check_method \
  21389. file_magic_cmd \
  21390. file_magic_glob \
  21391. want_nocaseglob \
  21392. DLLTOOL \
  21393. sharedlib_from_linklib_cmd \
  21394. AR \
  21395. AR_FLAGS \
  21396. archiver_list_spec \
  21397. STRIP \
  21398. RANLIB \
  21399. CC \
  21400. CFLAGS \
  21401. compiler \
  21402. lt_cv_sys_global_symbol_pipe \
  21403. lt_cv_sys_global_symbol_to_cdecl \
  21404. lt_cv_sys_global_symbol_to_c_name_address \
  21405. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  21406. nm_file_list_spec \
  21407. lt_prog_compiler_no_builtin_flag \
  21408. lt_prog_compiler_pic \
  21409. lt_prog_compiler_wl \
  21410. lt_prog_compiler_static \
  21411. lt_cv_prog_compiler_c_o \
  21412. need_locks \
  21413. MANIFEST_TOOL \
  21414. DSYMUTIL \
  21415. NMEDIT \
  21416. LIPO \
  21417. OTOOL \
  21418. OTOOL64 \
  21419. shrext_cmds \
  21420. export_dynamic_flag_spec \
  21421. whole_archive_flag_spec \
  21422. compiler_needs_object \
  21423. with_gnu_ld \
  21424. allow_undefined_flag \
  21425. no_undefined_flag \
  21426. hardcode_libdir_flag_spec \
  21427. hardcode_libdir_separator \
  21428. exclude_expsyms \
  21429. include_expsyms \
  21430. file_list_spec \
  21431. variables_saved_for_relink \
  21432. libname_spec \
  21433. library_names_spec \
  21434. soname_spec \
  21435. install_override_mode \
  21436. finish_eval \
  21437. old_striplib \
  21438. striplib \
  21439. compiler_lib_search_dirs \
  21440. predep_objects \
  21441. postdep_objects \
  21442. predeps \
  21443. postdeps \
  21444. compiler_lib_search_path \
  21445. LD_CXX \
  21446. reload_flag_CXX \
  21447. compiler_CXX \
  21448. lt_prog_compiler_no_builtin_flag_CXX \
  21449. lt_prog_compiler_pic_CXX \
  21450. lt_prog_compiler_wl_CXX \
  21451. lt_prog_compiler_static_CXX \
  21452. lt_cv_prog_compiler_c_o_CXX \
  21453. export_dynamic_flag_spec_CXX \
  21454. whole_archive_flag_spec_CXX \
  21455. compiler_needs_object_CXX \
  21456. with_gnu_ld_CXX \
  21457. allow_undefined_flag_CXX \
  21458. no_undefined_flag_CXX \
  21459. hardcode_libdir_flag_spec_CXX \
  21460. hardcode_libdir_separator_CXX \
  21461. exclude_expsyms_CXX \
  21462. include_expsyms_CXX \
  21463. file_list_spec_CXX \
  21464. compiler_lib_search_dirs_CXX \
  21465. predep_objects_CXX \
  21466. postdep_objects_CXX \
  21467. predeps_CXX \
  21468. postdeps_CXX \
  21469. compiler_lib_search_path_CXX; do
  21470. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  21471. *[\\\\\\\`\\"\\\$]*)
  21472. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  21473. ;;
  21474. *)
  21475. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  21476. ;;
  21477. esac
  21478. done
  21479. # Double-quote double-evaled strings.
  21480. for var in reload_cmds \
  21481. old_postinstall_cmds \
  21482. old_postuninstall_cmds \
  21483. old_archive_cmds \
  21484. extract_expsyms_cmds \
  21485. old_archive_from_new_cmds \
  21486. old_archive_from_expsyms_cmds \
  21487. archive_cmds \
  21488. archive_expsym_cmds \
  21489. module_cmds \
  21490. module_expsym_cmds \
  21491. export_symbols_cmds \
  21492. prelink_cmds \
  21493. postlink_cmds \
  21494. postinstall_cmds \
  21495. postuninstall_cmds \
  21496. finish_cmds \
  21497. sys_lib_search_path_spec \
  21498. sys_lib_dlsearch_path_spec \
  21499. reload_cmds_CXX \
  21500. old_archive_cmds_CXX \
  21501. old_archive_from_new_cmds_CXX \
  21502. old_archive_from_expsyms_cmds_CXX \
  21503. archive_cmds_CXX \
  21504. archive_expsym_cmds_CXX \
  21505. module_cmds_CXX \
  21506. module_expsym_cmds_CXX \
  21507. export_symbols_cmds_CXX \
  21508. prelink_cmds_CXX \
  21509. postlink_cmds_CXX; do
  21510. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  21511. *[\\\\\\\`\\"\\\$]*)
  21512. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  21513. ;;
  21514. *)
  21515. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  21516. ;;
  21517. esac
  21518. done
  21519. ac_aux_dir='$ac_aux_dir'
  21520. xsi_shell='$xsi_shell'
  21521. lt_shell_append='$lt_shell_append'
  21522. # See if we are running on zsh, and set the options which allow our
  21523. # commands through without removal of \ escapes INIT.
  21524. if test -n "\${ZSH_VERSION+set}" ; then
  21525. setopt NO_GLOB_SUBST
  21526. fi
  21527. PACKAGE='$PACKAGE'
  21528. VERSION='$VERSION'
  21529. TIMESTAMP='$TIMESTAMP'
  21530. RM='$RM'
  21531. ofile='$ofile'
  21532. _ACEOF
  21533. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21534. # Handling of arguments.
  21535. for ac_config_target in $ac_config_targets
  21536. do
  21537. case $ac_config_target in
  21538. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  21539. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  21540. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  21541. "libopts/Makefile") CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;;
  21542. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  21543. "doxygen.cfg") CONFIG_FILES="$CONFIG_FILES doxygen.cfg" ;;
  21544. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  21545. "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
  21546. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  21547. "src/tcpedit/Makefile") CONFIG_FILES="$CONFIG_FILES src/tcpedit/Makefile" ;;
  21548. "src/fragroute/Makefile") CONFIG_FILES="$CONFIG_FILES src/fragroute/Makefile" ;;
  21549. "src/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/Makefile" ;;
  21550. "src/defines.h") CONFIG_FILES="$CONFIG_FILES src/defines.h" ;;
  21551. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  21552. "test/config") CONFIG_FILES="$CONFIG_FILES test/config" ;;
  21553. "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
  21554. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  21555. esac
  21556. done
  21557. # If the user did not use the arguments to specify the items to instantiate,
  21558. # then the envvar interface is used. Set only those that are not.
  21559. # We use the long form for the default assignment because of an extremely
  21560. # bizarre bug on SunOS 4.1.3.
  21561. if $ac_need_defaults; then
  21562. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  21563. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  21564. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  21565. fi
  21566. # Have a temporary directory for convenience. Make it in the build tree
  21567. # simply because there is no reason against having it here, and in addition,
  21568. # creating and moving files from /tmp can sometimes cause problems.
  21569. # Hook for its removal unless debugging.
  21570. # Note that there is a small window in which the directory will not be cleaned:
  21571. # after its creation but before its name has been assigned to `$tmp'.
  21572. $debug ||
  21573. {
  21574. tmp= ac_tmp=
  21575. trap 'exit_status=$?
  21576. : "${ac_tmp:=$tmp}"
  21577. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  21578. ' 0
  21579. trap 'as_fn_exit 1' 1 2 13 15
  21580. }
  21581. # Create a (secure) tmp directory for tmp files.
  21582. {
  21583. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  21584. test -d "$tmp"
  21585. } ||
  21586. {
  21587. tmp=./conf$$-$RANDOM
  21588. (umask 077 && mkdir "$tmp")
  21589. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  21590. ac_tmp=$tmp
  21591. # Set up the scripts for CONFIG_FILES section.
  21592. # No need to generate them if there are no CONFIG_FILES.
  21593. # This happens for instance with `./config.status config.h'.
  21594. if test -n "$CONFIG_FILES"; then
  21595. ac_cr=`echo X | tr X '\015'`
  21596. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  21597. # But we know of no other shell where ac_cr would be empty at this
  21598. # point, so we can use a bashism as a fallback.
  21599. if test "x$ac_cr" = x; then
  21600. eval ac_cr=\$\'\\r\'
  21601. fi
  21602. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  21603. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  21604. ac_cs_awk_cr='\\r'
  21605. else
  21606. ac_cs_awk_cr=$ac_cr
  21607. fi
  21608. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  21609. _ACEOF
  21610. {
  21611. echo "cat >conf$$subs.awk <<_ACEOF" &&
  21612. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  21613. echo "_ACEOF"
  21614. } >conf$$subs.sh ||
  21615. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  21616. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  21617. ac_delim='%!_!# '
  21618. for ac_last_try in false false false false false :; do
  21619. . ./conf$$subs.sh ||
  21620. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  21621. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  21622. if test $ac_delim_n = $ac_delim_num; then
  21623. break
  21624. elif $ac_last_try; then
  21625. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  21626. else
  21627. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21628. fi
  21629. done
  21630. rm -f conf$$subs.sh
  21631. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21632. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  21633. _ACEOF
  21634. sed -n '
  21635. h
  21636. s/^/S["/; s/!.*/"]=/
  21637. p
  21638. g
  21639. s/^[^!]*!//
  21640. :repl
  21641. t repl
  21642. s/'"$ac_delim"'$//
  21643. t delim
  21644. :nl
  21645. h
  21646. s/\(.\{148\}\)..*/\1/
  21647. t more1
  21648. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  21649. p
  21650. n
  21651. b repl
  21652. :more1
  21653. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  21654. p
  21655. g
  21656. s/.\{148\}//
  21657. t nl
  21658. :delim
  21659. h
  21660. s/\(.\{148\}\)..*/\1/
  21661. t more2
  21662. s/["\\]/\\&/g; s/^/"/; s/$/"/
  21663. p
  21664. b
  21665. :more2
  21666. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  21667. p
  21668. g
  21669. s/.\{148\}//
  21670. t delim
  21671. ' <conf$$subs.awk | sed '
  21672. /^[^""]/{
  21673. N
  21674. s/\n//
  21675. }
  21676. ' >>$CONFIG_STATUS || ac_write_fail=1
  21677. rm -f conf$$subs.awk
  21678. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21679. _ACAWK
  21680. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  21681. for (key in S) S_is_set[key] = 1
  21682. FS = ""
  21683. }
  21684. {
  21685. line = $ 0
  21686. nfields = split(line, field, "@")
  21687. substed = 0
  21688. len = length(field[1])
  21689. for (i = 2; i < nfields; i++) {
  21690. key = field[i]
  21691. keylen = length(key)
  21692. if (S_is_set[key]) {
  21693. value = S[key]
  21694. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  21695. len += length(value) + length(field[++i])
  21696. substed = 1
  21697. } else
  21698. len += 1 + keylen
  21699. }
  21700. print line
  21701. }
  21702. _ACAWK
  21703. _ACEOF
  21704. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21705. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  21706. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  21707. else
  21708. cat
  21709. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  21710. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  21711. _ACEOF
  21712. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  21713. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  21714. # trailing colons and then remove the whole line if VPATH becomes empty
  21715. # (actually we leave an empty line to preserve line numbers).
  21716. if test "x$srcdir" = x.; then
  21717. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  21718. h
  21719. s///
  21720. s/^/:/
  21721. s/[ ]*$/:/
  21722. s/:\$(srcdir):/:/g
  21723. s/:\${srcdir}:/:/g
  21724. s/:@srcdir@:/:/g
  21725. s/^:*//
  21726. s/:*$//
  21727. x
  21728. s/\(=[ ]*\).*/\1/
  21729. G
  21730. s/\n//
  21731. s/^[^=]*=[ ]*$//
  21732. }'
  21733. fi
  21734. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21735. fi # test -n "$CONFIG_FILES"
  21736. # Set up the scripts for CONFIG_HEADERS section.
  21737. # No need to generate them if there are no CONFIG_HEADERS.
  21738. # This happens for instance with `./config.status Makefile'.
  21739. if test -n "$CONFIG_HEADERS"; then
  21740. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  21741. BEGIN {
  21742. _ACEOF
  21743. # Transform confdefs.h into an awk script `defines.awk', embedded as
  21744. # here-document in config.status, that substitutes the proper values into
  21745. # config.h.in to produce config.h.
  21746. # Create a delimiter string that does not exist in confdefs.h, to ease
  21747. # handling of long lines.
  21748. ac_delim='%!_!# '
  21749. for ac_last_try in false false :; do
  21750. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  21751. if test -z "$ac_tt"; then
  21752. break
  21753. elif $ac_last_try; then
  21754. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  21755. else
  21756. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21757. fi
  21758. done
  21759. # For the awk script, D is an array of macro values keyed by name,
  21760. # likewise P contains macro parameters if any. Preserve backslash
  21761. # newline sequences.
  21762. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  21763. sed -n '
  21764. s/.\{148\}/&'"$ac_delim"'/g
  21765. t rset
  21766. :rset
  21767. s/^[ ]*#[ ]*define[ ][ ]*/ /
  21768. t def
  21769. d
  21770. :def
  21771. s/\\$//
  21772. t bsnl
  21773. s/["\\]/\\&/g
  21774. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  21775. D["\1"]=" \3"/p
  21776. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  21777. d
  21778. :bsnl
  21779. s/["\\]/\\&/g
  21780. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  21781. D["\1"]=" \3\\\\\\n"\\/p
  21782. t cont
  21783. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  21784. t cont
  21785. d
  21786. :cont
  21787. n
  21788. s/.\{148\}/&'"$ac_delim"'/g
  21789. t clear
  21790. :clear
  21791. s/\\$//
  21792. t bsnlc
  21793. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  21794. d
  21795. :bsnlc
  21796. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  21797. b cont
  21798. ' <confdefs.h | sed '
  21799. s/'"$ac_delim"'/"\\\
  21800. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  21801. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21802. for (key in D) D_is_set[key] = 1
  21803. FS = ""
  21804. }
  21805. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  21806. line = \$ 0
  21807. split(line, arg, " ")
  21808. if (arg[1] == "#") {
  21809. defundef = arg[2]
  21810. mac1 = arg[3]
  21811. } else {
  21812. defundef = substr(arg[1], 2)
  21813. mac1 = arg[2]
  21814. }
  21815. split(mac1, mac2, "(") #)
  21816. macro = mac2[1]
  21817. prefix = substr(line, 1, index(line, defundef) - 1)
  21818. if (D_is_set[macro]) {
  21819. # Preserve the white space surrounding the "#".
  21820. print prefix "define", macro P[macro] D[macro]
  21821. next
  21822. } else {
  21823. # Replace #undef with comments. This is necessary, for example,
  21824. # in the case of _POSIX_SOURCE, which is predefined and required
  21825. # on some systems where configure will not decide to define it.
  21826. if (defundef == "undef") {
  21827. print "/*", prefix defundef, macro, "*/"
  21828. next
  21829. }
  21830. }
  21831. }
  21832. { print }
  21833. _ACAWK
  21834. _ACEOF
  21835. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21836. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  21837. fi # test -n "$CONFIG_HEADERS"
  21838. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  21839. shift
  21840. for ac_tag
  21841. do
  21842. case $ac_tag in
  21843. :[FHLC]) ac_mode=$ac_tag; continue;;
  21844. esac
  21845. case $ac_mode$ac_tag in
  21846. :[FHL]*:*);;
  21847. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  21848. :[FH]-) ac_tag=-:-;;
  21849. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  21850. esac
  21851. ac_save_IFS=$IFS
  21852. IFS=:
  21853. set x $ac_tag
  21854. IFS=$ac_save_IFS
  21855. shift
  21856. ac_file=$1
  21857. shift
  21858. case $ac_mode in
  21859. :L) ac_source=$1;;
  21860. :[FH])
  21861. ac_file_inputs=
  21862. for ac_f
  21863. do
  21864. case $ac_f in
  21865. -) ac_f="$ac_tmp/stdin";;
  21866. *) # Look for the file first in the build tree, then in the source tree
  21867. # (if the path is not absolute). The absolute path cannot be DOS-style,
  21868. # because $ac_f cannot contain `:'.
  21869. test -f "$ac_f" ||
  21870. case $ac_f in
  21871. [\\/$]*) false;;
  21872. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  21873. esac ||
  21874. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  21875. esac
  21876. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  21877. as_fn_append ac_file_inputs " '$ac_f'"
  21878. done
  21879. # Let's still pretend it is `configure' which instantiates (i.e., don't
  21880. # use $as_me), people would be surprised to read:
  21881. # /* config.h. Generated by config.status. */
  21882. configure_input='Generated from '`
  21883. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  21884. `' by configure.'
  21885. if test x"$ac_file" != x-; then
  21886. configure_input="$ac_file. $configure_input"
  21887. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  21888. $as_echo "$as_me: creating $ac_file" >&6;}
  21889. fi
  21890. # Neutralize special characters interpreted by sed in replacement strings.
  21891. case $configure_input in #(
  21892. *\&* | *\|* | *\\* )
  21893. ac_sed_conf_input=`$as_echo "$configure_input" |
  21894. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  21895. *) ac_sed_conf_input=$configure_input;;
  21896. esac
  21897. case $ac_tag in
  21898. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  21899. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  21900. esac
  21901. ;;
  21902. esac
  21903. ac_dir=`$as_dirname -- "$ac_file" ||
  21904. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21905. X"$ac_file" : 'X\(//\)[^/]' \| \
  21906. X"$ac_file" : 'X\(//\)$' \| \
  21907. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  21908. $as_echo X"$ac_file" |
  21909. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21910. s//\1/
  21911. q
  21912. }
  21913. /^X\(\/\/\)[^/].*/{
  21914. s//\1/
  21915. q
  21916. }
  21917. /^X\(\/\/\)$/{
  21918. s//\1/
  21919. q
  21920. }
  21921. /^X\(\/\).*/{
  21922. s//\1/
  21923. q
  21924. }
  21925. s/.*/./; q'`
  21926. as_dir="$ac_dir"; as_fn_mkdir_p
  21927. ac_builddir=.
  21928. case "$ac_dir" in
  21929. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  21930. *)
  21931. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  21932. # A ".." for each directory in $ac_dir_suffix.
  21933. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  21934. case $ac_top_builddir_sub in
  21935. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  21936. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  21937. esac ;;
  21938. esac
  21939. ac_abs_top_builddir=$ac_pwd
  21940. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  21941. # for backward compatibility:
  21942. ac_top_builddir=$ac_top_build_prefix
  21943. case $srcdir in
  21944. .) # We are building in place.
  21945. ac_srcdir=.
  21946. ac_top_srcdir=$ac_top_builddir_sub
  21947. ac_abs_top_srcdir=$ac_pwd ;;
  21948. [\\/]* | ?:[\\/]* ) # Absolute name.
  21949. ac_srcdir=$srcdir$ac_dir_suffix;
  21950. ac_top_srcdir=$srcdir
  21951. ac_abs_top_srcdir=$srcdir ;;
  21952. *) # Relative name.
  21953. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  21954. ac_top_srcdir=$ac_top_build_prefix$srcdir
  21955. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  21956. esac
  21957. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  21958. case $ac_mode in
  21959. :F)
  21960. #
  21961. # CONFIG_FILE
  21962. #
  21963. case $INSTALL in
  21964. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  21965. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  21966. esac
  21967. ac_MKDIR_P=$MKDIR_P
  21968. case $MKDIR_P in
  21969. [\\/$]* | ?:[\\/]* ) ;;
  21970. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  21971. esac
  21972. _ACEOF
  21973. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21974. # If the template does not know about datarootdir, expand it.
  21975. # FIXME: This hack should be removed a few years after 2.60.
  21976. ac_datarootdir_hack=; ac_datarootdir_seen=
  21977. ac_sed_dataroot='
  21978. /datarootdir/ {
  21979. p
  21980. q
  21981. }
  21982. /@datadir@/p
  21983. /@docdir@/p
  21984. /@infodir@/p
  21985. /@localedir@/p
  21986. /@mandir@/p'
  21987. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  21988. *datarootdir*) ac_datarootdir_seen=yes;;
  21989. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  21990. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  21991. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  21992. _ACEOF
  21993. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21994. ac_datarootdir_hack='
  21995. s&@datadir@&$datadir&g
  21996. s&@docdir@&$docdir&g
  21997. s&@infodir@&$infodir&g
  21998. s&@localedir@&$localedir&g
  21999. s&@mandir@&$mandir&g
  22000. s&\\\${datarootdir}&$datarootdir&g' ;;
  22001. esac
  22002. _ACEOF
  22003. # Neutralize VPATH when `$srcdir' = `.'.
  22004. # Shell code in configure.ac might set extrasub.
  22005. # FIXME: do we really want to maintain this feature?
  22006. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22007. ac_sed_extra="$ac_vpsub
  22008. $extrasub
  22009. _ACEOF
  22010. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22011. :t
  22012. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  22013. s|@configure_input@|$ac_sed_conf_input|;t t
  22014. s&@top_builddir@&$ac_top_builddir_sub&;t t
  22015. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  22016. s&@srcdir@&$ac_srcdir&;t t
  22017. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  22018. s&@top_srcdir@&$ac_top_srcdir&;t t
  22019. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  22020. s&@builddir@&$ac_builddir&;t t
  22021. s&@abs_builddir@&$ac_abs_builddir&;t t
  22022. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  22023. s&@INSTALL@&$ac_INSTALL&;t t
  22024. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  22025. $ac_datarootdir_hack
  22026. "
  22027. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  22028. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22029. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  22030. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  22031. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  22032. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  22033. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22034. which seems to be undefined. Please make sure it is defined" >&5
  22035. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22036. which seems to be undefined. Please make sure it is defined" >&2;}
  22037. rm -f "$ac_tmp/stdin"
  22038. case $ac_file in
  22039. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  22040. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  22041. esac \
  22042. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22043. ;;
  22044. :H)
  22045. #
  22046. # CONFIG_HEADER
  22047. #
  22048. if test x"$ac_file" != x-; then
  22049. {
  22050. $as_echo "/* $configure_input */" \
  22051. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  22052. } >"$ac_tmp/config.h" \
  22053. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22054. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  22055. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  22056. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  22057. else
  22058. rm -f "$ac_file"
  22059. mv "$ac_tmp/config.h" "$ac_file" \
  22060. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22061. fi
  22062. else
  22063. $as_echo "/* $configure_input */" \
  22064. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  22065. || as_fn_error $? "could not create -" "$LINENO" 5
  22066. fi
  22067. # Compute "$ac_file"'s index in $config_headers.
  22068. _am_arg="$ac_file"
  22069. _am_stamp_count=1
  22070. for _am_header in $config_headers :; do
  22071. case $_am_header in
  22072. $_am_arg | $_am_arg:* )
  22073. break ;;
  22074. * )
  22075. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  22076. esac
  22077. done
  22078. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  22079. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22080. X"$_am_arg" : 'X\(//\)[^/]' \| \
  22081. X"$_am_arg" : 'X\(//\)$' \| \
  22082. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  22083. $as_echo X"$_am_arg" |
  22084. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22085. s//\1/
  22086. q
  22087. }
  22088. /^X\(\/\/\)[^/].*/{
  22089. s//\1/
  22090. q
  22091. }
  22092. /^X\(\/\/\)$/{
  22093. s//\1/
  22094. q
  22095. }
  22096. /^X\(\/\).*/{
  22097. s//\1/
  22098. q
  22099. }
  22100. s/.*/./; q'`/stamp-h$_am_stamp_count
  22101. ;;
  22102. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  22103. $as_echo "$as_me: executing $ac_file commands" >&6;}
  22104. ;;
  22105. esac
  22106. case $ac_file$ac_mode in
  22107. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  22108. # Older Autoconf quotes --file arguments for eval, but not when files
  22109. # are listed without --file. Let's play safe and only enable the eval
  22110. # if we detect the quoting.
  22111. case $CONFIG_FILES in
  22112. *\'*) eval set x "$CONFIG_FILES" ;;
  22113. *) set x $CONFIG_FILES ;;
  22114. esac
  22115. shift
  22116. for mf
  22117. do
  22118. # Strip MF so we end up with the name of the file.
  22119. mf=`echo "$mf" | sed -e 's/:.*$//'`
  22120. # Check whether this is an Automake generated Makefile or not.
  22121. # We used to match only the files named 'Makefile.in', but
  22122. # some people rename them; so instead we look at the file content.
  22123. # Grep'ing the first line is not enough: some people post-process
  22124. # each Makefile.in and add a new line on top of each file to say so.
  22125. # Grep'ing the whole file is not good either: AIX grep has a line
  22126. # limit of 2048, but all sed's we know have understand at least 4000.
  22127. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  22128. dirpart=`$as_dirname -- "$mf" ||
  22129. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22130. X"$mf" : 'X\(//\)[^/]' \| \
  22131. X"$mf" : 'X\(//\)$' \| \
  22132. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  22133. $as_echo X"$mf" |
  22134. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22135. s//\1/
  22136. q
  22137. }
  22138. /^X\(\/\/\)[^/].*/{
  22139. s//\1/
  22140. q
  22141. }
  22142. /^X\(\/\/\)$/{
  22143. s//\1/
  22144. q
  22145. }
  22146. /^X\(\/\).*/{
  22147. s//\1/
  22148. q
  22149. }
  22150. s/.*/./; q'`
  22151. else
  22152. continue
  22153. fi
  22154. # Extract the definition of DEPDIR, am__include, and am__quote
  22155. # from the Makefile without running 'make'.
  22156. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  22157. test -z "$DEPDIR" && continue
  22158. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  22159. test -z "$am__include" && continue
  22160. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  22161. # Find all dependency output files, they are included files with
  22162. # $(DEPDIR) in their names. We invoke sed twice because it is the
  22163. # simplest approach to changing $(DEPDIR) to its actual value in the
  22164. # expansion.
  22165. for file in `sed -n "
  22166. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  22167. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  22168. # Make sure the directory exists.
  22169. test -f "$dirpart/$file" && continue
  22170. fdir=`$as_dirname -- "$file" ||
  22171. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22172. X"$file" : 'X\(//\)[^/]' \| \
  22173. X"$file" : 'X\(//\)$' \| \
  22174. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  22175. $as_echo X"$file" |
  22176. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22177. s//\1/
  22178. q
  22179. }
  22180. /^X\(\/\/\)[^/].*/{
  22181. s//\1/
  22182. q
  22183. }
  22184. /^X\(\/\/\)$/{
  22185. s//\1/
  22186. q
  22187. }
  22188. /^X\(\/\).*/{
  22189. s//\1/
  22190. q
  22191. }
  22192. s/.*/./; q'`
  22193. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  22194. # echo "creating $dirpart/$file"
  22195. echo '# dummy' > "$dirpart/$file"
  22196. done
  22197. done
  22198. }
  22199. ;;
  22200. "libtool":C)
  22201. # See if we are running on zsh, and set the options which allow our
  22202. # commands through without removal of \ escapes.
  22203. if test -n "${ZSH_VERSION+set}" ; then
  22204. setopt NO_GLOB_SUBST
  22205. fi
  22206. cfgfile="${ofile}T"
  22207. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  22208. $RM "$cfgfile"
  22209. cat <<_LT_EOF >> "$cfgfile"
  22210. #! $SHELL
  22211. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  22212. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  22213. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  22214. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  22215. #
  22216. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  22217. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  22218. # Foundation, Inc.
  22219. # Written by Gordon Matzigkeit, 1996
  22220. #
  22221. # This file is part of GNU Libtool.
  22222. #
  22223. # GNU Libtool is free software; you can redistribute it and/or
  22224. # modify it under the terms of the GNU General Public License as
  22225. # published by the Free Software Foundation; either version 2 of
  22226. # the License, or (at your option) any later version.
  22227. #
  22228. # As a special exception to the GNU General Public License,
  22229. # if you distribute this file as part of a program or library that
  22230. # is built using GNU Libtool, you may include this file under the
  22231. # same distribution terms that you use for the rest of that program.
  22232. #
  22233. # GNU Libtool is distributed in the hope that it will be useful,
  22234. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22235. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22236. # GNU General Public License for more details.
  22237. #
  22238. # You should have received a copy of the GNU General Public License
  22239. # along with GNU Libtool; see the file COPYING. If not, a copy
  22240. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  22241. # obtained by writing to the Free Software Foundation, Inc.,
  22242. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22243. # The names of the tagged configurations supported by this script.
  22244. available_tags="CXX "
  22245. # ### BEGIN LIBTOOL CONFIG
  22246. # Which release of libtool.m4 was used?
  22247. macro_version=$macro_version
  22248. macro_revision=$macro_revision
  22249. # Whether or not to build shared libraries.
  22250. build_libtool_libs=$enable_shared
  22251. # Whether or not to build static libraries.
  22252. build_old_libs=$enable_static
  22253. # What type of objects to build.
  22254. pic_mode=$pic_mode
  22255. # Whether or not to optimize for fast installation.
  22256. fast_install=$enable_fast_install
  22257. # Shell to use when invoking shell scripts.
  22258. SHELL=$lt_SHELL
  22259. # An echo program that protects backslashes.
  22260. ECHO=$lt_ECHO
  22261. # The PATH separator for the build system.
  22262. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  22263. # The host system.
  22264. host_alias=$host_alias
  22265. host=$host
  22266. host_os=$host_os
  22267. # The build system.
  22268. build_alias=$build_alias
  22269. build=$build
  22270. build_os=$build_os
  22271. # A sed program that does not truncate output.
  22272. SED=$lt_SED
  22273. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  22274. Xsed="\$SED -e 1s/^X//"
  22275. # A grep program that handles long lines.
  22276. GREP=$lt_GREP
  22277. # An ERE matcher.
  22278. EGREP=$lt_EGREP
  22279. # A literal string matcher.
  22280. FGREP=$lt_FGREP
  22281. # A BSD- or MS-compatible name lister.
  22282. NM=$lt_NM
  22283. # Whether we need soft or hard links.
  22284. LN_S=$lt_LN_S
  22285. # What is the maximum length of a command?
  22286. max_cmd_len=$max_cmd_len
  22287. # Object file suffix (normally "o").
  22288. objext=$ac_objext
  22289. # Executable file suffix (normally "").
  22290. exeext=$exeext
  22291. # whether the shell understands "unset".
  22292. lt_unset=$lt_unset
  22293. # turn spaces into newlines.
  22294. SP2NL=$lt_lt_SP2NL
  22295. # turn newlines into spaces.
  22296. NL2SP=$lt_lt_NL2SP
  22297. # convert \$build file names to \$host format.
  22298. to_host_file_cmd=$lt_cv_to_host_file_cmd
  22299. # convert \$build files to toolchain format.
  22300. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  22301. # An object symbol dumper.
  22302. OBJDUMP=$lt_OBJDUMP
  22303. # Method to check whether dependent libraries are shared objects.
  22304. deplibs_check_method=$lt_deplibs_check_method
  22305. # Command to use when deplibs_check_method = "file_magic".
  22306. file_magic_cmd=$lt_file_magic_cmd
  22307. # How to find potential files when deplibs_check_method = "file_magic".
  22308. file_magic_glob=$lt_file_magic_glob
  22309. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  22310. want_nocaseglob=$lt_want_nocaseglob
  22311. # DLL creation program.
  22312. DLLTOOL=$lt_DLLTOOL
  22313. # Command to associate shared and link libraries.
  22314. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  22315. # The archiver.
  22316. AR=$lt_AR
  22317. # Flags to create an archive.
  22318. AR_FLAGS=$lt_AR_FLAGS
  22319. # How to feed a file listing to the archiver.
  22320. archiver_list_spec=$lt_archiver_list_spec
  22321. # A symbol stripping program.
  22322. STRIP=$lt_STRIP
  22323. # Commands used to install an old-style archive.
  22324. RANLIB=$lt_RANLIB
  22325. old_postinstall_cmds=$lt_old_postinstall_cmds
  22326. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  22327. # Whether to use a lock for old archive extraction.
  22328. lock_old_archive_extraction=$lock_old_archive_extraction
  22329. # A C compiler.
  22330. LTCC=$lt_CC
  22331. # LTCC compiler flags.
  22332. LTCFLAGS=$lt_CFLAGS
  22333. # Take the output of nm and produce a listing of raw symbols and C names.
  22334. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  22335. # Transform the output of nm in a proper C declaration.
  22336. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  22337. # Transform the output of nm in a C name address pair.
  22338. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  22339. # Transform the output of nm in a C name address pair when lib prefix is needed.
  22340. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  22341. # Specify filename containing input files for \$NM.
  22342. nm_file_list_spec=$lt_nm_file_list_spec
  22343. # The root where to search for dependent libraries,and in which our libraries should be installed.
  22344. lt_sysroot=$lt_sysroot
  22345. # The name of the directory that contains temporary libtool files.
  22346. objdir=$objdir
  22347. # Used to examine libraries when file_magic_cmd begins with "file".
  22348. MAGIC_CMD=$MAGIC_CMD
  22349. # Must we lock files when doing compilation?
  22350. need_locks=$lt_need_locks
  22351. # Manifest tool.
  22352. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  22353. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  22354. DSYMUTIL=$lt_DSYMUTIL
  22355. # Tool to change global to local symbols on Mac OS X.
  22356. NMEDIT=$lt_NMEDIT
  22357. # Tool to manipulate fat objects and archives on Mac OS X.
  22358. LIPO=$lt_LIPO
  22359. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  22360. OTOOL=$lt_OTOOL
  22361. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  22362. OTOOL64=$lt_OTOOL64
  22363. # Old archive suffix (normally "a").
  22364. libext=$libext
  22365. # Shared library suffix (normally ".so").
  22366. shrext_cmds=$lt_shrext_cmds
  22367. # The commands to extract the exported symbol list from a shared archive.
  22368. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  22369. # Variables whose values should be saved in libtool wrapper scripts and
  22370. # restored at link time.
  22371. variables_saved_for_relink=$lt_variables_saved_for_relink
  22372. # Do we need the "lib" prefix for modules?
  22373. need_lib_prefix=$need_lib_prefix
  22374. # Do we need a version for libraries?
  22375. need_version=$need_version
  22376. # Library versioning type.
  22377. version_type=$version_type
  22378. # Shared library runtime path variable.
  22379. runpath_var=$runpath_var
  22380. # Shared library path variable.
  22381. shlibpath_var=$shlibpath_var
  22382. # Is shlibpath searched before the hard-coded library search path?
  22383. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  22384. # Format of library name prefix.
  22385. libname_spec=$lt_libname_spec
  22386. # List of archive names. First name is the real one, the rest are links.
  22387. # The last name is the one that the linker finds with -lNAME
  22388. library_names_spec=$lt_library_names_spec
  22389. # The coded name of the library, if different from the real name.
  22390. soname_spec=$lt_soname_spec
  22391. # Permission mode override for installation of shared libraries.
  22392. install_override_mode=$lt_install_override_mode
  22393. # Command to use after installation of a shared archive.
  22394. postinstall_cmds=$lt_postinstall_cmds
  22395. # Command to use after uninstallation of a shared archive.
  22396. postuninstall_cmds=$lt_postuninstall_cmds
  22397. # Commands used to finish a libtool library installation in a directory.
  22398. finish_cmds=$lt_finish_cmds
  22399. # As "finish_cmds", except a single script fragment to be evaled but
  22400. # not shown.
  22401. finish_eval=$lt_finish_eval
  22402. # Whether we should hardcode library paths into libraries.
  22403. hardcode_into_libs=$hardcode_into_libs
  22404. # Compile-time system search path for libraries.
  22405. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  22406. # Run-time system search path for libraries.
  22407. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  22408. # Whether dlopen is supported.
  22409. dlopen_support=$enable_dlopen
  22410. # Whether dlopen of programs is supported.
  22411. dlopen_self=$enable_dlopen_self
  22412. # Whether dlopen of statically linked programs is supported.
  22413. dlopen_self_static=$enable_dlopen_self_static
  22414. # Commands to strip libraries.
  22415. old_striplib=$lt_old_striplib
  22416. striplib=$lt_striplib
  22417. # The linker used to build libraries.
  22418. LD=$lt_LD
  22419. # How to create reloadable object files.
  22420. reload_flag=$lt_reload_flag
  22421. reload_cmds=$lt_reload_cmds
  22422. # Commands used to build an old-style archive.
  22423. old_archive_cmds=$lt_old_archive_cmds
  22424. # A language specific compiler.
  22425. CC=$lt_compiler
  22426. # Is the compiler the GNU compiler?
  22427. with_gcc=$GCC
  22428. # Compiler flag to turn off builtin functions.
  22429. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  22430. # Additional compiler flags for building library objects.
  22431. pic_flag=$lt_lt_prog_compiler_pic
  22432. # How to pass a linker flag through the compiler.
  22433. wl=$lt_lt_prog_compiler_wl
  22434. # Compiler flag to prevent dynamic linking.
  22435. link_static_flag=$lt_lt_prog_compiler_static
  22436. # Does compiler simultaneously support -c and -o options?
  22437. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  22438. # Whether or not to add -lc for building shared libraries.
  22439. build_libtool_need_lc=$archive_cmds_need_lc
  22440. # Whether or not to disallow shared libs when runtime libs are static.
  22441. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  22442. # Compiler flag to allow reflexive dlopens.
  22443. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  22444. # Compiler flag to generate shared objects directly from archives.
  22445. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  22446. # Whether the compiler copes with passing no objects directly.
  22447. compiler_needs_object=$lt_compiler_needs_object
  22448. # Create an old-style archive from a shared archive.
  22449. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  22450. # Create a temporary old-style archive to link instead of a shared archive.
  22451. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  22452. # Commands used to build a shared archive.
  22453. archive_cmds=$lt_archive_cmds
  22454. archive_expsym_cmds=$lt_archive_expsym_cmds
  22455. # Commands used to build a loadable module if different from building
  22456. # a shared archive.
  22457. module_cmds=$lt_module_cmds
  22458. module_expsym_cmds=$lt_module_expsym_cmds
  22459. # Whether we are building with GNU ld or not.
  22460. with_gnu_ld=$lt_with_gnu_ld
  22461. # Flag that allows shared libraries with undefined symbols to be built.
  22462. allow_undefined_flag=$lt_allow_undefined_flag
  22463. # Flag that enforces no undefined symbols.
  22464. no_undefined_flag=$lt_no_undefined_flag
  22465. # Flag to hardcode \$libdir into a binary during linking.
  22466. # This must work even if \$libdir does not exist
  22467. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  22468. # Whether we need a single "-rpath" flag with a separated argument.
  22469. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  22470. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22471. # DIR into the resulting binary.
  22472. hardcode_direct=$hardcode_direct
  22473. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22474. # DIR into the resulting binary and the resulting library dependency is
  22475. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  22476. # library is relocated.
  22477. hardcode_direct_absolute=$hardcode_direct_absolute
  22478. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  22479. # into the resulting binary.
  22480. hardcode_minus_L=$hardcode_minus_L
  22481. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  22482. # into the resulting binary.
  22483. hardcode_shlibpath_var=$hardcode_shlibpath_var
  22484. # Set to "yes" if building a shared library automatically hardcodes DIR
  22485. # into the library and all subsequent libraries and executables linked
  22486. # against it.
  22487. hardcode_automatic=$hardcode_automatic
  22488. # Set to yes if linker adds runtime paths of dependent libraries
  22489. # to runtime path list.
  22490. inherit_rpath=$inherit_rpath
  22491. # Whether libtool must link a program against all its dependency libraries.
  22492. link_all_deplibs=$link_all_deplibs
  22493. # Set to "yes" if exported symbols are required.
  22494. always_export_symbols=$always_export_symbols
  22495. # The commands to list exported symbols.
  22496. export_symbols_cmds=$lt_export_symbols_cmds
  22497. # Symbols that should not be listed in the preloaded symbols.
  22498. exclude_expsyms=$lt_exclude_expsyms
  22499. # Symbols that must always be exported.
  22500. include_expsyms=$lt_include_expsyms
  22501. # Commands necessary for linking programs (against libraries) with templates.
  22502. prelink_cmds=$lt_prelink_cmds
  22503. # Commands necessary for finishing linking programs.
  22504. postlink_cmds=$lt_postlink_cmds
  22505. # Specify filename containing input files.
  22506. file_list_spec=$lt_file_list_spec
  22507. # How to hardcode a shared library path into an executable.
  22508. hardcode_action=$hardcode_action
  22509. # The directories searched by this compiler when creating a shared library.
  22510. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  22511. # Dependencies to place before and after the objects being linked to
  22512. # create a shared library.
  22513. predep_objects=$lt_predep_objects
  22514. postdep_objects=$lt_postdep_objects
  22515. predeps=$lt_predeps
  22516. postdeps=$lt_postdeps
  22517. # The library search path used internally by the compiler when linking
  22518. # a shared library.
  22519. compiler_lib_search_path=$lt_compiler_lib_search_path
  22520. # ### END LIBTOOL CONFIG
  22521. _LT_EOF
  22522. case $host_os in
  22523. aix3*)
  22524. cat <<\_LT_EOF >> "$cfgfile"
  22525. # AIX sometimes has problems with the GCC collect2 program. For some
  22526. # reason, if we set the COLLECT_NAMES environment variable, the problems
  22527. # vanish in a puff of smoke.
  22528. if test "X${COLLECT_NAMES+set}" != Xset; then
  22529. COLLECT_NAMES=
  22530. export COLLECT_NAMES
  22531. fi
  22532. _LT_EOF
  22533. ;;
  22534. esac
  22535. ltmain="$ac_aux_dir/ltmain.sh"
  22536. # We use sed instead of cat because bash on DJGPP gets confused if
  22537. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  22538. # text mode, it properly converts lines to CR/LF. This bash problem
  22539. # is reportedly fixed, but why not run on old versions too?
  22540. sed '$q' "$ltmain" >> "$cfgfile" \
  22541. || (rm -f "$cfgfile"; exit 1)
  22542. if test x"$xsi_shell" = xyes; then
  22543. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  22544. func_dirname ()\
  22545. {\
  22546. \ case ${1} in\
  22547. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  22548. \ * ) func_dirname_result="${3}" ;;\
  22549. \ esac\
  22550. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  22551. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22552. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22553. test 0 -eq $? || _lt_function_replace_fail=:
  22554. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  22555. func_basename ()\
  22556. {\
  22557. \ func_basename_result="${1##*/}"\
  22558. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  22559. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22560. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22561. test 0 -eq $? || _lt_function_replace_fail=:
  22562. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  22563. func_dirname_and_basename ()\
  22564. {\
  22565. \ case ${1} in\
  22566. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  22567. \ * ) func_dirname_result="${3}" ;;\
  22568. \ esac\
  22569. \ func_basename_result="${1##*/}"\
  22570. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  22571. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22572. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22573. test 0 -eq $? || _lt_function_replace_fail=:
  22574. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  22575. func_stripname ()\
  22576. {\
  22577. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  22578. \ # positional parameters, so assign one to ordinary parameter first.\
  22579. \ func_stripname_result=${3}\
  22580. \ func_stripname_result=${func_stripname_result#"${1}"}\
  22581. \ func_stripname_result=${func_stripname_result%"${2}"}\
  22582. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  22583. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22584. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22585. test 0 -eq $? || _lt_function_replace_fail=:
  22586. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  22587. func_split_long_opt ()\
  22588. {\
  22589. \ func_split_long_opt_name=${1%%=*}\
  22590. \ func_split_long_opt_arg=${1#*=}\
  22591. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  22592. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22593. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22594. test 0 -eq $? || _lt_function_replace_fail=:
  22595. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  22596. func_split_short_opt ()\
  22597. {\
  22598. \ func_split_short_opt_arg=${1#??}\
  22599. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  22600. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  22601. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22602. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22603. test 0 -eq $? || _lt_function_replace_fail=:
  22604. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  22605. func_lo2o ()\
  22606. {\
  22607. \ case ${1} in\
  22608. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  22609. \ *) func_lo2o_result=${1} ;;\
  22610. \ esac\
  22611. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  22612. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22613. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22614. test 0 -eq $? || _lt_function_replace_fail=:
  22615. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  22616. func_xform ()\
  22617. {\
  22618. func_xform_result=${1%.*}.lo\
  22619. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  22620. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22621. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22622. test 0 -eq $? || _lt_function_replace_fail=:
  22623. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  22624. func_arith ()\
  22625. {\
  22626. func_arith_result=$(( $* ))\
  22627. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  22628. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22629. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22630. test 0 -eq $? || _lt_function_replace_fail=:
  22631. sed -e '/^func_len ()$/,/^} # func_len /c\
  22632. func_len ()\
  22633. {\
  22634. func_len_result=${#1}\
  22635. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  22636. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22637. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22638. test 0 -eq $? || _lt_function_replace_fail=:
  22639. fi
  22640. if test x"$lt_shell_append" = xyes; then
  22641. sed -e '/^func_append ()$/,/^} # func_append /c\
  22642. func_append ()\
  22643. {\
  22644. eval "${1}+=\\${2}"\
  22645. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  22646. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22647. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22648. test 0 -eq $? || _lt_function_replace_fail=:
  22649. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  22650. func_append_quoted ()\
  22651. {\
  22652. \ func_quote_for_eval "${2}"\
  22653. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  22654. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  22655. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22656. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22657. test 0 -eq $? || _lt_function_replace_fail=:
  22658. # Save a `func_append' function call where possible by direct use of '+='
  22659. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  22660. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22661. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22662. test 0 -eq $? || _lt_function_replace_fail=:
  22663. else
  22664. # Save a `func_append' function call even when '+=' is not available
  22665. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  22666. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22667. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22668. test 0 -eq $? || _lt_function_replace_fail=:
  22669. fi
  22670. if test x"$_lt_function_replace_fail" = x":"; then
  22671. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  22672. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  22673. fi
  22674. mv -f "$cfgfile" "$ofile" ||
  22675. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  22676. chmod +x "$ofile"
  22677. cat <<_LT_EOF >> "$ofile"
  22678. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  22679. # The linker used to build libraries.
  22680. LD=$lt_LD_CXX
  22681. # How to create reloadable object files.
  22682. reload_flag=$lt_reload_flag_CXX
  22683. reload_cmds=$lt_reload_cmds_CXX
  22684. # Commands used to build an old-style archive.
  22685. old_archive_cmds=$lt_old_archive_cmds_CXX
  22686. # A language specific compiler.
  22687. CC=$lt_compiler_CXX
  22688. # Is the compiler the GNU compiler?
  22689. with_gcc=$GCC_CXX
  22690. # Compiler flag to turn off builtin functions.
  22691. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  22692. # Additional compiler flags for building library objects.
  22693. pic_flag=$lt_lt_prog_compiler_pic_CXX
  22694. # How to pass a linker flag through the compiler.
  22695. wl=$lt_lt_prog_compiler_wl_CXX
  22696. # Compiler flag to prevent dynamic linking.
  22697. link_static_flag=$lt_lt_prog_compiler_static_CXX
  22698. # Does compiler simultaneously support -c and -o options?
  22699. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  22700. # Whether or not to add -lc for building shared libraries.
  22701. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  22702. # Whether or not to disallow shared libs when runtime libs are static.
  22703. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  22704. # Compiler flag to allow reflexive dlopens.
  22705. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  22706. # Compiler flag to generate shared objects directly from archives.
  22707. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  22708. # Whether the compiler copes with passing no objects directly.
  22709. compiler_needs_object=$lt_compiler_needs_object_CXX
  22710. # Create an old-style archive from a shared archive.
  22711. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  22712. # Create a temporary old-style archive to link instead of a shared archive.
  22713. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  22714. # Commands used to build a shared archive.
  22715. archive_cmds=$lt_archive_cmds_CXX
  22716. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  22717. # Commands used to build a loadable module if different from building
  22718. # a shared archive.
  22719. module_cmds=$lt_module_cmds_CXX
  22720. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  22721. # Whether we are building with GNU ld or not.
  22722. with_gnu_ld=$lt_with_gnu_ld_CXX
  22723. # Flag that allows shared libraries with undefined symbols to be built.
  22724. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  22725. # Flag that enforces no undefined symbols.
  22726. no_undefined_flag=$lt_no_undefined_flag_CXX
  22727. # Flag to hardcode \$libdir into a binary during linking.
  22728. # This must work even if \$libdir does not exist
  22729. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  22730. # Whether we need a single "-rpath" flag with a separated argument.
  22731. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  22732. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22733. # DIR into the resulting binary.
  22734. hardcode_direct=$hardcode_direct_CXX
  22735. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22736. # DIR into the resulting binary and the resulting library dependency is
  22737. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  22738. # library is relocated.
  22739. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  22740. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  22741. # into the resulting binary.
  22742. hardcode_minus_L=$hardcode_minus_L_CXX
  22743. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  22744. # into the resulting binary.
  22745. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  22746. # Set to "yes" if building a shared library automatically hardcodes DIR
  22747. # into the library and all subsequent libraries and executables linked
  22748. # against it.
  22749. hardcode_automatic=$hardcode_automatic_CXX
  22750. # Set to yes if linker adds runtime paths of dependent libraries
  22751. # to runtime path list.
  22752. inherit_rpath=$inherit_rpath_CXX
  22753. # Whether libtool must link a program against all its dependency libraries.
  22754. link_all_deplibs=$link_all_deplibs_CXX
  22755. # Set to "yes" if exported symbols are required.
  22756. always_export_symbols=$always_export_symbols_CXX
  22757. # The commands to list exported symbols.
  22758. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  22759. # Symbols that should not be listed in the preloaded symbols.
  22760. exclude_expsyms=$lt_exclude_expsyms_CXX
  22761. # Symbols that must always be exported.
  22762. include_expsyms=$lt_include_expsyms_CXX
  22763. # Commands necessary for linking programs (against libraries) with templates.
  22764. prelink_cmds=$lt_prelink_cmds_CXX
  22765. # Commands necessary for finishing linking programs.
  22766. postlink_cmds=$lt_postlink_cmds_CXX
  22767. # Specify filename containing input files.
  22768. file_list_spec=$lt_file_list_spec_CXX
  22769. # How to hardcode a shared library path into an executable.
  22770. hardcode_action=$hardcode_action_CXX
  22771. # The directories searched by this compiler when creating a shared library.
  22772. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  22773. # Dependencies to place before and after the objects being linked to
  22774. # create a shared library.
  22775. predep_objects=$lt_predep_objects_CXX
  22776. postdep_objects=$lt_postdep_objects_CXX
  22777. predeps=$lt_predeps_CXX
  22778. postdeps=$lt_postdeps_CXX
  22779. # The library search path used internally by the compiler when linking
  22780. # a shared library.
  22781. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  22782. # ### END LIBTOOL TAG CONFIG: CXX
  22783. _LT_EOF
  22784. ;;
  22785. esac
  22786. done # for ac_tag
  22787. as_fn_exit 0
  22788. _ACEOF
  22789. ac_clean_files=$ac_clean_files_save
  22790. test $ac_write_fail = 0 ||
  22791. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  22792. # configure is writing to config.log, and then calls config.status.
  22793. # config.status does its own redirection, appending to config.log.
  22794. # Unfortunately, on DOS this fails, as config.log is still kept open
  22795. # by configure, so config.status won't be able to write to it; its
  22796. # output is simply discarded. So we exec the FD to /dev/null,
  22797. # effectively closing config.log, so it can be properly (re)opened and
  22798. # appended to by config.status. When coming back to configure, we
  22799. # need to make the FD available again.
  22800. if test "$no_create" != yes; then
  22801. ac_cs_success=:
  22802. ac_config_status_args=
  22803. test "$silent" = yes &&
  22804. ac_config_status_args="$ac_config_status_args --quiet"
  22805. exec 5>/dev/null
  22806. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  22807. exec 5>>config.log
  22808. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  22809. # would make configure fail if this is the last instruction.
  22810. $ac_cs_success || as_fn_exit 1
  22811. fi
  22812. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  22813. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  22814. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  22815. fi
  22816. # Configuration results
  22817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ##########################################################################
  22818. TCPREPLAY Suite Configuration Results (${TCPREPLAY_VERSION})
  22819. ##########################################################################
  22820. libpcap: ${foundpcap} (${libpcap_version})
  22821. PF_RING libpcap ${pf_ring_found} ${pf_ring_lib}
  22822. libdnet: ${founddnet} ${libdnet_version}
  22823. autogen: ${AUTOGEN} (${AUTOGEN_VERSION})
  22824. Use libopts tearoff: ${enable_local_libopts}
  22825. 64bit counter support: ${use64bit_counters}
  22826. tcpdump binary path: ${tcpdump_path}
  22827. fragroute support: ${enable_fragroute}
  22828. tcpbridge support: ${enable_tcpbridge}
  22829. tcpliveplay support: ${enable_tcpliveplay}
  22830. Supported Packet Injection Methods (*):
  22831. Linux TX_RING: ${have_tx_ring}
  22832. Linux PF_PACKET: ${have_pf}
  22833. BSD BPF: ${have_bpf}
  22834. libdnet: ${have_libdnet}
  22835. pcap_inject: ${have_pcap_inject}
  22836. pcap_sendpacket: ${have_pcap_sendpacket} **
  22837. pcap_netmap ${have_pcap_netmap}
  22838. Linux/BSD netmap: ${have_netmap}
  22839. Tuntap device support: ${have_tuntap}
  22840. * In order of preference; see configure --help to override
  22841. ** Required for tcpbridge
  22842. " >&5
  22843. $as_echo "##########################################################################
  22844. TCPREPLAY Suite Configuration Results (${TCPREPLAY_VERSION})
  22845. ##########################################################################
  22846. libpcap: ${foundpcap} (${libpcap_version})
  22847. PF_RING libpcap ${pf_ring_found} ${pf_ring_lib}
  22848. libdnet: ${founddnet} ${libdnet_version}
  22849. autogen: ${AUTOGEN} (${AUTOGEN_VERSION})
  22850. Use libopts tearoff: ${enable_local_libopts}
  22851. 64bit counter support: ${use64bit_counters}
  22852. tcpdump binary path: ${tcpdump_path}
  22853. fragroute support: ${enable_fragroute}
  22854. tcpbridge support: ${enable_tcpbridge}
  22855. tcpliveplay support: ${enable_tcpliveplay}
  22856. Supported Packet Injection Methods (*):
  22857. Linux TX_RING: ${have_tx_ring}
  22858. Linux PF_PACKET: ${have_pf}
  22859. BSD BPF: ${have_bpf}
  22860. libdnet: ${have_libdnet}
  22861. pcap_inject: ${have_pcap_inject}
  22862. pcap_sendpacket: ${have_pcap_sendpacket} **
  22863. pcap_netmap ${have_pcap_netmap}
  22864. Linux/BSD netmap: ${have_netmap}
  22865. Tuntap device support: ${have_tuntap}
  22866. * In order of preference; see configure --help to override
  22867. ** Required for tcpbridge
  22868. " >&6; }
  22869. case $host in
  22870. *-apple-darwin*)
  22871. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apple OS X versions prior to 10.5 (Leopard) have a serious problem!
  22872. Please see: http://tcpreplay.synfin.net/trac/ticket/142 for more details" >&5
  22873. $as_echo "$as_me: WARNING: Apple OS X versions prior to 10.5 (Leopard) have a serious problem!
  22874. Please see: http://tcpreplay.synfin.net/trac/ticket/142 for more details" >&2;}
  22875. ;;
  22876. *-*-cygwin)
  22877. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Windows/Cygwin support is still somewhat experimental.
  22878. Please report any bugs! https://github.com/appneta/tcpreplay/issues" >&5
  22879. $as_echo "$as_me: WARNING: Windows/Cygwin support is still somewhat experimental.
  22880. Please report any bugs! https://github.com/appneta/tcpreplay/issues" >&2;}
  22881. ;;
  22882. esac