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

configure 157KB

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