configure 143 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61 for task-controller 0.1.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9. ## --------------------- ##
  10. ## M4sh Initialization. ##
  11. ## --------------------- ##
  12. # Be more Bourne compatible
  13. DUALCASE=1; export DUALCASE # for MKS sh
  14. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15. emulate sh
  16. NULLCMD=:
  17. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  18. # is contrary to our usage. Disable this feature.
  19. alias -g '${1+"$@"}'='"$@"'
  20. setopt NO_GLOB_SUBST
  21. else
  22. case `(set -o) 2>/dev/null` in
  23. *posix*) set -o posix ;;
  24. esac
  25. fi
  26. # PATH needs CR
  27. # Avoid depending upon Character Ranges.
  28. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  29. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  30. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  31. as_cr_digits='0123456789'
  32. as_cr_alnum=$as_cr_Letters$as_cr_digits
  33. # The user is always right.
  34. if test "${PATH_SEPARATOR+set}" != set; then
  35. echo "#! /bin/sh" >conf$$.sh
  36. echo "exit 0" >>conf$$.sh
  37. chmod +x conf$$.sh
  38. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  39. PATH_SEPARATOR=';'
  40. else
  41. PATH_SEPARATOR=:
  42. fi
  43. rm -f conf$$.sh
  44. fi
  45. # Support unset when possible.
  46. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  47. as_unset=unset
  48. else
  49. as_unset=false
  50. fi
  51. # IFS
  52. # We need space, tab and new line, in precisely that order. Quoting is
  53. # there to prevent editors from complaining about space-tab.
  54. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  55. # splitting by setting IFS to empty value.)
  56. as_nl='
  57. '
  58. IFS=" "" $as_nl"
  59. # Find who we are. Look in the path if we contain no directory separator.
  60. case $0 in
  61. *[\\/]* ) as_myself=$0 ;;
  62. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  63. for as_dir in $PATH
  64. do
  65. IFS=$as_save_IFS
  66. test -z "$as_dir" && as_dir=.
  67. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  68. done
  69. IFS=$as_save_IFS
  70. ;;
  71. esac
  72. # We did not find ourselves, most probably we were run as `sh COMMAND'
  73. # in which case we are not to be found in the path.
  74. if test "x$as_myself" = x; then
  75. as_myself=$0
  76. fi
  77. if test ! -f "$as_myself"; then
  78. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  79. { (exit 1); exit 1; }
  80. fi
  81. # Work around bugs in pre-3.0 UWIN ksh.
  82. for as_var in ENV MAIL MAILPATH
  83. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  84. done
  85. PS1='$ '
  86. PS2='> '
  87. PS4='+ '
  88. # NLS nuisances.
  89. for as_var in \
  90. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  91. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  92. LC_TELEPHONE LC_TIME
  93. do
  94. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  95. eval $as_var=C; export $as_var
  96. else
  97. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  98. fi
  99. done
  100. # Required to use basename.
  101. if expr a : '\(a\)' >/dev/null 2>&1 &&
  102. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  103. as_expr=expr
  104. else
  105. as_expr=false
  106. fi
  107. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  108. as_basename=basename
  109. else
  110. as_basename=false
  111. fi
  112. # Name of the executable.
  113. as_me=`$as_basename -- "$0" ||
  114. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  115. X"$0" : 'X\(//\)$' \| \
  116. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  117. echo X/"$0" |
  118. sed '/^.*\/\([^/][^/]*\)\/*$/{
  119. s//\1/
  120. q
  121. }
  122. /^X\/\(\/\/\)$/{
  123. s//\1/
  124. q
  125. }
  126. /^X\/\(\/\).*/{
  127. s//\1/
  128. q
  129. }
  130. s/.*/./; q'`
  131. # CDPATH.
  132. $as_unset CDPATH
  133. if test "x$CONFIG_SHELL" = x; then
  134. if (eval ":") 2>/dev/null; then
  135. as_have_required=yes
  136. else
  137. as_have_required=no
  138. fi
  139. if test $as_have_required = yes && (eval ":
  140. (as_func_return () {
  141. (exit \$1)
  142. }
  143. as_func_success () {
  144. as_func_return 0
  145. }
  146. as_func_failure () {
  147. as_func_return 1
  148. }
  149. as_func_ret_success () {
  150. return 0
  151. }
  152. as_func_ret_failure () {
  153. return 1
  154. }
  155. exitcode=0
  156. if as_func_success; then
  157. :
  158. else
  159. exitcode=1
  160. echo as_func_success failed.
  161. fi
  162. if as_func_failure; then
  163. exitcode=1
  164. echo as_func_failure succeeded.
  165. fi
  166. if as_func_ret_success; then
  167. :
  168. else
  169. exitcode=1
  170. echo as_func_ret_success failed.
  171. fi
  172. if as_func_ret_failure; then
  173. exitcode=1
  174. echo as_func_ret_failure succeeded.
  175. fi
  176. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  177. :
  178. else
  179. exitcode=1
  180. echo positional parameters were not saved.
  181. fi
  182. test \$exitcode = 0) || { (exit 1); exit 1; }
  183. (
  184. as_lineno_1=\$LINENO
  185. as_lineno_2=\$LINENO
  186. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  187. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  188. ") 2> /dev/null; then
  189. :
  190. else
  191. as_candidate_shells=
  192. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  193. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  194. do
  195. IFS=$as_save_IFS
  196. test -z "$as_dir" && as_dir=.
  197. case $as_dir in
  198. /*)
  199. for as_base in sh bash ksh sh5; do
  200. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  201. done;;
  202. esac
  203. done
  204. IFS=$as_save_IFS
  205. for as_shell in $as_candidate_shells $SHELL; do
  206. # Try only shells that exist, to save several forks.
  207. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  208. { ("$as_shell") 2> /dev/null <<\_ASEOF
  209. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  210. emulate sh
  211. NULLCMD=:
  212. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  213. # is contrary to our usage. Disable this feature.
  214. alias -g '${1+"$@"}'='"$@"'
  215. setopt NO_GLOB_SUBST
  216. else
  217. case `(set -o) 2>/dev/null` in
  218. *posix*) set -o posix ;;
  219. esac
  220. fi
  221. :
  222. _ASEOF
  223. }; then
  224. CONFIG_SHELL=$as_shell
  225. as_have_required=yes
  226. if { "$as_shell" 2> /dev/null <<\_ASEOF
  227. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  228. emulate sh
  229. NULLCMD=:
  230. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  231. # is contrary to our usage. Disable this feature.
  232. alias -g '${1+"$@"}'='"$@"'
  233. setopt NO_GLOB_SUBST
  234. else
  235. case `(set -o) 2>/dev/null` in
  236. *posix*) set -o posix ;;
  237. esac
  238. fi
  239. :
  240. (as_func_return () {
  241. (exit $1)
  242. }
  243. as_func_success () {
  244. as_func_return 0
  245. }
  246. as_func_failure () {
  247. as_func_return 1
  248. }
  249. as_func_ret_success () {
  250. return 0
  251. }
  252. as_func_ret_failure () {
  253. return 1
  254. }
  255. exitcode=0
  256. if as_func_success; then
  257. :
  258. else
  259. exitcode=1
  260. echo as_func_success failed.
  261. fi
  262. if as_func_failure; then
  263. exitcode=1
  264. echo as_func_failure succeeded.
  265. fi
  266. if as_func_ret_success; then
  267. :
  268. else
  269. exitcode=1
  270. echo as_func_ret_success failed.
  271. fi
  272. if as_func_ret_failure; then
  273. exitcode=1
  274. echo as_func_ret_failure succeeded.
  275. fi
  276. if ( set x; as_func_ret_success y && test x = "$1" ); then
  277. :
  278. else
  279. exitcode=1
  280. echo positional parameters were not saved.
  281. fi
  282. test $exitcode = 0) || { (exit 1); exit 1; }
  283. (
  284. as_lineno_1=$LINENO
  285. as_lineno_2=$LINENO
  286. test "x$as_lineno_1" != "x$as_lineno_2" &&
  287. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  288. _ASEOF
  289. }; then
  290. break
  291. fi
  292. fi
  293. done
  294. if test "x$CONFIG_SHELL" != x; then
  295. for as_var in BASH_ENV ENV
  296. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  297. done
  298. export CONFIG_SHELL
  299. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  300. fi
  301. if test $as_have_required = no; then
  302. echo This script requires a shell more modern than all the
  303. echo shells that I found on your system. Please install a
  304. echo modern shell, or manually run the script under such a
  305. echo shell if you do have one.
  306. { (exit 1); exit 1; }
  307. fi
  308. fi
  309. fi
  310. (eval "as_func_return () {
  311. (exit \$1)
  312. }
  313. as_func_success () {
  314. as_func_return 0
  315. }
  316. as_func_failure () {
  317. as_func_return 1
  318. }
  319. as_func_ret_success () {
  320. return 0
  321. }
  322. as_func_ret_failure () {
  323. return 1
  324. }
  325. exitcode=0
  326. if as_func_success; then
  327. :
  328. else
  329. exitcode=1
  330. echo as_func_success failed.
  331. fi
  332. if as_func_failure; then
  333. exitcode=1
  334. echo as_func_failure succeeded.
  335. fi
  336. if as_func_ret_success; then
  337. :
  338. else
  339. exitcode=1
  340. echo as_func_ret_success failed.
  341. fi
  342. if as_func_ret_failure; then
  343. exitcode=1
  344. echo as_func_ret_failure succeeded.
  345. fi
  346. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  347. :
  348. else
  349. exitcode=1
  350. echo positional parameters were not saved.
  351. fi
  352. test \$exitcode = 0") || {
  353. echo No shell found that supports shell functions.
  354. echo Please tell autoconf@gnu.org about your system,
  355. echo including any error possibly output before this
  356. echo message
  357. }
  358. as_lineno_1=$LINENO
  359. as_lineno_2=$LINENO
  360. test "x$as_lineno_1" != "x$as_lineno_2" &&
  361. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  362. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  363. # uniformly replaced by the line number. The first 'sed' inserts a
  364. # line-number line after each line using $LINENO; the second 'sed'
  365. # does the real work. The second script uses 'N' to pair each
  366. # line-number line with the line containing $LINENO, and appends
  367. # trailing '-' during substitution so that $LINENO is not a special
  368. # case at line end.
  369. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  370. # scripts with optimization help from Paolo Bonzini. Blame Lee
  371. # E. McMahon (1931-1989) for sed's syntax. :-)
  372. sed -n '
  373. p
  374. /[$]LINENO/=
  375. ' <$as_myself |
  376. sed '
  377. s/[$]LINENO.*/&-/
  378. t lineno
  379. b
  380. :lineno
  381. N
  382. :loop
  383. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  384. t loop
  385. s/-\n.*//
  386. ' >$as_me.lineno &&
  387. chmod +x "$as_me.lineno" ||
  388. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  389. { (exit 1); exit 1; }; }
  390. # Don't try to exec as it changes $[0], causing all sort of problems
  391. # (the dirname of $[0] is not the place where we might find the
  392. # original and so on. Autoconf is especially sensitive to this).
  393. . "./$as_me.lineno"
  394. # Exit status is that of the last command.
  395. exit
  396. }
  397. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  398. as_dirname=dirname
  399. else
  400. as_dirname=false
  401. fi
  402. ECHO_C= ECHO_N= ECHO_T=
  403. case `echo -n x` in
  404. -n*)
  405. case `echo 'x\c'` in
  406. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  407. *) ECHO_C='\c';;
  408. esac;;
  409. *)
  410. ECHO_N='-n';;
  411. esac
  412. if expr a : '\(a\)' >/dev/null 2>&1 &&
  413. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  414. as_expr=expr
  415. else
  416. as_expr=false
  417. fi
  418. rm -f conf$$ conf$$.exe conf$$.file
  419. if test -d conf$$.dir; then
  420. rm -f conf$$.dir/conf$$.file
  421. else
  422. rm -f conf$$.dir
  423. mkdir conf$$.dir
  424. fi
  425. echo >conf$$.file
  426. if ln -s conf$$.file conf$$ 2>/dev/null; then
  427. as_ln_s='ln -s'
  428. # ... but there are two gotchas:
  429. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  430. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  431. # In both cases, we have to default to `cp -p'.
  432. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  433. as_ln_s='cp -p'
  434. elif ln conf$$.file conf$$ 2>/dev/null; then
  435. as_ln_s=ln
  436. else
  437. as_ln_s='cp -p'
  438. fi
  439. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  440. rmdir conf$$.dir 2>/dev/null
  441. if mkdir -p . 2>/dev/null; then
  442. as_mkdir_p=:
  443. else
  444. test -d ./-p && rmdir ./-p
  445. as_mkdir_p=false
  446. fi
  447. if test -x / >/dev/null 2>&1; then
  448. as_test_x='test -x'
  449. else
  450. if ls -dL / >/dev/null 2>&1; then
  451. as_ls_L_option=L
  452. else
  453. as_ls_L_option=
  454. fi
  455. as_test_x='
  456. eval sh -c '\''
  457. if test -d "$1"; then
  458. test -d "$1/.";
  459. else
  460. case $1 in
  461. -*)set "./$1";;
  462. esac;
  463. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  464. ???[sx]*):;;*)false;;esac;fi
  465. '\'' sh
  466. '
  467. fi
  468. as_executable_p=$as_test_x
  469. # Sed expression to map a string onto a valid CPP name.
  470. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  471. # Sed expression to map a string onto a valid variable name.
  472. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  473. exec 7<&0 </dev/null 6>&1
  474. # Name of the host.
  475. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  476. # so uname gets run too.
  477. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  478. #
  479. # Initializations.
  480. #
  481. ac_default_prefix=/usr/local
  482. ac_clean_files=
  483. ac_config_libobj_dir=.
  484. LIBOBJS=
  485. cross_compiling=no
  486. subdirs=
  487. MFLAGS=
  488. MAKEFLAGS=
  489. SHELL=${CONFIG_SHELL-/bin/sh}
  490. # Identity of this package.
  491. PACKAGE_NAME='task-controller'
  492. PACKAGE_TARNAME='task-controller'
  493. PACKAGE_VERSION='0.1'
  494. PACKAGE_STRING='task-controller 0.1'
  495. PACKAGE_BUGREPORT=''
  496. ac_default_prefix=.
  497. ac_unique_file="task-controller.h"
  498. # Factoring default headers for most tests.
  499. ac_includes_default="\
  500. #include <stdio.h>
  501. #ifdef HAVE_SYS_TYPES_H
  502. # include <sys/types.h>
  503. #endif
  504. #ifdef HAVE_SYS_STAT_H
  505. # include <sys/stat.h>
  506. #endif
  507. #ifdef STDC_HEADERS
  508. # include <stdlib.h>
  509. # include <stddef.h>
  510. #else
  511. # ifdef HAVE_STDLIB_H
  512. # include <stdlib.h>
  513. # endif
  514. #endif
  515. #ifdef HAVE_STRING_H
  516. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  517. # include <memory.h>
  518. # endif
  519. # include <string.h>
  520. #endif
  521. #ifdef HAVE_STRINGS_H
  522. # include <strings.h>
  523. #endif
  524. #ifdef HAVE_INTTYPES_H
  525. # include <inttypes.h>
  526. #endif
  527. #ifdef HAVE_STDINT_H
  528. # include <stdint.h>
  529. #endif
  530. #ifdef HAVE_UNISTD_H
  531. # include <unistd.h>
  532. #endif"
  533. ac_subst_vars='SHELL
  534. PATH_SEPARATOR
  535. PACKAGE_NAME
  536. PACKAGE_TARNAME
  537. PACKAGE_VERSION
  538. PACKAGE_STRING
  539. PACKAGE_BUGREPORT
  540. exec_prefix
  541. prefix
  542. program_transform_name
  543. bindir
  544. sbindir
  545. libexecdir
  546. datarootdir
  547. datadir
  548. sysconfdir
  549. sharedstatedir
  550. localstatedir
  551. includedir
  552. oldincludedir
  553. docdir
  554. infodir
  555. htmldir
  556. dvidir
  557. pdfdir
  558. psdir
  559. libdir
  560. localedir
  561. mandir
  562. DEFS
  563. ECHO_C
  564. ECHO_N
  565. ECHO_T
  566. LIBS
  567. build_alias
  568. host_alias
  569. target_alias
  570. CC
  571. CFLAGS
  572. LDFLAGS
  573. CPPFLAGS
  574. ac_ct_CC
  575. EXEEXT
  576. OBJEXT
  577. CPP
  578. GREP
  579. EGREP
  580. LIBOBJS
  581. LTLIBOBJS'
  582. ac_subst_files=''
  583. ac_precious_vars='build_alias
  584. host_alias
  585. target_alias
  586. CC
  587. CFLAGS
  588. LDFLAGS
  589. LIBS
  590. CPPFLAGS
  591. CPP'
  592. # Initialize some variables set by options.
  593. ac_init_help=
  594. ac_init_version=false
  595. # The variables have the same names as the options, with
  596. # dashes changed to underlines.
  597. cache_file=/dev/null
  598. exec_prefix=NONE
  599. no_create=
  600. no_recursion=
  601. prefix=NONE
  602. program_prefix=NONE
  603. program_suffix=NONE
  604. program_transform_name=s,x,x,
  605. silent=
  606. site=
  607. srcdir=
  608. verbose=
  609. x_includes=NONE
  610. x_libraries=NONE
  611. # Installation directory options.
  612. # These are left unexpanded so users can "make install exec_prefix=/foo"
  613. # and all the variables that are supposed to be based on exec_prefix
  614. # by default will actually change.
  615. # Use braces instead of parens because sh, perl, etc. also accept them.
  616. # (The list follows the same order as the GNU Coding Standards.)
  617. bindir='${exec_prefix}/bin'
  618. sbindir='${exec_prefix}/sbin'
  619. libexecdir='${exec_prefix}/libexec'
  620. datarootdir='${prefix}/share'
  621. datadir='${datarootdir}'
  622. sysconfdir='${prefix}/etc'
  623. sharedstatedir='${prefix}/com'
  624. localstatedir='${prefix}/var'
  625. includedir='${prefix}/include'
  626. oldincludedir='/usr/include'
  627. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  628. infodir='${datarootdir}/info'
  629. htmldir='${docdir}'
  630. dvidir='${docdir}'
  631. pdfdir='${docdir}'
  632. psdir='${docdir}'
  633. libdir='${exec_prefix}/lib'
  634. localedir='${datarootdir}/locale'
  635. mandir='${datarootdir}/man'
  636. ac_prev=
  637. ac_dashdash=
  638. for ac_option
  639. do
  640. # If the previous option needs an argument, assign it.
  641. if test -n "$ac_prev"; then
  642. eval $ac_prev=\$ac_option
  643. ac_prev=
  644. continue
  645. fi
  646. case $ac_option in
  647. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  648. *) ac_optarg=yes ;;
  649. esac
  650. # Accept the important Cygnus configure options, so we can diagnose typos.
  651. case $ac_dashdash$ac_option in
  652. --)
  653. ac_dashdash=yes ;;
  654. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  655. ac_prev=bindir ;;
  656. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  657. bindir=$ac_optarg ;;
  658. -build | --build | --buil | --bui | --bu)
  659. ac_prev=build_alias ;;
  660. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  661. build_alias=$ac_optarg ;;
  662. -cache-file | --cache-file | --cache-fil | --cache-fi \
  663. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  664. ac_prev=cache_file ;;
  665. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  666. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  667. cache_file=$ac_optarg ;;
  668. --config-cache | -C)
  669. cache_file=config.cache ;;
  670. -datadir | --datadir | --datadi | --datad)
  671. ac_prev=datadir ;;
  672. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  673. datadir=$ac_optarg ;;
  674. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  675. | --dataroo | --dataro | --datar)
  676. ac_prev=datarootdir ;;
  677. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  678. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  679. datarootdir=$ac_optarg ;;
  680. -disable-* | --disable-*)
  681. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  682. # Reject names that are not valid shell variable names.
  683. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  684. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  685. { (exit 1); exit 1; }; }
  686. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  687. eval enable_$ac_feature=no ;;
  688. -docdir | --docdir | --docdi | --doc | --do)
  689. ac_prev=docdir ;;
  690. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  691. docdir=$ac_optarg ;;
  692. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  693. ac_prev=dvidir ;;
  694. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  695. dvidir=$ac_optarg ;;
  696. -enable-* | --enable-*)
  697. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  698. # Reject names that are not valid shell variable names.
  699. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  700. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  701. { (exit 1); exit 1; }; }
  702. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  703. eval enable_$ac_feature=\$ac_optarg ;;
  704. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  705. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  706. | --exec | --exe | --ex)
  707. ac_prev=exec_prefix ;;
  708. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  709. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  710. | --exec=* | --exe=* | --ex=*)
  711. exec_prefix=$ac_optarg ;;
  712. -gas | --gas | --ga | --g)
  713. # Obsolete; use --with-gas.
  714. with_gas=yes ;;
  715. -help | --help | --hel | --he | -h)
  716. ac_init_help=long ;;
  717. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  718. ac_init_help=recursive ;;
  719. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  720. ac_init_help=short ;;
  721. -host | --host | --hos | --ho)
  722. ac_prev=host_alias ;;
  723. -host=* | --host=* | --hos=* | --ho=*)
  724. host_alias=$ac_optarg ;;
  725. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  726. ac_prev=htmldir ;;
  727. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  728. | --ht=*)
  729. htmldir=$ac_optarg ;;
  730. -includedir | --includedir | --includedi | --included | --include \
  731. | --includ | --inclu | --incl | --inc)
  732. ac_prev=includedir ;;
  733. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  734. | --includ=* | --inclu=* | --incl=* | --inc=*)
  735. includedir=$ac_optarg ;;
  736. -infodir | --infodir | --infodi | --infod | --info | --inf)
  737. ac_prev=infodir ;;
  738. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  739. infodir=$ac_optarg ;;
  740. -libdir | --libdir | --libdi | --libd)
  741. ac_prev=libdir ;;
  742. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  743. libdir=$ac_optarg ;;
  744. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  745. | --libexe | --libex | --libe)
  746. ac_prev=libexecdir ;;
  747. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  748. | --libexe=* | --libex=* | --libe=*)
  749. libexecdir=$ac_optarg ;;
  750. -localedir | --localedir | --localedi | --localed | --locale)
  751. ac_prev=localedir ;;
  752. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  753. localedir=$ac_optarg ;;
  754. -localstatedir | --localstatedir | --localstatedi | --localstated \
  755. | --localstate | --localstat | --localsta | --localst | --locals)
  756. ac_prev=localstatedir ;;
  757. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  758. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  759. localstatedir=$ac_optarg ;;
  760. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  761. ac_prev=mandir ;;
  762. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  763. mandir=$ac_optarg ;;
  764. -nfp | --nfp | --nf)
  765. # Obsolete; use --without-fp.
  766. with_fp=no ;;
  767. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  768. | --no-cr | --no-c | -n)
  769. no_create=yes ;;
  770. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  771. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  772. no_recursion=yes ;;
  773. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  774. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  775. | --oldin | --oldi | --old | --ol | --o)
  776. ac_prev=oldincludedir ;;
  777. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  778. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  779. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  780. oldincludedir=$ac_optarg ;;
  781. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  782. ac_prev=prefix ;;
  783. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  784. prefix=$ac_optarg ;;
  785. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  786. | --program-pre | --program-pr | --program-p)
  787. ac_prev=program_prefix ;;
  788. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  789. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  790. program_prefix=$ac_optarg ;;
  791. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  792. | --program-suf | --program-su | --program-s)
  793. ac_prev=program_suffix ;;
  794. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  795. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  796. program_suffix=$ac_optarg ;;
  797. -program-transform-name | --program-transform-name \
  798. | --program-transform-nam | --program-transform-na \
  799. | --program-transform-n | --program-transform- \
  800. | --program-transform | --program-transfor \
  801. | --program-transfo | --program-transf \
  802. | --program-trans | --program-tran \
  803. | --progr-tra | --program-tr | --program-t)
  804. ac_prev=program_transform_name ;;
  805. -program-transform-name=* | --program-transform-name=* \
  806. | --program-transform-nam=* | --program-transform-na=* \
  807. | --program-transform-n=* | --program-transform-=* \
  808. | --program-transform=* | --program-transfor=* \
  809. | --program-transfo=* | --program-transf=* \
  810. | --program-trans=* | --program-tran=* \
  811. | --progr-tra=* | --program-tr=* | --program-t=*)
  812. program_transform_name=$ac_optarg ;;
  813. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  814. ac_prev=pdfdir ;;
  815. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  816. pdfdir=$ac_optarg ;;
  817. -psdir | --psdir | --psdi | --psd | --ps)
  818. ac_prev=psdir ;;
  819. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  820. psdir=$ac_optarg ;;
  821. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  822. | -silent | --silent | --silen | --sile | --sil)
  823. silent=yes ;;
  824. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  825. ac_prev=sbindir ;;
  826. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  827. | --sbi=* | --sb=*)
  828. sbindir=$ac_optarg ;;
  829. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  830. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  831. | --sharedst | --shareds | --shared | --share | --shar \
  832. | --sha | --sh)
  833. ac_prev=sharedstatedir ;;
  834. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  835. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  836. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  837. | --sha=* | --sh=*)
  838. sharedstatedir=$ac_optarg ;;
  839. -site | --site | --sit)
  840. ac_prev=site ;;
  841. -site=* | --site=* | --sit=*)
  842. site=$ac_optarg ;;
  843. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  844. ac_prev=srcdir ;;
  845. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  846. srcdir=$ac_optarg ;;
  847. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  848. | --syscon | --sysco | --sysc | --sys | --sy)
  849. ac_prev=sysconfdir ;;
  850. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  851. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  852. sysconfdir=$ac_optarg ;;
  853. -target | --target | --targe | --targ | --tar | --ta | --t)
  854. ac_prev=target_alias ;;
  855. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  856. target_alias=$ac_optarg ;;
  857. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  858. verbose=yes ;;
  859. -version | --version | --versio | --versi | --vers | -V)
  860. ac_init_version=: ;;
  861. -with-* | --with-*)
  862. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  863. # Reject names that are not valid shell variable names.
  864. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  865. { echo "$as_me: error: invalid package name: $ac_package" >&2
  866. { (exit 1); exit 1; }; }
  867. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  868. eval with_$ac_package=\$ac_optarg ;;
  869. -without-* | --without-*)
  870. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  871. # Reject names that are not valid shell variable names.
  872. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  873. { echo "$as_me: error: invalid package name: $ac_package" >&2
  874. { (exit 1); exit 1; }; }
  875. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  876. eval with_$ac_package=no ;;
  877. --x)
  878. # Obsolete; use --with-x.
  879. with_x=yes ;;
  880. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  881. | --x-incl | --x-inc | --x-in | --x-i)
  882. ac_prev=x_includes ;;
  883. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  884. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  885. x_includes=$ac_optarg ;;
  886. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  887. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  888. ac_prev=x_libraries ;;
  889. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  890. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  891. x_libraries=$ac_optarg ;;
  892. -*) { echo "$as_me: error: unrecognized option: $ac_option
  893. Try \`$0 --help' for more information." >&2
  894. { (exit 1); exit 1; }; }
  895. ;;
  896. *=*)
  897. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  898. # Reject names that are not valid shell variable names.
  899. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  900. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  901. { (exit 1); exit 1; }; }
  902. eval $ac_envvar=\$ac_optarg
  903. export $ac_envvar ;;
  904. *)
  905. # FIXME: should be removed in autoconf 3.0.
  906. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  907. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  908. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  909. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  910. ;;
  911. esac
  912. done
  913. if test -n "$ac_prev"; then
  914. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  915. { echo "$as_me: error: missing argument to $ac_option" >&2
  916. { (exit 1); exit 1; }; }
  917. fi
  918. # Be sure to have absolute directory names.
  919. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  920. datadir sysconfdir sharedstatedir localstatedir includedir \
  921. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  922. libdir localedir mandir
  923. do
  924. eval ac_val=\$$ac_var
  925. case $ac_val in
  926. [\\/$]* | ?:[\\/]* ) continue;;
  927. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  928. esac
  929. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  930. { (exit 1); exit 1; }; }
  931. done
  932. # There might be people who depend on the old broken behavior: `$host'
  933. # used to hold the argument of --host etc.
  934. # FIXME: To remove some day.
  935. build=$build_alias
  936. host=$host_alias
  937. target=$target_alias
  938. # FIXME: To remove some day.
  939. if test "x$host_alias" != x; then
  940. if test "x$build_alias" = x; then
  941. cross_compiling=maybe
  942. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  943. If a cross compiler is detected then cross compile mode will be used." >&2
  944. elif test "x$build_alias" != "x$host_alias"; then
  945. cross_compiling=yes
  946. fi
  947. fi
  948. ac_tool_prefix=
  949. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  950. test "$silent" = yes && exec 6>/dev/null
  951. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  952. ac_ls_di=`ls -di .` &&
  953. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  954. { echo "$as_me: error: Working directory cannot be determined" >&2
  955. { (exit 1); exit 1; }; }
  956. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  957. { echo "$as_me: error: pwd does not report name of working directory" >&2
  958. { (exit 1); exit 1; }; }
  959. # Find the source files, if location was not specified.
  960. if test -z "$srcdir"; then
  961. ac_srcdir_defaulted=yes
  962. # Try the directory containing this script, then the parent directory.
  963. ac_confdir=`$as_dirname -- "$0" ||
  964. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  965. X"$0" : 'X\(//\)[^/]' \| \
  966. X"$0" : 'X\(//\)$' \| \
  967. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  968. echo X"$0" |
  969. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  970. s//\1/
  971. q
  972. }
  973. /^X\(\/\/\)[^/].*/{
  974. s//\1/
  975. q
  976. }
  977. /^X\(\/\/\)$/{
  978. s//\1/
  979. q
  980. }
  981. /^X\(\/\).*/{
  982. s//\1/
  983. q
  984. }
  985. s/.*/./; q'`
  986. srcdir=$ac_confdir
  987. if test ! -r "$srcdir/$ac_unique_file"; then
  988. srcdir=..
  989. fi
  990. else
  991. ac_srcdir_defaulted=no
  992. fi
  993. if test ! -r "$srcdir/$ac_unique_file"; then
  994. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  995. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  996. { (exit 1); exit 1; }; }
  997. fi
  998. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  999. ac_abs_confdir=`(
  1000. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1001. { (exit 1); exit 1; }; }
  1002. pwd)`
  1003. # When building in place, set srcdir=.
  1004. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1005. srcdir=.
  1006. fi
  1007. # Remove unnecessary trailing slashes from srcdir.
  1008. # Double slashes in file names in object file debugging info
  1009. # mess up M-x gdb in Emacs.
  1010. case $srcdir in
  1011. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1012. esac
  1013. for ac_var in $ac_precious_vars; do
  1014. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1015. eval ac_env_${ac_var}_value=\$${ac_var}
  1016. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1017. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1018. done
  1019. #
  1020. # Report the --help message.
  1021. #
  1022. if test "$ac_init_help" = "long"; then
  1023. # Omit some internal or obsolete options to make the list less imposing.
  1024. # This message is too long to be a string in the A/UX 3.1 sh.
  1025. cat <<_ACEOF
  1026. \`configure' configures task-controller 0.1 to adapt to many kinds of systems.
  1027. Usage: $0 [OPTION]... [VAR=VALUE]...
  1028. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1029. VAR=VALUE. See below for descriptions of some of the useful variables.
  1030. Defaults for the options are specified in brackets.
  1031. Configuration:
  1032. -h, --help display this help and exit
  1033. --help=short display options specific to this package
  1034. --help=recursive display the short help of all the included packages
  1035. -V, --version display version information and exit
  1036. -q, --quiet, --silent do not print \`checking...' messages
  1037. --cache-file=FILE cache test results in FILE [disabled]
  1038. -C, --config-cache alias for \`--cache-file=config.cache'
  1039. -n, --no-create do not create output files
  1040. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1041. Installation directories:
  1042. --prefix=PREFIX install architecture-independent files in PREFIX
  1043. [$ac_default_prefix]
  1044. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1045. [PREFIX]
  1046. By default, \`make install' will install all the files in
  1047. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1048. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1049. for instance \`--prefix=\$HOME'.
  1050. For better control, use the options below.
  1051. Fine tuning of the installation directories:
  1052. --bindir=DIR user executables [EPREFIX/bin]
  1053. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1054. --libexecdir=DIR program executables [EPREFIX/libexec]
  1055. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1056. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1057. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1058. --libdir=DIR object code libraries [EPREFIX/lib]
  1059. --includedir=DIR C header files [PREFIX/include]
  1060. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1061. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1062. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1063. --infodir=DIR info documentation [DATAROOTDIR/info]
  1064. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1065. --mandir=DIR man documentation [DATAROOTDIR/man]
  1066. --docdir=DIR documentation root [DATAROOTDIR/doc/task-controller]
  1067. --htmldir=DIR html documentation [DOCDIR]
  1068. --dvidir=DIR dvi documentation [DOCDIR]
  1069. --pdfdir=DIR pdf documentation [DOCDIR]
  1070. --psdir=DIR ps documentation [DOCDIR]
  1071. _ACEOF
  1072. cat <<\_ACEOF
  1073. _ACEOF
  1074. fi
  1075. if test -n "$ac_init_help"; then
  1076. case $ac_init_help in
  1077. short | recursive ) echo "Configuration of task-controller 0.1:";;
  1078. esac
  1079. cat <<\_ACEOF
  1080. Optional Packages:
  1081. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1082. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1083. --with-confdir path to hadoop conf dir
  1084. Some influential environment variables:
  1085. CC C compiler command
  1086. CFLAGS C compiler flags
  1087. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1088. nonstandard directory <lib dir>
  1089. LIBS libraries to pass to the linker, e.g. -l<library>
  1090. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1091. you have headers in a nonstandard directory <include dir>
  1092. CPP C preprocessor
  1093. Use these variables to override the choices made by `configure' or to help
  1094. it to find libraries and programs with nonstandard names/locations.
  1095. _ACEOF
  1096. ac_status=$?
  1097. fi
  1098. if test "$ac_init_help" = "recursive"; then
  1099. # If there are subdirs, report their specific --help.
  1100. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1101. test -d "$ac_dir" || continue
  1102. ac_builddir=.
  1103. case "$ac_dir" in
  1104. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1105. *)
  1106. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1107. # A ".." for each directory in $ac_dir_suffix.
  1108. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1109. case $ac_top_builddir_sub in
  1110. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1111. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1112. esac ;;
  1113. esac
  1114. ac_abs_top_builddir=$ac_pwd
  1115. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1116. # for backward compatibility:
  1117. ac_top_builddir=$ac_top_build_prefix
  1118. case $srcdir in
  1119. .) # We are building in place.
  1120. ac_srcdir=.
  1121. ac_top_srcdir=$ac_top_builddir_sub
  1122. ac_abs_top_srcdir=$ac_pwd ;;
  1123. [\\/]* | ?:[\\/]* ) # Absolute name.
  1124. ac_srcdir=$srcdir$ac_dir_suffix;
  1125. ac_top_srcdir=$srcdir
  1126. ac_abs_top_srcdir=$srcdir ;;
  1127. *) # Relative name.
  1128. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1129. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1130. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1131. esac
  1132. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1133. cd "$ac_dir" || { ac_status=$?; continue; }
  1134. # Check for guested configure.
  1135. if test -f "$ac_srcdir/configure.gnu"; then
  1136. echo &&
  1137. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1138. elif test -f "$ac_srcdir/configure"; then
  1139. echo &&
  1140. $SHELL "$ac_srcdir/configure" --help=recursive
  1141. else
  1142. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1143. fi || ac_status=$?
  1144. cd "$ac_pwd" || { ac_status=$?; break; }
  1145. done
  1146. fi
  1147. test -n "$ac_init_help" && exit $ac_status
  1148. if $ac_init_version; then
  1149. cat <<\_ACEOF
  1150. task-controller configure 0.1
  1151. generated by GNU Autoconf 2.61
  1152. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1153. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1154. This configure script is free software; the Free Software Foundation
  1155. gives unlimited permission to copy, distribute and modify it.
  1156. _ACEOF
  1157. exit
  1158. fi
  1159. cat >config.log <<_ACEOF
  1160. This file contains any messages produced by compilers while
  1161. running configure, to aid debugging if configure makes a mistake.
  1162. It was created by task-controller $as_me 0.1, which was
  1163. generated by GNU Autoconf 2.61. Invocation command line was
  1164. $ $0 $@
  1165. _ACEOF
  1166. exec 5>>config.log
  1167. {
  1168. cat <<_ASUNAME
  1169. ## --------- ##
  1170. ## Platform. ##
  1171. ## --------- ##
  1172. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1173. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1174. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1175. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1176. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1177. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1178. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1179. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1180. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1181. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1182. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1183. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1184. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1185. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1186. _ASUNAME
  1187. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1188. for as_dir in $PATH
  1189. do
  1190. IFS=$as_save_IFS
  1191. test -z "$as_dir" && as_dir=.
  1192. echo "PATH: $as_dir"
  1193. done
  1194. IFS=$as_save_IFS
  1195. } >&5
  1196. cat >&5 <<_ACEOF
  1197. ## ----------- ##
  1198. ## Core tests. ##
  1199. ## ----------- ##
  1200. _ACEOF
  1201. # Keep a trace of the command line.
  1202. # Strip out --no-create and --no-recursion so they do not pile up.
  1203. # Strip out --silent because we don't want to record it for future runs.
  1204. # Also quote any args containing shell meta-characters.
  1205. # Make two passes to allow for proper duplicate-argument suppression.
  1206. ac_configure_args=
  1207. ac_configure_args0=
  1208. ac_configure_args1=
  1209. ac_must_keep_next=false
  1210. for ac_pass in 1 2
  1211. do
  1212. for ac_arg
  1213. do
  1214. case $ac_arg in
  1215. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1216. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1217. | -silent | --silent | --silen | --sile | --sil)
  1218. continue ;;
  1219. *\'*)
  1220. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1221. esac
  1222. case $ac_pass in
  1223. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1224. 2)
  1225. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1226. if test $ac_must_keep_next = true; then
  1227. ac_must_keep_next=false # Got value, back to normal.
  1228. else
  1229. case $ac_arg in
  1230. *=* | --config-cache | -C | -disable-* | --disable-* \
  1231. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1232. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1233. | -with-* | --with-* | -without-* | --without-* | --x)
  1234. case "$ac_configure_args0 " in
  1235. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1236. esac
  1237. ;;
  1238. -* ) ac_must_keep_next=true ;;
  1239. esac
  1240. fi
  1241. ac_configure_args="$ac_configure_args '$ac_arg'"
  1242. ;;
  1243. esac
  1244. done
  1245. done
  1246. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1247. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1248. # When interrupted or exit'd, cleanup temporary files, and complete
  1249. # config.log. We remove comments because anyway the quotes in there
  1250. # would cause problems or look ugly.
  1251. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1252. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1253. trap 'exit_status=$?
  1254. # Save into config.log some information that might help in debugging.
  1255. {
  1256. echo
  1257. cat <<\_ASBOX
  1258. ## ---------------- ##
  1259. ## Cache variables. ##
  1260. ## ---------------- ##
  1261. _ASBOX
  1262. echo
  1263. # The following way of writing the cache mishandles newlines in values,
  1264. (
  1265. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1266. eval ac_val=\$$ac_var
  1267. case $ac_val in #(
  1268. *${as_nl}*)
  1269. case $ac_var in #(
  1270. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1271. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1272. esac
  1273. case $ac_var in #(
  1274. _ | IFS | as_nl) ;; #(
  1275. *) $as_unset $ac_var ;;
  1276. esac ;;
  1277. esac
  1278. done
  1279. (set) 2>&1 |
  1280. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1281. *${as_nl}ac_space=\ *)
  1282. sed -n \
  1283. "s/'\''/'\''\\\\'\'''\''/g;
  1284. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1285. ;; #(
  1286. *)
  1287. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1288. ;;
  1289. esac |
  1290. sort
  1291. )
  1292. echo
  1293. cat <<\_ASBOX
  1294. ## ----------------- ##
  1295. ## Output variables. ##
  1296. ## ----------------- ##
  1297. _ASBOX
  1298. echo
  1299. for ac_var in $ac_subst_vars
  1300. do
  1301. eval ac_val=\$$ac_var
  1302. case $ac_val in
  1303. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1304. esac
  1305. echo "$ac_var='\''$ac_val'\''"
  1306. done | sort
  1307. echo
  1308. if test -n "$ac_subst_files"; then
  1309. cat <<\_ASBOX
  1310. ## ------------------- ##
  1311. ## File substitutions. ##
  1312. ## ------------------- ##
  1313. _ASBOX
  1314. echo
  1315. for ac_var in $ac_subst_files
  1316. do
  1317. eval ac_val=\$$ac_var
  1318. case $ac_val in
  1319. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1320. esac
  1321. echo "$ac_var='\''$ac_val'\''"
  1322. done | sort
  1323. echo
  1324. fi
  1325. if test -s confdefs.h; then
  1326. cat <<\_ASBOX
  1327. ## ----------- ##
  1328. ## confdefs.h. ##
  1329. ## ----------- ##
  1330. _ASBOX
  1331. echo
  1332. cat confdefs.h
  1333. echo
  1334. fi
  1335. test "$ac_signal" != 0 &&
  1336. echo "$as_me: caught signal $ac_signal"
  1337. echo "$as_me: exit $exit_status"
  1338. } >&5
  1339. rm -f core *.core core.conftest.* &&
  1340. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1341. exit $exit_status
  1342. ' 0
  1343. for ac_signal in 1 2 13 15; do
  1344. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1345. done
  1346. ac_signal=0
  1347. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1348. rm -f -r conftest* confdefs.h
  1349. # Predefined preprocessor variables.
  1350. cat >>confdefs.h <<_ACEOF
  1351. #define PACKAGE_NAME "$PACKAGE_NAME"
  1352. _ACEOF
  1353. cat >>confdefs.h <<_ACEOF
  1354. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1355. _ACEOF
  1356. cat >>confdefs.h <<_ACEOF
  1357. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1358. _ACEOF
  1359. cat >>confdefs.h <<_ACEOF
  1360. #define PACKAGE_STRING "$PACKAGE_STRING"
  1361. _ACEOF
  1362. cat >>confdefs.h <<_ACEOF
  1363. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1364. _ACEOF
  1365. # Let the site file select an alternate cache file if it wants to.
  1366. # Prefer explicitly selected file to automatically selected ones.
  1367. if test -n "$CONFIG_SITE"; then
  1368. set x "$CONFIG_SITE"
  1369. elif test "x$prefix" != xNONE; then
  1370. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1371. else
  1372. set x "$ac_default_prefix/share/config.site" \
  1373. "$ac_default_prefix/etc/config.site"
  1374. fi
  1375. shift
  1376. for ac_site_file
  1377. do
  1378. if test -r "$ac_site_file"; then
  1379. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1380. echo "$as_me: loading site script $ac_site_file" >&6;}
  1381. sed 's/^/| /' "$ac_site_file" >&5
  1382. . "$ac_site_file"
  1383. fi
  1384. done
  1385. if test -r "$cache_file"; then
  1386. # Some versions of bash will fail to source /dev/null (special
  1387. # files actually), so we avoid doing that.
  1388. if test -f "$cache_file"; then
  1389. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1390. echo "$as_me: loading cache $cache_file" >&6;}
  1391. case $cache_file in
  1392. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1393. *) . "./$cache_file";;
  1394. esac
  1395. fi
  1396. else
  1397. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1398. echo "$as_me: creating cache $cache_file" >&6;}
  1399. >$cache_file
  1400. fi
  1401. # Check that the precious variables saved in the cache have kept the same
  1402. # value.
  1403. ac_cache_corrupted=false
  1404. for ac_var in $ac_precious_vars; do
  1405. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1406. eval ac_new_set=\$ac_env_${ac_var}_set
  1407. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1408. eval ac_new_val=\$ac_env_${ac_var}_value
  1409. case $ac_old_set,$ac_new_set in
  1410. set,)
  1411. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1412. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1413. ac_cache_corrupted=: ;;
  1414. ,set)
  1415. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1416. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1417. ac_cache_corrupted=: ;;
  1418. ,);;
  1419. *)
  1420. if test "x$ac_old_val" != "x$ac_new_val"; then
  1421. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1422. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1423. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1424. echo "$as_me: former value: $ac_old_val" >&2;}
  1425. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1426. echo "$as_me: current value: $ac_new_val" >&2;}
  1427. ac_cache_corrupted=:
  1428. fi;;
  1429. esac
  1430. # Pass precious variables to config.status.
  1431. if test "$ac_new_set" = set; then
  1432. case $ac_new_val in
  1433. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1434. *) ac_arg=$ac_var=$ac_new_val ;;
  1435. esac
  1436. case " $ac_configure_args " in
  1437. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1438. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1439. esac
  1440. fi
  1441. done
  1442. if $ac_cache_corrupted; then
  1443. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1444. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1445. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1446. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1447. { (exit 1); exit 1; }; }
  1448. fi
  1449. ac_ext=c
  1450. ac_cpp='$CPP $CPPFLAGS'
  1451. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1452. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1453. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1454. #changing default prefix value to empty string, so that binary does not
  1455. #gets installed within system
  1456. #add new argument called -with-confdir
  1457. # Check whether --with-confdir was given.
  1458. if test "${with_confdir+set}" = set; then
  1459. withval=$with_confdir;
  1460. fi
  1461. ac_config_headers="$ac_config_headers configuration.h"
  1462. # Checks for programs.
  1463. ac_ext=c
  1464. ac_cpp='$CPP $CPPFLAGS'
  1465. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1466. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1467. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1468. if test -n "$ac_tool_prefix"; then
  1469. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1470. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1471. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1472. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1473. if test "${ac_cv_prog_CC+set}" = set; then
  1474. echo $ECHO_N "(cached) $ECHO_C" >&6
  1475. else
  1476. if test -n "$CC"; then
  1477. ac_cv_prog_CC="$CC" # Let the user override the test.
  1478. else
  1479. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1480. for as_dir in $PATH
  1481. do
  1482. IFS=$as_save_IFS
  1483. test -z "$as_dir" && as_dir=.
  1484. for ac_exec_ext in '' $ac_executable_extensions; do
  1485. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1486. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1487. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1488. break 2
  1489. fi
  1490. done
  1491. done
  1492. IFS=$as_save_IFS
  1493. fi
  1494. fi
  1495. CC=$ac_cv_prog_CC
  1496. if test -n "$CC"; then
  1497. { echo "$as_me:$LINENO: result: $CC" >&5
  1498. echo "${ECHO_T}$CC" >&6; }
  1499. else
  1500. { echo "$as_me:$LINENO: result: no" >&5
  1501. echo "${ECHO_T}no" >&6; }
  1502. fi
  1503. fi
  1504. if test -z "$ac_cv_prog_CC"; then
  1505. ac_ct_CC=$CC
  1506. # Extract the first word of "gcc", so it can be a program name with args.
  1507. set dummy gcc; ac_word=$2
  1508. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1509. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1510. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1511. echo $ECHO_N "(cached) $ECHO_C" >&6
  1512. else
  1513. if test -n "$ac_ct_CC"; then
  1514. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1515. else
  1516. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1517. for as_dir in $PATH
  1518. do
  1519. IFS=$as_save_IFS
  1520. test -z "$as_dir" && as_dir=.
  1521. for ac_exec_ext in '' $ac_executable_extensions; do
  1522. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1523. ac_cv_prog_ac_ct_CC="gcc"
  1524. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1525. break 2
  1526. fi
  1527. done
  1528. done
  1529. IFS=$as_save_IFS
  1530. fi
  1531. fi
  1532. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1533. if test -n "$ac_ct_CC"; then
  1534. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1535. echo "${ECHO_T}$ac_ct_CC" >&6; }
  1536. else
  1537. { echo "$as_me:$LINENO: result: no" >&5
  1538. echo "${ECHO_T}no" >&6; }
  1539. fi
  1540. if test "x$ac_ct_CC" = x; then
  1541. CC=""
  1542. else
  1543. case $cross_compiling:$ac_tool_warned in
  1544. yes:)
  1545. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  1546. whose name does not start with the host triplet. If you think this
  1547. configuration is useful to you, please write to autoconf@gnu.org." >&5
  1548. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  1549. whose name does not start with the host triplet. If you think this
  1550. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  1551. ac_tool_warned=yes ;;
  1552. esac
  1553. CC=$ac_ct_CC
  1554. fi
  1555. else
  1556. CC="$ac_cv_prog_CC"
  1557. fi
  1558. if test -z "$CC"; then
  1559. if test -n "$ac_tool_prefix"; then
  1560. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1561. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1562. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1563. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1564. if test "${ac_cv_prog_CC+set}" = set; then
  1565. echo $ECHO_N "(cached) $ECHO_C" >&6
  1566. else
  1567. if test -n "$CC"; then
  1568. ac_cv_prog_CC="$CC" # Let the user override the test.
  1569. else
  1570. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1571. for as_dir in $PATH
  1572. do
  1573. IFS=$as_save_IFS
  1574. test -z "$as_dir" && as_dir=.
  1575. for ac_exec_ext in '' $ac_executable_extensions; do
  1576. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1577. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1578. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1579. break 2
  1580. fi
  1581. done
  1582. done
  1583. IFS=$as_save_IFS
  1584. fi
  1585. fi
  1586. CC=$ac_cv_prog_CC
  1587. if test -n "$CC"; then
  1588. { echo "$as_me:$LINENO: result: $CC" >&5
  1589. echo "${ECHO_T}$CC" >&6; }
  1590. else
  1591. { echo "$as_me:$LINENO: result: no" >&5
  1592. echo "${ECHO_T}no" >&6; }
  1593. fi
  1594. fi
  1595. fi
  1596. if test -z "$CC"; then
  1597. # Extract the first word of "cc", so it can be a program name with args.
  1598. set dummy cc; ac_word=$2
  1599. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1600. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1601. if test "${ac_cv_prog_CC+set}" = set; then
  1602. echo $ECHO_N "(cached) $ECHO_C" >&6
  1603. else
  1604. if test -n "$CC"; then
  1605. ac_cv_prog_CC="$CC" # Let the user override the test.
  1606. else
  1607. ac_prog_rejected=no
  1608. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1609. for as_dir in $PATH
  1610. do
  1611. IFS=$as_save_IFS
  1612. test -z "$as_dir" && as_dir=.
  1613. for ac_exec_ext in '' $ac_executable_extensions; do
  1614. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1615. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1616. ac_prog_rejected=yes
  1617. continue
  1618. fi
  1619. ac_cv_prog_CC="cc"
  1620. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1621. break 2
  1622. fi
  1623. done
  1624. done
  1625. IFS=$as_save_IFS
  1626. if test $ac_prog_rejected = yes; then
  1627. # We found a bogon in the path, so make sure we never use it.
  1628. set dummy $ac_cv_prog_CC
  1629. shift
  1630. if test $# != 0; then
  1631. # We chose a different compiler from the bogus one.
  1632. # However, it has the same basename, so the bogon will be chosen
  1633. # first if we set CC to just the basename; use the full file name.
  1634. shift
  1635. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1636. fi
  1637. fi
  1638. fi
  1639. fi
  1640. CC=$ac_cv_prog_CC
  1641. if test -n "$CC"; then
  1642. { echo "$as_me:$LINENO: result: $CC" >&5
  1643. echo "${ECHO_T}$CC" >&6; }
  1644. else
  1645. { echo "$as_me:$LINENO: result: no" >&5
  1646. echo "${ECHO_T}no" >&6; }
  1647. fi
  1648. fi
  1649. if test -z "$CC"; then
  1650. if test -n "$ac_tool_prefix"; then
  1651. for ac_prog in cl.exe
  1652. do
  1653. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1654. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1655. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1656. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1657. if test "${ac_cv_prog_CC+set}" = set; then
  1658. echo $ECHO_N "(cached) $ECHO_C" >&6
  1659. else
  1660. if test -n "$CC"; then
  1661. ac_cv_prog_CC="$CC" # Let the user override the test.
  1662. else
  1663. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1664. for as_dir in $PATH
  1665. do
  1666. IFS=$as_save_IFS
  1667. test -z "$as_dir" && as_dir=.
  1668. for ac_exec_ext in '' $ac_executable_extensions; do
  1669. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1670. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1671. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1672. break 2
  1673. fi
  1674. done
  1675. done
  1676. IFS=$as_save_IFS
  1677. fi
  1678. fi
  1679. CC=$ac_cv_prog_CC
  1680. if test -n "$CC"; then
  1681. { echo "$as_me:$LINENO: result: $CC" >&5
  1682. echo "${ECHO_T}$CC" >&6; }
  1683. else
  1684. { echo "$as_me:$LINENO: result: no" >&5
  1685. echo "${ECHO_T}no" >&6; }
  1686. fi
  1687. test -n "$CC" && break
  1688. done
  1689. fi
  1690. if test -z "$CC"; then
  1691. ac_ct_CC=$CC
  1692. for ac_prog in cl.exe
  1693. do
  1694. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1695. set dummy $ac_prog; ac_word=$2
  1696. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1697. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1698. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1699. echo $ECHO_N "(cached) $ECHO_C" >&6
  1700. else
  1701. if test -n "$ac_ct_CC"; then
  1702. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1703. else
  1704. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1705. for as_dir in $PATH
  1706. do
  1707. IFS=$as_save_IFS
  1708. test -z "$as_dir" && as_dir=.
  1709. for ac_exec_ext in '' $ac_executable_extensions; do
  1710. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1711. ac_cv_prog_ac_ct_CC="$ac_prog"
  1712. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1713. break 2
  1714. fi
  1715. done
  1716. done
  1717. IFS=$as_save_IFS
  1718. fi
  1719. fi
  1720. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1721. if test -n "$ac_ct_CC"; then
  1722. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1723. echo "${ECHO_T}$ac_ct_CC" >&6; }
  1724. else
  1725. { echo "$as_me:$LINENO: result: no" >&5
  1726. echo "${ECHO_T}no" >&6; }
  1727. fi
  1728. test -n "$ac_ct_CC" && break
  1729. done
  1730. if test "x$ac_ct_CC" = x; then
  1731. CC=""
  1732. else
  1733. case $cross_compiling:$ac_tool_warned in
  1734. yes:)
  1735. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  1736. whose name does not start with the host triplet. If you think this
  1737. configuration is useful to you, please write to autoconf@gnu.org." >&5
  1738. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  1739. whose name does not start with the host triplet. If you think this
  1740. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  1741. ac_tool_warned=yes ;;
  1742. esac
  1743. CC=$ac_ct_CC
  1744. fi
  1745. fi
  1746. fi
  1747. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1748. See \`config.log' for more details." >&5
  1749. echo "$as_me: error: no acceptable C compiler found in \$PATH
  1750. See \`config.log' for more details." >&2;}
  1751. { (exit 1); exit 1; }; }
  1752. # Provide some information about the compiler.
  1753. echo "$as_me:$LINENO: checking for C compiler version" >&5
  1754. ac_compiler=`set X $ac_compile; echo $2`
  1755. { (ac_try="$ac_compiler --version >&5"
  1756. case "(($ac_try" in
  1757. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1758. *) ac_try_echo=$ac_try;;
  1759. esac
  1760. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1761. (eval "$ac_compiler --version >&5") 2>&5
  1762. ac_status=$?
  1763. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1764. (exit $ac_status); }
  1765. { (ac_try="$ac_compiler -v >&5"
  1766. case "(($ac_try" in
  1767. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1768. *) ac_try_echo=$ac_try;;
  1769. esac
  1770. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1771. (eval "$ac_compiler -v >&5") 2>&5
  1772. ac_status=$?
  1773. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1774. (exit $ac_status); }
  1775. { (ac_try="$ac_compiler -V >&5"
  1776. case "(($ac_try" in
  1777. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1778. *) ac_try_echo=$ac_try;;
  1779. esac
  1780. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1781. (eval "$ac_compiler -V >&5") 2>&5
  1782. ac_status=$?
  1783. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1784. (exit $ac_status); }
  1785. cat >conftest.$ac_ext <<_ACEOF
  1786. /* confdefs.h. */
  1787. _ACEOF
  1788. cat confdefs.h >>conftest.$ac_ext
  1789. cat >>conftest.$ac_ext <<_ACEOF
  1790. /* end confdefs.h. */
  1791. int
  1792. main ()
  1793. {
  1794. ;
  1795. return 0;
  1796. }
  1797. _ACEOF
  1798. ac_clean_files_save=$ac_clean_files
  1799. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1800. # Try to create an executable without -o first, disregard a.out.
  1801. # It will help us diagnose broken compilers, and finding out an intuition
  1802. # of exeext.
  1803. { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  1804. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  1805. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1806. #
  1807. # List of possible output files, starting from the most likely.
  1808. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  1809. # only as a last resort. b.out is created by i960 compilers.
  1810. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  1811. #
  1812. # The IRIX 6 linker writes into existing files which may not be
  1813. # executable, retaining their permissions. Remove them first so a
  1814. # subsequent execution test works.
  1815. ac_rmfiles=
  1816. for ac_file in $ac_files
  1817. do
  1818. case $ac_file in
  1819. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  1820. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  1821. esac
  1822. done
  1823. rm -f $ac_rmfiles
  1824. if { (ac_try="$ac_link_default"
  1825. case "(($ac_try" in
  1826. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1827. *) ac_try_echo=$ac_try;;
  1828. esac
  1829. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1830. (eval "$ac_link_default") 2>&5
  1831. ac_status=$?
  1832. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1833. (exit $ac_status); }; then
  1834. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  1835. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  1836. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  1837. # so that the user can short-circuit this test for compilers unknown to
  1838. # Autoconf.
  1839. for ac_file in $ac_files ''
  1840. do
  1841. test -f "$ac_file" || continue
  1842. case $ac_file in
  1843. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  1844. ;;
  1845. [ab].out )
  1846. # We found the default executable, but exeext='' is most
  1847. # certainly right.
  1848. break;;
  1849. *.* )
  1850. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  1851. then :; else
  1852. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1853. fi
  1854. # We set ac_cv_exeext here because the later test for it is not
  1855. # safe: cross compilers may not add the suffix if given an `-o'
  1856. # argument, so we may need to know it at that point already.
  1857. # Even if this section looks crufty: it has the advantage of
  1858. # actually working.
  1859. break;;
  1860. * )
  1861. break;;
  1862. esac
  1863. done
  1864. test "$ac_cv_exeext" = no && ac_cv_exeext=
  1865. else
  1866. ac_file=''
  1867. fi
  1868. { echo "$as_me:$LINENO: result: $ac_file" >&5
  1869. echo "${ECHO_T}$ac_file" >&6; }
  1870. if test -z "$ac_file"; then
  1871. echo "$as_me: failed program was:" >&5
  1872. sed 's/^/| /' conftest.$ac_ext >&5
  1873. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  1874. See \`config.log' for more details." >&5
  1875. echo "$as_me: error: C compiler cannot create executables
  1876. See \`config.log' for more details." >&2;}
  1877. { (exit 77); exit 77; }; }
  1878. fi
  1879. ac_exeext=$ac_cv_exeext
  1880. # Check that the compiler produces executables we can run. If not, either
  1881. # the compiler is broken, or we cross compile.
  1882. { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1883. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  1884. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1885. # If not cross compiling, check that we can run a simple program.
  1886. if test "$cross_compiling" != yes; then
  1887. if { ac_try='./$ac_file'
  1888. { (case "(($ac_try" in
  1889. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1890. *) ac_try_echo=$ac_try;;
  1891. esac
  1892. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1893. (eval "$ac_try") 2>&5
  1894. ac_status=$?
  1895. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1896. (exit $ac_status); }; }; then
  1897. cross_compiling=no
  1898. else
  1899. if test "$cross_compiling" = maybe; then
  1900. cross_compiling=yes
  1901. else
  1902. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  1903. If you meant to cross compile, use \`--host'.
  1904. See \`config.log' for more details." >&5
  1905. echo "$as_me: error: cannot run C compiled programs.
  1906. If you meant to cross compile, use \`--host'.
  1907. See \`config.log' for more details." >&2;}
  1908. { (exit 1); exit 1; }; }
  1909. fi
  1910. fi
  1911. fi
  1912. { echo "$as_me:$LINENO: result: yes" >&5
  1913. echo "${ECHO_T}yes" >&6; }
  1914. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1915. ac_clean_files=$ac_clean_files_save
  1916. # Check that the compiler produces executables we can run. If not, either
  1917. # the compiler is broken, or we cross compile.
  1918. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1919. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  1920. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1921. echo "${ECHO_T}$cross_compiling" >&6; }
  1922. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1923. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  1924. if { (ac_try="$ac_link"
  1925. case "(($ac_try" in
  1926. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1927. *) ac_try_echo=$ac_try;;
  1928. esac
  1929. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1930. (eval "$ac_link") 2>&5
  1931. ac_status=$?
  1932. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1933. (exit $ac_status); }; then
  1934. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1935. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1936. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1937. # `rm'.
  1938. for ac_file in conftest.exe conftest conftest.*; do
  1939. test -f "$ac_file" || continue
  1940. case $ac_file in
  1941. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  1942. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1943. break;;
  1944. * ) break;;
  1945. esac
  1946. done
  1947. else
  1948. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1949. See \`config.log' for more details." >&5
  1950. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1951. See \`config.log' for more details." >&2;}
  1952. { (exit 1); exit 1; }; }
  1953. fi
  1954. rm -f conftest$ac_cv_exeext
  1955. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1956. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  1957. rm -f conftest.$ac_ext
  1958. EXEEXT=$ac_cv_exeext
  1959. ac_exeext=$EXEEXT
  1960. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1961. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  1962. if test "${ac_cv_objext+set}" = set; then
  1963. echo $ECHO_N "(cached) $ECHO_C" >&6
  1964. else
  1965. cat >conftest.$ac_ext <<_ACEOF
  1966. /* confdefs.h. */
  1967. _ACEOF
  1968. cat confdefs.h >>conftest.$ac_ext
  1969. cat >>conftest.$ac_ext <<_ACEOF
  1970. /* end confdefs.h. */
  1971. int
  1972. main ()
  1973. {
  1974. ;
  1975. return 0;
  1976. }
  1977. _ACEOF
  1978. rm -f conftest.o conftest.obj
  1979. if { (ac_try="$ac_compile"
  1980. case "(($ac_try" in
  1981. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1982. *) ac_try_echo=$ac_try;;
  1983. esac
  1984. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1985. (eval "$ac_compile") 2>&5
  1986. ac_status=$?
  1987. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1988. (exit $ac_status); }; then
  1989. for ac_file in conftest.o conftest.obj conftest.*; do
  1990. test -f "$ac_file" || continue;
  1991. case $ac_file in
  1992. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  1993. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1994. break;;
  1995. esac
  1996. done
  1997. else
  1998. echo "$as_me: failed program was:" >&5
  1999. sed 's/^/| /' conftest.$ac_ext >&5
  2000. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2001. See \`config.log' for more details." >&5
  2002. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2003. See \`config.log' for more details." >&2;}
  2004. { (exit 1); exit 1; }; }
  2005. fi
  2006. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2007. fi
  2008. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2009. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2010. OBJEXT=$ac_cv_objext
  2011. ac_objext=$OBJEXT
  2012. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2013. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  2014. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2015. echo $ECHO_N "(cached) $ECHO_C" >&6
  2016. else
  2017. cat >conftest.$ac_ext <<_ACEOF
  2018. /* confdefs.h. */
  2019. _ACEOF
  2020. cat confdefs.h >>conftest.$ac_ext
  2021. cat >>conftest.$ac_ext <<_ACEOF
  2022. /* end confdefs.h. */
  2023. int
  2024. main ()
  2025. {
  2026. #ifndef __GNUC__
  2027. choke me
  2028. #endif
  2029. ;
  2030. return 0;
  2031. }
  2032. _ACEOF
  2033. rm -f conftest.$ac_objext
  2034. if { (ac_try="$ac_compile"
  2035. case "(($ac_try" in
  2036. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2037. *) ac_try_echo=$ac_try;;
  2038. esac
  2039. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2040. (eval "$ac_compile") 2>conftest.er1
  2041. ac_status=$?
  2042. grep -v '^ *+' conftest.er1 >conftest.err
  2043. rm -f conftest.er1
  2044. cat conftest.err >&5
  2045. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2046. (exit $ac_status); } && {
  2047. test -z "$ac_c_werror_flag" ||
  2048. test ! -s conftest.err
  2049. } && test -s conftest.$ac_objext; then
  2050. ac_compiler_gnu=yes
  2051. else
  2052. echo "$as_me: failed program was:" >&5
  2053. sed 's/^/| /' conftest.$ac_ext >&5
  2054. ac_compiler_gnu=no
  2055. fi
  2056. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2057. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2058. fi
  2059. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2060. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  2061. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2062. ac_test_CFLAGS=${CFLAGS+set}
  2063. ac_save_CFLAGS=$CFLAGS
  2064. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2065. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  2066. if test "${ac_cv_prog_cc_g+set}" = set; then
  2067. echo $ECHO_N "(cached) $ECHO_C" >&6
  2068. else
  2069. ac_save_c_werror_flag=$ac_c_werror_flag
  2070. ac_c_werror_flag=yes
  2071. ac_cv_prog_cc_g=no
  2072. CFLAGS="-g"
  2073. cat >conftest.$ac_ext <<_ACEOF
  2074. /* confdefs.h. */
  2075. _ACEOF
  2076. cat confdefs.h >>conftest.$ac_ext
  2077. cat >>conftest.$ac_ext <<_ACEOF
  2078. /* end confdefs.h. */
  2079. int
  2080. main ()
  2081. {
  2082. ;
  2083. return 0;
  2084. }
  2085. _ACEOF
  2086. rm -f conftest.$ac_objext
  2087. if { (ac_try="$ac_compile"
  2088. case "(($ac_try" in
  2089. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2090. *) ac_try_echo=$ac_try;;
  2091. esac
  2092. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2093. (eval "$ac_compile") 2>conftest.er1
  2094. ac_status=$?
  2095. grep -v '^ *+' conftest.er1 >conftest.err
  2096. rm -f conftest.er1
  2097. cat conftest.err >&5
  2098. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2099. (exit $ac_status); } && {
  2100. test -z "$ac_c_werror_flag" ||
  2101. test ! -s conftest.err
  2102. } && test -s conftest.$ac_objext; then
  2103. ac_cv_prog_cc_g=yes
  2104. else
  2105. echo "$as_me: failed program was:" >&5
  2106. sed 's/^/| /' conftest.$ac_ext >&5
  2107. CFLAGS=""
  2108. cat >conftest.$ac_ext <<_ACEOF
  2109. /* confdefs.h. */
  2110. _ACEOF
  2111. cat confdefs.h >>conftest.$ac_ext
  2112. cat >>conftest.$ac_ext <<_ACEOF
  2113. /* end confdefs.h. */
  2114. int
  2115. main ()
  2116. {
  2117. ;
  2118. return 0;
  2119. }
  2120. _ACEOF
  2121. rm -f conftest.$ac_objext
  2122. if { (ac_try="$ac_compile"
  2123. case "(($ac_try" in
  2124. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2125. *) ac_try_echo=$ac_try;;
  2126. esac
  2127. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2128. (eval "$ac_compile") 2>conftest.er1
  2129. ac_status=$?
  2130. grep -v '^ *+' conftest.er1 >conftest.err
  2131. rm -f conftest.er1
  2132. cat conftest.err >&5
  2133. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2134. (exit $ac_status); } && {
  2135. test -z "$ac_c_werror_flag" ||
  2136. test ! -s conftest.err
  2137. } && test -s conftest.$ac_objext; then
  2138. :
  2139. else
  2140. echo "$as_me: failed program was:" >&5
  2141. sed 's/^/| /' conftest.$ac_ext >&5
  2142. ac_c_werror_flag=$ac_save_c_werror_flag
  2143. CFLAGS="-g"
  2144. cat >conftest.$ac_ext <<_ACEOF
  2145. /* confdefs.h. */
  2146. _ACEOF
  2147. cat confdefs.h >>conftest.$ac_ext
  2148. cat >>conftest.$ac_ext <<_ACEOF
  2149. /* end confdefs.h. */
  2150. int
  2151. main ()
  2152. {
  2153. ;
  2154. return 0;
  2155. }
  2156. _ACEOF
  2157. rm -f conftest.$ac_objext
  2158. if { (ac_try="$ac_compile"
  2159. case "(($ac_try" in
  2160. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2161. *) ac_try_echo=$ac_try;;
  2162. esac
  2163. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2164. (eval "$ac_compile") 2>conftest.er1
  2165. ac_status=$?
  2166. grep -v '^ *+' conftest.er1 >conftest.err
  2167. rm -f conftest.er1
  2168. cat conftest.err >&5
  2169. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2170. (exit $ac_status); } && {
  2171. test -z "$ac_c_werror_flag" ||
  2172. test ! -s conftest.err
  2173. } && test -s conftest.$ac_objext; then
  2174. ac_cv_prog_cc_g=yes
  2175. else
  2176. echo "$as_me: failed program was:" >&5
  2177. sed 's/^/| /' conftest.$ac_ext >&5
  2178. fi
  2179. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2180. fi
  2181. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2182. fi
  2183. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2184. ac_c_werror_flag=$ac_save_c_werror_flag
  2185. fi
  2186. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2187. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  2188. if test "$ac_test_CFLAGS" = set; then
  2189. CFLAGS=$ac_save_CFLAGS
  2190. elif test $ac_cv_prog_cc_g = yes; then
  2191. if test "$GCC" = yes; then
  2192. CFLAGS="-g -O2"
  2193. else
  2194. CFLAGS="-g"
  2195. fi
  2196. else
  2197. if test "$GCC" = yes; then
  2198. CFLAGS="-O2"
  2199. else
  2200. CFLAGS=
  2201. fi
  2202. fi
  2203. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  2204. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  2205. if test "${ac_cv_prog_cc_c89+set}" = set; then
  2206. echo $ECHO_N "(cached) $ECHO_C" >&6
  2207. else
  2208. ac_cv_prog_cc_c89=no
  2209. ac_save_CC=$CC
  2210. cat >conftest.$ac_ext <<_ACEOF
  2211. /* confdefs.h. */
  2212. _ACEOF
  2213. cat confdefs.h >>conftest.$ac_ext
  2214. cat >>conftest.$ac_ext <<_ACEOF
  2215. /* end confdefs.h. */
  2216. #include <stdarg.h>
  2217. #include <stdio.h>
  2218. #include <sys/types.h>
  2219. #include <sys/stat.h>
  2220. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2221. struct buf { int x; };
  2222. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2223. static char *e (p, i)
  2224. char **p;
  2225. int i;
  2226. {
  2227. return p[i];
  2228. }
  2229. static char *f (char * (*g) (char **, int), char **p, ...)
  2230. {
  2231. char *s;
  2232. va_list v;
  2233. va_start (v,p);
  2234. s = g (p, va_arg (v,int));
  2235. va_end (v);
  2236. return s;
  2237. }
  2238. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2239. function prototypes and stuff, but not '\xHH' hex character constants.
  2240. These don't provoke an error unfortunately, instead are silently treated
  2241. as 'x'. The following induces an error, until -std is added to get
  2242. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2243. array size at least. It's necessary to write '\x00'==0 to get something
  2244. that's true only with -std. */
  2245. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2246. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2247. inside strings and character constants. */
  2248. #define FOO(x) 'x'
  2249. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2250. int test (int i, double x);
  2251. struct s1 {int (*f) (int a);};
  2252. struct s2 {int (*f) (double a);};
  2253. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2254. int argc;
  2255. char **argv;
  2256. int
  2257. main ()
  2258. {
  2259. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2260. ;
  2261. return 0;
  2262. }
  2263. _ACEOF
  2264. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2265. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2266. do
  2267. CC="$ac_save_CC $ac_arg"
  2268. rm -f conftest.$ac_objext
  2269. if { (ac_try="$ac_compile"
  2270. case "(($ac_try" in
  2271. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2272. *) ac_try_echo=$ac_try;;
  2273. esac
  2274. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2275. (eval "$ac_compile") 2>conftest.er1
  2276. ac_status=$?
  2277. grep -v '^ *+' conftest.er1 >conftest.err
  2278. rm -f conftest.er1
  2279. cat conftest.err >&5
  2280. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2281. (exit $ac_status); } && {
  2282. test -z "$ac_c_werror_flag" ||
  2283. test ! -s conftest.err
  2284. } && test -s conftest.$ac_objext; then
  2285. ac_cv_prog_cc_c89=$ac_arg
  2286. else
  2287. echo "$as_me: failed program was:" >&5
  2288. sed 's/^/| /' conftest.$ac_ext >&5
  2289. fi
  2290. rm -f core conftest.err conftest.$ac_objext
  2291. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2292. done
  2293. rm -f conftest.$ac_ext
  2294. CC=$ac_save_CC
  2295. fi
  2296. # AC_CACHE_VAL
  2297. case "x$ac_cv_prog_cc_c89" in
  2298. x)
  2299. { echo "$as_me:$LINENO: result: none needed" >&5
  2300. echo "${ECHO_T}none needed" >&6; } ;;
  2301. xno)
  2302. { echo "$as_me:$LINENO: result: unsupported" >&5
  2303. echo "${ECHO_T}unsupported" >&6; } ;;
  2304. *)
  2305. CC="$CC $ac_cv_prog_cc_c89"
  2306. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  2307. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  2308. esac
  2309. ac_ext=c
  2310. ac_cpp='$CPP $CPPFLAGS'
  2311. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2312. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2313. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2314. # Checks for libraries.
  2315. # Checks for header files.
  2316. ac_ext=c
  2317. ac_cpp='$CPP $CPPFLAGS'
  2318. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2319. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2320. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2321. { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  2322. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  2323. # On Suns, sometimes $CPP names a directory.
  2324. if test -n "$CPP" && test -d "$CPP"; then
  2325. CPP=
  2326. fi
  2327. if test -z "$CPP"; then
  2328. if test "${ac_cv_prog_CPP+set}" = set; then
  2329. echo $ECHO_N "(cached) $ECHO_C" >&6
  2330. else
  2331. # Double quotes because CPP needs to be expanded
  2332. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2333. do
  2334. ac_preproc_ok=false
  2335. for ac_c_preproc_warn_flag in '' yes
  2336. do
  2337. # Use a header file that comes with gcc, so configuring glibc
  2338. # with a fresh cross-compiler works.
  2339. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2340. # <limits.h> exists even on freestanding compilers.
  2341. # On the NeXT, cc -E runs the code through the compiler's parser,
  2342. # not just through cpp. "Syntax error" is here to catch this case.
  2343. cat >conftest.$ac_ext <<_ACEOF
  2344. /* confdefs.h. */
  2345. _ACEOF
  2346. cat confdefs.h >>conftest.$ac_ext
  2347. cat >>conftest.$ac_ext <<_ACEOF
  2348. /* end confdefs.h. */
  2349. #ifdef __STDC__
  2350. # include <limits.h>
  2351. #else
  2352. # include <assert.h>
  2353. #endif
  2354. Syntax error
  2355. _ACEOF
  2356. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2357. case "(($ac_try" in
  2358. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2359. *) ac_try_echo=$ac_try;;
  2360. esac
  2361. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2362. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2363. ac_status=$?
  2364. grep -v '^ *+' conftest.er1 >conftest.err
  2365. rm -f conftest.er1
  2366. cat conftest.err >&5
  2367. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2368. (exit $ac_status); } >/dev/null && {
  2369. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2370. test ! -s conftest.err
  2371. }; then
  2372. :
  2373. else
  2374. echo "$as_me: failed program was:" >&5
  2375. sed 's/^/| /' conftest.$ac_ext >&5
  2376. # Broken: fails on valid input.
  2377. continue
  2378. fi
  2379. rm -f conftest.err conftest.$ac_ext
  2380. # OK, works on sane cases. Now check whether nonexistent headers
  2381. # can be detected and how.
  2382. cat >conftest.$ac_ext <<_ACEOF
  2383. /* confdefs.h. */
  2384. _ACEOF
  2385. cat confdefs.h >>conftest.$ac_ext
  2386. cat >>conftest.$ac_ext <<_ACEOF
  2387. /* end confdefs.h. */
  2388. #include <ac_nonexistent.h>
  2389. _ACEOF
  2390. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2391. case "(($ac_try" in
  2392. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2393. *) ac_try_echo=$ac_try;;
  2394. esac
  2395. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2396. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2397. ac_status=$?
  2398. grep -v '^ *+' conftest.er1 >conftest.err
  2399. rm -f conftest.er1
  2400. cat conftest.err >&5
  2401. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2402. (exit $ac_status); } >/dev/null && {
  2403. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2404. test ! -s conftest.err
  2405. }; then
  2406. # Broken: success on invalid input.
  2407. continue
  2408. else
  2409. echo "$as_me: failed program was:" >&5
  2410. sed 's/^/| /' conftest.$ac_ext >&5
  2411. # Passes both tests.
  2412. ac_preproc_ok=:
  2413. break
  2414. fi
  2415. rm -f conftest.err conftest.$ac_ext
  2416. done
  2417. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2418. rm -f conftest.err conftest.$ac_ext
  2419. if $ac_preproc_ok; then
  2420. break
  2421. fi
  2422. done
  2423. ac_cv_prog_CPP=$CPP
  2424. fi
  2425. CPP=$ac_cv_prog_CPP
  2426. else
  2427. ac_cv_prog_CPP=$CPP
  2428. fi
  2429. { echo "$as_me:$LINENO: result: $CPP" >&5
  2430. echo "${ECHO_T}$CPP" >&6; }
  2431. ac_preproc_ok=false
  2432. for ac_c_preproc_warn_flag in '' yes
  2433. do
  2434. # Use a header file that comes with gcc, so configuring glibc
  2435. # with a fresh cross-compiler works.
  2436. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2437. # <limits.h> exists even on freestanding compilers.
  2438. # On the NeXT, cc -E runs the code through the compiler's parser,
  2439. # not just through cpp. "Syntax error" is here to catch this case.
  2440. cat >conftest.$ac_ext <<_ACEOF
  2441. /* confdefs.h. */
  2442. _ACEOF
  2443. cat confdefs.h >>conftest.$ac_ext
  2444. cat >>conftest.$ac_ext <<_ACEOF
  2445. /* end confdefs.h. */
  2446. #ifdef __STDC__
  2447. # include <limits.h>
  2448. #else
  2449. # include <assert.h>
  2450. #endif
  2451. Syntax error
  2452. _ACEOF
  2453. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2454. case "(($ac_try" in
  2455. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2456. *) ac_try_echo=$ac_try;;
  2457. esac
  2458. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2459. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2460. ac_status=$?
  2461. grep -v '^ *+' conftest.er1 >conftest.err
  2462. rm -f conftest.er1
  2463. cat conftest.err >&5
  2464. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2465. (exit $ac_status); } >/dev/null && {
  2466. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2467. test ! -s conftest.err
  2468. }; then
  2469. :
  2470. else
  2471. echo "$as_me: failed program was:" >&5
  2472. sed 's/^/| /' conftest.$ac_ext >&5
  2473. # Broken: fails on valid input.
  2474. continue
  2475. fi
  2476. rm -f conftest.err conftest.$ac_ext
  2477. # OK, works on sane cases. Now check whether nonexistent headers
  2478. # can be detected and how.
  2479. cat >conftest.$ac_ext <<_ACEOF
  2480. /* confdefs.h. */
  2481. _ACEOF
  2482. cat confdefs.h >>conftest.$ac_ext
  2483. cat >>conftest.$ac_ext <<_ACEOF
  2484. /* end confdefs.h. */
  2485. #include <ac_nonexistent.h>
  2486. _ACEOF
  2487. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2488. case "(($ac_try" in
  2489. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2490. *) ac_try_echo=$ac_try;;
  2491. esac
  2492. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2493. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2494. ac_status=$?
  2495. grep -v '^ *+' conftest.er1 >conftest.err
  2496. rm -f conftest.er1
  2497. cat conftest.err >&5
  2498. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2499. (exit $ac_status); } >/dev/null && {
  2500. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2501. test ! -s conftest.err
  2502. }; then
  2503. # Broken: success on invalid input.
  2504. continue
  2505. else
  2506. echo "$as_me: failed program was:" >&5
  2507. sed 's/^/| /' conftest.$ac_ext >&5
  2508. # Passes both tests.
  2509. ac_preproc_ok=:
  2510. break
  2511. fi
  2512. rm -f conftest.err conftest.$ac_ext
  2513. done
  2514. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2515. rm -f conftest.err conftest.$ac_ext
  2516. if $ac_preproc_ok; then
  2517. :
  2518. else
  2519. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  2520. See \`config.log' for more details." >&5
  2521. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  2522. See \`config.log' for more details." >&2;}
  2523. { (exit 1); exit 1; }; }
  2524. fi
  2525. ac_ext=c
  2526. ac_cpp='$CPP $CPPFLAGS'
  2527. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2528. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2529. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2530. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  2531. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  2532. if test "${ac_cv_path_GREP+set}" = set; then
  2533. echo $ECHO_N "(cached) $ECHO_C" >&6
  2534. else
  2535. # Extract the first word of "grep ggrep" to use in msg output
  2536. if test -z "$GREP"; then
  2537. set dummy grep ggrep; ac_prog_name=$2
  2538. if test "${ac_cv_path_GREP+set}" = set; then
  2539. echo $ECHO_N "(cached) $ECHO_C" >&6
  2540. else
  2541. ac_path_GREP_found=false
  2542. # Loop through the user's path and test for each of PROGNAME-LIST
  2543. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2544. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2545. do
  2546. IFS=$as_save_IFS
  2547. test -z "$as_dir" && as_dir=.
  2548. for ac_prog in grep ggrep; do
  2549. for ac_exec_ext in '' $ac_executable_extensions; do
  2550. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  2551. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  2552. # Check for GNU ac_path_GREP and select it if it is found.
  2553. # Check for GNU $ac_path_GREP
  2554. case `"$ac_path_GREP" --version 2>&1` in
  2555. *GNU*)
  2556. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  2557. *)
  2558. ac_count=0
  2559. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  2560. while :
  2561. do
  2562. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2563. mv "conftest.tmp" "conftest.in"
  2564. cp "conftest.in" "conftest.nl"
  2565. echo 'GREP' >> "conftest.nl"
  2566. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2567. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2568. ac_count=`expr $ac_count + 1`
  2569. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  2570. # Best one so far, save it but keep looking for a better one
  2571. ac_cv_path_GREP="$ac_path_GREP"
  2572. ac_path_GREP_max=$ac_count
  2573. fi
  2574. # 10*(2^10) chars as input seems more than enough
  2575. test $ac_count -gt 10 && break
  2576. done
  2577. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2578. esac
  2579. $ac_path_GREP_found && break 3
  2580. done
  2581. done
  2582. done
  2583. IFS=$as_save_IFS
  2584. fi
  2585. GREP="$ac_cv_path_GREP"
  2586. if test -z "$GREP"; then
  2587. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  2588. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  2589. { (exit 1); exit 1; }; }
  2590. fi
  2591. else
  2592. ac_cv_path_GREP=$GREP
  2593. fi
  2594. fi
  2595. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  2596. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  2597. GREP="$ac_cv_path_GREP"
  2598. { echo "$as_me:$LINENO: checking for egrep" >&5
  2599. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  2600. if test "${ac_cv_path_EGREP+set}" = set; then
  2601. echo $ECHO_N "(cached) $ECHO_C" >&6
  2602. else
  2603. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  2604. then ac_cv_path_EGREP="$GREP -E"
  2605. else
  2606. # Extract the first word of "egrep" to use in msg output
  2607. if test -z "$EGREP"; then
  2608. set dummy egrep; ac_prog_name=$2
  2609. if test "${ac_cv_path_EGREP+set}" = set; then
  2610. echo $ECHO_N "(cached) $ECHO_C" >&6
  2611. else
  2612. ac_path_EGREP_found=false
  2613. # Loop through the user's path and test for each of PROGNAME-LIST
  2614. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2615. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2616. do
  2617. IFS=$as_save_IFS
  2618. test -z "$as_dir" && as_dir=.
  2619. for ac_prog in egrep; do
  2620. for ac_exec_ext in '' $ac_executable_extensions; do
  2621. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  2622. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  2623. # Check for GNU ac_path_EGREP and select it if it is found.
  2624. # Check for GNU $ac_path_EGREP
  2625. case `"$ac_path_EGREP" --version 2>&1` in
  2626. *GNU*)
  2627. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  2628. *)
  2629. ac_count=0
  2630. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  2631. while :
  2632. do
  2633. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2634. mv "conftest.tmp" "conftest.in"
  2635. cp "conftest.in" "conftest.nl"
  2636. echo 'EGREP' >> "conftest.nl"
  2637. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2638. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2639. ac_count=`expr $ac_count + 1`
  2640. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  2641. # Best one so far, save it but keep looking for a better one
  2642. ac_cv_path_EGREP="$ac_path_EGREP"
  2643. ac_path_EGREP_max=$ac_count
  2644. fi
  2645. # 10*(2^10) chars as input seems more than enough
  2646. test $ac_count -gt 10 && break
  2647. done
  2648. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2649. esac
  2650. $ac_path_EGREP_found && break 3
  2651. done
  2652. done
  2653. done
  2654. IFS=$as_save_IFS
  2655. fi
  2656. EGREP="$ac_cv_path_EGREP"
  2657. if test -z "$EGREP"; then
  2658. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  2659. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  2660. { (exit 1); exit 1; }; }
  2661. fi
  2662. else
  2663. ac_cv_path_EGREP=$EGREP
  2664. fi
  2665. fi
  2666. fi
  2667. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  2668. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  2669. EGREP="$ac_cv_path_EGREP"
  2670. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  2671. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  2672. if test "${ac_cv_header_stdc+set}" = set; then
  2673. echo $ECHO_N "(cached) $ECHO_C" >&6
  2674. else
  2675. cat >conftest.$ac_ext <<_ACEOF
  2676. /* confdefs.h. */
  2677. _ACEOF
  2678. cat confdefs.h >>conftest.$ac_ext
  2679. cat >>conftest.$ac_ext <<_ACEOF
  2680. /* end confdefs.h. */
  2681. #include <stdlib.h>
  2682. #include <stdarg.h>
  2683. #include <string.h>
  2684. #include <float.h>
  2685. int
  2686. main ()
  2687. {
  2688. ;
  2689. return 0;
  2690. }
  2691. _ACEOF
  2692. rm -f conftest.$ac_objext
  2693. if { (ac_try="$ac_compile"
  2694. case "(($ac_try" in
  2695. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2696. *) ac_try_echo=$ac_try;;
  2697. esac
  2698. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2699. (eval "$ac_compile") 2>conftest.er1
  2700. ac_status=$?
  2701. grep -v '^ *+' conftest.er1 >conftest.err
  2702. rm -f conftest.er1
  2703. cat conftest.err >&5
  2704. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2705. (exit $ac_status); } && {
  2706. test -z "$ac_c_werror_flag" ||
  2707. test ! -s conftest.err
  2708. } && test -s conftest.$ac_objext; then
  2709. ac_cv_header_stdc=yes
  2710. else
  2711. echo "$as_me: failed program was:" >&5
  2712. sed 's/^/| /' conftest.$ac_ext >&5
  2713. ac_cv_header_stdc=no
  2714. fi
  2715. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2716. if test $ac_cv_header_stdc = yes; then
  2717. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2718. cat >conftest.$ac_ext <<_ACEOF
  2719. /* confdefs.h. */
  2720. _ACEOF
  2721. cat confdefs.h >>conftest.$ac_ext
  2722. cat >>conftest.$ac_ext <<_ACEOF
  2723. /* end confdefs.h. */
  2724. #include <string.h>
  2725. _ACEOF
  2726. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2727. $EGREP "memchr" >/dev/null 2>&1; then
  2728. :
  2729. else
  2730. ac_cv_header_stdc=no
  2731. fi
  2732. rm -f conftest*
  2733. fi
  2734. if test $ac_cv_header_stdc = yes; then
  2735. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2736. cat >conftest.$ac_ext <<_ACEOF
  2737. /* confdefs.h. */
  2738. _ACEOF
  2739. cat confdefs.h >>conftest.$ac_ext
  2740. cat >>conftest.$ac_ext <<_ACEOF
  2741. /* end confdefs.h. */
  2742. #include <stdlib.h>
  2743. _ACEOF
  2744. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2745. $EGREP "free" >/dev/null 2>&1; then
  2746. :
  2747. else
  2748. ac_cv_header_stdc=no
  2749. fi
  2750. rm -f conftest*
  2751. fi
  2752. if test $ac_cv_header_stdc = yes; then
  2753. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2754. if test "$cross_compiling" = yes; then
  2755. :
  2756. else
  2757. cat >conftest.$ac_ext <<_ACEOF
  2758. /* confdefs.h. */
  2759. _ACEOF
  2760. cat confdefs.h >>conftest.$ac_ext
  2761. cat >>conftest.$ac_ext <<_ACEOF
  2762. /* end confdefs.h. */
  2763. #include <ctype.h>
  2764. #include <stdlib.h>
  2765. #if ((' ' & 0x0FF) == 0x020)
  2766. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2767. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2768. #else
  2769. # define ISLOWER(c) \
  2770. (('a' <= (c) && (c) <= 'i') \
  2771. || ('j' <= (c) && (c) <= 'r') \
  2772. || ('s' <= (c) && (c) <= 'z'))
  2773. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  2774. #endif
  2775. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2776. int
  2777. main ()
  2778. {
  2779. int i;
  2780. for (i = 0; i < 256; i++)
  2781. if (XOR (islower (i), ISLOWER (i))
  2782. || toupper (i) != TOUPPER (i))
  2783. return 2;
  2784. return 0;
  2785. }
  2786. _ACEOF
  2787. rm -f conftest$ac_exeext
  2788. if { (ac_try="$ac_link"
  2789. case "(($ac_try" in
  2790. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2791. *) ac_try_echo=$ac_try;;
  2792. esac
  2793. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2794. (eval "$ac_link") 2>&5
  2795. ac_status=$?
  2796. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2797. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2798. { (case "(($ac_try" in
  2799. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2800. *) ac_try_echo=$ac_try;;
  2801. esac
  2802. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2803. (eval "$ac_try") 2>&5
  2804. ac_status=$?
  2805. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2806. (exit $ac_status); }; }; then
  2807. :
  2808. else
  2809. echo "$as_me: program exited with status $ac_status" >&5
  2810. echo "$as_me: failed program was:" >&5
  2811. sed 's/^/| /' conftest.$ac_ext >&5
  2812. ( exit $ac_status )
  2813. ac_cv_header_stdc=no
  2814. fi
  2815. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2816. fi
  2817. fi
  2818. fi
  2819. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  2820. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  2821. if test $ac_cv_header_stdc = yes; then
  2822. cat >>confdefs.h <<\_ACEOF
  2823. #define STDC_HEADERS 1
  2824. _ACEOF
  2825. fi
  2826. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  2827. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  2828. inttypes.h stdint.h unistd.h
  2829. do
  2830. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2831. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  2832. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  2833. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  2834. echo $ECHO_N "(cached) $ECHO_C" >&6
  2835. else
  2836. cat >conftest.$ac_ext <<_ACEOF
  2837. /* confdefs.h. */
  2838. _ACEOF
  2839. cat confdefs.h >>conftest.$ac_ext
  2840. cat >>conftest.$ac_ext <<_ACEOF
  2841. /* end confdefs.h. */
  2842. $ac_includes_default
  2843. #include <$ac_header>
  2844. _ACEOF
  2845. rm -f conftest.$ac_objext
  2846. if { (ac_try="$ac_compile"
  2847. case "(($ac_try" in
  2848. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2849. *) ac_try_echo=$ac_try;;
  2850. esac
  2851. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2852. (eval "$ac_compile") 2>conftest.er1
  2853. ac_status=$?
  2854. grep -v '^ *+' conftest.er1 >conftest.err
  2855. rm -f conftest.er1
  2856. cat conftest.err >&5
  2857. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2858. (exit $ac_status); } && {
  2859. test -z "$ac_c_werror_flag" ||
  2860. test ! -s conftest.err
  2861. } && test -s conftest.$ac_objext; then
  2862. eval "$as_ac_Header=yes"
  2863. else
  2864. echo "$as_me: failed program was:" >&5
  2865. sed 's/^/| /' conftest.$ac_ext >&5
  2866. eval "$as_ac_Header=no"
  2867. fi
  2868. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2869. fi
  2870. ac_res=`eval echo '${'$as_ac_Header'}'`
  2871. { echo "$as_me:$LINENO: result: $ac_res" >&5
  2872. echo "${ECHO_T}$ac_res" >&6; }
  2873. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  2874. cat >>confdefs.h <<_ACEOF
  2875. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  2876. _ACEOF
  2877. fi
  2878. done
  2879. for ac_header in stdlib.h string.h unistd.h
  2880. do
  2881. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2882. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  2883. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  2884. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  2885. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  2886. echo $ECHO_N "(cached) $ECHO_C" >&6
  2887. fi
  2888. ac_res=`eval echo '${'$as_ac_Header'}'`
  2889. { echo "$as_me:$LINENO: result: $ac_res" >&5
  2890. echo "${ECHO_T}$ac_res" >&6; }
  2891. else
  2892. # Is the header compilable?
  2893. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  2894. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  2895. cat >conftest.$ac_ext <<_ACEOF
  2896. /* confdefs.h. */
  2897. _ACEOF
  2898. cat confdefs.h >>conftest.$ac_ext
  2899. cat >>conftest.$ac_ext <<_ACEOF
  2900. /* end confdefs.h. */
  2901. $ac_includes_default
  2902. #include <$ac_header>
  2903. _ACEOF
  2904. rm -f conftest.$ac_objext
  2905. if { (ac_try="$ac_compile"
  2906. case "(($ac_try" in
  2907. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2908. *) ac_try_echo=$ac_try;;
  2909. esac
  2910. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2911. (eval "$ac_compile") 2>conftest.er1
  2912. ac_status=$?
  2913. grep -v '^ *+' conftest.er1 >conftest.err
  2914. rm -f conftest.er1
  2915. cat conftest.err >&5
  2916. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2917. (exit $ac_status); } && {
  2918. test -z "$ac_c_werror_flag" ||
  2919. test ! -s conftest.err
  2920. } && test -s conftest.$ac_objext; then
  2921. ac_header_compiler=yes
  2922. else
  2923. echo "$as_me: failed program was:" >&5
  2924. sed 's/^/| /' conftest.$ac_ext >&5
  2925. ac_header_compiler=no
  2926. fi
  2927. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2928. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  2929. echo "${ECHO_T}$ac_header_compiler" >&6; }
  2930. # Is the header present?
  2931. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  2932. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  2933. cat >conftest.$ac_ext <<_ACEOF
  2934. /* confdefs.h. */
  2935. _ACEOF
  2936. cat confdefs.h >>conftest.$ac_ext
  2937. cat >>conftest.$ac_ext <<_ACEOF
  2938. /* end confdefs.h. */
  2939. #include <$ac_header>
  2940. _ACEOF
  2941. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2942. case "(($ac_try" in
  2943. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2944. *) ac_try_echo=$ac_try;;
  2945. esac
  2946. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2947. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2948. ac_status=$?
  2949. grep -v '^ *+' conftest.er1 >conftest.err
  2950. rm -f conftest.er1
  2951. cat conftest.err >&5
  2952. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2953. (exit $ac_status); } >/dev/null && {
  2954. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2955. test ! -s conftest.err
  2956. }; then
  2957. ac_header_preproc=yes
  2958. else
  2959. echo "$as_me: failed program was:" >&5
  2960. sed 's/^/| /' conftest.$ac_ext >&5
  2961. ac_header_preproc=no
  2962. fi
  2963. rm -f conftest.err conftest.$ac_ext
  2964. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  2965. echo "${ECHO_T}$ac_header_preproc" >&6; }
  2966. # So? What about this header?
  2967. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  2968. yes:no: )
  2969. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  2970. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2971. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  2972. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  2973. ac_header_preproc=yes
  2974. ;;
  2975. no:yes:* )
  2976. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  2977. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  2978. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  2979. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  2980. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  2981. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  2982. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  2983. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  2984. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  2985. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  2986. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  2987. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  2988. ;;
  2989. esac
  2990. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  2991. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  2992. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  2993. echo $ECHO_N "(cached) $ECHO_C" >&6
  2994. else
  2995. eval "$as_ac_Header=\$ac_header_preproc"
  2996. fi
  2997. ac_res=`eval echo '${'$as_ac_Header'}'`
  2998. { echo "$as_me:$LINENO: result: $ac_res" >&5
  2999. echo "${ECHO_T}$ac_res" >&6; }
  3000. fi
  3001. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3002. cat >>confdefs.h <<_ACEOF
  3003. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3004. _ACEOF
  3005. fi
  3006. done
  3007. #check for HADOOP_CONF_DIR
  3008. if test "$with_confdir" != ""
  3009. then
  3010. cat >>confdefs.h <<_ACEOF
  3011. #define HADOOP_CONF_DIR "$with_confdir"
  3012. _ACEOF
  3013. fi
  3014. # Checks for typedefs, structures, and compiler characteristics.
  3015. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  3016. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  3017. if test "${ac_cv_c_const+set}" = set; then
  3018. echo $ECHO_N "(cached) $ECHO_C" >&6
  3019. else
  3020. cat >conftest.$ac_ext <<_ACEOF
  3021. /* confdefs.h. */
  3022. _ACEOF
  3023. cat confdefs.h >>conftest.$ac_ext
  3024. cat >>conftest.$ac_ext <<_ACEOF
  3025. /* end confdefs.h. */
  3026. int
  3027. main ()
  3028. {
  3029. /* FIXME: Include the comments suggested by Paul. */
  3030. #ifndef __cplusplus
  3031. /* Ultrix mips cc rejects this. */
  3032. typedef int charset[2];
  3033. const charset cs;
  3034. /* SunOS 4.1.1 cc rejects this. */
  3035. char const *const *pcpcc;
  3036. char **ppc;
  3037. /* NEC SVR4.0.2 mips cc rejects this. */
  3038. struct point {int x, y;};
  3039. static struct point const zero = {0,0};
  3040. /* AIX XL C 1.02.0.0 rejects this.
  3041. It does not let you subtract one const X* pointer from another in
  3042. an arm of an if-expression whose if-part is not a constant
  3043. expression */
  3044. const char *g = "string";
  3045. pcpcc = &g + (g ? g-g : 0);
  3046. /* HPUX 7.0 cc rejects these. */
  3047. ++pcpcc;
  3048. ppc = (char**) pcpcc;
  3049. pcpcc = (char const *const *) ppc;
  3050. { /* SCO 3.2v4 cc rejects this. */
  3051. char *t;
  3052. char const *s = 0 ? (char *) 0 : (char const *) 0;
  3053. *t++ = 0;
  3054. if (s) return 0;
  3055. }
  3056. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  3057. int x[] = {25, 17};
  3058. const int *foo = &x[0];
  3059. ++foo;
  3060. }
  3061. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  3062. typedef const int *iptr;
  3063. iptr p = 0;
  3064. ++p;
  3065. }
  3066. { /* AIX XL C 1.02.0.0 rejects this saying
  3067. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  3068. struct s { int j; const int *ap[3]; };
  3069. struct s *b; b->j = 5;
  3070. }
  3071. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  3072. const int foo = 10;
  3073. if (!foo) return 0;
  3074. }
  3075. return !cs[0] && !zero.x;
  3076. #endif
  3077. ;
  3078. return 0;
  3079. }
  3080. _ACEOF
  3081. rm -f conftest.$ac_objext
  3082. if { (ac_try="$ac_compile"
  3083. case "(($ac_try" in
  3084. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3085. *) ac_try_echo=$ac_try;;
  3086. esac
  3087. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3088. (eval "$ac_compile") 2>conftest.er1
  3089. ac_status=$?
  3090. grep -v '^ *+' conftest.er1 >conftest.err
  3091. rm -f conftest.er1
  3092. cat conftest.err >&5
  3093. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3094. (exit $ac_status); } && {
  3095. test -z "$ac_c_werror_flag" ||
  3096. test ! -s conftest.err
  3097. } && test -s conftest.$ac_objext; then
  3098. ac_cv_c_const=yes
  3099. else
  3100. echo "$as_me: failed program was:" >&5
  3101. sed 's/^/| /' conftest.$ac_ext >&5
  3102. ac_cv_c_const=no
  3103. fi
  3104. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3105. fi
  3106. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  3107. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  3108. if test $ac_cv_c_const = no; then
  3109. cat >>confdefs.h <<\_ACEOF
  3110. #define const
  3111. _ACEOF
  3112. fi
  3113. { echo "$as_me:$LINENO: checking for pid_t" >&5
  3114. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
  3115. if test "${ac_cv_type_pid_t+set}" = set; then
  3116. echo $ECHO_N "(cached) $ECHO_C" >&6
  3117. else
  3118. cat >conftest.$ac_ext <<_ACEOF
  3119. /* confdefs.h. */
  3120. _ACEOF
  3121. cat confdefs.h >>conftest.$ac_ext
  3122. cat >>conftest.$ac_ext <<_ACEOF
  3123. /* end confdefs.h. */
  3124. $ac_includes_default
  3125. typedef pid_t ac__type_new_;
  3126. int
  3127. main ()
  3128. {
  3129. if ((ac__type_new_ *) 0)
  3130. return 0;
  3131. if (sizeof (ac__type_new_))
  3132. return 0;
  3133. ;
  3134. return 0;
  3135. }
  3136. _ACEOF
  3137. rm -f conftest.$ac_objext
  3138. if { (ac_try="$ac_compile"
  3139. case "(($ac_try" in
  3140. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3141. *) ac_try_echo=$ac_try;;
  3142. esac
  3143. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3144. (eval "$ac_compile") 2>conftest.er1
  3145. ac_status=$?
  3146. grep -v '^ *+' conftest.er1 >conftest.err
  3147. rm -f conftest.er1
  3148. cat conftest.err >&5
  3149. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3150. (exit $ac_status); } && {
  3151. test -z "$ac_c_werror_flag" ||
  3152. test ! -s conftest.err
  3153. } && test -s conftest.$ac_objext; then
  3154. ac_cv_type_pid_t=yes
  3155. else
  3156. echo "$as_me: failed program was:" >&5
  3157. sed 's/^/| /' conftest.$ac_ext >&5
  3158. ac_cv_type_pid_t=no
  3159. fi
  3160. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3161. fi
  3162. { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  3163. echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
  3164. if test $ac_cv_type_pid_t = yes; then
  3165. :
  3166. else
  3167. cat >>confdefs.h <<_ACEOF
  3168. #define pid_t int
  3169. _ACEOF
  3170. fi
  3171. # Checks for library functions.
  3172. for ac_header in stdlib.h
  3173. do
  3174. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3175. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  3176. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  3177. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  3178. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  3179. echo $ECHO_N "(cached) $ECHO_C" >&6
  3180. fi
  3181. ac_res=`eval echo '${'$as_ac_Header'}'`
  3182. { echo "$as_me:$LINENO: result: $ac_res" >&5
  3183. echo "${ECHO_T}$ac_res" >&6; }
  3184. else
  3185. # Is the header compilable?
  3186. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  3187. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  3188. cat >conftest.$ac_ext <<_ACEOF
  3189. /* confdefs.h. */
  3190. _ACEOF
  3191. cat confdefs.h >>conftest.$ac_ext
  3192. cat >>conftest.$ac_ext <<_ACEOF
  3193. /* end confdefs.h. */
  3194. $ac_includes_default
  3195. #include <$ac_header>
  3196. _ACEOF
  3197. rm -f conftest.$ac_objext
  3198. if { (ac_try="$ac_compile"
  3199. case "(($ac_try" in
  3200. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3201. *) ac_try_echo=$ac_try;;
  3202. esac
  3203. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3204. (eval "$ac_compile") 2>conftest.er1
  3205. ac_status=$?
  3206. grep -v '^ *+' conftest.er1 >conftest.err
  3207. rm -f conftest.er1
  3208. cat conftest.err >&5
  3209. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3210. (exit $ac_status); } && {
  3211. test -z "$ac_c_werror_flag" ||
  3212. test ! -s conftest.err
  3213. } && test -s conftest.$ac_objext; then
  3214. ac_header_compiler=yes
  3215. else
  3216. echo "$as_me: failed program was:" >&5
  3217. sed 's/^/| /' conftest.$ac_ext >&5
  3218. ac_header_compiler=no
  3219. fi
  3220. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3221. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3222. echo "${ECHO_T}$ac_header_compiler" >&6; }
  3223. # Is the header present?
  3224. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  3225. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  3226. cat >conftest.$ac_ext <<_ACEOF
  3227. /* confdefs.h. */
  3228. _ACEOF
  3229. cat confdefs.h >>conftest.$ac_ext
  3230. cat >>conftest.$ac_ext <<_ACEOF
  3231. /* end confdefs.h. */
  3232. #include <$ac_header>
  3233. _ACEOF
  3234. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3235. case "(($ac_try" in
  3236. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3237. *) ac_try_echo=$ac_try;;
  3238. esac
  3239. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3240. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3241. ac_status=$?
  3242. grep -v '^ *+' conftest.er1 >conftest.err
  3243. rm -f conftest.er1
  3244. cat conftest.err >&5
  3245. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3246. (exit $ac_status); } >/dev/null && {
  3247. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3248. test ! -s conftest.err
  3249. }; then
  3250. ac_header_preproc=yes
  3251. else
  3252. echo "$as_me: failed program was:" >&5
  3253. sed 's/^/| /' conftest.$ac_ext >&5
  3254. ac_header_preproc=no
  3255. fi
  3256. rm -f conftest.err conftest.$ac_ext
  3257. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3258. echo "${ECHO_T}$ac_header_preproc" >&6; }
  3259. # So? What about this header?
  3260. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  3261. yes:no: )
  3262. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  3263. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3264. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  3265. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  3266. ac_header_preproc=yes
  3267. ;;
  3268. no:yes:* )
  3269. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  3270. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  3271. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  3272. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  3273. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  3274. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  3275. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  3276. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  3277. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  3278. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  3279. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  3280. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  3281. ;;
  3282. esac
  3283. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  3284. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  3285. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  3286. echo $ECHO_N "(cached) $ECHO_C" >&6
  3287. else
  3288. eval "$as_ac_Header=\$ac_header_preproc"
  3289. fi
  3290. ac_res=`eval echo '${'$as_ac_Header'}'`
  3291. { echo "$as_me:$LINENO: result: $ac_res" >&5
  3292. echo "${ECHO_T}$ac_res" >&6; }
  3293. fi
  3294. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3295. cat >>confdefs.h <<_ACEOF
  3296. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3297. _ACEOF
  3298. fi
  3299. done
  3300. { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  3301. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
  3302. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  3303. echo $ECHO_N "(cached) $ECHO_C" >&6
  3304. else
  3305. if test "$cross_compiling" = yes; then
  3306. ac_cv_func_malloc_0_nonnull=no
  3307. else
  3308. cat >conftest.$ac_ext <<_ACEOF
  3309. /* confdefs.h. */
  3310. _ACEOF
  3311. cat confdefs.h >>conftest.$ac_ext
  3312. cat >>conftest.$ac_ext <<_ACEOF
  3313. /* end confdefs.h. */
  3314. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  3315. # include <stdlib.h>
  3316. #else
  3317. char *malloc ();
  3318. #endif
  3319. int
  3320. main ()
  3321. {
  3322. return ! malloc (0);
  3323. ;
  3324. return 0;
  3325. }
  3326. _ACEOF
  3327. rm -f conftest$ac_exeext
  3328. if { (ac_try="$ac_link"
  3329. case "(($ac_try" in
  3330. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3331. *) ac_try_echo=$ac_try;;
  3332. esac
  3333. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3334. (eval "$ac_link") 2>&5
  3335. ac_status=$?
  3336. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3337. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3338. { (case "(($ac_try" in
  3339. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3340. *) ac_try_echo=$ac_try;;
  3341. esac
  3342. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3343. (eval "$ac_try") 2>&5
  3344. ac_status=$?
  3345. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3346. (exit $ac_status); }; }; then
  3347. ac_cv_func_malloc_0_nonnull=yes
  3348. else
  3349. echo "$as_me: program exited with status $ac_status" >&5
  3350. echo "$as_me: failed program was:" >&5
  3351. sed 's/^/| /' conftest.$ac_ext >&5
  3352. ( exit $ac_status )
  3353. ac_cv_func_malloc_0_nonnull=no
  3354. fi
  3355. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3356. fi
  3357. fi
  3358. { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  3359. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
  3360. if test $ac_cv_func_malloc_0_nonnull = yes; then
  3361. cat >>confdefs.h <<\_ACEOF
  3362. #define HAVE_MALLOC 1
  3363. _ACEOF
  3364. else
  3365. cat >>confdefs.h <<\_ACEOF
  3366. #define HAVE_MALLOC 0
  3367. _ACEOF
  3368. case " $LIBOBJS " in
  3369. *" malloc.$ac_objext "* ) ;;
  3370. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  3371. ;;
  3372. esac
  3373. cat >>confdefs.h <<\_ACEOF
  3374. #define malloc rpl_malloc
  3375. _ACEOF
  3376. fi
  3377. for ac_header in stdlib.h
  3378. do
  3379. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3380. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  3381. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  3382. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  3383. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  3384. echo $ECHO_N "(cached) $ECHO_C" >&6
  3385. fi
  3386. ac_res=`eval echo '${'$as_ac_Header'}'`
  3387. { echo "$as_me:$LINENO: result: $ac_res" >&5
  3388. echo "${ECHO_T}$ac_res" >&6; }
  3389. else
  3390. # Is the header compilable?
  3391. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  3392. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  3393. cat >conftest.$ac_ext <<_ACEOF
  3394. /* confdefs.h. */
  3395. _ACEOF
  3396. cat confdefs.h >>conftest.$ac_ext
  3397. cat >>conftest.$ac_ext <<_ACEOF
  3398. /* end confdefs.h. */
  3399. $ac_includes_default
  3400. #include <$ac_header>
  3401. _ACEOF
  3402. rm -f conftest.$ac_objext
  3403. if { (ac_try="$ac_compile"
  3404. case "(($ac_try" in
  3405. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3406. *) ac_try_echo=$ac_try;;
  3407. esac
  3408. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3409. (eval "$ac_compile") 2>conftest.er1
  3410. ac_status=$?
  3411. grep -v '^ *+' conftest.er1 >conftest.err
  3412. rm -f conftest.er1
  3413. cat conftest.err >&5
  3414. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3415. (exit $ac_status); } && {
  3416. test -z "$ac_c_werror_flag" ||
  3417. test ! -s conftest.err
  3418. } && test -s conftest.$ac_objext; then
  3419. ac_header_compiler=yes
  3420. else
  3421. echo "$as_me: failed program was:" >&5
  3422. sed 's/^/| /' conftest.$ac_ext >&5
  3423. ac_header_compiler=no
  3424. fi
  3425. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3426. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3427. echo "${ECHO_T}$ac_header_compiler" >&6; }
  3428. # Is the header present?
  3429. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  3430. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  3431. cat >conftest.$ac_ext <<_ACEOF
  3432. /* confdefs.h. */
  3433. _ACEOF
  3434. cat confdefs.h >>conftest.$ac_ext
  3435. cat >>conftest.$ac_ext <<_ACEOF
  3436. /* end confdefs.h. */
  3437. #include <$ac_header>
  3438. _ACEOF
  3439. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3440. case "(($ac_try" in
  3441. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3442. *) ac_try_echo=$ac_try;;
  3443. esac
  3444. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3445. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3446. ac_status=$?
  3447. grep -v '^ *+' conftest.er1 >conftest.err
  3448. rm -f conftest.er1
  3449. cat conftest.err >&5
  3450. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3451. (exit $ac_status); } >/dev/null && {
  3452. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3453. test ! -s conftest.err
  3454. }; then
  3455. ac_header_preproc=yes
  3456. else
  3457. echo "$as_me: failed program was:" >&5
  3458. sed 's/^/| /' conftest.$ac_ext >&5
  3459. ac_header_preproc=no
  3460. fi
  3461. rm -f conftest.err conftest.$ac_ext
  3462. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3463. echo "${ECHO_T}$ac_header_preproc" >&6; }
  3464. # So? What about this header?
  3465. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  3466. yes:no: )
  3467. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  3468. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3469. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  3470. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  3471. ac_header_preproc=yes
  3472. ;;
  3473. no:yes:* )
  3474. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  3475. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  3476. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  3477. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  3478. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  3479. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  3480. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  3481. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  3482. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  3483. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  3484. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  3485. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  3486. ;;
  3487. esac
  3488. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  3489. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  3490. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  3491. echo $ECHO_N "(cached) $ECHO_C" >&6
  3492. else
  3493. eval "$as_ac_Header=\$ac_header_preproc"
  3494. fi
  3495. ac_res=`eval echo '${'$as_ac_Header'}'`
  3496. { echo "$as_me:$LINENO: result: $ac_res" >&5
  3497. echo "${ECHO_T}$ac_res" >&6; }
  3498. fi
  3499. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3500. cat >>confdefs.h <<_ACEOF
  3501. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3502. _ACEOF
  3503. fi
  3504. done
  3505. { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  3506. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
  3507. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  3508. echo $ECHO_N "(cached) $ECHO_C" >&6
  3509. else
  3510. if test "$cross_compiling" = yes; then
  3511. ac_cv_func_realloc_0_nonnull=no
  3512. else
  3513. cat >conftest.$ac_ext <<_ACEOF
  3514. /* confdefs.h. */
  3515. _ACEOF
  3516. cat confdefs.h >>conftest.$ac_ext
  3517. cat >>conftest.$ac_ext <<_ACEOF
  3518. /* end confdefs.h. */
  3519. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  3520. # include <stdlib.h>
  3521. #else
  3522. char *realloc ();
  3523. #endif
  3524. int
  3525. main ()
  3526. {
  3527. return ! realloc (0, 0);
  3528. ;
  3529. return 0;
  3530. }
  3531. _ACEOF
  3532. rm -f conftest$ac_exeext
  3533. if { (ac_try="$ac_link"
  3534. case "(($ac_try" in
  3535. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3536. *) ac_try_echo=$ac_try;;
  3537. esac
  3538. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3539. (eval "$ac_link") 2>&5
  3540. ac_status=$?
  3541. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3542. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3543. { (case "(($ac_try" in
  3544. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3545. *) ac_try_echo=$ac_try;;
  3546. esac
  3547. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3548. (eval "$ac_try") 2>&5
  3549. ac_status=$?
  3550. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3551. (exit $ac_status); }; }; then
  3552. ac_cv_func_realloc_0_nonnull=yes
  3553. else
  3554. echo "$as_me: program exited with status $ac_status" >&5
  3555. echo "$as_me: failed program was:" >&5
  3556. sed 's/^/| /' conftest.$ac_ext >&5
  3557. ( exit $ac_status )
  3558. ac_cv_func_realloc_0_nonnull=no
  3559. fi
  3560. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3561. fi
  3562. fi
  3563. { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  3564. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
  3565. if test $ac_cv_func_realloc_0_nonnull = yes; then
  3566. cat >>confdefs.h <<\_ACEOF
  3567. #define HAVE_REALLOC 1
  3568. _ACEOF
  3569. else
  3570. cat >>confdefs.h <<\_ACEOF
  3571. #define HAVE_REALLOC 0
  3572. _ACEOF
  3573. case " $LIBOBJS " in
  3574. *" realloc.$ac_objext "* ) ;;
  3575. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  3576. ;;
  3577. esac
  3578. cat >>confdefs.h <<\_ACEOF
  3579. #define realloc rpl_realloc
  3580. _ACEOF
  3581. fi
  3582. for ac_func in strerror
  3583. do
  3584. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  3585. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  3586. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  3587. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  3588. echo $ECHO_N "(cached) $ECHO_C" >&6
  3589. else
  3590. cat >conftest.$ac_ext <<_ACEOF
  3591. /* confdefs.h. */
  3592. _ACEOF
  3593. cat confdefs.h >>conftest.$ac_ext
  3594. cat >>conftest.$ac_ext <<_ACEOF
  3595. /* end confdefs.h. */
  3596. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  3597. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3598. #define $ac_func innocuous_$ac_func
  3599. /* System header to define __stub macros and hopefully few prototypes,
  3600. which can conflict with char $ac_func (); below.
  3601. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3602. <limits.h> exists even on freestanding compilers. */
  3603. #ifdef __STDC__
  3604. # include <limits.h>
  3605. #else
  3606. # include <assert.h>
  3607. #endif
  3608. #undef $ac_func
  3609. /* Override any GCC internal prototype to avoid an error.
  3610. Use char because int might match the return type of a GCC
  3611. builtin and then its argument prototype would still apply. */
  3612. #ifdef __cplusplus
  3613. extern "C"
  3614. #endif
  3615. char $ac_func ();
  3616. /* The GNU C library defines this for functions which it implements
  3617. to always fail with ENOSYS. Some functions are actually named
  3618. something starting with __ and the normal name is an alias. */
  3619. #if defined __stub_$ac_func || defined __stub___$ac_func
  3620. choke me
  3621. #endif
  3622. int
  3623. main ()
  3624. {
  3625. return $ac_func ();
  3626. ;
  3627. return 0;
  3628. }
  3629. _ACEOF
  3630. rm -f conftest.$ac_objext conftest$ac_exeext
  3631. if { (ac_try="$ac_link"
  3632. case "(($ac_try" in
  3633. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3634. *) ac_try_echo=$ac_try;;
  3635. esac
  3636. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3637. (eval "$ac_link") 2>conftest.er1
  3638. ac_status=$?
  3639. grep -v '^ *+' conftest.er1 >conftest.err
  3640. rm -f conftest.er1
  3641. cat conftest.err >&5
  3642. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3643. (exit $ac_status); } && {
  3644. test -z "$ac_c_werror_flag" ||
  3645. test ! -s conftest.err
  3646. } && test -s conftest$ac_exeext &&
  3647. $as_test_x conftest$ac_exeext; then
  3648. eval "$as_ac_var=yes"
  3649. else
  3650. echo "$as_me: failed program was:" >&5
  3651. sed 's/^/| /' conftest.$ac_ext >&5
  3652. eval "$as_ac_var=no"
  3653. fi
  3654. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3655. conftest$ac_exeext conftest.$ac_ext
  3656. fi
  3657. ac_res=`eval echo '${'$as_ac_var'}'`
  3658. { echo "$as_me:$LINENO: result: $ac_res" >&5
  3659. echo "${ECHO_T}$ac_res" >&6; }
  3660. if test `eval echo '${'$as_ac_var'}'` = yes; then
  3661. cat >>confdefs.h <<_ACEOF
  3662. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  3663. _ACEOF
  3664. fi
  3665. done
  3666. ac_config_files="$ac_config_files Makefile"
  3667. cat >confcache <<\_ACEOF
  3668. # This file is a shell script that caches the results of configure
  3669. # tests run on this system so they can be shared between configure
  3670. # scripts and configure runs, see configure's option --config-cache.
  3671. # It is not useful on other systems. If it contains results you don't
  3672. # want to keep, you may remove or edit it.
  3673. #
  3674. # config.status only pays attention to the cache file if you give it
  3675. # the --recheck option to rerun configure.
  3676. #
  3677. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3678. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3679. # following values.
  3680. _ACEOF
  3681. # The following way of writing the cache mishandles newlines in values,
  3682. # but we know of no workaround that is simple, portable, and efficient.
  3683. # So, we kill variables containing newlines.
  3684. # Ultrix sh set writes to stderr and can't be redirected directly,
  3685. # and sets the high bit in the cache file unless we assign to the vars.
  3686. (
  3687. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3688. eval ac_val=\$$ac_var
  3689. case $ac_val in #(
  3690. *${as_nl}*)
  3691. case $ac_var in #(
  3692. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  3693. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  3694. esac
  3695. case $ac_var in #(
  3696. _ | IFS | as_nl) ;; #(
  3697. *) $as_unset $ac_var ;;
  3698. esac ;;
  3699. esac
  3700. done
  3701. (set) 2>&1 |
  3702. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3703. *${as_nl}ac_space=\ *)
  3704. # `set' does not quote correctly, so add quotes (double-quote
  3705. # substitution turns \\\\ into \\, and sed turns \\ into \).
  3706. sed -n \
  3707. "s/'/'\\\\''/g;
  3708. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3709. ;; #(
  3710. *)
  3711. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3712. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3713. ;;
  3714. esac |
  3715. sort
  3716. ) |
  3717. sed '
  3718. /^ac_cv_env_/b end
  3719. t clear
  3720. :clear
  3721. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3722. t end
  3723. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3724. :end' >>confcache
  3725. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3726. if test -w "$cache_file"; then
  3727. test "x$cache_file" != "x/dev/null" &&
  3728. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  3729. echo "$as_me: updating cache $cache_file" >&6;}
  3730. cat confcache >$cache_file
  3731. else
  3732. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  3733. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3734. fi
  3735. fi
  3736. rm -f confcache
  3737. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  3738. # Let make expand exec_prefix.
  3739. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  3740. DEFS=-DHAVE_CONFIG_H
  3741. ac_libobjs=
  3742. ac_ltlibobjs=
  3743. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  3744. # 1. Remove the extension, and $U if already installed.
  3745. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  3746. ac_i=`echo "$ac_i" | sed "$ac_script"`
  3747. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  3748. # will be set to the directory where LIBOBJS objects are built.
  3749. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  3750. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  3751. done
  3752. LIBOBJS=$ac_libobjs
  3753. LTLIBOBJS=$ac_ltlibobjs
  3754. : ${CONFIG_STATUS=./config.status}
  3755. ac_clean_files_save=$ac_clean_files
  3756. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  3757. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  3758. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  3759. cat >$CONFIG_STATUS <<_ACEOF
  3760. #! $SHELL
  3761. # Generated by $as_me.
  3762. # Run this file to recreate the current configuration.
  3763. # Compiler output produced by configure, useful for debugging
  3764. # configure, is in config.log if it exists.
  3765. debug=false
  3766. ac_cs_recheck=false
  3767. ac_cs_silent=false
  3768. SHELL=\${CONFIG_SHELL-$SHELL}
  3769. _ACEOF
  3770. cat >>$CONFIG_STATUS <<\_ACEOF
  3771. ## --------------------- ##
  3772. ## M4sh Initialization. ##
  3773. ## --------------------- ##
  3774. # Be more Bourne compatible
  3775. DUALCASE=1; export DUALCASE # for MKS sh
  3776. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  3777. emulate sh
  3778. NULLCMD=:
  3779. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  3780. # is contrary to our usage. Disable this feature.
  3781. alias -g '${1+"$@"}'='"$@"'
  3782. setopt NO_GLOB_SUBST
  3783. else
  3784. case `(set -o) 2>/dev/null` in
  3785. *posix*) set -o posix ;;
  3786. esac
  3787. fi
  3788. # PATH needs CR
  3789. # Avoid depending upon Character Ranges.
  3790. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  3791. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  3792. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  3793. as_cr_digits='0123456789'
  3794. as_cr_alnum=$as_cr_Letters$as_cr_digits
  3795. # The user is always right.
  3796. if test "${PATH_SEPARATOR+set}" != set; then
  3797. echo "#! /bin/sh" >conf$$.sh
  3798. echo "exit 0" >>conf$$.sh
  3799. chmod +x conf$$.sh
  3800. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  3801. PATH_SEPARATOR=';'
  3802. else
  3803. PATH_SEPARATOR=:
  3804. fi
  3805. rm -f conf$$.sh
  3806. fi
  3807. # Support unset when possible.
  3808. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  3809. as_unset=unset
  3810. else
  3811. as_unset=false
  3812. fi
  3813. # IFS
  3814. # We need space, tab and new line, in precisely that order. Quoting is
  3815. # there to prevent editors from complaining about space-tab.
  3816. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  3817. # splitting by setting IFS to empty value.)
  3818. as_nl='
  3819. '
  3820. IFS=" "" $as_nl"
  3821. # Find who we are. Look in the path if we contain no directory separator.
  3822. case $0 in
  3823. *[\\/]* ) as_myself=$0 ;;
  3824. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3825. for as_dir in $PATH
  3826. do
  3827. IFS=$as_save_IFS
  3828. test -z "$as_dir" && as_dir=.
  3829. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  3830. done
  3831. IFS=$as_save_IFS
  3832. ;;
  3833. esac
  3834. # We did not find ourselves, most probably we were run as `sh COMMAND'
  3835. # in which case we are not to be found in the path.
  3836. if test "x$as_myself" = x; then
  3837. as_myself=$0
  3838. fi
  3839. if test ! -f "$as_myself"; then
  3840. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  3841. { (exit 1); exit 1; }
  3842. fi
  3843. # Work around bugs in pre-3.0 UWIN ksh.
  3844. for as_var in ENV MAIL MAILPATH
  3845. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  3846. done
  3847. PS1='$ '
  3848. PS2='> '
  3849. PS4='+ '
  3850. # NLS nuisances.
  3851. for as_var in \
  3852. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  3853. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  3854. LC_TELEPHONE LC_TIME
  3855. do
  3856. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  3857. eval $as_var=C; export $as_var
  3858. else
  3859. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  3860. fi
  3861. done
  3862. # Required to use basename.
  3863. if expr a : '\(a\)' >/dev/null 2>&1 &&
  3864. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  3865. as_expr=expr
  3866. else
  3867. as_expr=false
  3868. fi
  3869. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  3870. as_basename=basename
  3871. else
  3872. as_basename=false
  3873. fi
  3874. # Name of the executable.
  3875. as_me=`$as_basename -- "$0" ||
  3876. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  3877. X"$0" : 'X\(//\)$' \| \
  3878. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  3879. echo X/"$0" |
  3880. sed '/^.*\/\([^/][^/]*\)\/*$/{
  3881. s//\1/
  3882. q
  3883. }
  3884. /^X\/\(\/\/\)$/{
  3885. s//\1/
  3886. q
  3887. }
  3888. /^X\/\(\/\).*/{
  3889. s//\1/
  3890. q
  3891. }
  3892. s/.*/./; q'`
  3893. # CDPATH.
  3894. $as_unset CDPATH
  3895. as_lineno_1=$LINENO
  3896. as_lineno_2=$LINENO
  3897. test "x$as_lineno_1" != "x$as_lineno_2" &&
  3898. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  3899. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  3900. # uniformly replaced by the line number. The first 'sed' inserts a
  3901. # line-number line after each line using $LINENO; the second 'sed'
  3902. # does the real work. The second script uses 'N' to pair each
  3903. # line-number line with the line containing $LINENO, and appends
  3904. # trailing '-' during substitution so that $LINENO is not a special
  3905. # case at line end.
  3906. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  3907. # scripts with optimization help from Paolo Bonzini. Blame Lee
  3908. # E. McMahon (1931-1989) for sed's syntax. :-)
  3909. sed -n '
  3910. p
  3911. /[$]LINENO/=
  3912. ' <$as_myself |
  3913. sed '
  3914. s/[$]LINENO.*/&-/
  3915. t lineno
  3916. b
  3917. :lineno
  3918. N
  3919. :loop
  3920. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  3921. t loop
  3922. s/-\n.*//
  3923. ' >$as_me.lineno &&
  3924. chmod +x "$as_me.lineno" ||
  3925. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  3926. { (exit 1); exit 1; }; }
  3927. # Don't try to exec as it changes $[0], causing all sort of problems
  3928. # (the dirname of $[0] is not the place where we might find the
  3929. # original and so on. Autoconf is especially sensitive to this).
  3930. . "./$as_me.lineno"
  3931. # Exit status is that of the last command.
  3932. exit
  3933. }
  3934. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  3935. as_dirname=dirname
  3936. else
  3937. as_dirname=false
  3938. fi
  3939. ECHO_C= ECHO_N= ECHO_T=
  3940. case `echo -n x` in
  3941. -n*)
  3942. case `echo 'x\c'` in
  3943. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  3944. *) ECHO_C='\c';;
  3945. esac;;
  3946. *)
  3947. ECHO_N='-n';;
  3948. esac
  3949. if expr a : '\(a\)' >/dev/null 2>&1 &&
  3950. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  3951. as_expr=expr
  3952. else
  3953. as_expr=false
  3954. fi
  3955. rm -f conf$$ conf$$.exe conf$$.file
  3956. if test -d conf$$.dir; then
  3957. rm -f conf$$.dir/conf$$.file
  3958. else
  3959. rm -f conf$$.dir
  3960. mkdir conf$$.dir
  3961. fi
  3962. echo >conf$$.file
  3963. if ln -s conf$$.file conf$$ 2>/dev/null; then
  3964. as_ln_s='ln -s'
  3965. # ... but there are two gotchas:
  3966. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  3967. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  3968. # In both cases, we have to default to `cp -p'.
  3969. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  3970. as_ln_s='cp -p'
  3971. elif ln conf$$.file conf$$ 2>/dev/null; then
  3972. as_ln_s=ln
  3973. else
  3974. as_ln_s='cp -p'
  3975. fi
  3976. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  3977. rmdir conf$$.dir 2>/dev/null
  3978. if mkdir -p . 2>/dev/null; then
  3979. as_mkdir_p=:
  3980. else
  3981. test -d ./-p && rmdir ./-p
  3982. as_mkdir_p=false
  3983. fi
  3984. if test -x / >/dev/null 2>&1; then
  3985. as_test_x='test -x'
  3986. else
  3987. if ls -dL / >/dev/null 2>&1; then
  3988. as_ls_L_option=L
  3989. else
  3990. as_ls_L_option=
  3991. fi
  3992. as_test_x='
  3993. eval sh -c '\''
  3994. if test -d "$1"; then
  3995. test -d "$1/.";
  3996. else
  3997. case $1 in
  3998. -*)set "./$1";;
  3999. esac;
  4000. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  4001. ???[sx]*):;;*)false;;esac;fi
  4002. '\'' sh
  4003. '
  4004. fi
  4005. as_executable_p=$as_test_x
  4006. # Sed expression to map a string onto a valid CPP name.
  4007. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  4008. # Sed expression to map a string onto a valid variable name.
  4009. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  4010. exec 6>&1
  4011. # Save the log message, to keep $[0] and so on meaningful, and to
  4012. # report actual input values of CONFIG_FILES etc. instead of their
  4013. # values after options handling.
  4014. ac_log="
  4015. This file was extended by task-controller $as_me 0.1, which was
  4016. generated by GNU Autoconf 2.61. Invocation command line was
  4017. CONFIG_FILES = $CONFIG_FILES
  4018. CONFIG_HEADERS = $CONFIG_HEADERS
  4019. CONFIG_LINKS = $CONFIG_LINKS
  4020. CONFIG_COMMANDS = $CONFIG_COMMANDS
  4021. $ $0 $@
  4022. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  4023. "
  4024. _ACEOF
  4025. cat >>$CONFIG_STATUS <<_ACEOF
  4026. # Files that config.status was made for.
  4027. config_files="$ac_config_files"
  4028. config_headers="$ac_config_headers"
  4029. _ACEOF
  4030. cat >>$CONFIG_STATUS <<\_ACEOF
  4031. ac_cs_usage="\
  4032. \`$as_me' instantiates files from templates according to the
  4033. current configuration.
  4034. Usage: $0 [OPTIONS] [FILE]...
  4035. -h, --help print this help, then exit
  4036. -V, --version print version number and configuration settings, then exit
  4037. -q, --quiet do not print progress messages
  4038. -d, --debug don't remove temporary files
  4039. --recheck update $as_me by reconfiguring in the same conditions
  4040. --file=FILE[:TEMPLATE]
  4041. instantiate the configuration file FILE
  4042. --header=FILE[:TEMPLATE]
  4043. instantiate the configuration header FILE
  4044. Configuration files:
  4045. $config_files
  4046. Configuration headers:
  4047. $config_headers
  4048. Report bugs to <bug-autoconf@gnu.org>."
  4049. _ACEOF
  4050. cat >>$CONFIG_STATUS <<_ACEOF
  4051. ac_cs_version="\\
  4052. task-controller config.status 0.1
  4053. configured by $0, generated by GNU Autoconf 2.61,
  4054. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  4055. Copyright (C) 2006 Free Software Foundation, Inc.
  4056. This config.status script is free software; the Free Software Foundation
  4057. gives unlimited permission to copy, distribute and modify it."
  4058. ac_pwd='$ac_pwd'
  4059. srcdir='$srcdir'
  4060. _ACEOF
  4061. cat >>$CONFIG_STATUS <<\_ACEOF
  4062. # If no file are specified by the user, then we need to provide default
  4063. # value. By we need to know if files were specified by the user.
  4064. ac_need_defaults=:
  4065. while test $# != 0
  4066. do
  4067. case $1 in
  4068. --*=*)
  4069. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  4070. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  4071. ac_shift=:
  4072. ;;
  4073. *)
  4074. ac_option=$1
  4075. ac_optarg=$2
  4076. ac_shift=shift
  4077. ;;
  4078. esac
  4079. case $ac_option in
  4080. # Handling of the options.
  4081. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  4082. ac_cs_recheck=: ;;
  4083. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  4084. echo "$ac_cs_version"; exit ;;
  4085. --debug | --debu | --deb | --de | --d | -d )
  4086. debug=: ;;
  4087. --file | --fil | --fi | --f )
  4088. $ac_shift
  4089. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  4090. ac_need_defaults=false;;
  4091. --header | --heade | --head | --hea )
  4092. $ac_shift
  4093. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  4094. ac_need_defaults=false;;
  4095. --he | --h)
  4096. # Conflict between --help and --header
  4097. { echo "$as_me: error: ambiguous option: $1
  4098. Try \`$0 --help' for more information." >&2
  4099. { (exit 1); exit 1; }; };;
  4100. --help | --hel | -h )
  4101. echo "$ac_cs_usage"; exit ;;
  4102. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  4103. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  4104. ac_cs_silent=: ;;
  4105. # This is an error.
  4106. -*) { echo "$as_me: error: unrecognized option: $1
  4107. Try \`$0 --help' for more information." >&2
  4108. { (exit 1); exit 1; }; } ;;
  4109. *) ac_config_targets="$ac_config_targets $1"
  4110. ac_need_defaults=false ;;
  4111. esac
  4112. shift
  4113. done
  4114. ac_configure_extra_args=
  4115. if $ac_cs_silent; then
  4116. exec 6>/dev/null
  4117. ac_configure_extra_args="$ac_configure_extra_args --silent"
  4118. fi
  4119. _ACEOF
  4120. cat >>$CONFIG_STATUS <<_ACEOF
  4121. if \$ac_cs_recheck; then
  4122. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  4123. CONFIG_SHELL=$SHELL
  4124. export CONFIG_SHELL
  4125. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  4126. fi
  4127. _ACEOF
  4128. cat >>$CONFIG_STATUS <<\_ACEOF
  4129. exec 5>>config.log
  4130. {
  4131. echo
  4132. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  4133. ## Running $as_me. ##
  4134. _ASBOX
  4135. echo "$ac_log"
  4136. } >&5
  4137. _ACEOF
  4138. cat >>$CONFIG_STATUS <<_ACEOF
  4139. _ACEOF
  4140. cat >>$CONFIG_STATUS <<\_ACEOF
  4141. # Handling of arguments.
  4142. for ac_config_target in $ac_config_targets
  4143. do
  4144. case $ac_config_target in
  4145. "configuration.h") CONFIG_HEADERS="$CONFIG_HEADERS configuration.h" ;;
  4146. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  4147. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  4148. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  4149. { (exit 1); exit 1; }; };;
  4150. esac
  4151. done
  4152. # If the user did not use the arguments to specify the items to instantiate,
  4153. # then the envvar interface is used. Set only those that are not.
  4154. # We use the long form for the default assignment because of an extremely
  4155. # bizarre bug on SunOS 4.1.3.
  4156. if $ac_need_defaults; then
  4157. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  4158. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  4159. fi
  4160. # Have a temporary directory for convenience. Make it in the build tree
  4161. # simply because there is no reason against having it here, and in addition,
  4162. # creating and moving files from /tmp can sometimes cause problems.
  4163. # Hook for its removal unless debugging.
  4164. # Note that there is a small window in which the directory will not be cleaned:
  4165. # after its creation but before its name has been assigned to `$tmp'.
  4166. $debug ||
  4167. {
  4168. tmp=
  4169. trap 'exit_status=$?
  4170. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  4171. ' 0
  4172. trap '{ (exit 1); exit 1; }' 1 2 13 15
  4173. }
  4174. # Create a (secure) tmp directory for tmp files.
  4175. {
  4176. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  4177. test -n "$tmp" && test -d "$tmp"
  4178. } ||
  4179. {
  4180. tmp=./conf$$-$RANDOM
  4181. (umask 077 && mkdir "$tmp")
  4182. } ||
  4183. {
  4184. echo "$me: cannot create a temporary directory in ." >&2
  4185. { (exit 1); exit 1; }
  4186. }
  4187. #
  4188. # Set up the sed scripts for CONFIG_FILES section.
  4189. #
  4190. # No need to generate the scripts if there are no CONFIG_FILES.
  4191. # This happens for instance when ./config.status config.h
  4192. if test -n "$CONFIG_FILES"; then
  4193. _ACEOF
  4194. ac_delim='%!_!# '
  4195. for ac_last_try in false false false false false :; do
  4196. cat >conf$$subs.sed <<_ACEOF
  4197. SHELL!$SHELL$ac_delim
  4198. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  4199. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  4200. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  4201. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  4202. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  4203. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  4204. exec_prefix!$exec_prefix$ac_delim
  4205. prefix!$prefix$ac_delim
  4206. program_transform_name!$program_transform_name$ac_delim
  4207. bindir!$bindir$ac_delim
  4208. sbindir!$sbindir$ac_delim
  4209. libexecdir!$libexecdir$ac_delim
  4210. datarootdir!$datarootdir$ac_delim
  4211. datadir!$datadir$ac_delim
  4212. sysconfdir!$sysconfdir$ac_delim
  4213. sharedstatedir!$sharedstatedir$ac_delim
  4214. localstatedir!$localstatedir$ac_delim
  4215. includedir!$includedir$ac_delim
  4216. oldincludedir!$oldincludedir$ac_delim
  4217. docdir!$docdir$ac_delim
  4218. infodir!$infodir$ac_delim
  4219. htmldir!$htmldir$ac_delim
  4220. dvidir!$dvidir$ac_delim
  4221. pdfdir!$pdfdir$ac_delim
  4222. psdir!$psdir$ac_delim
  4223. libdir!$libdir$ac_delim
  4224. localedir!$localedir$ac_delim
  4225. mandir!$mandir$ac_delim
  4226. DEFS!$DEFS$ac_delim
  4227. ECHO_C!$ECHO_C$ac_delim
  4228. ECHO_N!$ECHO_N$ac_delim
  4229. ECHO_T!$ECHO_T$ac_delim
  4230. LIBS!$LIBS$ac_delim
  4231. build_alias!$build_alias$ac_delim
  4232. host_alias!$host_alias$ac_delim
  4233. target_alias!$target_alias$ac_delim
  4234. CC!$CC$ac_delim
  4235. CFLAGS!$CFLAGS$ac_delim
  4236. LDFLAGS!$LDFLAGS$ac_delim
  4237. CPPFLAGS!$CPPFLAGS$ac_delim
  4238. ac_ct_CC!$ac_ct_CC$ac_delim
  4239. EXEEXT!$EXEEXT$ac_delim
  4240. OBJEXT!$OBJEXT$ac_delim
  4241. CPP!$CPP$ac_delim
  4242. GREP!$GREP$ac_delim
  4243. EGREP!$EGREP$ac_delim
  4244. LIBOBJS!$LIBOBJS$ac_delim
  4245. LTLIBOBJS!$LTLIBOBJS$ac_delim
  4246. _ACEOF
  4247. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 49; then
  4248. break
  4249. elif $ac_last_try; then
  4250. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  4251. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  4252. { (exit 1); exit 1; }; }
  4253. else
  4254. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  4255. fi
  4256. done
  4257. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  4258. if test -n "$ac_eof"; then
  4259. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  4260. ac_eof=`expr $ac_eof + 1`
  4261. fi
  4262. cat >>$CONFIG_STATUS <<_ACEOF
  4263. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  4264. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  4265. _ACEOF
  4266. sed '
  4267. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  4268. s/^/s,@/; s/!/@,|#_!!_#|/
  4269. :n
  4270. t n
  4271. s/'"$ac_delim"'$/,g/; t
  4272. s/$/\\/; p
  4273. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  4274. ' >>$CONFIG_STATUS <conf$$subs.sed
  4275. rm -f conf$$subs.sed
  4276. cat >>$CONFIG_STATUS <<_ACEOF
  4277. :end
  4278. s/|#_!!_#|//g
  4279. CEOF$ac_eof
  4280. _ACEOF
  4281. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  4282. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  4283. # trailing colons and then remove the whole line if VPATH becomes empty
  4284. # (actually we leave an empty line to preserve line numbers).
  4285. if test "x$srcdir" = x.; then
  4286. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  4287. s/:*\$(srcdir):*/:/
  4288. s/:*\${srcdir}:*/:/
  4289. s/:*@srcdir@:*/:/
  4290. s/^\([^=]*=[ ]*\):*/\1/
  4291. s/:*$//
  4292. s/^[^=]*=[ ]*$//
  4293. }'
  4294. fi
  4295. cat >>$CONFIG_STATUS <<\_ACEOF
  4296. fi # test -n "$CONFIG_FILES"
  4297. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
  4298. do
  4299. case $ac_tag in
  4300. :[FHLC]) ac_mode=$ac_tag; continue;;
  4301. esac
  4302. case $ac_mode$ac_tag in
  4303. :[FHL]*:*);;
  4304. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  4305. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  4306. { (exit 1); exit 1; }; };;
  4307. :[FH]-) ac_tag=-:-;;
  4308. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  4309. esac
  4310. ac_save_IFS=$IFS
  4311. IFS=:
  4312. set x $ac_tag
  4313. IFS=$ac_save_IFS
  4314. shift
  4315. ac_file=$1
  4316. shift
  4317. case $ac_mode in
  4318. :L) ac_source=$1;;
  4319. :[FH])
  4320. ac_file_inputs=
  4321. for ac_f
  4322. do
  4323. case $ac_f in
  4324. -) ac_f="$tmp/stdin";;
  4325. *) # Look for the file first in the build tree, then in the source tree
  4326. # (if the path is not absolute). The absolute path cannot be DOS-style,
  4327. # because $ac_f cannot contain `:'.
  4328. test -f "$ac_f" ||
  4329. case $ac_f in
  4330. [\\/$]*) false;;
  4331. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  4332. esac ||
  4333. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  4334. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  4335. { (exit 1); exit 1; }; };;
  4336. esac
  4337. ac_file_inputs="$ac_file_inputs $ac_f"
  4338. done
  4339. # Let's still pretend it is `configure' which instantiates (i.e., don't
  4340. # use $as_me), people would be surprised to read:
  4341. # /* config.h. Generated by config.status. */
  4342. configure_input="Generated from "`IFS=:
  4343. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  4344. if test x"$ac_file" != x-; then
  4345. configure_input="$ac_file. $configure_input"
  4346. { echo "$as_me:$LINENO: creating $ac_file" >&5
  4347. echo "$as_me: creating $ac_file" >&6;}
  4348. fi
  4349. case $ac_tag in
  4350. *:-:* | *:-) cat >"$tmp/stdin";;
  4351. esac
  4352. ;;
  4353. esac
  4354. ac_dir=`$as_dirname -- "$ac_file" ||
  4355. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  4356. X"$ac_file" : 'X\(//\)[^/]' \| \
  4357. X"$ac_file" : 'X\(//\)$' \| \
  4358. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  4359. echo X"$ac_file" |
  4360. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  4361. s//\1/
  4362. q
  4363. }
  4364. /^X\(\/\/\)[^/].*/{
  4365. s//\1/
  4366. q
  4367. }
  4368. /^X\(\/\/\)$/{
  4369. s//\1/
  4370. q
  4371. }
  4372. /^X\(\/\).*/{
  4373. s//\1/
  4374. q
  4375. }
  4376. s/.*/./; q'`
  4377. { as_dir="$ac_dir"
  4378. case $as_dir in #(
  4379. -*) as_dir=./$as_dir;;
  4380. esac
  4381. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  4382. as_dirs=
  4383. while :; do
  4384. case $as_dir in #(
  4385. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  4386. *) as_qdir=$as_dir;;
  4387. esac
  4388. as_dirs="'$as_qdir' $as_dirs"
  4389. as_dir=`$as_dirname -- "$as_dir" ||
  4390. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  4391. X"$as_dir" : 'X\(//\)[^/]' \| \
  4392. X"$as_dir" : 'X\(//\)$' \| \
  4393. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  4394. echo X"$as_dir" |
  4395. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  4396. s//\1/
  4397. q
  4398. }
  4399. /^X\(\/\/\)[^/].*/{
  4400. s//\1/
  4401. q
  4402. }
  4403. /^X\(\/\/\)$/{
  4404. s//\1/
  4405. q
  4406. }
  4407. /^X\(\/\).*/{
  4408. s//\1/
  4409. q
  4410. }
  4411. s/.*/./; q'`
  4412. test -d "$as_dir" && break
  4413. done
  4414. test -z "$as_dirs" || eval "mkdir $as_dirs"
  4415. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  4416. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  4417. { (exit 1); exit 1; }; }; }
  4418. ac_builddir=.
  4419. case "$ac_dir" in
  4420. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  4421. *)
  4422. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  4423. # A ".." for each directory in $ac_dir_suffix.
  4424. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  4425. case $ac_top_builddir_sub in
  4426. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  4427. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  4428. esac ;;
  4429. esac
  4430. ac_abs_top_builddir=$ac_pwd
  4431. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  4432. # for backward compatibility:
  4433. ac_top_builddir=$ac_top_build_prefix
  4434. case $srcdir in
  4435. .) # We are building in place.
  4436. ac_srcdir=.
  4437. ac_top_srcdir=$ac_top_builddir_sub
  4438. ac_abs_top_srcdir=$ac_pwd ;;
  4439. [\\/]* | ?:[\\/]* ) # Absolute name.
  4440. ac_srcdir=$srcdir$ac_dir_suffix;
  4441. ac_top_srcdir=$srcdir
  4442. ac_abs_top_srcdir=$srcdir ;;
  4443. *) # Relative name.
  4444. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  4445. ac_top_srcdir=$ac_top_build_prefix$srcdir
  4446. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  4447. esac
  4448. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  4449. case $ac_mode in
  4450. :F)
  4451. #
  4452. # CONFIG_FILE
  4453. #
  4454. _ACEOF
  4455. cat >>$CONFIG_STATUS <<\_ACEOF
  4456. # If the template does not know about datarootdir, expand it.
  4457. # FIXME: This hack should be removed a few years after 2.60.
  4458. ac_datarootdir_hack=; ac_datarootdir_seen=
  4459. case `sed -n '/datarootdir/ {
  4460. p
  4461. q
  4462. }
  4463. /@datadir@/p
  4464. /@docdir@/p
  4465. /@infodir@/p
  4466. /@localedir@/p
  4467. /@mandir@/p
  4468. ' $ac_file_inputs` in
  4469. *datarootdir*) ac_datarootdir_seen=yes;;
  4470. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  4471. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  4472. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  4473. _ACEOF
  4474. cat >>$CONFIG_STATUS <<_ACEOF
  4475. ac_datarootdir_hack='
  4476. s&@datadir@&$datadir&g
  4477. s&@docdir@&$docdir&g
  4478. s&@infodir@&$infodir&g
  4479. s&@localedir@&$localedir&g
  4480. s&@mandir@&$mandir&g
  4481. s&\\\${datarootdir}&$datarootdir&g' ;;
  4482. esac
  4483. _ACEOF
  4484. # Neutralize VPATH when `$srcdir' = `.'.
  4485. # Shell code in configure.ac might set extrasub.
  4486. # FIXME: do we really want to maintain this feature?
  4487. cat >>$CONFIG_STATUS <<_ACEOF
  4488. sed "$ac_vpsub
  4489. $extrasub
  4490. _ACEOF
  4491. cat >>$CONFIG_STATUS <<\_ACEOF
  4492. :t
  4493. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  4494. s&@configure_input@&$configure_input&;t t
  4495. s&@top_builddir@&$ac_top_builddir_sub&;t t
  4496. s&@srcdir@&$ac_srcdir&;t t
  4497. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  4498. s&@top_srcdir@&$ac_top_srcdir&;t t
  4499. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  4500. s&@builddir@&$ac_builddir&;t t
  4501. s&@abs_builddir@&$ac_abs_builddir&;t t
  4502. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  4503. $ac_datarootdir_hack
  4504. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
  4505. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  4506. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  4507. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  4508. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  4509. which seems to be undefined. Please make sure it is defined." >&5
  4510. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  4511. which seems to be undefined. Please make sure it is defined." >&2;}
  4512. rm -f "$tmp/stdin"
  4513. case $ac_file in
  4514. -) cat "$tmp/out"; rm -f "$tmp/out";;
  4515. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  4516. esac
  4517. ;;
  4518. :H)
  4519. #
  4520. # CONFIG_HEADER
  4521. #
  4522. _ACEOF
  4523. # Transform confdefs.h into a sed script `conftest.defines', that
  4524. # substitutes the proper values into config.h.in to produce config.h.
  4525. rm -f conftest.defines conftest.tail
  4526. # First, append a space to every undef/define line, to ease matching.
  4527. echo 's/$/ /' >conftest.defines
  4528. # Then, protect against being on the right side of a sed subst, or in
  4529. # an unquoted here document, in config.status. If some macros were
  4530. # called several times there might be several #defines for the same
  4531. # symbol, which is useless. But do not sort them, since the last
  4532. # AC_DEFINE must be honored.
  4533. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  4534. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  4535. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  4536. # PARAMS is the parameter list in the macro definition--in most cases, it's
  4537. # just an empty string.
  4538. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  4539. ac_dB='\\)[ (].*,\\1define\\2'
  4540. ac_dC=' '
  4541. ac_dD=' ,'
  4542. uniq confdefs.h |
  4543. sed -n '
  4544. t rset
  4545. :rset
  4546. s/^[ ]*#[ ]*define[ ][ ]*//
  4547. t ok
  4548. d
  4549. :ok
  4550. s/[\\&,]/\\&/g
  4551. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  4552. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  4553. ' >>conftest.defines
  4554. # Remove the space that was appended to ease matching.
  4555. # Then replace #undef with comments. This is necessary, for
  4556. # example, in the case of _POSIX_SOURCE, which is predefined and required
  4557. # on some systems where configure will not decide to define it.
  4558. # (The regexp can be short, since the line contains either #define or #undef.)
  4559. echo 's/ $//
  4560. s,^[ #]*u.*,/* & */,' >>conftest.defines
  4561. # Break up conftest.defines:
  4562. ac_max_sed_lines=50
  4563. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  4564. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  4565. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  4566. # et cetera.
  4567. ac_in='$ac_file_inputs'
  4568. ac_out='"$tmp/out1"'
  4569. ac_nxt='"$tmp/out2"'
  4570. while :
  4571. do
  4572. # Write a here document:
  4573. cat >>$CONFIG_STATUS <<_ACEOF
  4574. # First, check the format of the line:
  4575. cat >"\$tmp/defines.sed" <<\\CEOF
  4576. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  4577. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  4578. b
  4579. :def
  4580. _ACEOF
  4581. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  4582. echo 'CEOF
  4583. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  4584. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  4585. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  4586. grep . conftest.tail >/dev/null || break
  4587. rm -f conftest.defines
  4588. mv conftest.tail conftest.defines
  4589. done
  4590. rm -f conftest.defines conftest.tail
  4591. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  4592. cat >>$CONFIG_STATUS <<\_ACEOF
  4593. if test x"$ac_file" != x-; then
  4594. echo "/* $configure_input */" >"$tmp/config.h"
  4595. cat "$ac_result" >>"$tmp/config.h"
  4596. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  4597. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  4598. echo "$as_me: $ac_file is unchanged" >&6;}
  4599. else
  4600. rm -f $ac_file
  4601. mv "$tmp/config.h" $ac_file
  4602. fi
  4603. else
  4604. echo "/* $configure_input */"
  4605. cat "$ac_result"
  4606. fi
  4607. rm -f "$tmp/out12"
  4608. ;;
  4609. esac
  4610. done # for ac_tag
  4611. { (exit 0); exit 0; }
  4612. _ACEOF
  4613. chmod +x $CONFIG_STATUS
  4614. ac_clean_files=$ac_clean_files_save
  4615. # configure is writing to config.log, and then calls config.status.
  4616. # config.status does its own redirection, appending to config.log.
  4617. # Unfortunately, on DOS this fails, as config.log is still kept open
  4618. # by configure, so config.status won't be able to write to it; its
  4619. # output is simply discarded. So we exec the FD to /dev/null,
  4620. # effectively closing config.log, so it can be properly (re)opened and
  4621. # appended to by config.status. When coming back to configure, we
  4622. # need to make the FD available again.
  4623. if test "$no_create" != yes; then
  4624. ac_cs_success=:
  4625. ac_config_status_args=
  4626. test "$silent" = yes &&
  4627. ac_config_status_args="$ac_config_status_args --quiet"
  4628. exec 5>/dev/null
  4629. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  4630. exec 5>>config.log
  4631. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  4632. # would make configure fail if this is the last instruction.
  4633. $ac_cs_success || { (exit 1); exit 1; }
  4634. fi